@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,362 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ContentAttachmentsService = 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 validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
12
|
+
class ContentAttachmentsService extends CommonHttpService_1.CommonHttpService {
|
|
13
|
+
/**
|
|
14
|
+
* Adds an attachment to a piece of content. This method only adds a new
|
|
15
|
+
* attachment. If you want to update an existing attachment, use
|
|
16
|
+
* [Create or update attachments](#api-content-id-child-attachment-put).
|
|
17
|
+
*
|
|
18
|
+
* Note, you must set a `X-Atlassian-Token: nocheck` header on the request
|
|
19
|
+
* for this method, otherwise it will be blocked. This protects against XSRF
|
|
20
|
+
* attacks, which is necessary as this method accepts multipart/form-data.
|
|
21
|
+
*
|
|
22
|
+
* The media type 'multipart/form-data' is defined in [RFC
|
|
23
|
+
* 7578](https://www.ietf.org/rfc/rfc7578.txt).
|
|
24
|
+
* Most client libraries have classes that make it easier to implement
|
|
25
|
+
* multipart posts, like the
|
|
26
|
+
* [MultipartEntityBuilder](https://hc.apache.org/httpcomponents-client-5.1.x/current/httpclient5/apidocs/)
|
|
27
|
+
* Java class provided by Apache HTTP Components.
|
|
28
|
+
*
|
|
29
|
+
* Note, according to [RFC 7578](https://tools.ietf.org/html/rfc7578#section-4.5),
|
|
30
|
+
* in the case where the form data is text,
|
|
31
|
+
* the charset parameter for the "text/plain" Content-Type may be used to
|
|
32
|
+
* indicate the character encoding used in that part. In the case of this
|
|
33
|
+
* API endpoint, the `comment` body parameter should be sent with `type=text/plain`
|
|
34
|
+
* and `charset=utf-8` values. This will force the charset to be UTF-8.
|
|
35
|
+
*
|
|
36
|
+
* Example: This curl command attaches a file ('example.txt') to a container
|
|
37
|
+
* (id='123') with a comment and `minorEdits`=true.
|
|
38
|
+
*
|
|
39
|
+
* ``` bash
|
|
40
|
+
* curl -D- \
|
|
41
|
+
* -u admin:admin \
|
|
42
|
+
* -X POST \
|
|
43
|
+
* -H 'X-Atlassian-Token: nocheck' \
|
|
44
|
+
* -F 'file=@"example.txt"' \
|
|
45
|
+
* -F 'minorEdit="true"' \
|
|
46
|
+
* -F 'comment="Example attachment comment"; type=text/plain; charset=utf-8' \
|
|
47
|
+
* http://myhost/rest/api/content/123/child/attachment
|
|
48
|
+
* ```
|
|
49
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
50
|
+
* Permission to update the content.
|
|
51
|
+
*
|
|
52
|
+
* @returns Returned if the attachments were added to the content.
|
|
53
|
+
* @path {POST} /wiki/rest/api/content/{id}/child/attachment
|
|
54
|
+
* @scopes-current write:confluence-file
|
|
55
|
+
* @scopes-beta read:content-details:confluence, write:attachment:confluence
|
|
56
|
+
*/
|
|
57
|
+
createAttachment({ id, status, requestBody, }) {
|
|
58
|
+
return this.getClientInstance()
|
|
59
|
+
.request({
|
|
60
|
+
path: "/wiki/rest/api/content/{id}/child/attachment",
|
|
61
|
+
method: "POST",
|
|
62
|
+
pathParams: {
|
|
63
|
+
id,
|
|
64
|
+
},
|
|
65
|
+
query: {
|
|
66
|
+
status,
|
|
67
|
+
},
|
|
68
|
+
headers: {
|
|
69
|
+
"Content-Type": "multipart/form-data",
|
|
70
|
+
},
|
|
71
|
+
body: requestBody,
|
|
72
|
+
})
|
|
73
|
+
.then(this.getClientInstance().responseHandler({
|
|
74
|
+
200: {
|
|
75
|
+
"application/json": "json",
|
|
76
|
+
},
|
|
77
|
+
}))
|
|
78
|
+
.then(commonHttpClient.castResponse())
|
|
79
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentAttachmentsService.createAttachment.response"))
|
|
80
|
+
.then(commonHttpClient.getBody);
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Adds an attachment to a piece of content. If the attachment already exists
|
|
84
|
+
* for the content, then the attachment is updated (i.e. a new version of the
|
|
85
|
+
* attachment is created).
|
|
86
|
+
*
|
|
87
|
+
* Note, you must set a `X-Atlassian-Token: nocheck` header on the request
|
|
88
|
+
* for this method, otherwise it will be blocked. This protects against XSRF
|
|
89
|
+
* attacks, which is necessary as this method accepts multipart/form-data.
|
|
90
|
+
*
|
|
91
|
+
* The media type 'multipart/form-data' is defined in [RFC
|
|
92
|
+
* 7578](https://www.ietf.org/rfc/rfc7578.txt).
|
|
93
|
+
* Most client libraries have classes that make it easier to implement
|
|
94
|
+
* multipart posts, like the
|
|
95
|
+
* [MultipartEntityBuilder](https://hc.apache.org/httpcomponents-client-5.1.x/current/httpclient5/apidocs/)
|
|
96
|
+
* Java class provided by Apache HTTP Components.
|
|
97
|
+
*
|
|
98
|
+
* Note, according to [RFC 7578](https://tools.ietf.org/html/rfc7578#section-4.5),
|
|
99
|
+
* in the case where the form data is text,
|
|
100
|
+
* the charset parameter for the "text/plain" Content-Type may be used to
|
|
101
|
+
* indicate the character encoding used in that part. In the case of this
|
|
102
|
+
* API endpoint, the `comment` body parameter should be sent with `type=text/plain`
|
|
103
|
+
* and `charset=utf-8` values. This will force the charset to be UTF-8.
|
|
104
|
+
*
|
|
105
|
+
* Example: This curl command attaches a file ('example.txt') to a piece of
|
|
106
|
+
* content (id='123') with a comment and `minorEdits`=true. If the 'example.txt'
|
|
107
|
+
* file already exists, it will update it with a new version of the attachment.
|
|
108
|
+
*
|
|
109
|
+
* ``` bash
|
|
110
|
+
* curl -D- \
|
|
111
|
+
* -u admin:admin \
|
|
112
|
+
* -X PUT \
|
|
113
|
+
* -H 'X-Atlassian-Token: nocheck' \
|
|
114
|
+
* -F 'file=@"example.txt"' \
|
|
115
|
+
* -F 'minorEdit="true"' \
|
|
116
|
+
* -F 'comment="Example attachment comment"; type=text/plain; charset=utf-8' \
|
|
117
|
+
* http://myhost/rest/api/content/123/child/attachment
|
|
118
|
+
* ```
|
|
119
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
120
|
+
* Permission to update the content.
|
|
121
|
+
*
|
|
122
|
+
* @returns Returned if the attachments were added to the content.
|
|
123
|
+
* @path {PUT} /wiki/rest/api/content/{id}/child/attachment
|
|
124
|
+
* @scopes-current write:confluence-file
|
|
125
|
+
* @scopes-beta read:content-details:confluence, write:attachment:confluence
|
|
126
|
+
*/
|
|
127
|
+
createOrUpdateAttachments({ id, status, requestBody, }) {
|
|
128
|
+
return this.getClientInstance()
|
|
129
|
+
.request({
|
|
130
|
+
path: "/wiki/rest/api/content/{id}/child/attachment",
|
|
131
|
+
method: "PUT",
|
|
132
|
+
pathParams: {
|
|
133
|
+
id,
|
|
134
|
+
},
|
|
135
|
+
query: {
|
|
136
|
+
status,
|
|
137
|
+
},
|
|
138
|
+
headers: {
|
|
139
|
+
"Content-Type": "multipart/form-data",
|
|
140
|
+
},
|
|
141
|
+
body: requestBody,
|
|
142
|
+
})
|
|
143
|
+
.then(this.getClientInstance().responseHandler({
|
|
144
|
+
200: {
|
|
145
|
+
"application/json": "json",
|
|
146
|
+
},
|
|
147
|
+
}))
|
|
148
|
+
.then(commonHttpClient.castResponse())
|
|
149
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentAttachmentsService.createOrUpdateAttachments.response"))
|
|
150
|
+
.then(commonHttpClient.getBody);
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Redirects the client to a URL that serves an attachment's binary data.
|
|
154
|
+
*
|
|
155
|
+
* @path {GET} /wiki/rest/api/content/{id}/child/attachment/{attachmentId}/download
|
|
156
|
+
* @scopes-current readonly:content.attachment:confluence
|
|
157
|
+
* @scopes-beta read:attachment:confluence
|
|
158
|
+
*/
|
|
159
|
+
downloadAttatchment({ id, attachmentId, version, }) {
|
|
160
|
+
return this.getClientInstance()
|
|
161
|
+
.request({
|
|
162
|
+
path: "/wiki/rest/api/content/{id}/child/attachment/{attachmentId}/download",
|
|
163
|
+
method: "GET",
|
|
164
|
+
pathParams: {
|
|
165
|
+
id,
|
|
166
|
+
attachmentId,
|
|
167
|
+
},
|
|
168
|
+
query: {
|
|
169
|
+
version,
|
|
170
|
+
},
|
|
171
|
+
})
|
|
172
|
+
.then(commonHttpClient.discardResult);
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Deprecated, use [Confluence's v2
|
|
176
|
+
* API](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/).
|
|
177
|
+
*
|
|
178
|
+
* Returns the attachments for a piece of content.
|
|
179
|
+
*
|
|
180
|
+
* By default, the following objects are expanded: `metadata`.
|
|
181
|
+
*
|
|
182
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
183
|
+
* Permission to view the content. If the content is a blog post, 'View' permission
|
|
184
|
+
* for the space is required.
|
|
185
|
+
*
|
|
186
|
+
* @deprecated
|
|
187
|
+
* @returns Returned if the requested attachments are returned.
|
|
188
|
+
* @path {GET} /wiki/rest/api/content/{id}/child/attachment
|
|
189
|
+
* @scopes-current read:confluence-content.summary
|
|
190
|
+
* @scopes-beta read:content-details:confluence
|
|
191
|
+
*/
|
|
192
|
+
getAttachments({ id, expand, start, limit, filename, mediaType, }) {
|
|
193
|
+
return this.getClientInstance()
|
|
194
|
+
.request({
|
|
195
|
+
path: "/wiki/rest/api/content/{id}/child/attachment",
|
|
196
|
+
method: "GET",
|
|
197
|
+
pathParams: {
|
|
198
|
+
id,
|
|
199
|
+
},
|
|
200
|
+
query: {
|
|
201
|
+
expand,
|
|
202
|
+
start,
|
|
203
|
+
limit,
|
|
204
|
+
filename,
|
|
205
|
+
mediaType,
|
|
206
|
+
},
|
|
207
|
+
})
|
|
208
|
+
.then(this.getClientInstance().responseHandler({
|
|
209
|
+
200: {
|
|
210
|
+
"application/json": "json",
|
|
211
|
+
},
|
|
212
|
+
}))
|
|
213
|
+
.then(commonHttpClient.castResponse())
|
|
214
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentAttachmentsService.getAttachments.response"))
|
|
215
|
+
.then(commonHttpClient.getBody);
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* Updates the binary data of an attachment, given the attachment ID, and
|
|
219
|
+
* optionally the comment and the minor edit field.
|
|
220
|
+
*
|
|
221
|
+
* This method is essentially the same as [Create or update
|
|
222
|
+
* attachments](#api-content-id-child-attachment-put),
|
|
223
|
+
* except that it matches the attachment ID rather than the name.
|
|
224
|
+
*
|
|
225
|
+
* Note, you must set a `X-Atlassian-Token: nocheck` header on the request
|
|
226
|
+
* for this method, otherwise it will be blocked. This protects against XSRF
|
|
227
|
+
* attacks, which is necessary as this method accepts multipart/form-data.
|
|
228
|
+
*
|
|
229
|
+
* The media type 'multipart/form-data' is defined in [RFC
|
|
230
|
+
* 7578](https://www.ietf.org/rfc/rfc7578.txt).
|
|
231
|
+
* Most client libraries have classes that make it easier to implement
|
|
232
|
+
* multipart posts, like the
|
|
233
|
+
* [MultipartEntityBuilder](https://hc.apache.org/httpcomponents-client-5.1.x/current/httpclient5/apidocs/)
|
|
234
|
+
* Java class provided by Apache HTTP Components.
|
|
235
|
+
*
|
|
236
|
+
* Note, according to [RFC 7578](https://tools.ietf.org/html/rfc7578#section-4.5),
|
|
237
|
+
* in the case where the form data is text,
|
|
238
|
+
* the charset parameter for the "text/plain" Content-Type may be used to
|
|
239
|
+
* indicate the character encoding used in that part. In the case of this
|
|
240
|
+
* API endpoint, the `comment` body parameter should be sent with `type=text/plain`
|
|
241
|
+
* and `charset=utf-8` values. This will force the charset to be UTF-8.
|
|
242
|
+
*
|
|
243
|
+
* Example: This curl command updates an attachment (id='att456') that is attached
|
|
244
|
+
* to a piece of content (id='123') with a comment and `minorEdits`=true.
|
|
245
|
+
*
|
|
246
|
+
* ``` bash
|
|
247
|
+
* curl -D- \
|
|
248
|
+
* -u admin:admin \
|
|
249
|
+
* -X POST \
|
|
250
|
+
* -H 'X-Atlassian-Token: nocheck' \
|
|
251
|
+
* -F 'file=@"example.txt"' \
|
|
252
|
+
* -F 'minorEdit="true"' \
|
|
253
|
+
* -F 'comment="Example attachment comment"; type=text/plain; charset=utf-8' \
|
|
254
|
+
* http://myhost/rest/api/content/123/child/attachment/att456/data
|
|
255
|
+
* ```
|
|
256
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
257
|
+
* Permission to update the content.
|
|
258
|
+
*
|
|
259
|
+
* @returns Returned if the attachment is updated.
|
|
260
|
+
* @path {POST} /wiki/rest/api/content/{id}/child/attachment/{attachmentId}/data
|
|
261
|
+
* @scopes-current write:confluence-file
|
|
262
|
+
* @scopes-beta read:content-details:confluence, write:attachment:confluence
|
|
263
|
+
*/
|
|
264
|
+
updateAttachmentData({ id, attachmentId, requestBody, }) {
|
|
265
|
+
return this.getClientInstance()
|
|
266
|
+
.request({
|
|
267
|
+
path: "/wiki/rest/api/content/{id}/child/attachment/{attachmentId}/data",
|
|
268
|
+
method: "POST",
|
|
269
|
+
pathParams: {
|
|
270
|
+
id,
|
|
271
|
+
attachmentId,
|
|
272
|
+
},
|
|
273
|
+
headers: {
|
|
274
|
+
"Content-Type": "multipart/form-data",
|
|
275
|
+
},
|
|
276
|
+
body: requestBody,
|
|
277
|
+
})
|
|
278
|
+
.then(this.getClientInstance().responseHandler({
|
|
279
|
+
200: {
|
|
280
|
+
"application/json": "json",
|
|
281
|
+
},
|
|
282
|
+
}))
|
|
283
|
+
.then(commonHttpClient.castResponse())
|
|
284
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentAttachmentsService.updateAttachmentData.response"))
|
|
285
|
+
.then(commonHttpClient.getBody);
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* Updates the attachment properties, i.e. the non-binary data of an attachment
|
|
289
|
+
* like the filename, media-type, comment, and parent container.
|
|
290
|
+
*
|
|
291
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
292
|
+
* Permission to update the content.
|
|
293
|
+
*
|
|
294
|
+
* @returns Returned if the attachment is updated.
|
|
295
|
+
* @path {PUT} /wiki/rest/api/content/{id}/child/attachment/{attachmentId}
|
|
296
|
+
* @scopes-current write:confluence-file, write:confluence-props
|
|
297
|
+
* @scopes-beta read:content-details:confluence, write:attachment:confluence
|
|
298
|
+
*/
|
|
299
|
+
updateAttachmentProperties({ id, attachmentId, attachmentPropertiesUpdateBody, }) {
|
|
300
|
+
return this.getClientInstance()
|
|
301
|
+
.request({
|
|
302
|
+
path: "/wiki/rest/api/content/{id}/child/attachment/{attachmentId}",
|
|
303
|
+
method: "PUT",
|
|
304
|
+
pathParams: {
|
|
305
|
+
id,
|
|
306
|
+
attachmentId,
|
|
307
|
+
},
|
|
308
|
+
headers: {
|
|
309
|
+
"Content-Type": "application/json",
|
|
310
|
+
},
|
|
311
|
+
body: attachmentPropertiesUpdateBody,
|
|
312
|
+
})
|
|
313
|
+
.then(this.getClientInstance().responseHandler({
|
|
314
|
+
200: {
|
|
315
|
+
"application/json": "json",
|
|
316
|
+
},
|
|
317
|
+
}))
|
|
318
|
+
.then(commonHttpClient.castResponse())
|
|
319
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentAttachmentsService.updateAttachmentProperties.response"))
|
|
320
|
+
.then(commonHttpClient.getBody);
|
|
321
|
+
}
|
|
322
|
+
static initialize() {
|
|
323
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentAttachmentsService.getAttachments.response", zod_1.z
|
|
324
|
+
.object({
|
|
325
|
+
status: zod_1.z.literal(200),
|
|
326
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
327
|
+
body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentArray"),
|
|
328
|
+
})
|
|
329
|
+
.describe("ContentAttachmentsService.getAttachments.response"));
|
|
330
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentAttachmentsService.createOrUpdateAttachments.response", zod_1.z
|
|
331
|
+
.object({
|
|
332
|
+
status: zod_1.z.literal(200),
|
|
333
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
334
|
+
body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentArray"),
|
|
335
|
+
})
|
|
336
|
+
.describe("ContentAttachmentsService.createOrUpdateAttachments.response"));
|
|
337
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentAttachmentsService.createAttachment.response", zod_1.z
|
|
338
|
+
.object({
|
|
339
|
+
status: zod_1.z.literal(200),
|
|
340
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
341
|
+
body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentArray"),
|
|
342
|
+
})
|
|
343
|
+
.describe("ContentAttachmentsService.createAttachment.response"));
|
|
344
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentAttachmentsService.updateAttachmentProperties.response", zod_1.z
|
|
345
|
+
.object({
|
|
346
|
+
status: zod_1.z.literal(200),
|
|
347
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
348
|
+
body: zod_1.z.nullable(validationSchemaStorage_1.validationSchemaStorage.lazy("Content")),
|
|
349
|
+
})
|
|
350
|
+
.describe("ContentAttachmentsService.updateAttachmentProperties.response"));
|
|
351
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentAttachmentsService.updateAttachmentData.response", zod_1.z
|
|
352
|
+
.object({
|
|
353
|
+
status: zod_1.z.literal(200),
|
|
354
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
355
|
+
body: zod_1.z.nullable(validationSchemaStorage_1.validationSchemaStorage.lazy("Content")),
|
|
356
|
+
})
|
|
357
|
+
.describe("ContentAttachmentsService.updateAttachmentData.response"));
|
|
358
|
+
validationSchemaStorage_1.validationSchemaStorage.registerOnce([common_1.registerCommonValidationSchemas]);
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
exports.ContentAttachmentsService = ContentAttachmentsService;
|
|
362
|
+
//# sourceMappingURL=ContentAttachmentsService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContentAttachmentsService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ContentAttachmentsService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,6CAI0B;AAE1B,wEAAqE;AACrE,MAAa,yBAA0B,SAAQ,qCAAiB;IAC9D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2CG;IACH,gBAAgB,CAAC,EACf,EAAE,EACF,MAAM,EACN,WAAW,GAOZ;QACC,OAAO,IAAI,CAAC,iBAAiB,EAAE;aAC5B,OAAO,CAAC;YACP,IAAI,EAAE,8CAA8C;YACpD,MAAM,EAAE,MAAM;YACd,UAAU,EAAE;gBACV,EAAE;aACH;YACD,KAAK,EAAE;gBACL,MAAM;aACP;YACD,OAAO,EAAE;gBACP,cAAc,EAAE,qBAAqB;aACtC;YACD,IAAI,EAAE,WAAW;SAClB,CAAC;aACD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,0 +1,227 @@
|
|
|
1
|
+
import { CommonHttpService } from "../core/CommonHttpService";
|
|
2
|
+
import { type AsyncId, type ContentBody, type ContentBodyCreate } from "../models/common";
|
|
3
|
+
import { type AsyncContentBody } from "../models/contentBody";
|
|
4
|
+
export declare class ContentBodyService extends CommonHttpService {
|
|
5
|
+
/**
|
|
6
|
+
* Converts a content body from one format to another format asynchronously.
|
|
7
|
+
* Returns the asyncId for the asynchronous task.
|
|
8
|
+
*
|
|
9
|
+
* Supported conversions:
|
|
10
|
+
*
|
|
11
|
+
* - storage: export_view
|
|
12
|
+
*
|
|
13
|
+
* No other conversions are supported at the moment.
|
|
14
|
+
* Once a conversion is completed, it will be available for 5 minutes at the
|
|
15
|
+
* result endpoint.
|
|
16
|
+
*
|
|
17
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
18
|
+
* If request specifies 'contentIdContext', 'View' permission for the space, and
|
|
19
|
+
* permission to view the content.
|
|
20
|
+
*
|
|
21
|
+
* @returns Returned if the content is added to the messaging queue for conversion. This id
|
|
22
|
+
* will be available for 5 minutes after the conversion is complete.
|
|
23
|
+
* @path {POST} /wiki/rest/api/contentbody/convert/async/{to}
|
|
24
|
+
* @scopes-current read:confluence-content.all
|
|
25
|
+
* @scopes-beta read:content.metadata:confluence
|
|
26
|
+
*/
|
|
27
|
+
asyncConvertContentBodyRequest({ to, expand, spaceKeyContext, contentIdContext, allowCache, embeddedContentRender, contentBodyCreate, }: {
|
|
28
|
+
/** The name of the target format for the content body. */
|
|
29
|
+
to: "export_view";
|
|
30
|
+
/**
|
|
31
|
+
* A multi-value parameter indicating which properties of the content to expand
|
|
32
|
+
* and populate. Expands are dependent on the
|
|
33
|
+
* `to` conversion format and may be irrelevant for certain conversions (e.g.
|
|
34
|
+
* `macroRenderedOutput` is redundant when
|
|
35
|
+
* converting to `view` format).
|
|
36
|
+
*
|
|
37
|
+
* If rendering to `view` format, and the body content being converted includes
|
|
38
|
+
* arbitrary nested content (such as macros); then it is
|
|
39
|
+
* necessary to include webresource expands in the request. Webresources for
|
|
40
|
+
* content body are the batched JS and CSS dependencies for
|
|
41
|
+
* any nested dynamic content (i.e. macros).
|
|
42
|
+
*
|
|
43
|
+
* - `embeddedContent` returns metadata for nested content (e.g. page included
|
|
44
|
+
* using page include macro)
|
|
45
|
+
* - `mediaToken` returns JWT token for retrieving attachment data from Media API
|
|
46
|
+
* - `macroRenderedOutput` additionally converts body to view format
|
|
47
|
+
* - `webresource.superbatch.uris.js` returns all common JS dependencies as static
|
|
48
|
+
* URLs
|
|
49
|
+
* - `webresource.superbatch.uris.css` returns all common CSS dependencies as
|
|
50
|
+
* static URLs
|
|
51
|
+
* - `webresource.superbatch.uris.all` returns all common dependencies as static
|
|
52
|
+
* URLs
|
|
53
|
+
* - `webresource.superbatch.tags.all` returns all common JS dependencies as html
|
|
54
|
+
* `<script>` tags
|
|
55
|
+
* - `webresource.superbatch.tags.css` returns all common CSS dependencies as html
|
|
56
|
+
* `<style>` tags
|
|
57
|
+
* - `webresource.superbatch.tags.js` returns all common dependencies as html
|
|
58
|
+
* `<script>` and `<style>` tags
|
|
59
|
+
* - `webresource.uris.js` returns JS dependencies specific to conversion
|
|
60
|
+
* - `webresource.uris.css` returns CSS dependencies specific to conversion
|
|
61
|
+
* - `webresource.uris.all` returns all dependencies specific to conversion
|
|
62
|
+
* - `webresource.tags.all` returns common JS dependencies as html `<script>` tags
|
|
63
|
+
* - `webresource.tags.css` returns common CSS dependencies as html `<style>` tags
|
|
64
|
+
* - `webresource.tags.js` returns common dependencies as html `<script>` and
|
|
65
|
+
* `<style>` tags
|
|
66
|
+
*/
|
|
67
|
+
expand?: string[];
|
|
68
|
+
/**
|
|
69
|
+
* The space key used for resolving embedded content (page includes,
|
|
70
|
+
* files, and links) in the content body. For example, if the source content
|
|
71
|
+
* contains the link `<ac:link><ri:page ri:content-title="Example page"
|
|
72
|
+
* /><ac:link>`
|
|
73
|
+
* and the `spaceKeyContext=TEST` parameter is provided, then the link
|
|
74
|
+
* will be converted to a link to the "Example page" page in the "TEST" space.
|
|
75
|
+
*/
|
|
76
|
+
spaceKeyContext?: string;
|
|
77
|
+
/**
|
|
78
|
+
* The content ID used to find the space for resolving embedded content
|
|
79
|
+
* (page includes, files, and links) in the content body. For example,
|
|
80
|
+
* if the source content contains the link `<ac:link><ri:page
|
|
81
|
+
* ri:content-title="Example page" /><ac:link>`
|
|
82
|
+
* and the `contentIdContext=123` parameter is provided, then the link
|
|
83
|
+
* will be converted to a link to the "Example page" page in the same space
|
|
84
|
+
* that has the content with ID=123. Note, `spaceKeyContext` will be ignored
|
|
85
|
+
* if this parameter is provided.
|
|
86
|
+
*/
|
|
87
|
+
contentIdContext?: string;
|
|
88
|
+
/**
|
|
89
|
+
* If this field is false, the cache will erase its current value and begin a new
|
|
90
|
+
* conversion.
|
|
91
|
+
* If this field is true, the cache will not erase its current value, and will set
|
|
92
|
+
* the status of the
|
|
93
|
+
* async conversion to RERUNNING. Once the data is updated, the status will change
|
|
94
|
+
* to COMPLETED.
|
|
95
|
+
* Large macros that take long to convert, and whose data need not immediately up
|
|
96
|
+
* to date (same as previous conversion's result within last 5 minutes)
|
|
97
|
+
* should set this fields to true. Cache values are stored per user per content
|
|
98
|
+
* body and expansions.
|
|
99
|
+
*/
|
|
100
|
+
allowCache?: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Mode used for rendering embedded content, like attachments.
|
|
103
|
+
*
|
|
104
|
+
* - `current` renders the embedded content using the latest version.
|
|
105
|
+
* - `version-at-save` renders the embedded content using the version at
|
|
106
|
+
* the time of save.
|
|
107
|
+
*/
|
|
108
|
+
embeddedContentRender?: "current" | "version-at-save";
|
|
109
|
+
/** The content body to convert. */
|
|
110
|
+
contentBodyCreate: ContentBodyCreate;
|
|
111
|
+
}): Promise<AsyncId>;
|
|
112
|
+
/**
|
|
113
|
+
* Returns the asynchronous content body for the corresponding id if the task is
|
|
114
|
+
* complete
|
|
115
|
+
* or returns the status of the task.
|
|
116
|
+
*
|
|
117
|
+
* After the task is completed, the result can be obtained for 5 minutes, or until
|
|
118
|
+
* an identical conversion request is made again,
|
|
119
|
+
* with allowCache query param set to false.
|
|
120
|
+
*
|
|
121
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
122
|
+
* If request specifies 'contentIdContext', 'View' permission for the space, and
|
|
123
|
+
* permission to view the content.
|
|
124
|
+
*
|
|
125
|
+
* @returns Returned if successfully found an async conversion task associated with the id.
|
|
126
|
+
* @path {GET} /wiki/rest/api/contentbody/convert/async/{id}
|
|
127
|
+
* @scopes-current read:confluence-content.all
|
|
128
|
+
* @scopes-beta read:content.metadata:confluence
|
|
129
|
+
*/
|
|
130
|
+
asyncConvertContentBodyResponse({ id, }: {
|
|
131
|
+
/** The asyncId of the macro task to get the converted body. */
|
|
132
|
+
id: string;
|
|
133
|
+
}): Promise<AsyncContentBody>;
|
|
134
|
+
/**
|
|
135
|
+
* Converts a content body from one format to another format.
|
|
136
|
+
*
|
|
137
|
+
* Supported conversions:
|
|
138
|
+
*
|
|
139
|
+
* - storage: view, export_view, styled_view, editor
|
|
140
|
+
* - editor: storage
|
|
141
|
+
* - view: none
|
|
142
|
+
* - export_view: none
|
|
143
|
+
* - styled_view: none
|
|
144
|
+
*
|
|
145
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
146
|
+
* If request specifies 'contentIdContext', 'View' permission for the space, and
|
|
147
|
+
* permission to view the content.
|
|
148
|
+
*
|
|
149
|
+
* @returns Returned if the content is converted.
|
|
150
|
+
* @path {POST} /wiki/rest/api/contentbody/convert/{to}
|
|
151
|
+
* @scopes-current read:confluence-content.all
|
|
152
|
+
* @scopes-beta read:content.metadata:confluence
|
|
153
|
+
*/
|
|
154
|
+
convertContentBody({ to, spaceKeyContext, contentIdContext, embeddedContentRender, expand, contentBodyCreate, }: {
|
|
155
|
+
/** The name of the target format for the content body. */
|
|
156
|
+
to: string;
|
|
157
|
+
/**
|
|
158
|
+
* The space key used for resolving embedded content (page includes,
|
|
159
|
+
* files, and links) in the content body. For example, if the source content
|
|
160
|
+
* contains the link `<ac:link><ri:page ri:content-title="Example page"
|
|
161
|
+
* /><ac:link>`
|
|
162
|
+
* and the `spaceKeyContext=TEST` parameter is provided, then the link
|
|
163
|
+
* will be converted to a link to the "Example page" page in the "TEST" space.
|
|
164
|
+
*/
|
|
165
|
+
spaceKeyContext?: string;
|
|
166
|
+
/**
|
|
167
|
+
* The content ID used to find the space for resolving embedded content
|
|
168
|
+
* (page includes, files, and links) in the content body. For example,
|
|
169
|
+
* if the source content contains the link `<ac:link><ri:page
|
|
170
|
+
* ri:content-title="Example page" /><ac:link>`
|
|
171
|
+
* and the `contentIdContext=123` parameter is provided, then the link
|
|
172
|
+
* will be converted to a link to the "Example page" page in the same space
|
|
173
|
+
* that has the content with ID=123. Note, `spaceKeyContext` will be ignored
|
|
174
|
+
* if this parameter is provided.
|
|
175
|
+
*/
|
|
176
|
+
contentIdContext?: string;
|
|
177
|
+
/**
|
|
178
|
+
* Mode used for rendering embedded content, like attachments.
|
|
179
|
+
*
|
|
180
|
+
* - `current` renders the embedded content using the latest version.
|
|
181
|
+
* - `version-at-save` renders the embedded content using the version at
|
|
182
|
+
* the time of save.
|
|
183
|
+
*/
|
|
184
|
+
embeddedContentRender?: "current" | "version-at-save";
|
|
185
|
+
/**
|
|
186
|
+
* A multi-value parameter indicating which properties of the content to expand
|
|
187
|
+
* and populate. Expands are dependent on the
|
|
188
|
+
* `to` conversion format and may be irrelevant for certain conversions (e.g.
|
|
189
|
+
* `macroRenderedOutput` is redundant when
|
|
190
|
+
* converting to `view` format).
|
|
191
|
+
*
|
|
192
|
+
* If rendering to `view` format, and the body content being converted includes
|
|
193
|
+
* arbitrary nested content (such as macros); then it is
|
|
194
|
+
* necessary to include webresource expands in the request. Webresources for
|
|
195
|
+
* content body are the batched JS and CSS dependencies for
|
|
196
|
+
* any nested dynamic content (i.e. macros).
|
|
197
|
+
*
|
|
198
|
+
* - `embeddedContent` returns metadata for nested content (e.g. page included
|
|
199
|
+
* using page include macro)
|
|
200
|
+
* - `mediaToken` returns JWT token for retrieving attachment data from Media API
|
|
201
|
+
* - `macroRenderedOutput` additionally converts body to view format
|
|
202
|
+
* - `webresource.superbatch.uris.js` returns all common JS dependencies as static
|
|
203
|
+
* URLs
|
|
204
|
+
* - `webresource.superbatch.uris.css` returns all common CSS dependencies as
|
|
205
|
+
* static URLs
|
|
206
|
+
* - `webresource.superbatch.uris.all` returns all common dependencies as static
|
|
207
|
+
* URLs
|
|
208
|
+
* - `webresource.superbatch.tags.all` returns all common JS dependencies as html
|
|
209
|
+
* `<script>` tags
|
|
210
|
+
* - `webresource.superbatch.tags.css` returns all common CSS dependencies as html
|
|
211
|
+
* `<style>` tags
|
|
212
|
+
* - `webresource.superbatch.tags.js` returns all common dependencies as html
|
|
213
|
+
* `<script>` and `<style>` tags
|
|
214
|
+
* - `webresource.uris.js` returns JS dependencies specific to conversion
|
|
215
|
+
* - `webresource.uris.css` returns CSS dependencies specific to conversion
|
|
216
|
+
* - `webresource.uris.all` returns all dependencies specific to conversion
|
|
217
|
+
* - `webresource.tags.all` returns common JS dependencies as html `<script>` tags
|
|
218
|
+
* - `webresource.tags.css` returns common CSS dependencies as html `<style>` tags
|
|
219
|
+
* - `webresource.tags.js` returns common dependencies as html `<script>` and
|
|
220
|
+
* `<style>` tags
|
|
221
|
+
*/
|
|
222
|
+
expand?: string[];
|
|
223
|
+
/** The content body to convert. */
|
|
224
|
+
contentBodyCreate: ContentBodyCreate;
|
|
225
|
+
}): Promise<ContentBody>;
|
|
226
|
+
static initialize(): void;
|
|
227
|
+
}
|