@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,193 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ContentMacroBodyService = 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 contentMacroBody_1 = require("../models/contentMacroBody");
12
+ const validationSchemaStorage_1 = require("../validationSchemaStorage");
13
+ class ContentMacroBodyService extends CommonHttpService_1.CommonHttpService {
14
+ /**
15
+ * Returns Async Id of the conversion task which will convert the macro into a
16
+ * content body of the desired format.
17
+ * The result will be available for 5 minutes after completion of the conversion.
18
+ *
19
+ * About the macro ID: When a macro is created in a new version of content,
20
+ * Confluence will generate a random ID for it, unless an ID is specified
21
+ * (by an app). The macro ID will look similar to this:
22
+ * '884bd9-0cb8-41d5-98be-f80943c14f96'.
23
+ * The ID is then persisted as new versions of content are created, and is
24
+ * only modified by Confluence if there are conflicting IDs.
25
+ *
26
+ * Note, to preserve backwards compatibility this resource will also match on
27
+ * the hash of the macro body, even if a macro ID is found. This check will
28
+ * eventually become redundant, as macro IDs are generated for pages and
29
+ * transparently propagate out to all instances.
30
+ *
31
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
32
+ * Permission to view the content that the macro is in.
33
+ *
34
+ * @returns Returned if the requested macro conversion request is created.
35
+ * @path {GET}
36
+ * /wiki/rest/api/content/{id}/history/{version}/macro/id/{macroId}/convert/async/{to}
37
+ * @scopes-current read:confluence-content.all
38
+ * @scopes-beta read:content.metadata:confluence
39
+ */
40
+ getAndAsyncConvertMacroBodyByMacroId({ id, version, macroId, to, expand, allowCache, spaceKeyContext, embeddedContentRender, }) {
41
+ return this.getClientInstance()
42
+ .request({
43
+ path: "/wiki/rest/api/content/{id}/history/{version}/macro/id/{macroId}/convert/async/{to}",
44
+ method: "GET",
45
+ pathParams: {
46
+ id,
47
+ version,
48
+ macroId,
49
+ to,
50
+ },
51
+ query: {
52
+ expand,
53
+ allowCache,
54
+ spaceKeyContext,
55
+ embeddedContentRender,
56
+ },
57
+ })
58
+ .then(this.getClientInstance().responseHandler({
59
+ 200: {
60
+ "application/json": "json",
61
+ },
62
+ }))
63
+ .then(commonHttpClient.castResponse())
64
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentMacroBodyService.getAndAsyncConvertMacroBodyByMacroId.response"))
65
+ .then(commonHttpClient.getBody);
66
+ }
67
+ /**
68
+ * Returns the body of a macro in format specified in path, for the given macro ID.
69
+ * This includes information like the name of the macro, the body of the macro,
70
+ * and any macro parameters.
71
+ *
72
+ * About the macro ID: When a macro is created in a new version of content,
73
+ * Confluence will generate a random ID for it, unless an ID is specified
74
+ * (by an app). The macro ID will look similar to this:
75
+ * '50884bd9-0cb8-41d5-98be-f80943c14f96'.
76
+ * The ID is then persisted as new versions of content are created, and is
77
+ * only modified by Confluence if there are conflicting IDs.
78
+ *
79
+ * Note, to preserve backwards compatibility this resource will also match on
80
+ * the hash of the macro body, even if a macro ID is found. This check will
81
+ * eventually become redundant, as macro IDs are generated for pages and
82
+ * transparently propagate out to all instances.
83
+ *
84
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
85
+ * Permission to view the content that the macro is in.
86
+ *
87
+ * @returns Returned if the requested content body is returned.
88
+ * @path {GET}
89
+ * /wiki/rest/api/content/{id}/history/{version}/macro/id/{macroId}/convert/{to}
90
+ * @scopes-current read:confluence-content.all
91
+ * @scopes-beta read:content.metadata:confluence
92
+ */
93
+ getAndConvertMacroBodyByMacroId({ id, version, macroId, to, expand, spaceKeyContext, embeddedContentRender, }) {
94
+ return this.getClientInstance()
95
+ .request({
96
+ path: "/wiki/rest/api/content/{id}/history/{version}/macro/id/{macroId}/convert/{to}",
97
+ method: "GET",
98
+ pathParams: {
99
+ id,
100
+ version,
101
+ macroId,
102
+ to,
103
+ },
104
+ query: {
105
+ expand,
106
+ spaceKeyContext,
107
+ embeddedContentRender,
108
+ },
109
+ })
110
+ .then(this.getClientInstance().responseHandler({
111
+ 200: {
112
+ "application/json": "json",
113
+ },
114
+ }))
115
+ .then(commonHttpClient.castResponse())
116
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentMacroBodyService.getAndConvertMacroBodyByMacroId.response"))
117
+ .then(commonHttpClient.getBody);
118
+ }
119
+ /**
120
+ * Returns the body of a macro in storage format, for the given macro ID.
121
+ * This includes information like the name of the macro, the body of the macro,
122
+ * and any macro parameters. This method is mainly used by Cloud apps.
123
+ *
124
+ * About the macro ID: When a macro is created in a new version of content,
125
+ * Confluence will generate a random ID for it, unless an ID is specified
126
+ * (by an app). The macro ID will look similar to this:
127
+ * '50884bd9-0cb8-41d5-98be-f80943c14f96'.
128
+ * The ID is then persisted as new versions of content are created, and is
129
+ * only modified by Confluence if there are conflicting IDs.
130
+ *
131
+ * Note, to preserve backwards compatibility this resource will also match on
132
+ * the hash of the macro body, even if a macro ID is found. This check will
133
+ * eventually become redundant, as macro IDs are generated for pages and
134
+ * transparently propagate out to all instances.
135
+ *
136
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
137
+ * Permission to view the content that the macro is in.
138
+ *
139
+ * @returns Returned if the requested macro body is returned.
140
+ * @path {GET} /wiki/rest/api/content/{id}/history/{version}/macro/id/{macroId}
141
+ * @scopes-current read:confluence-content.all
142
+ * @scopes-beta read:content.metadata:confluence
143
+ */
144
+ getMacroBodyByMacroId({ id, version, macroId, }) {
145
+ return this.getClientInstance()
146
+ .request({
147
+ path: "/wiki/rest/api/content/{id}/history/{version}/macro/id/{macroId}",
148
+ method: "GET",
149
+ pathParams: {
150
+ id,
151
+ version,
152
+ macroId,
153
+ },
154
+ })
155
+ .then(this.getClientInstance().responseHandler({
156
+ 200: {
157
+ "application/json": "json",
158
+ },
159
+ }))
160
+ .then(commonHttpClient.castResponse())
161
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentMacroBodyService.getMacroBodyByMacroId.response"))
162
+ .then(commonHttpClient.getBody);
163
+ }
164
+ static initialize() {
165
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentMacroBodyService.getMacroBodyByMacroId.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("MacroInstance"),
170
+ })
171
+ .describe("ContentMacroBodyService.getMacroBodyByMacroId.response"));
172
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentMacroBodyService.getAndConvertMacroBodyByMacroId.response", zod_1.z
173
+ .object({
174
+ status: zod_1.z.literal(200),
175
+ mediaType: zod_1.z.literal("application/json"),
176
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentBody"),
177
+ })
178
+ .describe("ContentMacroBodyService.getAndConvertMacroBodyByMacroId.response"));
179
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentMacroBodyService.getAndAsyncConvertMacroBodyByMacroId.response", zod_1.z
180
+ .object({
181
+ status: zod_1.z.literal(200),
182
+ mediaType: zod_1.z.literal("application/json"),
183
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("AsyncId"),
184
+ })
185
+ .describe("ContentMacroBodyService.getAndAsyncConvertMacroBodyByMacroId.response"));
186
+ validationSchemaStorage_1.validationSchemaStorage.registerOnce([
187
+ contentMacroBody_1.registerContentMacroBodyValidationSchemas,
188
+ common_1.registerCommonValidationSchemas,
189
+ ]);
190
+ }
191
+ }
192
+ exports.ContentMacroBodyService = ContentMacroBodyService;
193
+ //# sourceMappingURL=ContentMacroBodyService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContentMacroBodyService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ContentMacroBodyService.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,34 @@
1
+ import { CommonHttpService } from "../core/CommonHttpService";
2
+ import { type ContentPermissionRequest, type PermissionCheckResponse } from "../models/contentPermissions";
3
+ export declare class ContentPermissionsService extends CommonHttpService {
4
+ /**
5
+ * Check if a user or a group can perform an operation to the specified content.
6
+ * The `operation` to check
7
+ * must be provided. The user’s account ID or the ID of the group can be provided
8
+ * in the `subject` to check
9
+ * permissions against a specified user or group. The following permission checks
10
+ * are done to make sure that the
11
+ * user or group has the proper access:
12
+ *
13
+ * - site permissions
14
+ * - space permissions
15
+ * - content restrictions
16
+ *
17
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
18
+ * Permission to access the Confluence site ('Can use' global permission) if
19
+ * checking permission for self,
20
+ * otherwise 'Confluence Administrator' global permission is required.
21
+ *
22
+ * @returns Returned if the permission check completed successfully
23
+ * @path {POST} /wiki/rest/api/content/{id}/permission/check
24
+ * @scopes-current read:confluence-content.permission
25
+ * @scopes-beta read:content.permission:confluence
26
+ */
27
+ checkContentPermission({ id, contentPermissionRequest, }: {
28
+ /** The ID of the content to check permissions against. */
29
+ id: string;
30
+ /** The content permission request. */
31
+ contentPermissionRequest: ContentPermissionRequest;
32
+ }): Promise<PermissionCheckResponse>;
33
+ static initialize(): void;
34
+ }
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ContentPermissionsService = 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 contentPermissions_1 = require("../models/contentPermissions");
11
+ const validationSchemaStorage_1 = require("../validationSchemaStorage");
12
+ class ContentPermissionsService extends CommonHttpService_1.CommonHttpService {
13
+ /**
14
+ * Check if a user or a group can perform an operation to the specified content.
15
+ * The `operation` to check
16
+ * must be provided. The user’s account ID or the ID of the group can be provided
17
+ * in the `subject` to check
18
+ * permissions against a specified user or group. The following permission checks
19
+ * are done to make sure that the
20
+ * user or group has the proper access:
21
+ *
22
+ * - site permissions
23
+ * - space permissions
24
+ * - content restrictions
25
+ *
26
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
27
+ * Permission to access the Confluence site ('Can use' global permission) if
28
+ * checking permission for self,
29
+ * otherwise 'Confluence Administrator' global permission is required.
30
+ *
31
+ * @returns Returned if the permission check completed successfully
32
+ * @path {POST} /wiki/rest/api/content/{id}/permission/check
33
+ * @scopes-current read:confluence-content.permission
34
+ * @scopes-beta read:content.permission:confluence
35
+ */
36
+ checkContentPermission({ id, contentPermissionRequest, }) {
37
+ return this.getClientInstance()
38
+ .request({
39
+ path: "/wiki/rest/api/content/{id}/permission/check",
40
+ method: "POST",
41
+ pathParams: {
42
+ id,
43
+ },
44
+ headers: {
45
+ "Content-Type": "application/json",
46
+ },
47
+ body: contentPermissionRequest,
48
+ })
49
+ .then(this.getClientInstance().responseHandler({
50
+ 200: {
51
+ "application/json": "json",
52
+ },
53
+ }))
54
+ .then(commonHttpClient.castResponse())
55
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPermissionsService.checkContentPermission.response"))
56
+ .then(commonHttpClient.getBody);
57
+ }
58
+ static initialize() {
59
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentPermissionsService.checkContentPermission.response", zod_1.z
60
+ .object({
61
+ status: zod_1.z.literal(200),
62
+ mediaType: zod_1.z.literal("application/json"),
63
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("PermissionCheckResponse"),
64
+ })
65
+ .describe("ContentPermissionsService.checkContentPermission.response"));
66
+ validationSchemaStorage_1.validationSchemaStorage.registerOnce([
67
+ contentPermissions_1.registerContentPermissionsValidationSchemas,
68
+ ]);
69
+ }
70
+ }
71
+ exports.ContentPermissionsService = ContentPermissionsService;
72
+ //# sourceMappingURL=ContentPermissionsService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContentPermissionsService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ContentPermissionsService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,qEAIsC;AACtC,wEAAqE;AACrE,MAAa,yBAA0B,SAAQ,qCAAiB;IAC9D;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,sBAAsB,CAAC,EACrB,EAAE,EACF,wBAAwB,GAMzB;QACC,OAAO,IAAI,CAAC,iBAAiB,EAAE;aAC5B,OAAO,CAAC;YACP,IAAI,EAAE,8CAA8C;YACpD,MAAM,EAAE,MAAM;YACd,UAAU,EAAE;gBACV,EAAE;aACH;YACD,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;aACnC;YACD,IAAI,EAAE,wBAAwB;SAC/B,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,2DAA2D,CAC5D,CACF;aACA,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACpC,CAAC;IACD,MAAM,CAAC,UAAU;QACf,iDAAuB,CAAC,kBAAkB,CACxC,2DAA2D,EAC3D,OAAC;aACE,MAAM,CAAC;YACN,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,GAAG,CAAC;YACtB,SAAS,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;YACxC,IAAI,EAAE,iDAAuB,CAAC,IAAI,CAAC,yBAAyB,CAAC;SAC9D,CAAC;aACD,QAAQ,CAAC,2DAA2D,CAAC,CACzE,CAAC;QACF,iDAAuB,CAAC,YAAY,CAAC;YACnC,gEAA2C;SAC5C,CAAC,CAAC;IACL,CAAC;CACF;AAjFD,8DAiFC"}
@@ -0,0 +1,187 @@
1
+ import { CommonHttpService } from "../core/CommonHttpService";
2
+ import { type ContentPropertyArray, type ContentPropertyCreate, type ContentPropertyCreateNoKey, type ContentPropertyUpdate, type ContentPropertyV1 } from "../models/contentProperties";
3
+ /** @deprecated */
4
+ export declare class ContentPropertiesService extends CommonHttpService {
5
+ /**
6
+ * Creates a property for an existing piece of content. For more information
7
+ * about content properties, see [Confluence entity
8
+ * properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/).
9
+ *
10
+ * This is the same as [Create content property for
11
+ * key](#api-content-id-property-key-post)
12
+ * except that the key is specified in the request body instead of as a
13
+ * path parameter.
14
+ *
15
+ * Content properties can also be added when creating a new piece of content
16
+ * by including them in the `metadata.properties` of the request.
17
+ *
18
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
19
+ * Permission to update the content.
20
+ *
21
+ * @deprecated
22
+ * @returns Returned if the content property is created.
23
+ * @path {POST} /wiki/rest/api/content/{id}/property
24
+ * @scopes-current write:confluence-props
25
+ * @scopes-beta read:content.property:confluence, write:content.property:confluence
26
+ */
27
+ createContentProperty({ id, contentPropertyCreate, }: {
28
+ /** The ID of the content to add the property to. */
29
+ id: string;
30
+ /** The content property to be created. */
31
+ contentPropertyCreate: ContentPropertyCreate;
32
+ }): Promise<ContentPropertyV1>;
33
+ /**
34
+ * Creates a property for an existing piece of content. For more information
35
+ * about content properties, see [Confluence entity
36
+ * properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/).
37
+ *
38
+ * This is the same as [Create content property](#api-content-id-property-post)
39
+ * except that the key is specified as a path parameter instead of in the
40
+ * request body.
41
+ *
42
+ * Content properties can also be added when creating a new piece of content
43
+ * by including them in the `metadata.properties` of the request.
44
+ *
45
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
46
+ * Permission to update the content.
47
+ *
48
+ * @deprecated
49
+ * @returns Returned if the content property is created.
50
+ * @path {POST} /wiki/rest/api/content/{id}/property/{key}
51
+ * @scopes-current write:confluence-props
52
+ * @scopes-beta read:content.property:confluence, write:content.property:confluence
53
+ */
54
+ createContentPropertyForKey({ id, key, contentPropertyCreateNoKey, }: {
55
+ /** The ID of the content to add the property to. */
56
+ id: string;
57
+ /** The key of the content property. Required. */
58
+ key: string;
59
+ /** The content property to be created. */
60
+ contentPropertyCreateNoKey: ContentPropertyCreateNoKey;
61
+ }): Promise<ContentPropertyV1>;
62
+ /**
63
+ * Deletes a content property. For more information about content properties, see
64
+ * [Confluence entity
65
+ * properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/).
66
+ *
67
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
68
+ * Permission to update the content.
69
+ *
70
+ * @deprecated
71
+ * @path {DELETE} /wiki/rest/api/content/{id}/property/{key}
72
+ * @scopes-current write:confluence-props
73
+ * @scopes-beta write:content.property:confluence
74
+ */
75
+ deleteContentProperty({ id, key, }: {
76
+ /** The ID of the content that the property belongs to. */
77
+ id: string;
78
+ /** The key of the property. */
79
+ key: string;
80
+ }): Promise<void>;
81
+ /**
82
+ * Returns the properties for a piece of content. For more information
83
+ * about content properties, see [Confluence entity
84
+ * properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/).
85
+ *
86
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
87
+ * 'View' permission for the space, and permission to view the content if it is a
88
+ * page.
89
+ *
90
+ * @deprecated
91
+ * @returns Returned if the requested properties are returned.
92
+ * @path {GET} /wiki/rest/api/content/{id}/property
93
+ * @scopes-current read:confluence-props
94
+ * @scopes-beta read:content-details:confluence
95
+ */
96
+ getContentProperties({ id, key, expand, start, limit, }: {
97
+ /** The ID of the content to be queried for its properties. */
98
+ id: string;
99
+ /** The key of the content property. */
100
+ key?: string[];
101
+ /**
102
+ * A multi-value parameter indicating which properties of the content to
103
+ * expand. By default, the `version` object is expanded.
104
+ *
105
+ * - `content` returns the content that the property is stored against.
106
+ * - `version` returns information about the version of the property, such
107
+ * as the version number, when it was created, etc.
108
+ */
109
+ expand?: ("content" | "version")[];
110
+ /** The starting index of the returned properties. */
111
+ start?: number;
112
+ /**
113
+ * The maximum number of properties to return per page.
114
+ * Note, this may be restricted by fixed system limits.
115
+ */
116
+ limit?: number;
117
+ }): Promise<ContentPropertyArray>;
118
+ /**
119
+ * Returns a content property for a piece of content. For more information, see
120
+ * [Confluence entity
121
+ * properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/).
122
+ *
123
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
124
+ * 'View' permission for the space, and permission to view the content if it is a
125
+ * page.
126
+ *
127
+ * @deprecated
128
+ * @returns Returned if the content property is returned.
129
+ * @path {GET} /wiki/rest/api/content/{id}/property/{key}
130
+ * @scopes-current read:confluence-props
131
+ * @scopes-beta read:content-details:confluence
132
+ */
133
+ getContentProperty({ id, key, expand, status, }: {
134
+ /** The ID of the content to be queried for the property. */
135
+ id: string;
136
+ /** The key of the content property. */
137
+ key: string;
138
+ /**
139
+ * A multi-value parameter indicating which properties of the content to
140
+ * expand. By default, the `version` object is expanded.
141
+ *
142
+ * - `content` returns the content that the property is stored against.
143
+ * - `version` returns information about the version of the property, such
144
+ * as the version number, when it was created, etc.
145
+ */
146
+ expand?: ("content" | "version")[];
147
+ /**
148
+ * Filter the results to a set of content based on their status. If set to `any`,
149
+ * content with any status is returned. By default it will fetch current and
150
+ * archived statuses `?status=current&status=archived`.
151
+ * All supported statuses
152
+ *
153
+ * - any
154
+ * - archived
155
+ * - current
156
+ * - deleted
157
+ * - draft
158
+ * - trashed
159
+ */
160
+ status?: "any" | "archived" | "current" | "deleted" | "draft" | "trashed";
161
+ }): Promise<ContentPropertyV1>;
162
+ /**
163
+ * Updates an existing content property. This method will also create a new
164
+ * property for a piece of content, if the property key does not exist and
165
+ * the property version is 1. For more information about content properties, see
166
+ * [Confluence entity
167
+ * properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/).
168
+ *
169
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
170
+ * Permission to update the content.
171
+ *
172
+ * @deprecated
173
+ * @returns Returned if the content property is created.
174
+ * @path {PUT} /wiki/rest/api/content/{id}/property/{key}
175
+ * @scopes-current write:confluence-props
176
+ * @scopes-beta read:content.property:confluence, write:content.property:confluence
177
+ */
178
+ updateContentProperty({ id, key, contentPropertyUpdate, }: {
179
+ /** The ID of the content that the property belongs to. */
180
+ id: string;
181
+ /** The key of the property. */
182
+ key: string;
183
+ /** The content property being updated. */
184
+ contentPropertyUpdate: ContentPropertyUpdate;
185
+ }): Promise<ContentPropertyV1>;
186
+ static initialize(): void;
187
+ }