@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,181 @@
1
+ import { CommonHttpService } from "../core/CommonHttpService";
2
+ import { type GroupArrayWithLinks, type User } from "../models/common";
3
+ import { type AccountIdEmailRecord, type AccountIdEmailRecordArray, type BulkUserLookupArray, type UserAnonymous } from "../models/users";
4
+ export declare class UsersService extends CommonHttpService {
5
+ /**
6
+ * Returns information about how anonymous users are represented, like the
7
+ * profile picture and display name.
8
+ *
9
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
10
+ * Permission to access the Confluence site ('Can use' global permission).
11
+ *
12
+ * @returns Returned if the anonymous user representation is returned.
13
+ * @path {GET} /wiki/rest/api/user/anonymous
14
+ * @scopes-current read:confluence-user
15
+ * @scopes-beta read:user:confluence
16
+ */
17
+ getAnonymousUser({ expand, }: {
18
+ /**
19
+ * A multi-value parameter indicating which properties of the user to
20
+ * expand.
21
+ *
22
+ * - `operations` returns the operations that the user is allowed to do.
23
+ */
24
+ expand?: "operations"[];
25
+ }): Promise<UserAnonymous>;
26
+ /**
27
+ * Returns user details for the ids provided in request.
28
+ *
29
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
30
+ * Permission to access the Confluence site ('Can use' global permission).
31
+ *
32
+ * @returns Returned if, the list of users is returned.
33
+ * @path {GET} /wiki/rest/api/user/bulk
34
+ * @scopes-current read:confluence-user
35
+ * @scopes-beta read:content-details:confluence
36
+ */
37
+ getBulkUserLookup({ accountId, expand, limit, }: {
38
+ /** A list of accountId's of users to be returned. */
39
+ accountId: string;
40
+ /**
41
+ * A multi-value parameter indicating which properties of the user to
42
+ * expand.
43
+ *
44
+ * - `operations` returns the operations that the user is allowed to do.
45
+ * - `personalSpace` returns the user's personal space, if it exists.
46
+ * - `isExternalCollaborator` returns whether the user is an external
47
+ * collaborator user.
48
+ */
49
+ expand?: ("operations" | "personalSpace" | "isExternalCollaborator")[];
50
+ /**
51
+ * The maximum number of results returned.
52
+ * Currently API returns 200 results max.
53
+ * If more that 200 ids are passed first 200 will be returned.
54
+ */
55
+ limit?: number;
56
+ }): Promise<BulkUserLookupArray>;
57
+ /**
58
+ * Returns the currently logged-in user. This includes information about
59
+ * the user, like the display name, userKey, account ID, profile picture,
60
+ * and more.
61
+ *
62
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
63
+ * Permission to access the Confluence site ('Can use' global permission).
64
+ *
65
+ * @returns Returned if the current user is returned.
66
+ * @path {GET} /wiki/rest/api/user/current
67
+ * @scopes-current read:confluence-user
68
+ * @scopes-beta read:content-details:confluence
69
+ */
70
+ getCurrentUser({ expand, }: {
71
+ /**
72
+ * A multi-value parameter indicating which properties of the user to
73
+ * expand.
74
+ *
75
+ * - `operations` returns the operations that the user is allowed to do.
76
+ * - `personalSpace` returns the user's personal space, if it exists.
77
+ * - `isExternalCollaborator` returns whether the user is an external
78
+ * collaborator user.
79
+ */
80
+ expand?: ("operations" | "personalSpace" | "isExternalCollaborator")[];
81
+ }): Promise<User | null>;
82
+ /**
83
+ * Returns the groups that a user is a member of.
84
+ *
85
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
86
+ * Permission to access the Confluence site ('Can use' global permission).
87
+ *
88
+ * @returns Returned if the requested groups are returned.
89
+ * @path {GET} /wiki/rest/api/user/memberof
90
+ * @scopes-current read:confluence-user
91
+ * @scopes-beta read:user:confluence, read:group:confluence
92
+ */
93
+ getGroupMembershipsForUser({ accountId, start, limit, }: {
94
+ /**
95
+ * The account ID of the user. The accountId uniquely identifies the user across
96
+ * all Atlassian products.
97
+ * For example, `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`.
98
+ */
99
+ accountId: string;
100
+ /** The starting index of the returned groups. */
101
+ start?: number;
102
+ /**
103
+ * The maximum number of groups to return per page.
104
+ * Note, this may be restricted by fixed system limits.
105
+ */
106
+ limit?: number;
107
+ }): Promise<GroupArrayWithLinks>;
108
+ /**
109
+ * Returns a user's email address. This API is only available to apps approved by
110
+ * Atlassian, according to these
111
+ * [guidelines](https://community.developer.atlassian.com/t/guidelines-for-requesting-access-to-email-address/27603).
112
+ *
113
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
114
+ * Permission to access the Confluence site ('Can use' global permission).
115
+ *
116
+ * @returns Returned if the requested user's email is returned.
117
+ * @path {GET} /wiki/rest/api/user/email
118
+ */
119
+ getPrivacyUnsafeUserEmail({ accountId, }: {
120
+ /**
121
+ * The account ID of the user, which uniquely identifies the user across all
122
+ * Atlassian products.
123
+ * For example, `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`. Required.
124
+ */
125
+ accountId: string;
126
+ }): Promise<AccountIdEmailRecord>;
127
+ /**
128
+ * Returns user email addresses for a set of accountIds. This API is only
129
+ * available to apps approved by
130
+ * Atlassian, according to these
131
+ * [guidelines](https://community.developer.atlassian.com/t/guidelines-for-requesting-access-to-email-address/27603).
132
+ *
133
+ * Any accounts which are not available will not be included in the result.
134
+ *
135
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
136
+ * Permission to access the Confluence site ('Can use' global permission).
137
+ *
138
+ * @returns Returned if the request is successful.
139
+ * @path {GET} /wiki/rest/api/user/email/bulk
140
+ */
141
+ getPrivacyUnsafeUserEmailBulk({ accountId, }: {
142
+ /** The account IDs of the users. */
143
+ accountId: string[];
144
+ }): Promise<AccountIdEmailRecordArray>;
145
+ /**
146
+ * Returns a user. This includes information about the user, such as the
147
+ * display name, account ID, profile picture, and more. The information returned
148
+ * may be
149
+ * restricted by the user's profile visibility settings.
150
+ *
151
+ * **Note:** to add, edit, or delete users in your organization, see the
152
+ * [user management REST API](/cloud/admin/user-management/about/).
153
+ *
154
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
155
+ * Permission to access the Confluence site ('Can use' global permission).
156
+ *
157
+ * @returns Returned if the requested user is returned.
158
+ * @path {GET} /wiki/rest/api/user
159
+ * @scopes-current read:confluence-user
160
+ * @scopes-beta read:content-details:confluence
161
+ */
162
+ getUser({ accountId, expand, }: {
163
+ /**
164
+ * The account ID of the user. The accountId uniquely identifies the user across
165
+ * all Atlassian products.
166
+ * For example, `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`.
167
+ */
168
+ accountId: string;
169
+ /**
170
+ * A multi-value parameter indicating which properties of the user to
171
+ * expand.
172
+ *
173
+ * - `operations` returns the operations that the user is allowed to do.
174
+ * - `personalSpace` returns the user's personal space, if it exists.
175
+ * - `isExternalCollaborator` returns whether the user is an external
176
+ * collaborator user.
177
+ */
178
+ expand?: ("operations" | "personalSpace" | "isExternalCollaborator")[];
179
+ }): Promise<User | null>;
180
+ static initialize(): void;
181
+ }
@@ -0,0 +1,291 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UsersService = 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 users_1 = require("../models/users");
12
+ const validationSchemaStorage_1 = require("../validationSchemaStorage");
13
+ class UsersService extends CommonHttpService_1.CommonHttpService {
14
+ /**
15
+ * Returns information about how anonymous users are represented, like the
16
+ * profile picture and display name.
17
+ *
18
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
19
+ * Permission to access the Confluence site ('Can use' global permission).
20
+ *
21
+ * @returns Returned if the anonymous user representation is returned.
22
+ * @path {GET} /wiki/rest/api/user/anonymous
23
+ * @scopes-current read:confluence-user
24
+ * @scopes-beta read:user:confluence
25
+ */
26
+ getAnonymousUser({ expand, }) {
27
+ return this.getClientInstance()
28
+ .request({
29
+ path: "/wiki/rest/api/user/anonymous",
30
+ method: "GET",
31
+ query: {
32
+ expand,
33
+ },
34
+ })
35
+ .then(this.getClientInstance().responseHandler({
36
+ 200: {
37
+ "application/json": "json",
38
+ },
39
+ }))
40
+ .then(commonHttpClient.castResponse())
41
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("UsersService.getAnonymousUser.response"))
42
+ .then(commonHttpClient.getBody);
43
+ }
44
+ /**
45
+ * Returns user details for the ids provided in request.
46
+ *
47
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
48
+ * Permission to access the Confluence site ('Can use' global permission).
49
+ *
50
+ * @returns Returned if, the list of users is returned.
51
+ * @path {GET} /wiki/rest/api/user/bulk
52
+ * @scopes-current read:confluence-user
53
+ * @scopes-beta read:content-details:confluence
54
+ */
55
+ getBulkUserLookup({ accountId, expand, limit, }) {
56
+ return this.getClientInstance()
57
+ .request({
58
+ path: "/wiki/rest/api/user/bulk",
59
+ method: "GET",
60
+ query: {
61
+ accountId,
62
+ expand,
63
+ limit,
64
+ },
65
+ })
66
+ .then(this.getClientInstance().responseHandler({
67
+ 200: {
68
+ "application/json": "json",
69
+ },
70
+ }))
71
+ .then(commonHttpClient.castResponse())
72
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("UsersService.getBulkUserLookup.response"))
73
+ .then(commonHttpClient.getBody);
74
+ }
75
+ /**
76
+ * Returns the currently logged-in user. This includes information about
77
+ * the user, like the display name, userKey, account ID, profile picture,
78
+ * and more.
79
+ *
80
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
81
+ * Permission to access the Confluence site ('Can use' global permission).
82
+ *
83
+ * @returns Returned if the current user is returned.
84
+ * @path {GET} /wiki/rest/api/user/current
85
+ * @scopes-current read:confluence-user
86
+ * @scopes-beta read:content-details:confluence
87
+ */
88
+ getCurrentUser({ expand, }) {
89
+ return this.getClientInstance()
90
+ .request({
91
+ path: "/wiki/rest/api/user/current",
92
+ method: "GET",
93
+ query: {
94
+ expand,
95
+ },
96
+ })
97
+ .then(this.getClientInstance().responseHandler({
98
+ 200: {
99
+ "application/json": "json",
100
+ },
101
+ }))
102
+ .then(commonHttpClient.castResponse())
103
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("UsersService.getCurrentUser.response"))
104
+ .then(commonHttpClient.getBody);
105
+ }
106
+ /**
107
+ * Returns the groups that a user is a member of.
108
+ *
109
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
110
+ * Permission to access the Confluence site ('Can use' global permission).
111
+ *
112
+ * @returns Returned if the requested groups are returned.
113
+ * @path {GET} /wiki/rest/api/user/memberof
114
+ * @scopes-current read:confluence-user
115
+ * @scopes-beta read:user:confluence, read:group:confluence
116
+ */
117
+ getGroupMembershipsForUser({ accountId, start, limit, }) {
118
+ return this.getClientInstance()
119
+ .request({
120
+ path: "/wiki/rest/api/user/memberof",
121
+ method: "GET",
122
+ query: {
123
+ accountId,
124
+ start,
125
+ limit,
126
+ },
127
+ })
128
+ .then(this.getClientInstance().responseHandler({
129
+ 200: {
130
+ "application/json": "json",
131
+ },
132
+ }))
133
+ .then(commonHttpClient.castResponse())
134
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("UsersService.getGroupMembershipsForUser.response"))
135
+ .then(commonHttpClient.getBody);
136
+ }
137
+ /**
138
+ * Returns a user's email address. This API is only available to apps approved by
139
+ * Atlassian, according to these
140
+ * [guidelines](https://community.developer.atlassian.com/t/guidelines-for-requesting-access-to-email-address/27603).
141
+ *
142
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
143
+ * Permission to access the Confluence site ('Can use' global permission).
144
+ *
145
+ * @returns Returned if the requested user's email is returned.
146
+ * @path {GET} /wiki/rest/api/user/email
147
+ */
148
+ getPrivacyUnsafeUserEmail({ accountId, }) {
149
+ return this.getClientInstance()
150
+ .request({
151
+ path: "/wiki/rest/api/user/email",
152
+ method: "GET",
153
+ query: {
154
+ accountId,
155
+ },
156
+ })
157
+ .then(this.getClientInstance().responseHandler({
158
+ 200: {
159
+ "application/json": "json",
160
+ },
161
+ }))
162
+ .then(commonHttpClient.castResponse())
163
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("UsersService.getPrivacyUnsafeUserEmail.response"))
164
+ .then(commonHttpClient.getBody);
165
+ }
166
+ /**
167
+ * Returns user email addresses for a set of accountIds. This API is only
168
+ * available to apps approved by
169
+ * Atlassian, according to these
170
+ * [guidelines](https://community.developer.atlassian.com/t/guidelines-for-requesting-access-to-email-address/27603).
171
+ *
172
+ * Any accounts which are not available will not be included in the result.
173
+ *
174
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
175
+ * Permission to access the Confluence site ('Can use' global permission).
176
+ *
177
+ * @returns Returned if the request is successful.
178
+ * @path {GET} /wiki/rest/api/user/email/bulk
179
+ */
180
+ getPrivacyUnsafeUserEmailBulk({ accountId, }) {
181
+ return this.getClientInstance()
182
+ .request({
183
+ path: "/wiki/rest/api/user/email/bulk",
184
+ method: "GET",
185
+ query: {
186
+ accountId,
187
+ },
188
+ })
189
+ .then(this.getClientInstance().responseHandler({
190
+ 200: {
191
+ "application/json": "json",
192
+ },
193
+ }))
194
+ .then(commonHttpClient.castResponse())
195
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("UsersService.getPrivacyUnsafeUserEmailBulk.response"))
196
+ .then(commonHttpClient.getBody);
197
+ }
198
+ /**
199
+ * Returns a user. This includes information about the user, such as the
200
+ * display name, account ID, profile picture, and more. The information returned
201
+ * may be
202
+ * restricted by the user's profile visibility settings.
203
+ *
204
+ * **Note:** to add, edit, or delete users in your organization, see the
205
+ * [user management REST API](/cloud/admin/user-management/about/).
206
+ *
207
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
208
+ * Permission to access the Confluence site ('Can use' global permission).
209
+ *
210
+ * @returns Returned if the requested user is returned.
211
+ * @path {GET} /wiki/rest/api/user
212
+ * @scopes-current read:confluence-user
213
+ * @scopes-beta read:content-details:confluence
214
+ */
215
+ getUser({ accountId, expand, }) {
216
+ return this.getClientInstance()
217
+ .request({
218
+ path: "/wiki/rest/api/user",
219
+ method: "GET",
220
+ query: {
221
+ accountId,
222
+ expand,
223
+ },
224
+ })
225
+ .then(this.getClientInstance().responseHandler({
226
+ 200: {
227
+ "application/json": "json",
228
+ },
229
+ }))
230
+ .then(commonHttpClient.castResponse())
231
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("UsersService.getUser.response"))
232
+ .then(commonHttpClient.getBody);
233
+ }
234
+ static initialize() {
235
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("UsersService.getUser.response", zod_1.z
236
+ .object({
237
+ status: zod_1.z.literal(200),
238
+ mediaType: zod_1.z.literal("application/json"),
239
+ body: zod_1.z.nullable(validationSchemaStorage_1.validationSchemaStorage.lazy("User")),
240
+ })
241
+ .describe("UsersService.getUser.response"));
242
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("UsersService.getAnonymousUser.response", zod_1.z
243
+ .object({
244
+ status: zod_1.z.literal(200),
245
+ mediaType: zod_1.z.literal("application/json"),
246
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("UserAnonymous"),
247
+ })
248
+ .describe("UsersService.getAnonymousUser.response"));
249
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("UsersService.getBulkUserLookup.response", zod_1.z
250
+ .object({
251
+ status: zod_1.z.literal(200),
252
+ mediaType: zod_1.z.literal("application/json"),
253
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("BulkUserLookupArray"),
254
+ })
255
+ .describe("UsersService.getBulkUserLookup.response"));
256
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("UsersService.getCurrentUser.response", zod_1.z
257
+ .object({
258
+ status: zod_1.z.literal(200),
259
+ mediaType: zod_1.z.literal("application/json"),
260
+ body: zod_1.z.nullable(validationSchemaStorage_1.validationSchemaStorage.lazy("User")),
261
+ })
262
+ .describe("UsersService.getCurrentUser.response"));
263
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("UsersService.getPrivacyUnsafeUserEmail.response", zod_1.z
264
+ .object({
265
+ status: zod_1.z.literal(200),
266
+ mediaType: zod_1.z.literal("application/json"),
267
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("AccountIdEmailRecord"),
268
+ })
269
+ .describe("UsersService.getPrivacyUnsafeUserEmail.response"));
270
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("UsersService.getPrivacyUnsafeUserEmailBulk.response", zod_1.z
271
+ .object({
272
+ status: zod_1.z.literal(200),
273
+ mediaType: zod_1.z.literal("application/json"),
274
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("AccountIdEmailRecordArray"),
275
+ })
276
+ .describe("UsersService.getPrivacyUnsafeUserEmailBulk.response"));
277
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("UsersService.getGroupMembershipsForUser.response", zod_1.z
278
+ .object({
279
+ status: zod_1.z.literal(200),
280
+ mediaType: zod_1.z.literal("application/json"),
281
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("GroupArrayWithLinks"),
282
+ })
283
+ .describe("UsersService.getGroupMembershipsForUser.response"));
284
+ validationSchemaStorage_1.validationSchemaStorage.registerOnce([
285
+ common_1.registerCommonValidationSchemas,
286
+ users_1.registerUsersValidationSchemas,
287
+ ]);
288
+ }
289
+ }
290
+ exports.UsersService = UsersService;
291
+ //# sourceMappingURL=UsersService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UsersService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/UsersService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,6CAI0B;AAC1B,2CAMyB;AACzB,wEAAqE;AACrE,MAAa,YAAa,SAAQ,qCAAiB;IACjD;;;;;;;;;;;OAWG;IACH,gBAAgB,CAAC,EACf,MAAM,GASP;QACC,OAAO,IAAI,CAAC,iBAAiB,EAAE;aAC5B,OAAO,CAAC;YACP,IAAI,EAAE,+BAA+B;YACrC,MAAM,EAAE,KA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AAS,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;YACxC,IAAI,EAAE,iDAAuB,CAAC,IAAI,CAAC,sBAAsB,CAAC;SAC3D,CAAC;aACD,QAAQ,CAAC,iDAAiD,CAAC,CAC/D,CAAC;QACF,iDAAuB,CAAC,kBAAkB,CACxC,qDAAqD,EACrD,OAAC;aACE,MAAM,CAAC;YACN,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,GAAG,CAAC;YACtB,SAAS,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;YACxC,IAAI,EAAE,iDAAuB,CAAC,IAAI,CAAC,2BAA2B,CAAC;SAChE,CAAC;aACD,QAAQ,CAAC,qDAAqD,CAAC,CACnE,CAAC;QACF,iDAAuB,CAAC,kBAAkB,CACxC,kDAAkD,EAClD,OAAC;aACE,MAAM,CAAC;YACN,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,GAAG,CAAC;YACtB,SAAS,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;YACxC,IAAI,EAAE,iDAAuB,CAAC,IAAI,CAAC,qBAAqB,CAAC;SAC1D,CAAC;aACD,QAAQ,CAAC,kDAAkD,CAAC,CAChE,CAAC;QACF,iDAAuB,CAAC,YAAY,CAAC;YACnC,wCAA+B;YAC/B,sCAA8B;SAC/B,CAAC,CAAC;IACL,CAAC;CACF;AA3dD,oCA2dC"}
@@ -0,0 +1,3 @@
1
+ import { z } from "zod";
2
+ import { CommonValidationSchemaStorage } from "./core/CommonValidationSchemaStorage";
3
+ export declare const validationSchemaStorage: CommonValidationSchemaStorage<z.ZodTypeAny>;
@@ -0,0 +1,144 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.validationSchemaStorage = 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 CommonValidationSchemaStorage_1 = require("./core/CommonValidationSchemaStorage");
9
+ exports.validationSchemaStorage = new CommonValidationSchemaStorage_1.CommonValidationSchemaStorage({
10
+ assertDataShape: (schema, data) => schema.parse(data),
11
+ makeExtensible: function makeExtensible(zodSchema) {
12
+ if (zodSchema instanceof zod_1.ZodObject) {
13
+ let zodObject = zodSchema;
14
+ const currentShape = zodObject.shape;
15
+ const newShape = Object.fromEntries(Object.entries(currentShape).map(([key, value]) => [
16
+ key,
17
+ makeExtensible(value),
18
+ ]));
19
+ if (Object.entries(newShape).some(([key, value]) => value !== currentShape[key])) {
20
+ zodObject = zodObject.extend(newShape);
21
+ }
22
+ const newCatchall = makeExtensible(zodSchema._def.catchall);
23
+ if (newCatchall !== zodSchema._def.catchall) {
24
+ zodObject = zodObject.catchall(newCatchall);
25
+ }
26
+ if (!(zodObject._def.catchall instanceof zod_1.ZodNever)) {
27
+ return zodObject;
28
+ }
29
+ if (zodObject._def.unknownKeys === "passthrough") {
30
+ return zodObject;
31
+ }
32
+ return zodObject.passthrough();
33
+ }
34
+ else if (zodSchema instanceof zod_1.ZodOptional) {
35
+ const nestedType = makeExtensible(zodSchema.unwrap());
36
+ if (nestedType !== zodSchema.unwrap()) {
37
+ return new zod_1.ZodOptional(Object.assign(Object.assign({}, zodSchema._def), { innerType: nestedType }));
38
+ }
39
+ }
40
+ else if (zodSchema instanceof zod_1.ZodNullable) {
41
+ const nestedType = makeExtensible(zodSchema.unwrap());
42
+ if (nestedType !== zodSchema.unwrap()) {
43
+ return new zod_1.ZodNullable(Object.assign(Object.assign({}, zodSchema._def), { innerType: nestedType }));
44
+ }
45
+ }
46
+ else if (zodSchema instanceof zod_1.ZodArray) {
47
+ const nestedType = makeExtensible(zodSchema.element);
48
+ if (nestedType !== zodSchema.element) {
49
+ return new zod_1.ZodArray(Object.assign(Object.assign({}, zodSchema._def), { type: nestedType }));
50
+ }
51
+ }
52
+ else if (zodSchema instanceof zod_1.ZodIntersection) {
53
+ const left = makeExtensible(zodSchema._def.left);
54
+ const right = makeExtensible(zodSchema._def.right);
55
+ if (left !== zodSchema._def.left || right !== zodSchema._def.right) {
56
+ return new zod_1.ZodIntersection(Object.assign(Object.assign({}, zodSchema._def), { left,
57
+ right }));
58
+ }
59
+ }
60
+ else if (zodSchema instanceof zod_1.ZodUnion) {
61
+ const newOptions = zodSchema._def.options.map((type) => makeExtensible(type));
62
+ if (newOptions.some((type, i) => type !== zodSchema._def.options[i])) {
63
+ return new zod_1.ZodUnion(Object.assign(Object.assign({}, zodSchema._def), { options: newOptions }));
64
+ }
65
+ }
66
+ else if (zodSchema instanceof zod_1.ZodLazy) {
67
+ return new zod_1.ZodLazy(Object.assign(Object.assign({}, zodSchema._def), { getter: () => makeExtensible(zodSchema._def.getter()) }));
68
+ }
69
+ return zodSchema;
70
+ },
71
+ formatErrorMessage: function formatErrorMessage(error, schema) {
72
+ function findModelNameByPath(schema, path) {
73
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
74
+ let result = undefined;
75
+ if (schema instanceof zod_1.ZodLazy) {
76
+ return (_a = findModelNameByPath(schema.schema, path)) !== null && _a !== void 0 ? _a : result;
77
+ }
78
+ if (schema.description !== undefined) {
79
+ result = {
80
+ modelName: schema.description,
81
+ path,
82
+ };
83
+ }
84
+ if (path.length === 0) {
85
+ return result;
86
+ }
87
+ if (schema instanceof zod_1.ZodObject) {
88
+ const [pathBit, ...restPath] = path;
89
+ const field = schema.shape[pathBit];
90
+ if (field !== undefined) {
91
+ result = (_b = findModelNameByPath(field, restPath)) !== null && _b !== void 0 ? _b : result;
92
+ }
93
+ const catchall = schema._def.catchall;
94
+ if (catchall !== undefined) {
95
+ result = (_c = findModelNameByPath(catchall, restPath)) !== null && _c !== void 0 ? _c : result;
96
+ }
97
+ }
98
+ else if (schema instanceof zod_1.ZodArray) {
99
+ const [, ...restPath] = path;
100
+ result = (_d = findModelNameByPath(schema.element, restPath)) !== null && _d !== void 0 ? _d : result;
101
+ }
102
+ else if (schema instanceof zod_1.ZodTuple) {
103
+ const [pathBit, ...restPath] = path;
104
+ const element = schema.items[pathBit];
105
+ if (element !== undefined) {
106
+ result = (_e = findModelNameByPath(element, restPath)) !== null && _e !== void 0 ? _e : result;
107
+ }
108
+ }
109
+ else if (schema instanceof zod_1.ZodOptional) {
110
+ result = (_f = findModelNameByPath(schema.unwrap(), path)) !== null && _f !== void 0 ? _f : result;
111
+ }
112
+ else if (schema instanceof zod_1.ZodNullable) {
113
+ result = (_g = findModelNameByPath(schema.unwrap(), path)) !== null && _g !== void 0 ? _g : result;
114
+ }
115
+ else if (schema instanceof zod_1.ZodIntersection) {
116
+ result =
117
+ (_j = (_h = findModelNameByPath(schema._def.left, path)) !== null && _h !== void 0 ? _h : findModelNameByPath(schema._def.right, path)) !== null && _j !== void 0 ? _j : result;
118
+ }
119
+ else if (schema instanceof zod_1.ZodUnion) {
120
+ result = schema.options.reduce((acc, option) => { var _a; return (_a = findModelNameByPath(option, path)) !== null && _a !== void 0 ? _a : acc; }, result);
121
+ }
122
+ return result;
123
+ }
124
+ function pathToString(path) {
125
+ return path
126
+ .map((p, index) => typeof p === "number" ? `[${p}]` : `${index > 0 ? "." : ""}${p}`)
127
+ .join("");
128
+ }
129
+ if (error instanceof zod_1.ZodError) {
130
+ return error.errors
131
+ .map(({ message, path }) => {
132
+ const info = findModelNameByPath(schema, path);
133
+ const modelInfo = info
134
+ ? ` at '${pathToString([info.modelName, ...info.path])}'`
135
+ : "";
136
+ return `${message}${path.length > 0 ? `${modelInfo}, full path: '${pathToString(path)}'.` : ""}`;
137
+ })
138
+ .join(" ");
139
+ }
140
+ return error.message;
141
+ },
142
+ lazyGetter: (getSchema) => zod_1.z.lazy(getSchema),
143
+ });
144
+ //# sourceMappingURL=validationSchemaStorage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validationSchemaStorage.js","sourceRoot":"","sources":["../../../src/openapi/v1/validationSchemaStorage.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAaa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