@resolution/confluence-api-client 0.10.0 → 0.11.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 (355) hide show
  1. package/CHANGELOG.md +360 -0
  2. package/lib/openapi/core/CommonHttpClient.d.ts +19 -19
  3. package/lib/openapi/core/CommonHttpClient.js +148 -233
  4. package/lib/openapi/core/CommonHttpClient.js.map +1 -1
  5. package/lib/openapi/core/CommonHttpService.d.ts +1 -1
  6. package/lib/openapi/core/CommonHttpService.js.map +1 -1
  7. package/lib/openapi/core/CommonValidationSchemaStorage.d.ts +4 -4
  8. package/lib/openapi/core/CommonValidationSchemaStorage.js +2 -4
  9. package/lib/openapi/core/CommonValidationSchemaStorage.js.map +1 -1
  10. package/lib/openapi/v1/BaseConfluenceApiV1Client.d.ts +1 -1
  11. package/lib/openapi/v1/BaseConfluenceApiV1Client.js +3 -3
  12. package/lib/openapi/v1/BaseConfluenceApiV1Client.js.map +1 -1
  13. package/lib/openapi/v1/models/audit.d.ts +2 -2
  14. package/lib/openapi/v1/models/audit.js +31 -90
  15. package/lib/openapi/v1/models/audit.js.map +1 -1
  16. package/lib/openapi/v1/models/common.d.ts +2 -2
  17. package/lib/openapi/v1/models/common.js +188 -463
  18. package/lib/openapi/v1/models/common.js.map +1 -1
  19. package/lib/openapi/v1/models/content.d.ts +2 -2
  20. package/lib/openapi/v1/models/content.js +205 -491
  21. package/lib/openapi/v1/models/content.js.map +1 -1
  22. package/lib/openapi/v1/models/contentAttachments.d.ts +1 -1
  23. package/lib/openapi/v1/models/contentAttachments.js +8 -19
  24. package/lib/openapi/v1/models/contentAttachments.js.map +1 -1
  25. package/lib/openapi/v1/models/contentBody.d.ts +2 -2
  26. package/lib/openapi/v1/models/contentBody.js +20 -59
  27. package/lib/openapi/v1/models/contentBody.js.map +1 -1
  28. package/lib/openapi/v1/models/contentChildrenAndDescendants.d.ts +1 -1
  29. package/lib/openapi/v1/models/contentChildrenAndDescendants.js +16 -40
  30. package/lib/openapi/v1/models/contentChildrenAndDescendants.js.map +1 -1
  31. package/lib/openapi/v1/models/contentLabels.d.ts +1 -1
  32. package/lib/openapi/v1/models/contentLabels.js +2 -7
  33. package/lib/openapi/v1/models/contentLabels.js.map +1 -1
  34. package/lib/openapi/v1/models/contentMacroBody.d.ts +1 -1
  35. package/lib/openapi/v1/models/contentMacroBody.js +4 -10
  36. package/lib/openapi/v1/models/contentMacroBody.js.map +1 -1
  37. package/lib/openapi/v1/models/contentPermissions.d.ts +2 -2
  38. package/lib/openapi/v1/models/contentPermissions.js +10 -22
  39. package/lib/openapi/v1/models/contentPermissions.js.map +1 -1
  40. package/lib/openapi/v1/models/contentProperties.d.ts +1 -1
  41. package/lib/openapi/v1/models/contentProperties.js +25 -71
  42. package/lib/openapi/v1/models/contentProperties.js.map +1 -1
  43. package/lib/openapi/v1/models/contentRestrictions.d.ts +2 -2
  44. package/lib/openapi/v1/models/contentRestrictions.js +17 -57
  45. package/lib/openapi/v1/models/contentRestrictions.js.map +1 -1
  46. package/lib/openapi/v1/models/contentStates.d.ts +1 -1
  47. package/lib/openapi/v1/models/contentStates.js +15 -35
  48. package/lib/openapi/v1/models/contentStates.js.map +1 -1
  49. package/lib/openapi/v1/models/contentVersions.d.ts +2 -2
  50. package/lib/openapi/v1/models/contentVersions.js +9 -20
  51. package/lib/openapi/v1/models/contentVersions.js.map +1 -1
  52. package/lib/openapi/v1/models/contentWatches.d.ts +2 -2
  53. package/lib/openapi/v1/models/contentWatches.js +21 -46
  54. package/lib/openapi/v1/models/contentWatches.js.map +1 -1
  55. package/lib/openapi/v1/models/dynamicModules.d.ts +1 -1
  56. package/lib/openapi/v1/models/dynamicModules.js +6 -15
  57. package/lib/openapi/v1/models/dynamicModules.js.map +1 -1
  58. package/lib/openapi/v1/models/group.d.ts +1 -1
  59. package/lib/openapi/v1/models/group.js +6 -15
  60. package/lib/openapi/v1/models/group.js.map +1 -1
  61. package/lib/openapi/v1/models/inlineTasks.d.ts +1 -1
  62. package/lib/openapi/v1/models/inlineTasks.js +10 -22
  63. package/lib/openapi/v1/models/inlineTasks.js.map +1 -1
  64. package/lib/openapi/v1/models/labelInfo.d.ts +1 -1
  65. package/lib/openapi/v1/models/labelInfo.js +11 -27
  66. package/lib/openapi/v1/models/labelInfo.js.map +1 -1
  67. package/lib/openapi/v1/models/longRunningTask.d.ts +2 -2
  68. package/lib/openapi/v1/models/longRunningTask.js +20 -42
  69. package/lib/openapi/v1/models/longRunningTask.js.map +1 -1
  70. package/lib/openapi/v1/models/relation.d.ts +2 -2
  71. package/lib/openapi/v1/models/relation.js +16 -45
  72. package/lib/openapi/v1/models/relation.js.map +1 -1
  73. package/lib/openapi/v1/models/search.d.ts +2 -2
  74. package/lib/openapi/v1/models/search.js +15 -34
  75. package/lib/openapi/v1/models/search.js.map +1 -1
  76. package/lib/openapi/v1/models/settings.d.ts +2 -2
  77. package/lib/openapi/v1/models/settings.js +13 -29
  78. package/lib/openapi/v1/models/settings.js.map +1 -1
  79. package/lib/openapi/v1/models/space.d.ts +2 -2
  80. package/lib/openapi/v1/models/space.js +31 -69
  81. package/lib/openapi/v1/models/space.js.map +1 -1
  82. package/lib/openapi/v1/models/spacePermissions.d.ts +1 -1
  83. package/lib/openapi/v1/models/spacePermissions.js +23 -86
  84. package/lib/openapi/v1/models/spacePermissions.js.map +1 -1
  85. package/lib/openapi/v1/models/spaceProperties.d.ts +2 -2
  86. package/lib/openapi/v1/models/spaceProperties.js +26 -71
  87. package/lib/openapi/v1/models/spaceProperties.js.map +1 -1
  88. package/lib/openapi/v1/models/spaceSettings.d.ts +1 -1
  89. package/lib/openapi/v1/models/spaceSettings.js +3 -9
  90. package/lib/openapi/v1/models/spaceSettings.js.map +1 -1
  91. package/lib/openapi/v1/models/template.d.ts +2 -2
  92. package/lib/openapi/v1/models/template.js +45 -103
  93. package/lib/openapi/v1/models/template.js.map +1 -1
  94. package/lib/openapi/v1/models/themes.d.ts +1 -1
  95. package/lib/openapi/v1/models/themes.js +10 -22
  96. package/lib/openapi/v1/models/themes.js.map +1 -1
  97. package/lib/openapi/v1/models/userProperties.d.ts +1 -1
  98. package/lib/openapi/v1/models/userProperties.js +16 -33
  99. package/lib/openapi/v1/models/userProperties.js.map +1 -1
  100. package/lib/openapi/v1/models/users.d.ts +2 -2
  101. package/lib/openapi/v1/models/users.js +25 -57
  102. package/lib/openapi/v1/models/users.js.map +1 -1
  103. package/lib/openapi/v1/services/AnalyticsService.d.ts +2 -2
  104. package/lib/openapi/v1/services/AnalyticsService.js +29 -47
  105. package/lib/openapi/v1/services/AnalyticsService.js.map +1 -1
  106. package/lib/openapi/v1/services/AuditService.d.ts +6 -6
  107. package/lib/openapi/v1/services/AuditService.js +67 -109
  108. package/lib/openapi/v1/services/AuditService.js.map +1 -1
  109. package/lib/openapi/v1/services/ContentAttachmentsService.d.ts +7 -7
  110. package/lib/openapi/v1/services/ContentAttachmentsService.js +72 -109
  111. package/lib/openapi/v1/services/ContentAttachmentsService.js.map +1 -1
  112. package/lib/openapi/v1/services/ContentBodyService.d.ts +7 -7
  113. package/lib/openapi/v1/services/ContentBodyService.js +67 -105
  114. package/lib/openapi/v1/services/ContentBodyService.js.map +1 -1
  115. package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.d.ts +9 -9
  116. package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js +103 -157
  117. package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js.map +1 -1
  118. package/lib/openapi/v1/services/ContentCommentsService.d.ts +1 -1
  119. package/lib/openapi/v1/services/ContentCommentsService.js +16 -23
  120. package/lib/openapi/v1/services/ContentCommentsService.js.map +1 -1
  121. package/lib/openapi/v1/services/ContentLabelsService.d.ts +4 -4
  122. package/lib/openapi/v1/services/ContentLabelsService.js +36 -54
  123. package/lib/openapi/v1/services/ContentLabelsService.js.map +1 -1
  124. package/lib/openapi/v1/services/ContentMacroBodyService.d.ts +4 -4
  125. package/lib/openapi/v1/services/ContentMacroBodyService.js +43 -67
  126. package/lib/openapi/v1/services/ContentMacroBodyService.js.map +1 -1
  127. package/lib/openapi/v1/services/ContentPermissionsService.d.ts +1 -1
  128. package/lib/openapi/v1/services/ContentPermissionsService.js +14 -23
  129. package/lib/openapi/v1/services/ContentPermissionsService.js.map +1 -1
  130. package/lib/openapi/v1/services/ContentPropertiesService.d.ts +7 -7
  131. package/lib/openapi/v1/services/ContentPropertiesService.js +73 -112
  132. package/lib/openapi/v1/services/ContentPropertiesService.js.map +1 -1
  133. package/lib/openapi/v1/services/ContentRestrictionsService.d.ts +13 -13
  134. package/lib/openapi/v1/services/ContentRestrictionsService.js +127 -184
  135. package/lib/openapi/v1/services/ContentRestrictionsService.js.map +1 -1
  136. package/lib/openapi/v1/services/ContentService.d.ts +12 -12
  137. package/lib/openapi/v1/services/ContentService.js +137 -205
  138. package/lib/openapi/v1/services/ContentService.js.map +1 -1
  139. package/lib/openapi/v1/services/ContentStatesService.d.ts +8 -8
  140. package/lib/openapi/v1/services/ContentStatesService.js +96 -155
  141. package/lib/openapi/v1/services/ContentStatesService.js.map +1 -1
  142. package/lib/openapi/v1/services/ContentVersionsService.d.ts +4 -4
  143. package/lib/openapi/v1/services/ContentVersionsService.js +53 -79
  144. package/lib/openapi/v1/services/ContentVersionsService.js.map +1 -1
  145. package/lib/openapi/v1/services/ContentWatchesService.d.ts +13 -13
  146. package/lib/openapi/v1/services/ContentWatchesService.js +113 -169
  147. package/lib/openapi/v1/services/ContentWatchesService.js.map +1 -1
  148. package/lib/openapi/v1/services/DynamicModulesService.d.ts +2 -2
  149. package/lib/openapi/v1/services/DynamicModulesService.js +24 -37
  150. package/lib/openapi/v1/services/DynamicModulesService.js.map +1 -1
  151. package/lib/openapi/v1/services/ExperimentalService.d.ts +5 -5
  152. package/lib/openapi/v1/services/ExperimentalService.js +42 -65
  153. package/lib/openapi/v1/services/ExperimentalService.js.map +1 -1
  154. package/lib/openapi/v1/services/GroupService.d.ts +10 -10
  155. package/lib/openapi/v1/services/GroupService.js +76 -117
  156. package/lib/openapi/v1/services/GroupService.js.map +1 -1
  157. package/lib/openapi/v1/services/InlineTasksService.d.ts +4 -4
  158. package/lib/openapi/v1/services/InlineTasksService.js +36 -59
  159. package/lib/openapi/v1/services/InlineTasksService.js.map +1 -1
  160. package/lib/openapi/v1/services/LabelInfoService.d.ts +1 -1
  161. package/lib/openapi/v1/services/LabelInfoService.js +12 -19
  162. package/lib/openapi/v1/services/LabelInfoService.js.map +1 -1
  163. package/lib/openapi/v1/services/LongRunningTaskService.d.ts +2 -2
  164. package/lib/openapi/v1/services/LongRunningTaskService.js +24 -40
  165. package/lib/openapi/v1/services/LongRunningTaskService.js.map +1 -1
  166. package/lib/openapi/v1/services/RelationService.d.ts +6 -6
  167. package/lib/openapi/v1/services/RelationService.js +64 -94
  168. package/lib/openapi/v1/services/RelationService.js.map +1 -1
  169. package/lib/openapi/v1/services/SearchService.d.ts +2 -2
  170. package/lib/openapi/v1/services/SearchService.js +29 -43
  171. package/lib/openapi/v1/services/SearchService.js.map +1 -1
  172. package/lib/openapi/v1/services/SettingsService.d.ts +6 -6
  173. package/lib/openapi/v1/services/SettingsService.js +61 -98
  174. package/lib/openapi/v1/services/SettingsService.js.map +1 -1
  175. package/lib/openapi/v1/services/SpacePermissionsService.d.ts +4 -4
  176. package/lib/openapi/v1/services/SpacePermissionsService.js +25 -38
  177. package/lib/openapi/v1/services/SpacePermissionsService.js.map +1 -1
  178. package/lib/openapi/v1/services/SpacePropertiesService.d.ts +7 -7
  179. package/lib/openapi/v1/services/SpacePropertiesService.js +73 -112
  180. package/lib/openapi/v1/services/SpacePropertiesService.js.map +1 -1
  181. package/lib/openapi/v1/services/SpaceService.d.ts +9 -9
  182. package/lib/openapi/v1/services/SpaceService.js +108 -169
  183. package/lib/openapi/v1/services/SpaceService.js.map +1 -1
  184. package/lib/openapi/v1/services/SpaceSettingsService.d.ts +2 -2
  185. package/lib/openapi/v1/services/SpaceSettingsService.js +24 -38
  186. package/lib/openapi/v1/services/SpaceSettingsService.js.map +1 -1
  187. package/lib/openapi/v1/services/TemplateService.d.ts +7 -7
  188. package/lib/openapi/v1/services/TemplateService.js +67 -104
  189. package/lib/openapi/v1/services/TemplateService.js.map +1 -1
  190. package/lib/openapi/v1/services/ThemesService.d.ts +5 -5
  191. package/lib/openapi/v1/services/ThemesService.js +61 -101
  192. package/lib/openapi/v1/services/ThemesService.js.map +1 -1
  193. package/lib/openapi/v1/services/UserPropertiesService.d.ts +6 -6
  194. package/lib/openapi/v1/services/UserPropertiesService.js +42 -64
  195. package/lib/openapi/v1/services/UserPropertiesService.js.map +1 -1
  196. package/lib/openapi/v1/services/UsersService.d.ts +9 -9
  197. package/lib/openapi/v1/services/UsersService.js +94 -146
  198. package/lib/openapi/v1/services/UsersService.js.map +1 -1
  199. package/lib/openapi/v1/validationSchemaStorage.d.ts +2 -2
  200. package/lib/openapi/v1/validationSchemaStorage.js +12 -22
  201. package/lib/openapi/v1/validationSchemaStorage.js.map +1 -1
  202. package/lib/openapi/v2/BaseConfluenceApiV2Client.d.ts +1 -1
  203. package/lib/openapi/v2/BaseConfluenceApiV2Client.js +2 -2
  204. package/lib/openapi/v2/BaseConfluenceApiV2Client.js.map +1 -1
  205. package/lib/openapi/v2/models/ancestors.d.ts +1 -1
  206. package/lib/openapi/v2/models/ancestors.js +4 -12
  207. package/lib/openapi/v2/models/ancestors.js.map +1 -1
  208. package/lib/openapi/v2/models/attachment.d.ts +2 -2
  209. package/lib/openapi/v2/models/attachment.js +26 -71
  210. package/lib/openapi/v2/models/attachment.js.map +1 -1
  211. package/lib/openapi/v2/models/blogPost.d.ts +2 -2
  212. package/lib/openapi/v2/models/blogPost.js +37 -102
  213. package/lib/openapi/v2/models/blogPost.js.map +1 -1
  214. package/lib/openapi/v2/models/children.d.ts +1 -1
  215. package/lib/openapi/v2/models/children.js +9 -24
  216. package/lib/openapi/v2/models/children.js.map +1 -1
  217. package/lib/openapi/v2/models/classificationLevel.d.ts +1 -1
  218. package/lib/openapi/v2/models/classificationLevel.js +6 -32
  219. package/lib/openapi/v2/models/classificationLevel.js.map +1 -1
  220. package/lib/openapi/v2/models/comment.d.ts +2 -2
  221. package/lib/openapi/v2/models/comment.js +107 -272
  222. package/lib/openapi/v2/models/comment.js.map +1 -1
  223. package/lib/openapi/v2/models/common.d.ts +1 -1
  224. package/lib/openapi/v2/models/common.js +84 -214
  225. package/lib/openapi/v2/models/common.js.map +1 -1
  226. package/lib/openapi/v2/models/content.d.ts +1 -1
  227. package/lib/openapi/v2/models/content.js +3 -21
  228. package/lib/openapi/v2/models/content.js.map +1 -1
  229. package/lib/openapi/v2/models/contentProperties.d.ts +1 -1
  230. package/lib/openapi/v2/models/contentProperties.js +8 -20
  231. package/lib/openapi/v2/models/contentProperties.js.map +1 -1
  232. package/lib/openapi/v2/models/customContent.d.ts +2 -2
  233. package/lib/openapi/v2/models/customContent.js +43 -121
  234. package/lib/openapi/v2/models/customContent.js.map +1 -1
  235. package/lib/openapi/v2/models/dataPolicies.d.ts +1 -1
  236. package/lib/openapi/v2/models/dataPolicies.js +11 -25
  237. package/lib/openapi/v2/models/dataPolicies.js.map +1 -1
  238. package/lib/openapi/v2/models/database.d.ts +1 -1
  239. package/lib/openapi/v2/models/database.js +8 -19
  240. package/lib/openapi/v2/models/database.js.map +1 -1
  241. package/lib/openapi/v2/models/eap.d.ts +1 -1
  242. package/lib/openapi/v2/models/eap.js +0 -3
  243. package/lib/openapi/v2/models/eap.js.map +1 -1
  244. package/lib/openapi/v2/models/folder.d.ts +1 -1
  245. package/lib/openapi/v2/models/folder.js +8 -19
  246. package/lib/openapi/v2/models/folder.js.map +1 -1
  247. package/lib/openapi/v2/models/operation.d.ts +1 -1
  248. package/lib/openapi/v2/models/operation.js +4 -12
  249. package/lib/openapi/v2/models/operation.js.map +1 -1
  250. package/lib/openapi/v2/models/page.d.ts +2 -2
  251. package/lib/openapi/v2/models/page.js +36 -101
  252. package/lib/openapi/v2/models/page.js.map +1 -1
  253. package/lib/openapi/v2/models/smartLink.d.ts +1 -1
  254. package/lib/openapi/v2/models/smartLink.js +8 -19
  255. package/lib/openapi/v2/models/smartLink.js.map +1 -1
  256. package/lib/openapi/v2/models/space.d.ts +2 -2
  257. package/lib/openapi/v2/models/space.js +21 -57
  258. package/lib/openapi/v2/models/space.js.map +1 -1
  259. package/lib/openapi/v2/models/spaceProperties.d.ts +1 -1
  260. package/lib/openapi/v2/models/spaceProperties.js +8 -20
  261. package/lib/openapi/v2/models/spaceProperties.js.map +1 -1
  262. package/lib/openapi/v2/models/task.d.ts +1 -1
  263. package/lib/openapi/v2/models/task.js +7 -16
  264. package/lib/openapi/v2/models/task.js.map +1 -1
  265. package/lib/openapi/v2/models/user.d.ts +1 -1
  266. package/lib/openapi/v2/models/user.js +7 -20
  267. package/lib/openapi/v2/models/user.js.map +1 -1
  268. package/lib/openapi/v2/models/version.d.ts +1 -1
  269. package/lib/openapi/v2/models/version.js +22 -46
  270. package/lib/openapi/v2/models/version.js.map +1 -1
  271. package/lib/openapi/v2/models/whiteboard.d.ts +1 -1
  272. package/lib/openapi/v2/models/whiteboard.js +8 -19
  273. package/lib/openapi/v2/models/whiteboard.js.map +1 -1
  274. package/lib/openapi/v2/services/AncestorsService.d.ts +5 -5
  275. package/lib/openapi/v2/services/AncestorsService.js +73 -133
  276. package/lib/openapi/v2/services/AncestorsService.js.map +1 -1
  277. package/lib/openapi/v2/services/AttachmentService.d.ts +8 -8
  278. package/lib/openapi/v2/services/AttachmentService.js +98 -180
  279. package/lib/openapi/v2/services/AttachmentService.js.map +1 -1
  280. package/lib/openapi/v2/services/BlogPostService.d.ts +9 -9
  281. package/lib/openapi/v2/services/BlogPostService.js +100 -180
  282. package/lib/openapi/v2/services/BlogPostService.js.map +1 -1
  283. package/lib/openapi/v2/services/ChildrenService.d.ts +2 -2
  284. package/lib/openapi/v2/services/ChildrenService.js +32 -61
  285. package/lib/openapi/v2/services/ChildrenService.js.map +1 -1
  286. package/lib/openapi/v2/services/ClassificationLevelService.d.ts +15 -15
  287. package/lib/openapi/v2/services/ClassificationLevelService.js +127 -191
  288. package/lib/openapi/v2/services/ClassificationLevelService.js.map +1 -1
  289. package/lib/openapi/v2/services/CommentService.d.ts +20 -20
  290. package/lib/openapi/v2/services/CommentService.js +250 -454
  291. package/lib/openapi/v2/services/CommentService.js.map +1 -1
  292. package/lib/openapi/v2/services/ContentPropertiesService.d.ts +46 -46
  293. package/lib/openapi/v2/services/ContentPropertiesService.js +496 -820
  294. package/lib/openapi/v2/services/ContentPropertiesService.js.map +1 -1
  295. package/lib/openapi/v2/services/ContentService.d.ts +1 -1
  296. package/lib/openapi/v2/services/ContentService.js +12 -19
  297. package/lib/openapi/v2/services/ContentService.js.map +1 -1
  298. package/lib/openapi/v2/services/CustomContentService.d.ts +9 -9
  299. package/lib/openapi/v2/services/CustomContentService.js +114 -207
  300. package/lib/openapi/v2/services/CustomContentService.js.map +1 -1
  301. package/lib/openapi/v2/services/DataPoliciesService.d.ts +2 -2
  302. package/lib/openapi/v2/services/DataPoliciesService.js +25 -48
  303. package/lib/openapi/v2/services/DataPoliciesService.js.map +1 -1
  304. package/lib/openapi/v2/services/DatabaseService.d.ts +3 -3
  305. package/lib/openapi/v2/services/DatabaseService.js +37 -63
  306. package/lib/openapi/v2/services/DatabaseService.js.map +1 -1
  307. package/lib/openapi/v2/services/EapService.d.ts +7 -7
  308. package/lib/openapi/v2/services/EapService.js +89 -165
  309. package/lib/openapi/v2/services/EapService.js.map +1 -1
  310. package/lib/openapi/v2/services/FolderService.d.ts +3 -3
  311. package/lib/openapi/v2/services/FolderService.js +36 -62
  312. package/lib/openapi/v2/services/FolderService.js.map +1 -1
  313. package/lib/openapi/v2/services/LabelService.d.ts +7 -7
  314. package/lib/openapi/v2/services/LabelService.js +105 -196
  315. package/lib/openapi/v2/services/LabelService.js.map +1 -1
  316. package/lib/openapi/v2/services/LikeService.d.ts +8 -8
  317. package/lib/openapi/v2/services/LikeService.js +109 -189
  318. package/lib/openapi/v2/services/LikeService.js.map +1 -1
  319. package/lib/openapi/v2/services/OperationService.d.ts +11 -11
  320. package/lib/openapi/v2/services/OperationService.js +122 -199
  321. package/lib/openapi/v2/services/OperationService.js.map +1 -1
  322. package/lib/openapi/v2/services/PageService.d.ts +9 -9
  323. package/lib/openapi/v2/services/PageService.js +100 -180
  324. package/lib/openapi/v2/services/PageService.js.map +1 -1
  325. package/lib/openapi/v2/services/SmartLinkService.d.ts +3 -3
  326. package/lib/openapi/v2/services/SmartLinkService.js +36 -62
  327. package/lib/openapi/v2/services/SmartLinkService.js.map +1 -1
  328. package/lib/openapi/v2/services/SpacePermissionsService.d.ts +3 -3
  329. package/lib/openapi/v2/services/SpacePermissionsService.js +30 -56
  330. package/lib/openapi/v2/services/SpacePermissionsService.js.map +1 -1
  331. package/lib/openapi/v2/services/SpacePropertiesService.d.ts +6 -6
  332. package/lib/openapi/v2/services/SpacePropertiesService.js +56 -92
  333. package/lib/openapi/v2/services/SpacePropertiesService.js.map +1 -1
  334. package/lib/openapi/v2/services/SpaceRolesService.d.ts +5 -5
  335. package/lib/openapi/v2/services/SpaceRolesService.js +60 -111
  336. package/lib/openapi/v2/services/SpaceRolesService.js.map +1 -1
  337. package/lib/openapi/v2/services/SpaceService.d.ts +4 -4
  338. package/lib/openapi/v2/services/SpaceService.js +47 -87
  339. package/lib/openapi/v2/services/SpaceService.js.map +1 -1
  340. package/lib/openapi/v2/services/TaskService.d.ts +4 -4
  341. package/lib/openapi/v2/services/TaskService.js +40 -68
  342. package/lib/openapi/v2/services/TaskService.js.map +1 -1
  343. package/lib/openapi/v2/services/UserService.d.ts +3 -3
  344. package/lib/openapi/v2/services/UserService.js +33 -58
  345. package/lib/openapi/v2/services/UserService.js.map +1 -1
  346. package/lib/openapi/v2/services/VersionService.d.ts +14 -14
  347. package/lib/openapi/v2/services/VersionService.js +158 -281
  348. package/lib/openapi/v2/services/VersionService.js.map +1 -1
  349. package/lib/openapi/v2/services/WhiteboardService.d.ts +3 -3
  350. package/lib/openapi/v2/services/WhiteboardService.js +37 -63
  351. package/lib/openapi/v2/services/WhiteboardService.js.map +1 -1
  352. package/lib/openapi/v2/validationSchemaStorage.d.ts +2 -2
  353. package/lib/openapi/v2/validationSchemaStorage.js +12 -22
  354. package/lib/openapi/v2/validationSchemaStorage.js.map +1 -1
  355. package/package.json +3 -3
@@ -4,12 +4,12 @@ exports.VersionService = void 0;
4
4
  // DO NOT EDIT!
5
5
  // This file is generated by "api-typescript-generator".
6
6
  // To update this file run "yarn build:openapi".
7
- const zod_1 = require("zod");
8
7
  const commonHttpClient = require("../../core/CommonHttpClient");
9
8
  const CommonHttpService_1 = require("../../core/CommonHttpService");
10
9
  const common_1 = require("../models/common");
11
10
  const version_1 = require("../models/version");
12
11
  const validationSchemaStorage_1 = require("../validationSchemaStorage");
12
+ const zod_1 = require("zod");
13
13
  /**
14
14
  * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-version
15
15
  * @category Services
@@ -29,24 +29,19 @@ class VersionService extends CommonHttpService_1.CommonHttpService {
29
29
  * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-version#api-attachments-attachment-id-versions-version-number-get
30
30
  * @param params
31
31
  */
32
- this.getAttachmentVersionDetails = ({ attachmentId, versionNumber, }) => {
33
- return this.getClientInstance()
34
- .request({
32
+ this.getAttachmentVersionDetails = ({ attachmentId, versionNumber }) => {
33
+ return this.getClientInstance().request({
35
34
  path: "/attachments/{attachment-id}/versions/{version-number}",
36
35
  method: "GET",
37
36
  pathParams: {
38
37
  "attachment-id": attachmentId,
39
- "version-number": versionNumber,
40
- },
41
- })
42
- .then(this.getClientInstance().responseHandler({
38
+ "version-number": versionNumber
39
+ }
40
+ }).then(this.getClientInstance().responseHandler({
43
41
  200: {
44
- "application/json": "json",
45
- },
46
- }))
47
- .then(commonHttpClient.castResponse())
48
- .then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("VersionService.getAttachmentVersionDetails.response")))
49
- .then(commonHttpClient.getBody);
42
+ "application/json": "json"
43
+ }
44
+ })).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("VersionService.getAttachmentVersionDetails.response"))).then(commonHttpClient.getBody);
50
45
  };
51
46
  /**
52
47
  * Returns the versions of specific attachment.
@@ -60,28 +55,23 @@ class VersionService extends CommonHttpService_1.CommonHttpService {
60
55
  * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-version#api-attachments-id-versions-get
61
56
  * @param params
62
57
  */
63
- this.getAttachmentVersions = ({ id, cursor, limit, sort, }) => {
64
- return this.getClientInstance()
65
- .request({
58
+ this.getAttachmentVersions = ({ id, cursor, limit, sort }) => {
59
+ return this.getClientInstance().request({
66
60
  path: "/attachments/{id}/versions",
67
61
  method: "GET",
68
62
  pathParams: {
69
- id,
63
+ id
70
64
  },
71
65
  query: {
72
66
  cursor,
73
67
  limit,
74
- sort,
75
- },
76
- })
77
- .then(this.getClientInstance().responseHandler({
68
+ sort
69
+ }
70
+ }).then(this.getClientInstance().responseHandler({
78
71
  200: {
79
- "application/json": "json",
80
- },
81
- }))
82
- .then(commonHttpClient.castResponse())
83
- .then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("VersionService.getAttachmentVersions.response")))
84
- .then(commonHttpClient.getBody);
72
+ "application/json": "json"
73
+ }
74
+ })).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("VersionService.getAttachmentVersions.response"))).then(commonHttpClient.getBody);
85
75
  };
86
76
  /**
87
77
  * Retrieves version details for the specified blog post and version number.
@@ -95,24 +85,19 @@ class VersionService extends CommonHttpService_1.CommonHttpService {
95
85
  * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-version#api-blogposts-blogpost-id-versions-version-number-get
96
86
  * @param params
97
87
  */
98
- this.getBlogPostVersionDetails = ({ blogpostId, versionNumber, }) => {
99
- return this.getClientInstance()
100
- .request({
88
+ this.getBlogPostVersionDetails = ({ blogpostId, versionNumber }) => {
89
+ return this.getClientInstance().request({
101
90
  path: "/blogposts/{blogpost-id}/versions/{version-number}",
102
91
  method: "GET",
103
92
  pathParams: {
104
93
  "blogpost-id": blogpostId,
105
- "version-number": versionNumber,
106
- },
107
- })
108
- .then(this.getClientInstance().responseHandler({
94
+ "version-number": versionNumber
95
+ }
96
+ }).then(this.getClientInstance().responseHandler({
109
97
  200: {
110
- "application/json": "json",
111
- },
112
- }))
113
- .then(commonHttpClient.castResponse())
114
- .then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("VersionService.getBlogPostVersionDetails.response")))
115
- .then(commonHttpClient.getBody);
98
+ "application/json": "json"
99
+ }
100
+ })).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("VersionService.getBlogPostVersionDetails.response"))).then(commonHttpClient.getBody);
116
101
  };
117
102
  /**
118
103
  * Returns the versions of specific blog post.
@@ -126,29 +111,24 @@ class VersionService extends CommonHttpService_1.CommonHttpService {
126
111
  * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-version#api-blogposts-id-versions-get
127
112
  * @param params
128
113
  */
129
- this.getBlogPostVersions = ({ id, bodyFormat, cursor, limit, sort, }) => {
130
- return this.getClientInstance()
131
- .request({
114
+ this.getBlogPostVersions = ({ id, bodyFormat, cursor, limit, sort }) => {
115
+ return this.getClientInstance().request({
132
116
  path: "/blogposts/{id}/versions",
133
117
  method: "GET",
134
118
  pathParams: {
135
- id,
119
+ id
136
120
  },
137
121
  query: {
138
122
  "body-format": bodyFormat,
139
123
  cursor,
140
124
  limit,
141
- sort,
142
- },
143
- })
144
- .then(this.getClientInstance().responseHandler({
125
+ sort
126
+ }
127
+ }).then(this.getClientInstance().responseHandler({
145
128
  200: {
146
- "application/json": "json",
147
- },
148
- }))
149
- .then(commonHttpClient.castResponse())
150
- .then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("VersionService.getBlogPostVersions.response")))
151
- .then(commonHttpClient.getBody);
129
+ "application/json": "json"
130
+ }
131
+ })).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("VersionService.getBlogPostVersions.response"))).then(commonHttpClient.getBody);
152
132
  };
153
133
  /**
154
134
  * Retrieves version details for the specified custom content and version number.
@@ -162,24 +142,19 @@ class VersionService extends CommonHttpService_1.CommonHttpService {
162
142
  * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-version#api-custom-content-custom-content-id-versions-version-number-get
163
143
  * @param params
164
144
  */
165
- this.getCustomContentVersionDetails = ({ customContentId, versionNumber, }) => {
166
- return this.getClientInstance()
167
- .request({
145
+ this.getCustomContentVersionDetails = ({ customContentId, versionNumber }) => {
146
+ return this.getClientInstance().request({
168
147
  path: "/custom-content/{custom-content-id}/versions/{version-number}",
169
148
  method: "GET",
170
149
  pathParams: {
171
150
  "custom-content-id": customContentId,
172
- "version-number": versionNumber,
173
- },
174
- })
175
- .then(this.getClientInstance().responseHandler({
151
+ "version-number": versionNumber
152
+ }
153
+ }).then(this.getClientInstance().responseHandler({
176
154
  200: {
177
- "application/json": "json",
178
- },
179
- }))
180
- .then(commonHttpClient.castResponse())
181
- .then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("VersionService.getCustomContentVersionDetails.response")))
182
- .then(commonHttpClient.getBody);
155
+ "application/json": "json"
156
+ }
157
+ })).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("VersionService.getCustomContentVersionDetails.response"))).then(commonHttpClient.getBody);
183
158
  };
184
159
  /**
185
160
  * Returns the versions of specific custom content.
@@ -193,29 +168,24 @@ class VersionService extends CommonHttpService_1.CommonHttpService {
193
168
  * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-version#api-custom-content-custom-content-id-versions-get
194
169
  * @param params
195
170
  */
196
- this.getCustomContentVersions = ({ customContentId, bodyFormat, cursor, limit, sort, }) => {
197
- return this.getClientInstance()
198
- .request({
171
+ this.getCustomContentVersions = ({ customContentId, bodyFormat, cursor, limit, sort }) => {
172
+ return this.getClientInstance().request({
199
173
  path: "/custom-content/{custom-content-id}/versions",
200
174
  method: "GET",
201
175
  pathParams: {
202
- "custom-content-id": customContentId,
176
+ "custom-content-id": customContentId
203
177
  },
204
178
  query: {
205
179
  "body-format": bodyFormat,
206
180
  cursor,
207
181
  limit,
208
- sort,
209
- },
210
- })
211
- .then(this.getClientInstance().responseHandler({
182
+ sort
183
+ }
184
+ }).then(this.getClientInstance().responseHandler({
212
185
  200: {
213
- "application/json": "json",
214
- },
215
- }))
216
- .then(commonHttpClient.castResponse())
217
- .then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("VersionService.getCustomContentVersions.response")))
218
- .then(commonHttpClient.getBody);
186
+ "application/json": "json"
187
+ }
188
+ })).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("VersionService.getCustomContentVersions.response"))).then(commonHttpClient.getBody);
219
189
  };
220
190
  /**
221
191
  * Retrieves version details for the specified footer comment version.
@@ -230,24 +200,19 @@ class VersionService extends CommonHttpService_1.CommonHttpService {
230
200
  * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-version#api-footer-comments-id-versions-version-number-get
231
201
  * @param params
232
202
  */
233
- this.getFooterCommentVersionDetails = ({ id, versionNumber, }) => {
234
- return this.getClientInstance()
235
- .request({
203
+ this.getFooterCommentVersionDetails = ({ id, versionNumber }) => {
204
+ return this.getClientInstance().request({
236
205
  path: "/footer-comments/{id}/versions/{version-number}",
237
206
  method: "GET",
238
207
  pathParams: {
239
208
  id,
240
- "version-number": versionNumber,
241
- },
242
- })
243
- .then(this.getClientInstance().responseHandler({
209
+ "version-number": versionNumber
210
+ }
211
+ }).then(this.getClientInstance().responseHandler({
244
212
  200: {
245
- "application/json": "json",
246
- },
247
- }))
248
- .then(commonHttpClient.castResponse())
249
- .then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("VersionService.getFooterCommentVersionDetails.response")))
250
- .then(commonHttpClient.getBody);
213
+ "application/json": "json"
214
+ }
215
+ })).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("VersionService.getFooterCommentVersionDetails.response"))).then(commonHttpClient.getBody);
251
216
  };
252
217
  /**
253
218
  * Retrieves the versions of the specified footer comment.
@@ -262,29 +227,24 @@ class VersionService extends CommonHttpService_1.CommonHttpService {
262
227
  * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-version#api-footer-comments-id-versions-get
263
228
  * @param params
264
229
  */
265
- this.getFooterCommentVersions = ({ id, bodyFormat, cursor, limit, sort, }) => {
266
- return this.getClientInstance()
267
- .request({
230
+ this.getFooterCommentVersions = ({ id, bodyFormat, cursor, limit, sort }) => {
231
+ return this.getClientInstance().request({
268
232
  path: "/footer-comments/{id}/versions",
269
233
  method: "GET",
270
234
  pathParams: {
271
- id,
235
+ id
272
236
  },
273
237
  query: {
274
238
  "body-format": bodyFormat,
275
239
  cursor,
276
240
  limit,
277
- sort,
278
- },
279
- })
280
- .then(this.getClientInstance().responseHandler({
241
+ sort
242
+ }
243
+ }).then(this.getClientInstance().responseHandler({
281
244
  200: {
282
- "application/json": "json",
283
- },
284
- }))
285
- .then(commonHttpClient.castResponse())
286
- .then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("VersionService.getFooterCommentVersions.response")))
287
- .then(commonHttpClient.getBody);
245
+ "application/json": "json"
246
+ }
247
+ })).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("VersionService.getFooterCommentVersions.response"))).then(commonHttpClient.getBody);
288
248
  };
289
249
  /**
290
250
  * Retrieves version details for the specified inline comment version.
@@ -299,24 +259,19 @@ class VersionService extends CommonHttpService_1.CommonHttpService {
299
259
  * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-version#api-inline-comments-id-versions-version-number-get
300
260
  * @param params
301
261
  */
302
- this.getInlineCommentVersionDetails = ({ id, versionNumber, }) => {
303
- return this.getClientInstance()
304
- .request({
262
+ this.getInlineCommentVersionDetails = ({ id, versionNumber }) => {
263
+ return this.getClientInstance().request({
305
264
  path: "/inline-comments/{id}/versions/{version-number}",
306
265
  method: "GET",
307
266
  pathParams: {
308
267
  id,
309
- "version-number": versionNumber,
310
- },
311
- })
312
- .then(this.getClientInstance().responseHandler({
268
+ "version-number": versionNumber
269
+ }
270
+ }).then(this.getClientInstance().responseHandler({
313
271
  200: {
314
- "application/json": "json",
315
- },
316
- }))
317
- .then(commonHttpClient.castResponse())
318
- .then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("VersionService.getInlineCommentVersionDetails.response")))
319
- .then(commonHttpClient.getBody);
272
+ "application/json": "json"
273
+ }
274
+ })).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("VersionService.getInlineCommentVersionDetails.response"))).then(commonHttpClient.getBody);
320
275
  };
321
276
  /**
322
277
  * Retrieves the versions of the specified inline comment.
@@ -331,29 +286,24 @@ class VersionService extends CommonHttpService_1.CommonHttpService {
331
286
  * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-version#api-inline-comments-id-versions-get
332
287
  * @param params
333
288
  */
334
- this.getInlineCommentVersions = ({ id, bodyFormat, cursor, limit, sort, }) => {
335
- return this.getClientInstance()
336
- .request({
289
+ this.getInlineCommentVersions = ({ id, bodyFormat, cursor, limit, sort }) => {
290
+ return this.getClientInstance().request({
337
291
  path: "/inline-comments/{id}/versions",
338
292
  method: "GET",
339
293
  pathParams: {
340
- id,
294
+ id
341
295
  },
342
296
  query: {
343
297
  "body-format": bodyFormat,
344
298
  cursor,
345
299
  limit,
346
- sort,
347
- },
348
- })
349
- .then(this.getClientInstance().responseHandler({
300
+ sort
301
+ }
302
+ }).then(this.getClientInstance().responseHandler({
350
303
  200: {
351
- "application/json": "json",
352
- },
353
- }))
354
- .then(commonHttpClient.castResponse())
355
- .then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("VersionService.getInlineCommentVersions.response")))
356
- .then(commonHttpClient.getBody);
304
+ "application/json": "json"
305
+ }
306
+ })).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("VersionService.getInlineCommentVersions.response"))).then(commonHttpClient.getBody);
357
307
  };
358
308
  /**
359
309
  * Retrieves version details for the specified page and version number.
@@ -367,24 +317,19 @@ class VersionService extends CommonHttpService_1.CommonHttpService {
367
317
  * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-version#api-pages-page-id-versions-version-number-get
368
318
  * @param params
369
319
  */
370
- this.getPageVersionDetails = ({ pageId, versionNumber, }) => {
371
- return this.getClientInstance()
372
- .request({
320
+ this.getPageVersionDetails = ({ pageId, versionNumber }) => {
321
+ return this.getClientInstance().request({
373
322
  path: "/pages/{page-id}/versions/{version-number}",
374
323
  method: "GET",
375
324
  pathParams: {
376
325
  "page-id": pageId,
377
- "version-number": versionNumber,
378
- },
379
- })
380
- .then(this.getClientInstance().responseHandler({
326
+ "version-number": versionNumber
327
+ }
328
+ }).then(this.getClientInstance().responseHandler({
381
329
  200: {
382
- "application/json": "json",
383
- },
384
- }))
385
- .then(commonHttpClient.castResponse())
386
- .then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("VersionService.getPageVersionDetails.response")))
387
- .then(commonHttpClient.getBody);
330
+ "application/json": "json"
331
+ }
332
+ })).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("VersionService.getPageVersionDetails.response"))).then(commonHttpClient.getBody);
388
333
  };
389
334
  /**
390
335
  * Returns the versions of specific page.
@@ -398,174 +343,106 @@ class VersionService extends CommonHttpService_1.CommonHttpService {
398
343
  * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-version#api-pages-id-versions-get
399
344
  * @param params
400
345
  */
401
- this.getPageVersions = ({ id, bodyFormat, cursor, limit, sort, }) => {
402
- return this.getClientInstance()
403
- .request({
346
+ this.getPageVersions = ({ id, bodyFormat, cursor, limit, sort }) => {
347
+ return this.getClientInstance().request({
404
348
  path: "/pages/{id}/versions",
405
349
  method: "GET",
406
350
  pathParams: {
407
- id,
351
+ id
408
352
  },
409
353
  query: {
410
354
  "body-format": bodyFormat,
411
355
  cursor,
412
356
  limit,
413
- sort,
414
- },
415
- })
416
- .then(this.getClientInstance().responseHandler({
357
+ sort
358
+ }
359
+ }).then(this.getClientInstance().responseHandler({
417
360
  200: {
418
- "application/json": "json",
419
- },
420
- }))
421
- .then(commonHttpClient.castResponse())
422
- .then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("VersionService.getPageVersions.response")))
423
- .then(commonHttpClient.getBody);
361
+ "application/json": "json"
362
+ }
363
+ })).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("VersionService.getPageVersions.response"))).then(commonHttpClient.getBody);
424
364
  };
425
365
  }
426
366
  static initialize() {
427
- validationSchemaStorage_1.validationSchemaStorage.registerExtensible("VersionService.getAttachmentVersionDetails.response", zod_1.z
428
- .object({
367
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("VersionService.getAttachmentVersionDetails.response", zod_1.z.object({
429
368
  status: zod_1.z.literal(200),
430
369
  mediaType: zod_1.z.literal("application/json"),
431
- body: validationSchemaStorage_1.validationSchemaStorage.lazy("DetailedVersion"),
432
- })
433
- .describe("VersionService.getAttachmentVersionDetails.response"));
434
- validationSchemaStorage_1.validationSchemaStorage.registerExtensible("VersionService.getAttachmentVersions.response", zod_1.z
435
- .object({
370
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("DetailedVersion")
371
+ }).describe("VersionService.getAttachmentVersionDetails.response"));
372
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("VersionService.getAttachmentVersions.response", zod_1.z.object({
436
373
  status: zod_1.z.literal(200),
437
374
  mediaType: zod_1.z.literal("application/json"),
438
- body: zod_1.z
439
- .object({
440
- results: zod_1.z
441
- .array(validationSchemaStorage_1.validationSchemaStorage.lazy("AttachmentVersion"))
442
- .optional(),
443
- _links: validationSchemaStorage_1.validationSchemaStorage
444
- .lazy("MultiEntityLinks")
445
- .optional(),
446
- })
447
- .catchall(zod_1.z.unknown()),
448
- })
449
- .describe("VersionService.getAttachmentVersions.response"));
450
- validationSchemaStorage_1.validationSchemaStorage.registerExtensible("VersionService.getBlogPostVersionDetails.response", zod_1.z
451
- .object({
375
+ body: zod_1.z.object({
376
+ results: zod_1.z.array(validationSchemaStorage_1.validationSchemaStorage.lazy("AttachmentVersion")).optional(),
377
+ _links: validationSchemaStorage_1.validationSchemaStorage.lazy("MultiEntityLinks").optional()
378
+ }).catchall(zod_1.z.unknown())
379
+ }).describe("VersionService.getAttachmentVersions.response"));
380
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("VersionService.getBlogPostVersionDetails.response", zod_1.z.object({
452
381
  status: zod_1.z.literal(200),
453
382
  mediaType: zod_1.z.literal("application/json"),
454
- body: validationSchemaStorage_1.validationSchemaStorage.lazy("DetailedVersion"),
455
- })
456
- .describe("VersionService.getBlogPostVersionDetails.response"));
457
- validationSchemaStorage_1.validationSchemaStorage.registerExtensible("VersionService.getBlogPostVersions.response", zod_1.z
458
- .object({
383
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("DetailedVersion")
384
+ }).describe("VersionService.getBlogPostVersionDetails.response"));
385
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("VersionService.getBlogPostVersions.response", zod_1.z.object({
459
386
  status: zod_1.z.literal(200),
460
387
  mediaType: zod_1.z.literal("application/json"),
461
- body: zod_1.z
462
- .object({
463
- results: zod_1.z
464
- .array(validationSchemaStorage_1.validationSchemaStorage.lazy("BlogPostVersion"))
465
- .optional(),
466
- _links: validationSchemaStorage_1.validationSchemaStorage
467
- .lazy("MultiEntityLinks")
468
- .optional(),
469
- })
470
- .catchall(zod_1.z.unknown()),
471
- })
472
- .describe("VersionService.getBlogPostVersions.response"));
473
- validationSchemaStorage_1.validationSchemaStorage.registerExtensible("VersionService.getCustomContentVersions.response", zod_1.z
474
- .object({
388
+ body: zod_1.z.object({
389
+ results: zod_1.z.array(validationSchemaStorage_1.validationSchemaStorage.lazy("BlogPostVersion")).optional(),
390
+ _links: validationSchemaStorage_1.validationSchemaStorage.lazy("MultiEntityLinks").optional()
391
+ }).catchall(zod_1.z.unknown())
392
+ }).describe("VersionService.getBlogPostVersions.response"));
393
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("VersionService.getCustomContentVersions.response", zod_1.z.object({
475
394
  status: zod_1.z.literal(200),
476
395
  mediaType: zod_1.z.literal("application/json"),
477
- body: zod_1.z
478
- .object({
479
- results: zod_1.z
480
- .array(validationSchemaStorage_1.validationSchemaStorage.lazy("CustomContentVersion"))
481
- .optional(),
482
- _links: validationSchemaStorage_1.validationSchemaStorage
483
- .lazy("MultiEntityLinks")
484
- .optional(),
485
- })
486
- .catchall(zod_1.z.unknown()),
487
- })
488
- .describe("VersionService.getCustomContentVersions.response"));
489
- validationSchemaStorage_1.validationSchemaStorage.registerExtensible("VersionService.getCustomContentVersionDetails.response", zod_1.z
490
- .object({
396
+ body: zod_1.z.object({
397
+ results: zod_1.z.array(validationSchemaStorage_1.validationSchemaStorage.lazy("CustomContentVersion")).optional(),
398
+ _links: validationSchemaStorage_1.validationSchemaStorage.lazy("MultiEntityLinks").optional()
399
+ }).catchall(zod_1.z.unknown())
400
+ }).describe("VersionService.getCustomContentVersions.response"));
401
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("VersionService.getCustomContentVersionDetails.response", zod_1.z.object({
491
402
  status: zod_1.z.literal(200),
492
403
  mediaType: zod_1.z.literal("application/json"),
493
- body: validationSchemaStorage_1.validationSchemaStorage.lazy("DetailedVersion"),
494
- })
495
- .describe("VersionService.getCustomContentVersionDetails.response"));
496
- validationSchemaStorage_1.validationSchemaStorage.registerExtensible("VersionService.getFooterCommentVersions.response", zod_1.z
497
- .object({
404
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("DetailedVersion")
405
+ }).describe("VersionService.getCustomContentVersionDetails.response"));
406
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("VersionService.getFooterCommentVersions.response", zod_1.z.object({
498
407
  status: zod_1.z.literal(200),
499
408
  mediaType: zod_1.z.literal("application/json"),
500
- body: zod_1.z
501
- .object({
502
- results: zod_1.z
503
- .array(validationSchemaStorage_1.validationSchemaStorage.lazy("CommentVersion"))
504
- .optional(),
505
- _links: validationSchemaStorage_1.validationSchemaStorage
506
- .lazy("MultiEntityLinks")
507
- .optional(),
508
- })
509
- .catchall(zod_1.z.unknown()),
510
- })
511
- .describe("VersionService.getFooterCommentVersions.response"));
512
- validationSchemaStorage_1.validationSchemaStorage.registerExtensible("VersionService.getFooterCommentVersionDetails.response", zod_1.z
513
- .object({
409
+ body: zod_1.z.object({
410
+ results: zod_1.z.array(validationSchemaStorage_1.validationSchemaStorage.lazy("CommentVersion")).optional(),
411
+ _links: validationSchemaStorage_1.validationSchemaStorage.lazy("MultiEntityLinks").optional()
412
+ }).catchall(zod_1.z.unknown())
413
+ }).describe("VersionService.getFooterCommentVersions.response"));
414
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("VersionService.getFooterCommentVersionDetails.response", zod_1.z.object({
514
415
  status: zod_1.z.literal(200),
515
416
  mediaType: zod_1.z.literal("application/json"),
516
- body: validationSchemaStorage_1.validationSchemaStorage.lazy("DetailedVersion"),
517
- })
518
- .describe("VersionService.getFooterCommentVersionDetails.response"));
519
- validationSchemaStorage_1.validationSchemaStorage.registerExtensible("VersionService.getInlineCommentVersions.response", zod_1.z
520
- .object({
417
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("DetailedVersion")
418
+ }).describe("VersionService.getFooterCommentVersionDetails.response"));
419
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("VersionService.getInlineCommentVersions.response", zod_1.z.object({
521
420
  status: zod_1.z.literal(200),
522
421
  mediaType: zod_1.z.literal("application/json"),
523
- body: zod_1.z
524
- .object({
525
- results: zod_1.z
526
- .array(validationSchemaStorage_1.validationSchemaStorage.lazy("CommentVersion"))
527
- .optional(),
528
- _links: validationSchemaStorage_1.validationSchemaStorage
529
- .lazy("MultiEntityLinks")
530
- .optional(),
531
- })
532
- .catchall(zod_1.z.unknown()),
533
- })
534
- .describe("VersionService.getInlineCommentVersions.response"));
535
- validationSchemaStorage_1.validationSchemaStorage.registerExtensible("VersionService.getInlineCommentVersionDetails.response", zod_1.z
536
- .object({
422
+ body: zod_1.z.object({
423
+ results: zod_1.z.array(validationSchemaStorage_1.validationSchemaStorage.lazy("CommentVersion")).optional(),
424
+ _links: validationSchemaStorage_1.validationSchemaStorage.lazy("MultiEntityLinks").optional()
425
+ }).catchall(zod_1.z.unknown())
426
+ }).describe("VersionService.getInlineCommentVersions.response"));
427
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("VersionService.getInlineCommentVersionDetails.response", zod_1.z.object({
537
428
  status: zod_1.z.literal(200),
538
429
  mediaType: zod_1.z.literal("application/json"),
539
- body: validationSchemaStorage_1.validationSchemaStorage.lazy("DetailedVersion"),
540
- })
541
- .describe("VersionService.getInlineCommentVersionDetails.response"));
542
- validationSchemaStorage_1.validationSchemaStorage.registerExtensible("VersionService.getPageVersions.response", zod_1.z
543
- .object({
430
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("DetailedVersion")
431
+ }).describe("VersionService.getInlineCommentVersionDetails.response"));
432
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("VersionService.getPageVersions.response", zod_1.z.object({
544
433
  status: zod_1.z.literal(200),
545
434
  mediaType: zod_1.z.literal("application/json"),
546
- body: zod_1.z
547
- .object({
548
- results: zod_1.z
549
- .array(validationSchemaStorage_1.validationSchemaStorage.lazy("PageVersion"))
550
- .optional(),
551
- _links: validationSchemaStorage_1.validationSchemaStorage
552
- .lazy("MultiEntityLinks")
553
- .optional(),
554
- })
555
- .catchall(zod_1.z.unknown()),
556
- })
557
- .describe("VersionService.getPageVersions.response"));
558
- validationSchemaStorage_1.validationSchemaStorage.registerExtensible("VersionService.getPageVersionDetails.response", zod_1.z
559
- .object({
435
+ body: zod_1.z.object({
436
+ results: zod_1.z.array(validationSchemaStorage_1.validationSchemaStorage.lazy("PageVersion")).optional(),
437
+ _links: validationSchemaStorage_1.validationSchemaStorage.lazy("MultiEntityLinks").optional()
438
+ }).catchall(zod_1.z.unknown())
439
+ }).describe("VersionService.getPageVersions.response"));
440
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("VersionService.getPageVersionDetails.response", zod_1.z.object({
560
441
  status: zod_1.z.literal(200),
561
442
  mediaType: zod_1.z.literal("application/json"),
562
- body: validationSchemaStorage_1.validationSchemaStorage.lazy("DetailedVersion"),
563
- })
564
- .describe("VersionService.getPageVersionDetails.response"));
565
- validationSchemaStorage_1.validationSchemaStorage.registerOnce([
566
- version_1.registerVersionValidationSchemas,
567
- common_1.registerCommonValidationSchemas,
568
- ]);
443
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("DetailedVersion")
444
+ }).describe("VersionService.getPageVersionDetails.response"));
445
+ validationSchemaStorage_1.validationSchemaStorage.registerOnce([version_1.registerVersionValidationSchemas, common_1.registerCommonValidationSchemas]);
569
446
  }
570
447
  }
571
448
  exports.VersionService = VersionService;