@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,503 @@
|
|
|
1
|
+
import { CommonHttpService } from "../core/CommonHttpService";
|
|
2
|
+
import { type ContentRestriction } from "../models/common";
|
|
3
|
+
import { type ContentRestrictionAddOrUpdateArray, type ContentRestrictionArray } from "../models/contentRestrictions";
|
|
4
|
+
export declare class ContentRestrictionsService extends CommonHttpService {
|
|
5
|
+
/**
|
|
6
|
+
* Deprecated, use [Add group to content restriction via
|
|
7
|
+
* groupId](https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions/#api-wiki-rest-api-content-id-restriction-byoperation-operationkey-bygroupid-groupid-put).
|
|
8
|
+
* Adds a group to a content restriction. That is, grant read or update
|
|
9
|
+
* permission to the group for a piece of content.
|
|
10
|
+
*
|
|
11
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
12
|
+
* Permission to edit the content.
|
|
13
|
+
*
|
|
14
|
+
* @deprecated
|
|
15
|
+
* @path {PUT}
|
|
16
|
+
* /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/group/{groupName}
|
|
17
|
+
* @scopes-current write:confluence-content
|
|
18
|
+
* @scopes-beta write:content.restriction:confluence
|
|
19
|
+
*/
|
|
20
|
+
addGroupToContentRestriction({ id, operationKey, groupName, }: {
|
|
21
|
+
/** The ID of the content that the restriction applies to. */
|
|
22
|
+
id: string;
|
|
23
|
+
/** The operation that the restriction applies to. */
|
|
24
|
+
operationKey: "read" | "update";
|
|
25
|
+
/** The name of the group to add to the content restriction. */
|
|
26
|
+
groupName: string;
|
|
27
|
+
}): Promise<void>;
|
|
28
|
+
/**
|
|
29
|
+
* Adds a group to a content restriction by Group Id. That is, grant read or update
|
|
30
|
+
* permission to the group for a piece of content.
|
|
31
|
+
*
|
|
32
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
33
|
+
* Permission to edit the content.
|
|
34
|
+
*
|
|
35
|
+
* @path {PUT}
|
|
36
|
+
* /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/byGroupId/{groupId}
|
|
37
|
+
* @scopes-current write:confluence-content
|
|
38
|
+
* @scopes-beta write:content.restriction:confluence
|
|
39
|
+
*/
|
|
40
|
+
addGroupToContentRestrictionByGroupId({ id, operationKey, groupId, }: {
|
|
41
|
+
/** The ID of the content that the restriction applies to. */
|
|
42
|
+
id: string;
|
|
43
|
+
/** The operation that the restriction applies to. */
|
|
44
|
+
operationKey: "read" | "update";
|
|
45
|
+
/** The groupId of the group to add to the content restriction. */
|
|
46
|
+
groupId: string;
|
|
47
|
+
}): Promise<void>;
|
|
48
|
+
/**
|
|
49
|
+
* Adds restrictions to a piece of content. Note, this does not change any
|
|
50
|
+
* existing restrictions on the content.
|
|
51
|
+
*
|
|
52
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
53
|
+
* Permission to edit the content.
|
|
54
|
+
*
|
|
55
|
+
* @returns Returned if the requested restrictions are added.
|
|
56
|
+
* @path {POST} /wiki/rest/api/content/{id}/restriction
|
|
57
|
+
* @scopes-current write:confluence-content
|
|
58
|
+
* @scopes-beta read:content-details:confluence, write:content.restriction:confluence
|
|
59
|
+
*/
|
|
60
|
+
addRestrictions({ id, expand, contentRestrictionAddOrUpdateArray, }: {
|
|
61
|
+
/** The ID of the content to add restrictions to. */
|
|
62
|
+
id: string;
|
|
63
|
+
/**
|
|
64
|
+
* A multi-value parameter indicating which properties of the content
|
|
65
|
+
* restrictions (returned in response) to expand.
|
|
66
|
+
*
|
|
67
|
+
* - `restrictions.user` returns the piece of content that the restrictions are
|
|
68
|
+
* applied to. Expanded by default.
|
|
69
|
+
* - `restrictions.group` returns the piece of content that the restrictions are
|
|
70
|
+
* applied to. Expanded by default.
|
|
71
|
+
* - `content` returns the piece of content that the restrictions are
|
|
72
|
+
* applied to.
|
|
73
|
+
*/
|
|
74
|
+
expand?: ("restrictions.user" | "read.restrictions.user" | "update.restrictions.user" | "restrictions.group" | "read.restrictions.group" | "update.restrictions.group" | "content")[];
|
|
75
|
+
/** The restrictions to be added to the content. */
|
|
76
|
+
contentRestrictionAddOrUpdateArray: ContentRestrictionAddOrUpdateArray;
|
|
77
|
+
}): Promise<ContentRestrictionArray>;
|
|
78
|
+
/**
|
|
79
|
+
* Adds a user to a content restriction. That is, grant read or update
|
|
80
|
+
* permission to the user for a piece of content.
|
|
81
|
+
*
|
|
82
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
83
|
+
* Permission to edit the content.
|
|
84
|
+
*
|
|
85
|
+
* @path {PUT} /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/user
|
|
86
|
+
* @scopes-current write:confluence-content
|
|
87
|
+
* @scopes-beta write:content.restriction:confluence
|
|
88
|
+
*/
|
|
89
|
+
addUserToContentRestriction({ id, operationKey, key, username, accountId, }: {
|
|
90
|
+
/** The ID of the content that the restriction applies to. */
|
|
91
|
+
id: string;
|
|
92
|
+
/** The operation that the restriction applies to. */
|
|
93
|
+
operationKey: string;
|
|
94
|
+
/**
|
|
95
|
+
* This parameter is no longer available and will be removed from the
|
|
96
|
+
* documentation soon.
|
|
97
|
+
* Use `accountId` instead.
|
|
98
|
+
* See the [deprecation
|
|
99
|
+
* notice](/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)
|
|
100
|
+
* for details.
|
|
101
|
+
*
|
|
102
|
+
* @deprecated
|
|
103
|
+
*/
|
|
104
|
+
key?: string;
|
|
105
|
+
/**
|
|
106
|
+
* This parameter is no longer available and will be removed from the
|
|
107
|
+
* documentation soon.
|
|
108
|
+
* Use `accountId` instead.
|
|
109
|
+
* See the [deprecation
|
|
110
|
+
* notice](/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)
|
|
111
|
+
* for details.
|
|
112
|
+
*
|
|
113
|
+
* @deprecated
|
|
114
|
+
*/
|
|
115
|
+
username?: string;
|
|
116
|
+
/**
|
|
117
|
+
* The account ID of the user. The accountId uniquely identifies the user across
|
|
118
|
+
* all Atlassian products.
|
|
119
|
+
* For example, `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`.
|
|
120
|
+
*/
|
|
121
|
+
accountId?: string;
|
|
122
|
+
}): Promise<void>;
|
|
123
|
+
/**
|
|
124
|
+
* Removes all restrictions (read and update) on a piece of content.
|
|
125
|
+
*
|
|
126
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
127
|
+
* Permission to edit the content.
|
|
128
|
+
*
|
|
129
|
+
* @returns Returned if the restrictions are removed.
|
|
130
|
+
* @path {DELETE} /wiki/rest/api/content/{id}/restriction
|
|
131
|
+
* @scopes-current write:confluence-content
|
|
132
|
+
* @scopes-beta read:content-details:confluence, write:content.restriction:confluence
|
|
133
|
+
*/
|
|
134
|
+
deleteRestrictions({ id, expand, }: {
|
|
135
|
+
/** The ID of the content to remove restrictions from. */
|
|
136
|
+
id: string;
|
|
137
|
+
/**
|
|
138
|
+
* A multi-value parameter indicating which properties of the content
|
|
139
|
+
* restrictions (returned in response) to expand.
|
|
140
|
+
*
|
|
141
|
+
* - `restrictions.user` returns the piece of content that the restrictions are
|
|
142
|
+
* applied to. Expanded by default.
|
|
143
|
+
* - `restrictions.group` returns the piece of content that the restrictions are
|
|
144
|
+
* applied to. Expanded by default.
|
|
145
|
+
* - `content` returns the piece of content that the restrictions are
|
|
146
|
+
* applied to.
|
|
147
|
+
*/
|
|
148
|
+
expand?: ("restrictions.user" | "read.restrictions.user" | "update.restrictions.user" | "restrictions.group" | "read.restrictions.group" | "update.restrictions.group" | "content")[];
|
|
149
|
+
}): Promise<ContentRestrictionArray>;
|
|
150
|
+
/**
|
|
151
|
+
* Deprecated, use [Get content restriction status for group via
|
|
152
|
+
* groupId](https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions/#api-wiki-rest-api-content-id-restriction-byoperation-operationkey-bygroupid-groupid-get).
|
|
153
|
+
* Returns whether the specified content restriction applies to a group.
|
|
154
|
+
* For example, if a page with `id=123` has a `read` restriction for the `admins`
|
|
155
|
+
* group,
|
|
156
|
+
* the following request will return `true`:
|
|
157
|
+
*
|
|
158
|
+
* `/wiki/rest/api/content/123/restriction/byOperation/read/group/admins`
|
|
159
|
+
*
|
|
160
|
+
* Note that a response of `true` does not guarantee that the group can view the
|
|
161
|
+
* page, as it does not account for
|
|
162
|
+
* account-inherited restrictions, space permissions, or even product access. For
|
|
163
|
+
* more
|
|
164
|
+
* information, see [Confluence
|
|
165
|
+
* permissions](https://confluence.atlassian.com/x/_AozKw).
|
|
166
|
+
*
|
|
167
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
168
|
+
* Permission to view the content.
|
|
169
|
+
*
|
|
170
|
+
* @deprecated
|
|
171
|
+
* @path {GET}
|
|
172
|
+
* /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/group/{groupName}
|
|
173
|
+
* @scopes-current read:confluence-content.all
|
|
174
|
+
* @scopes-beta read:content.restriction:confluence
|
|
175
|
+
*/
|
|
176
|
+
getContentRestrictionStatusForGroup({ id, operationKey, groupName, }: {
|
|
177
|
+
/** The ID of the content that the restriction applies to. */
|
|
178
|
+
id: string;
|
|
179
|
+
/** The operation that the restriction applies to. */
|
|
180
|
+
operationKey: "read" | "update";
|
|
181
|
+
/**
|
|
182
|
+
* The name of the group to be queried for whether the content restriction
|
|
183
|
+
* applies to it.
|
|
184
|
+
*/
|
|
185
|
+
groupName: string;
|
|
186
|
+
}): Promise<void>;
|
|
187
|
+
/**
|
|
188
|
+
* Returns whether the specified content restriction applies to a user.
|
|
189
|
+
* For example, if a page with `id=123` has a `read` restriction for a user with
|
|
190
|
+
* an account ID of
|
|
191
|
+
* `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`, the following request will
|
|
192
|
+
* return `true`:
|
|
193
|
+
*
|
|
194
|
+
* `/wiki/rest/api/content/123/restriction/byOperation/read/user?accountId=384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`
|
|
195
|
+
*
|
|
196
|
+
* Note that a response of `true` does not guarantee that the user can view the
|
|
197
|
+
* page, as it does not account for
|
|
198
|
+
* account-inherited restrictions, space permissions, or even product access. For
|
|
199
|
+
* more
|
|
200
|
+
* information, see [Confluence
|
|
201
|
+
* permissions](https://confluence.atlassian.com/x/_AozKw).
|
|
202
|
+
*
|
|
203
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
204
|
+
* Permission to view the content.
|
|
205
|
+
*
|
|
206
|
+
* @path {GET} /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/user
|
|
207
|
+
* @scopes-current read:confluence-content.all
|
|
208
|
+
* @scopes-beta read:content.restriction:confluence
|
|
209
|
+
*/
|
|
210
|
+
getContentRestrictionStatusForUser({ id, operationKey, key, username, accountId, }: {
|
|
211
|
+
/** The ID of the content that the restriction applies to. */
|
|
212
|
+
id: string;
|
|
213
|
+
/** The operation that is restricted. */
|
|
214
|
+
operationKey: string;
|
|
215
|
+
/**
|
|
216
|
+
* This parameter is no longer available and will be removed from the
|
|
217
|
+
* documentation soon.
|
|
218
|
+
* Use `accountId` instead.
|
|
219
|
+
* See the [deprecation
|
|
220
|
+
* notice](/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)
|
|
221
|
+
* for details.
|
|
222
|
+
*
|
|
223
|
+
* @deprecated
|
|
224
|
+
*/
|
|
225
|
+
key?: string;
|
|
226
|
+
/**
|
|
227
|
+
* This parameter is no longer available and will be removed from the
|
|
228
|
+
* documentation soon.
|
|
229
|
+
* Use `accountId` instead.
|
|
230
|
+
* See the [deprecation
|
|
231
|
+
* notice](/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)
|
|
232
|
+
* for details.
|
|
233
|
+
*
|
|
234
|
+
* @deprecated
|
|
235
|
+
*/
|
|
236
|
+
username?: string;
|
|
237
|
+
/**
|
|
238
|
+
* The account ID of the user. The accountId uniquely identifies the user across
|
|
239
|
+
* all Atlassian products.
|
|
240
|
+
* For example, `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`.
|
|
241
|
+
*/
|
|
242
|
+
accountId?: string;
|
|
243
|
+
}): Promise<void>;
|
|
244
|
+
/**
|
|
245
|
+
* Returns whether the specified content restriction applies to a group.
|
|
246
|
+
* For example, if a page with `id=123` has a `read` restriction for the `123456`
|
|
247
|
+
* group id,
|
|
248
|
+
* the following request will return `true`:
|
|
249
|
+
*
|
|
250
|
+
* `/wiki/rest/api/content/123/restriction/byOperation/read/byGroupId/123456`
|
|
251
|
+
*
|
|
252
|
+
* Note that a response of `true` does not guarantee that the group can view the
|
|
253
|
+
* page, as it does not account for
|
|
254
|
+
* account-inherited restrictions, space permissions, or even product access. For
|
|
255
|
+
* more
|
|
256
|
+
* information, see [Confluence
|
|
257
|
+
* permissions](https://confluence.atlassian.com/x/_AozKw).
|
|
258
|
+
*
|
|
259
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
260
|
+
* Permission to view the content.
|
|
261
|
+
*
|
|
262
|
+
* @path {GET}
|
|
263
|
+
* /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/byGroupId/{groupId}
|
|
264
|
+
* @scopes-current read:confluence-content.all
|
|
265
|
+
* @scopes-beta read:content.restriction:confluence
|
|
266
|
+
*/
|
|
267
|
+
getIndividualGroupRestrictionStatusByGroupId({ id, operationKey, groupId, }: {
|
|
268
|
+
/** The ID of the content that the restriction applies to. */
|
|
269
|
+
id: string;
|
|
270
|
+
/** The operation that the restriction applies to. */
|
|
271
|
+
operationKey: "read" | "update";
|
|
272
|
+
/**
|
|
273
|
+
* The id of the group to be queried for whether the content restriction
|
|
274
|
+
* applies to it.
|
|
275
|
+
*/
|
|
276
|
+
groupId: string;
|
|
277
|
+
}): Promise<void>;
|
|
278
|
+
/**
|
|
279
|
+
* Returns the restrictions on a piece of content.
|
|
280
|
+
*
|
|
281
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
282
|
+
* Permission to view the content.
|
|
283
|
+
*
|
|
284
|
+
* @returns Returned if the requested restrictions are returned.
|
|
285
|
+
* @path {GET} /wiki/rest/api/content/{id}/restriction
|
|
286
|
+
* @scopes-current read:confluence-content.all
|
|
287
|
+
* @scopes-beta read:content-details:confluence
|
|
288
|
+
*/
|
|
289
|
+
getRestrictions({ id, expand, start, limit, }: {
|
|
290
|
+
/** The ID of the content to be queried for its restrictions. */
|
|
291
|
+
id: string;
|
|
292
|
+
/**
|
|
293
|
+
* A multi-value parameter indicating which properties of the content
|
|
294
|
+
* restrictions to expand. By default, the following objects are expanded:
|
|
295
|
+
* `restrictions.user`, `restrictions.group`.
|
|
296
|
+
*
|
|
297
|
+
* - `restrictions.user` returns the piece of content that the restrictions are
|
|
298
|
+
* applied to.
|
|
299
|
+
* - `restrictions.group` returns the piece of content that the restrictions are
|
|
300
|
+
* applied to.
|
|
301
|
+
* - `content` returns the piece of content that the restrictions are
|
|
302
|
+
* applied to.
|
|
303
|
+
*/
|
|
304
|
+
expand?: ("restrictions.user" | "read.restrictions.user" | "update.restrictions.user" | "restrictions.group" | "read.restrictions.group" | "update.restrictions.group" | "content")[];
|
|
305
|
+
/** The starting index of the users and groups in the returned restrictions. */
|
|
306
|
+
start?: number;
|
|
307
|
+
/**
|
|
308
|
+
* The maximum number of users and the maximum number of groups, in the
|
|
309
|
+
* returned restrictions, to return per page. Note, this may be restricted
|
|
310
|
+
* by fixed system limits.
|
|
311
|
+
*/
|
|
312
|
+
limit?: number;
|
|
313
|
+
}): Promise<ContentRestrictionArray>;
|
|
314
|
+
/**
|
|
315
|
+
* Returns restrictions on a piece of content by operation. This method is
|
|
316
|
+
* similar to [Get restrictions](#api-content-id-restriction-get) except that
|
|
317
|
+
* the operations are properties of the return object, rather than items in
|
|
318
|
+
* a results array.
|
|
319
|
+
*
|
|
320
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
321
|
+
* Permission to view the content.
|
|
322
|
+
*
|
|
323
|
+
* @returns Returned if the requested restrictions are returned.
|
|
324
|
+
* @path {GET} /wiki/rest/api/content/{id}/restriction/byOperation
|
|
325
|
+
* @scopes-current read:confluence-content.all
|
|
326
|
+
* @scopes-beta read:content-details:confluence
|
|
327
|
+
*/
|
|
328
|
+
getRestrictionsByOperation({ id, expand, }: {
|
|
329
|
+
/** The ID of the content to be queried for its restrictions. */
|
|
330
|
+
id: string;
|
|
331
|
+
/**
|
|
332
|
+
* A multi-value parameter indicating which properties of the content
|
|
333
|
+
* restrictions to expand.
|
|
334
|
+
*
|
|
335
|
+
* - `restrictions.user` returns the piece of content that the restrictions are
|
|
336
|
+
* applied to. Expanded by default.
|
|
337
|
+
* - `restrictions.group` returns the piece of content that the restrictions are
|
|
338
|
+
* applied to. Expanded by default.
|
|
339
|
+
* - `content` returns the piece of content that the restrictions are
|
|
340
|
+
* applied to.
|
|
341
|
+
*/
|
|
342
|
+
expand?: ("restrictions.user" | "restrictions.group" | "content")[];
|
|
343
|
+
}): Promise<{
|
|
344
|
+
[key: string]: unknown;
|
|
345
|
+
}>;
|
|
346
|
+
/**
|
|
347
|
+
* Returns the restictions on a piece of content for a given operation (read
|
|
348
|
+
* or update).
|
|
349
|
+
*
|
|
350
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
351
|
+
* Permission to view the content.
|
|
352
|
+
*
|
|
353
|
+
* @returns Returned if the requested restrictions are returned.
|
|
354
|
+
* @path {GET} /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}
|
|
355
|
+
* @scopes-current read:confluence-content.all
|
|
356
|
+
* @scopes-beta read:content-details:confluence
|
|
357
|
+
*/
|
|
358
|
+
getRestrictionsForOperation({ id, operationKey, expand, start, limit, }: {
|
|
359
|
+
/** The ID of the content to be queried for its restrictions. */
|
|
360
|
+
id: string;
|
|
361
|
+
/** The operation type of the restrictions to be returned. */
|
|
362
|
+
operationKey: "read" | "update";
|
|
363
|
+
/**
|
|
364
|
+
* A multi-value parameter indicating which properties of the content
|
|
365
|
+
* restrictions to expand.
|
|
366
|
+
*
|
|
367
|
+
* - `restrictions.user` returns the piece of content that the restrictions are
|
|
368
|
+
* applied to. Expanded by default.
|
|
369
|
+
* - `restrictions.group` returns the piece of content that the restrictions are
|
|
370
|
+
* applied to. Expanded by default.
|
|
371
|
+
* - `content` returns the piece of content that the restrictions are
|
|
372
|
+
* applied to.
|
|
373
|
+
*/
|
|
374
|
+
expand?: ("restrictions.user" | "restrictions.group" | "content")[];
|
|
375
|
+
/** The starting index of the users and groups in the returned restrictions. */
|
|
376
|
+
start?: number;
|
|
377
|
+
/**
|
|
378
|
+
* The maximum number of users and the maximum number of groups, in the
|
|
379
|
+
* returned restrictions, to return per page. Note, this may be restricted
|
|
380
|
+
* by fixed system limits.
|
|
381
|
+
*/
|
|
382
|
+
limit?: number;
|
|
383
|
+
}): Promise<ContentRestriction>;
|
|
384
|
+
/**
|
|
385
|
+
* Removes a group from a content restriction. That is, remove read or update
|
|
386
|
+
* permission for the group for a piece of content.
|
|
387
|
+
*
|
|
388
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
389
|
+
* Permission to edit the content.
|
|
390
|
+
*
|
|
391
|
+
* @path {DELETE}
|
|
392
|
+
* /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/byGroupId/{groupId}
|
|
393
|
+
* @scopes-current write:confluence-content
|
|
394
|
+
* @scopes-beta write:content.restriction:confluence
|
|
395
|
+
*/
|
|
396
|
+
removeGroupFromContentRestriction({ id, operationKey, groupId, }: {
|
|
397
|
+
/** The ID of the content that the restriction applies to. */
|
|
398
|
+
id: string;
|
|
399
|
+
/** The operation that the restriction applies to. */
|
|
400
|
+
operationKey: "read" | "update";
|
|
401
|
+
/** The id of the group to remove from the content restriction. */
|
|
402
|
+
groupId: string;
|
|
403
|
+
}): Promise<void>;
|
|
404
|
+
/**
|
|
405
|
+
* Deprecated, use [Remove group from content restriction by
|
|
406
|
+
* groupId](https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions/#api-wiki-rest-api-content-id-restriction-byoperation-operationkey-user-delete).
|
|
407
|
+
* Removes a group from a content restriction. That is, remove read or update
|
|
408
|
+
* permission for the group for a piece of content.
|
|
409
|
+
*
|
|
410
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
411
|
+
* Permission to edit the content.
|
|
412
|
+
*
|
|
413
|
+
* @deprecated
|
|
414
|
+
* @path {DELETE}
|
|
415
|
+
* /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/group/{groupName}
|
|
416
|
+
* @scopes-current write:confluence-content
|
|
417
|
+
* @scopes-beta write:content.restriction:confluence
|
|
418
|
+
*/
|
|
419
|
+
removeGroupFromContentRestrictionById({ id, operationKey, groupName, }: {
|
|
420
|
+
/** The ID of the content that the restriction applies to. */
|
|
421
|
+
id: string;
|
|
422
|
+
/** The operation that the restriction applies to. */
|
|
423
|
+
operationKey: "read" | "update";
|
|
424
|
+
/** The name of the group to remove from the content restriction. */
|
|
425
|
+
groupName: string;
|
|
426
|
+
}): Promise<void>;
|
|
427
|
+
/**
|
|
428
|
+
* Removes a group from a content restriction. That is, remove read or update
|
|
429
|
+
* permission for the group for a piece of content.
|
|
430
|
+
*
|
|
431
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
432
|
+
* Permission to edit the content.
|
|
433
|
+
*
|
|
434
|
+
* @path {DELETE} /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/user
|
|
435
|
+
* @scopes-current write:confluence-content
|
|
436
|
+
* @scopes-beta write:content.restriction:confluence
|
|
437
|
+
*/
|
|
438
|
+
removeUserFromContentRestriction({ id, operationKey, key, username, accountId, }: {
|
|
439
|
+
/** The ID of the content that the restriction applies to. */
|
|
440
|
+
id: string;
|
|
441
|
+
/** The operation that the restriction applies to. */
|
|
442
|
+
operationKey: "read" | "update";
|
|
443
|
+
/**
|
|
444
|
+
* This parameter is no longer available and will be removed from the
|
|
445
|
+
* documentation soon.
|
|
446
|
+
* Use `accountId` instead.
|
|
447
|
+
* See the [deprecation
|
|
448
|
+
* notice](/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)
|
|
449
|
+
* for details.
|
|
450
|
+
*
|
|
451
|
+
* @deprecated
|
|
452
|
+
*/
|
|
453
|
+
key?: string;
|
|
454
|
+
/**
|
|
455
|
+
* This parameter is no longer available and will be removed from the
|
|
456
|
+
* documentation soon.
|
|
457
|
+
* Use `accountId` instead.
|
|
458
|
+
* See the [deprecation
|
|
459
|
+
* notice](/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)
|
|
460
|
+
* for details.
|
|
461
|
+
*
|
|
462
|
+
* @deprecated
|
|
463
|
+
*/
|
|
464
|
+
username?: string;
|
|
465
|
+
/**
|
|
466
|
+
* The account ID of the user. The accountId uniquely identifies the user across
|
|
467
|
+
* all Atlassian products.
|
|
468
|
+
* For example, `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`.
|
|
469
|
+
*/
|
|
470
|
+
accountId?: string;
|
|
471
|
+
}): Promise<void>;
|
|
472
|
+
/**
|
|
473
|
+
* Updates restrictions for a piece of content. This removes the existing
|
|
474
|
+
* restrictions and replaces them with the restrictions in the request.
|
|
475
|
+
*
|
|
476
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
477
|
+
* Permission to edit the content.
|
|
478
|
+
*
|
|
479
|
+
* @returns Returned if the requested restrictions are updated.
|
|
480
|
+
* @path {PUT} /wiki/rest/api/content/{id}/restriction
|
|
481
|
+
* @scopes-current write:confluence-content
|
|
482
|
+
* @scopes-beta read:content-details:confluence, write:content.restriction:confluence
|
|
483
|
+
*/
|
|
484
|
+
updateRestrictions({ id, expand, contentRestrictionAddOrUpdateArray, }: {
|
|
485
|
+
/** The ID of the content to update restrictions for. */
|
|
486
|
+
id: string;
|
|
487
|
+
/**
|
|
488
|
+
* A multi-value parameter indicating which properties of the content
|
|
489
|
+
* restrictions (returned in response) to expand.
|
|
490
|
+
*
|
|
491
|
+
* - `restrictions.user` returns the piece of content that the restrictions are
|
|
492
|
+
* applied to. Expanded by default.
|
|
493
|
+
* - `restrictions.group` returns the piece of content that the restrictions are
|
|
494
|
+
* applied to. Expanded by default.
|
|
495
|
+
* - `content` returns the piece of content that the restrictions are
|
|
496
|
+
* applied to.
|
|
497
|
+
*/
|
|
498
|
+
expand?: ("restrictions.user" | "read.restrictions.user" | "update.restrictions.user" | "restrictions.group" | "read.restrictions.group" | "update.restrictions.group" | "content")[];
|
|
499
|
+
/** The updated restrictions for the content. */
|
|
500
|
+
contentRestrictionAddOrUpdateArray: ContentRestrictionAddOrUpdateArray;
|
|
501
|
+
}): Promise<ContentRestrictionArray>;
|
|
502
|
+
static initialize(): void;
|
|
503
|
+
}
|