@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,381 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PageService = 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 page_1 = require("../models/page");
12
+ const validationSchemaStorage_1 = require("../validationSchemaStorage");
13
+ class PageService extends CommonHttpService_1.CommonHttpService {
14
+ /**
15
+ * Creates a page in the space.
16
+ *
17
+ * Pages are created as published by default unless specified as a draft in the
18
+ * status field. If creating a published page, the title must be specified.
19
+ *
20
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
21
+ * Permission to view the corresponding space. Permission to create a page in the
22
+ * space.
23
+ *
24
+ * @returns Returned if the page was successfully created.
25
+ * @path {POST} /pages
26
+ * @scopes-current write:page:confluence
27
+ */
28
+ createPage({ embedded, private: privateQuery, rootLevel, requestBody, }) {
29
+ return this.getClientInstance()
30
+ .request({
31
+ path: "/pages",
32
+ method: "POST",
33
+ query: {
34
+ embedded,
35
+ private: privateQuery,
36
+ "root-level": rootLevel,
37
+ },
38
+ headers: {
39
+ "Content-Type": "application/json",
40
+ },
41
+ body: requestBody,
42
+ })
43
+ .then(this.getClientInstance().responseHandler({
44
+ 200: {
45
+ "application/json": "json",
46
+ },
47
+ }))
48
+ .then(commonHttpClient.castResponse())
49
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("PageService.createPage.response"))
50
+ .then(commonHttpClient.getBody);
51
+ }
52
+ /**
53
+ * Delete a page by id.
54
+ *
55
+ * By default this will delete pages that are non-drafts. To delete a page that is
56
+ * a draft, the endpoint must be called on a
57
+ * draft with the following param `draft=true`. Discarded drafts are not sent to
58
+ * the trash and are permanently deleted.
59
+ *
60
+ * Deleting a page moves the page to the trash, where it can be restored later. To
61
+ * permanently delete a page (or "purge" it),
62
+ * the endpoint must be called on a **trashed** page with the following param
63
+ * `purge=true`.
64
+ *
65
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
66
+ * Permission to view the page and its corresponding space.
67
+ * Permission to delete pages in the space.
68
+ * Permission to administer the space (if attempting to purge).
69
+ *
70
+ * @path {DELETE} /pages/{id}
71
+ * @scopes-current delete:page:confluence
72
+ */
73
+ deletePage({ id, purge, draft, }) {
74
+ return this.getClientInstance()
75
+ .request({
76
+ path: "/pages/{id}",
77
+ method: "DELETE",
78
+ pathParams: {
79
+ id,
80
+ },
81
+ query: {
82
+ purge,
83
+ draft,
84
+ },
85
+ })
86
+ .then(commonHttpClient.discardResult);
87
+ }
88
+ /**
89
+ * Returns the pages of specified label. The number of results is limited by the
90
+ * `limit` parameter and additional results (if available)
91
+ * will be available through the `next` URL present in the `Link` response header.
92
+ *
93
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
94
+ * Permission to view the content of the page and its corresponding space.
95
+ *
96
+ * @returns Returned if the requested pages for specified label were successfully fetched.
97
+ * @path {GET} /labels/{id}/pages
98
+ * @scopes-current read:page:confluence
99
+ */
100
+ getLabelPages({ id, spaceId, bodyFormat, sort, cursor, limit, }) {
101
+ return this.getClientInstance()
102
+ .request({
103
+ path: "/labels/{id}/pages",
104
+ method: "GET",
105
+ pathParams: {
106
+ id,
107
+ },
108
+ query: {
109
+ "space-id": spaceId,
110
+ "body-format": bodyFormat,
111
+ sort,
112
+ cursor,
113
+ limit,
114
+ },
115
+ })
116
+ .then(this.getClientInstance().responseHandler({
117
+ 200: {
118
+ "application/json": "json",
119
+ },
120
+ }))
121
+ .then(commonHttpClient.castResponse())
122
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("PageService.getLabelPages.response"))
123
+ .then(commonHttpClient.getBody);
124
+ }
125
+ /**
126
+ * Returns a specific page.
127
+ *
128
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
129
+ * Permission to view the page and its corresponding space.
130
+ *
131
+ * @returns Returned if the requested page is returned.
132
+ * @path {GET} /pages/{id}
133
+ * @scopes-current read:page:confluence
134
+ */
135
+ getPageById({ id, bodyFormat, getDraft, version, includeLabels, includeProperties, includeOperations, includeLikes, includeVersions, includeVersion, includeFavoritedByCurrentUserStatus, }) {
136
+ return this.getClientInstance()
137
+ .request({
138
+ path: "/pages/{id}",
139
+ method: "GET",
140
+ pathParams: {
141
+ id,
142
+ },
143
+ query: {
144
+ "body-format": bodyFormat,
145
+ "get-draft": getDraft,
146
+ version,
147
+ "include-labels": includeLabels,
148
+ "include-properties": includeProperties,
149
+ "include-operations": includeOperations,
150
+ "include-likes": includeLikes,
151
+ "include-versions": includeVersions,
152
+ "include-version": includeVersion,
153
+ "include-favorited-by-current-user-status": includeFavoritedByCurrentUserStatus,
154
+ },
155
+ })
156
+ .then(this.getClientInstance().responseHandler({
157
+ 200: {
158
+ "application/json": "json",
159
+ },
160
+ }))
161
+ .then(commonHttpClient.castResponse())
162
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("PageService.getPageById.response"))
163
+ .then(commonHttpClient.getBody);
164
+ }
165
+ /**
166
+ * Returns all pages. The number of results is limited by the `limit` parameter
167
+ * and additional results (if available)
168
+ * will be available through the `next` URL present in the `Link` response header.
169
+ *
170
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
171
+ * Permission to access the Confluence site ('Can use' global permission).
172
+ * Only pages that the user has permission to view will be returned.
173
+ *
174
+ * @returns Returned if the requested pages are returned.
175
+ * @path {GET} /pages
176
+ * @scopes-current read:page:confluence
177
+ */
178
+ getPages({ id, spaceId, sort, status, title, bodyFormat, cursor, limit, }) {
179
+ return this.getClientInstance()
180
+ .request({
181
+ path: "/pages",
182
+ method: "GET",
183
+ query: {
184
+ id,
185
+ "space-id": spaceId,
186
+ sort,
187
+ status,
188
+ title,
189
+ "body-format": bodyFormat,
190
+ cursor,
191
+ limit,
192
+ },
193
+ })
194
+ .then(this.getClientInstance().responseHandler({
195
+ 200: {
196
+ "application/json": "json",
197
+ },
198
+ }))
199
+ .then(commonHttpClient.castResponse())
200
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("PageService.getPages.response"))
201
+ .then(commonHttpClient.getBody);
202
+ }
203
+ /**
204
+ * Returns all pages in a space. The number of results is limited by the `limit`
205
+ * parameter and additional results (if available)
206
+ * will be available through the `next` URL present in the `Link` response header.
207
+ *
208
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
209
+ * Permission to access the Confluence site ('Can use' global permission) and
210
+ * 'View' permission for the space.
211
+ * Only pages that the user has permission to view will be returned.
212
+ *
213
+ * @returns Returned if the requested pages are returned.
214
+ * @path {GET} /spaces/{id}/pages
215
+ * @scopes-current read:page:confluence
216
+ */
217
+ getPagesInSpace({ id, depth, sort, status, title, bodyFormat, cursor, limit, }) {
218
+ return this.getClientInstance()
219
+ .request({
220
+ path: "/spaces/{id}/pages",
221
+ method: "GET",
222
+ pathParams: {
223
+ id,
224
+ },
225
+ query: {
226
+ depth,
227
+ sort,
228
+ status,
229
+ title,
230
+ "body-format": bodyFormat,
231
+ cursor,
232
+ limit,
233
+ },
234
+ })
235
+ .then(this.getClientInstance().responseHandler({
236
+ 200: {
237
+ "application/json": "json",
238
+ },
239
+ }))
240
+ .then(commonHttpClient.castResponse())
241
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("PageService.getPagesInSpace.response"))
242
+ .then(commonHttpClient.getBody);
243
+ }
244
+ /**
245
+ * Update a page by id.
246
+ *
247
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
248
+ * Permission to view the page and its corresponding space. Permission to update
249
+ * pages in the space.
250
+ *
251
+ * @returns Returned if the requested page is successfully updated.
252
+ * @path {PUT} /pages/{id}
253
+ * @scopes-current write:page:confluence
254
+ */
255
+ updatePage({ id, requestBody, }) {
256
+ return this.getClientInstance()
257
+ .request({
258
+ path: "/pages/{id}",
259
+ method: "PUT",
260
+ pathParams: {
261
+ id,
262
+ },
263
+ headers: {
264
+ "Content-Type": "application/json",
265
+ },
266
+ body: requestBody,
267
+ })
268
+ .then(this.getClientInstance().responseHandler({
269
+ 200: {
270
+ "application/json": "json",
271
+ },
272
+ }))
273
+ .then(commonHttpClient.castResponse())
274
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("PageService.updatePage.response"))
275
+ .then(commonHttpClient.getBody);
276
+ }
277
+ static initialize() {
278
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("PageService.getLabelPages.response", zod_1.z
279
+ .object({
280
+ status: zod_1.z.literal(200),
281
+ mediaType: zod_1.z.literal("application/json"),
282
+ body: zod_1.z
283
+ .object({
284
+ results: zod_1.z
285
+ .array(validationSchemaStorage_1.validationSchemaStorage.lazy("PageBulk"))
286
+ .optional(),
287
+ _links: validationSchemaStorage_1.validationSchemaStorage
288
+ .lazy("MultiEntityLinks")
289
+ .optional(),
290
+ })
291
+ .catchall(zod_1.z.unknown()),
292
+ })
293
+ .describe("PageService.getLabelPages.response"));
294
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("PageService.getPages.response", zod_1.z
295
+ .object({
296
+ status: zod_1.z.literal(200),
297
+ mediaType: zod_1.z.literal("application/json"),
298
+ body: zod_1.z
299
+ .object({
300
+ results: zod_1.z
301
+ .array(validationSchemaStorage_1.validationSchemaStorage.lazy("PageBulk"))
302
+ .optional(),
303
+ _links: validationSchemaStorage_1.validationSchemaStorage
304
+ .lazy("MultiEntityLinks")
305
+ .optional(),
306
+ })
307
+ .catchall(zod_1.z.unknown()),
308
+ })
309
+ .describe("PageService.getPages.response"));
310
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("PageService.createPage.response", zod_1.z
311
+ .object({
312
+ status: zod_1.z.literal(200),
313
+ mediaType: zod_1.z.literal("application/json"),
314
+ body: zod_1.z.intersection(validationSchemaStorage_1.validationSchemaStorage.lazy("PageSingle"), zod_1.z
315
+ .object({
316
+ _links: zod_1.z
317
+ .object({
318
+ base: zod_1.z.string().optional(),
319
+ })
320
+ .catchall(zod_1.z.unknown())
321
+ .optional(),
322
+ })
323
+ .catchall(zod_1.z.unknown())),
324
+ })
325
+ .describe("PageService.createPage.response"));
326
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("PageService.getPageById.response", zod_1.z
327
+ .object({
328
+ status: zod_1.z.literal(200),
329
+ mediaType: zod_1.z.literal("application/json"),
330
+ body: zod_1.z.intersection(validationSchemaStorage_1.validationSchemaStorage.lazy("PageSingle"), zod_1.z
331
+ .object({
332
+ _links: zod_1.z
333
+ .object({
334
+ base: zod_1.z.string().optional(),
335
+ })
336
+ .catchall(zod_1.z.unknown())
337
+ .optional(),
338
+ })
339
+ .catchall(zod_1.z.unknown())),
340
+ })
341
+ .describe("PageService.getPageById.response"));
342
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("PageService.updatePage.response", zod_1.z
343
+ .object({
344
+ status: zod_1.z.literal(200),
345
+ mediaType: zod_1.z.literal("application/json"),
346
+ body: zod_1.z.intersection(validationSchemaStorage_1.validationSchemaStorage.lazy("PageSingle"), zod_1.z
347
+ .object({
348
+ _links: zod_1.z
349
+ .object({
350
+ base: zod_1.z.string().optional(),
351
+ })
352
+ .catchall(zod_1.z.unknown())
353
+ .optional(),
354
+ })
355
+ .catchall(zod_1.z.unknown())),
356
+ })
357
+ .describe("PageService.updatePage.response"));
358
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("PageService.getPagesInSpace.response", zod_1.z
359
+ .object({
360
+ status: zod_1.z.literal(200),
361
+ mediaType: zod_1.z.literal("application/json"),
362
+ body: zod_1.z
363
+ .object({
364
+ results: zod_1.z
365
+ .array(validationSchemaStorage_1.validationSchemaStorage.lazy("PageBulk"))
366
+ .optional(),
367
+ _links: validationSchemaStorage_1.validationSchemaStorage
368
+ .lazy("MultiEntityLinks")
369
+ .optional(),
370
+ })
371
+ .catchall(zod_1.z.unknown()),
372
+ })
373
+ .describe("PageService.getPagesInSpace.response"));
374
+ validationSchemaStorage_1.validationSchemaStorage.registerOnce([
375
+ page_1.registerPageValidationSchemas,
376
+ common_1.registerCommonValidationSchemas,
377
+ ]);
378
+ }
379
+ }
380
+ exports.PageService = PageService;
381
+ //# sourceMappingURL=PageService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PageService.js","sourceRoot":"","sources":["../../../../src/openapi/v2/services/PageService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,6CAK0B;AAC1B,yCAOwB;AACxB,wEAAqE;AACrE,MAAa,WAAY,SAAQ,qCAAiB;IAChD;;;;;;;;;;;;;OAaG;IACH,UAAU,CAAC,EACT,QAAQ,EACR,OAAO,EAAE,YAAY,EACrB,SAAS,EACT,WAAW,GA2BZ;QAaC,OAAO,IAAI,CAAC,iBAAiB,EAAE;aAC5B,OAAO,CAAC;YACP,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,MAAM;YACd,KAAK,EAAE;gBACL,QAAQ;gBACR,OAAO,EAAE,YAAY;gBACrB,YAAY,EAAE,SAAS;aACxB;YACD,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;aACnC;YACD,IAAI,EAAE,WAAW;SAClB,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,EAazB,CACL;aACA,IAAI,CACH,iDAAuB,CAAC,SAAS,CAAC,iCAAiC,CAAC,CACrE;aACA,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACpC,CAAC;IACD;;;;;;;;;;;;;;;;;;;;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C,CAAC,CAAC;IACL,CAAC;CACF;AA51BD,kCA41BC"}
@@ -0,0 +1,84 @@
1
+ import { CommonHttpService } from "../core/CommonHttpService";
2
+ import { type SmartLinkSingle } from "../models/smartLink";
3
+ export declare class SmartLinkService extends CommonHttpService {
4
+ /**
5
+ * Creates a Smart Link in the content tree in the space.
6
+ *
7
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
8
+ * Permission to view the corresponding space. Permission to create a Smart Link
9
+ * in the content tree in the space.
10
+ *
11
+ * @returns Returned if the Smart Link was successfully created in the content tree.
12
+ * @path {POST} /embeds
13
+ * @scopes-current write:embed:confluence
14
+ */
15
+ createSmartLink({ private: privateQuery, requestBody, }: {
16
+ /**
17
+ * The Smart Link will be private. Only the user who creates this Smart Link in
18
+ * the content tree will have permission to view and edit one.
19
+ */
20
+ private?: boolean;
21
+ requestBody: {
22
+ /** ID of the space. */
23
+ spaceId: string;
24
+ /** Title of the Smart Link in the content tree. */
25
+ title?: string;
26
+ /** The parent content ID of the Smart Link in the content tree. */
27
+ parentId?: string;
28
+ } & {
29
+ [key: string]: unknown;
30
+ };
31
+ }): Promise<SmartLinkSingle & ({
32
+ _links?: {
33
+ /** Base url of the Confluence site. */
34
+ base?: string;
35
+ } & {
36
+ [key: string]: unknown;
37
+ };
38
+ } & {
39
+ [key: string]: unknown;
40
+ })>;
41
+ /**
42
+ * Delete a Smart Link in the content tree by id.
43
+ *
44
+ * Deleting a Smart Link in the content tree moves the Smart Link to the trash,
45
+ * where it can be restored later
46
+ *
47
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
48
+ * Permission to view the Smart Link in the content tree and its corresponding
49
+ * space.
50
+ * Permission to delete Smart Links in the content tree in the space.
51
+ *
52
+ * @path {DELETE} /embeds/{id}
53
+ * @scopes-current delete:embed:confluence
54
+ */
55
+ deleteSmartLink({ id, }: {
56
+ /** The ID of the Smart Link in the content tree to be deleted. */
57
+ id: number;
58
+ }): Promise<void>;
59
+ /**
60
+ * Returns a specific Smart Link in the content tree.
61
+ *
62
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
63
+ * Permission to view the Smart Link in the content tree and its corresponding
64
+ * space.
65
+ *
66
+ * @returns Returned if the requested Smart Link in the content tree is returned.
67
+ * @path {GET} /embeds/{id}
68
+ * @scopes-current read:embed:confluence
69
+ */
70
+ getSmartLinkById({ id, }: {
71
+ /** The ID of the Smart Link in the content tree to be returned. */
72
+ id: number;
73
+ }): Promise<SmartLinkSingle & ({
74
+ _links?: {
75
+ /** Base url of the Confluence site. */
76
+ base?: string;
77
+ } & {
78
+ [key: string]: unknown;
79
+ };
80
+ } & {
81
+ [key: string]: unknown;
82
+ })>;
83
+ static initialize(): void;
84
+ }
@@ -0,0 +1,137 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SmartLinkService = 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 smartLink_1 = require("../models/smartLink");
11
+ const validationSchemaStorage_1 = require("../validationSchemaStorage");
12
+ class SmartLinkService extends CommonHttpService_1.CommonHttpService {
13
+ /**
14
+ * Creates a Smart Link in the content tree in the space.
15
+ *
16
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
17
+ * Permission to view the corresponding space. Permission to create a Smart Link
18
+ * in the content tree in the space.
19
+ *
20
+ * @returns Returned if the Smart Link was successfully created in the content tree.
21
+ * @path {POST} /embeds
22
+ * @scopes-current write:embed:confluence
23
+ */
24
+ createSmartLink({ private: privateQuery, requestBody, }) {
25
+ return this.getClientInstance()
26
+ .request({
27
+ path: "/embeds",
28
+ method: "POST",
29
+ query: {
30
+ private: privateQuery,
31
+ },
32
+ headers: {
33
+ "Content-Type": "application/json",
34
+ },
35
+ body: requestBody,
36
+ })
37
+ .then(this.getClientInstance().responseHandler({
38
+ 200: {
39
+ "application/json": "json",
40
+ },
41
+ }))
42
+ .then(commonHttpClient.castResponse())
43
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("SmartLinkService.createSmartLink.response"))
44
+ .then(commonHttpClient.getBody);
45
+ }
46
+ /**
47
+ * Delete a Smart Link in the content tree by id.
48
+ *
49
+ * Deleting a Smart Link in the content tree moves the Smart Link to the trash,
50
+ * where it can be restored later
51
+ *
52
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
53
+ * Permission to view the Smart Link in the content tree and its corresponding
54
+ * space.
55
+ * Permission to delete Smart Links in the content tree in the space.
56
+ *
57
+ * @path {DELETE} /embeds/{id}
58
+ * @scopes-current delete:embed:confluence
59
+ */
60
+ deleteSmartLink({ id, }) {
61
+ return this.getClientInstance()
62
+ .request({
63
+ path: "/embeds/{id}",
64
+ method: "DELETE",
65
+ pathParams: {
66
+ id,
67
+ },
68
+ })
69
+ .then(commonHttpClient.discardResult);
70
+ }
71
+ /**
72
+ * Returns a specific Smart Link in the content tree.
73
+ *
74
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
75
+ * Permission to view the Smart Link in the content tree and its corresponding
76
+ * space.
77
+ *
78
+ * @returns Returned if the requested Smart Link in the content tree is returned.
79
+ * @path {GET} /embeds/{id}
80
+ * @scopes-current read:embed:confluence
81
+ */
82
+ getSmartLinkById({ id, }) {
83
+ return this.getClientInstance()
84
+ .request({
85
+ path: "/embeds/{id}",
86
+ method: "GET",
87
+ pathParams: {
88
+ id,
89
+ },
90
+ })
91
+ .then(this.getClientInstance().responseHandler({
92
+ 200: {
93
+ "application/json": "json",
94
+ },
95
+ }))
96
+ .then(commonHttpClient.castResponse())
97
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("SmartLinkService.getSmartLinkById.response"))
98
+ .then(commonHttpClient.getBody);
99
+ }
100
+ static initialize() {
101
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("SmartLinkService.createSmartLink.response", zod_1.z
102
+ .object({
103
+ status: zod_1.z.literal(200),
104
+ mediaType: zod_1.z.literal("application/json"),
105
+ body: zod_1.z.intersection(validationSchemaStorage_1.validationSchemaStorage.lazy("SmartLinkSingle"), zod_1.z
106
+ .object({
107
+ _links: zod_1.z
108
+ .object({
109
+ base: zod_1.z.string().optional(),
110
+ })
111
+ .catchall(zod_1.z.unknown())
112
+ .optional(),
113
+ })
114
+ .catchall(zod_1.z.unknown())),
115
+ })
116
+ .describe("SmartLinkService.createSmartLink.response"));
117
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("SmartLinkService.getSmartLinkById.response", zod_1.z
118
+ .object({
119
+ status: zod_1.z.literal(200),
120
+ mediaType: zod_1.z.literal("application/json"),
121
+ body: zod_1.z.intersection(validationSchemaStorage_1.validationSchemaStorage.lazy("SmartLinkSingle"), zod_1.z
122
+ .object({
123
+ _links: zod_1.z
124
+ .object({
125
+ base: zod_1.z.string().optional(),
126
+ })
127
+ .catchall(zod_1.z.unknown())
128
+ .optional(),
129
+ })
130
+ .catchall(zod_1.z.unknown())),
131
+ })
132
+ .describe("SmartLinkService.getSmartLinkById.response"));
133
+ validationSchemaStorage_1.validationSchemaStorage.registerOnce([smartLink_1.registerSmartLinkValidationSchemas]);
134
+ }
135
+ }
136
+ exports.SmartLinkService = SmartLinkService;
137
+ //# sourceMappingURL=SmartLinkService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SmartLinkService.js","sourceRoot":"","sources":["../../../../src/openapi/v2/services/SmartLinkService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,mDAG6B;AAC7B,wEAAqE;AACrE,MAAa,gBAAiB,SAAQ,qCAAiB;IACrD;;;;;;;;;;OAUG;IACH,eAAe,CAAC,EACd,OAAO,EAAE,YAAY,EACrB,WAAW,GAiBZ;QAaC,OAAO,I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,CAAC,CACzB;SACF,CAAC;aACD,QAAQ,CAAC,4CAA4C,CAAC,CAC1D,CAAC;QACF,iDAAuB,CAAC,YAAY,CAAC,CAAC,8CAAkC,CAAC,CAAC,CAAC;IAC7E,CAAC;CACF;AAtOD,4CAsOC"}
@@ -0,0 +1,36 @@
1
+ import { CommonHttpService } from "../core/CommonHttpService";
2
+ import { type MultiEntityLinks, type SpacePermission } from "../models/common";
3
+ export declare class SpacePermissionsService extends CommonHttpService {
4
+ /**
5
+ * Returns space permissions for a specific space.
6
+ *
7
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
8
+ * Permission to view the space.
9
+ *
10
+ * @returns Returned if the requested space permissions are returned.
11
+ * @path {GET} /spaces/{id}/permissions
12
+ * @scopes-current read:space:confluence
13
+ */
14
+ getSpacePermissions({ id, cursor, limit, }: {
15
+ /** The ID of the space to be returned. */
16
+ id: number;
17
+ /**
18
+ * Used for pagination, this opaque cursor will be returned in the `next` URL in
19
+ * the `Link` response header. Use the relative URL in the `Link` header to
20
+ * retrieve the `next` set of results.
21
+ */
22
+ cursor?: string;
23
+ /**
24
+ * Maximum number of spaces per result to return. If more results exist, use the
25
+ * `Link` response header to retrieve a relative URL that will return the next set
26
+ * of results.
27
+ */
28
+ limit?: number;
29
+ }): Promise<{
30
+ results?: SpacePermission[];
31
+ _links?: MultiEntityLinks;
32
+ } & {
33
+ [key: string]: unknown;
34
+ }>;
35
+ static initialize(): void;
36
+ }