@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,113 @@
1
+ import { CommonHttpService } from "../core/CommonHttpService";
2
+ import { type LabelArray, type LabelCreate, type LongTask } from "../models/common";
3
+ /** APIs in this section can change without any prior deprecation notice. */
4
+ export declare class ExperimentalService extends CommonHttpService {
5
+ /**
6
+ * Adds labels to a piece of content. Does not modify the existing labels.
7
+ *
8
+ * Notes:
9
+ *
10
+ * - Labels can also be added when creating content ([Create
11
+ * content](#api-content-post)).
12
+ * - Labels can be updated when updating content ([Update
13
+ * content](#api-content-id-put)).
14
+ * This will delete the existing labels and replace them with the labels in
15
+ * the request.
16
+ *
17
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
18
+ * Permission to update the content.
19
+ *
20
+ * @returns Returned if the labels are added to the content.
21
+ * @path {POST} /wiki/rest/api/space/{spaceKey}/label
22
+ * @scopes-current write:confluence-space
23
+ * @scopes-beta read:label:confluence, write:label:confluence
24
+ */
25
+ addLabelsToSpace({ spaceKey, labelCreates, }: {
26
+ /** The key of the space to add labels to. */
27
+ spaceKey: string;
28
+ /** The labels to add to the content. */
29
+ labelCreates: LabelCreate[];
30
+ }): Promise<LabelArray>;
31
+ /**
32
+ * @path {DELETE} /wiki/rest/api/space/{spaceKey}/label
33
+ * @scopes-current write:confluence-space
34
+ * @scopes-beta write:label:confluence
35
+ */
36
+ deleteLabelFromSpace({ spaceKey, name, prefix, }: {
37
+ /** The key of the space to remove a labels from. */
38
+ spaceKey: string;
39
+ /** The name of the label to remove */
40
+ name: string;
41
+ /** The prefix of the label to remove. If not provided defaults to global. */
42
+ prefix?: string;
43
+ }): Promise<void>;
44
+ /**
45
+ * Moves a pagetree rooted at a page to the space's trash:
46
+ *
47
+ * - If the content's type is `page` and its status is `current`, it will be
48
+ * trashed including
49
+ * all its descendants.
50
+ * - For every other combination of content type and status, this API is not
51
+ * supported.
52
+ *
53
+ * This API accepts the pageTree delete request and returns a task ID.
54
+ * The delete process happens asynchronously.
55
+ *
56
+ * Response example:
57
+ * <pre><code>
58
+ * {
59
+ * "id" : "1180606",
60
+ * "links" : {
61
+ * "status" : "/rest/api/longtask/1180606"
62
+ * }
63
+ * }
64
+ * </code></pre>
65
+ * Use the `/longtask/<taskId>` REST API to get the copy task status.
66
+ *
67
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
68
+ * 'Delete' permission for the space that the content is in.
69
+ *
70
+ * @returns Returned if the request to trash content and all its current page descendants,
71
+ * is successfully accepted.
72
+ * @path {DELETE} /wiki/rest/api/content/{id}/pageTree
73
+ * @scopes-current write:confluence-content
74
+ * @scopes-beta delete:content:confluence
75
+ */
76
+ deletePageTree({ id, }: {
77
+ /** The ID of the content which forms root of the page tree, to be deleted. */
78
+ id: string;
79
+ }): Promise<LongTask>;
80
+ /**
81
+ * Returns a list of labels associated with a space. Can provide a prefix as well
82
+ * as other filters to
83
+ * select different types of labels.
84
+ *
85
+ * @returns Returned if the list of labels is returned.
86
+ * @path {GET} /wiki/rest/api/space/{spaceKey}/label
87
+ * @scopes-current read:confluence-space.summary
88
+ * @scopes-beta read:label:confluence
89
+ */
90
+ getLabelsForSpace({ spaceKey, prefix, start, limit, }: {
91
+ /** The key of the space to get labels for. */
92
+ spaceKey: string;
93
+ /**
94
+ * Filters the results to labels with the specified prefix. If this parameter
95
+ * is not specified, then labels with any prefix will be returned.
96
+ *
97
+ * - `global` prefix is used by labels that are on content within the provided
98
+ * space.
99
+ * - `my` prefix can be explicitly added by a user when adding a label
100
+ * via the UI, e.g. 'my:example-label'.
101
+ * - `team` prefix is used for labels applied to the space.
102
+ */
103
+ prefix?: "global" | "my" | "team";
104
+ /** The starting index of the returned labels. */
105
+ start?: number;
106
+ /**
107
+ * The maximum number of labels to return per page. Note,
108
+ * this may be restricted by fixed system limits.
109
+ */
110
+ limit?: number;
111
+ }): Promise<LabelArray>;
112
+ static initialize(): void;
113
+ }
@@ -0,0 +1,185 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ExperimentalService = 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
+ /** APIs in this section can change without any prior deprecation notice. */
13
+ class ExperimentalService extends CommonHttpService_1.CommonHttpService {
14
+ /**
15
+ * Adds labels to a piece of content. Does not modify the existing labels.
16
+ *
17
+ * Notes:
18
+ *
19
+ * - Labels can also be added when creating content ([Create
20
+ * content](#api-content-post)).
21
+ * - Labels can be updated when updating content ([Update
22
+ * content](#api-content-id-put)).
23
+ * This will delete the existing labels and replace them with the labels in
24
+ * the request.
25
+ *
26
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
27
+ * Permission to update the content.
28
+ *
29
+ * @returns Returned if the labels are added to the content.
30
+ * @path {POST} /wiki/rest/api/space/{spaceKey}/label
31
+ * @scopes-current write:confluence-space
32
+ * @scopes-beta read:label:confluence, write:label:confluence
33
+ */
34
+ addLabelsToSpace({ spaceKey, labelCreates, }) {
35
+ return this.getClientInstance()
36
+ .request({
37
+ path: "/wiki/rest/api/space/{spaceKey}/label",
38
+ method: "POST",
39
+ pathParams: {
40
+ spaceKey,
41
+ },
42
+ headers: {
43
+ "Content-Type": "application/json",
44
+ },
45
+ body: labelCreates,
46
+ })
47
+ .then(this.getClientInstance().responseHandler({
48
+ 200: {
49
+ "application/json": "json",
50
+ },
51
+ }))
52
+ .then(commonHttpClient.castResponse())
53
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ExperimentalService.addLabelsToSpace.response"))
54
+ .then(commonHttpClient.getBody);
55
+ }
56
+ /**
57
+ * @path {DELETE} /wiki/rest/api/space/{spaceKey}/label
58
+ * @scopes-current write:confluence-space
59
+ * @scopes-beta write:label:confluence
60
+ */
61
+ deleteLabelFromSpace({ spaceKey, name, prefix, }) {
62
+ return this.getClientInstance()
63
+ .request({
64
+ path: "/wiki/rest/api/space/{spaceKey}/label",
65
+ method: "DELETE",
66
+ pathParams: {
67
+ spaceKey,
68
+ },
69
+ query: {
70
+ name,
71
+ prefix,
72
+ },
73
+ })
74
+ .then(commonHttpClient.discardResult);
75
+ }
76
+ /**
77
+ * Moves a pagetree rooted at a page to the space's trash:
78
+ *
79
+ * - If the content's type is `page` and its status is `current`, it will be
80
+ * trashed including
81
+ * all its descendants.
82
+ * - For every other combination of content type and status, this API is not
83
+ * supported.
84
+ *
85
+ * This API accepts the pageTree delete request and returns a task ID.
86
+ * The delete process happens asynchronously.
87
+ *
88
+ * Response example:
89
+ * <pre><code>
90
+ * {
91
+ * "id" : "1180606",
92
+ * "links" : {
93
+ * "status" : "/rest/api/longtask/1180606"
94
+ * }
95
+ * }
96
+ * </code></pre>
97
+ * Use the `/longtask/<taskId>` REST API to get the copy task status.
98
+ *
99
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
100
+ * 'Delete' permission for the space that the content is in.
101
+ *
102
+ * @returns Returned if the request to trash content and all its current page descendants,
103
+ * is successfully accepted.
104
+ * @path {DELETE} /wiki/rest/api/content/{id}/pageTree
105
+ * @scopes-current write:confluence-content
106
+ * @scopes-beta delete:content:confluence
107
+ */
108
+ deletePageTree({ id, }) {
109
+ return this.getClientInstance()
110
+ .request({
111
+ path: "/wiki/rest/api/content/{id}/pageTree",
112
+ method: "DELETE",
113
+ pathParams: {
114
+ id,
115
+ },
116
+ })
117
+ .then(this.getClientInstance().responseHandler({
118
+ 202: {
119
+ "application/json": "json",
120
+ },
121
+ }))
122
+ .then(commonHttpClient.castResponse())
123
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ExperimentalService.deletePageTree.response"))
124
+ .then(commonHttpClient.getBody);
125
+ }
126
+ /**
127
+ * Returns a list of labels associated with a space. Can provide a prefix as well
128
+ * as other filters to
129
+ * select different types of labels.
130
+ *
131
+ * @returns Returned if the list of labels is returned.
132
+ * @path {GET} /wiki/rest/api/space/{spaceKey}/label
133
+ * @scopes-current read:confluence-space.summary
134
+ * @scopes-beta read:label:confluence
135
+ */
136
+ getLabelsForSpace({ spaceKey, prefix, start, limit, }) {
137
+ return this.getClientInstance()
138
+ .request({
139
+ path: "/wiki/rest/api/space/{spaceKey}/label",
140
+ method: "GET",
141
+ pathParams: {
142
+ spaceKey,
143
+ },
144
+ query: {
145
+ prefix,
146
+ start,
147
+ limit,
148
+ },
149
+ })
150
+ .then(this.getClientInstance().responseHandler({
151
+ 200: {
152
+ "application/json": "json",
153
+ },
154
+ }))
155
+ .then(commonHttpClient.castResponse())
156
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ExperimentalService.getLabelsForSpace.response"))
157
+ .then(commonHttpClient.getBody);
158
+ }
159
+ static initialize() {
160
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ExperimentalService.deletePageTree.response", zod_1.z
161
+ .object({
162
+ status: zod_1.z.literal(202),
163
+ mediaType: zod_1.z.literal("application/json"),
164
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("LongTask"),
165
+ })
166
+ .describe("ExperimentalService.deletePageTree.response"));
167
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ExperimentalService.getLabelsForSpace.response", zod_1.z
168
+ .object({
169
+ status: zod_1.z.literal(200),
170
+ mediaType: zod_1.z.literal("application/json"),
171
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("LabelArray"),
172
+ })
173
+ .describe("ExperimentalService.getLabelsForSpace.response"));
174
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ExperimentalService.addLabelsToSpace.response", zod_1.z
175
+ .object({
176
+ status: zod_1.z.literal(200),
177
+ mediaType: zod_1.z.literal("application/json"),
178
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("LabelArray"),
179
+ })
180
+ .describe("ExperimentalService.addLabelsToSpace.response"));
181
+ validationSchemaStorage_1.validationSchemaStorage.registerOnce([common_1.registerCommonValidationSchemas]);
182
+ }
183
+ }
184
+ exports.ExperimentalService = ExperimentalService;
185
+ //# sourceMappingURL=ExperimentalService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExperimentalService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ExperimentalService.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,379 @@
1
+ import { CommonHttpService } from "../core/CommonHttpService";
2
+ import { type Group, type GroupArrayWithLinks, type UserArray } from "../models/common";
3
+ import type { AccountId, GroupName } from "../models/group";
4
+ /**
5
+ * **[WARNING](https://support.atlassian.com/user-management/docs/create-and-update-groups/)
6
+ * The standard Atlassian group names are default names only and can be edited or
7
+ * deleted.** For example, an admin or Atlassian support could delete the default
8
+ * group jira-software-users or rename it to jsw-users at any point.
9
+ */
10
+ export declare class GroupService extends CommonHttpService {
11
+ /**
12
+ * Adds a user as a member in a group.
13
+ *
14
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
15
+ * User must be a site admin.
16
+ *
17
+ * @deprecated
18
+ * @path {POST} /wiki/rest/api/group/user
19
+ * @scopes-current write:confluence-groups
20
+ * @scopes-beta write:group:confluence
21
+ */
22
+ addUserToGroup({ name, accountId, }: {
23
+ /** Name of the group whose membership is updated */
24
+ name: string;
25
+ /** AccountId of the user who needs to be added as member. */
26
+ accountId: AccountId;
27
+ }): Promise<void>;
28
+ /**
29
+ * Adds a user as a member in a group represented by its groupId
30
+ *
31
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
32
+ * User must be a site admin.
33
+ *
34
+ * @path {POST} /wiki/rest/api/group/userByGroupId
35
+ * @scopes-current write:confluence-groups
36
+ * @scopes-beta write:group:confluence
37
+ */
38
+ addUserToGroupByGroupId({ groupId, accountId, }: {
39
+ /** GroupId of the group whose membership is updated */
40
+ groupId: string;
41
+ /** AccountId of the user who needs to be added as member. */
42
+ accountId: AccountId;
43
+ }): Promise<void>;
44
+ /**
45
+ * Creates a new user group.
46
+ *
47
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
48
+ * User must be a site admin.
49
+ *
50
+ * @returns Returned if the group was created successfully.
51
+ * @path {POST} /wiki/rest/api/group
52
+ * @scopes-current write:confluence-groups
53
+ * @scopes-beta read:group:confluence, write:group:confluence
54
+ */
55
+ createGroup({ groupName, }: {
56
+ /** Name of the group that is to be created. */
57
+ groupName: GroupName;
58
+ }): Promise<Group>;
59
+ /**
60
+ * Returns a user group for a given group id.
61
+ *
62
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
63
+ * Permission to access the Confluence site ('Can use' global permission).
64
+ *
65
+ * @returns Returned if the requested group is returned.
66
+ * @path {GET} /wiki/rest/api/group/by-id
67
+ * @scopes-current read:confluence-groups
68
+ * @scopes-beta read:group:confluence
69
+ */
70
+ getGroupByGroupId({ id, }: {
71
+ /** The id of the group. */
72
+ id: string;
73
+ }): Promise<Group>;
74
+ /**
75
+ * Returns a user group for a given group name.
76
+ *
77
+ * Use updated Get group API
78
+ *
79
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
80
+ * Permission to access the Confluence site ('Can use' global permission).
81
+ *
82
+ * @deprecated
83
+ * @returns Returned if the requested group is returned.
84
+ * @path {GET} /wiki/rest/api/group/{groupName}
85
+ */
86
+ getGroupByName({ groupName, }: {
87
+ /**
88
+ * The name of the group. This is the same as the group name shown in
89
+ * the Confluence administration console.
90
+ */
91
+ groupName: string;
92
+ }): Promise<Group>;
93
+ /**
94
+ * Returns a user group for a given group name.
95
+ *
96
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
97
+ * Permission to access the Confluence site ('Can use' global permission).
98
+ *
99
+ * @deprecated
100
+ * @returns Returned if the requested group is returned.
101
+ * @path {GET} /wiki/rest/api/group/by-name
102
+ * @scopes-current read:confluence-groups
103
+ * @scopes-beta read:group:confluence
104
+ */
105
+ getGroupByQueryParam({ name, }: {
106
+ /**
107
+ * The name of the group. This is the same as the group name shown in
108
+ * the Confluence administration console.
109
+ */
110
+ name: string;
111
+ }): Promise<Group>;
112
+ /**
113
+ * Returns the users that are members of a group.
114
+ *
115
+ * Use updated Get group API
116
+ *
117
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
118
+ * Permission to access the Confluence site ('Can use' global permission).
119
+ *
120
+ * @deprecated
121
+ * @returns Returned if the requested users are returned.
122
+ * @path {GET} /wiki/rest/api/group/{groupName}/member
123
+ */
124
+ getGroupMembers({ groupName, start, limit, }: {
125
+ /** The name of the group to be queried for its members. */
126
+ groupName: string;
127
+ /** The starting index of the returned users. */
128
+ start?: number;
129
+ /**
130
+ * The maximum number of users to return per page.
131
+ * Note, this may be restricted by fixed system limits.
132
+ */
133
+ limit?: number;
134
+ }): Promise<UserArray>;
135
+ /**
136
+ * Returns the users that are members of a group.
137
+ *
138
+ * Use updated Get group API
139
+ *
140
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
141
+ * Permission to access the Confluence site ('Can use' global permission).
142
+ *
143
+ * @returns Returned if the requested users are returned.
144
+ * @path {GET} /wiki/rest/api/group/{groupId}/membersByGroupId
145
+ * @scopes-current read:confluence-groups
146
+ * @scopes-beta read:group:confluence, read:user:confluence
147
+ */
148
+ getGroupMembersByGroupId({ groupId, start, limit, shouldReturnTotalSize, expand, }: {
149
+ /** The id of the group to be queried for its members. */
150
+ groupId: string;
151
+ /** The starting index of the returned users. */
152
+ start?: number;
153
+ /**
154
+ * The maximum number of users to return per page.
155
+ * Note, this may be restricted by fixed system limits.
156
+ */
157
+ limit?: number;
158
+ /**
159
+ * Whether to include total size parameter in the results.
160
+ * Note, fetching total size property is an expensive operation; use it if your
161
+ * use case needs this value.
162
+ */
163
+ shouldReturnTotalSize?: boolean;
164
+ /**
165
+ * A multi-value parameter indicating which properties of the user to
166
+ * expand.
167
+ *
168
+ * - `operations` returns the operations that the user is allowed to do.
169
+ * - `personalSpace` returns the user's personal space, if it exists.
170
+ * - `isExternalCollaborator` returns whether the user is an external
171
+ * collaborator user.
172
+ */
173
+ expand?: ("operations" | "personalSpace" | "isExternalCollaborator")[];
174
+ }): Promise<UserArray>;
175
+ /**
176
+ * Returns all user groups. The returned groups are ordered alphabetically in
177
+ * ascending order by group name.
178
+ *
179
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
180
+ * Permission to access the Confluence site ('Can use' global permission).
181
+ *
182
+ * @returns Returned if the requested groups are returned.
183
+ * @path {GET} /wiki/rest/api/group
184
+ * @scopes-current read:confluence-groups
185
+ * @scopes-beta read:group:confluence
186
+ */
187
+ getGroups({ start, limit, accessType, }: {
188
+ /** The starting index of the returned groups. */
189
+ start?: number;
190
+ /**
191
+ * The maximum number of groups to return per page.
192
+ * Note, this may be restricted by fixed system limits.
193
+ */
194
+ limit?: number;
195
+ /** The group permission level for which to filter results. */
196
+ accessType?: "user" | "admin" | "site-admin";
197
+ }): Promise<GroupArrayWithLinks>;
198
+ /**
199
+ * Returns the users that are members of a group.
200
+ *
201
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
202
+ * Permission to access the Confluence site ('Can use' global permission).
203
+ *
204
+ * @deprecated
205
+ * @returns Returned if the requested users are returned.
206
+ * @path {GET} /wiki/rest/api/group/member
207
+ * @scopes-current read:confluence-groups
208
+ * @scopes-beta read:group:confluence, read:user:confluence
209
+ */
210
+ getMembersByQueryParam({ name, start, limit, shouldReturnTotalSize, expand, }: {
211
+ /** The name of the group to be queried for its members. */
212
+ name: string;
213
+ /** The starting index of the returned users. */
214
+ start?: number;
215
+ /**
216
+ * The maximum number of users to return per page.
217
+ * Note, this is restricted by fixed system limit of 200 which is to say if the
218
+ * limit parameter
219
+ * exceeds 200, this API will return a maximum of 200 users per page.
220
+ */
221
+ limit?: number;
222
+ /**
223
+ * Whether to include total size parameter in the results.
224
+ * Note, fetching total size property is an expensive operation; use it if your
225
+ * use case needs this value.
226
+ */
227
+ shouldReturnTotalSize?: boolean;
228
+ /**
229
+ * A multi-value parameter indicating which properties of the user to
230
+ * expand.
231
+ *
232
+ * - `operations` returns the operations that the user is allowed to do.
233
+ * - `personalSpace` returns the user's personal space, if it exists.
234
+ * - `isExternalCollaborator` returns whether the user is an external
235
+ * collaborator user.
236
+ */
237
+ expand?: ("operations" | "personalSpace" | "isExternalCollaborator")[];
238
+ }): Promise<UserArray>;
239
+ /**
240
+ * Delete user group.
241
+ *
242
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
243
+ * User must be a site admin.
244
+ *
245
+ * @deprecated
246
+ * @path {DELETE} /wiki/rest/api/group
247
+ * @scopes-current write:confluence-groups
248
+ * @scopes-beta write:group:confluence
249
+ */
250
+ removeGroup({ name, }: {
251
+ /** Name of the group to delete. */
252
+ name: string;
253
+ }): Promise<void>;
254
+ /**
255
+ * Delete user group.
256
+ *
257
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
258
+ * User must be a site admin.
259
+ *
260
+ * @path {DELETE} /wiki/rest/api/group/by-id
261
+ * @scopes-current write:confluence-groups
262
+ * @scopes-beta write:group:confluence
263
+ */
264
+ removeGroupById({ id, }: {
265
+ /** Id of the group to delete. */
266
+ id: string;
267
+ }): Promise<void>;
268
+ /**
269
+ * Remove user as a member from a group.
270
+ *
271
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
272
+ * User must be a site admin.
273
+ *
274
+ * @deprecated
275
+ * @path {DELETE} /wiki/rest/api/group/user
276
+ * @scopes-current write:confluence-groups
277
+ * @scopes-beta write:group:confluence
278
+ */
279
+ removeMemberFromGroup({ name, key, username, accountId, }: {
280
+ /** Name of the group whose membership is updated. */
281
+ name: string;
282
+ /**
283
+ * This parameter is no longer available and will be removed from the
284
+ * documentation soon.
285
+ * Use `accountId` instead.
286
+ * See the [deprecation
287
+ * notice](/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)
288
+ * for details.
289
+ *
290
+ * @deprecated
291
+ */
292
+ key?: string;
293
+ /**
294
+ * This parameter is no longer available and will be removed from the
295
+ * documentation soon.
296
+ * Use `accountId` instead.
297
+ * See the [deprecation
298
+ * notice](/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)
299
+ * for details.
300
+ *
301
+ * @deprecated
302
+ */
303
+ username?: string;
304
+ /**
305
+ * The account ID of the user. The accountId uniquely identifies the user across
306
+ * all Atlassian products.
307
+ * For example, `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`.
308
+ */
309
+ accountId?: string;
310
+ }): Promise<void>;
311
+ /**
312
+ * Remove user as a member from a group.
313
+ *
314
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
315
+ * User must be a site admin.
316
+ *
317
+ * @path {DELETE} /wiki/rest/api/group/userByGroupId
318
+ * @scopes-current write:confluence-groups
319
+ * @scopes-beta write:group:confluence
320
+ */
321
+ removeMemberFromGroupByGroupId({ groupId, key, username, accountId, }: {
322
+ /** Id of the group whose membership is updated. */
323
+ groupId: string;
324
+ /**
325
+ * This parameter is no longer available and will be removed from the
326
+ * documentation soon.
327
+ * Use `accountId` instead.
328
+ * See the [deprecation
329
+ * notice](/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)
330
+ * for details.
331
+ *
332
+ * @deprecated
333
+ */
334
+ key?: string;
335
+ /**
336
+ * This parameter is no longer available and will be removed from the
337
+ * documentation soon.
338
+ * Use `accountId` instead.
339
+ * See the [deprecation
340
+ * notice](/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)
341
+ * for details.
342
+ *
343
+ * @deprecated
344
+ */
345
+ username?: string;
346
+ /**
347
+ * The account ID of the user. The accountId uniquely identifies the user across
348
+ * all Atlassian products.
349
+ * For example, `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`.
350
+ */
351
+ accountId?: string;
352
+ }): Promise<void>;
353
+ /**
354
+ * Get search results of groups by partial query provided.
355
+ *
356
+ * @returns Returns a full JSON representation of group collection.
357
+ * @path {GET} /wiki/rest/api/group/picker
358
+ * @scopes-current read:confluence-groups
359
+ * @scopes-beta read:group:confluence
360
+ */
361
+ searchGroups({ query, start, limit, shouldReturnTotalSize, }: {
362
+ /** the search term used to query results. */
363
+ query: string;
364
+ /** The starting index of the returned groups. */
365
+ start?: number;
366
+ /**
367
+ * The maximum number of groups to return per page.
368
+ * Note, this is restricted to a maximum limit of 200 groups.
369
+ */
370
+ limit?: number;
371
+ /**
372
+ * Whether to include total size parameter in the results.
373
+ * Note, fetching total size property is an expensive operation; use it if your
374
+ * use case needs this value.
375
+ */
376
+ shouldReturnTotalSize?: boolean;
377
+ }): Promise<GroupArrayWithLinks>;
378
+ static initialize(): void;
379
+ }