@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,249 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SettingsService = 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 settings_1 = require("../models/settings");
|
|
11
|
+
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
12
|
+
class SettingsService extends CommonHttpService_1.CommonHttpService {
|
|
13
|
+
/**
|
|
14
|
+
* Returns the look and feel settings for the site or a single space. This
|
|
15
|
+
* includes attributes such as the color scheme, padding, and border radius.
|
|
16
|
+
*
|
|
17
|
+
* The look and feel settings for a space can be inherited from the global
|
|
18
|
+
* look and feel settings or provided by a theme.
|
|
19
|
+
*
|
|
20
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
21
|
+
* None
|
|
22
|
+
*
|
|
23
|
+
* @returns Returned if the requested look and feel settings are returned.
|
|
24
|
+
* @path {GET} /wiki/rest/api/settings/lookandfeel
|
|
25
|
+
* @scopes-current manage:confluence-configuration
|
|
26
|
+
* @scopes-beta read:configuration:confluence, read:space.setting:confluence
|
|
27
|
+
*/
|
|
28
|
+
getLookAndFeelSettings({ spaceKey, }) {
|
|
29
|
+
return this.getClientInstance()
|
|
30
|
+
.request({
|
|
31
|
+
path: "/wiki/rest/api/settings/lookandfeel",
|
|
32
|
+
method: "GET",
|
|
33
|
+
query: {
|
|
34
|
+
spaceKey,
|
|
35
|
+
},
|
|
36
|
+
})
|
|
37
|
+
.then(this.getClientInstance().responseHandler({
|
|
38
|
+
200: {
|
|
39
|
+
"application/json": "json",
|
|
40
|
+
},
|
|
41
|
+
}))
|
|
42
|
+
.then(commonHttpClient.castResponse())
|
|
43
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("SettingsService.getLookAndFeelSettings.response"))
|
|
44
|
+
.then(commonHttpClient.getBody);
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Returns the system information for the Confluence Cloud tenant. This
|
|
48
|
+
* information is used by Atlassian.
|
|
49
|
+
*
|
|
50
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
51
|
+
* Permission to access the Confluence site ('Can use' global permission).
|
|
52
|
+
*
|
|
53
|
+
* @returns Returned if the system information for the Confluence Cloud tenant
|
|
54
|
+
* is returned.
|
|
55
|
+
* @path {GET} /wiki/rest/api/settings/systemInfo
|
|
56
|
+
* @scopes-current manage:confluence-configuration
|
|
57
|
+
* @scopes-beta read:configuration:confluence
|
|
58
|
+
*/
|
|
59
|
+
getSystemInfo() {
|
|
60
|
+
return this.getClientInstance()
|
|
61
|
+
.request({
|
|
62
|
+
path: "/wiki/rest/api/settings/systemInfo",
|
|
63
|
+
method: "GET",
|
|
64
|
+
})
|
|
65
|
+
.then(this.getClientInstance().responseHandler({
|
|
66
|
+
200: {
|
|
67
|
+
"application/json": "json",
|
|
68
|
+
},
|
|
69
|
+
}))
|
|
70
|
+
.then(commonHttpClient.castResponse())
|
|
71
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("SettingsService.getSystemInfo.response"))
|
|
72
|
+
.then(commonHttpClient.getBody);
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Resets the custom look and feel settings for the site or a single space.
|
|
76
|
+
* This changes the values of the custom settings to be the same as the
|
|
77
|
+
* default settings. It does not change which settings (default or custom)
|
|
78
|
+
* are selected. Note, the default space settings are inherited from the
|
|
79
|
+
* current global settings.
|
|
80
|
+
*
|
|
81
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
82
|
+
* 'Admin' permission for the space.
|
|
83
|
+
*
|
|
84
|
+
* @path {DELETE} /wiki/rest/api/settings/lookandfeel/custom
|
|
85
|
+
* @scopes-current manage:confluence-configuration
|
|
86
|
+
* @scopes-beta write:configuration:confluence, write:space.setting:confluence
|
|
87
|
+
*/
|
|
88
|
+
resetLookAndFeelSettings({ spaceKey, }) {
|
|
89
|
+
return this.getClientInstance()
|
|
90
|
+
.request({
|
|
91
|
+
path: "/wiki/rest/api/settings/lookandfeel/custom",
|
|
92
|
+
method: "DELETE",
|
|
93
|
+
query: {
|
|
94
|
+
spaceKey,
|
|
95
|
+
},
|
|
96
|
+
})
|
|
97
|
+
.then(commonHttpClient.discardResult);
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Sets the look and feel settings to either the default settings or the
|
|
101
|
+
* custom settings, for the site or a single space. Note, the default
|
|
102
|
+
* space settings are inherited from the current global settings.
|
|
103
|
+
*
|
|
104
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
105
|
+
* 'Admin' permission for the space.
|
|
106
|
+
*
|
|
107
|
+
* @deprecated
|
|
108
|
+
* @returns Returned if the look and feel settings were set.
|
|
109
|
+
* @path {PUT} /wiki/rest/api/settings/lookandfeel/selected
|
|
110
|
+
* @scopes-current manage:confluence-configuration
|
|
111
|
+
* @scopes-beta read:configuration:confluence, read:space.setting:confluence,
|
|
112
|
+
* write:configuration:confluence, write:space.setting:confluence
|
|
113
|
+
*/
|
|
114
|
+
setLookAndFeelSettings({ spaceKey, requestBody, }) {
|
|
115
|
+
return this.getClientInstance()
|
|
116
|
+
.request({
|
|
117
|
+
path: "/wiki/rest/api/settings/lookandfeel/selected",
|
|
118
|
+
method: "PUT",
|
|
119
|
+
query: {
|
|
120
|
+
spaceKey,
|
|
121
|
+
},
|
|
122
|
+
headers: {
|
|
123
|
+
"Content-Type": "application/json",
|
|
124
|
+
},
|
|
125
|
+
body: requestBody,
|
|
126
|
+
})
|
|
127
|
+
.then(this.getClientInstance().responseHandler({
|
|
128
|
+
200: {
|
|
129
|
+
"application/json": "json",
|
|
130
|
+
},
|
|
131
|
+
}))
|
|
132
|
+
.then(commonHttpClient.castResponse())
|
|
133
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("SettingsService.setLookAndFeelSettings.response"))
|
|
134
|
+
.then(commonHttpClient.getBody);
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Sets the look and feel settings to the default (global) settings, the
|
|
138
|
+
* custom settings, or the current theme's settings for a space.
|
|
139
|
+
* The custom and theme settings can only be selected if there is already
|
|
140
|
+
* a theme set for a space. Note, the default space settings are inherited
|
|
141
|
+
* from the current global settings.
|
|
142
|
+
*
|
|
143
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
144
|
+
* 'Admin' permission for the space.
|
|
145
|
+
*
|
|
146
|
+
* @returns Returned if the look and feel settings were set.
|
|
147
|
+
* @path {PUT} /wiki/rest/api/settings/lookandfeel
|
|
148
|
+
* @scopes-current manage:confluence-configuration
|
|
149
|
+
* @scopes-beta read:space.setting:confluence, write:space.setting:confluence
|
|
150
|
+
*/
|
|
151
|
+
updateLookAndFeel({ lookAndFeelSelection, }) {
|
|
152
|
+
return this.getClientInstance()
|
|
153
|
+
.request({
|
|
154
|
+
path: "/wiki/rest/api/settings/lookandfeel",
|
|
155
|
+
method: "PUT",
|
|
156
|
+
headers: {
|
|
157
|
+
"Content-Type": "application/json",
|
|
158
|
+
},
|
|
159
|
+
body: lookAndFeelSelection,
|
|
160
|
+
})
|
|
161
|
+
.then(this.getClientInstance().responseHandler({
|
|
162
|
+
200: {
|
|
163
|
+
"application/json": "json",
|
|
164
|
+
},
|
|
165
|
+
}))
|
|
166
|
+
.then(commonHttpClient.castResponse())
|
|
167
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("SettingsService.updateLookAndFeel.response"))
|
|
168
|
+
.then(commonHttpClient.getBody);
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Updates the look and feel settings for the site or for a single space.
|
|
172
|
+
* If custom settings exist, they are updated. If no custom settings exist,
|
|
173
|
+
* then a set of custom settings is created.
|
|
174
|
+
*
|
|
175
|
+
* Note, if a theme is selected for a space, the space look and feel settings
|
|
176
|
+
* are provided by the theme and cannot be overridden.
|
|
177
|
+
*
|
|
178
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
179
|
+
* 'Admin' permission for the space.
|
|
180
|
+
*
|
|
181
|
+
* @returns Returned if the look and feel settings are updated.
|
|
182
|
+
* @path {POST} /wiki/rest/api/settings/lookandfeel/custom
|
|
183
|
+
* @scopes-current manage:confluence-configuration
|
|
184
|
+
* @scopes-beta read:configuration:confluence, read:space.setting:confluence,
|
|
185
|
+
* write:configuration:confluence, write:space.setting:confluence
|
|
186
|
+
*/
|
|
187
|
+
updateLookAndFeelSettings({ spaceKey, lookAndFeel, }) {
|
|
188
|
+
return this.getClientInstance()
|
|
189
|
+
.request({
|
|
190
|
+
path: "/wiki/rest/api/settings/lookandfeel/custom",
|
|
191
|
+
method: "POST",
|
|
192
|
+
query: {
|
|
193
|
+
spaceKey,
|
|
194
|
+
},
|
|
195
|
+
headers: {
|
|
196
|
+
"Content-Type": "application/json",
|
|
197
|
+
},
|
|
198
|
+
body: lookAndFeel,
|
|
199
|
+
})
|
|
200
|
+
.then(this.getClientInstance().responseHandler({
|
|
201
|
+
200: {
|
|
202
|
+
"application/json": "json",
|
|
203
|
+
},
|
|
204
|
+
}))
|
|
205
|
+
.then(commonHttpClient.castResponse())
|
|
206
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("SettingsService.updateLookAndFeelSettings.response"))
|
|
207
|
+
.then(commonHttpClient.getBody);
|
|
208
|
+
}
|
|
209
|
+
static initialize() {
|
|
210
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("SettingsService.getLookAndFeelSettings.response", zod_1.z
|
|
211
|
+
.object({
|
|
212
|
+
status: zod_1.z.literal(200),
|
|
213
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
214
|
+
body: validationSchemaStorage_1.validationSchemaStorage.lazy("LookAndFeelSettings"),
|
|
215
|
+
})
|
|
216
|
+
.describe("SettingsService.getLookAndFeelSettings.response"));
|
|
217
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("SettingsService.updateLookAndFeel.response", zod_1.z
|
|
218
|
+
.object({
|
|
219
|
+
status: zod_1.z.literal(200),
|
|
220
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
221
|
+
body: validationSchemaStorage_1.validationSchemaStorage.lazy("LookAndFeelSelection"),
|
|
222
|
+
})
|
|
223
|
+
.describe("SettingsService.updateLookAndFeel.response"));
|
|
224
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("SettingsService.updateLookAndFeelSettings.response", zod_1.z
|
|
225
|
+
.object({
|
|
226
|
+
status: zod_1.z.literal(200),
|
|
227
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
228
|
+
body: validationSchemaStorage_1.validationSchemaStorage.lazy("LookAndFeelWithLinks"),
|
|
229
|
+
})
|
|
230
|
+
.describe("SettingsService.updateLookAndFeelSettings.response"));
|
|
231
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("SettingsService.setLookAndFeelSettings.response", zod_1.z
|
|
232
|
+
.object({
|
|
233
|
+
status: zod_1.z.literal(200),
|
|
234
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
235
|
+
body: zod_1.z.string(),
|
|
236
|
+
})
|
|
237
|
+
.describe("SettingsService.setLookAndFeelSettings.response"));
|
|
238
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("SettingsService.getSystemInfo.response", zod_1.z
|
|
239
|
+
.object({
|
|
240
|
+
status: zod_1.z.literal(200),
|
|
241
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
242
|
+
body: zod_1.z.nullable(validationSchemaStorage_1.validationSchemaStorage.lazy("SystemInfoEntity")),
|
|
243
|
+
})
|
|
244
|
+
.describe("SettingsService.getSystemInfo.response"));
|
|
245
|
+
validationSchemaStorage_1.validationSchemaStorage.registerOnce([settings_1.registerSettingsValidationSchemas]);
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
exports.SettingsService = SettingsService;
|
|
249
|
+
//# sourceMappingURL=SettingsService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SettingsService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/SettingsService.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { CommonHttpService } from "../core/CommonHttpService";
|
|
2
|
+
import { type SpacePermissionCustomContent, type SpacePermissionRequest, type SpacePermissionV2 } from "../models/spacePermissions";
|
|
3
|
+
export declare class SpacePermissionsService extends CommonHttpService {
|
|
4
|
+
/**
|
|
5
|
+
* Adds new custom content permission to space.
|
|
6
|
+
*
|
|
7
|
+
* If the permission to be added is a group permission, the group can be identified
|
|
8
|
+
* by its group name or group id.
|
|
9
|
+
*
|
|
10
|
+
* Note: Only apps can access this REST resource and only make changes to the
|
|
11
|
+
* respective app permissions.
|
|
12
|
+
*
|
|
13
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
14
|
+
* 'Admin' permission for the space.
|
|
15
|
+
*
|
|
16
|
+
* @path {POST} /wiki/rest/api/space/{spaceKey}/permission/custom-content
|
|
17
|
+
* @scopes-current read:space.permission:confluence, write:space.permission:confluence
|
|
18
|
+
*/
|
|
19
|
+
addCustomContentPermissions({ spaceKey, spacePermissionCustomContent, }: {
|
|
20
|
+
/** The key of the space to be queried for its content. */
|
|
21
|
+
spaceKey: string;
|
|
22
|
+
/** The permissions to be created. */
|
|
23
|
+
spacePermissionCustomContent: SpacePermissionCustomContent;
|
|
24
|
+
}): Promise<void>;
|
|
25
|
+
/**
|
|
26
|
+
* Adds new permission to space.
|
|
27
|
+
*
|
|
28
|
+
* If the permission to be added is a group permission, the group can be identified
|
|
29
|
+
* by its group name or group id.
|
|
30
|
+
*
|
|
31
|
+
* Note: Apps cannot access this REST resource - including when utilizing user
|
|
32
|
+
* impersonation.
|
|
33
|
+
*
|
|
34
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
35
|
+
* 'Admin' permission for the space.
|
|
36
|
+
*
|
|
37
|
+
* @returns Returned if the requested content is returned.
|
|
38
|
+
* @path {POST} /wiki/rest/api/space/{spaceKey}/permission
|
|
39
|
+
* @scopes-current read:space.permission:confluence, write:space.permission:confluence
|
|
40
|
+
*/
|
|
41
|
+
addPermissionToSpace({ spaceKey, spacePermissionRequest, }: {
|
|
42
|
+
/** The key of the space to be queried for its content. */
|
|
43
|
+
spaceKey: string;
|
|
44
|
+
/** The permission to be created. */
|
|
45
|
+
spacePermissionRequest: SpacePermissionRequest;
|
|
46
|
+
}): Promise<SpacePermissionV2>;
|
|
47
|
+
/**
|
|
48
|
+
* Removes a space permission. Note that removing Read Space permission for a user
|
|
49
|
+
* or group will remove all
|
|
50
|
+
* the space permissions for that user or group.
|
|
51
|
+
*
|
|
52
|
+
* Note: Apps cannot access this REST resource - including when utilizing user
|
|
53
|
+
* impersonation.
|
|
54
|
+
*
|
|
55
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
56
|
+
* 'Admin' permission for the space.
|
|
57
|
+
*
|
|
58
|
+
* @path {DELETE} /wiki/rest/api/space/{spaceKey}/permission/{id}
|
|
59
|
+
* @scopes-current write:space.permission:confluence
|
|
60
|
+
*/
|
|
61
|
+
removePermission({ spaceKey, id, }: {
|
|
62
|
+
/** The key of the space to be queried for its content. */
|
|
63
|
+
spaceKey: string;
|
|
64
|
+
/** Id of the permission to be deleted. */
|
|
65
|
+
id: number;
|
|
66
|
+
}): Promise<void>;
|
|
67
|
+
static initialize(): void;
|
|
68
|
+
}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SpacePermissionsService = 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 spacePermissions_1 = require("../models/spacePermissions");
|
|
11
|
+
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
12
|
+
class SpacePermissionsService extends CommonHttpService_1.CommonHttpService {
|
|
13
|
+
/**
|
|
14
|
+
* Adds new custom content permission to space.
|
|
15
|
+
*
|
|
16
|
+
* If the permission to be added is a group permission, the group can be identified
|
|
17
|
+
* by its group name or group id.
|
|
18
|
+
*
|
|
19
|
+
* Note: Only apps can access this REST resource and only make changes to the
|
|
20
|
+
* respective app permissions.
|
|
21
|
+
*
|
|
22
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
23
|
+
* 'Admin' permission for the space.
|
|
24
|
+
*
|
|
25
|
+
* @path {POST} /wiki/rest/api/space/{spaceKey}/permission/custom-content
|
|
26
|
+
* @scopes-current read:space.permission:confluence, write:space.permission:confluence
|
|
27
|
+
*/
|
|
28
|
+
addCustomContentPermissions({ spaceKey, spacePermissionCustomContent, }) {
|
|
29
|
+
return this.getClientInstance()
|
|
30
|
+
.request({
|
|
31
|
+
path: "/wiki/rest/api/space/{spaceKey}/permission/custom-content",
|
|
32
|
+
method: "POST",
|
|
33
|
+
pathParams: {
|
|
34
|
+
spaceKey,
|
|
35
|
+
},
|
|
36
|
+
headers: {
|
|
37
|
+
"Content-Type": "application/json",
|
|
38
|
+
},
|
|
39
|
+
body: spacePermissionCustomContent,
|
|
40
|
+
})
|
|
41
|
+
.then(commonHttpClient.discardResult);
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Adds new permission to space.
|
|
45
|
+
*
|
|
46
|
+
* If the permission to be added is a group permission, the group can be identified
|
|
47
|
+
* by its group name or group id.
|
|
48
|
+
*
|
|
49
|
+
* Note: Apps cannot access this REST resource - including when utilizing user
|
|
50
|
+
* impersonation.
|
|
51
|
+
*
|
|
52
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
53
|
+
* 'Admin' permission for the space.
|
|
54
|
+
*
|
|
55
|
+
* @returns Returned if the requested content is returned.
|
|
56
|
+
* @path {POST} /wiki/rest/api/space/{spaceKey}/permission
|
|
57
|
+
* @scopes-current read:space.permission:confluence, write:space.permission:confluence
|
|
58
|
+
*/
|
|
59
|
+
addPermissionToSpace({ spaceKey, spacePermissionRequest, }) {
|
|
60
|
+
return this.getClientInstance()
|
|
61
|
+
.request({
|
|
62
|
+
path: "/wiki/rest/api/space/{spaceKey}/permission",
|
|
63
|
+
method: "POST",
|
|
64
|
+
pathParams: {
|
|
65
|
+
spaceKey,
|
|
66
|
+
},
|
|
67
|
+
headers: {
|
|
68
|
+
"Content-Type": "application/json",
|
|
69
|
+
},
|
|
70
|
+
body: spacePermissionRequest,
|
|
71
|
+
})
|
|
72
|
+
.then(this.getClientInstance().responseHandler({
|
|
73
|
+
200: {
|
|
74
|
+
"application/json": "json",
|
|
75
|
+
},
|
|
76
|
+
}))
|
|
77
|
+
.then(commonHttpClient.castResponse())
|
|
78
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("SpacePermissionsService.addPermissionToSpace.response"))
|
|
79
|
+
.then(commonHttpClient.getBody);
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Removes a space permission. Note that removing Read Space permission for a user
|
|
83
|
+
* or group will remove all
|
|
84
|
+
* the space permissions for that user or group.
|
|
85
|
+
*
|
|
86
|
+
* Note: Apps cannot access this REST resource - including when utilizing user
|
|
87
|
+
* impersonation.
|
|
88
|
+
*
|
|
89
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
90
|
+
* 'Admin' permission for the space.
|
|
91
|
+
*
|
|
92
|
+
* @path {DELETE} /wiki/rest/api/space/{spaceKey}/permission/{id}
|
|
93
|
+
* @scopes-current write:space.permission:confluence
|
|
94
|
+
*/
|
|
95
|
+
removePermission({ spaceKey, id, }) {
|
|
96
|
+
return this.getClientInstance()
|
|
97
|
+
.request({
|
|
98
|
+
path: "/wiki/rest/api/space/{spaceKey}/permission/{id}",
|
|
99
|
+
method: "DELETE",
|
|
100
|
+
pathParams: {
|
|
101
|
+
spaceKey,
|
|
102
|
+
id,
|
|
103
|
+
},
|
|
104
|
+
})
|
|
105
|
+
.then(commonHttpClient.discardResult);
|
|
106
|
+
}
|
|
107
|
+
static initialize() {
|
|
108
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("SpacePermissionsService.addPermissionToSpace.response", zod_1.z
|
|
109
|
+
.object({
|
|
110
|
+
status: zod_1.z.literal(200),
|
|
111
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
112
|
+
body: validationSchemaStorage_1.validationSchemaStorage.lazy("SpacePermissionV2"),
|
|
113
|
+
})
|
|
114
|
+
.describe("SpacePermissionsService.addPermissionToSpace.response"));
|
|
115
|
+
validationSchemaStorage_1.validationSchemaStorage.registerOnce([
|
|
116
|
+
spacePermissions_1.registerSpacePermissionsValidationSchemas,
|
|
117
|
+
]);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
exports.SpacePermissionsService = SpacePermissionsService;
|
|
121
|
+
//# sourceMappingURL=SpacePermissionsService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpacePermissionsService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/SpacePermissionsService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,iEAKoC;AACpC,wEAAqE;AACrE,MAAa,uBAAwB,SAAQ,qCAAiB;IAC5D;;;;;;;;;;;;;;OAcG;IACH,2BAA2B,CAAC,EAC1B,QAAQ,EACR,4BAA4B,GAM7B;QACC,OAAO,IAAI,CAAC,iBAAiB,EAAE;aAC5B,OAAO,CAAC;YACP,IAAI,EAAE,2DAA2D;YACjE,MAAM,EAAE,MAAM;YACd,UAAU,EAAE;gBACV,QAAQ;aACT;YACD,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;aACnC;YACD,IAAI,EAAE,4BAA4B;SACnC,CAAC;aACD,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC;IAC1C,CAAC;IACD;;;;;;;;;;;;;;;OAeG;IACH,oBAAoB,CAAC,EACnB,QAAQ,EACR,sBAAsB,GAMvB;QACC,OAAO,IAAI,CAAC,iBAAiB,EAAE;aAC5B,OAAO,CAAC;YACP,IAAI,EAAE,4CAA4C;YAClD,MAAM,EAAE,MAAM;YACd,UAAU,EAAE;gBACV,QAAQ;aACT;YACD,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;aACnC;YACD,IAAI,EAAE,sBAAsB;SAC7B,CAAC;aACD,IAAI,CACH,IAAI,CAAC,iBAAiB,EAAE,CAAC,eAAe,CAAC;YACvC,GAAG,EAAE;gBACH,kBAAkB,EAAE,MAAM;aAC3B;SACF,CAAC,CACH;aACA,IAAI,CACH,gBAAgB,CAAC,YAAY,EAIzB,CACL;aACA,IAAI,CACH,iDAAuB,CAAC,SAAS,CAC/B,uDAAuD,CACxD,CACF;aACA,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACpC,CAAC;IACD;;;;;;;;;;;;;OAaG;IACH,gBAAgB,CAAC,EACf,QAAQ,EACR,EAAE,GAMH;QACC,OAAO,IAAI,CAAC,iBAAiB,EAAE;aAC5B,OAAO,CAAC;YACP,IAAI,EAAE,iDAAiD;YACvD,MAAM,EAAE,QAAQ;YAChB,UAAU,EAAE;gBACV,QAAQ;gBACR,EAAE;aACH;SACF,CAAC;aACD,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC;IAC1C,CAAC;IACD,MAAM,CAAC,UAAU;QACf,iDAAuB,CAAC,kBAAkB,CACxC,uDAAuD,EACvD,OAAC;aACE,MAAM,CAAC;YACN,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,GAAG,CAAC;YACtB,SAAS,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;YACxC,IAAI,EAAE,iDAAuB,CAAC,IAAI,CAAC,mBAAmB,CAAC;SACxD,CAAC;aACD,QAAQ,CAAC,uDAAuD,CAAC,CACrE,CAAC;QACF,iDAAuB,CAAC,YAAY,CAAC;YACnC,4DAAyC;SAC1C,CAAC,CAAC;IACL,CAAC;CACF;AAlJD,0DAkJC"}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { CommonHttpService } from "../core/CommonHttpService";
|
|
2
|
+
import { type SpacePropertyArray, type SpacePropertyCreate, type SpacePropertyCreateNoKey, type SpacePropertyUpdate, type SpacePropertyV1 } from "../models/spaceProperties";
|
|
3
|
+
/** @deprecated */
|
|
4
|
+
export declare class SpacePropertiesService extends CommonHttpService {
|
|
5
|
+
/**
|
|
6
|
+
* Deprecated, use [Confluence's v2
|
|
7
|
+
* API](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/).
|
|
8
|
+
*
|
|
9
|
+
* Creates a new space property.
|
|
10
|
+
*
|
|
11
|
+
* **[Permissions required](https://confluence.atlassian.com/x/_AozKw)**:
|
|
12
|
+
* ‘Admin’ permission for the space.
|
|
13
|
+
*
|
|
14
|
+
* @deprecated
|
|
15
|
+
* @returns Returned if the space property is created.
|
|
16
|
+
* @path {POST} /wiki/rest/api/space/{spaceKey}/property
|
|
17
|
+
* @scopes-current write:confluence-props
|
|
18
|
+
* @scopes-beta read:space.property:confluence, write:space.property:confluence
|
|
19
|
+
*/
|
|
20
|
+
createSpaceProperty({ spaceKey, spacePropertyCreate, }: {
|
|
21
|
+
/** The key of the space that the property will be created in. */
|
|
22
|
+
spaceKey: string;
|
|
23
|
+
/** The space property to be created. */
|
|
24
|
+
spacePropertyCreate: SpacePropertyCreate;
|
|
25
|
+
}): Promise<SpacePropertyV1>;
|
|
26
|
+
/**
|
|
27
|
+
* Deprecated, use [Confluence's v2
|
|
28
|
+
* API](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/).
|
|
29
|
+
*
|
|
30
|
+
* Creates a new space property. This is the same as `POST
|
|
31
|
+
* /wiki/rest/api/space/{spaceKey}/property` but the key for the property is
|
|
32
|
+
* passed as a
|
|
33
|
+
* path parameter, rather than in the request body.
|
|
34
|
+
*
|
|
35
|
+
* **[Permissions required](https://confluence.atlassian.com/x/_AozKw)**:
|
|
36
|
+
* ‘Admin’ permission for the space.
|
|
37
|
+
*
|
|
38
|
+
* @deprecated
|
|
39
|
+
* @returns Returned if the space property is created.
|
|
40
|
+
* @path {POST} /wiki/rest/api/space/{spaceKey}/property/{key}
|
|
41
|
+
* @scopes-current write:confluence-props
|
|
42
|
+
* @scopes-beta read:space.property:confluence, write:space.property:confluence
|
|
43
|
+
*/
|
|
44
|
+
createSpacePropertyForKey({ spaceKey, key, spacePropertyCreateNoKey, }: {
|
|
45
|
+
/** The key of the space that the property will be created in. */
|
|
46
|
+
spaceKey: string;
|
|
47
|
+
/** The key of the property to be created. */
|
|
48
|
+
key: string;
|
|
49
|
+
/** The space property to be created. */
|
|
50
|
+
spacePropertyCreateNoKey: SpacePropertyCreateNoKey;
|
|
51
|
+
}): Promise<SpacePropertyV1>;
|
|
52
|
+
/**
|
|
53
|
+
* Deprecated, use [Confluence's v2
|
|
54
|
+
* API](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/).
|
|
55
|
+
*
|
|
56
|
+
* Deletes a space property.
|
|
57
|
+
*
|
|
58
|
+
* **[Permissions required](https://confluence.atlassian.com/x/_AozKw)**:
|
|
59
|
+
* ‘Admin’ permission for the space.
|
|
60
|
+
*
|
|
61
|
+
* @deprecated
|
|
62
|
+
* @path {DELETE} /wiki/rest/api/space/{spaceKey}/property/{key}
|
|
63
|
+
* @scopes-current write:confluence-props
|
|
64
|
+
* @scopes-beta write:space.property:confluence
|
|
65
|
+
*/
|
|
66
|
+
deleteSpaceProperty({ spaceKey, key, }: {
|
|
67
|
+
/** The key of the space that the property is in. */
|
|
68
|
+
spaceKey: string;
|
|
69
|
+
/** The key of the property to be deleted. */
|
|
70
|
+
key: string;
|
|
71
|
+
}): Promise<void>;
|
|
72
|
+
/**
|
|
73
|
+
* Deprecated, use [Confluence's v2
|
|
74
|
+
* API](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/).
|
|
75
|
+
*
|
|
76
|
+
* Returns all properties for the given space. Space properties are a key-value
|
|
77
|
+
* storage associated with a space.
|
|
78
|
+
*
|
|
79
|
+
* **[Permissions required](https://confluence.atlassian.com/x/_AozKw)**: ‘View’
|
|
80
|
+
* permission for the space.
|
|
81
|
+
*
|
|
82
|
+
* @deprecated
|
|
83
|
+
* @returns Returned if the requested space properties are returned.
|
|
84
|
+
* @path {GET} /wiki/rest/api/space/{spaceKey}/property
|
|
85
|
+
* @scopes-current read:confluence-props
|
|
86
|
+
* @scopes-beta read:content-details:confluence
|
|
87
|
+
*/
|
|
88
|
+
getSpaceProperties({ spaceKey, expand, start, limit, }: {
|
|
89
|
+
/** The key of the space to be queried for its properties. */
|
|
90
|
+
spaceKey: string;
|
|
91
|
+
/**
|
|
92
|
+
* A multi-value parameter indicating which properties of the space
|
|
93
|
+
* property to expand. By default, the `version` object is expanded.
|
|
94
|
+
*
|
|
95
|
+
* - `version` returns information about the version of the content.
|
|
96
|
+
* - `space` returns the space that the properties are in.
|
|
97
|
+
*/
|
|
98
|
+
expand?: ("version" | "space")[];
|
|
99
|
+
/** The starting index of the returned objects. */
|
|
100
|
+
start?: number;
|
|
101
|
+
/**
|
|
102
|
+
* The maximum number of properties to return per page. Note, this may be
|
|
103
|
+
* restricted by fixed system limits.
|
|
104
|
+
*/
|
|
105
|
+
limit?: number;
|
|
106
|
+
}): Promise<SpacePropertyArray>;
|
|
107
|
+
/**
|
|
108
|
+
* Deprecated, use [Confluence's v2
|
|
109
|
+
* API](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/).
|
|
110
|
+
*
|
|
111
|
+
* Returns a space property.
|
|
112
|
+
*
|
|
113
|
+
* **[Permissions required](https://confluence.atlassian.com/x/_AozKw)**: ‘View’
|
|
114
|
+
* permission for the space.
|
|
115
|
+
*
|
|
116
|
+
* @deprecated
|
|
117
|
+
* @returns Returned if the requested space property is returned.
|
|
118
|
+
* @path {GET} /wiki/rest/api/space/{spaceKey}/property/{key}
|
|
119
|
+
* @scopes-current read:confluence-props
|
|
120
|
+
* @scopes-beta read:content-details:confluence
|
|
121
|
+
*/
|
|
122
|
+
getSpaceProperty({ spaceKey, key, expand, }: {
|
|
123
|
+
/** The key of the space that the property is in. */
|
|
124
|
+
spaceKey: string;
|
|
125
|
+
/** The key of the space property. */
|
|
126
|
+
key: string;
|
|
127
|
+
/**
|
|
128
|
+
* A multi-value parameter indicating which properties of the space
|
|
129
|
+
* property to expand. By default, the `version` object is expanded.
|
|
130
|
+
*
|
|
131
|
+
* - `version` returns information about the version of the content.
|
|
132
|
+
* - `space` returns the space that the properties are in.
|
|
133
|
+
*/
|
|
134
|
+
expand?: ("version" | "space")[];
|
|
135
|
+
}): Promise<SpacePropertyV1>;
|
|
136
|
+
/**
|
|
137
|
+
* Deprecated, use [Confluence's v2
|
|
138
|
+
* API](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/).
|
|
139
|
+
*
|
|
140
|
+
* Updates a space property. Note, you cannot update the key of a space
|
|
141
|
+
* property, only the value.
|
|
142
|
+
*
|
|
143
|
+
* **[Permissions required](https://confluence.atlassian.com/x/_AozKw)**:
|
|
144
|
+
* ‘Admin’ permission for the space.
|
|
145
|
+
*
|
|
146
|
+
* @deprecated
|
|
147
|
+
* @returns Returned if the space property is updated.
|
|
148
|
+
* @path {PUT} /wiki/rest/api/space/{spaceKey}/property/{key}
|
|
149
|
+
* @scopes-current write:confluence-props
|
|
150
|
+
* @scopes-beta read:space.property:confluence, write:space.property:confluence
|
|
151
|
+
*/
|
|
152
|
+
updateSpaceProperty({ spaceKey, key, spacePropertyUpdate, }: {
|
|
153
|
+
/** The key of the space that the property is in. */
|
|
154
|
+
spaceKey: string;
|
|
155
|
+
/** The key of the property to be updated. */
|
|
156
|
+
key: string;
|
|
157
|
+
/** The space property being updated. */
|
|
158
|
+
spacePropertyUpdate: SpacePropertyUpdate;
|
|
159
|
+
}): Promise<SpacePropertyV1>;
|
|
160
|
+
static initialize(): void;
|
|
161
|
+
}
|