@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,423 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CustomContentService = 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 customContent_1 = require("../models/customContent");
|
|
12
|
+
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
13
|
+
class CustomContentService extends CommonHttpService_1.CommonHttpService {
|
|
14
|
+
/**
|
|
15
|
+
* Creates a new custom content in the given space, page, blogpost or other custom
|
|
16
|
+
* content.
|
|
17
|
+
*
|
|
18
|
+
* Only one of `spaceId`, `pageId`, `blogPostId`, or `customContentId` is required
|
|
19
|
+
* in the request body.
|
|
20
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
21
|
+
* Permission to view the content of the page or blogpost and its corresponding
|
|
22
|
+
* space. Permission to create custom content in the space.
|
|
23
|
+
*
|
|
24
|
+
* @returns Returned if the requested custom content is created successfully.
|
|
25
|
+
* @path {POST} /custom-content
|
|
26
|
+
* @scopes-current write:custom-content:confluence
|
|
27
|
+
*/
|
|
28
|
+
createCustomContent({ requestBody, }) {
|
|
29
|
+
return this.getClientInstance()
|
|
30
|
+
.request({
|
|
31
|
+
path: "/custom-content",
|
|
32
|
+
method: "POST",
|
|
33
|
+
headers: {
|
|
34
|
+
"Content-Type": "application/json",
|
|
35
|
+
},
|
|
36
|
+
body: requestBody,
|
|
37
|
+
})
|
|
38
|
+
.then(this.getClientInstance().responseHandler({
|
|
39
|
+
201: {
|
|
40
|
+
"application/json": "json",
|
|
41
|
+
},
|
|
42
|
+
}))
|
|
43
|
+
.then(commonHttpClient.castResponse())
|
|
44
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("CustomContentService.createCustomContent.response"))
|
|
45
|
+
.then(commonHttpClient.getBody);
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Delete a custom content by id.
|
|
49
|
+
*
|
|
50
|
+
* Deleting a custom content will either move it to the trash or permanently
|
|
51
|
+
* delete it (purge it), depending on the apiSupport.
|
|
52
|
+
* To permanently delete a **trashed** custom content, the endpoint must be called
|
|
53
|
+
* with the following param `purge=true`.
|
|
54
|
+
*
|
|
55
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
56
|
+
* Permission to view the content of the page or blogpost and its corresponding
|
|
57
|
+
* space.
|
|
58
|
+
* Permission to delete custom content in the space.
|
|
59
|
+
* Permission to administer the space (if attempting to purge).
|
|
60
|
+
*
|
|
61
|
+
* @path {DELETE} /custom-content/{id}
|
|
62
|
+
* @scopes-current delete:custom-content:confluence
|
|
63
|
+
*/
|
|
64
|
+
deleteCustomContent({ id, purge, }) {
|
|
65
|
+
return this.getClientInstance()
|
|
66
|
+
.request({
|
|
67
|
+
path: "/custom-content/{id}",
|
|
68
|
+
method: "DELETE",
|
|
69
|
+
pathParams: {
|
|
70
|
+
id,
|
|
71
|
+
},
|
|
72
|
+
query: {
|
|
73
|
+
purge,
|
|
74
|
+
},
|
|
75
|
+
})
|
|
76
|
+
.then(commonHttpClient.discardResult);
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Returns a specific piece of custom content.
|
|
80
|
+
*
|
|
81
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
82
|
+
* Permission to view the custom content, the container of the custom content, and
|
|
83
|
+
* the corresponding space (if different from the container).
|
|
84
|
+
*
|
|
85
|
+
* @returns Returned if the requested custom content is returned.
|
|
86
|
+
* @path {GET} /custom-content/{id}
|
|
87
|
+
* @scopes-current read:custom-content:confluence
|
|
88
|
+
*/
|
|
89
|
+
getCustomContentById({ id, bodyFormat, version, includeLabels, includeProperties, includeOperations, includeVersions, includeVersion, }) {
|
|
90
|
+
return this.getClientInstance()
|
|
91
|
+
.request({
|
|
92
|
+
path: "/custom-content/{id}",
|
|
93
|
+
method: "GET",
|
|
94
|
+
pathParams: {
|
|
95
|
+
id,
|
|
96
|
+
},
|
|
97
|
+
query: {
|
|
98
|
+
"body-format": bodyFormat,
|
|
99
|
+
version,
|
|
100
|
+
"include-labels": includeLabels,
|
|
101
|
+
"include-properties": includeProperties,
|
|
102
|
+
"include-operations": includeOperations,
|
|
103
|
+
"include-versions": includeVersions,
|
|
104
|
+
"include-version": includeVersion,
|
|
105
|
+
},
|
|
106
|
+
})
|
|
107
|
+
.then(this.getClientInstance().responseHandler({
|
|
108
|
+
200: {
|
|
109
|
+
"application/json": "json",
|
|
110
|
+
},
|
|
111
|
+
}))
|
|
112
|
+
.then(commonHttpClient.castResponse())
|
|
113
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("CustomContentService.getCustomContentById.response"))
|
|
114
|
+
.then(commonHttpClient.getBody);
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Returns all custom content for a given type. The number of results is limited
|
|
118
|
+
* by the `limit` parameter and additional results (if available)
|
|
119
|
+
* will be available through the `next` URL present in the `Link` response header.
|
|
120
|
+
*
|
|
121
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
122
|
+
* Permission to view the custom content, the container of the custom content, and
|
|
123
|
+
* the corresponding space (if different from the container).
|
|
124
|
+
*
|
|
125
|
+
* @returns Returned if the requested custom content is returned.
|
|
126
|
+
* @path {GET} /custom-content
|
|
127
|
+
* @scopes-current read:custom-content:confluence
|
|
128
|
+
*/
|
|
129
|
+
getCustomContentByType({ type, id, spaceId, sort, cursor, limit, bodyFormat, }) {
|
|
130
|
+
return this.getClientInstance()
|
|
131
|
+
.request({
|
|
132
|
+
path: "/custom-content",
|
|
133
|
+
method: "GET",
|
|
134
|
+
query: {
|
|
135
|
+
type,
|
|
136
|
+
id,
|
|
137
|
+
"space-id": spaceId,
|
|
138
|
+
sort,
|
|
139
|
+
cursor,
|
|
140
|
+
limit,
|
|
141
|
+
"body-format": bodyFormat,
|
|
142
|
+
},
|
|
143
|
+
})
|
|
144
|
+
.then(this.getClientInstance().responseHandler({
|
|
145
|
+
200: {
|
|
146
|
+
"application/json": "json",
|
|
147
|
+
},
|
|
148
|
+
}))
|
|
149
|
+
.then(commonHttpClient.castResponse())
|
|
150
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("CustomContentService.getCustomContentByType.response"))
|
|
151
|
+
.then(commonHttpClient.getBody);
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Returns all custom content for a given type within a given blogpost. The number
|
|
155
|
+
* of results is limited by the `limit` parameter and additional results (if
|
|
156
|
+
* available)
|
|
157
|
+
* will be available through the `next` URL present in the `Link` response header.
|
|
158
|
+
*
|
|
159
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
160
|
+
* Permission to view the custom content, the container of the custom content
|
|
161
|
+
* (blog post), and the corresponding space.
|
|
162
|
+
*
|
|
163
|
+
* @returns Returned if the requested custom content is returned.
|
|
164
|
+
* @path {GET} /blogposts/{id}/custom-content
|
|
165
|
+
* @scopes-current read:custom-content:confluence
|
|
166
|
+
*/
|
|
167
|
+
getCustomContentByTypeInBlogPost({ id, type, sort, cursor, limit, bodyFormat, }) {
|
|
168
|
+
return this.getClientInstance()
|
|
169
|
+
.request({
|
|
170
|
+
path: "/blogposts/{id}/custom-content",
|
|
171
|
+
method: "GET",
|
|
172
|
+
pathParams: {
|
|
173
|
+
id,
|
|
174
|
+
},
|
|
175
|
+
query: {
|
|
176
|
+
type,
|
|
177
|
+
sort,
|
|
178
|
+
cursor,
|
|
179
|
+
limit,
|
|
180
|
+
"body-format": bodyFormat,
|
|
181
|
+
},
|
|
182
|
+
})
|
|
183
|
+
.then(this.getClientInstance().responseHandler({
|
|
184
|
+
200: {
|
|
185
|
+
"application/json": "json",
|
|
186
|
+
},
|
|
187
|
+
}))
|
|
188
|
+
.then(commonHttpClient.castResponse())
|
|
189
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("CustomContentService.getCustomContentByTypeInBlogPost.response"))
|
|
190
|
+
.then(commonHttpClient.getBody);
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Returns all custom content for a given type within a given page. The number of
|
|
194
|
+
* results is limited by the `limit` parameter and additional results (if
|
|
195
|
+
* available)
|
|
196
|
+
* will be available through the `next` URL present in the `Link` response header.
|
|
197
|
+
*
|
|
198
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
199
|
+
* Permission to view the custom content, the container of the custom content
|
|
200
|
+
* (page), and the corresponding space.
|
|
201
|
+
*
|
|
202
|
+
* @returns Returned if the requested custom content is returned.
|
|
203
|
+
* @path {GET} /pages/{id}/custom-content
|
|
204
|
+
* @scopes-current read:custom-content:confluence
|
|
205
|
+
*/
|
|
206
|
+
getCustomContentByTypeInPage({ id, type, sort, cursor, limit, bodyFormat, }) {
|
|
207
|
+
return this.getClientInstance()
|
|
208
|
+
.request({
|
|
209
|
+
path: "/pages/{id}/custom-content",
|
|
210
|
+
method: "GET",
|
|
211
|
+
pathParams: {
|
|
212
|
+
id,
|
|
213
|
+
},
|
|
214
|
+
query: {
|
|
215
|
+
type,
|
|
216
|
+
sort,
|
|
217
|
+
cursor,
|
|
218
|
+
limit,
|
|
219
|
+
"body-format": bodyFormat,
|
|
220
|
+
},
|
|
221
|
+
})
|
|
222
|
+
.then(this.getClientInstance().responseHandler({
|
|
223
|
+
200: {
|
|
224
|
+
"application/json": "json",
|
|
225
|
+
},
|
|
226
|
+
}))
|
|
227
|
+
.then(commonHttpClient.castResponse())
|
|
228
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("CustomContentService.getCustomContentByTypeInPage.response"))
|
|
229
|
+
.then(commonHttpClient.getBody);
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* Returns all custom content for a given type within a given space. The number of
|
|
233
|
+
* results is limited by the `limit` parameter and additional results (if
|
|
234
|
+
* available)
|
|
235
|
+
* will be available through the `next` URL present in the `Link` response header.
|
|
236
|
+
*
|
|
237
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
238
|
+
* Permission to view the custom content and the corresponding space.
|
|
239
|
+
*
|
|
240
|
+
* @returns Returned if the requested custom content is returned.
|
|
241
|
+
* @path {GET} /spaces/{id}/custom-content
|
|
242
|
+
* @scopes-current read:custom-content:confluence
|
|
243
|
+
*/
|
|
244
|
+
getCustomContentByTypeInSpace({ id, type, cursor, limit, bodyFormat, }) {
|
|
245
|
+
return this.getClientInstance()
|
|
246
|
+
.request({
|
|
247
|
+
path: "/spaces/{id}/custom-content",
|
|
248
|
+
method: "GET",
|
|
249
|
+
pathParams: {
|
|
250
|
+
id,
|
|
251
|
+
},
|
|
252
|
+
query: {
|
|
253
|
+
type,
|
|
254
|
+
cursor,
|
|
255
|
+
limit,
|
|
256
|
+
"body-format": bodyFormat,
|
|
257
|
+
},
|
|
258
|
+
})
|
|
259
|
+
.then(this.getClientInstance().responseHandler({
|
|
260
|
+
200: {
|
|
261
|
+
"application/json": "json",
|
|
262
|
+
},
|
|
263
|
+
}))
|
|
264
|
+
.then(commonHttpClient.castResponse())
|
|
265
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("CustomContentService.getCustomContentByTypeInSpace.response"))
|
|
266
|
+
.then(commonHttpClient.getBody);
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* Update a custom content by id.
|
|
270
|
+
*
|
|
271
|
+
* `spaceId` is always required and maximum one of `pageId`, `blogPostId`, or
|
|
272
|
+
* `customContentId` is allowed in the request body.
|
|
273
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
274
|
+
* Permission to view the content of the page or blogpost and its corresponding
|
|
275
|
+
* space. Permission to update custom content in the space.
|
|
276
|
+
*
|
|
277
|
+
* @returns Returned if the requested custom content is updated successfully.
|
|
278
|
+
* @path {PUT} /custom-content/{id}
|
|
279
|
+
* @scopes-current write:custom-content:confluence
|
|
280
|
+
*/
|
|
281
|
+
updateCustomContent({ id, requestBody, }) {
|
|
282
|
+
return this.getClientInstance()
|
|
283
|
+
.request({
|
|
284
|
+
path: "/custom-content/{id}",
|
|
285
|
+
method: "PUT",
|
|
286
|
+
pathParams: {
|
|
287
|
+
id,
|
|
288
|
+
},
|
|
289
|
+
headers: {
|
|
290
|
+
"Content-Type": "application/json",
|
|
291
|
+
},
|
|
292
|
+
body: requestBody,
|
|
293
|
+
})
|
|
294
|
+
.then(this.getClientInstance().responseHandler({
|
|
295
|
+
200: {
|
|
296
|
+
"application/json": "json",
|
|
297
|
+
},
|
|
298
|
+
}))
|
|
299
|
+
.then(commonHttpClient.castResponse())
|
|
300
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("CustomContentService.updateCustomContent.response"))
|
|
301
|
+
.then(commonHttpClient.getBody);
|
|
302
|
+
}
|
|
303
|
+
static initialize() {
|
|
304
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("CustomContentService.getCustomContentByTypeInBlogPost.response", zod_1.z
|
|
305
|
+
.object({
|
|
306
|
+
status: zod_1.z.literal(200),
|
|
307
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
308
|
+
body: zod_1.z
|
|
309
|
+
.object({
|
|
310
|
+
results: zod_1.z
|
|
311
|
+
.array(validationSchemaStorage_1.validationSchemaStorage.lazy("CustomContentBulk"))
|
|
312
|
+
.optional(),
|
|
313
|
+
_links: validationSchemaStorage_1.validationSchemaStorage
|
|
314
|
+
.lazy("MultiEntityLinks")
|
|
315
|
+
.optional(),
|
|
316
|
+
})
|
|
317
|
+
.catchall(zod_1.z.unknown()),
|
|
318
|
+
})
|
|
319
|
+
.describe("CustomContentService.getCustomContentByTypeInBlogPost.response"));
|
|
320
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("CustomContentService.getCustomContentByType.response", zod_1.z
|
|
321
|
+
.object({
|
|
322
|
+
status: zod_1.z.literal(200),
|
|
323
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
324
|
+
body: zod_1.z
|
|
325
|
+
.object({
|
|
326
|
+
results: zod_1.z
|
|
327
|
+
.array(validationSchemaStorage_1.validationSchemaStorage.lazy("CustomContentBulk"))
|
|
328
|
+
.optional(),
|
|
329
|
+
_links: validationSchemaStorage_1.validationSchemaStorage
|
|
330
|
+
.lazy("MultiEntityLinks")
|
|
331
|
+
.optional(),
|
|
332
|
+
})
|
|
333
|
+
.catchall(zod_1.z.unknown()),
|
|
334
|
+
})
|
|
335
|
+
.describe("CustomContentService.getCustomContentByType.response"));
|
|
336
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("CustomContentService.createCustomContent.response", zod_1.z
|
|
337
|
+
.object({
|
|
338
|
+
status: zod_1.z.literal(201),
|
|
339
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
340
|
+
body: zod_1.z.intersection(validationSchemaStorage_1.validationSchemaStorage.lazy("CustomContentSingle"), zod_1.z
|
|
341
|
+
.object({
|
|
342
|
+
_links: zod_1.z
|
|
343
|
+
.object({
|
|
344
|
+
base: zod_1.z.string().optional(),
|
|
345
|
+
})
|
|
346
|
+
.catchall(zod_1.z.unknown())
|
|
347
|
+
.optional(),
|
|
348
|
+
})
|
|
349
|
+
.catchall(zod_1.z.unknown())),
|
|
350
|
+
})
|
|
351
|
+
.describe("CustomContentService.createCustomContent.response"));
|
|
352
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("CustomContentService.getCustomContentById.response", zod_1.z
|
|
353
|
+
.object({
|
|
354
|
+
status: zod_1.z.literal(200),
|
|
355
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
356
|
+
body: zod_1.z.intersection(validationSchemaStorage_1.validationSchemaStorage.lazy("CustomContentSingle"), zod_1.z
|
|
357
|
+
.object({
|
|
358
|
+
_links: zod_1.z
|
|
359
|
+
.object({
|
|
360
|
+
base: zod_1.z.string().optional(),
|
|
361
|
+
})
|
|
362
|
+
.catchall(zod_1.z.unknown())
|
|
363
|
+
.optional(),
|
|
364
|
+
})
|
|
365
|
+
.catchall(zod_1.z.unknown())),
|
|
366
|
+
})
|
|
367
|
+
.describe("CustomContentService.getCustomContentById.response"));
|
|
368
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("CustomContentService.updateCustomContent.response", zod_1.z
|
|
369
|
+
.object({
|
|
370
|
+
status: zod_1.z.literal(200),
|
|
371
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
372
|
+
body: zod_1.z.intersection(validationSchemaStorage_1.validationSchemaStorage.lazy("CustomContentSingle"), zod_1.z
|
|
373
|
+
.object({
|
|
374
|
+
_links: zod_1.z
|
|
375
|
+
.object({
|
|
376
|
+
base: zod_1.z.string().optional(),
|
|
377
|
+
})
|
|
378
|
+
.catchall(zod_1.z.unknown())
|
|
379
|
+
.optional(),
|
|
380
|
+
})
|
|
381
|
+
.catchall(zod_1.z.unknown())),
|
|
382
|
+
})
|
|
383
|
+
.describe("CustomContentService.updateCustomContent.response"));
|
|
384
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("CustomContentService.getCustomContentByTypeInPage.response", zod_1.z
|
|
385
|
+
.object({
|
|
386
|
+
status: zod_1.z.literal(200),
|
|
387
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
388
|
+
body: zod_1.z
|
|
389
|
+
.object({
|
|
390
|
+
results: zod_1.z
|
|
391
|
+
.array(validationSchemaStorage_1.validationSchemaStorage.lazy("CustomContentBulk"))
|
|
392
|
+
.optional(),
|
|
393
|
+
_links: validationSchemaStorage_1.validationSchemaStorage
|
|
394
|
+
.lazy("MultiEntityLinks")
|
|
395
|
+
.optional(),
|
|
396
|
+
})
|
|
397
|
+
.catchall(zod_1.z.unknown()),
|
|
398
|
+
})
|
|
399
|
+
.describe("CustomContentService.getCustomContentByTypeInPage.response"));
|
|
400
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("CustomContentService.getCustomContentByTypeInSpace.response", zod_1.z
|
|
401
|
+
.object({
|
|
402
|
+
status: zod_1.z.literal(200),
|
|
403
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
404
|
+
body: zod_1.z
|
|
405
|
+
.object({
|
|
406
|
+
results: zod_1.z
|
|
407
|
+
.array(validationSchemaStorage_1.validationSchemaStorage.lazy("CustomContentBulk"))
|
|
408
|
+
.optional(),
|
|
409
|
+
_links: validationSchemaStorage_1.validationSchemaStorage
|
|
410
|
+
.lazy("MultiEntityLinks")
|
|
411
|
+
.optional(),
|
|
412
|
+
})
|
|
413
|
+
.catchall(zod_1.z.unknown()),
|
|
414
|
+
})
|
|
415
|
+
.describe("CustomContentService.getCustomContentByTypeInSpace.response"));
|
|
416
|
+
validationSchemaStorage_1.validationSchemaStorage.registerOnce([
|
|
417
|
+
customContent_1.registerCustomContentValidationSchemas,
|
|
418
|
+
common_1.registerCommonValidationSchemas,
|
|
419
|
+
]);
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
exports.CustomContentService = CustomContentService;
|
|
423
|
+
//# sourceMappingURL=CustomContentService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CustomContentService.js","sourceRoot":"","sources":["../../../../src/openapi/v2/services/CustomContentService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,6CAI0B;AAC1B,2DAQiC;AACjC,wEAAqE;AACrE,MAAa,oBAAqB,SAAQ,qCAAiB;IACzD;;;;;;;;;;;;;OAaG;IACH,mBAAmB,CAAC,EAClB,WAAW,GAqBZ;QAaC,OAAO,IAAI,CAAC,iBAAiB,EAAE;aAC5B,OAAO,CAAC;YACP,IAAI,EAAE,iBAAiB;YACvB,MAAM,EAAE,MAAM;YACd,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;aACnC;YACD,IAAI,EAAE,WAAW;SAClB,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,EAazB,CACL;aACA,IAAI,CACH,iDAAuB,CAAC,SAAS,CAC/B,mDAAmD,CACpD,CACF;aACA,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACpC,CAAC;IACD;;;;;;;;;;;;;;;;OAgBG;IACH,mBAAmB,CAAC,EAClB,EAAE,EACF,KAAK,GAMN;QACC,OAAO,IAAI,CAAC,iBAAiB,EAAE;aAC5B,OAAO,CAAC;YACP,IAAI,EAAE,sBAAsB;YAC5B,MAAM,EAAE,QAAQ;YAChB,UAAU,EAAE;gBACV,EAAE;aACH;YACD,KAAK,EAAE;gBACL,KAAK;aACN;SACF,CAAC;aACD,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC;IAC1C,CAAC;IACD;;;;;;;;;;OAUG;IACH,oBAAoB,CAAC,EACnB,EAAE,EACF,UAAU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AQ,CAAC,4DAA4D,CAAC,CAC1E,CAAC;QACF,iDAAuB,CAAC,kBAAkB,CACxC,6DAA6D,EAC7D,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,mBAAmB,CAAC,CAAC;qBACxD,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,CACP,6DAA6D,CAC9D,CACJ,CAAC;QACF,iDAAuB,CAAC,YAAY,CAAC;YACnC,sDAAsC;YACtC,wCAA+B;SAChC,CAAC,CAAC;IACL,CAAC;CACF;AA36BD,oDA26BC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { CommonHttpService } from "../core/CommonHttpService";
|
|
2
|
+
import { type MultiEntityLinks, type SpaceSortOrder } from "../models/common";
|
|
3
|
+
import { type DataPolicyMetadata, type DataPolicySpace } from "../models/dataPolicies";
|
|
4
|
+
export declare class DataPoliciesService extends CommonHttpService {
|
|
5
|
+
/**
|
|
6
|
+
* Returns data policy metadata for the workspace.
|
|
7
|
+
*
|
|
8
|
+
* **[Permissions](#permissions) required:**
|
|
9
|
+
* Only apps can make this request.
|
|
10
|
+
* Permission to access the Confluence site ('Can use' global permission).
|
|
11
|
+
*
|
|
12
|
+
* @returns Returned if the request is successful.
|
|
13
|
+
* @path {GET} /data-policies/metadata
|
|
14
|
+
* @scopes-current read:configuration:confluence
|
|
15
|
+
*/
|
|
16
|
+
getDataPolicyMetadata(): Promise<DataPolicyMetadata>;
|
|
17
|
+
/**
|
|
18
|
+
* Returns all spaces. The results will be sorted by id ascending. The number of
|
|
19
|
+
* results is limited by the `limit` parameter and
|
|
20
|
+
* additional results (if available) will be available through the `next` URL
|
|
21
|
+
* present in the `Link` response header.
|
|
22
|
+
*
|
|
23
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
24
|
+
* Only apps can make this request.
|
|
25
|
+
* Permission to access the Confluence site ('Can use' global permission).
|
|
26
|
+
* Only spaces that the app has permission to view will be returned.
|
|
27
|
+
*
|
|
28
|
+
* @returns Returned if the requested spaces are returned.
|
|
29
|
+
* @path {GET} /data-policies/spaces
|
|
30
|
+
* @scopes-current read:space:confluence
|
|
31
|
+
*/
|
|
32
|
+
getDataPolicySpaces({ ids, keys, sort, cursor, limit, }: {
|
|
33
|
+
/**
|
|
34
|
+
* Filter the results to spaces based on their IDs. Multiple IDs can be specified
|
|
35
|
+
* as a comma-separated list.
|
|
36
|
+
*/
|
|
37
|
+
ids?: number[];
|
|
38
|
+
/**
|
|
39
|
+
* Filter the results to spaces based on their keys. Multiple keys can be
|
|
40
|
+
* specified as a comma-separated list.
|
|
41
|
+
*/
|
|
42
|
+
keys?: string[];
|
|
43
|
+
/** Used to sort the result by a particular field. */
|
|
44
|
+
sort?: SpaceSortOrder;
|
|
45
|
+
/**
|
|
46
|
+
* Used for pagination, this opaque cursor will be returned in the `next` URL in
|
|
47
|
+
* the `Link` response header. Use the relative URL in the `Link` header to
|
|
48
|
+
* retrieve the `next` set of results.
|
|
49
|
+
*/
|
|
50
|
+
cursor?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Maximum number of spaces per result to return. If more results exist, use the
|
|
53
|
+
* `Link` response header to retrieve a relative URL that will return the next set
|
|
54
|
+
* of results.
|
|
55
|
+
*/
|
|
56
|
+
limit?: number;
|
|
57
|
+
}): Promise<{
|
|
58
|
+
results?: DataPolicySpace[];
|
|
59
|
+
_links?: MultiEntityLinks;
|
|
60
|
+
} & {
|
|
61
|
+
[key: string]: unknown;
|
|
62
|
+
}>;
|
|
63
|
+
static initialize(): void;
|
|
64
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DataPoliciesService = 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 dataPolicies_1 = require("../models/dataPolicies");
|
|
12
|
+
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
13
|
+
class DataPoliciesService extends CommonHttpService_1.CommonHttpService {
|
|
14
|
+
/**
|
|
15
|
+
* Returns data policy metadata for the workspace.
|
|
16
|
+
*
|
|
17
|
+
* **[Permissions](#permissions) required:**
|
|
18
|
+
* Only apps can make this request.
|
|
19
|
+
* Permission to access the Confluence site ('Can use' global permission).
|
|
20
|
+
*
|
|
21
|
+
* @returns Returned if the request is successful.
|
|
22
|
+
* @path {GET} /data-policies/metadata
|
|
23
|
+
* @scopes-current read:configuration:confluence
|
|
24
|
+
*/
|
|
25
|
+
getDataPolicyMetadata() {
|
|
26
|
+
return this.getClientInstance()
|
|
27
|
+
.request({
|
|
28
|
+
path: "/data-policies/metadata",
|
|
29
|
+
method: "GET",
|
|
30
|
+
})
|
|
31
|
+
.then(this.getClientInstance().responseHandler({
|
|
32
|
+
200: {
|
|
33
|
+
"application/json": "json",
|
|
34
|
+
},
|
|
35
|
+
}))
|
|
36
|
+
.then(commonHttpClient.castResponse())
|
|
37
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("DataPoliciesService.getDataPolicyMetadata.response"))
|
|
38
|
+
.then(commonHttpClient.getBody);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Returns all spaces. The results will be sorted by id ascending. The number of
|
|
42
|
+
* results is limited by the `limit` parameter and
|
|
43
|
+
* additional results (if available) will be available through the `next` URL
|
|
44
|
+
* present in the `Link` response header.
|
|
45
|
+
*
|
|
46
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
47
|
+
* Only apps can make this request.
|
|
48
|
+
* Permission to access the Confluence site ('Can use' global permission).
|
|
49
|
+
* Only spaces that the app has permission to view will be returned.
|
|
50
|
+
*
|
|
51
|
+
* @returns Returned if the requested spaces are returned.
|
|
52
|
+
* @path {GET} /data-policies/spaces
|
|
53
|
+
* @scopes-current read:space:confluence
|
|
54
|
+
*/
|
|
55
|
+
getDataPolicySpaces({ ids, keys, sort, cursor, limit, }) {
|
|
56
|
+
return this.getClientInstance()
|
|
57
|
+
.request({
|
|
58
|
+
path: "/data-policies/spaces",
|
|
59
|
+
method: "GET",
|
|
60
|
+
query: {
|
|
61
|
+
ids,
|
|
62
|
+
keys,
|
|
63
|
+
sort,
|
|
64
|
+
cursor,
|
|
65
|
+
limit,
|
|
66
|
+
},
|
|
67
|
+
})
|
|
68
|
+
.then(this.getClientInstance().responseHandler({
|
|
69
|
+
200: {
|
|
70
|
+
"application/json": "json",
|
|
71
|
+
},
|
|
72
|
+
}))
|
|
73
|
+
.then(commonHttpClient.castResponse())
|
|
74
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("DataPoliciesService.getDataPolicySpaces.response"))
|
|
75
|
+
.then(commonHttpClient.getBody);
|
|
76
|
+
}
|
|
77
|
+
static initialize() {
|
|
78
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("DataPoliciesService.getDataPolicyMetadata.response", zod_1.z
|
|
79
|
+
.object({
|
|
80
|
+
status: zod_1.z.literal(200),
|
|
81
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
82
|
+
body: validationSchemaStorage_1.validationSchemaStorage.lazy("DataPolicyMetadata"),
|
|
83
|
+
})
|
|
84
|
+
.describe("DataPoliciesService.getDataPolicyMetadata.response"));
|
|
85
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("DataPoliciesService.getDataPolicySpaces.response", zod_1.z
|
|
86
|
+
.object({
|
|
87
|
+
status: zod_1.z.literal(200),
|
|
88
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
89
|
+
body: zod_1.z
|
|
90
|
+
.object({
|
|
91
|
+
results: zod_1.z
|
|
92
|
+
.array(validationSchemaStorage_1.validationSchemaStorage.lazy("DataPolicySpace"))
|
|
93
|
+
.optional(),
|
|
94
|
+
_links: validationSchemaStorage_1.validationSchemaStorage
|
|
95
|
+
.lazy("MultiEntityLinks")
|
|
96
|
+
.optional(),
|
|
97
|
+
})
|
|
98
|
+
.catchall(zod_1.z.unknown()),
|
|
99
|
+
})
|
|
100
|
+
.describe("DataPoliciesService.getDataPolicySpaces.response"));
|
|
101
|
+
validationSchemaStorage_1.validationSchemaStorage.registerOnce([
|
|
102
|
+
dataPolicies_1.registerDataPoliciesValidationSchemas,
|
|
103
|
+
common_1.registerCommonValidationSchemas,
|
|
104
|
+
]);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
exports.DataPoliciesService = DataPoliciesService;
|
|
108
|
+
//# sourceMappingURL=DataPoliciesService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataPoliciesService.js","sourceRoot":"","sources":["../../../../src/openapi/v2/services/DataPoliciesService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,6CAI0B;AAC1B,yDAIgC;AAChC,wEAAqE;AACrE,MAAa,mBAAoB,SAAQ,qCAAiB;IACxD;;;;;;;;;;OAUG;IACH,qBAAqB;QACnB,OAAO,IAAI,CAAC,iBAAiB,EAAE;aAC5B,OAAO,CAAC;YACP,IAAI,EAAE,yBAAyB;Y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