@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,82 @@
|
|
|
1
|
+
import { CommonHttpService } from "../core/CommonHttpService";
|
|
2
|
+
import { type DatabaseSingle } from "../models/database";
|
|
3
|
+
export declare class DatabaseService extends CommonHttpService {
|
|
4
|
+
/**
|
|
5
|
+
* Creates a database in the space.
|
|
6
|
+
*
|
|
7
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
8
|
+
* Permission to view the corresponding space. Permission to create a database in
|
|
9
|
+
* the space.
|
|
10
|
+
*
|
|
11
|
+
* @returns Returned if the database was successfully created.
|
|
12
|
+
* @path {POST} /databases
|
|
13
|
+
* @scopes-current write:database:confluence
|
|
14
|
+
*/
|
|
15
|
+
createDatabase({ private: privateQuery, requestBody, }: {
|
|
16
|
+
/**
|
|
17
|
+
* The database will be private. Only the user who creates this database will have
|
|
18
|
+
* permission to view and edit one.
|
|
19
|
+
*/
|
|
20
|
+
private?: boolean;
|
|
21
|
+
requestBody: {
|
|
22
|
+
/** ID of the space. */
|
|
23
|
+
spaceId: string;
|
|
24
|
+
/** Title of the database. */
|
|
25
|
+
title?: string;
|
|
26
|
+
/** The parent content ID of the database. */
|
|
27
|
+
parentId?: string;
|
|
28
|
+
} & {
|
|
29
|
+
[key: string]: unknown;
|
|
30
|
+
};
|
|
31
|
+
}): Promise<DatabaseSingle & ({
|
|
32
|
+
_links?: {
|
|
33
|
+
/** Base url of the Confluence site. */
|
|
34
|
+
base?: string;
|
|
35
|
+
} & {
|
|
36
|
+
[key: string]: unknown;
|
|
37
|
+
};
|
|
38
|
+
} & {
|
|
39
|
+
[key: string]: unknown;
|
|
40
|
+
})>;
|
|
41
|
+
/**
|
|
42
|
+
* Delete a database by id.
|
|
43
|
+
*
|
|
44
|
+
* Deleting a database moves the database to the trash, where it can be restored
|
|
45
|
+
* later
|
|
46
|
+
*
|
|
47
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
48
|
+
* Permission to view the database and its corresponding space.
|
|
49
|
+
* Permission to delete databases in the space.
|
|
50
|
+
*
|
|
51
|
+
* @path {DELETE} /databases/{id}
|
|
52
|
+
* @scopes-current delete:database:confluence
|
|
53
|
+
*/
|
|
54
|
+
deleteDatabase({ id, }: {
|
|
55
|
+
/** The ID of the database to be deleted. */
|
|
56
|
+
id: number;
|
|
57
|
+
}): Promise<void>;
|
|
58
|
+
/**
|
|
59
|
+
* Returns a specific database.
|
|
60
|
+
*
|
|
61
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
62
|
+
* Permission to view the database and its corresponding space.
|
|
63
|
+
*
|
|
64
|
+
* @returns Returned if the requested database is returned.
|
|
65
|
+
* @path {GET} /databases/{id}
|
|
66
|
+
* @scopes-current read:database:confluence
|
|
67
|
+
*/
|
|
68
|
+
getDatabaseById({ id, }: {
|
|
69
|
+
/** The ID of the database to be returned */
|
|
70
|
+
id: number;
|
|
71
|
+
}): Promise<DatabaseSingle & ({
|
|
72
|
+
_links?: {
|
|
73
|
+
/** Base url of the Confluence site. */
|
|
74
|
+
base?: string;
|
|
75
|
+
} & {
|
|
76
|
+
[key: string]: unknown;
|
|
77
|
+
};
|
|
78
|
+
} & {
|
|
79
|
+
[key: string]: unknown;
|
|
80
|
+
})>;
|
|
81
|
+
static initialize(): void;
|
|
82
|
+
}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DatabaseService = 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 database_1 = require("../models/database");
|
|
11
|
+
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
12
|
+
class DatabaseService extends CommonHttpService_1.CommonHttpService {
|
|
13
|
+
/**
|
|
14
|
+
* Creates a database in the space.
|
|
15
|
+
*
|
|
16
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
17
|
+
* Permission to view the corresponding space. Permission to create a database in
|
|
18
|
+
* the space.
|
|
19
|
+
*
|
|
20
|
+
* @returns Returned if the database was successfully created.
|
|
21
|
+
* @path {POST} /databases
|
|
22
|
+
* @scopes-current write:database:confluence
|
|
23
|
+
*/
|
|
24
|
+
createDatabase({ private: privateQuery, requestBody, }) {
|
|
25
|
+
return this.getClientInstance()
|
|
26
|
+
.request({
|
|
27
|
+
path: "/databases",
|
|
28
|
+
method: "POST",
|
|
29
|
+
query: {
|
|
30
|
+
private: privateQuery,
|
|
31
|
+
},
|
|
32
|
+
headers: {
|
|
33
|
+
"Content-Type": "application/json",
|
|
34
|
+
},
|
|
35
|
+
body: requestBody,
|
|
36
|
+
})
|
|
37
|
+
.then(this.getClientInstance().responseHandler({
|
|
38
|
+
200: {
|
|
39
|
+
"application/json": "json",
|
|
40
|
+
},
|
|
41
|
+
}))
|
|
42
|
+
.then(commonHttpClient.castResponse())
|
|
43
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("DatabaseService.createDatabase.response"))
|
|
44
|
+
.then(commonHttpClient.getBody);
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Delete a database by id.
|
|
48
|
+
*
|
|
49
|
+
* Deleting a database moves the database to the trash, where it can be restored
|
|
50
|
+
* later
|
|
51
|
+
*
|
|
52
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
53
|
+
* Permission to view the database and its corresponding space.
|
|
54
|
+
* Permission to delete databases in the space.
|
|
55
|
+
*
|
|
56
|
+
* @path {DELETE} /databases/{id}
|
|
57
|
+
* @scopes-current delete:database:confluence
|
|
58
|
+
*/
|
|
59
|
+
deleteDatabase({ id, }) {
|
|
60
|
+
return this.getClientInstance()
|
|
61
|
+
.request({
|
|
62
|
+
path: "/databases/{id}",
|
|
63
|
+
method: "DELETE",
|
|
64
|
+
pathParams: {
|
|
65
|
+
id,
|
|
66
|
+
},
|
|
67
|
+
})
|
|
68
|
+
.then(commonHttpClient.discardResult);
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Returns a specific database.
|
|
72
|
+
*
|
|
73
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
74
|
+
* Permission to view the database and its corresponding space.
|
|
75
|
+
*
|
|
76
|
+
* @returns Returned if the requested database is returned.
|
|
77
|
+
* @path {GET} /databases/{id}
|
|
78
|
+
* @scopes-current read:database:confluence
|
|
79
|
+
*/
|
|
80
|
+
getDatabaseById({ id, }) {
|
|
81
|
+
return this.getClientInstance()
|
|
82
|
+
.request({
|
|
83
|
+
path: "/databases/{id}",
|
|
84
|
+
method: "GET",
|
|
85
|
+
pathParams: {
|
|
86
|
+
id,
|
|
87
|
+
},
|
|
88
|
+
})
|
|
89
|
+
.then(this.getClientInstance().responseHandler({
|
|
90
|
+
200: {
|
|
91
|
+
"application/json": "json",
|
|
92
|
+
},
|
|
93
|
+
}))
|
|
94
|
+
.then(commonHttpClient.castResponse())
|
|
95
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("DatabaseService.getDatabaseById.response"))
|
|
96
|
+
.then(commonHttpClient.getBody);
|
|
97
|
+
}
|
|
98
|
+
static initialize() {
|
|
99
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("DatabaseService.createDatabase.response", zod_1.z
|
|
100
|
+
.object({
|
|
101
|
+
status: zod_1.z.literal(200),
|
|
102
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
103
|
+
body: zod_1.z.intersection(validationSchemaStorage_1.validationSchemaStorage.lazy("DatabaseSingle"), zod_1.z
|
|
104
|
+
.object({
|
|
105
|
+
_links: zod_1.z
|
|
106
|
+
.object({
|
|
107
|
+
base: zod_1.z.string().optional(),
|
|
108
|
+
})
|
|
109
|
+
.catchall(zod_1.z.unknown())
|
|
110
|
+
.optional(),
|
|
111
|
+
})
|
|
112
|
+
.catchall(zod_1.z.unknown())),
|
|
113
|
+
})
|
|
114
|
+
.describe("DatabaseService.createDatabase.response"));
|
|
115
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("DatabaseService.getDatabaseById.response", zod_1.z
|
|
116
|
+
.object({
|
|
117
|
+
status: zod_1.z.literal(200),
|
|
118
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
119
|
+
body: zod_1.z.intersection(validationSchemaStorage_1.validationSchemaStorage.lazy("DatabaseSingle"), zod_1.z
|
|
120
|
+
.object({
|
|
121
|
+
_links: zod_1.z
|
|
122
|
+
.object({
|
|
123
|
+
base: zod_1.z.string().optional(),
|
|
124
|
+
})
|
|
125
|
+
.catchall(zod_1.z.unknown())
|
|
126
|
+
.optional(),
|
|
127
|
+
})
|
|
128
|
+
.catchall(zod_1.z.unknown())),
|
|
129
|
+
})
|
|
130
|
+
.describe("DatabaseService.getDatabaseById.response"));
|
|
131
|
+
validationSchemaStorage_1.validationSchemaStorage.registerOnce([database_1.registerDatabaseValidationSchemas]);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
exports.DatabaseService = DatabaseService;
|
|
135
|
+
//# sourceMappingURL=DatabaseService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DatabaseService.js","sourceRoot":"","sources":["../../../../src/openapi/v2/services/DatabaseService.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
import { CommonHttpService } from "../core/CommonHttpService";
|
|
2
|
+
import { type Label, type MultiEntityLinks } from "../models/common";
|
|
3
|
+
export declare class LabelService extends CommonHttpService {
|
|
4
|
+
/**
|
|
5
|
+
* Returns the labels of specific attachment. The number of results is limited by
|
|
6
|
+
* the `limit` parameter and additional results (if available)
|
|
7
|
+
* will be available through the `next` URL present in the `Link` response header.
|
|
8
|
+
*
|
|
9
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
10
|
+
* Permission to view the parent content of the attachment and its corresponding
|
|
11
|
+
* space.
|
|
12
|
+
*
|
|
13
|
+
* @returns Returned if the requested labels are returned.
|
|
14
|
+
* @path {GET} /attachments/{id}/labels
|
|
15
|
+
* @scopes-current read:attachment:confluence
|
|
16
|
+
*/
|
|
17
|
+
getAttachmentLabels({ id, prefix, sort, cursor, limit, }: {
|
|
18
|
+
/** The ID of the attachment for which labels should be returned. */
|
|
19
|
+
id: number;
|
|
20
|
+
/** Filter the results to labels based on their prefix. */
|
|
21
|
+
prefix?: "my" | "team" | "global" | "system";
|
|
22
|
+
/** Used to sort the result by a particular field. */
|
|
23
|
+
sort?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Used for pagination, this opaque cursor will be returned in the `next` URL in
|
|
26
|
+
* the `Link` response header. Use the relative URL in the `Link` header to
|
|
27
|
+
* retrieve the `next` set of results.
|
|
28
|
+
*/
|
|
29
|
+
cursor?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Maximum number of labels per result to return. If more results exist, use the
|
|
32
|
+
* `Link` header to retrieve a relative URL that will return the next set of
|
|
33
|
+
* results.
|
|
34
|
+
*/
|
|
35
|
+
limit?: number;
|
|
36
|
+
}): Promise<{
|
|
37
|
+
results?: Label[];
|
|
38
|
+
_links?: MultiEntityLinks;
|
|
39
|
+
} & {
|
|
40
|
+
[key: string]: unknown;
|
|
41
|
+
}>;
|
|
42
|
+
/**
|
|
43
|
+
* Returns the labels of specific blog post. The number of results is limited by
|
|
44
|
+
* the `limit` parameter and additional results (if available)
|
|
45
|
+
* will be available through the `next` URL present in the `Link` response header.
|
|
46
|
+
*
|
|
47
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
48
|
+
* Permission to view the content of the blog post and its corresponding space.
|
|
49
|
+
*
|
|
50
|
+
* @returns Returned if the requested labels are returned.
|
|
51
|
+
* @path {GET} /blogposts/{id}/labels
|
|
52
|
+
* @scopes-current read:page:confluence
|
|
53
|
+
*/
|
|
54
|
+
getBlogPostLabels({ id, prefix, sort, cursor, limit, }: {
|
|
55
|
+
/** The ID of the blog post for which labels should be returned. */
|
|
56
|
+
id: number;
|
|
57
|
+
/** Filter the results to labels based on their prefix. */
|
|
58
|
+
prefix?: "my" | "team" | "global" | "system";
|
|
59
|
+
/** Used to sort the result by a particular field. */
|
|
60
|
+
sort?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Used for pagination, this opaque cursor will be returned in the `next` URL in
|
|
63
|
+
* the `Link` response header. Use the relative URL in the `Link` header to
|
|
64
|
+
* retrieve the `next` set of results.
|
|
65
|
+
*/
|
|
66
|
+
cursor?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Maximum number of labels per result to return. If more results exist, use the
|
|
69
|
+
* `Link` header to retrieve a relative URL that will return the next set of
|
|
70
|
+
* results.
|
|
71
|
+
*/
|
|
72
|
+
limit?: number;
|
|
73
|
+
}): Promise<{
|
|
74
|
+
results?: Label[];
|
|
75
|
+
_links?: MultiEntityLinks;
|
|
76
|
+
} & {
|
|
77
|
+
[key: string]: unknown;
|
|
78
|
+
}>;
|
|
79
|
+
/**
|
|
80
|
+
* Returns the labels for a specific piece of custom content. The number of
|
|
81
|
+
* results is limited by the `limit` parameter and additional results (if
|
|
82
|
+
* available)
|
|
83
|
+
* will be available through the `next` URL present in the `Link` response header.
|
|
84
|
+
*
|
|
85
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
86
|
+
* Permission to view the custom content and its corresponding space.
|
|
87
|
+
*
|
|
88
|
+
* @returns Returned if the requested labels are returned.
|
|
89
|
+
* @path {GET} /custom-content/{id}/labels
|
|
90
|
+
* @scopes-current read:custom-content:confluence
|
|
91
|
+
*/
|
|
92
|
+
getCustomContentLabels({ id, prefix, sort, cursor, limit, }: {
|
|
93
|
+
/** The ID of the custom content for which labels should be returned. */
|
|
94
|
+
id: number;
|
|
95
|
+
/** Filter the results to labels based on their prefix. */
|
|
96
|
+
prefix?: "my" | "team" | "global" | "system";
|
|
97
|
+
/** Used to sort the result by a particular field. */
|
|
98
|
+
sort?: string;
|
|
99
|
+
/**
|
|
100
|
+
* Used for pagination, this opaque cursor will be returned in the `next` URL in
|
|
101
|
+
* the `Link` response header. Use the relative URL in the `Link` header to
|
|
102
|
+
* retrieve the `next` set of results.
|
|
103
|
+
*/
|
|
104
|
+
cursor?: string;
|
|
105
|
+
/**
|
|
106
|
+
* Maximum number of labels per result to return. If more results exist, use the
|
|
107
|
+
* `Link` header to retrieve a relative URL that will return the next set of
|
|
108
|
+
* results.
|
|
109
|
+
*/
|
|
110
|
+
limit?: number;
|
|
111
|
+
}): Promise<{
|
|
112
|
+
results?: Label[];
|
|
113
|
+
_links?: MultiEntityLinks;
|
|
114
|
+
} & {
|
|
115
|
+
[key: string]: unknown;
|
|
116
|
+
}>;
|
|
117
|
+
/**
|
|
118
|
+
* Returns all labels. The number of results is limited by the `limit` parameter
|
|
119
|
+
* and additional results (if available)
|
|
120
|
+
* will be available through the `next` URL present in the `Link` response header.
|
|
121
|
+
*
|
|
122
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
123
|
+
* Permission to access the Confluence site ('Can use' global permission).
|
|
124
|
+
* Only labels that the user has permission to view will be returned.
|
|
125
|
+
*
|
|
126
|
+
* @returns Returned if the requested labels are returned.
|
|
127
|
+
* @path {GET} /labels
|
|
128
|
+
* @scopes-current read:label:confluence
|
|
129
|
+
*/
|
|
130
|
+
getLabels({ labelId, prefix, cursor, sort, limit, }: {
|
|
131
|
+
/** Filters on label ID. Multiple IDs can be specified as a comma-separated list. */
|
|
132
|
+
labelId?: number[];
|
|
133
|
+
/**
|
|
134
|
+
* Filters on label prefix. Multiple IDs can be specified as a comma-separated
|
|
135
|
+
* list.
|
|
136
|
+
*/
|
|
137
|
+
prefix?: string[];
|
|
138
|
+
/**
|
|
139
|
+
* Used for pagination, this opaque cursor will be returned in the `next` URL in
|
|
140
|
+
* the `Link` response header. Use the relative URL in the `Link` header to
|
|
141
|
+
* retrieve the `next` set of results.
|
|
142
|
+
*/
|
|
143
|
+
cursor?: string;
|
|
144
|
+
/** Used to sort the result by a particular field. */
|
|
145
|
+
sort?: string;
|
|
146
|
+
/**
|
|
147
|
+
* Maximum number of labels per result to return. If more results exist, use the
|
|
148
|
+
* `Link` header to retrieve a relative URL that will return the next set of
|
|
149
|
+
* results.
|
|
150
|
+
*/
|
|
151
|
+
limit?: number;
|
|
152
|
+
}): Promise<{
|
|
153
|
+
results?: Label[];
|
|
154
|
+
_links?: MultiEntityLinks;
|
|
155
|
+
} & {
|
|
156
|
+
[key: string]: unknown;
|
|
157
|
+
}>;
|
|
158
|
+
/**
|
|
159
|
+
* Returns the labels of specific page. The number of results is limited by the
|
|
160
|
+
* `limit` parameter and additional results (if available)
|
|
161
|
+
* will be available through the `next` URL present in the `Link` response header.
|
|
162
|
+
*
|
|
163
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
164
|
+
* Permission to view the content of the page and its corresponding space.
|
|
165
|
+
*
|
|
166
|
+
* @returns Returned if the requested labels are returned.
|
|
167
|
+
* @path {GET} /pages/{id}/labels
|
|
168
|
+
* @scopes-current read:page:confluence
|
|
169
|
+
*/
|
|
170
|
+
getPageLabels({ id, prefix, sort, cursor, limit, }: {
|
|
171
|
+
/** The ID of the page for which labels should be returned. */
|
|
172
|
+
id: number;
|
|
173
|
+
/** Filter the results to labels based on their prefix. */
|
|
174
|
+
prefix?: "my" | "team" | "global" | "system";
|
|
175
|
+
/** Used to sort the result by a particular field. */
|
|
176
|
+
sort?: string;
|
|
177
|
+
/**
|
|
178
|
+
* Used for pagination, this opaque cursor will be returned in the `next` URL in
|
|
179
|
+
* the `Link` response header. Use the relative URL in the `Link` header to
|
|
180
|
+
* retrieve the `next` set of results.
|
|
181
|
+
*/
|
|
182
|
+
cursor?: string;
|
|
183
|
+
/**
|
|
184
|
+
* Maximum number of labels per result to return. If more results exist, use the
|
|
185
|
+
* `Link` header to retrieve a relative URL that will return the next set of
|
|
186
|
+
* results.
|
|
187
|
+
*/
|
|
188
|
+
limit?: number;
|
|
189
|
+
}): Promise<{
|
|
190
|
+
results?: Label[];
|
|
191
|
+
_links?: MultiEntityLinks;
|
|
192
|
+
} & {
|
|
193
|
+
[key: string]: unknown;
|
|
194
|
+
}>;
|
|
195
|
+
/**
|
|
196
|
+
* Returns the labels of space content (pages, blogposts etc). The number of
|
|
197
|
+
* results is limited by the `limit` parameter and additional results (if
|
|
198
|
+
* available)
|
|
199
|
+
* will be available through the `next` URL present in the `Link` response header.
|
|
200
|
+
*
|
|
201
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
202
|
+
* Permission to view the space.
|
|
203
|
+
*
|
|
204
|
+
* @returns Returned if the requested labels are returned.
|
|
205
|
+
* @path {GET} /spaces/{id}/content/labels
|
|
206
|
+
* @scopes-current read:space:confluence
|
|
207
|
+
*/
|
|
208
|
+
getSpaceContentLabels({ id, prefix, sort, cursor, limit, }: {
|
|
209
|
+
/** The ID of the space for which labels should be returned. */
|
|
210
|
+
id: number;
|
|
211
|
+
/** Filter the results to labels based on their prefix. */
|
|
212
|
+
prefix?: "my" | "team";
|
|
213
|
+
/** Used to sort the result by a particular field. */
|
|
214
|
+
sort?: string;
|
|
215
|
+
/**
|
|
216
|
+
* Used for pagination, this opaque cursor will be returned in the `next` URL in
|
|
217
|
+
* the `Link` response header. Use the relative URL in the `Link` header to
|
|
218
|
+
* retrieve the `next` set of results.
|
|
219
|
+
*/
|
|
220
|
+
cursor?: string;
|
|
221
|
+
/**
|
|
222
|
+
* Maximum number of labels per result to return. If more results exist, use the
|
|
223
|
+
* `Link` header to retrieve a relative URL that will return the next set of
|
|
224
|
+
* results.
|
|
225
|
+
*/
|
|
226
|
+
limit?: number;
|
|
227
|
+
}): Promise<{
|
|
228
|
+
results?: Label[];
|
|
229
|
+
_links?: MultiEntityLinks;
|
|
230
|
+
} & {
|
|
231
|
+
[key: string]: unknown;
|
|
232
|
+
}>;
|
|
233
|
+
/**
|
|
234
|
+
* Returns the labels of specific space. The number of results is limited by the
|
|
235
|
+
* `limit` parameter and additional results (if available)
|
|
236
|
+
* will be available through the `next` URL present in the `Link` response header.
|
|
237
|
+
*
|
|
238
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
239
|
+
* Permission to view the space.
|
|
240
|
+
*
|
|
241
|
+
* @returns Returned if the requested labels are returned.
|
|
242
|
+
* @path {GET} /spaces/{id}/labels
|
|
243
|
+
* @scopes-current read:space:confluence
|
|
244
|
+
*/
|
|
245
|
+
getSpaceLabels({ id, prefix, sort, cursor, limit, }: {
|
|
246
|
+
/** The ID of the space for which labels should be returned. */
|
|
247
|
+
id: number;
|
|
248
|
+
/** Filter the results to labels based on their prefix. */
|
|
249
|
+
prefix?: "my" | "team";
|
|
250
|
+
/** Used to sort the result by a particular field. */
|
|
251
|
+
sort?: string;
|
|
252
|
+
/**
|
|
253
|
+
* Used for pagination, this opaque cursor will be returned in the `next` URL in
|
|
254
|
+
* the `Link` response header. Use the relative URL in the `Link` header to
|
|
255
|
+
* retrieve the `next` set of results.
|
|
256
|
+
*/
|
|
257
|
+
cursor?: string;
|
|
258
|
+
/**
|
|
259
|
+
* Maximum number of labels per result to return. If more results exist, use the
|
|
260
|
+
* `Link` header to retrieve a relative URL that will return the next set of
|
|
261
|
+
* results.
|
|
262
|
+
*/
|
|
263
|
+
limit?: number;
|
|
264
|
+
}): Promise<{
|
|
265
|
+
results?: Label[];
|
|
266
|
+
_links?: MultiEntityLinks;
|
|
267
|
+
} & {
|
|
268
|
+
[key: string]: unknown;
|
|
269
|
+
}>;
|
|
270
|
+
static initialize(): void;
|
|
271
|
+
}
|