@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,66 @@
|
|
|
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 common_1 = require("../models/common");
|
|
11
|
+
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
12
|
+
class SpacePermissionsService extends CommonHttpService_1.CommonHttpService {
|
|
13
|
+
/**
|
|
14
|
+
* Returns space permissions for a specific space.
|
|
15
|
+
*
|
|
16
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
17
|
+
* Permission to view the space.
|
|
18
|
+
*
|
|
19
|
+
* @returns Returned if the requested space permissions are returned.
|
|
20
|
+
* @path {GET} /spaces/{id}/permissions
|
|
21
|
+
* @scopes-current read:space:confluence
|
|
22
|
+
*/
|
|
23
|
+
getSpacePermissions({ id, cursor, limit, }) {
|
|
24
|
+
return this.getClientInstance()
|
|
25
|
+
.request({
|
|
26
|
+
path: "/spaces/{id}/permissions",
|
|
27
|
+
method: "GET",
|
|
28
|
+
pathParams: {
|
|
29
|
+
id,
|
|
30
|
+
},
|
|
31
|
+
query: {
|
|
32
|
+
cursor,
|
|
33
|
+
limit,
|
|
34
|
+
},
|
|
35
|
+
})
|
|
36
|
+
.then(this.getClientInstance().responseHandler({
|
|
37
|
+
200: {
|
|
38
|
+
"application/json": "json",
|
|
39
|
+
},
|
|
40
|
+
}))
|
|
41
|
+
.then(commonHttpClient.castResponse())
|
|
42
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("SpacePermissionsService.getSpacePermissions.response"))
|
|
43
|
+
.then(commonHttpClient.getBody);
|
|
44
|
+
}
|
|
45
|
+
static initialize() {
|
|
46
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("SpacePermissionsService.getSpacePermissions.response", zod_1.z
|
|
47
|
+
.object({
|
|
48
|
+
status: zod_1.z.literal(200),
|
|
49
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
50
|
+
body: zod_1.z
|
|
51
|
+
.object({
|
|
52
|
+
results: zod_1.z
|
|
53
|
+
.array(validationSchemaStorage_1.validationSchemaStorage.lazy("SpacePermission"))
|
|
54
|
+
.optional(),
|
|
55
|
+
_links: validationSchemaStorage_1.validationSchemaStorage
|
|
56
|
+
.lazy("MultiEntityLinks")
|
|
57
|
+
.optional(),
|
|
58
|
+
})
|
|
59
|
+
.catchall(zod_1.z.unknown()),
|
|
60
|
+
})
|
|
61
|
+
.describe("SpacePermissionsService.getSpacePermissions.response"));
|
|
62
|
+
validationSchemaStorage_1.validationSchemaStorage.registerOnce([common_1.registerCommonValidationSchemas]);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
exports.SpacePermissionsService = SpacePermissionsService;
|
|
66
|
+
//# sourceMappingURL=SpacePermissionsService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpacePermissionsService.js","sourceRoot":"","sources":["../../../../src/openapi/v2/services/SpacePermissionsService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,6CAI0B;AAC1B,wEAAqE;AACrE,MAAa,uBAAwB,SAAQ,qCAAiB;IAC5D;;;;;;;;;OASG;IACH,mBAAmB,CAAC,EAClB,EAAE,EACF,MAAM,EACN,KAAK,GAgBN;QAQC,OAAO,IAAI,CAAC,iBAAiB,EAAE;aAC5B,OAAO,CAAC;YACP,IAAI,EAAE,0BAA0B;YAChC,MAAM,EAAE,KAAK;YACb,UAAU,EAAE;gBACV,EAAE;aACH;YACD,KAAK,EAAE;gBACL,MAAM;gBACN,KAAK;aACN;SACF,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,EASzB,CACL;aACA,IAAI,CACH,iDAAuB,CAAC,SAAS,CAC/B,sDAAsD,CACvD,CACF;aACA,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACpC,CAAC;IACD,MAAM,CAAC,UAAU;QACf,iDAAuB,CAAC,kBAAkB,CACxC,sDAAsD,EACtD,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,OAAC;iBACJ,MAAM,CAAC;gBACN,OAAO,EAAE,OAAC;qBACP,KAAK,CAAC,iDAAuB,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;qBACtD,QAAQ,EAAE;gBACb,MAAM,EAAE,iDAAuB;qBAC5B,IAAI,CAAC,kBAAkB,CAAC;qBACxB,QAAQ,EAAE;aACd,CAAC;iBACD,QAAQ,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC;SACzB,CAAC;aACD,QAAQ,CAAC,sDAAsD,CAAC,CACpE,CAAC;QACF,iDAAuB,CAAC,YAAY,CAAC,CAAC,wCAA+B,CAAC,CAAC,CAAC;IAC1E,CAAC;CACF;AAlGD,0DAkGC"}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { CommonHttpService } from "../core/CommonHttpService";
|
|
2
|
+
import { type MultiEntityLinks, type SpaceProperty } from "../models/common";
|
|
3
|
+
import type { SpacePropertyCreateRequest, SpacePropertyUpdateRequest } from "../models/spaceProperties";
|
|
4
|
+
export declare class SpacePropertiesService extends CommonHttpService {
|
|
5
|
+
/**
|
|
6
|
+
* Creates a new space property.
|
|
7
|
+
*
|
|
8
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
9
|
+
* Permission to access the Confluence site ('Can use' global permission) and
|
|
10
|
+
* 'Admin' permission for the space.
|
|
11
|
+
*
|
|
12
|
+
* @returns Returned if the space property was created successfully.
|
|
13
|
+
* @path {POST} /spaces/{space-id}/properties
|
|
14
|
+
* @scopes-current read:space:confluence, write:space:confluence
|
|
15
|
+
*/
|
|
16
|
+
createSpaceProperty({ spaceId, spacePropertyCreateRequest, }: {
|
|
17
|
+
/** The ID of the space for which space properties should be returned. */
|
|
18
|
+
spaceId: number;
|
|
19
|
+
/** The space property to be created */
|
|
20
|
+
spacePropertyCreateRequest: SpacePropertyCreateRequest;
|
|
21
|
+
}): Promise<SpaceProperty>;
|
|
22
|
+
/**
|
|
23
|
+
* Deletes a space property by its id.
|
|
24
|
+
*
|
|
25
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
26
|
+
* Permission to access the Confluence site ('Can use' global permission) and
|
|
27
|
+
* 'Admin' permission for the space.
|
|
28
|
+
*
|
|
29
|
+
* @path {DELETE} /spaces/{space-id}/properties/{property-id}
|
|
30
|
+
* @scopes-current read:space:confluence, write:space:confluence
|
|
31
|
+
*/
|
|
32
|
+
deleteSpacePropertyById({ spaceId, propertyId, }: {
|
|
33
|
+
/** The ID of the space the property belongs to. */
|
|
34
|
+
spaceId: number;
|
|
35
|
+
/** The ID of the property to be deleted. */
|
|
36
|
+
propertyId: number;
|
|
37
|
+
}): Promise<void>;
|
|
38
|
+
/**
|
|
39
|
+
* Returns all properties for the given space. Space properties are a key-value
|
|
40
|
+
* storage associated with a space.
|
|
41
|
+
* The limit parameter specifies the maximum number of results returned in a
|
|
42
|
+
* single response. Use the `link` response header
|
|
43
|
+
* to paginate through additional results.
|
|
44
|
+
*
|
|
45
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
46
|
+
* Permission to access the Confluence site ('Can use' global permission) and
|
|
47
|
+
* 'View' permission for the space.
|
|
48
|
+
*
|
|
49
|
+
* @returns Returned if the requested space properties are returned. `results` may be empty
|
|
50
|
+
* if no results were found.
|
|
51
|
+
* @path {GET} /spaces/{space-id}/properties
|
|
52
|
+
* @scopes-current read:space:confluence
|
|
53
|
+
*/
|
|
54
|
+
getSpaceProperties({ spaceId, key, cursor, limit, }: {
|
|
55
|
+
/** The ID of the space for which space properties should be returned. */
|
|
56
|
+
spaceId: number;
|
|
57
|
+
/**
|
|
58
|
+
* The key of the space property to retrieve. This should be used when a user
|
|
59
|
+
* knows the key of their property, but needs to retrieve the id for use in other
|
|
60
|
+
* methods.
|
|
61
|
+
*/
|
|
62
|
+
key?: string;
|
|
63
|
+
/**
|
|
64
|
+
* Used for pagination, this opaque cursor will be returned in the `next` URL in
|
|
65
|
+
* the `Link` response header. Use the relative URL in the `Link` header to
|
|
66
|
+
* retrieve the `next` set of results.
|
|
67
|
+
*/
|
|
68
|
+
cursor?: string;
|
|
69
|
+
/**
|
|
70
|
+
* Maximum number of pages per result to return. If more results exist, use the
|
|
71
|
+
* `Link` header to retrieve a relative URL that will return the next set of
|
|
72
|
+
* results.
|
|
73
|
+
*/
|
|
74
|
+
limit?: number;
|
|
75
|
+
}): Promise<{
|
|
76
|
+
results?: SpaceProperty[];
|
|
77
|
+
_links?: MultiEntityLinks;
|
|
78
|
+
} & {
|
|
79
|
+
[key: string]: unknown;
|
|
80
|
+
}>;
|
|
81
|
+
/**
|
|
82
|
+
* Retrieve a space property by its id.
|
|
83
|
+
*
|
|
84
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
85
|
+
* Permission to access the Confluence site ('Can use' global permission) and
|
|
86
|
+
* 'View' permission for the space.
|
|
87
|
+
*
|
|
88
|
+
* @returns Returned if the space property was retrieved.
|
|
89
|
+
* @path {GET} /spaces/{space-id}/properties/{property-id}
|
|
90
|
+
* @scopes-current read:space:confluence
|
|
91
|
+
*/
|
|
92
|
+
getSpacePropertyById({ spaceId, propertyId, }: {
|
|
93
|
+
/** The ID of the space the property belongs to. */
|
|
94
|
+
spaceId: number;
|
|
95
|
+
/** The ID of the property to be retrieved. */
|
|
96
|
+
propertyId: number;
|
|
97
|
+
}): Promise<SpaceProperty>;
|
|
98
|
+
/**
|
|
99
|
+
* Update a space property by its id.
|
|
100
|
+
*
|
|
101
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
102
|
+
* Permission to access the Confluence site ('Can use' global permission) and
|
|
103
|
+
* 'Admin' permission for the space.
|
|
104
|
+
*
|
|
105
|
+
* @returns Returned if the space property was updated successfully.
|
|
106
|
+
* @path {PUT} /spaces/{space-id}/properties/{property-id}
|
|
107
|
+
* @scopes-current read:space:confluence, write:space:confluence
|
|
108
|
+
*/
|
|
109
|
+
updateSpacePropertyById({ spaceId, propertyId, spacePropertyUpdateRequest, }: {
|
|
110
|
+
/** The ID of the space the property belongs to. */
|
|
111
|
+
spaceId: number;
|
|
112
|
+
/** The ID of the property to be updated. */
|
|
113
|
+
propertyId: number;
|
|
114
|
+
/** The space property to be updated. */
|
|
115
|
+
spacePropertyUpdateRequest: SpacePropertyUpdateRequest;
|
|
116
|
+
}): Promise<SpaceProperty>;
|
|
117
|
+
static initialize(): void;
|
|
118
|
+
}
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SpacePropertiesService = void 0;
|
|
4
|
+
// DO NOT EDIT!
|
|
5
|
+
// This file is generated by "api-typescript-generator".
|
|
6
|
+
// To update this file run "yarn build:openapi".
|
|
7
|
+
const zod_1 = require("zod");
|
|
8
|
+
const commonHttpClient = require("../core/CommonHttpClient");
|
|
9
|
+
const CommonHttpService_1 = require("../core/CommonHttpService");
|
|
10
|
+
const common_1 = require("../models/common");
|
|
11
|
+
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
12
|
+
class SpacePropertiesService extends CommonHttpService_1.CommonHttpService {
|
|
13
|
+
/**
|
|
14
|
+
* Creates a new space property.
|
|
15
|
+
*
|
|
16
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
17
|
+
* Permission to access the Confluence site ('Can use' global permission) and
|
|
18
|
+
* 'Admin' permission for the space.
|
|
19
|
+
*
|
|
20
|
+
* @returns Returned if the space property was created successfully.
|
|
21
|
+
* @path {POST} /spaces/{space-id}/properties
|
|
22
|
+
* @scopes-current read:space:confluence, write:space:confluence
|
|
23
|
+
*/
|
|
24
|
+
createSpaceProperty({ spaceId, spacePropertyCreateRequest, }) {
|
|
25
|
+
return this.getClientInstance()
|
|
26
|
+
.request({
|
|
27
|
+
path: "/spaces/{space-id}/properties",
|
|
28
|
+
method: "POST",
|
|
29
|
+
pathParams: {
|
|
30
|
+
"space-id": spaceId,
|
|
31
|
+
},
|
|
32
|
+
headers: {
|
|
33
|
+
"Content-Type": "application/json",
|
|
34
|
+
},
|
|
35
|
+
body: spacePropertyCreateRequest,
|
|
36
|
+
})
|
|
37
|
+
.then(this.getClientInstance().responseHandler({
|
|
38
|
+
201: {
|
|
39
|
+
"application/json": "json",
|
|
40
|
+
},
|
|
41
|
+
}))
|
|
42
|
+
.then(commonHttpClient.castResponse())
|
|
43
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("SpacePropertiesService.createSpaceProperty.response"))
|
|
44
|
+
.then(commonHttpClient.getBody);
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Deletes a space property by its id.
|
|
48
|
+
*
|
|
49
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
50
|
+
* Permission to access the Confluence site ('Can use' global permission) and
|
|
51
|
+
* 'Admin' permission for the space.
|
|
52
|
+
*
|
|
53
|
+
* @path {DELETE} /spaces/{space-id}/properties/{property-id}
|
|
54
|
+
* @scopes-current read:space:confluence, write:space:confluence
|
|
55
|
+
*/
|
|
56
|
+
deleteSpacePropertyById({ spaceId, propertyId, }) {
|
|
57
|
+
return this.getClientInstance()
|
|
58
|
+
.request({
|
|
59
|
+
path: "/spaces/{space-id}/properties/{property-id}",
|
|
60
|
+
method: "DELETE",
|
|
61
|
+
pathParams: {
|
|
62
|
+
"space-id": spaceId,
|
|
63
|
+
"property-id": propertyId,
|
|
64
|
+
},
|
|
65
|
+
})
|
|
66
|
+
.then(commonHttpClient.discardResult);
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Returns all properties for the given space. Space properties are a key-value
|
|
70
|
+
* storage associated with a space.
|
|
71
|
+
* The limit parameter specifies the maximum number of results returned in a
|
|
72
|
+
* single response. Use the `link` response header
|
|
73
|
+
* to paginate through additional results.
|
|
74
|
+
*
|
|
75
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
76
|
+
* Permission to access the Confluence site ('Can use' global permission) and
|
|
77
|
+
* 'View' permission for the space.
|
|
78
|
+
*
|
|
79
|
+
* @returns Returned if the requested space properties are returned. `results` may be empty
|
|
80
|
+
* if no results were found.
|
|
81
|
+
* @path {GET} /spaces/{space-id}/properties
|
|
82
|
+
* @scopes-current read:space:confluence
|
|
83
|
+
*/
|
|
84
|
+
getSpaceProperties({ spaceId, key, cursor, limit, }) {
|
|
85
|
+
return this.getClientInstance()
|
|
86
|
+
.request({
|
|
87
|
+
path: "/spaces/{space-id}/properties",
|
|
88
|
+
method: "GET",
|
|
89
|
+
pathParams: {
|
|
90
|
+
"space-id": spaceId,
|
|
91
|
+
},
|
|
92
|
+
query: {
|
|
93
|
+
key,
|
|
94
|
+
cursor,
|
|
95
|
+
limit,
|
|
96
|
+
},
|
|
97
|
+
})
|
|
98
|
+
.then(this.getClientInstance().responseHandler({
|
|
99
|
+
200: {
|
|
100
|
+
"application/json": "json",
|
|
101
|
+
},
|
|
102
|
+
}))
|
|
103
|
+
.then(commonHttpClient.castResponse())
|
|
104
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("SpacePropertiesService.getSpaceProperties.response"))
|
|
105
|
+
.then(commonHttpClient.getBody);
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Retrieve a space property by its id.
|
|
109
|
+
*
|
|
110
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
111
|
+
* Permission to access the Confluence site ('Can use' global permission) and
|
|
112
|
+
* 'View' permission for the space.
|
|
113
|
+
*
|
|
114
|
+
* @returns Returned if the space property was retrieved.
|
|
115
|
+
* @path {GET} /spaces/{space-id}/properties/{property-id}
|
|
116
|
+
* @scopes-current read:space:confluence
|
|
117
|
+
*/
|
|
118
|
+
getSpacePropertyById({ spaceId, propertyId, }) {
|
|
119
|
+
return this.getClientInstance()
|
|
120
|
+
.request({
|
|
121
|
+
path: "/spaces/{space-id}/properties/{property-id}",
|
|
122
|
+
method: "GET",
|
|
123
|
+
pathParams: {
|
|
124
|
+
"space-id": spaceId,
|
|
125
|
+
"property-id": propertyId,
|
|
126
|
+
},
|
|
127
|
+
})
|
|
128
|
+
.then(this.getClientInstance().responseHandler({
|
|
129
|
+
200: {
|
|
130
|
+
"application/json": "json",
|
|
131
|
+
},
|
|
132
|
+
}))
|
|
133
|
+
.then(commonHttpClient.castResponse())
|
|
134
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("SpacePropertiesService.getSpacePropertyById.response"))
|
|
135
|
+
.then(commonHttpClient.getBody);
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Update a space property by its id.
|
|
139
|
+
*
|
|
140
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
141
|
+
* Permission to access the Confluence site ('Can use' global permission) and
|
|
142
|
+
* 'Admin' permission for the space.
|
|
143
|
+
*
|
|
144
|
+
* @returns Returned if the space property was updated successfully.
|
|
145
|
+
* @path {PUT} /spaces/{space-id}/properties/{property-id}
|
|
146
|
+
* @scopes-current read:space:confluence, write:space:confluence
|
|
147
|
+
*/
|
|
148
|
+
updateSpacePropertyById({ spaceId, propertyId, spacePropertyUpdateRequest, }) {
|
|
149
|
+
return this.getClientInstance()
|
|
150
|
+
.request({
|
|
151
|
+
path: "/spaces/{space-id}/properties/{property-id}",
|
|
152
|
+
method: "PUT",
|
|
153
|
+
pathParams: {
|
|
154
|
+
"space-id": spaceId,
|
|
155
|
+
"property-id": propertyId,
|
|
156
|
+
},
|
|
157
|
+
headers: {
|
|
158
|
+
"Content-Type": "application/json",
|
|
159
|
+
},
|
|
160
|
+
body: spacePropertyUpdateRequest,
|
|
161
|
+
})
|
|
162
|
+
.then(this.getClientInstance().responseHandler({
|
|
163
|
+
200: {
|
|
164
|
+
"application/json": "json",
|
|
165
|
+
},
|
|
166
|
+
}))
|
|
167
|
+
.then(commonHttpClient.castResponse())
|
|
168
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("SpacePropertiesService.updateSpacePropertyById.response"))
|
|
169
|
+
.then(commonHttpClient.getBody);
|
|
170
|
+
}
|
|
171
|
+
static initialize() {
|
|
172
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("SpacePropertiesService.getSpaceProperties.response", zod_1.z
|
|
173
|
+
.object({
|
|
174
|
+
status: zod_1.z.literal(200),
|
|
175
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
176
|
+
body: zod_1.z
|
|
177
|
+
.object({
|
|
178
|
+
results: zod_1.z
|
|
179
|
+
.array(validationSchemaStorage_1.validationSchemaStorage.lazy("SpaceProperty"))
|
|
180
|
+
.optional(),
|
|
181
|
+
_links: validationSchemaStorage_1.validationSchemaStorage
|
|
182
|
+
.lazy("MultiEntityLinks")
|
|
183
|
+
.optional(),
|
|
184
|
+
})
|
|
185
|
+
.catchall(zod_1.z.unknown()),
|
|
186
|
+
})
|
|
187
|
+
.describe("SpacePropertiesService.getSpaceProperties.response"));
|
|
188
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("SpacePropertiesService.createSpaceProperty.response", zod_1.z
|
|
189
|
+
.object({
|
|
190
|
+
status: zod_1.z.literal(201),
|
|
191
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
192
|
+
body: validationSchemaStorage_1.validationSchemaStorage.lazy("SpaceProperty"),
|
|
193
|
+
})
|
|
194
|
+
.describe("SpacePropertiesService.createSpaceProperty.response"));
|
|
195
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("SpacePropertiesService.getSpacePropertyById.response", zod_1.z
|
|
196
|
+
.object({
|
|
197
|
+
status: zod_1.z.literal(200),
|
|
198
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
199
|
+
body: validationSchemaStorage_1.validationSchemaStorage.lazy("SpaceProperty"),
|
|
200
|
+
})
|
|
201
|
+
.describe("SpacePropertiesService.getSpacePropertyById.response"));
|
|
202
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("SpacePropertiesService.updateSpacePropertyById.response", zod_1.z
|
|
203
|
+
.object({
|
|
204
|
+
status: zod_1.z.literal(200),
|
|
205
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
206
|
+
body: validationSchemaStorage_1.validationSchemaStorage.lazy("SpaceProperty"),
|
|
207
|
+
})
|
|
208
|
+
.describe("SpacePropertiesService.updateSpacePropertyById.response"));
|
|
209
|
+
validationSchemaStorage_1.validationSchemaStorage.registerOnce([common_1.registerCommonValidationSchemas]);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
exports.SpacePropertiesService = SpacePropertiesService;
|
|
213
|
+
//# sourceMappingURL=SpacePropertiesService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpacePropertiesService.js","sourceRoot":"","sources":["../../../../src/openapi/v2/services/SpacePropertiesService.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { CommonHttpService } from "../core/CommonHttpService";
|
|
2
|
+
import { type MultiEntityLinks, type SpaceSortOrder } from "../models/common";
|
|
3
|
+
import { type SpaceBulk, type SpaceDescriptionBodyRepresentation, type SpaceSingle } from "../models/space";
|
|
4
|
+
export declare class SpaceService extends CommonHttpService {
|
|
5
|
+
/**
|
|
6
|
+
* Returns a specific space.
|
|
7
|
+
*
|
|
8
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
9
|
+
* Permission to view the space.
|
|
10
|
+
*
|
|
11
|
+
* @returns Returned if the requested space is returned.
|
|
12
|
+
* @path {GET} /spaces/{id}
|
|
13
|
+
* @scopes-current read:space:confluence
|
|
14
|
+
*/
|
|
15
|
+
getSpaceById({ id, descriptionFormat, includeIcon, includeOperations, includeProperties, includePermissions, includeLabels, }: {
|
|
16
|
+
/** The ID of the space to be returned. */
|
|
17
|
+
id: number;
|
|
18
|
+
/**
|
|
19
|
+
* The content format type to be returned in the `description` field of the
|
|
20
|
+
* response. If available, the representation will be available under a response
|
|
21
|
+
* field of the same name under the `description` field.
|
|
22
|
+
*/
|
|
23
|
+
descriptionFormat?: SpaceDescriptionBodyRepresentation;
|
|
24
|
+
/** If the icon for the space should be fetched or not. */
|
|
25
|
+
includeIcon?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Includes operations associated with this space in the response.
|
|
28
|
+
* The number of results will be limited to 50 and sorted in the default sort
|
|
29
|
+
* order.
|
|
30
|
+
* A `meta` and `_links` property will be present to indicate if more results are
|
|
31
|
+
* available and a link to retrieve the rest of the results.
|
|
32
|
+
*/
|
|
33
|
+
includeOperations?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Includes space properties associated with this space in the response.
|
|
36
|
+
* The number of results will be limited to 50 and sorted in the default sort
|
|
37
|
+
* order.
|
|
38
|
+
* A `meta` and `_links` property will be present to indicate if more results are
|
|
39
|
+
* available and a link to retrieve the rest of the results.
|
|
40
|
+
*/
|
|
41
|
+
includeProperties?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Includes space permissions associated with this space in the response.
|
|
44
|
+
* The number of results will be limited to 50 and sorted in the default sort
|
|
45
|
+
* order.
|
|
46
|
+
* A `meta` and `_links` property will be present to indicate if more results are
|
|
47
|
+
* available and a link to retrieve the rest of the results.
|
|
48
|
+
*/
|
|
49
|
+
includePermissions?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Includes labels associated with this space in the response.
|
|
52
|
+
* The number of results will be limited to 50 and sorted in the default sort
|
|
53
|
+
* order.
|
|
54
|
+
* A `meta` and `_links` property will be present to indicate if more results are
|
|
55
|
+
* available and a link to retrieve the rest of the results.
|
|
56
|
+
*/
|
|
57
|
+
includeLabels?: boolean;
|
|
58
|
+
}): Promise<SpaceSingle & ({
|
|
59
|
+
_links?: {
|
|
60
|
+
/** Base url of the Confluence site. */
|
|
61
|
+
base?: string;
|
|
62
|
+
} & {
|
|
63
|
+
[key: string]: unknown;
|
|
64
|
+
};
|
|
65
|
+
} & {
|
|
66
|
+
[key: string]: unknown;
|
|
67
|
+
})>;
|
|
68
|
+
/**
|
|
69
|
+
* Returns all spaces. The results will be sorted by id ascending. The number of
|
|
70
|
+
* results is limited by the `limit` parameter and
|
|
71
|
+
* additional results (if available) will be available through the `next` URL
|
|
72
|
+
* present in the `Link` response header.
|
|
73
|
+
*
|
|
74
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
75
|
+
* Permission to access the Confluence site ('Can use' global permission).
|
|
76
|
+
* Only spaces that the user has permission to view will be returned.
|
|
77
|
+
*
|
|
78
|
+
* @returns Returned if the requested spaces are returned.
|
|
79
|
+
* @path {GET} /spaces
|
|
80
|
+
* @scopes-current read:space:confluence
|
|
81
|
+
*/
|
|
82
|
+
getSpaces({ ids, keys, type, status, labels, favoritedBy, notFavoritedBy, sort, descriptionFormat, includeIcon, cursor, limit, }: {
|
|
83
|
+
/**
|
|
84
|
+
* Filter the results to spaces based on their IDs. Multiple IDs can be specified
|
|
85
|
+
* as a comma-separated list.
|
|
86
|
+
*/
|
|
87
|
+
ids?: number[];
|
|
88
|
+
/**
|
|
89
|
+
* Filter the results to spaces based on their keys. Multiple keys can be
|
|
90
|
+
* specified as a comma-separated list.
|
|
91
|
+
*/
|
|
92
|
+
keys?: string[];
|
|
93
|
+
/** Filter the results to spaces based on their type. */
|
|
94
|
+
type?: "global" | "collaboration" | "knowledge_base" | "personal";
|
|
95
|
+
/** Filter the results to spaces based on their status. */
|
|
96
|
+
status?: "current" | "archived";
|
|
97
|
+
/**
|
|
98
|
+
* Filter the results to spaces based on their labels. Multiple labels can be
|
|
99
|
+
* specified as a comma-separated list.
|
|
100
|
+
*/
|
|
101
|
+
labels?: string[];
|
|
102
|
+
/**
|
|
103
|
+
* Filter the results to spaces favorited by the user with the specified account
|
|
104
|
+
* ID.
|
|
105
|
+
*/
|
|
106
|
+
favoritedBy?: string;
|
|
107
|
+
/**
|
|
108
|
+
* Filter the results to spaces NOT favorited by the user with the specified
|
|
109
|
+
* account ID.
|
|
110
|
+
*/
|
|
111
|
+
notFavoritedBy?: string;
|
|
112
|
+
/** Used to sort the result by a particular field. */
|
|
113
|
+
sort?: SpaceSortOrder;
|
|
114
|
+
/**
|
|
115
|
+
* The content format type to be returned in the `description` field of the
|
|
116
|
+
* response. If available, the representation will be available under a response
|
|
117
|
+
* field of the same name under the `description` field.
|
|
118
|
+
*/
|
|
119
|
+
descriptionFormat?: SpaceDescriptionBodyRepresentation;
|
|
120
|
+
/** If the icon for the space should be fetched or not. */
|
|
121
|
+
includeIcon?: boolean;
|
|
122
|
+
/**
|
|
123
|
+
* Used for pagination, this opaque cursor will be returned in the `next` URL in
|
|
124
|
+
* the `Link` response header. Use the relative URL in the `Link` header to
|
|
125
|
+
* retrieve the `next` set of results.
|
|
126
|
+
*/
|
|
127
|
+
cursor?: string;
|
|
128
|
+
/**
|
|
129
|
+
* Maximum number of spaces per result to return. If more results exist, use the
|
|
130
|
+
* `Link` response header to retrieve a relative URL that will return the next set
|
|
131
|
+
* of results.
|
|
132
|
+
*/
|
|
133
|
+
limit?: number;
|
|
134
|
+
}): Promise<{
|
|
135
|
+
results?: SpaceBulk[];
|
|
136
|
+
_links?: MultiEntityLinks;
|
|
137
|
+
} & {
|
|
138
|
+
[key: string]: unknown;
|
|
139
|
+
}>;
|
|
140
|
+
static initialize(): void;
|
|
141
|
+
}
|