@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,548 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ContentService = 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 content_1 = require("../models/content");
12
+ const validationSchemaStorage_1 = require("../validationSchemaStorage");
13
+ class ContentService extends CommonHttpService_1.CommonHttpService {
14
+ /**
15
+ * Archives a list of pages. The pages to be archived are specified as a list of
16
+ * content IDs.
17
+ * This API accepts the archival request and returns a task ID.
18
+ * The archival process happens asynchronously.
19
+ * Use the /longtask/<taskId> REST API to get the copy task status.
20
+ *
21
+ * Each content ID needs to resolve to page objects that are not already in an
22
+ * archived state.
23
+ * The content IDs need not belong to the same space.
24
+ *
25
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
26
+ * 'Archive' permission for each of the pages in the corresponding space it
27
+ * belongs to.
28
+ *
29
+ * @returns Returned if the archive request has been submitted.
30
+ * @path {POST} /wiki/rest/api/content/archive
31
+ * @scopes-current write:confluence-content
32
+ * @scopes-beta read:content.metadata:confluence, write:page:confluence
33
+ */
34
+ archivePages({ requestBody, }) {
35
+ return this.getClientInstance()
36
+ .request({
37
+ path: "/wiki/rest/api/content/archive",
38
+ method: "POST",
39
+ headers: {
40
+ "Content-Type": "application/json",
41
+ },
42
+ body: requestBody,
43
+ })
44
+ .then(this.getClientInstance().responseHandler({
45
+ 202: {
46
+ "application/json": "json",
47
+ },
48
+ }))
49
+ .then(commonHttpClient.castResponse())
50
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentService.archivePages.response"))
51
+ .then(commonHttpClient.getBody);
52
+ }
53
+ /**
54
+ * Deprecated, use [Confluence's v2
55
+ * API](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/).
56
+ *
57
+ * Creates a new piece of content or publishes an existing draft.
58
+ *
59
+ * To publish a draft, add the `id` and `status` properties to the body of the
60
+ * request.
61
+ * Set the `id` to the ID of the draft and set the `status` to 'current'. When the
62
+ * request is sent, a new piece of content will be created and the metadata from
63
+ * the
64
+ * draft will be transferred into it.
65
+ *
66
+ * By default, the following objects are expanded: `space`, `history`, `version`.
67
+ *
68
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Add'
69
+ * permission for the
70
+ * space that the content will be created in, and permission to view the draft if
71
+ * publishing a draft.
72
+ *
73
+ * @deprecated
74
+ * @returns Returned if the content is created.
75
+ * @path {POST} /wiki/rest/api/content
76
+ * @scopes-current write:confluence-content
77
+ * @scopes-beta read:content-details:confluence, write:content:confluence
78
+ */
79
+ createContent({ status, expand, contentCreate, }) {
80
+ return this.getClientInstance()
81
+ .request({
82
+ path: "/wiki/rest/api/content",
83
+ method: "POST",
84
+ query: {
85
+ status,
86
+ expand,
87
+ },
88
+ headers: {
89
+ "Content-Type": "application/json",
90
+ },
91
+ body: contentCreate,
92
+ })
93
+ .then(this.getClientInstance().responseHandler({
94
+ 200: {
95
+ "application/json": "json",
96
+ },
97
+ }))
98
+ .then(commonHttpClient.castResponse())
99
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentService.createContent.response"))
100
+ .then(commonHttpClient.getBody);
101
+ }
102
+ /**
103
+ * Deprecated, use [Confluence's v2
104
+ * API](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/).
105
+ *
106
+ * Moves a piece of content to the space's trash or purges it from the trash,
107
+ * depending on the content's type and status:
108
+ *
109
+ * - If the content's type is `page`,`blogpost`, or `attachment` and its status is
110
+ * `current`,
111
+ * it will be trashed.
112
+ * - If the content's type is `page`,`blogpost`, or `attachment` and its status is
113
+ * `trashed`,
114
+ * the content will be purged from the trash and deleted permanently. Note,
115
+ * you must also set the `status` query parameter to `trashed` in your request.
116
+ * - If the content's type is `comment`, it will be deleted
117
+ * permanently without being trashed.
118
+ *
119
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
120
+ * 'Delete' permission for the space that the content is in.
121
+ *
122
+ * @deprecated
123
+ * @path {DELETE} /wiki/rest/api/content/{id}
124
+ * @scopes-current write:confluence-content
125
+ * @scopes-beta delete:content:confluence
126
+ */
127
+ deleteContent({ id, status, }) {
128
+ return this.getClientInstance()
129
+ .request({
130
+ path: "/wiki/rest/api/content/{id}",
131
+ method: "DELETE",
132
+ pathParams: {
133
+ id,
134
+ },
135
+ query: {
136
+ status,
137
+ },
138
+ })
139
+ .then(commonHttpClient.discardResult);
140
+ }
141
+ /**
142
+ * Deprecated, use [Confluence's v2
143
+ * API](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/).
144
+ *
145
+ * Returns all content in a Confluence instance.
146
+ *
147
+ * By default, the following objects are expanded: `space`, `history`, `version`.
148
+ *
149
+ * Starting on Dec 10, 2024, if the expand query parameter is used with the
150
+ * `body.export_view` and/or `body.styled_view` properties, then the query limit
151
+ * parameter will be restricted to a maximum value of 25.
152
+ *
153
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
154
+ * Permission to access the Confluence site ('Can use' global permission).
155
+ * Only content that the user has permission to view will be returned.
156
+ *
157
+ * @deprecated
158
+ * @returns Returned if the requested list of content is returned.
159
+ * @path {GET} /wiki/rest/api/content
160
+ * @scopes-current read:confluence-content.summary
161
+ * @scopes-beta read:content-details:confluence
162
+ */
163
+ getContent({ type, spaceKey, title, status, postingDay, expand, trigger, orderby, start, limit, }) {
164
+ return this.getClientInstance()
165
+ .request({
166
+ path: "/wiki/rest/api/content",
167
+ method: "GET",
168
+ query: {
169
+ type,
170
+ spaceKey,
171
+ title,
172
+ status,
173
+ postingDay,
174
+ expand,
175
+ trigger,
176
+ orderby,
177
+ start,
178
+ limit,
179
+ },
180
+ })
181
+ .then(this.getClientInstance().responseHandler({
182
+ 200: {
183
+ "application/json": "json",
184
+ },
185
+ }))
186
+ .then(commonHttpClient.castResponse())
187
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentService.getContent.response"))
188
+ .then(commonHttpClient.getBody);
189
+ }
190
+ /**
191
+ * Deprecated, use [Confluence's v2
192
+ * API](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/).
193
+ *
194
+ * Returns a single piece of content, like a page or a blog post.
195
+ *
196
+ * By default, the following objects are expanded: `space`, `history`, `version`.
197
+ *
198
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
199
+ * Permission to view the content. If the content is a blog post, 'View' permission
200
+ * for the space is required.
201
+ *
202
+ * @deprecated
203
+ * @returns Returned if the requested content is returned.
204
+ * @path {GET} /wiki/rest/api/content/{id}
205
+ * @scopes-current read:confluence-content.summary
206
+ * @scopes-beta read:content-details:confluence
207
+ */
208
+ getContentById({ id, status, version, embeddedContentRender, expand, trigger, }) {
209
+ return this.getClientInstance()
210
+ .request({
211
+ path: "/wiki/rest/api/content/{id}",
212
+ method: "GET",
213
+ pathParams: {
214
+ id,
215
+ },
216
+ query: {
217
+ status,
218
+ version,
219
+ embeddedContentRender,
220
+ expand,
221
+ trigger,
222
+ },
223
+ })
224
+ .then(this.getClientInstance().responseHandler({
225
+ 200: {
226
+ "application/json": "json",
227
+ },
228
+ }))
229
+ .then(commonHttpClient.castResponse())
230
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentService.getContentById.response"))
231
+ .then(commonHttpClient.getBody);
232
+ }
233
+ /**
234
+ * Deprecated, use [Confluence's v2
235
+ * API](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/).
236
+ *
237
+ * Returns the most recent update for a piece of content.
238
+ *
239
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
240
+ * Permission to view the content.
241
+ *
242
+ * @deprecated
243
+ * @returns Returned if the requested content history is returned.
244
+ * @path {GET} /wiki/rest/api/content/{id}/history
245
+ * @scopes-current read:confluence-content.summary
246
+ * @scopes-beta read:content.metadata:confluence, read:user:confluence
247
+ */
248
+ getHistoryForContent({ id, expand, }) {
249
+ return this.getClientInstance()
250
+ .request({
251
+ path: "/wiki/rest/api/content/{id}/history",
252
+ method: "GET",
253
+ pathParams: {
254
+ id,
255
+ },
256
+ query: {
257
+ expand,
258
+ },
259
+ })
260
+ .then(this.getClientInstance().responseHandler({
261
+ 200: {
262
+ "application/json": "json",
263
+ },
264
+ }))
265
+ .then(commonHttpClient.castResponse())
266
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentService.getHistoryForContent.response"))
267
+ .then(commonHttpClient.getBody);
268
+ }
269
+ /**
270
+ * Publishes a legacy draft of a page created from a blueprint. Legacy drafts
271
+ * will eventually be removed in favor of shared drafts. For now, this method
272
+ * works the same as [Publish shared
273
+ * draft](#api-content-blueprint-instance-draftId-put).
274
+ *
275
+ * By default, the following objects are expanded: `body.storage`, `history`,
276
+ * `space`, `version`, `ancestors`.
277
+ *
278
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
279
+ * Permission to view the draft and 'Add' permission for the space that
280
+ * the content will be created in.
281
+ *
282
+ * @returns Returned if the draft was successfully published.
283
+ * @path {POST} /wiki/rest/api/content/blueprint/instance/{draftId}
284
+ * @scopes-current write:confluence-content
285
+ * @scopes-beta read:content-details:confluence, write:content:confluence
286
+ */
287
+ publishLegacyDraft({ draftId, status, expand, contentBlueprintDraft, }) {
288
+ return this.getClientInstance()
289
+ .request({
290
+ path: "/wiki/rest/api/content/blueprint/instance/{draftId}",
291
+ method: "POST",
292
+ pathParams: {
293
+ draftId,
294
+ },
295
+ query: {
296
+ status,
297
+ expand,
298
+ },
299
+ headers: {
300
+ "Content-Type": "application/json",
301
+ },
302
+ body: contentBlueprintDraft,
303
+ })
304
+ .then(this.getClientInstance().responseHandler({
305
+ 200: {
306
+ "application/json": "json",
307
+ },
308
+ }))
309
+ .then(commonHttpClient.castResponse())
310
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentService.publishLegacyDraft.response"))
311
+ .then(commonHttpClient.getBody);
312
+ }
313
+ /**
314
+ * Publishes a shared draft of a page created from a blueprint.
315
+ *
316
+ * By default, the following objects are expanded: `body.storage`, `history`,
317
+ * `space`, `version`, `ancestors`.
318
+ *
319
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
320
+ * Permission to view the draft and 'Add' permission for the space that
321
+ * the content will be created in.
322
+ *
323
+ * @returns Returned if the draft was successfully published.
324
+ * @path {PUT} /wiki/rest/api/content/blueprint/instance/{draftId}
325
+ * @scopes-current write:confluence-content
326
+ * @scopes-beta read:content-details:confluence, write:content:confluence
327
+ */
328
+ publishSharedDraft({ draftId, status, expand, contentBlueprintDraft, }) {
329
+ return this.getClientInstance()
330
+ .request({
331
+ path: "/wiki/rest/api/content/blueprint/instance/{draftId}",
332
+ method: "PUT",
333
+ pathParams: {
334
+ draftId,
335
+ },
336
+ query: {
337
+ status,
338
+ expand,
339
+ },
340
+ headers: {
341
+ "Content-Type": "application/json",
342
+ },
343
+ body: contentBlueprintDraft,
344
+ })
345
+ .then(this.getClientInstance().responseHandler({
346
+ 200: {
347
+ "application/json": "json",
348
+ },
349
+ }))
350
+ .then(commonHttpClient.castResponse())
351
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentService.publishSharedDraft.response"))
352
+ .then(commonHttpClient.getBody);
353
+ }
354
+ /**
355
+ * Returns the list of content that matches a Confluence Query Language
356
+ * (CQL) query. For information on CQL, see:
357
+ * [Advanced searching using
358
+ * CQL](https://developer.atlassian.com/cloud/confluence/advanced-searching-using-cql/).
359
+ *
360
+ * Example initial call:
361
+ * ```
362
+ * /wiki/rest/api/content/search?cql=type=page&limit=25
363
+ * ```
364
+ *
365
+ * Example response:
366
+ * ```
367
+ * {
368
+ * "results": [
369
+ * { ... },
370
+ * { ... },
371
+ * ...
372
+ * { ... }
373
+ * ],
374
+ * "limit": 25,
375
+ * "size": 25,
376
+ * ...
377
+ * "_links": {
378
+ * "base": "<url>",
379
+ * "context": "<url>",
380
+ * "next":
381
+ * "/rest/api/content/search?cql=type=page&limit=25&cursor=raNDoMsTRiNg",
382
+ * "self": "<url>"
383
+ * }
384
+ * }
385
+ * ```
386
+ *
387
+ * When additional results are available, returns `next` and `prev` URLs to
388
+ * retrieve them in subsequent calls. The URLs each contain a cursor that points
389
+ * to the appropriate set of results. Use `limit` to specify the number of results
390
+ * returned in each call.
391
+ * Example subsequent call (taken from example response):
392
+ * ```
393
+ * /wiki/rest/api/content/search?cql=type=page&limit=25&cursor=raNDoMsTRiNg
394
+ * ```
395
+ * The response to this will have a `prev` URL similar to the `next` in the
396
+ * example response.
397
+ *
398
+ * Starting on Dec 10, 2024, if the expand query parameter is used with the
399
+ * `body.export_view` and/or `body.styled_view` properties, then the query limit
400
+ * parameter will be restricted to a maximum value of 25.
401
+ *
402
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
403
+ * Permission to access the Confluence site ('Can use' global permission).
404
+ * Only content that the user has permission to view will be returned.
405
+ *
406
+ * @returns Returned if the requested list of content is returned.
407
+ * @path {GET} /wiki/rest/api/content/search
408
+ * @scopes-current search:confluence
409
+ * @scopes-beta read:content-details:confluence
410
+ */
411
+ searchContentByCql({ cql, cqlcontext, expand, cursor, limit, }) {
412
+ return this.getClientInstance()
413
+ .request({
414
+ path: "/wiki/rest/api/content/search",
415
+ method: "GET",
416
+ query: {
417
+ cql,
418
+ cqlcontext,
419
+ expand,
420
+ cursor,
421
+ limit,
422
+ },
423
+ })
424
+ .then(this.getClientInstance().responseHandler({
425
+ 200: {
426
+ "application/json": "json",
427
+ },
428
+ }))
429
+ .then(commonHttpClient.castResponse())
430
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentService.searchContentByCQL.response"))
431
+ .then(commonHttpClient.getBody);
432
+ }
433
+ /**
434
+ * Deprecated, use [Confluence's v2
435
+ * API](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/).
436
+ *
437
+ * Updates a piece of content. Use this method to update the title or body
438
+ * of a piece of content, change the status, change the parent page, and more.
439
+ *
440
+ * Note, updating draft content is currently not supported.
441
+ *
442
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
443
+ * Permission to update the content.
444
+ *
445
+ * @deprecated
446
+ * @returns Returned if the content is updated.
447
+ * @path {PUT} /wiki/rest/api/content/{id}
448
+ * @scopes-current write:confluence-content
449
+ * @scopes-beta read:content-details:confluence, write:content:confluence
450
+ */
451
+ updateContent({ id, status, conflictPolicy, contentUpdate, }) {
452
+ return this.getClientInstance()
453
+ .request({
454
+ path: "/wiki/rest/api/content/{id}",
455
+ method: "PUT",
456
+ pathParams: {
457
+ id,
458
+ },
459
+ query: {
460
+ status,
461
+ conflictPolicy,
462
+ },
463
+ headers: {
464
+ "Content-Type": "application/json",
465
+ },
466
+ body: contentUpdate,
467
+ })
468
+ .then(this.getClientInstance().responseHandler({
469
+ 200: {
470
+ "application/json": "json",
471
+ },
472
+ }))
473
+ .then(commonHttpClient.castResponse())
474
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentService.updateContent.response"))
475
+ .then(commonHttpClient.getBody);
476
+ }
477
+ static initialize() {
478
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentService.getContent.response", zod_1.z
479
+ .object({
480
+ status: zod_1.z.literal(200),
481
+ mediaType: zod_1.z.literal("application/json"),
482
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentArray"),
483
+ })
484
+ .describe("ContentService.getContent.response"));
485
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentService.createContent.response", zod_1.z
486
+ .object({
487
+ status: zod_1.z.literal(200),
488
+ mediaType: zod_1.z.literal("application/json"),
489
+ body: zod_1.z.nullable(validationSchemaStorage_1.validationSchemaStorage.lazy("Content")),
490
+ })
491
+ .describe("ContentService.createContent.response"));
492
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentService.getContentById.response", zod_1.z
493
+ .object({
494
+ status: zod_1.z.literal(200),
495
+ mediaType: zod_1.z.literal("application/json"),
496
+ body: zod_1.z.nullable(validationSchemaStorage_1.validationSchemaStorage.lazy("Content")),
497
+ })
498
+ .describe("ContentService.getContentById.response"));
499
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentService.updateContent.response", zod_1.z
500
+ .object({
501
+ status: zod_1.z.literal(200),
502
+ mediaType: zod_1.z.literal("application/json"),
503
+ body: zod_1.z.nullable(validationSchemaStorage_1.validationSchemaStorage.lazy("Content")),
504
+ })
505
+ .describe("ContentService.updateContent.response"));
506
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentService.getHistoryForContent.response", zod_1.z
507
+ .object({
508
+ status: zod_1.z.literal(200),
509
+ mediaType: zod_1.z.literal("application/json"),
510
+ body: zod_1.z.nullable(validationSchemaStorage_1.validationSchemaStorage.lazy("ContentHistory")),
511
+ })
512
+ .describe("ContentService.getHistoryForContent.response"));
513
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentService.archivePages.response", zod_1.z
514
+ .object({
515
+ status: zod_1.z.literal(202),
516
+ mediaType: zod_1.z.literal("application/json"),
517
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("LongTask"),
518
+ })
519
+ .describe("ContentService.archivePages.response"));
520
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentService.publishSharedDraft.response", zod_1.z
521
+ .object({
522
+ status: zod_1.z.literal(200),
523
+ mediaType: zod_1.z.literal("application/json"),
524
+ body: zod_1.z.nullable(validationSchemaStorage_1.validationSchemaStorage.lazy("Content")),
525
+ })
526
+ .describe("ContentService.publishSharedDraft.response"));
527
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentService.publishLegacyDraft.response", zod_1.z
528
+ .object({
529
+ status: zod_1.z.literal(200),
530
+ mediaType: zod_1.z.literal("application/json"),
531
+ body: zod_1.z.nullable(validationSchemaStorage_1.validationSchemaStorage.lazy("Content")),
532
+ })
533
+ .describe("ContentService.publishLegacyDraft.response"));
534
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentService.searchContentByCQL.response", zod_1.z
535
+ .object({
536
+ status: zod_1.z.literal(200),
537
+ mediaType: zod_1.z.literal("application/json"),
538
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentArray"),
539
+ })
540
+ .describe("ContentService.searchContentByCQL.response"));
541
+ validationSchemaStorage_1.validationSchemaStorage.registerOnce([
542
+ common_1.registerCommonValidationSchemas,
543
+ content_1.registerContentValidationSchemas,
544
+ ]);
545
+ }
546
+ }
547
+ exports.ContentService = ContentService;
548
+ //# sourceMappingURL=ContentService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContentService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ContentService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,6CAK0B;AAC1B,+CAM2B;AAC3B,wEAAqE;AACrE,MAAa,cAAe,SAAQ,qCAAiB;IACnD;;;;;;;;;;;;;;;;;;;OAmBG;IACH,YAAY,CAAC,EACX,WAAW,GAaZ;QACC,OAAO,IAAI,CAAC,iBAAiB,EAAE;aAC5B,OAAO,CAAC;YACP,IAAI,EAAE,gCAAgC;YACtC,MAAM,EAAE,MAAM;YACd,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;aACnC;YACD,IAAI,EAAE,WAAW;SAClB,CAAC;aACD,IAAI,CACH,IAAI,CAAC,iBAAiB,EAAE,CAAC,eAAe,CAAC;YACvC,GAAG,EAAE;gBACH,kBAAkB,EAAE,MAAM;aAC3B;SACF,CAAC,CACH;aACA,IAAI,CACH,gBAAgB,CAAC,YAAY,EAIzB,CACL;aACA,IAAI,CACH,iDAAuB,CAAC,SAAS,CAC/B,sCAAsC,CACvC,CACF;aACA,IAAI,CAAC,gBAA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