@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,1514 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ContentPropertiesService = void 0;
4
+ // DO NOT EDIT!
5
+ // This file is generated by "api-typescript-generator".
6
+ // To update this file run "yarn build:openapi".
7
+ const zod_1 = require("zod");
8
+ const commonHttpClient = require("../core/CommonHttpClient");
9
+ const CommonHttpService_1 = require("../core/CommonHttpService");
10
+ const common_1 = require("../models/common");
11
+ const validationSchemaStorage_1 = require("../validationSchemaStorage");
12
+ class ContentPropertiesService extends CommonHttpService_1.CommonHttpService {
13
+ /**
14
+ * Creates a new content property for an attachment.
15
+ *
16
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
17
+ * Permission to update the attachment.
18
+ *
19
+ * @returns Returned if the content property was created successfully.
20
+ * @path {POST} /attachments/{attachment-id}/properties
21
+ * @scopes-current read:attachment:confluence, write:attachment:confluence
22
+ */
23
+ createAttachmentProperty({ attachmentId, contentPropertyCreateRequest, }) {
24
+ return this.getClientInstance()
25
+ .request({
26
+ path: "/attachments/{attachment-id}/properties",
27
+ method: "POST",
28
+ pathParams: {
29
+ "attachment-id": attachmentId,
30
+ },
31
+ headers: {
32
+ "Content-Type": "application/json",
33
+ },
34
+ body: contentPropertyCreateRequest,
35
+ })
36
+ .then(this.getClientInstance().responseHandler({
37
+ 200: {
38
+ "application/json": "json",
39
+ },
40
+ }))
41
+ .then(commonHttpClient.castResponse())
42
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.createAttachmentProperty.response"))
43
+ .then(commonHttpClient.getBody);
44
+ }
45
+ /**
46
+ * Creates a new property for a blogpost.
47
+ *
48
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
49
+ * Permission to update the blog post.
50
+ *
51
+ * @returns Returned if the content property was created successfully.
52
+ * @path {POST} /blogposts/{blogpost-id}/properties
53
+ * @scopes-current read:page:confluence, write:page:confluence
54
+ */
55
+ createBlogpostProperty({ blogpostId, contentPropertyCreateRequest, }) {
56
+ return this.getClientInstance()
57
+ .request({
58
+ path: "/blogposts/{blogpost-id}/properties",
59
+ method: "POST",
60
+ pathParams: {
61
+ "blogpost-id": blogpostId,
62
+ },
63
+ headers: {
64
+ "Content-Type": "application/json",
65
+ },
66
+ body: contentPropertyCreateRequest,
67
+ })
68
+ .then(this.getClientInstance().responseHandler({
69
+ 200: {
70
+ "application/json": "json",
71
+ },
72
+ }))
73
+ .then(commonHttpClient.castResponse())
74
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.createBlogpostProperty.response"))
75
+ .then(commonHttpClient.getBody);
76
+ }
77
+ /**
78
+ * Creates a new content property for a comment.
79
+ *
80
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
81
+ * Permission to update the comment.
82
+ *
83
+ * @returns Returned if the content property was created successfully.
84
+ * @path {POST} /comments/{comment-id}/properties
85
+ * @scopes-current read:comment:confluence, write:comment:confluence
86
+ */
87
+ createCommentProperty({ commentId, contentPropertyCreateRequest, }) {
88
+ return this.getClientInstance()
89
+ .request({
90
+ path: "/comments/{comment-id}/properties",
91
+ method: "POST",
92
+ pathParams: {
93
+ "comment-id": commentId,
94
+ },
95
+ headers: {
96
+ "Content-Type": "application/json",
97
+ },
98
+ body: contentPropertyCreateRequest,
99
+ })
100
+ .then(this.getClientInstance().responseHandler({
101
+ 200: {
102
+ "application/json": "json",
103
+ },
104
+ }))
105
+ .then(commonHttpClient.castResponse())
106
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.createCommentProperty.response"))
107
+ .then(commonHttpClient.getBody);
108
+ }
109
+ /**
110
+ * Creates a new content property for a piece of custom content.
111
+ *
112
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
113
+ * Permission to update the custom content.
114
+ *
115
+ * @returns Returned if the content property was created successfully.
116
+ * @path {POST} /custom-content/{custom-content-id}/properties
117
+ * @scopes-current read:custom-content:confluence, write:custom-content:confluence
118
+ */
119
+ createCustomContentProperty({ customContentId, contentPropertyCreateRequest, }) {
120
+ return this.getClientInstance()
121
+ .request({
122
+ path: "/custom-content/{custom-content-id}/properties",
123
+ method: "POST",
124
+ pathParams: {
125
+ "custom-content-id": customContentId,
126
+ },
127
+ headers: {
128
+ "Content-Type": "application/json",
129
+ },
130
+ body: contentPropertyCreateRequest,
131
+ })
132
+ .then(this.getClientInstance().responseHandler({
133
+ 200: {
134
+ "application/json": "json",
135
+ },
136
+ }))
137
+ .then(commonHttpClient.castResponse())
138
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.createCustomContentProperty.response"))
139
+ .then(commonHttpClient.getBody);
140
+ }
141
+ /**
142
+ * Creates a new content property for a database.
143
+ *
144
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
145
+ * Permission to update the database.
146
+ *
147
+ * @returns Returned if the content property was created successfully.
148
+ * @path {POST} /databases/{id}/properties
149
+ * @scopes-current read:database:confluence, write:database:confluence
150
+ */
151
+ createDatabaseProperty({ id, contentPropertyCreateRequest, }) {
152
+ return this.getClientInstance()
153
+ .request({
154
+ path: "/databases/{id}/properties",
155
+ method: "POST",
156
+ pathParams: {
157
+ id,
158
+ },
159
+ headers: {
160
+ "Content-Type": "application/json",
161
+ },
162
+ body: contentPropertyCreateRequest,
163
+ })
164
+ .then(this.getClientInstance().responseHandler({
165
+ 200: {
166
+ "application/json": "json",
167
+ },
168
+ }))
169
+ .then(commonHttpClient.castResponse())
170
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.createDatabaseProperty.response"))
171
+ .then(commonHttpClient.getBody);
172
+ }
173
+ /**
174
+ * Creates a new content property for a page.
175
+ *
176
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
177
+ * Permission to update the page.
178
+ *
179
+ * @returns Returned if the content property was created successfully.
180
+ * @path {POST} /pages/{page-id}/properties
181
+ * @scopes-current read:page:confluence, write:page:confluence
182
+ */
183
+ createPageProperty({ pageId, contentPropertyCreateRequest, }) {
184
+ return this.getClientInstance()
185
+ .request({
186
+ path: "/pages/{page-id}/properties",
187
+ method: "POST",
188
+ pathParams: {
189
+ "page-id": pageId,
190
+ },
191
+ headers: {
192
+ "Content-Type": "application/json",
193
+ },
194
+ body: contentPropertyCreateRequest,
195
+ })
196
+ .then(this.getClientInstance().responseHandler({
197
+ 200: {
198
+ "application/json": "json",
199
+ },
200
+ }))
201
+ .then(commonHttpClient.castResponse())
202
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.createPageProperty.response"))
203
+ .then(commonHttpClient.getBody);
204
+ }
205
+ /**
206
+ * Creates a new content property for a Smart Link in the content tree.
207
+ *
208
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
209
+ * Permission to update the Smart Link in the content tree.
210
+ *
211
+ * @returns Returned if the content property was created successfully.
212
+ * @path {POST} /embeds/{id}/properties
213
+ * @scopes-current read:embed:confluence, write:embed:confluence
214
+ */
215
+ createSmartLinkProperty({ id, contentPropertyCreateRequest, }) {
216
+ return this.getClientInstance()
217
+ .request({
218
+ path: "/embeds/{id}/properties",
219
+ method: "POST",
220
+ pathParams: {
221
+ id,
222
+ },
223
+ headers: {
224
+ "Content-Type": "application/json",
225
+ },
226
+ body: contentPropertyCreateRequest,
227
+ })
228
+ .then(this.getClientInstance().responseHandler({
229
+ 200: {
230
+ "application/json": "json",
231
+ },
232
+ }))
233
+ .then(commonHttpClient.castResponse())
234
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.createSmartLinkProperty.response"))
235
+ .then(commonHttpClient.getBody);
236
+ }
237
+ /**
238
+ * Creates a new content property for a whiteboard.
239
+ *
240
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
241
+ * Permission to update the whiteboard.
242
+ *
243
+ * @returns Returned if the content property was created successfully.
244
+ * @path {POST} /whiteboards/{id}/properties
245
+ * @scopes-current read:whiteboard:confluence, write:whiteboard:confluence
246
+ */
247
+ createWhiteboardProperty({ id, contentPropertyCreateRequest, }) {
248
+ return this.getClientInstance()
249
+ .request({
250
+ path: "/whiteboards/{id}/properties",
251
+ method: "POST",
252
+ pathParams: {
253
+ id,
254
+ },
255
+ headers: {
256
+ "Content-Type": "application/json",
257
+ },
258
+ body: contentPropertyCreateRequest,
259
+ })
260
+ .then(this.getClientInstance().responseHandler({
261
+ 200: {
262
+ "application/json": "json",
263
+ },
264
+ }))
265
+ .then(commonHttpClient.castResponse())
266
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.createWhiteboardProperty.response"))
267
+ .then(commonHttpClient.getBody);
268
+ }
269
+ /**
270
+ * Deletes a content property for an attachment by its id.
271
+ *
272
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
273
+ * Permission to attachment the page.
274
+ *
275
+ * @path {DELETE} /attachments/{attachment-id}/properties/{property-id}
276
+ * @scopes-current read:attachment:confluence, write:attachment:confluence
277
+ */
278
+ deleteAttachmentPropertyById({ attachmentId, propertyId, }) {
279
+ return this.getClientInstance()
280
+ .request({
281
+ path: "/attachments/{attachment-id}/properties/{property-id}",
282
+ method: "DELETE",
283
+ pathParams: {
284
+ "attachment-id": attachmentId,
285
+ "property-id": propertyId,
286
+ },
287
+ })
288
+ .then(commonHttpClient.discardResult);
289
+ }
290
+ /**
291
+ * Deletes a content property for a blogpost by its id.
292
+ *
293
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
294
+ * Permission to edit the blog post.
295
+ *
296
+ * @path {DELETE} /blogposts/{blogpost-id}/properties/{property-id}
297
+ * @scopes-current read:page:confluence, write:page:confluence
298
+ */
299
+ deleteBlogpostPropertyById({ blogpostId, propertyId, }) {
300
+ return this.getClientInstance()
301
+ .request({
302
+ path: "/blogposts/{blogpost-id}/properties/{property-id}",
303
+ method: "DELETE",
304
+ pathParams: {
305
+ "blogpost-id": blogpostId,
306
+ "property-id": propertyId,
307
+ },
308
+ })
309
+ .then(commonHttpClient.discardResult);
310
+ }
311
+ /**
312
+ * Deletes a content property for a comment by its id.
313
+ *
314
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
315
+ * Permission to edit the comment.
316
+ *
317
+ * @path {DELETE} /comments/{comment-id}/properties/{property-id}
318
+ * @scopes-current read:comment:confluence, write:comment:confluence
319
+ */
320
+ deleteCommentPropertyById({ commentId, propertyId, }) {
321
+ return this.getClientInstance()
322
+ .request({
323
+ path: "/comments/{comment-id}/properties/{property-id}",
324
+ method: "DELETE",
325
+ pathParams: {
326
+ "comment-id": commentId,
327
+ "property-id": propertyId,
328
+ },
329
+ })
330
+ .then(commonHttpClient.discardResult);
331
+ }
332
+ /**
333
+ * Deletes a content property for a piece of custom content by its id.
334
+ *
335
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
336
+ * Permission to edit the custom content.
337
+ *
338
+ * @path {DELETE} /custom-content/{custom-content-id}/properties/{property-id}
339
+ * @scopes-current read:custom-content:confluence, write:custom-content:confluence
340
+ */
341
+ deleteCustomContentPropertyById({ customContentId, propertyId, }) {
342
+ return this.getClientInstance()
343
+ .request({
344
+ path: "/custom-content/{custom-content-id}/properties/{property-id}",
345
+ method: "DELETE",
346
+ pathParams: {
347
+ "custom-content-id": customContentId,
348
+ "property-id": propertyId,
349
+ },
350
+ })
351
+ .then(commonHttpClient.discardResult);
352
+ }
353
+ /**
354
+ * Deletes a content property for a database by its id.
355
+ *
356
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
357
+ * Permission to edit the database.
358
+ *
359
+ * @path {DELETE} /databases/{database-id}/properties/{property-id}
360
+ * @scopes-current read:database:confluence, write:database:confluence
361
+ */
362
+ deleteDatabasePropertyById({ databaseId, propertyId, }) {
363
+ return this.getClientInstance()
364
+ .request({
365
+ path: "/databases/{database-id}/properties/{property-id}",
366
+ method: "DELETE",
367
+ pathParams: {
368
+ "database-id": databaseId,
369
+ "property-id": propertyId,
370
+ },
371
+ })
372
+ .then(commonHttpClient.discardResult);
373
+ }
374
+ /**
375
+ * Deletes a content property for a page by its id.
376
+ *
377
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
378
+ * Permission to edit the page.
379
+ *
380
+ * @path {DELETE} /pages/{page-id}/properties/{property-id}
381
+ * @scopes-current read:page:confluence, write:page:confluence
382
+ */
383
+ deletePagePropertyById({ pageId, propertyId, }) {
384
+ return this.getClientInstance()
385
+ .request({
386
+ path: "/pages/{page-id}/properties/{property-id}",
387
+ method: "DELETE",
388
+ pathParams: {
389
+ "page-id": pageId,
390
+ "property-id": propertyId,
391
+ },
392
+ })
393
+ .then(commonHttpClient.discardResult);
394
+ }
395
+ /**
396
+ * Deletes a content property for a Smart Link in the content tree by its id.
397
+ *
398
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
399
+ * Permission to edit the Smart Link in the content tree.
400
+ *
401
+ * @path {DELETE} /embeds/{embed-id}/properties/{property-id}
402
+ * @scopes-current read:embed:confluence, write:embed:confluence
403
+ */
404
+ deleteSmartLinkPropertyById({ embedId, propertyId, }) {
405
+ return this.getClientInstance()
406
+ .request({
407
+ path: "/embeds/{embed-id}/properties/{property-id}",
408
+ method: "DELETE",
409
+ pathParams: {
410
+ "embed-id": embedId,
411
+ "property-id": propertyId,
412
+ },
413
+ })
414
+ .then(commonHttpClient.discardResult);
415
+ }
416
+ /**
417
+ * Deletes a content property for a whiteboard by its id.
418
+ *
419
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
420
+ * Permission to edit the whiteboard.
421
+ *
422
+ * @path {DELETE} /whiteboards/{whiteboard-id}/properties/{property-id}
423
+ * @scopes-current read:whiteboard:confluence, write:whiteboard:confluence
424
+ */
425
+ deleteWhiteboardPropertyById({ whiteboardId, propertyId, }) {
426
+ return this.getClientInstance()
427
+ .request({
428
+ path: "/whiteboards/{whiteboard-id}/properties/{property-id}",
429
+ method: "DELETE",
430
+ pathParams: {
431
+ "whiteboard-id": whiteboardId,
432
+ "property-id": propertyId,
433
+ },
434
+ })
435
+ .then(commonHttpClient.discardResult);
436
+ }
437
+ /**
438
+ * Retrieves all Content Properties tied to a specified attachment.
439
+ *
440
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
441
+ * Permission to view the attachment.
442
+ *
443
+ * @returns Returned if the requested content properties are successfully retrieved.
444
+ * @path {GET} /attachments/{attachment-id}/properties
445
+ * @scopes-current read:attachment:confluence
446
+ */
447
+ getAttachmentContentProperties({ attachmentId, key, sort, cursor, limit, }) {
448
+ return this.getClientInstance()
449
+ .request({
450
+ path: "/attachments/{attachment-id}/properties",
451
+ method: "GET",
452
+ pathParams: {
453
+ "attachment-id": attachmentId,
454
+ },
455
+ query: {
456
+ key,
457
+ sort,
458
+ cursor,
459
+ limit,
460
+ },
461
+ })
462
+ .then(this.getClientInstance().responseHandler({
463
+ 200: {
464
+ "application/json": "json",
465
+ },
466
+ }))
467
+ .then(commonHttpClient.castResponse())
468
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.getAttachmentContentProperties.response"))
469
+ .then(commonHttpClient.getBody);
470
+ }
471
+ /**
472
+ * Retrieves a specific Content Property by ID that is attached to a specified
473
+ * attachment.
474
+ *
475
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
476
+ * Permission to view the attachment.
477
+ *
478
+ * @returns Returned if the requested content property is successfully retrieved.
479
+ * @path {GET} /attachments/{attachment-id}/properties/{property-id}
480
+ * @scopes-current read:attachment:confluence
481
+ */
482
+ getAttachmentContentPropertiesById({ attachmentId, propertyId, }) {
483
+ return this.getClientInstance()
484
+ .request({
485
+ path: "/attachments/{attachment-id}/properties/{property-id}",
486
+ method: "GET",
487
+ pathParams: {
488
+ "attachment-id": attachmentId,
489
+ "property-id": propertyId,
490
+ },
491
+ })
492
+ .then(this.getClientInstance().responseHandler({
493
+ 200: {
494
+ "application/json": "json",
495
+ },
496
+ }))
497
+ .then(commonHttpClient.castResponse())
498
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.getAttachmentContentPropertiesById.response"))
499
+ .then(commonHttpClient.getBody);
500
+ }
501
+ /**
502
+ * Retrieves all Content Properties tied to a specified blog post.
503
+ *
504
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
505
+ * Permission to view the blog post.
506
+ *
507
+ * @returns Returned if the requested content properties are successfully retrieved.
508
+ * @path {GET} /blogposts/{blogpost-id}/properties
509
+ * @scopes-current read:page:confluence
510
+ */
511
+ getBlogpostContentProperties({ blogpostId, key, sort, cursor, limit, }) {
512
+ return this.getClientInstance()
513
+ .request({
514
+ path: "/blogposts/{blogpost-id}/properties",
515
+ method: "GET",
516
+ pathParams: {
517
+ "blogpost-id": blogpostId,
518
+ },
519
+ query: {
520
+ key,
521
+ sort,
522
+ cursor,
523
+ limit,
524
+ },
525
+ })
526
+ .then(this.getClientInstance().responseHandler({
527
+ 200: {
528
+ "application/json": "json",
529
+ },
530
+ }))
531
+ .then(commonHttpClient.castResponse())
532
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.getBlogpostContentProperties.response"))
533
+ .then(commonHttpClient.getBody);
534
+ }
535
+ /**
536
+ * Retrieves a specific Content Property by ID that is attached to a specified
537
+ * blog post.
538
+ *
539
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
540
+ * Permission to view the blog post.
541
+ *
542
+ * @returns Returned if the requested content property is successfully retrieved.
543
+ * @path {GET} /blogposts/{blogpost-id}/properties/{property-id}
544
+ * @scopes-current read:page:confluence
545
+ */
546
+ getBlogpostContentPropertiesById({ blogpostId, propertyId, }) {
547
+ return this.getClientInstance()
548
+ .request({
549
+ path: "/blogposts/{blogpost-id}/properties/{property-id}",
550
+ method: "GET",
551
+ pathParams: {
552
+ "blogpost-id": blogpostId,
553
+ "property-id": propertyId,
554
+ },
555
+ })
556
+ .then(this.getClientInstance().responseHandler({
557
+ 200: {
558
+ "application/json": "json",
559
+ },
560
+ }))
561
+ .then(commonHttpClient.castResponse())
562
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.getBlogpostContentPropertiesById.response"))
563
+ .then(commonHttpClient.getBody);
564
+ }
565
+ /**
566
+ * Retrieves Content Properties attached to a specified comment.
567
+ *
568
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
569
+ * Permission to view the comment.
570
+ *
571
+ * @returns Returned if the requested content properties are successfully retrieved.
572
+ * @path {GET} /comments/{comment-id}/properties
573
+ * @scopes-current read:comment:confluence
574
+ */
575
+ getCommentContentProperties({ commentId, key, sort, cursor, limit, }) {
576
+ return this.getClientInstance()
577
+ .request({
578
+ path: "/comments/{comment-id}/properties",
579
+ method: "GET",
580
+ pathParams: {
581
+ "comment-id": commentId,
582
+ },
583
+ query: {
584
+ key,
585
+ sort,
586
+ cursor,
587
+ limit,
588
+ },
589
+ })
590
+ .then(this.getClientInstance().responseHandler({
591
+ 200: {
592
+ "application/json": "json",
593
+ },
594
+ }))
595
+ .then(commonHttpClient.castResponse())
596
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.getCommentContentProperties.response"))
597
+ .then(commonHttpClient.getBody);
598
+ }
599
+ /**
600
+ * Retrieves a specific Content Property by ID that is attached to a specified
601
+ * comment.
602
+ *
603
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
604
+ * Permission to view the comment.
605
+ *
606
+ * @returns Returned if the requested content property is successfully retrieved.
607
+ * @path {GET} /comments/{comment-id}/properties/{property-id}
608
+ * @scopes-current read:comment:confluence
609
+ */
610
+ getCommentContentPropertiesById({ commentId, propertyId, }) {
611
+ return this.getClientInstance()
612
+ .request({
613
+ path: "/comments/{comment-id}/properties/{property-id}",
614
+ method: "GET",
615
+ pathParams: {
616
+ "comment-id": commentId,
617
+ "property-id": propertyId,
618
+ },
619
+ })
620
+ .then(this.getClientInstance().responseHandler({
621
+ 200: {
622
+ "application/json": "json",
623
+ },
624
+ }))
625
+ .then(commonHttpClient.castResponse())
626
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.getCommentContentPropertiesById.response"))
627
+ .then(commonHttpClient.getBody);
628
+ }
629
+ /**
630
+ * Retrieves Content Properties tied to a specified custom content.
631
+ *
632
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
633
+ * Permission to view the custom content.
634
+ *
635
+ * @returns Returned if the requested content properties are successfully retrieved.
636
+ * @path {GET} /custom-content/{custom-content-id}/properties
637
+ * @scopes-current read:custom-content:confluence
638
+ */
639
+ getCustomContentContentProperties({ customContentId, key, sort, cursor, limit, }) {
640
+ return this.getClientInstance()
641
+ .request({
642
+ path: "/custom-content/{custom-content-id}/properties",
643
+ method: "GET",
644
+ pathParams: {
645
+ "custom-content-id": customContentId,
646
+ },
647
+ query: {
648
+ key,
649
+ sort,
650
+ cursor,
651
+ limit,
652
+ },
653
+ })
654
+ .then(this.getClientInstance().responseHandler({
655
+ 200: {
656
+ "application/json": "json",
657
+ },
658
+ }))
659
+ .then(commonHttpClient.castResponse())
660
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.getCustomContentContentProperties.response"))
661
+ .then(commonHttpClient.getBody);
662
+ }
663
+ /**
664
+ * Retrieves a specific Content Property by ID that is attached to a specified
665
+ * custom content.
666
+ *
667
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
668
+ * Permission to view the page.
669
+ *
670
+ * @returns Returned if the requested content property is successfully retrieved.
671
+ * @path {GET} /custom-content/{custom-content-id}/properties/{property-id}
672
+ * @scopes-current read:custom-content:confluence
673
+ */
674
+ getCustomContentContentPropertiesById({ customContentId, propertyId, }) {
675
+ return this.getClientInstance()
676
+ .request({
677
+ path: "/custom-content/{custom-content-id}/properties/{property-id}",
678
+ method: "GET",
679
+ pathParams: {
680
+ "custom-content-id": customContentId,
681
+ "property-id": propertyId,
682
+ },
683
+ })
684
+ .then(this.getClientInstance().responseHandler({
685
+ 200: {
686
+ "application/json": "json",
687
+ },
688
+ }))
689
+ .then(commonHttpClient.castResponse())
690
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.getCustomContentContentPropertiesById.response"))
691
+ .then(commonHttpClient.getBody);
692
+ }
693
+ /**
694
+ * Retrieves Content Properties tied to a specified database.
695
+ *
696
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
697
+ * Permission to view the database.
698
+ *
699
+ * @returns Returned if the requested content properties are successfully retrieved.
700
+ * @path {GET} /databases/{id}/properties
701
+ * @scopes-current read:database:confluence
702
+ */
703
+ getDatabaseContentProperties({ id, key, sort, cursor, limit, }) {
704
+ return this.getClientInstance()
705
+ .request({
706
+ path: "/databases/{id}/properties",
707
+ method: "GET",
708
+ pathParams: {
709
+ id,
710
+ },
711
+ query: {
712
+ key,
713
+ sort,
714
+ cursor,
715
+ limit,
716
+ },
717
+ })
718
+ .then(this.getClientInstance().responseHandler({
719
+ 200: {
720
+ "application/json": "json",
721
+ },
722
+ }))
723
+ .then(commonHttpClient.castResponse())
724
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.getDatabaseContentProperties.response"))
725
+ .then(commonHttpClient.getBody);
726
+ }
727
+ /**
728
+ * Retrieves a specific Content Property by ID that is attached to a specified
729
+ * database.
730
+ *
731
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
732
+ * Permission to view the database.
733
+ *
734
+ * @returns Returned if the requested content property is successfully retrieved.
735
+ * @path {GET} /databases/{database-id}/properties/{property-id}
736
+ * @scopes-current read:database:confluence
737
+ */
738
+ getDatabaseContentPropertiesById({ databaseId, propertyId, }) {
739
+ return this.getClientInstance()
740
+ .request({
741
+ path: "/databases/{database-id}/properties/{property-id}",
742
+ method: "GET",
743
+ pathParams: {
744
+ "database-id": databaseId,
745
+ "property-id": propertyId,
746
+ },
747
+ })
748
+ .then(this.getClientInstance().responseHandler({
749
+ 200: {
750
+ "application/json": "json",
751
+ },
752
+ }))
753
+ .then(commonHttpClient.castResponse())
754
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.getDatabaseContentPropertiesById.response"))
755
+ .then(commonHttpClient.getBody);
756
+ }
757
+ /**
758
+ * Retrieves Content Properties tied to a specified page.
759
+ *
760
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
761
+ * Permission to view the page.
762
+ *
763
+ * @returns Returned if the requested content properties are successfully retrieved.
764
+ * @path {GET} /pages/{page-id}/properties
765
+ * @scopes-current read:page:confluence
766
+ */
767
+ getPageContentProperties({ pageId, key, sort, cursor, limit, }) {
768
+ return this.getClientInstance()
769
+ .request({
770
+ path: "/pages/{page-id}/properties",
771
+ method: "GET",
772
+ pathParams: {
773
+ "page-id": pageId,
774
+ },
775
+ query: {
776
+ key,
777
+ sort,
778
+ cursor,
779
+ limit,
780
+ },
781
+ })
782
+ .then(this.getClientInstance().responseHandler({
783
+ 200: {
784
+ "application/json": "json",
785
+ },
786
+ }))
787
+ .then(commonHttpClient.castResponse())
788
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.getPageContentProperties.response"))
789
+ .then(commonHttpClient.getBody);
790
+ }
791
+ /**
792
+ * Retrieves a specific Content Property by ID that is attached to a specified
793
+ * page.
794
+ *
795
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
796
+ * Permission to view the page.
797
+ *
798
+ * @returns Returned if the requested content property is successfully retrieved.
799
+ * @path {GET} /pages/{page-id}/properties/{property-id}
800
+ * @scopes-current read:page:confluence
801
+ */
802
+ getPageContentPropertiesById({ pageId, propertyId, }) {
803
+ return this.getClientInstance()
804
+ .request({
805
+ path: "/pages/{page-id}/properties/{property-id}",
806
+ method: "GET",
807
+ pathParams: {
808
+ "page-id": pageId,
809
+ "property-id": propertyId,
810
+ },
811
+ })
812
+ .then(this.getClientInstance().responseHandler({
813
+ 200: {
814
+ "application/json": "json",
815
+ },
816
+ }))
817
+ .then(commonHttpClient.castResponse())
818
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.getPageContentPropertiesById.response"))
819
+ .then(commonHttpClient.getBody);
820
+ }
821
+ /**
822
+ * Retrieves Content Properties tied to a specified Smart Link in the content tree.
823
+ *
824
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
825
+ * Permission to view the Smart Link in the content tree.
826
+ *
827
+ * @returns Returned if the requested content properties are successfully retrieved.
828
+ * @path {GET} /embeds/{id}/properties
829
+ * @scopes-current read:embed:confluence
830
+ */
831
+ getSmartLinkContentProperties({ id, key, sort, cursor, limit, }) {
832
+ return this.getClientInstance()
833
+ .request({
834
+ path: "/embeds/{id}/properties",
835
+ method: "GET",
836
+ pathParams: {
837
+ id,
838
+ },
839
+ query: {
840
+ key,
841
+ sort,
842
+ cursor,
843
+ limit,
844
+ },
845
+ })
846
+ .then(this.getClientInstance().responseHandler({
847
+ 200: {
848
+ "application/json": "json",
849
+ },
850
+ }))
851
+ .then(commonHttpClient.castResponse())
852
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.getSmartLinkContentProperties.response"))
853
+ .then(commonHttpClient.getBody);
854
+ }
855
+ /**
856
+ * Retrieves a specific Content Property by ID that is attached to a specified
857
+ * Smart Link in the content tree.
858
+ *
859
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
860
+ * Permission to view the Smart Link in the content tree.
861
+ *
862
+ * @returns Returned if the requested content property is successfully retrieved.
863
+ * @path {GET} /embeds/{embed-id}/properties/{property-id}
864
+ * @scopes-current read:embed:confluence
865
+ */
866
+ getSmartLinkContentPropertiesById({ embedId, propertyId, }) {
867
+ return this.getClientInstance()
868
+ .request({
869
+ path: "/embeds/{embed-id}/properties/{property-id}",
870
+ method: "GET",
871
+ pathParams: {
872
+ "embed-id": embedId,
873
+ "property-id": propertyId,
874
+ },
875
+ })
876
+ .then(this.getClientInstance().responseHandler({
877
+ 200: {
878
+ "application/json": "json",
879
+ },
880
+ }))
881
+ .then(commonHttpClient.castResponse())
882
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.getSmartLinkContentPropertiesById.response"))
883
+ .then(commonHttpClient.getBody);
884
+ }
885
+ /**
886
+ * Retrieves Content Properties tied to a specified whiteboard.
887
+ *
888
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
889
+ * Permission to view the whiteboard.
890
+ *
891
+ * @returns Returned if the requested content properties are successfully retrieved.
892
+ * @path {GET} /whiteboards/{id}/properties
893
+ * @scopes-current read:whiteboard:confluence
894
+ */
895
+ getWhiteboardContentProperties({ id, key, sort, cursor, limit, }) {
896
+ return this.getClientInstance()
897
+ .request({
898
+ path: "/whiteboards/{id}/properties",
899
+ method: "GET",
900
+ pathParams: {
901
+ id,
902
+ },
903
+ query: {
904
+ key,
905
+ sort,
906
+ cursor,
907
+ limit,
908
+ },
909
+ })
910
+ .then(this.getClientInstance().responseHandler({
911
+ 200: {
912
+ "application/json": "json",
913
+ },
914
+ }))
915
+ .then(commonHttpClient.castResponse())
916
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.getWhiteboardContentProperties.response"))
917
+ .then(commonHttpClient.getBody);
918
+ }
919
+ /**
920
+ * Retrieves a specific Content Property by ID that is attached to a specified
921
+ * whiteboard.
922
+ *
923
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
924
+ * Permission to view the whiteboard.
925
+ *
926
+ * @returns Returned if the requested content property is successfully retrieved.
927
+ * @path {GET} /whiteboards/{whiteboard-id}/properties/{property-id}
928
+ * @scopes-current read:whiteboard:confluence
929
+ */
930
+ getWhiteboardContentPropertiesById({ whiteboardId, propertyId, }) {
931
+ return this.getClientInstance()
932
+ .request({
933
+ path: "/whiteboards/{whiteboard-id}/properties/{property-id}",
934
+ method: "GET",
935
+ pathParams: {
936
+ "whiteboard-id": whiteboardId,
937
+ "property-id": propertyId,
938
+ },
939
+ })
940
+ .then(this.getClientInstance().responseHandler({
941
+ 200: {
942
+ "application/json": "json",
943
+ },
944
+ }))
945
+ .then(commonHttpClient.castResponse())
946
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.getWhiteboardContentPropertiesById.response"))
947
+ .then(commonHttpClient.getBody);
948
+ }
949
+ /**
950
+ * Update a content property for attachment by its id.
951
+ *
952
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
953
+ * Permission to edit the attachment.
954
+ *
955
+ * @returns Returned if the content property was updated successfully.
956
+ * @path {PUT} /attachments/{attachment-id}/properties/{property-id}
957
+ * @scopes-current read:attachment:confluence, write:attachment:confluence
958
+ */
959
+ updateAttachmentPropertyById({ attachmentId, propertyId, contentPropertyUpdateRequest, }) {
960
+ return this.getClientInstance()
961
+ .request({
962
+ path: "/attachments/{attachment-id}/properties/{property-id}",
963
+ method: "PUT",
964
+ pathParams: {
965
+ "attachment-id": attachmentId,
966
+ "property-id": propertyId,
967
+ },
968
+ headers: {
969
+ "Content-Type": "application/json",
970
+ },
971
+ body: contentPropertyUpdateRequest,
972
+ })
973
+ .then(this.getClientInstance().responseHandler({
974
+ 200: {
975
+ "application/json": "json",
976
+ },
977
+ }))
978
+ .then(commonHttpClient.castResponse())
979
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.updateAttachmentPropertyById.response"))
980
+ .then(commonHttpClient.getBody);
981
+ }
982
+ /**
983
+ * Update a content property for blog post by its id.
984
+ *
985
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
986
+ * Permission to edit the blog post.
987
+ *
988
+ * @returns Returned if the content property was updated successfully.
989
+ * @path {PUT} /blogposts/{blogpost-id}/properties/{property-id}
990
+ * @scopes-current read:page:confluence, write:page:confluence
991
+ */
992
+ updateBlogpostPropertyById({ blogpostId, propertyId, contentPropertyUpdateRequest, }) {
993
+ return this.getClientInstance()
994
+ .request({
995
+ path: "/blogposts/{blogpost-id}/properties/{property-id}",
996
+ method: "PUT",
997
+ pathParams: {
998
+ "blogpost-id": blogpostId,
999
+ "property-id": propertyId,
1000
+ },
1001
+ headers: {
1002
+ "Content-Type": "application/json",
1003
+ },
1004
+ body: contentPropertyUpdateRequest,
1005
+ })
1006
+ .then(this.getClientInstance().responseHandler({
1007
+ 200: {
1008
+ "application/json": "json",
1009
+ },
1010
+ }))
1011
+ .then(commonHttpClient.castResponse())
1012
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.updateBlogpostPropertyById.response"))
1013
+ .then(commonHttpClient.getBody);
1014
+ }
1015
+ /**
1016
+ * Update a content property for a comment by its id.
1017
+ *
1018
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
1019
+ * Permission to edit the comment.
1020
+ *
1021
+ * @returns Returned if the content property was updated successfully.
1022
+ * @path {PUT} /comments/{comment-id}/properties/{property-id}
1023
+ * @scopes-current read:comment:confluence, write:comment:confluence
1024
+ */
1025
+ updateCommentPropertyById({ commentId, propertyId, contentPropertyUpdateRequest, }) {
1026
+ return this.getClientInstance()
1027
+ .request({
1028
+ path: "/comments/{comment-id}/properties/{property-id}",
1029
+ method: "PUT",
1030
+ pathParams: {
1031
+ "comment-id": commentId,
1032
+ "property-id": propertyId,
1033
+ },
1034
+ headers: {
1035
+ "Content-Type": "application/json",
1036
+ },
1037
+ body: contentPropertyUpdateRequest,
1038
+ })
1039
+ .then(this.getClientInstance().responseHandler({
1040
+ 200: {
1041
+ "application/json": "json",
1042
+ },
1043
+ }))
1044
+ .then(commonHttpClient.castResponse())
1045
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.updateCommentPropertyById.response"))
1046
+ .then(commonHttpClient.getBody);
1047
+ }
1048
+ /**
1049
+ * Update a content property for a piece of custom content by its id.
1050
+ *
1051
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
1052
+ * Permission to edit the custom content.
1053
+ *
1054
+ * @returns Returned if the content property was updated successfully.
1055
+ * @path {PUT} /custom-content/{custom-content-id}/properties/{property-id}
1056
+ * @scopes-current read:custom-content:confluence, write:custom-content:confluence
1057
+ */
1058
+ updateCustomContentPropertyById({ customContentId, propertyId, contentPropertyUpdateRequest, }) {
1059
+ return this.getClientInstance()
1060
+ .request({
1061
+ path: "/custom-content/{custom-content-id}/properties/{property-id}",
1062
+ method: "PUT",
1063
+ pathParams: {
1064
+ "custom-content-id": customContentId,
1065
+ "property-id": propertyId,
1066
+ },
1067
+ headers: {
1068
+ "Content-Type": "application/json",
1069
+ },
1070
+ body: contentPropertyUpdateRequest,
1071
+ })
1072
+ .then(this.getClientInstance().responseHandler({
1073
+ 200: {
1074
+ "application/json": "json",
1075
+ },
1076
+ }))
1077
+ .then(commonHttpClient.castResponse())
1078
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.updateCustomContentPropertyById.response"))
1079
+ .then(commonHttpClient.getBody);
1080
+ }
1081
+ /**
1082
+ * Update a content property for a database by its id.
1083
+ *
1084
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
1085
+ * Permission to edit the database.
1086
+ *
1087
+ * @returns Returned if the content property was updated successfully.
1088
+ * @path {PUT} /databases/{database-id}/properties/{property-id}
1089
+ * @scopes-current read:database:confluence, write:database:confluence
1090
+ */
1091
+ updateDatabasePropertyById({ databaseId, propertyId, contentPropertyUpdateRequest, }) {
1092
+ return this.getClientInstance()
1093
+ .request({
1094
+ path: "/databases/{database-id}/properties/{property-id}",
1095
+ method: "PUT",
1096
+ pathParams: {
1097
+ "database-id": databaseId,
1098
+ "property-id": propertyId,
1099
+ },
1100
+ headers: {
1101
+ "Content-Type": "application/json",
1102
+ },
1103
+ body: contentPropertyUpdateRequest,
1104
+ })
1105
+ .then(this.getClientInstance().responseHandler({
1106
+ 200: {
1107
+ "application/json": "json",
1108
+ },
1109
+ }))
1110
+ .then(commonHttpClient.castResponse())
1111
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.updateDatabasePropertyById.response"))
1112
+ .then(commonHttpClient.getBody);
1113
+ }
1114
+ /**
1115
+ * Update a content property for a page by its id.
1116
+ *
1117
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
1118
+ * Permission to edit the page.
1119
+ *
1120
+ * @returns Returned if the content property was updated successfully.
1121
+ * @path {PUT} /pages/{page-id}/properties/{property-id}
1122
+ * @scopes-current read:page:confluence, write:page:confluence
1123
+ */
1124
+ updatePagePropertyById({ pageId, propertyId, contentPropertyUpdateRequest, }) {
1125
+ return this.getClientInstance()
1126
+ .request({
1127
+ path: "/pages/{page-id}/properties/{property-id}",
1128
+ method: "PUT",
1129
+ pathParams: {
1130
+ "page-id": pageId,
1131
+ "property-id": propertyId,
1132
+ },
1133
+ headers: {
1134
+ "Content-Type": "application/json",
1135
+ },
1136
+ body: contentPropertyUpdateRequest,
1137
+ })
1138
+ .then(this.getClientInstance().responseHandler({
1139
+ 200: {
1140
+ "application/json": "json",
1141
+ },
1142
+ }))
1143
+ .then(commonHttpClient.castResponse())
1144
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.updatePagePropertyById.response"))
1145
+ .then(commonHttpClient.getBody);
1146
+ }
1147
+ /**
1148
+ * Update a content property for a Smart Link in the content tree by its id.
1149
+ *
1150
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
1151
+ * Permission to edit the Smart Link in the content tree.
1152
+ *
1153
+ * @returns Returned if the content property was updated successfully.
1154
+ * @path {PUT} /embeds/{embed-id}/properties/{property-id}
1155
+ * @scopes-current read:embed:confluence, write:embed:confluence
1156
+ */
1157
+ updateSmartLinkPropertyById({ embedId, propertyId, contentPropertyUpdateRequest, }) {
1158
+ return this.getClientInstance()
1159
+ .request({
1160
+ path: "/embeds/{embed-id}/properties/{property-id}",
1161
+ method: "PUT",
1162
+ pathParams: {
1163
+ "embed-id": embedId,
1164
+ "property-id": propertyId,
1165
+ },
1166
+ headers: {
1167
+ "Content-Type": "application/json",
1168
+ },
1169
+ body: contentPropertyUpdateRequest,
1170
+ })
1171
+ .then(this.getClientInstance().responseHandler({
1172
+ 200: {
1173
+ "application/json": "json",
1174
+ },
1175
+ }))
1176
+ .then(commonHttpClient.castResponse())
1177
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.updateSmartLinkPropertyById.response"))
1178
+ .then(commonHttpClient.getBody);
1179
+ }
1180
+ /**
1181
+ * Update a content property for a whiteboard by its id.
1182
+ *
1183
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
1184
+ * Permission to edit the whiteboard.
1185
+ *
1186
+ * @returns Returned if the content property was updated successfully.
1187
+ * @path {PUT} /whiteboards/{whiteboard-id}/properties/{property-id}
1188
+ * @scopes-current read:whiteboard:confluence, write:whiteboard:confluence
1189
+ */
1190
+ updateWhiteboardPropertyById({ whiteboardId, propertyId, contentPropertyUpdateRequest, }) {
1191
+ return this.getClientInstance()
1192
+ .request({
1193
+ path: "/whiteboards/{whiteboard-id}/properties/{property-id}",
1194
+ method: "PUT",
1195
+ pathParams: {
1196
+ "whiteboard-id": whiteboardId,
1197
+ "property-id": propertyId,
1198
+ },
1199
+ headers: {
1200
+ "Content-Type": "application/json",
1201
+ },
1202
+ body: contentPropertyUpdateRequest,
1203
+ })
1204
+ .then(this.getClientInstance().responseHandler({
1205
+ 200: {
1206
+ "application/json": "json",
1207
+ },
1208
+ }))
1209
+ .then(commonHttpClient.castResponse())
1210
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.updateWhiteboardPropertyById.response"))
1211
+ .then(commonHttpClient.getBody);
1212
+ }
1213
+ static initialize() {
1214
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentPropertiesService.getAttachmentContentProperties.response", zod_1.z
1215
+ .object({
1216
+ status: zod_1.z.literal(200),
1217
+ mediaType: zod_1.z.literal("application/json"),
1218
+ body: zod_1.z
1219
+ .object({
1220
+ results: zod_1.z
1221
+ .array(validationSchemaStorage_1.validationSchemaStorage.lazy("ContentProperty"))
1222
+ .optional(),
1223
+ _links: validationSchemaStorage_1.validationSchemaStorage
1224
+ .lazy("MultiEntityLinks")
1225
+ .optional(),
1226
+ })
1227
+ .catchall(zod_1.z.unknown()),
1228
+ })
1229
+ .describe("ContentPropertiesService.getAttachmentContentProperties.response"));
1230
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentPropertiesService.createAttachmentProperty.response", zod_1.z
1231
+ .object({
1232
+ status: zod_1.z.literal(200),
1233
+ mediaType: zod_1.z.literal("application/json"),
1234
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentProperty"),
1235
+ })
1236
+ .describe("ContentPropertiesService.createAttachmentProperty.response"));
1237
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentPropertiesService.getAttachmentContentPropertiesById.response", zod_1.z
1238
+ .object({
1239
+ status: zod_1.z.literal(200),
1240
+ mediaType: zod_1.z.literal("application/json"),
1241
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentProperty"),
1242
+ })
1243
+ .describe("ContentPropertiesService.getAttachmentContentPropertiesById.response"));
1244
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentPropertiesService.updateAttachmentPropertyById.response", zod_1.z
1245
+ .object({
1246
+ status: zod_1.z.literal(200),
1247
+ mediaType: zod_1.z.literal("application/json"),
1248
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentProperty"),
1249
+ })
1250
+ .describe("ContentPropertiesService.updateAttachmentPropertyById.response"));
1251
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentPropertiesService.getBlogpostContentProperties.response", zod_1.z
1252
+ .object({
1253
+ status: zod_1.z.literal(200),
1254
+ mediaType: zod_1.z.literal("application/json"),
1255
+ body: zod_1.z
1256
+ .object({
1257
+ results: zod_1.z
1258
+ .array(validationSchemaStorage_1.validationSchemaStorage.lazy("ContentProperty"))
1259
+ .optional(),
1260
+ _links: validationSchemaStorage_1.validationSchemaStorage
1261
+ .lazy("MultiEntityLinks")
1262
+ .optional(),
1263
+ })
1264
+ .catchall(zod_1.z.unknown()),
1265
+ })
1266
+ .describe("ContentPropertiesService.getBlogpostContentProperties.response"));
1267
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentPropertiesService.createBlogpostProperty.response", zod_1.z
1268
+ .object({
1269
+ status: zod_1.z.literal(200),
1270
+ mediaType: zod_1.z.literal("application/json"),
1271
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentProperty"),
1272
+ })
1273
+ .describe("ContentPropertiesService.createBlogpostProperty.response"));
1274
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentPropertiesService.getBlogpostContentPropertiesById.response", zod_1.z
1275
+ .object({
1276
+ status: zod_1.z.literal(200),
1277
+ mediaType: zod_1.z.literal("application/json"),
1278
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentProperty"),
1279
+ })
1280
+ .describe("ContentPropertiesService.getBlogpostContentPropertiesById.response"));
1281
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentPropertiesService.updateBlogpostPropertyById.response", zod_1.z
1282
+ .object({
1283
+ status: zod_1.z.literal(200),
1284
+ mediaType: zod_1.z.literal("application/json"),
1285
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentProperty"),
1286
+ })
1287
+ .describe("ContentPropertiesService.updateBlogpostPropertyById.response"));
1288
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentPropertiesService.getCommentContentProperties.response", zod_1.z
1289
+ .object({
1290
+ status: zod_1.z.literal(200),
1291
+ mediaType: zod_1.z.literal("application/json"),
1292
+ body: zod_1.z
1293
+ .object({
1294
+ results: zod_1.z
1295
+ .array(validationSchemaStorage_1.validationSchemaStorage.lazy("ContentProperty"))
1296
+ .optional(),
1297
+ _links: validationSchemaStorage_1.validationSchemaStorage
1298
+ .lazy("MultiEntityLinks")
1299
+ .optional(),
1300
+ })
1301
+ .catchall(zod_1.z.unknown()),
1302
+ })
1303
+ .describe("ContentPropertiesService.getCommentContentProperties.response"));
1304
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentPropertiesService.createCommentProperty.response", zod_1.z
1305
+ .object({
1306
+ status: zod_1.z.literal(200),
1307
+ mediaType: zod_1.z.literal("application/json"),
1308
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentProperty"),
1309
+ })
1310
+ .describe("ContentPropertiesService.createCommentProperty.response"));
1311
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentPropertiesService.getCommentContentPropertiesById.response", zod_1.z
1312
+ .object({
1313
+ status: zod_1.z.literal(200),
1314
+ mediaType: zod_1.z.literal("application/json"),
1315
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentProperty"),
1316
+ })
1317
+ .describe("ContentPropertiesService.getCommentContentPropertiesById.response"));
1318
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentPropertiesService.updateCommentPropertyById.response", zod_1.z
1319
+ .object({
1320
+ status: zod_1.z.literal(200),
1321
+ mediaType: zod_1.z.literal("application/json"),
1322
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentProperty"),
1323
+ })
1324
+ .describe("ContentPropertiesService.updateCommentPropertyById.response"));
1325
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentPropertiesService.getCustomContentContentProperties.response", zod_1.z
1326
+ .object({
1327
+ status: zod_1.z.literal(200),
1328
+ mediaType: zod_1.z.literal("application/json"),
1329
+ body: zod_1.z
1330
+ .object({
1331
+ results: zod_1.z
1332
+ .array(validationSchemaStorage_1.validationSchemaStorage.lazy("ContentProperty"))
1333
+ .optional(),
1334
+ _links: validationSchemaStorage_1.validationSchemaStorage
1335
+ .lazy("MultiEntityLinks")
1336
+ .optional(),
1337
+ })
1338
+ .catchall(zod_1.z.unknown()),
1339
+ })
1340
+ .describe("ContentPropertiesService.getCustomContentContentProperties.response"));
1341
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentPropertiesService.createCustomContentProperty.response", zod_1.z
1342
+ .object({
1343
+ status: zod_1.z.literal(200),
1344
+ mediaType: zod_1.z.literal("application/json"),
1345
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentProperty"),
1346
+ })
1347
+ .describe("ContentPropertiesService.createCustomContentProperty.response"));
1348
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentPropertiesService.getCustomContentContentPropertiesById.response", zod_1.z
1349
+ .object({
1350
+ status: zod_1.z.literal(200),
1351
+ mediaType: zod_1.z.literal("application/json"),
1352
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentProperty"),
1353
+ })
1354
+ .describe("ContentPropertiesService.getCustomContentContentPropertiesById.response"));
1355
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentPropertiesService.updateCustomContentPropertyById.response", zod_1.z
1356
+ .object({
1357
+ status: zod_1.z.literal(200),
1358
+ mediaType: zod_1.z.literal("application/json"),
1359
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentProperty"),
1360
+ })
1361
+ .describe("ContentPropertiesService.updateCustomContentPropertyById.response"));
1362
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentPropertiesService.getDatabaseContentPropertiesById.response", zod_1.z
1363
+ .object({
1364
+ status: zod_1.z.literal(200),
1365
+ mediaType: zod_1.z.literal("application/json"),
1366
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentProperty"),
1367
+ })
1368
+ .describe("ContentPropertiesService.getDatabaseContentPropertiesById.response"));
1369
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentPropertiesService.updateDatabasePropertyById.response", zod_1.z
1370
+ .object({
1371
+ status: zod_1.z.literal(200),
1372
+ mediaType: zod_1.z.literal("application/json"),
1373
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentProperty"),
1374
+ })
1375
+ .describe("ContentPropertiesService.updateDatabasePropertyById.response"));
1376
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentPropertiesService.getDatabaseContentProperties.response", zod_1.z
1377
+ .object({
1378
+ status: zod_1.z.literal(200),
1379
+ mediaType: zod_1.z.literal("application/json"),
1380
+ body: zod_1.z
1381
+ .object({
1382
+ results: zod_1.z
1383
+ .array(validationSchemaStorage_1.validationSchemaStorage.lazy("ContentProperty"))
1384
+ .optional(),
1385
+ _links: validationSchemaStorage_1.validationSchemaStorage
1386
+ .lazy("MultiEntityLinks")
1387
+ .optional(),
1388
+ })
1389
+ .catchall(zod_1.z.unknown()),
1390
+ })
1391
+ .describe("ContentPropertiesService.getDatabaseContentProperties.response"));
1392
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentPropertiesService.createDatabaseProperty.response", zod_1.z
1393
+ .object({
1394
+ status: zod_1.z.literal(200),
1395
+ mediaType: zod_1.z.literal("application/json"),
1396
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentProperty"),
1397
+ })
1398
+ .describe("ContentPropertiesService.createDatabaseProperty.response"));
1399
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentPropertiesService.getSmartLinkContentPropertiesById.response", zod_1.z
1400
+ .object({
1401
+ status: zod_1.z.literal(200),
1402
+ mediaType: zod_1.z.literal("application/json"),
1403
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentProperty"),
1404
+ })
1405
+ .describe("ContentPropertiesService.getSmartLinkContentPropertiesById.response"));
1406
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentPropertiesService.updateSmartLinkPropertyById.response", zod_1.z
1407
+ .object({
1408
+ status: zod_1.z.literal(200),
1409
+ mediaType: zod_1.z.literal("application/json"),
1410
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentProperty"),
1411
+ })
1412
+ .describe("ContentPropertiesService.updateSmartLinkPropertyById.response"));
1413
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentPropertiesService.getSmartLinkContentProperties.response", zod_1.z
1414
+ .object({
1415
+ status: zod_1.z.literal(200),
1416
+ mediaType: zod_1.z.literal("application/json"),
1417
+ body: zod_1.z
1418
+ .object({
1419
+ results: zod_1.z
1420
+ .array(validationSchemaStorage_1.validationSchemaStorage.lazy("ContentProperty"))
1421
+ .optional(),
1422
+ _links: validationSchemaStorage_1.validationSchemaStorage
1423
+ .lazy("MultiEntityLinks")
1424
+ .optional(),
1425
+ })
1426
+ .catchall(zod_1.z.unknown()),
1427
+ })
1428
+ .describe("ContentPropertiesService.getSmartLinkContentProperties.response"));
1429
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentPropertiesService.createSmartLinkProperty.response", zod_1.z
1430
+ .object({
1431
+ status: zod_1.z.literal(200),
1432
+ mediaType: zod_1.z.literal("application/json"),
1433
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentProperty"),
1434
+ })
1435
+ .describe("ContentPropertiesService.createSmartLinkProperty.response"));
1436
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentPropertiesService.getPageContentProperties.response", zod_1.z
1437
+ .object({
1438
+ status: zod_1.z.literal(200),
1439
+ mediaType: zod_1.z.literal("application/json"),
1440
+ body: zod_1.z
1441
+ .object({
1442
+ results: zod_1.z
1443
+ .array(validationSchemaStorage_1.validationSchemaStorage.lazy("ContentProperty"))
1444
+ .optional(),
1445
+ _links: validationSchemaStorage_1.validationSchemaStorage
1446
+ .lazy("MultiEntityLinks")
1447
+ .optional(),
1448
+ })
1449
+ .catchall(zod_1.z.unknown()),
1450
+ })
1451
+ .describe("ContentPropertiesService.getPageContentProperties.response"));
1452
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentPropertiesService.createPageProperty.response", zod_1.z
1453
+ .object({
1454
+ status: zod_1.z.literal(200),
1455
+ mediaType: zod_1.z.literal("application/json"),
1456
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentProperty"),
1457
+ })
1458
+ .describe("ContentPropertiesService.createPageProperty.response"));
1459
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentPropertiesService.getPageContentPropertiesById.response", zod_1.z
1460
+ .object({
1461
+ status: zod_1.z.literal(200),
1462
+ mediaType: zod_1.z.literal("application/json"),
1463
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentProperty"),
1464
+ })
1465
+ .describe("ContentPropertiesService.getPageContentPropertiesById.response"));
1466
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentPropertiesService.updatePagePropertyById.response", zod_1.z
1467
+ .object({
1468
+ status: zod_1.z.literal(200),
1469
+ mediaType: zod_1.z.literal("application/json"),
1470
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentProperty"),
1471
+ })
1472
+ .describe("ContentPropertiesService.updatePagePropertyById.response"));
1473
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentPropertiesService.getWhiteboardContentProperties.response", zod_1.z
1474
+ .object({
1475
+ status: zod_1.z.literal(200),
1476
+ mediaType: zod_1.z.literal("application/json"),
1477
+ body: zod_1.z
1478
+ .object({
1479
+ results: zod_1.z
1480
+ .array(validationSchemaStorage_1.validationSchemaStorage.lazy("ContentProperty"))
1481
+ .optional(),
1482
+ _links: validationSchemaStorage_1.validationSchemaStorage
1483
+ .lazy("MultiEntityLinks")
1484
+ .optional(),
1485
+ })
1486
+ .catchall(zod_1.z.unknown()),
1487
+ })
1488
+ .describe("ContentPropertiesService.getWhiteboardContentProperties.response"));
1489
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentPropertiesService.createWhiteboardProperty.response", zod_1.z
1490
+ .object({
1491
+ status: zod_1.z.literal(200),
1492
+ mediaType: zod_1.z.literal("application/json"),
1493
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentProperty"),
1494
+ })
1495
+ .describe("ContentPropertiesService.createWhiteboardProperty.response"));
1496
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentPropertiesService.getWhiteboardContentPropertiesById.response", zod_1.z
1497
+ .object({
1498
+ status: zod_1.z.literal(200),
1499
+ mediaType: zod_1.z.literal("application/json"),
1500
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentProperty"),
1501
+ })
1502
+ .describe("ContentPropertiesService.getWhiteboardContentPropertiesById.response"));
1503
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentPropertiesService.updateWhiteboardPropertyById.response", zod_1.z
1504
+ .object({
1505
+ status: zod_1.z.literal(200),
1506
+ mediaType: zod_1.z.literal("application/json"),
1507
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentProperty"),
1508
+ })
1509
+ .describe("ContentPropertiesService.updateWhiteboardPropertyById.response"));
1510
+ validationSchemaStorage_1.validationSchemaStorage.registerOnce([common_1.registerCommonValidationSchemas]);
1511
+ }
1512
+ }
1513
+ exports.ContentPropertiesService = ContentPropertiesService;
1514
+ //# sourceMappingURL=ContentPropertiesService.js.map