/** * The Confluence Cloud REST API * This document describes the REST API and resources provided by Confluence. The REST APIs are for developers who want to integrate Confluence into their application and for administrators who want to script interactions with the Confluence server.Confluence\'s REST APIs provide access to resources (data entities) via URI paths. To use a REST API, your application will make an HTTP request and parse the response. The response format is JSON. Your methods will be the standard HTTP methods like GET, PUT, POST and DELETE. Because the REST API is based on open standards, you can use any web development language to access the API. * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import * as runtime from '../runtime'; import { ContentArray, ContentChildren } from '../models'; export interface DescendantsOfTypeRequest { id: string; type: DescendantsOfTypeTypeEnum; expand?: Array; start?: number; limit?: number; } export interface GetContentDescendantsRequest { id: string; expand?: Array; } /** * no description */ export declare class ContentIdDescendantApi extends runtime.BaseAPI { /** * Returns all descendants of a given type, for a piece of content. This is similar to [Get content children by type](#api-content-id-child-type-get), except that this method returns child pages at all levels, rather than just the direct child pages. A piece of content has different types of descendants, depending on its type: - `page`: descendant is `page`, `comment`, `attachment` - `blogpost`: descendant is `comment`, `attachment` - `attachment`: descendant is `comment` - `comment`: descendant is `attachment` Custom content types that are provided by apps can also be returned. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: \'View\' permission for the space, and permission to view the content if it is a page. * Get content descendants by type */ descendantsOfTypeRaw(requestParameters: DescendantsOfTypeRequest): Promise>; /** * Returns all descendants of a given type, for a piece of content. This is similar to [Get content children by type](#api-content-id-child-type-get), except that this method returns child pages at all levels, rather than just the direct child pages. A piece of content has different types of descendants, depending on its type: - `page`: descendant is `page`, `comment`, `attachment` - `blogpost`: descendant is `comment`, `attachment` - `attachment`: descendant is `comment` - `comment`: descendant is `attachment` Custom content types that are provided by apps can also be returned. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: \'View\' permission for the space, and permission to view the content if it is a page. * Get content descendants by type */ descendantsOfType(requestParameters: DescendantsOfTypeRequest): Promise; /** * Returns a map of the descendants of a piece of content. This is similar to [Get content children](#api-content-id-child-get), except that this method returns child pages at all levels, rather than just the direct child pages. A piece of content has different types of descendants, depending on its type: - `page`: descendant is `page`, `comment`, `attachment` - `blogpost`: descendant is `comment`, `attachment` - `attachment`: descendant is `comment` - `comment`: descendant is `attachment` The map will always include all descendant types that are valid for the content. However, if the content has no instances of a descendant type, the map will contain an empty array for that descendant type. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: \'View\' permission for the space, and permission to view the content if it is a page. * Get content descendants */ getContentDescendantsRaw(requestParameters: GetContentDescendantsRequest): Promise>; /** * Returns a map of the descendants of a piece of content. This is similar to [Get content children](#api-content-id-child-get), except that this method returns child pages at all levels, rather than just the direct child pages. A piece of content has different types of descendants, depending on its type: - `page`: descendant is `page`, `comment`, `attachment` - `blogpost`: descendant is `comment`, `attachment` - `attachment`: descendant is `comment` - `comment`: descendant is `attachment` The map will always include all descendant types that are valid for the content. However, if the content has no instances of a descendant type, the map will contain an empty array for that descendant type. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: \'View\' permission for the space, and permission to view the content if it is a page. * Get content descendants */ getContentDescendants(requestParameters: GetContentDescendantsRequest): Promise; } /** * @export * @enum {string} */ export declare enum DescendantsOfTypeTypeEnum { Page = "page", Comment = "comment", Attachment = "attachment" } /** * @export * @enum {string} */ export declare enum DescendantsOfTypeExpandEnum { ChildTypesAll = "childTypes.all", ChildTypesAttachment = "childTypes.attachment", ChildTypesComment = "childTypes.comment", ChildTypesPage = "childTypes.page", Container = "container", MetadataCurrentuser = "metadata.currentuser", MetadataProperties = "metadata.properties", MetadataLabels = "metadata.labels", MetadataFrontend = "metadata.frontend", Operations = "operations", ChildrenPage = "children.page", ChildrenAttachment = "children.attachment", ChildrenComment = "children.comment", RestrictionsReadRestrictionsUser = "restrictions.read.restrictions.user", RestrictionsReadRestrictionsGroup = "restrictions.read.restrictions.group", RestrictionsUpdateRestrictionsUser = "restrictions.update.restrictions.user", RestrictionsUpdateRestrictionsGroup = "restrictions.update.restrictions.group", History = "history", HistoryLastUpdated = "history.lastUpdated", HistoryPreviousVersion = "history.previousVersion", HistoryContributors = "history.contributors", HistoryNextVersion = "history.nextVersion", Ancestors = "ancestors", Body = "body", Version = "version", DescendantsPage = "descendants.page", DescendantsAttachment = "descendants.attachment", DescendantsComment = "descendants.comment", Space = "space" } /** * @export * @enum {string} */ export declare enum GetContentDescendantsExpandEnum { Attachment = "attachment", Comment = "comment", Page = "page" }