@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.
- package/CHANGELOG.md +11 -0
- package/LICENSE.md +19 -0
- package/README.md +12 -0
- package/lib/index.d.ts +36 -0
- package/lib/index.js +64 -0
- package/lib/index.js.map +1 -0
- package/lib/openapi/v1/BaseConfluenceApiV1Client.d.ts +133 -0
- package/lib/openapi/v1/BaseConfluenceApiV1Client.js +122 -0
- package/lib/openapi/v1/BaseConfluenceApiV1Client.js.map +1 -0
- package/lib/openapi/v1/core/CommonHttpClient.d.ts +196 -0
- package/lib/openapi/v1/core/CommonHttpClient.js +390 -0
- package/lib/openapi/v1/core/CommonHttpClient.js.map +1 -0
- package/lib/openapi/v1/core/CommonHttpService.d.ts +7 -0
- package/lib/openapi/v1/core/CommonHttpService.js +20 -0
- package/lib/openapi/v1/core/CommonHttpService.js.map +1 -0
- package/lib/openapi/v1/core/CommonValidationSchemaStorage.d.ts +35 -0
- package/lib/openapi/v1/core/CommonValidationSchemaStorage.js +65 -0
- package/lib/openapi/v1/core/CommonValidationSchemaStorage.js.map +1 -0
- package/lib/openapi/v1/models/audit.d.ts +151 -0
- package/lib/openapi/v1/models/audit.js +133 -0
- package/lib/openapi/v1/models/audit.js.map +1 -0
- package/lib/openapi/v1/models/common.d.ts +645 -0
- package/lib/openapi/v1/models/common.js +654 -0
- package/lib/openapi/v1/models/common.js.map +1 -0
- package/lib/openapi/v1/models/content.d.ts +554 -0
- package/lib/openapi/v1/models/content.js +613 -0
- package/lib/openapi/v1/models/content.js.map +1 -0
- package/lib/openapi/v1/models/contentAttachments.d.ts +26 -0
- package/lib/openapi/v1/models/contentAttachments.js +33 -0
- package/lib/openapi/v1/models/contentAttachments.js.map +1 -0
- package/lib/openapi/v1/models/contentBody.d.ts +36 -0
- package/lib/openapi/v1/models/contentBody.js +63 -0
- package/lib/openapi/v1/models/contentBody.js.map +1 -0
- package/lib/openapi/v1/models/contentChildrenAndDescendants.d.ts +75 -0
- package/lib/openapi/v1/models/contentChildrenAndDescendants.js +66 -0
- package/lib/openapi/v1/models/contentChildrenAndDescendants.js.map +1 -0
- package/lib/openapi/v1/models/contentLabels.d.ts +5 -0
- package/lib/openapi/v1/models/contentLabels.js +16 -0
- package/lib/openapi/v1/models/contentLabels.js.map +1 -0
- package/lib/openapi/v1/models/contentMacroBody.d.ts +12 -0
- package/lib/openapi/v1/models/contentMacroBody.js +22 -0
- package/lib/openapi/v1/models/contentMacroBody.js.map +1 -0
- package/lib/openapi/v1/models/contentPermissions.d.ts +41 -0
- package/lib/openapi/v1/models/contentPermissions.js +35 -0
- package/lib/openapi/v1/models/contentPermissions.js.map +1 -0
- package/lib/openapi/v1/models/contentProperties.d.ts +73 -0
- package/lib/openapi/v1/models/contentProperties.js +94 -0
- package/lib/openapi/v1/models/contentProperties.js.map +1 -0
- package/lib/openapi/v1/models/contentRestrictions.d.ts +65 -0
- package/lib/openapi/v1/models/contentRestrictions.js +78 -0
- package/lib/openapi/v1/models/contentRestrictions.js.map +1 -0
- package/lib/openapi/v1/models/contentStates.d.ts +75 -0
- package/lib/openapi/v1/models/contentStates.js +72 -0
- package/lib/openapi/v1/models/contentStates.js.map +1 -0
- package/lib/openapi/v1/models/contentVersions.d.ts +28 -0
- package/lib/openapi/v1/models/contentVersions.js +36 -0
- package/lib/openapi/v1/models/contentVersions.js.map +1 -0
- package/lib/openapi/v1/models/contentWatches.d.ts +89 -0
- package/lib/openapi/v1/models/contentWatches.js +81 -0
- package/lib/openapi/v1/models/contentWatches.js.map +1 -0
- package/lib/openapi/v1/models/dynamicModules.d.ts +62 -0
- package/lib/openapi/v1/models/dynamicModules.js +24 -0
- package/lib/openapi/v1/models/dynamicModules.js.map +1 -0
- package/lib/openapi/v1/models/group.d.ts +9 -0
- package/lib/openapi/v1/models/group.js +23 -0
- package/lib/openapi/v1/models/group.js.map +1 -0
- package/lib/openapi/v1/models/inlineTasks.d.ts +30 -0
- package/lib/openapi/v1/models/inlineTasks.js +48 -0
- package/lib/openapi/v1/models/inlineTasks.js.map +1 -0
- package/lib/openapi/v1/models/labelInfo.d.ts +21 -0
- package/lib/openapi/v1/models/labelInfo.js +42 -0
- package/lib/openapi/v1/models/labelInfo.js.map +1 -0
- package/lib/openapi/v1/models/longRunningTask.d.ts +116 -0
- package/lib/openapi/v1/models/longRunningTask.js +82 -0
- package/lib/openapi/v1/models/longRunningTask.js.map +1 -0
- package/lib/openapi/v1/models/relation.d.ts +30 -0
- package/lib/openapi/v1/models/relation.js +61 -0
- package/lib/openapi/v1/models/relation.js.map +1 -0
- package/lib/openapi/v1/models/search.d.ts +41 -0
- package/lib/openapi/v1/models/search.js +65 -0
- package/lib/openapi/v1/models/search.js.map +1 -0
- package/lib/openapi/v1/models/settings.d.ts +36 -0
- package/lib/openapi/v1/models/settings.js +50 -0
- package/lib/openapi/v1/models/settings.js.map +1 -0
- package/lib/openapi/v1/models/space.d.ts +118 -0
- package/lib/openapi/v1/models/space.js +94 -0
- package/lib/openapi/v1/models/space.js.map +1 -0
- package/lib/openapi/v1/models/spacePermissions.d.ts +128 -0
- package/lib/openapi/v1/models/spacePermissions.js +102 -0
- package/lib/openapi/v1/models/spacePermissions.js.map +1 -0
- package/lib/openapi/v1/models/spaceProperties.d.ts +96 -0
- package/lib/openapi/v1/models/spaceProperties.js +93 -0
- package/lib/openapi/v1/models/spaceProperties.js.map +1 -0
- package/lib/openapi/v1/models/spaceSettings.d.ts +14 -0
- package/lib/openapi/v1/models/spaceSettings.js +17 -0
- package/lib/openapi/v1/models/spaceSettings.js.map +1 -0
- package/lib/openapi/v1/models/template.d.ts +201 -0
- package/lib/openapi/v1/models/template.js +163 -0
- package/lib/openapi/v1/models/template.js.map +1 -0
- package/lib/openapi/v1/models/themes.d.ts +26 -0
- package/lib/openapi/v1/models/themes.js +38 -0
- package/lib/openapi/v1/models/themes.js.map +1 -0
- package/lib/openapi/v1/models/userProperties.d.ts +41 -0
- package/lib/openapi/v1/models/userProperties.js +50 -0
- package/lib/openapi/v1/models/userProperties.js.map +1 -0
- package/lib/openapi/v1/models/users.d.ts +98 -0
- package/lib/openapi/v1/models/users.js +87 -0
- package/lib/openapi/v1/models/users.js.map +1 -0
- package/lib/openapi/v1/services/AnalyticsService.d.ts +54 -0
- package/lib/openapi/v1/services/AnalyticsService.js +98 -0
- package/lib/openapi/v1/services/AnalyticsService.js.map +1 -0
- package/lib/openapi/v1/services/AuditService.d.ts +163 -0
- package/lib/openapi/v1/services/AuditService.js +269 -0
- package/lib/openapi/v1/services/AuditService.js.map +1 -0
- package/lib/openapi/v1/services/ContentAttachmentsService.d.ts +332 -0
- package/lib/openapi/v1/services/ContentAttachmentsService.js +362 -0
- package/lib/openapi/v1/services/ContentAttachmentsService.js.map +1 -0
- package/lib/openapi/v1/services/ContentBodyService.d.ts +227 -0
- package/lib/openapi/v1/services/ContentBodyService.js +178 -0
- package/lib/openapi/v1/services/ContentBodyService.js.map +1 -0
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.d.ts +621 -0
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js +453 -0
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js.map +1 -0
- package/lib/openapi/v1/services/ContentCommentsService.d.ts +147 -0
- package/lib/openapi/v1/services/ContentCommentsService.js +72 -0
- package/lib/openapi/v1/services/ContentCommentsService.js.map +1 -0
- package/lib/openapi/v1/services/ContentLabelsService.d.ts +122 -0
- package/lib/openapi/v1/services/ContentLabelsService.js +176 -0
- package/lib/openapi/v1/services/ContentLabelsService.js.map +1 -0
- package/lib/openapi/v1/services/ContentMacroBodyService.d.ts +268 -0
- package/lib/openapi/v1/services/ContentMacroBodyService.js +193 -0
- package/lib/openapi/v1/services/ContentMacroBodyService.js.map +1 -0
- package/lib/openapi/v1/services/ContentPermissionsService.d.ts +34 -0
- package/lib/openapi/v1/services/ContentPermissionsService.js +72 -0
- package/lib/openapi/v1/services/ContentPermissionsService.js.map +1 -0
- package/lib/openapi/v1/services/ContentPropertiesService.d.ts +187 -0
- package/lib/openapi/v1/services/ContentPropertiesService.js +285 -0
- package/lib/openapi/v1/services/ContentPropertiesService.js.map +1 -0
- package/lib/openapi/v1/services/ContentRestrictionsService.d.ts +503 -0
- package/lib/openapi/v1/services/ContentRestrictionsService.js +552 -0
- package/lib/openapi/v1/services/ContentRestrictionsService.js.map +1 -0
- package/lib/openapi/v1/services/ContentService.d.ts +1012 -0
- package/lib/openapi/v1/services/ContentService.js +548 -0
- package/lib/openapi/v1/services/ContentService.js.map +1 -0
- package/lib/openapi/v1/services/ContentStatesService.d.ts +220 -0
- package/lib/openapi/v1/services/ContentStatesService.js +439 -0
- package/lib/openapi/v1/services/ContentStatesService.js.map +1 -0
- package/lib/openapi/v1/services/ContentVersionsService.d.ts +121 -0
- package/lib/openapi/v1/services/ContentVersionsService.js +181 -0
- package/lib/openapi/v1/services/ContentVersionsService.js.map +1 -0
- package/lib/openapi/v1/services/ContentWatchesService.d.ts +550 -0
- package/lib/openapi/v1/services/ContentWatchesService.js +502 -0
- package/lib/openapi/v1/services/ContentWatchesService.js.map +1 -0
- package/lib/openapi/v1/services/DynamicModulesService.d.ts +47 -0
- package/lib/openapi/v1/services/DynamicModulesService.js +92 -0
- package/lib/openapi/v1/services/DynamicModulesService.js.map +1 -0
- package/lib/openapi/v1/services/ExperimentalService.d.ts +113 -0
- package/lib/openapi/v1/services/ExperimentalService.js +185 -0
- package/lib/openapi/v1/services/ExperimentalService.js.map +1 -0
- package/lib/openapi/v1/services/GroupService.d.ts +379 -0
- package/lib/openapi/v1/services/GroupService.js +515 -0
- package/lib/openapi/v1/services/GroupService.js.map +1 -0
- package/lib/openapi/v1/services/InlineTasksService.d.ts +91 -0
- package/lib/openapi/v1/services/InlineTasksService.js +155 -0
- package/lib/openapi/v1/services/InlineTasksService.js.map +1 -0
- package/lib/openapi/v1/services/LabelInfoService.d.ts +28 -0
- package/lib/openapi/v1/services/LabelInfoService.js +59 -0
- package/lib/openapi/v1/services/LabelInfoService.js.map +1 -0
- package/lib/openapi/v1/services/LongRunningTaskService.d.ts +43 -0
- package/lib/openapi/v1/services/LongRunningTaskService.js +96 -0
- package/lib/openapi/v1/services/LongRunningTaskService.js.map +1 -0
- package/lib/openapi/v1/services/RelationService.d.ts +404 -0
- package/lib/openapi/v1/services/RelationService.js +270 -0
- package/lib/openapi/v1/services/RelationService.js.map +1 -0
- package/lib/openapi/v1/services/SearchService.d.ts +175 -0
- package/lib/openapi/v1/services/SearchService.js +164 -0
- package/lib/openapi/v1/services/SearchService.js.map +1 -0
- package/lib/openapi/v1/services/SettingsService.d.ts +143 -0
- package/lib/openapi/v1/services/SettingsService.js +249 -0
- package/lib/openapi/v1/services/SettingsService.js.map +1 -0
- package/lib/openapi/v1/services/SpacePermissionsService.d.ts +68 -0
- package/lib/openapi/v1/services/SpacePermissionsService.js +121 -0
- package/lib/openapi/v1/services/SpacePermissionsService.js.map +1 -0
- package/lib/openapi/v1/services/SpacePropertiesService.d.ts +161 -0
- package/lib/openapi/v1/services/SpacePropertiesService.js +275 -0
- package/lib/openapi/v1/services/SpacePropertiesService.js.map +1 -0
- package/lib/openapi/v1/services/SpaceService.d.ts +479 -0
- package/lib/openapi/v1/services/SpaceService.js +394 -0
- package/lib/openapi/v1/services/SpaceService.js.map +1 -0
- package/lib/openapi/v1/services/SpaceSettingsService.d.ts +40 -0
- package/lib/openapi/v1/services/SpaceSettingsService.js +96 -0
- package/lib/openapi/v1/services/SpaceSettingsService.js.map +1 -0
- package/lib/openapi/v1/services/TemplateService.d.ts +163 -0
- package/lib/openapi/v1/services/TemplateService.js +259 -0
- package/lib/openapi/v1/services/TemplateService.js.map +1 -0
- package/lib/openapi/v1/services/ThemesService.d.ts +101 -0
- package/lib/openapi/v1/services/ThemesService.js +228 -0
- package/lib/openapi/v1/services/ThemesService.js.map +1 -0
- package/lib/openapi/v1/services/UserPropertiesService.d.ts +129 -0
- package/lib/openapi/v1/services/UserPropertiesService.js +192 -0
- package/lib/openapi/v1/services/UserPropertiesService.js.map +1 -0
- package/lib/openapi/v1/services/UsersService.d.ts +181 -0
- package/lib/openapi/v1/services/UsersService.js +291 -0
- package/lib/openapi/v1/services/UsersService.js.map +1 -0
- package/lib/openapi/v1/validationSchemaStorage.d.ts +3 -0
- package/lib/openapi/v1/validationSchemaStorage.js +144 -0
- package/lib/openapi/v1/validationSchemaStorage.js.map +1 -0
- package/lib/openapi/v2/BaseConfluenceApiV2Client.d.ts +88 -0
- package/lib/openapi/v2/BaseConfluenceApiV2Client.js +87 -0
- package/lib/openapi/v2/BaseConfluenceApiV2Client.js.map +1 -0
- package/lib/openapi/v2/core/CommonHttpClient.d.ts +196 -0
- package/lib/openapi/v2/core/CommonHttpClient.js +390 -0
- package/lib/openapi/v2/core/CommonHttpClient.js.map +1 -0
- package/lib/openapi/v2/core/CommonHttpService.d.ts +7 -0
- package/lib/openapi/v2/core/CommonHttpService.js +20 -0
- package/lib/openapi/v2/core/CommonHttpService.js.map +1 -0
- package/lib/openapi/v2/core/CommonValidationSchemaStorage.d.ts +35 -0
- package/lib/openapi/v2/core/CommonValidationSchemaStorage.js +65 -0
- package/lib/openapi/v2/core/CommonValidationSchemaStorage.js.map +1 -0
- package/lib/openapi/v2/models/ancestors.d.ts +11 -0
- package/lib/openapi/v2/models/ancestors.js +21 -0
- package/lib/openapi/v2/models/ancestors.js.map +1 -0
- package/lib/openapi/v2/models/attachment.d.ts +148 -0
- package/lib/openapi/v2/models/attachment.js +116 -0
- package/lib/openapi/v2/models/attachment.js.map +1 -0
- package/lib/openapi/v2/models/blogPost.d.ts +106 -0
- package/lib/openapi/v2/models/blogPost.js +134 -0
- package/lib/openapi/v2/models/blogPost.js.map +1 -0
- package/lib/openapi/v2/models/children.d.ts +29 -0
- package/lib/openapi/v2/models/children.js +38 -0
- package/lib/openapi/v2/models/children.js.map +1 -0
- package/lib/openapi/v2/models/classificationLevel.d.ts +28 -0
- package/lib/openapi/v2/models/classificationLevel.js +45 -0
- package/lib/openapi/v2/models/classificationLevel.js.map +1 -0
- package/lib/openapi/v2/models/comment.d.ts +396 -0
- package/lib/openapi/v2/models/comment.js +378 -0
- package/lib/openapi/v2/models/comment.js.map +1 -0
- package/lib/openapi/v2/models/common.d.ts +200 -0
- package/lib/openapi/v2/models/common.js +225 -0
- package/lib/openapi/v2/models/common.js.map +1 -0
- package/lib/openapi/v2/models/content.d.ts +16 -0
- package/lib/openapi/v2/models/content.js +29 -0
- package/lib/openapi/v2/models/content.js.map +1 -0
- package/lib/openapi/v2/models/contentProperties.d.ts +33 -0
- package/lib/openapi/v2/models/contentProperties.js +33 -0
- package/lib/openapi/v2/models/contentProperties.js.map +1 -0
- package/lib/openapi/v2/models/customContent.d.ts +174 -0
- package/lib/openapi/v2/models/customContent.js +163 -0
- package/lib/openapi/v2/models/customContent.js.map +1 -0
- package/lib/openapi/v2/models/dataPolicies.d.ts +34 -0
- package/lib/openapi/v2/models/dataPolicies.js +38 -0
- package/lib/openapi/v2/models/dataPolicies.js.map +1 -0
- package/lib/openapi/v2/models/database.d.ts +35 -0
- package/lib/openapi/v2/models/database.js +38 -0
- package/lib/openapi/v2/models/database.js.map +1 -0
- package/lib/openapi/v2/models/operation.d.ts +8 -0
- package/lib/openapi/v2/models/operation.js +21 -0
- package/lib/openapi/v2/models/operation.js.map +1 -0
- package/lib/openapi/v2/models/page.d.ts +124 -0
- package/lib/openapi/v2/models/page.js +143 -0
- package/lib/openapi/v2/models/page.js.map +1 -0
- package/lib/openapi/v2/models/smartLink.d.ts +38 -0
- package/lib/openapi/v2/models/smartLink.js +38 -0
- package/lib/openapi/v2/models/smartLink.js.map +1 -0
- package/lib/openapi/v2/models/space.d.ts +87 -0
- package/lib/openapi/v2/models/space.js +100 -0
- package/lib/openapi/v2/models/space.js.map +1 -0
- package/lib/openapi/v2/models/spaceProperties.d.ts +27 -0
- package/lib/openapi/v2/models/spaceProperties.js +32 -0
- package/lib/openapi/v2/models/spaceProperties.js.map +1 -0
- package/lib/openapi/v2/models/task.d.ts +39 -0
- package/lib/openapi/v2/models/task.js +39 -0
- package/lib/openapi/v2/models/task.js.map +1 -0
- package/lib/openapi/v2/models/version.d.ts +139 -0
- package/lib/openapi/v2/models/version.js +91 -0
- package/lib/openapi/v2/models/version.js.map +1 -0
- package/lib/openapi/v2/models/whiteboard.d.ts +37 -0
- package/lib/openapi/v2/models/whiteboard.js +39 -0
- package/lib/openapi/v2/models/whiteboard.js.map +1 -0
- package/lib/openapi/v2/services/AncestorsService.d.ts +143 -0
- package/lib/openapi/v2/services/AncestorsService.js +245 -0
- package/lib/openapi/v2/services/AncestorsService.js.map +1 -0
- package/lib/openapi/v2/services/AttachmentService.d.ts +307 -0
- package/lib/openapi/v2/services/AttachmentService.js +370 -0
- package/lib/openapi/v2/services/AttachmentService.js.map +1 -0
- package/lib/openapi/v2/services/BlogPostService.d.ts +386 -0
- package/lib/openapi/v2/services/BlogPostService.js +379 -0
- package/lib/openapi/v2/services/BlogPostService.js.map +1 -0
- package/lib/openapi/v2/services/ChildrenService.d.ts +85 -0
- package/lib/openapi/v2/services/ChildrenService.js +127 -0
- package/lib/openapi/v2/services/ChildrenService.js.map +1 -0
- package/lib/openapi/v2/services/ClassificationLevelService.d.ts +213 -0
- package/lib/openapi/v2/services/ClassificationLevelService.js +340 -0
- package/lib/openapi/v2/services/ClassificationLevelService.js.map +1 -0
- package/lib/openapi/v2/services/CommentService.d.ts +713 -0
- package/lib/openapi/v2/services/CommentService.js +884 -0
- package/lib/openapi/v2/services/CommentService.js.map +1 -0
- package/lib/openapi/v2/services/ContentPropertiesService.d.ts +844 -0
- package/lib/openapi/v2/services/ContentPropertiesService.js +1514 -0
- package/lib/openapi/v2/services/ContentPropertiesService.js.map +1 -0
- package/lib/openapi/v2/services/ContentService.d.ts +31 -0
- package/lib/openapi/v2/services/ContentService.js +62 -0
- package/lib/openapi/v2/services/ContentService.js.map +1 -0
- package/lib/openapi/v2/services/CustomContentService.d.ts +427 -0
- package/lib/openapi/v2/services/CustomContentService.js +423 -0
- package/lib/openapi/v2/services/CustomContentService.js.map +1 -0
- package/lib/openapi/v2/services/DataPoliciesService.d.ts +64 -0
- package/lib/openapi/v2/services/DataPoliciesService.js +108 -0
- package/lib/openapi/v2/services/DataPoliciesService.js.map +1 -0
- package/lib/openapi/v2/services/DatabaseService.d.ts +82 -0
- package/lib/openapi/v2/services/DatabaseService.js +135 -0
- package/lib/openapi/v2/services/DatabaseService.js.map +1 -0
- package/lib/openapi/v2/services/LabelService.d.ts +271 -0
- package/lib/openapi/v2/services/LabelService.js +384 -0
- package/lib/openapi/v2/services/LabelService.js.map +1 -0
- package/lib/openapi/v2/services/LikeService.d.ts +205 -0
- package/lib/openapi/v2/services/LikeService.js +358 -0
- package/lib/openapi/v2/services/LikeService.js.map +1 -0
- package/lib/openapi/v2/services/OperationService.d.ts +154 -0
- package/lib/openapi/v2/services/OperationService.js +374 -0
- package/lib/openapi/v2/services/OperationService.js.map +1 -0
- package/lib/openapi/v2/services/PageService.d.ts +408 -0
- package/lib/openapi/v2/services/PageService.js +381 -0
- package/lib/openapi/v2/services/PageService.js.map +1 -0
- package/lib/openapi/v2/services/SmartLinkService.d.ts +84 -0
- package/lib/openapi/v2/services/SmartLinkService.js +137 -0
- package/lib/openapi/v2/services/SmartLinkService.js.map +1 -0
- package/lib/openapi/v2/services/SpacePermissionsService.d.ts +36 -0
- package/lib/openapi/v2/services/SpacePermissionsService.js +66 -0
- package/lib/openapi/v2/services/SpacePermissionsService.js.map +1 -0
- package/lib/openapi/v2/services/SpacePropertiesService.d.ts +118 -0
- package/lib/openapi/v2/services/SpacePropertiesService.js +213 -0
- package/lib/openapi/v2/services/SpacePropertiesService.js.map +1 -0
- package/lib/openapi/v2/services/SpaceService.d.ts +141 -0
- package/lib/openapi/v2/services/SpaceService.js +133 -0
- package/lib/openapi/v2/services/SpaceService.js.map +1 -0
- package/lib/openapi/v2/services/TaskService.d.ts +184 -0
- package/lib/openapi/v2/services/TaskService.js +165 -0
- package/lib/openapi/v2/services/TaskService.js.map +1 -0
- package/lib/openapi/v2/services/UserService.d.ts +51 -0
- package/lib/openapi/v2/services/UserService.js +83 -0
- package/lib/openapi/v2/services/UserService.js.map +1 -0
- package/lib/openapi/v2/services/VersionService.d.ts +350 -0
- package/lib/openapi/v2/services/VersionService.js +541 -0
- package/lib/openapi/v2/services/VersionService.js.map +1 -0
- package/lib/openapi/v2/services/WhiteboardService.d.ts +82 -0
- package/lib/openapi/v2/services/WhiteboardService.js +135 -0
- package/lib/openapi/v2/services/WhiteboardService.js.map +1 -0
- package/lib/openapi/v2/validationSchemaStorage.d.ts +3 -0
- package/lib/openapi/v2/validationSchemaStorage.js +144 -0
- package/lib/openapi/v2/validationSchemaStorage.js.map +1 -0
- package/package.json +44 -0
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
import { CommonHttpService } from "../core/CommonHttpService";
|
|
2
|
+
import { type AttachmentBulk, type AttachmentSingle, type AttachmentSortOrder } from "../models/attachment";
|
|
3
|
+
import { type MultiEntityLinks } from "../models/common";
|
|
4
|
+
export declare class AttachmentService extends CommonHttpService {
|
|
5
|
+
/**
|
|
6
|
+
* Delete an attachment by id.
|
|
7
|
+
*
|
|
8
|
+
* Deleting an attachment moves the attachment to the trash, where it can be
|
|
9
|
+
* restored later. To permanently delete an attachment (or "purge" it),
|
|
10
|
+
* the endpoint must be called on a **trashed** attachment with the following
|
|
11
|
+
* param `purge=true`.
|
|
12
|
+
*
|
|
13
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
14
|
+
* Permission to view the container of the attachment.
|
|
15
|
+
* Permission to delete attachments in the space.
|
|
16
|
+
* Permission to administer the space (if attempting to purge).
|
|
17
|
+
*
|
|
18
|
+
* @path {DELETE} /attachments/{id}
|
|
19
|
+
* @scopes-current delete:attachment:confluence
|
|
20
|
+
*/
|
|
21
|
+
deleteAttachment({ id, purge, }: {
|
|
22
|
+
/** The ID of the attachment to be deleted. */
|
|
23
|
+
id: number;
|
|
24
|
+
/** If attempting to purge the attachment. */
|
|
25
|
+
purge?: boolean;
|
|
26
|
+
}): Promise<void>;
|
|
27
|
+
/**
|
|
28
|
+
* Returns a specific attachment.
|
|
29
|
+
*
|
|
30
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
31
|
+
* Permission to view the attachment's container.
|
|
32
|
+
*
|
|
33
|
+
* @returns Returned if the requested attachment is returned.
|
|
34
|
+
* @path {GET} /attachments/{id}
|
|
35
|
+
* @scopes-current read:attachment:confluence
|
|
36
|
+
*/
|
|
37
|
+
getAttachmentById({ id, version, includeLabels, includeProperties, includeOperations, includeVersions, includeVersion, }: {
|
|
38
|
+
/**
|
|
39
|
+
* The ID of the attachment to be returned. If you don't know the attachment's ID,
|
|
40
|
+
* use Get attachments for page/blogpost/custom content.
|
|
41
|
+
*/
|
|
42
|
+
id: string;
|
|
43
|
+
/**
|
|
44
|
+
* Allows you to retrieve a previously published version. Specify the previous
|
|
45
|
+
* version's number to retrieve its details.
|
|
46
|
+
*/
|
|
47
|
+
version?: number;
|
|
48
|
+
/**
|
|
49
|
+
* Includes labels associated with this attachment in the response.
|
|
50
|
+
* The number of results will be limited to 50 and sorted in the default sort
|
|
51
|
+
* order.
|
|
52
|
+
* A `meta` and `_links` property will be present to indicate if more results are
|
|
53
|
+
* available and a link to retrieve the rest of the results.
|
|
54
|
+
*/
|
|
55
|
+
includeLabels?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Includes content properties associated with this attachment in the response.
|
|
58
|
+
* The number of results will be limited to 50 and sorted in the default sort
|
|
59
|
+
* order.
|
|
60
|
+
* A `meta` and `_links` property will be present to indicate if more results are
|
|
61
|
+
* available and a link to retrieve the rest of the results.
|
|
62
|
+
*/
|
|
63
|
+
includeProperties?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Includes operations associated with this attachment in the response.
|
|
66
|
+
* The number of results will be limited to 50 and sorted in the default sort
|
|
67
|
+
* order.
|
|
68
|
+
* A `meta` and `_links` property will be present to indicate if more results are
|
|
69
|
+
* available and a link to retrieve the rest of the results.
|
|
70
|
+
*/
|
|
71
|
+
includeOperations?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Includes versions associated with this attachment in the response.
|
|
74
|
+
* The number of results will be limited to 50 and sorted in the default sort
|
|
75
|
+
* order.
|
|
76
|
+
* A `meta` and `_links` property will be present to indicate if more results are
|
|
77
|
+
* available and a link to retrieve the rest of the results.
|
|
78
|
+
*/
|
|
79
|
+
includeVersions?: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Includes the current version associated with this attachment in the response.
|
|
82
|
+
* By default this is included and can be omitted by setting the value to `false`.
|
|
83
|
+
*/
|
|
84
|
+
includeVersion?: boolean;
|
|
85
|
+
}): Promise<AttachmentSingle & ({
|
|
86
|
+
_links?: {
|
|
87
|
+
/** Base url of the Confluence site. */
|
|
88
|
+
base?: string;
|
|
89
|
+
} & {
|
|
90
|
+
[key: string]: unknown;
|
|
91
|
+
};
|
|
92
|
+
} & {
|
|
93
|
+
[key: string]: unknown;
|
|
94
|
+
})>;
|
|
95
|
+
/**
|
|
96
|
+
* Returns all attachments. The number of results is limited by the `limit`
|
|
97
|
+
* parameter and additional results (if available)
|
|
98
|
+
* will be available through the `next` URL present in the `Link` response header.
|
|
99
|
+
*
|
|
100
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
101
|
+
* Permission to view the container of the attachment.
|
|
102
|
+
*
|
|
103
|
+
* @returns Returned if the requested attachments are returned.
|
|
104
|
+
* @path {GET} /attachments
|
|
105
|
+
* @scopes-current read:attachment:confluence
|
|
106
|
+
*/
|
|
107
|
+
getAttachments({ sort, cursor, status, mediaType, filename, limit, }: {
|
|
108
|
+
/** Used to sort the result by a particular field. */
|
|
109
|
+
sort?: AttachmentSortOrder;
|
|
110
|
+
/**
|
|
111
|
+
* Used for pagination, this opaque cursor will be returned in the `next` URL in
|
|
112
|
+
* the `Link` response header. Use the relative URL in the `Link` header to
|
|
113
|
+
* retrieve the `next` set of results.
|
|
114
|
+
*/
|
|
115
|
+
cursor?: string;
|
|
116
|
+
/**
|
|
117
|
+
* Filter the results to attachments based on their status. By default, `current`
|
|
118
|
+
* and `archived` are used.
|
|
119
|
+
*/
|
|
120
|
+
status?: ("current" | "archived" | "trashed")[];
|
|
121
|
+
/** Filters on the mediaType of attachments. Only one may be specified. */
|
|
122
|
+
mediaType?: string;
|
|
123
|
+
/** Filters on the file-name of attachments. Only one may be specified. */
|
|
124
|
+
filename?: string;
|
|
125
|
+
/**
|
|
126
|
+
* Maximum number of attachments per result to return. If more results exist, use
|
|
127
|
+
* the `Link` header to retrieve a relative URL that will return the next set of
|
|
128
|
+
* results.
|
|
129
|
+
*/
|
|
130
|
+
limit?: number;
|
|
131
|
+
}): Promise<{
|
|
132
|
+
results?: AttachmentBulk[];
|
|
133
|
+
_links?: MultiEntityLinks;
|
|
134
|
+
} & {
|
|
135
|
+
[key: string]: unknown;
|
|
136
|
+
}>;
|
|
137
|
+
/**
|
|
138
|
+
* Returns the attachments of specific blog post. The number of results is limited
|
|
139
|
+
* by the `limit` parameter and additional results (if available)
|
|
140
|
+
* will be available through the `next` URL present in the `Link` response header.
|
|
141
|
+
*
|
|
142
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
143
|
+
* Permission to view the content of the blog post and its corresponding space.
|
|
144
|
+
*
|
|
145
|
+
* @returns Returned if the requested attachments are returned.
|
|
146
|
+
* @path {GET} /blogposts/{id}/attachments
|
|
147
|
+
* @scopes-current read:attachment:confluence
|
|
148
|
+
*/
|
|
149
|
+
getBlogpostAttachments({ id, sort, cursor, status, mediaType, filename, limit, }: {
|
|
150
|
+
/** The ID of the blog post for which attachments should be returned. */
|
|
151
|
+
id: number;
|
|
152
|
+
/** Used to sort the result by a particular field. */
|
|
153
|
+
sort?: AttachmentSortOrder;
|
|
154
|
+
/**
|
|
155
|
+
* Used for pagination, this opaque cursor will be returned in the `next` URL in
|
|
156
|
+
* the `Link` response header. Use the relative URL in the `Link` header to
|
|
157
|
+
* retrieve the `next` set of results.
|
|
158
|
+
*/
|
|
159
|
+
cursor?: string;
|
|
160
|
+
/**
|
|
161
|
+
* Filter the results to attachments based on their status. By default, `current`
|
|
162
|
+
* and `archived` are used.
|
|
163
|
+
*/
|
|
164
|
+
status?: ("current" | "archived" | "trashed")[];
|
|
165
|
+
/** Filters on the mediaType of attachments. Only one may be specified. */
|
|
166
|
+
mediaType?: string;
|
|
167
|
+
/** Filters on the file-name of attachments. Only one may be specified. */
|
|
168
|
+
filename?: string;
|
|
169
|
+
/**
|
|
170
|
+
* Maximum number of attachments per result to return. If more results exist, use
|
|
171
|
+
* the `Link` header to retrieve a relative URL that will return the next set of
|
|
172
|
+
* results.
|
|
173
|
+
*/
|
|
174
|
+
limit?: number;
|
|
175
|
+
}): Promise<{
|
|
176
|
+
results?: AttachmentBulk[];
|
|
177
|
+
_links?: MultiEntityLinks;
|
|
178
|
+
} & {
|
|
179
|
+
[key: string]: unknown;
|
|
180
|
+
}>;
|
|
181
|
+
/**
|
|
182
|
+
* Returns the attachments of specific custom content. The number of results is
|
|
183
|
+
* limited by the `limit` parameter and additional results (if available)
|
|
184
|
+
* will be available through the `next` URL present in the `Link` response header.
|
|
185
|
+
*
|
|
186
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
187
|
+
* Permission to view the content of the custom content and its corresponding
|
|
188
|
+
* space.
|
|
189
|
+
*
|
|
190
|
+
* @returns Returned if the requested attachments are returned.
|
|
191
|
+
* @path {GET} /custom-content/{id}/attachments
|
|
192
|
+
* @scopes-current read:attachment:confluence
|
|
193
|
+
*/
|
|
194
|
+
getCustomContentAttachments({ id, sort, cursor, status, mediaType, filename, limit, }: {
|
|
195
|
+
/** The ID of the custom content for which attachments should be returned. */
|
|
196
|
+
id: number;
|
|
197
|
+
/** Used to sort the result by a particular field. */
|
|
198
|
+
sort?: AttachmentSortOrder;
|
|
199
|
+
/**
|
|
200
|
+
* Used for pagination, this opaque cursor will be returned in the `next` URL in
|
|
201
|
+
* the `Link` response header. Use the relative URL in the `Link` header to
|
|
202
|
+
* retrieve the `next` set of results.
|
|
203
|
+
*/
|
|
204
|
+
cursor?: string;
|
|
205
|
+
/**
|
|
206
|
+
* Filter the results to attachments based on their status. By default, `current`
|
|
207
|
+
* and `archived` are used.
|
|
208
|
+
*/
|
|
209
|
+
status?: ("current" | "archived" | "trashed")[];
|
|
210
|
+
/** Filters on the mediaType of attachments. Only one may be specified. */
|
|
211
|
+
mediaType?: string;
|
|
212
|
+
/** Filters on the file-name of attachments. Only one may be specified. */
|
|
213
|
+
filename?: string;
|
|
214
|
+
/**
|
|
215
|
+
* Maximum number of attachments per result to return. If more results exist, use
|
|
216
|
+
* the `Link` header to retrieve a relative URL that will return the next set of
|
|
217
|
+
* results.
|
|
218
|
+
*/
|
|
219
|
+
limit?: number;
|
|
220
|
+
}): Promise<{
|
|
221
|
+
results?: AttachmentBulk[];
|
|
222
|
+
_links?: MultiEntityLinks;
|
|
223
|
+
} & {
|
|
224
|
+
[key: string]: unknown;
|
|
225
|
+
}>;
|
|
226
|
+
/**
|
|
227
|
+
* Returns the attachments of specified label. The number of results is limited by
|
|
228
|
+
* the `limit` parameter and additional results (if available)
|
|
229
|
+
* will be available through the `next` URL present in the `Link` response header.
|
|
230
|
+
*
|
|
231
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
232
|
+
* Permission to view the attachment and its corresponding space.
|
|
233
|
+
*
|
|
234
|
+
* @returns Returned if the requested attachments for specified label were successfully
|
|
235
|
+
* fetched.
|
|
236
|
+
* @path {GET} /labels/{id}/attachments
|
|
237
|
+
* @scopes-current read:attachment:confluence
|
|
238
|
+
*/
|
|
239
|
+
getLabelAttachments({ id, sort, cursor, limit, }: {
|
|
240
|
+
/** The ID of the label for which attachments should be returned. */
|
|
241
|
+
id: number;
|
|
242
|
+
/** Used to sort the result by a particular field. */
|
|
243
|
+
sort?: AttachmentSortOrder;
|
|
244
|
+
/**
|
|
245
|
+
* Used for pagination, this opaque cursor will be returned in the `next` URL in
|
|
246
|
+
* the `Link` response header. Use the relative URL in the `Link` header to
|
|
247
|
+
* retrieve the `next` set of results.
|
|
248
|
+
*/
|
|
249
|
+
cursor?: string;
|
|
250
|
+
/**
|
|
251
|
+
* Maximum number of pages per result to return. If more results exist, use the
|
|
252
|
+
* `Link` header to retrieve a relative URL that will return the next set of
|
|
253
|
+
* results.
|
|
254
|
+
*/
|
|
255
|
+
limit?: number;
|
|
256
|
+
}): Promise<{
|
|
257
|
+
results?: AttachmentBulk[];
|
|
258
|
+
_links?: MultiEntityLinks;
|
|
259
|
+
} & {
|
|
260
|
+
[key: string]: unknown;
|
|
261
|
+
}>;
|
|
262
|
+
/**
|
|
263
|
+
* Returns the attachments of specific page. The number of results is limited by
|
|
264
|
+
* the `limit` parameter and additional results (if available)
|
|
265
|
+
* will be available through the `next` URL present in the `Link` response header.
|
|
266
|
+
*
|
|
267
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
268
|
+
* Permission to view the content of the page and its corresponding space.
|
|
269
|
+
*
|
|
270
|
+
* @returns Returned if the requested attachments are returned.
|
|
271
|
+
* @path {GET} /pages/{id}/attachments
|
|
272
|
+
* @scopes-current read:attachment:confluence
|
|
273
|
+
*/
|
|
274
|
+
getPageAttachments({ id, sort, cursor, status, mediaType, filename, limit, }: {
|
|
275
|
+
/** The ID of the page for which attachments should be returned. */
|
|
276
|
+
id: number;
|
|
277
|
+
/** Used to sort the result by a particular field. */
|
|
278
|
+
sort?: AttachmentSortOrder;
|
|
279
|
+
/**
|
|
280
|
+
* Used for pagination, this opaque cursor will be returned in the `next` URL in
|
|
281
|
+
* the `Link` response header. Use the relative URL in the `Link` header to
|
|
282
|
+
* retrieve the `next` set of results.
|
|
283
|
+
*/
|
|
284
|
+
cursor?: string;
|
|
285
|
+
/**
|
|
286
|
+
* Filter the results to attachments based on their status. By default, `current`
|
|
287
|
+
* and `archived` are used.
|
|
288
|
+
*/
|
|
289
|
+
status?: ("current" | "archived" | "trashed")[];
|
|
290
|
+
/** Filters on the mediaType of attachments. Only one may be specified. */
|
|
291
|
+
mediaType?: string;
|
|
292
|
+
/** Filters on the file-name of attachments. Only one may be specified. */
|
|
293
|
+
filename?: string;
|
|
294
|
+
/**
|
|
295
|
+
* Maximum number of attachments per result to return. If more results exist, use
|
|
296
|
+
* the `Link` header to retrieve a relative URL that will return the next set of
|
|
297
|
+
* results.
|
|
298
|
+
*/
|
|
299
|
+
limit?: number;
|
|
300
|
+
}): Promise<{
|
|
301
|
+
results?: AttachmentBulk[];
|
|
302
|
+
_links?: MultiEntityLinks;
|
|
303
|
+
} & {
|
|
304
|
+
[key: string]: unknown;
|
|
305
|
+
}>;
|
|
306
|
+
static initialize(): void;
|
|
307
|
+
}
|
|
@@ -0,0 +1,370 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AttachmentService = 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 attachment_1 = require("../models/attachment");
|
|
11
|
+
const common_1 = require("../models/common");
|
|
12
|
+
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
13
|
+
class AttachmentService extends CommonHttpService_1.CommonHttpService {
|
|
14
|
+
/**
|
|
15
|
+
* Delete an attachment by id.
|
|
16
|
+
*
|
|
17
|
+
* Deleting an attachment moves the attachment to the trash, where it can be
|
|
18
|
+
* restored later. To permanently delete an attachment (or "purge" it),
|
|
19
|
+
* the endpoint must be called on a **trashed** attachment with the following
|
|
20
|
+
* param `purge=true`.
|
|
21
|
+
*
|
|
22
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
23
|
+
* Permission to view the container of the attachment.
|
|
24
|
+
* Permission to delete attachments in the space.
|
|
25
|
+
* Permission to administer the space (if attempting to purge).
|
|
26
|
+
*
|
|
27
|
+
* @path {DELETE} /attachments/{id}
|
|
28
|
+
* @scopes-current delete:attachment:confluence
|
|
29
|
+
*/
|
|
30
|
+
deleteAttachment({ id, purge, }) {
|
|
31
|
+
return this.getClientInstance()
|
|
32
|
+
.request({
|
|
33
|
+
path: "/attachments/{id}",
|
|
34
|
+
method: "DELETE",
|
|
35
|
+
pathParams: {
|
|
36
|
+
id,
|
|
37
|
+
},
|
|
38
|
+
query: {
|
|
39
|
+
purge,
|
|
40
|
+
},
|
|
41
|
+
})
|
|
42
|
+
.then(commonHttpClient.discardResult);
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Returns a specific attachment.
|
|
46
|
+
*
|
|
47
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
48
|
+
* Permission to view the attachment's container.
|
|
49
|
+
*
|
|
50
|
+
* @returns Returned if the requested attachment is returned.
|
|
51
|
+
* @path {GET} /attachments/{id}
|
|
52
|
+
* @scopes-current read:attachment:confluence
|
|
53
|
+
*/
|
|
54
|
+
getAttachmentById({ id, version, includeLabels, includeProperties, includeOperations, includeVersions, includeVersion, }) {
|
|
55
|
+
return this.getClientInstance()
|
|
56
|
+
.request({
|
|
57
|
+
path: "/attachments/{id}",
|
|
58
|
+
method: "GET",
|
|
59
|
+
pathParams: {
|
|
60
|
+
id,
|
|
61
|
+
},
|
|
62
|
+
query: {
|
|
63
|
+
version,
|
|
64
|
+
"include-labels": includeLabels,
|
|
65
|
+
"include-properties": includeProperties,
|
|
66
|
+
"include-operations": includeOperations,
|
|
67
|
+
"include-versions": includeVersions,
|
|
68
|
+
"include-version": includeVersion,
|
|
69
|
+
},
|
|
70
|
+
})
|
|
71
|
+
.then(this.getClientInstance().responseHandler({
|
|
72
|
+
200: {
|
|
73
|
+
"application/json": "json",
|
|
74
|
+
},
|
|
75
|
+
}))
|
|
76
|
+
.then(commonHttpClient.castResponse())
|
|
77
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("AttachmentService.getAttachmentById.response"))
|
|
78
|
+
.then(commonHttpClient.getBody);
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Returns all attachments. The number of results is limited by the `limit`
|
|
82
|
+
* parameter and additional results (if available)
|
|
83
|
+
* will be available through the `next` URL present in the `Link` response header.
|
|
84
|
+
*
|
|
85
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
86
|
+
* Permission to view the container of the attachment.
|
|
87
|
+
*
|
|
88
|
+
* @returns Returned if the requested attachments are returned.
|
|
89
|
+
* @path {GET} /attachments
|
|
90
|
+
* @scopes-current read:attachment:confluence
|
|
91
|
+
*/
|
|
92
|
+
getAttachments({ sort, cursor, status, mediaType, filename, limit, }) {
|
|
93
|
+
return this.getClientInstance()
|
|
94
|
+
.request({
|
|
95
|
+
path: "/attachments",
|
|
96
|
+
method: "GET",
|
|
97
|
+
query: {
|
|
98
|
+
sort,
|
|
99
|
+
cursor,
|
|
100
|
+
status,
|
|
101
|
+
mediaType,
|
|
102
|
+
filename,
|
|
103
|
+
limit,
|
|
104
|
+
},
|
|
105
|
+
})
|
|
106
|
+
.then(this.getClientInstance().responseHandler({
|
|
107
|
+
200: {
|
|
108
|
+
"application/json": "json",
|
|
109
|
+
},
|
|
110
|
+
}))
|
|
111
|
+
.then(commonHttpClient.castResponse())
|
|
112
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("AttachmentService.getAttachments.response"))
|
|
113
|
+
.then(commonHttpClient.getBody);
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Returns the attachments of specific blog post. The number of results is limited
|
|
117
|
+
* by the `limit` parameter and additional results (if available)
|
|
118
|
+
* will be available through the `next` URL present in the `Link` response header.
|
|
119
|
+
*
|
|
120
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
121
|
+
* Permission to view the content of the blog post and its corresponding space.
|
|
122
|
+
*
|
|
123
|
+
* @returns Returned if the requested attachments are returned.
|
|
124
|
+
* @path {GET} /blogposts/{id}/attachments
|
|
125
|
+
* @scopes-current read:attachment:confluence
|
|
126
|
+
*/
|
|
127
|
+
getBlogpostAttachments({ id, sort, cursor, status, mediaType, filename, limit, }) {
|
|
128
|
+
return this.getClientInstance()
|
|
129
|
+
.request({
|
|
130
|
+
path: "/blogposts/{id}/attachments",
|
|
131
|
+
method: "GET",
|
|
132
|
+
pathParams: {
|
|
133
|
+
id,
|
|
134
|
+
},
|
|
135
|
+
query: {
|
|
136
|
+
sort,
|
|
137
|
+
cursor,
|
|
138
|
+
status,
|
|
139
|
+
mediaType,
|
|
140
|
+
filename,
|
|
141
|
+
limit,
|
|
142
|
+
},
|
|
143
|
+
})
|
|
144
|
+
.then(this.getClientInstance().responseHandler({
|
|
145
|
+
200: {
|
|
146
|
+
"application/json": "json",
|
|
147
|
+
},
|
|
148
|
+
}))
|
|
149
|
+
.then(commonHttpClient.castResponse())
|
|
150
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("AttachmentService.getBlogpostAttachments.response"))
|
|
151
|
+
.then(commonHttpClient.getBody);
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Returns the attachments of specific custom content. The number of results is
|
|
155
|
+
* limited by the `limit` parameter and additional results (if available)
|
|
156
|
+
* will be available through the `next` URL present in the `Link` response header.
|
|
157
|
+
*
|
|
158
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
159
|
+
* Permission to view the content of the custom content and its corresponding
|
|
160
|
+
* space.
|
|
161
|
+
*
|
|
162
|
+
* @returns Returned if the requested attachments are returned.
|
|
163
|
+
* @path {GET} /custom-content/{id}/attachments
|
|
164
|
+
* @scopes-current read:attachment:confluence
|
|
165
|
+
*/
|
|
166
|
+
getCustomContentAttachments({ id, sort, cursor, status, mediaType, filename, limit, }) {
|
|
167
|
+
return this.getClientInstance()
|
|
168
|
+
.request({
|
|
169
|
+
path: "/custom-content/{id}/attachments",
|
|
170
|
+
method: "GET",
|
|
171
|
+
pathParams: {
|
|
172
|
+
id,
|
|
173
|
+
},
|
|
174
|
+
query: {
|
|
175
|
+
sort,
|
|
176
|
+
cursor,
|
|
177
|
+
status,
|
|
178
|
+
mediaType,
|
|
179
|
+
filename,
|
|
180
|
+
limit,
|
|
181
|
+
},
|
|
182
|
+
})
|
|
183
|
+
.then(this.getClientInstance().responseHandler({
|
|
184
|
+
200: {
|
|
185
|
+
"application/json": "json",
|
|
186
|
+
},
|
|
187
|
+
}))
|
|
188
|
+
.then(commonHttpClient.castResponse())
|
|
189
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("AttachmentService.getCustomContentAttachments.response"))
|
|
190
|
+
.then(commonHttpClient.getBody);
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Returns the attachments of specified label. The number of results is limited by
|
|
194
|
+
* the `limit` parameter and additional results (if available)
|
|
195
|
+
* will be available through the `next` URL present in the `Link` response header.
|
|
196
|
+
*
|
|
197
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
198
|
+
* Permission to view the attachment and its corresponding space.
|
|
199
|
+
*
|
|
200
|
+
* @returns Returned if the requested attachments for specified label were successfully
|
|
201
|
+
* fetched.
|
|
202
|
+
* @path {GET} /labels/{id}/attachments
|
|
203
|
+
* @scopes-current read:attachment:confluence
|
|
204
|
+
*/
|
|
205
|
+
getLabelAttachments({ id, sort, cursor, limit, }) {
|
|
206
|
+
return this.getClientInstance()
|
|
207
|
+
.request({
|
|
208
|
+
path: "/labels/{id}/attachments",
|
|
209
|
+
method: "GET",
|
|
210
|
+
pathParams: {
|
|
211
|
+
id,
|
|
212
|
+
},
|
|
213
|
+
query: {
|
|
214
|
+
sort,
|
|
215
|
+
cursor,
|
|
216
|
+
limit,
|
|
217
|
+
},
|
|
218
|
+
})
|
|
219
|
+
.then(this.getClientInstance().responseHandler({
|
|
220
|
+
200: {
|
|
221
|
+
"application/json": "json",
|
|
222
|
+
},
|
|
223
|
+
}))
|
|
224
|
+
.then(commonHttpClient.castResponse())
|
|
225
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("AttachmentService.getLabelAttachments.response"))
|
|
226
|
+
.then(commonHttpClient.getBody);
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* Returns the attachments of specific page. The number of results is limited by
|
|
230
|
+
* the `limit` parameter and additional results (if available)
|
|
231
|
+
* will be available through the `next` URL present in the `Link` response header.
|
|
232
|
+
*
|
|
233
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
234
|
+
* Permission to view the content of the page and its corresponding space.
|
|
235
|
+
*
|
|
236
|
+
* @returns Returned if the requested attachments are returned.
|
|
237
|
+
* @path {GET} /pages/{id}/attachments
|
|
238
|
+
* @scopes-current read:attachment:confluence
|
|
239
|
+
*/
|
|
240
|
+
getPageAttachments({ id, sort, cursor, status, mediaType, filename, limit, }) {
|
|
241
|
+
return this.getClientInstance()
|
|
242
|
+
.request({
|
|
243
|
+
path: "/pages/{id}/attachments",
|
|
244
|
+
method: "GET",
|
|
245
|
+
pathParams: {
|
|
246
|
+
id,
|
|
247
|
+
},
|
|
248
|
+
query: {
|
|
249
|
+
sort,
|
|
250
|
+
cursor,
|
|
251
|
+
status,
|
|
252
|
+
mediaType,
|
|
253
|
+
filename,
|
|
254
|
+
limit,
|
|
255
|
+
},
|
|
256
|
+
})
|
|
257
|
+
.then(this.getClientInstance().responseHandler({
|
|
258
|
+
200: {
|
|
259
|
+
"application/json": "json",
|
|
260
|
+
},
|
|
261
|
+
}))
|
|
262
|
+
.then(commonHttpClient.castResponse())
|
|
263
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("AttachmentService.getPageAttachments.response"))
|
|
264
|
+
.then(commonHttpClient.getBody);
|
|
265
|
+
}
|
|
266
|
+
static initialize() {
|
|
267
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("AttachmentService.getAttachments.response", zod_1.z
|
|
268
|
+
.object({
|
|
269
|
+
status: zod_1.z.literal(200),
|
|
270
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
271
|
+
body: zod_1.z
|
|
272
|
+
.object({
|
|
273
|
+
results: zod_1.z
|
|
274
|
+
.array(validationSchemaStorage_1.validationSchemaStorage.lazy("AttachmentBulk"))
|
|
275
|
+
.optional(),
|
|
276
|
+
_links: validationSchemaStorage_1.validationSchemaStorage
|
|
277
|
+
.lazy("MultiEntityLinks")
|
|
278
|
+
.optional(),
|
|
279
|
+
})
|
|
280
|
+
.catchall(zod_1.z.unknown()),
|
|
281
|
+
})
|
|
282
|
+
.describe("AttachmentService.getAttachments.response"));
|
|
283
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("AttachmentService.getAttachmentById.response", zod_1.z
|
|
284
|
+
.object({
|
|
285
|
+
status: zod_1.z.literal(200),
|
|
286
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
287
|
+
body: zod_1.z.intersection(validationSchemaStorage_1.validationSchemaStorage.lazy("AttachmentSingle"), zod_1.z
|
|
288
|
+
.object({
|
|
289
|
+
_links: zod_1.z
|
|
290
|
+
.object({
|
|
291
|
+
base: zod_1.z.string().optional(),
|
|
292
|
+
})
|
|
293
|
+
.catchall(zod_1.z.unknown())
|
|
294
|
+
.optional(),
|
|
295
|
+
})
|
|
296
|
+
.catchall(zod_1.z.unknown())),
|
|
297
|
+
})
|
|
298
|
+
.describe("AttachmentService.getAttachmentById.response"));
|
|
299
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("AttachmentService.getBlogpostAttachments.response", zod_1.z
|
|
300
|
+
.object({
|
|
301
|
+
status: zod_1.z.literal(200),
|
|
302
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
303
|
+
body: zod_1.z
|
|
304
|
+
.object({
|
|
305
|
+
results: zod_1.z
|
|
306
|
+
.array(validationSchemaStorage_1.validationSchemaStorage.lazy("AttachmentBulk"))
|
|
307
|
+
.optional(),
|
|
308
|
+
_links: validationSchemaStorage_1.validationSchemaStorage
|
|
309
|
+
.lazy("MultiEntityLinks")
|
|
310
|
+
.optional(),
|
|
311
|
+
})
|
|
312
|
+
.catchall(zod_1.z.unknown()),
|
|
313
|
+
})
|
|
314
|
+
.describe("AttachmentService.getBlogpostAttachments.response"));
|
|
315
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("AttachmentService.getCustomContentAttachments.response", zod_1.z
|
|
316
|
+
.object({
|
|
317
|
+
status: zod_1.z.literal(200),
|
|
318
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
319
|
+
body: zod_1.z
|
|
320
|
+
.object({
|
|
321
|
+
results: zod_1.z
|
|
322
|
+
.array(validationSchemaStorage_1.validationSchemaStorage.lazy("AttachmentBulk"))
|
|
323
|
+
.optional(),
|
|
324
|
+
_links: validationSchemaStorage_1.validationSchemaStorage
|
|
325
|
+
.lazy("MultiEntityLinks")
|
|
326
|
+
.optional(),
|
|
327
|
+
})
|
|
328
|
+
.catchall(zod_1.z.unknown()),
|
|
329
|
+
})
|
|
330
|
+
.describe("AttachmentService.getCustomContentAttachments.response"));
|
|
331
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("AttachmentService.getLabelAttachments.response", zod_1.z
|
|
332
|
+
.object({
|
|
333
|
+
status: zod_1.z.literal(200),
|
|
334
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
335
|
+
body: zod_1.z
|
|
336
|
+
.object({
|
|
337
|
+
results: zod_1.z
|
|
338
|
+
.array(validationSchemaStorage_1.validationSchemaStorage.lazy("AttachmentBulk"))
|
|
339
|
+
.optional(),
|
|
340
|
+
_links: validationSchemaStorage_1.validationSchemaStorage
|
|
341
|
+
.lazy("MultiEntityLinks")
|
|
342
|
+
.optional(),
|
|
343
|
+
})
|
|
344
|
+
.catchall(zod_1.z.unknown()),
|
|
345
|
+
})
|
|
346
|
+
.describe("AttachmentService.getLabelAttachments.response"));
|
|
347
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("AttachmentService.getPageAttachments.response", zod_1.z
|
|
348
|
+
.object({
|
|
349
|
+
status: zod_1.z.literal(200),
|
|
350
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
351
|
+
body: zod_1.z
|
|
352
|
+
.object({
|
|
353
|
+
results: zod_1.z
|
|
354
|
+
.array(validationSchemaStorage_1.validationSchemaStorage.lazy("AttachmentBulk"))
|
|
355
|
+
.optional(),
|
|
356
|
+
_links: validationSchemaStorage_1.validationSchemaStorage
|
|
357
|
+
.lazy("MultiEntityLinks")
|
|
358
|
+
.optional(),
|
|
359
|
+
})
|
|
360
|
+
.catchall(zod_1.z.unknown()),
|
|
361
|
+
})
|
|
362
|
+
.describe("AttachmentService.getPageAttachments.response"));
|
|
363
|
+
validationSchemaStorage_1.validationSchemaStorage.registerOnce([
|
|
364
|
+
attachment_1.registerAttachmentValidationSchemas,
|
|
365
|
+
common_1.registerCommonValidationSchemas,
|
|
366
|
+
]);
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
exports.AttachmentService = AttachmentService;
|
|
370
|
+
//# sourceMappingURL=AttachmentService.js.map
|