@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,50 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.registerUserPropertiesValidationSchemas = 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 common_1 = require("./common");
9
+ function registerUserPropertiesValidationSchemas(validationSchemaStorage) {
10
+ validationSchemaStorage.register("UserProperty", zod_1.z
11
+ .object({
12
+ key: zod_1.z.string(),
13
+ value: zod_1.z.object({}).catchall(zod_1.z.unknown()),
14
+ id: zod_1.z.string(),
15
+ lastModifiedDate: zod_1.z.string(),
16
+ createdDate: zod_1.z.string(),
17
+ _links: validationSchemaStorage.lazy("GenericLinks").optional(),
18
+ })
19
+ .catchall(zod_1.z.unknown())
20
+ .describe("UserProperty"));
21
+ validationSchemaStorage.register("UserPropertyCreate", zod_1.z
22
+ .object({
23
+ value: zod_1.z.object({}).catchall(zod_1.z.unknown()),
24
+ })
25
+ .strict()
26
+ .describe("UserPropertyCreate"));
27
+ validationSchemaStorage.register("UserPropertyKeyArray", zod_1.z
28
+ .object({
29
+ results: zod_1.z.array(zod_1.z
30
+ .object({
31
+ key: zod_1.z.string().optional(),
32
+ })
33
+ .catchall(zod_1.z.unknown())),
34
+ start: zod_1.z.number().int().optional(),
35
+ limit: zod_1.z.number().int().optional(),
36
+ size: zod_1.z.number().int().optional(),
37
+ _links: validationSchemaStorage.lazy("GenericLinks").optional(),
38
+ })
39
+ .catchall(zod_1.z.unknown())
40
+ .describe("UserPropertyKeyArray"));
41
+ validationSchemaStorage.register("UserPropertyUpdate", zod_1.z
42
+ .object({
43
+ value: zod_1.z.object({}).catchall(zod_1.z.unknown()),
44
+ })
45
+ .strict()
46
+ .describe("UserPropertyUpdate"));
47
+ validationSchemaStorage.registerOnce([common_1.registerCommonValidationSchemas]);
48
+ }
49
+ exports.registerUserPropertiesValidationSchemas = registerUserPropertiesValidationSchemas;
50
+ //# sourceMappingURL=userProperties.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"userProperties.js","sourceRoot":"","sources":["../../../../src/openapi/v1/models/userProperties.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAyC;AAGzC,qCAA8E;AAsC9E,SAAgB,uCAAuC,CACrD,uBAAkE;IAElE,uBAAuB,CAAC,QAAQ,CAC9B,cAAc,EACd,OAAC;SACE,MAAM,CAAC;QACN,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;QACf,KAAK,EAAE,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC;QACzC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;QACd,gBAAgB,EAAE,OAAC,CAAC,MAAM,EAAE;QAC5B,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;QACvB,MAAM,EAAE,uBAAuB,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,QAAQ,EAAE;KAChE,CAAC;SACD,QAAQ,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC;SACrB,QAAQ,CAAC,cAAc,CAAC,CAC5B,CAAC;IACF,uBAAuB,CAAC,QAAQ,CAC9B,oBAAoB,EACpB,OAAC;SACE,MAAM,CAAC;QACN,KAAK,EAAE,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC;KAC1C,CAAC;SACD,MAAM,EAAE;SACR,QAAQ,CAAC,oBAAoB,CAAC,CAClC,CAAC;IACF,uBAAuB,CAAC,QAAQ,CAC9B,sBAAsB,EACtB,OAAC;SACE,MAAM,CAAC;QACN,OAAO,EAAE,OAAC,CAAC,KAAK,CACd,OAAC;aACE,MAAM,CAAC;YACN,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;SAC3B,CAAC;aACD,QAAQ,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC,CACzB;QACD,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;QAClC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;QAClC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;QACjC,MAAM,EAAE,uBAAuB,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,QAAQ,EAAE;KAChE,CAAC;SACD,QAAQ,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC;SACrB,QAAQ,CAAC,sBAAsB,CAAC,CACpC,CAAC;IACF,uBAAuB,CAAC,QAAQ,CAC9B,oBAAoB,EACpB,OAAC;SACE,MAAM,CAAC;QACN,KAAK,EAAE,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC;KAC1C,CAAC;SACD,MAAM,EAAE;SACR,QAAQ,CAAC,oBAAoB,CAAC,CAClC,CAAC;IACF,uBAAuB,CAAC,YAAY,CAAC,CAAC,wCAA+B,CAAC,CAAC,CAAC;AAC1E,CAAC;AAvDD,0FAuDC"}
@@ -0,0 +1,98 @@
1
+ import { type ZodTypeAny } from "zod";
2
+ import type { CommonValidationSchemaStorage } from "../core/CommonValidationSchemaStorage";
3
+ import { type GenericAccountId, type GenericLinks, type GenericUserKey, type GenericUserName, type Icon, type OperationCheckResult, type Space, type UserDetails } from "./common";
4
+ export interface AccountIdEmailRecord extends Record<string, unknown> {
5
+ accountId: string;
6
+ email: string;
7
+ }
8
+ export type AccountIdEmailRecordArray = AccountIdEmailRecord[];
9
+ export interface BulkUserLookup extends Record<string, unknown> {
10
+ type: "known" | "unknown" | "anonymous" | "user";
11
+ /**
12
+ * This property is no longer available and will be removed from the documentation
13
+ * soon.
14
+ * Use `accountId` instead.
15
+ * See the [deprecation
16
+ * notice](/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)
17
+ * for details.
18
+ */
19
+ username?: GenericUserName | null;
20
+ /**
21
+ * This property is no longer available and will be removed from the documentation
22
+ * soon.
23
+ * Use `accountId` instead.
24
+ * See the [deprecation
25
+ * notice](/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)
26
+ * for details.
27
+ */
28
+ userKey?: GenericUserKey | null;
29
+ /**
30
+ * The account ID of the user, which uniquely identifies the user across all
31
+ * Atlassian products.
32
+ * For example, `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`.
33
+ */
34
+ accountId: GenericAccountId | null;
35
+ /** The account type of the user, may return empty string if unavailable. */
36
+ accountType: string;
37
+ /**
38
+ * The email address of the user. Depending on the user's privacy setting, this
39
+ * may return an empty string.
40
+ */
41
+ email: string;
42
+ /** The public name or nickname of the user. Will always contain a value. */
43
+ publicName: string;
44
+ /**
45
+ * This object represents an icon. If used as a profilePicture, this may be
46
+ * returned as null, depending on the user's privacy setting.
47
+ */
48
+ profilePicture: Icon | null;
49
+ /**
50
+ * The displays name of the user. Depending on the user's privacy setting, this
51
+ * may be the same as publicName.
52
+ */
53
+ displayName: string;
54
+ /**
55
+ * This displays user time zone. Depending on the user's privacy setting, this may
56
+ * return null.
57
+ */
58
+ timeZone?: string | null;
59
+ /** Whether the user is an external collaborator user */
60
+ isExternalCollaborator?: boolean;
61
+ operations?: OperationCheckResult[];
62
+ details?: UserDetails;
63
+ personalSpace?: Space | null;
64
+ _expandable: {
65
+ operations?: string;
66
+ details?: string;
67
+ personalSpace?: string;
68
+ } & {
69
+ [key: string]: unknown;
70
+ };
71
+ _links: GenericLinks;
72
+ }
73
+ export interface BulkUserLookupArray extends Record<string, unknown> {
74
+ results: BulkUserLookup[];
75
+ start: number;
76
+ limit: number;
77
+ size: number;
78
+ _links: GenericLinks;
79
+ }
80
+ export interface UserAnonymous extends Record<string, unknown> {
81
+ type: string;
82
+ /**
83
+ * This object represents an icon. If used as a profilePicture, this may be
84
+ * returned as null, depending on the user's privacy setting.
85
+ */
86
+ profilePicture: Icon | null;
87
+ displayName: string;
88
+ operations?: OperationCheckResult[];
89
+ /** Whether the user is an external collaborator user */
90
+ isExternalCollaborator?: boolean;
91
+ _expandable?: {
92
+ operations?: string;
93
+ } & {
94
+ [key: string]: unknown;
95
+ };
96
+ _links: GenericLinks;
97
+ }
98
+ export declare function registerUsersValidationSchemas(validationSchemaStorage: CommonValidationSchemaStorage<ZodTypeAny>): void;
@@ -0,0 +1,87 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.registerUsersValidationSchemas = 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 common_1 = require("./common");
9
+ function registerUsersValidationSchemas(validationSchemaStorage) {
10
+ validationSchemaStorage.register("AccountIdEmailRecord", zod_1.z
11
+ .object({
12
+ accountId: zod_1.z.string(),
13
+ email: zod_1.z.string(),
14
+ })
15
+ .catchall(zod_1.z.unknown())
16
+ .describe("AccountIdEmailRecord"));
17
+ validationSchemaStorage.register("AccountIdEmailRecordArray", zod_1.z
18
+ .array(validationSchemaStorage.lazy("AccountIdEmailRecord"))
19
+ .describe("AccountIdEmailRecordArray"));
20
+ validationSchemaStorage.register("BulkUserLookup", zod_1.z
21
+ .object({
22
+ type: zod_1.z.enum(["known", "unknown", "anonymous", "user"]),
23
+ username: zod_1.z
24
+ .nullable(validationSchemaStorage.lazy("GenericUserName"))
25
+ .optional(),
26
+ userKey: zod_1.z
27
+ .nullable(validationSchemaStorage.lazy("GenericUserKey"))
28
+ .optional(),
29
+ accountId: zod_1.z.nullable(validationSchemaStorage.lazy("GenericAccountId")),
30
+ accountType: zod_1.z.string(),
31
+ email: zod_1.z.string(),
32
+ publicName: zod_1.z.string(),
33
+ profilePicture: zod_1.z.nullable(validationSchemaStorage.lazy("Icon")),
34
+ displayName: zod_1.z.string(),
35
+ timeZone: zod_1.z.nullable(zod_1.z.string()).optional(),
36
+ isExternalCollaborator: zod_1.z.boolean().optional(),
37
+ operations: zod_1.z
38
+ .array(validationSchemaStorage.lazy("OperationCheckResult"))
39
+ .optional(),
40
+ details: validationSchemaStorage.lazy("UserDetails").optional(),
41
+ personalSpace: zod_1.z
42
+ .nullable(validationSchemaStorage.lazy("Space"))
43
+ .optional(),
44
+ _expandable: zod_1.z
45
+ .object({
46
+ operations: zod_1.z.string().optional(),
47
+ details: zod_1.z.string().optional(),
48
+ personalSpace: zod_1.z.string().optional(),
49
+ })
50
+ .catchall(zod_1.z.unknown()),
51
+ _links: validationSchemaStorage.lazy("GenericLinks"),
52
+ })
53
+ .catchall(zod_1.z.unknown())
54
+ .describe("BulkUserLookup"));
55
+ validationSchemaStorage.register("BulkUserLookupArray", zod_1.z
56
+ .object({
57
+ results: zod_1.z.array(validationSchemaStorage.lazy("BulkUserLookup")),
58
+ start: zod_1.z.number().int(),
59
+ limit: zod_1.z.number().int(),
60
+ size: zod_1.z.number().int(),
61
+ _links: validationSchemaStorage.lazy("GenericLinks"),
62
+ })
63
+ .catchall(zod_1.z.unknown())
64
+ .describe("BulkUserLookupArray"));
65
+ validationSchemaStorage.register("UserAnonymous", zod_1.z
66
+ .object({
67
+ type: zod_1.z.string(),
68
+ profilePicture: zod_1.z.nullable(validationSchemaStorage.lazy("Icon")),
69
+ displayName: zod_1.z.string(),
70
+ operations: zod_1.z
71
+ .array(validationSchemaStorage.lazy("OperationCheckResult"))
72
+ .optional(),
73
+ isExternalCollaborator: zod_1.z.boolean().optional(),
74
+ _expandable: zod_1.z
75
+ .object({
76
+ operations: zod_1.z.string().optional(),
77
+ })
78
+ .catchall(zod_1.z.unknown())
79
+ .optional(),
80
+ _links: validationSchemaStorage.lazy("GenericLinks"),
81
+ })
82
+ .catchall(zod_1.z.unknown())
83
+ .describe("UserAnonymous"));
84
+ validationSchemaStorage.registerOnce([common_1.registerCommonValidationSchemas]);
85
+ }
86
+ exports.registerUsersValidationSchemas = registerUsersValidationSchemas;
87
+ //# sourceMappingURL=users.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"users.js","sourceRoot":"","sources":["../../../../src/openapi/v1/models/users.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAyC;AAGzC,qCAUkB;AA+FlB,SAAgB,8BAA8B,CAC5C,uBAAkE;IAElE,uBAAuB,CAAC,QAAQ,CAC9B,sBAAsB,EACtB,OAAC;SACE,MAAM,CAAC;QACN,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;QACrB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;KAClB,CAAC;SACD,QAAQ,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC;SACrB,QAAQ,CAAC,sBAAsB,CAAC,CACpC,CAAC;IACF,uBAAuB,CAAC,QAAQ,CAC9B,2BAA2B,EAC3B,OAAC;SACE,KAAK,CAAC,uBAAuB,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC;SAC3D,QAAQ,CAAC,2BAA2B,CAAC,CACzC,CAAC;IACF,uBAAuB,CAAC,QAAQ,CAC9B,gBAAgB,EAChB,OAAC;SACE,MAAM,CAAC;QACN,IAAI,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,CAAC,CAAC;QACvD,QAAQ,EAAE,OAAC;aACR,QAAQ,CAAC,uBAAuB,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;aACzD,QAAQ,EAAE;QACb,OAAO,EAAE,OAAC;aACP,QAAQ,CAAC,uBAAuB,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;aACxD,QAAQ,EAAE;QACb,SAAS,EAAE,OAAC,CAAC,QAAQ,CA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BAAuB,CAAC,YAAY,CAAC,CAAC,wCAA+B,CAAC,CAAC,CAAC;AAC1E,CAAC;AA7FD,wEA6FC"}
@@ -0,0 +1,54 @@
1
+ import { CommonHttpService } from "../core/CommonHttpService";
2
+ export declare class AnalyticsService extends CommonHttpService {
3
+ /**
4
+ * Get the total number of distinct viewers a piece of content has.
5
+ *
6
+ * @returns Returns the total number of distinct viewers for the content.
7
+ * @path {GET} /wiki/rest/api/analytics/content/{contentId}/viewers
8
+ * @scopes-current read:confluence-content.summary
9
+ * @scopes-beta read:analytics.content:confluence
10
+ */
11
+ getViewers({ contentId, fromDate, }: {
12
+ /** The ID of the content to get the viewers for. */
13
+ contentId: string;
14
+ /**
15
+ * The number of views for the content since the date.
16
+ *
17
+ * @example 2021-03-21T00:00:00.000Z
18
+ */
19
+ fromDate?: string;
20
+ }): Promise<{
21
+ /** The content ID. */
22
+ id?: number;
23
+ /** The total number of distinct viewers for the content. */
24
+ count?: number;
25
+ } & {
26
+ [key: string]: unknown;
27
+ }>;
28
+ /**
29
+ * Get the total number of views a piece of content has.
30
+ *
31
+ * @returns Returns the total number of views for the content.
32
+ * @path {GET} /wiki/rest/api/analytics/content/{contentId}/views
33
+ * @scopes-current read:confluence-content.summary
34
+ * @scopes-beta read:analytics.content:confluence
35
+ */
36
+ getViews({ contentId, fromDate, }: {
37
+ /** The ID of the content to get the views for. */
38
+ contentId: string;
39
+ /**
40
+ * The number of views for the content since the date.
41
+ *
42
+ * @example 2021-03-21T00:00:00.000Z
43
+ */
44
+ fromDate?: string;
45
+ }): Promise<{
46
+ /** The content ID. */
47
+ id?: number;
48
+ /** The total number of views for the content. */
49
+ count?: number;
50
+ } & {
51
+ [key: string]: unknown;
52
+ }>;
53
+ static initialize(): void;
54
+ }
@@ -0,0 +1,98 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AnalyticsService = 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 validationSchemaStorage_1 = require("../validationSchemaStorage");
11
+ class AnalyticsService extends CommonHttpService_1.CommonHttpService {
12
+ /**
13
+ * Get the total number of distinct viewers a piece of content has.
14
+ *
15
+ * @returns Returns the total number of distinct viewers for the content.
16
+ * @path {GET} /wiki/rest/api/analytics/content/{contentId}/viewers
17
+ * @scopes-current read:confluence-content.summary
18
+ * @scopes-beta read:analytics.content:confluence
19
+ */
20
+ getViewers({ contentId, fromDate, }) {
21
+ return this.getClientInstance()
22
+ .request({
23
+ path: "/wiki/rest/api/analytics/content/{contentId}/viewers",
24
+ method: "GET",
25
+ pathParams: {
26
+ contentId,
27
+ },
28
+ query: {
29
+ fromDate,
30
+ },
31
+ })
32
+ .then(this.getClientInstance().responseHandler({
33
+ 200: {
34
+ "application/json": "json",
35
+ },
36
+ }))
37
+ .then(commonHttpClient.castResponse())
38
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("AnalyticsService.getViewers.response"))
39
+ .then(commonHttpClient.getBody);
40
+ }
41
+ /**
42
+ * Get the total number of views a piece of content has.
43
+ *
44
+ * @returns Returns the total number of views for the content.
45
+ * @path {GET} /wiki/rest/api/analytics/content/{contentId}/views
46
+ * @scopes-current read:confluence-content.summary
47
+ * @scopes-beta read:analytics.content:confluence
48
+ */
49
+ getViews({ contentId, fromDate, }) {
50
+ return this.getClientInstance()
51
+ .request({
52
+ path: "/wiki/rest/api/analytics/content/{contentId}/views",
53
+ method: "GET",
54
+ pathParams: {
55
+ contentId,
56
+ },
57
+ query: {
58
+ fromDate,
59
+ },
60
+ })
61
+ .then(this.getClientInstance().responseHandler({
62
+ 200: {
63
+ "application/json": "json",
64
+ },
65
+ }))
66
+ .then(commonHttpClient.castResponse())
67
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("AnalyticsService.getViews.response"))
68
+ .then(commonHttpClient.getBody);
69
+ }
70
+ static initialize() {
71
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("AnalyticsService.getViewers.response", zod_1.z
72
+ .object({
73
+ status: zod_1.z.literal(200),
74
+ mediaType: zod_1.z.literal("application/json"),
75
+ body: zod_1.z
76
+ .object({
77
+ id: zod_1.z.number().int().optional(),
78
+ count: zod_1.z.number().int().optional(),
79
+ })
80
+ .catchall(zod_1.z.unknown()),
81
+ })
82
+ .describe("AnalyticsService.getViewers.response"));
83
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("AnalyticsService.getViews.response", zod_1.z
84
+ .object({
85
+ status: zod_1.z.literal(200),
86
+ mediaType: zod_1.z.literal("application/json"),
87
+ body: zod_1.z
88
+ .object({
89
+ id: zod_1.z.number().int().optional(),
90
+ count: zod_1.z.number().int().optional(),
91
+ })
92
+ .catchall(zod_1.z.unknown()),
93
+ })
94
+ .describe("AnalyticsService.getViews.response"));
95
+ }
96
+ }
97
+ exports.AnalyticsService = AnalyticsService;
98
+ //# sourceMappingURL=AnalyticsService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AnalyticsService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/AnalyticsService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,wEAAqE;AACrE,MAAa,gBAAiB,SAAQ,qCAAiB;IACrD;;;;;;;OAOG;IACH,UAAU,CAAC,EACT,SAAS,EACT,QAAQ,GAUT;QAUC,OAAO,IAAI,CAAC,iBAAiB,EAAE;aAC5B,OAAO,CAAC;YACP,IAAI,EAAE,sDAAsD;YAC5D,MAAM,EAAE,KAAK;YACb,UAAU,EAAE;gBACV,SAAS;aACV;YACD,KAAK,EAAE;gBACL,QAAQ;aACT;SACF,CAAC;aACD,IAAI,CACH,IAAI,CAAC,iBAAiB,EAAE,CAAC,eAAe,CAAC;YACvC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AC,OAAO,EAAE,CAAC;SACzB,CAAC;aACD,QAAQ,CAAC,sCAAsC,CAAC,CACpD,CAAC;QACF,iDAAuB,CAAC,kBAAkB,CACxC,oCAAoC,EACpC,OAAC;aACE,MAAM,CAAC;YACN,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,GAAG,CAAC;YACtB,SAAS,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;YACxC,IAAI,EAAE,OAAC;iBACJ,MAAM,CAAC;gBACN,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;gBAC/B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;aACnC,CAAC;iBACD,QAAQ,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC;SACzB,CAAC;aACD,QAAQ,CAAC,oCAAoC,CAAC,CAClD,CAAC;IACJ,CAAC;CACF;AArKD,4CAqKC"}
@@ -0,0 +1,163 @@
1
+ import * as commonHttpClient from "../core/CommonHttpClient";
2
+ import { CommonHttpService } from "../core/CommonHttpService";
3
+ import { type AuditRecord, type AuditRecordArray, type AuditRecordCreate, type RetentionPeriod } from "../models/audit";
4
+ export declare class AuditService extends CommonHttpService {
5
+ /**
6
+ * Creates a record in the audit log.
7
+ *
8
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
9
+ * 'Confluence Administrator' global permission.
10
+ *
11
+ * @returns Returned if the record is created in the audit log.
12
+ * @path {POST} /wiki/rest/api/audit
13
+ * @scopes-current read:audit-log:confluence, write:audit-log:confluence
14
+ */
15
+ createAuditRecord({ auditRecordCreate, }: {
16
+ /** The record to be created in the audit log. */
17
+ auditRecordCreate: AuditRecordCreate;
18
+ }): Promise<AuditRecord>;
19
+ /**
20
+ * Exports audit records as a CSV file or ZIP file.
21
+ *
22
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
23
+ * 'Confluence Administrator' global permission.
24
+ *
25
+ * @returns * status: 200, mediaType: application/zip
26
+ *
27
+ * Returned if the requested export of the audit records is returned.
28
+ *
29
+ * * status: 200, mediaType: text/csv
30
+ *
31
+ * Returned if the requested export of the audit records is returned.
32
+ * @path {GET} /wiki/rest/api/audit/export
33
+ * @scopes-current read:audit-log:confluence
34
+ */
35
+ exportAuditRecords({ startDate, endDate, searchString, format, }: {
36
+ /**
37
+ * Filters the exported results to the records on or after the `startDate`.
38
+ * The `startDate` must be specified as [epoch
39
+ * time](https://www.epochconverter.com/) in milliseconds.
40
+ */
41
+ startDate?: string;
42
+ /**
43
+ * Filters the exported results to the records on or before the `endDate`.
44
+ * The `endDate` must be specified as [epoch
45
+ * time](https://www.epochconverter.com/) in milliseconds.
46
+ */
47
+ endDate?: string;
48
+ /**
49
+ * Filters the exported results to records that have string property values
50
+ * matching the `searchString`.
51
+ */
52
+ searchString?: string;
53
+ /** The format of the export file for the audit records. */
54
+ format?: "csv" | "zip";
55
+ }): Promise<commonHttpClient.WithResponse<{
56
+ status: 200;
57
+ mediaType: "application/zip" | "text/csv";
58
+ body: Blob;
59
+ }>>;
60
+ /**
61
+ * Returns all records in the audit log, optionally for a certain date range.
62
+ * This contains information about events like space exports, group membership
63
+ * changes, app installations, etc. For more information, see
64
+ * [Audit log](https://confluence.atlassian.com/confcloud/audit-log-802164269.html)
65
+ * in the Confluence administrator's guide.
66
+ *
67
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
68
+ * 'Confluence Administrator' global permission.
69
+ *
70
+ * @returns Returned if the requested records are returned.
71
+ * @path {GET} /wiki/rest/api/audit
72
+ * @scopes-current read:audit-log:confluence
73
+ */
74
+ getAuditRecords({ startDate, endDate, searchString, start, limit, }: {
75
+ /**
76
+ * Filters the results to the records on or after the `startDate`.
77
+ * The `startDate` must be specified as [epoch
78
+ * time](https://www.epochconverter.com/) in milliseconds.
79
+ */
80
+ startDate?: string;
81
+ /**
82
+ * Filters the results to the records on or before the `endDate`.
83
+ * The `endDate` must be specified as [epoch
84
+ * time](https://www.epochconverter.com/) in milliseconds.
85
+ */
86
+ endDate?: string;
87
+ /**
88
+ * Filters the results to records that have string property values
89
+ * matching the `searchString`.
90
+ */
91
+ searchString?: string;
92
+ /** The starting index of the returned records. */
93
+ start?: number;
94
+ /**
95
+ * The maximum number of records to return per page.
96
+ * Note, this may be restricted by fixed system limits.
97
+ */
98
+ limit?: number;
99
+ }): Promise<AuditRecordArray>;
100
+ /**
101
+ * Returns records from the audit log, for a time period back from the current
102
+ * date. For example, you can use this method to get the last 3 months of records.
103
+ *
104
+ * This contains information about events like space exports, group membership
105
+ * changes, app installations, etc. For more information, see
106
+ * [Audit log](https://confluence.atlassian.com/confcloud/audit-log-802164269.html)
107
+ * in the Confluence administrator's guide.
108
+ *
109
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
110
+ * 'Confluence Administrator' global permission.
111
+ *
112
+ * @returns Returned if the requested records are returned.
113
+ * @path {GET} /wiki/rest/api/audit/since
114
+ * @scopes-current read:audit-log:confluence
115
+ */
116
+ getAuditRecordsForTimePeriod({ number, units, searchString, start, limit, }: {
117
+ /** The number of units for the time period. */
118
+ number?: number;
119
+ /** The unit of time that the time period is measured in. */
120
+ units?: "NANOS" | "MICROS" | "MILLIS" | "SECONDS" | "MINUTES" | "HOURS" | "HALF_DAYS" | "DAYS" | "WEEKS" | "MONTHS" | "YEARS" | "DECADES" | "CENTURIES";
121
+ /**
122
+ * Filters the results to records that have string property values
123
+ * matching the `searchString`.
124
+ */
125
+ searchString?: string;
126
+ /** The starting index of the returned records. */
127
+ start?: number;
128
+ /**
129
+ * The maximum number of records to return per page.
130
+ * Note, this may be restricted by fixed system limits.
131
+ */
132
+ limit?: number;
133
+ }): Promise<AuditRecordArray>;
134
+ /**
135
+ * Returns the retention period for records in the audit log. The retention
136
+ * period is how long an audit record is kept for, from creation date until
137
+ * it is deleted.
138
+ *
139
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
140
+ * 'Confluence Administrator' global permission.
141
+ *
142
+ * @returns Returned if the requested retention period is returned.
143
+ * @path {GET} /wiki/rest/api/audit/retention
144
+ * @scopes-current read:audit-log:confluence
145
+ */
146
+ getRetentionPeriod(): Promise<RetentionPeriod>;
147
+ /**
148
+ * Sets the retention period for records in the audit log. The retention period
149
+ * can be set to a maximum of 1 year.
150
+ *
151
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
152
+ * 'Confluence Administrator' global permission.
153
+ *
154
+ * @returns Returned if the retention period is updated.
155
+ * @path {PUT} /wiki/rest/api/audit/retention
156
+ * @scopes-current write:audit-log:confluence
157
+ */
158
+ setRetentionPeriod({ retentionPeriod, }: {
159
+ /** The updated retention period. */
160
+ retentionPeriod: RetentionPeriod;
161
+ }): Promise<RetentionPeriod>;
162
+ static initialize(): void;
163
+ }