/** * 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 GetAttachmentsRequest { id: string; expand?: Array; start?: number; limit?: number; filename?: string; mediaType?: string; } export interface GetContentChildrenRequest { id: string; expand?: Array; parentVersion?: number; } export interface GetContentChildrenByTypeRequest { id: string; type: GetContentChildrenByTypeTypeEnum; expand?: Array; parentVersion?: number; start?: number; limit?: number; } export interface GetContentCommentsRequest { id: string; expand?: Array; parentVersion?: number; start?: number; limit?: number; location?: GetContentCommentsLocationEnum; depth?: string; } /** * no description */ export declare class ContentIdChildApi extends runtime.BaseAPI { /** * Returns the attachments for a piece of content. By default, the following objects are expanded: `metadata`. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content. If the content is a blog post, \'View\' permission for the space is required. * Get attachments */ getAttachmentsRaw(requestParameters: GetAttachmentsRequest): Promise>; /** * Returns the attachments for a piece of content. By default, the following objects are expanded: `metadata`. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content. If the content is a blog post, \'View\' permission for the space is required. * Get attachments */ getAttachments(requestParameters: GetAttachmentsRequest): Promise; /** * Returns a map of the direct children of a piece of content. A piece of content has different types of child content, depending on its type. These are the default parent-child content type relationships: - `page`: child content is `page`, `comment`, `attachment` - `blogpost`: child content is `comment`, `attachment` - `attachment`: child content is `comment` - `comment`: child content is `attachment` Apps can override these default relationships. Apps can also introduce new content types that create new parent-child content relationships. Note, the map will always include all child content types that are valid for the content. However, if the content has no instances of a child content type, the map will contain an empty array for that child content 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 children */ getContentChildrenRaw(requestParameters: GetContentChildrenRequest): Promise>; /** * Returns a map of the direct children of a piece of content. A piece of content has different types of child content, depending on its type. These are the default parent-child content type relationships: - `page`: child content is `page`, `comment`, `attachment` - `blogpost`: child content is `comment`, `attachment` - `attachment`: child content is `comment` - `comment`: child content is `attachment` Apps can override these default relationships. Apps can also introduce new content types that create new parent-child content relationships. Note, the map will always include all child content types that are valid for the content. However, if the content has no instances of a child content type, the map will contain an empty array for that child content 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 children */ getContentChildren(requestParameters: GetContentChildrenRequest): Promise; /** * Returns all children of a given type, for a piece of content. A piece of content has different types of child content, depending on its type: - `page`: child content is `page`, `comment`, `attachment` - `blogpost`: child content is `comment`, `attachment` - `attachment`: child content is `comment` - `comment`: child content is `attachment` Custom content types that are provided by apps can also be returned. Note, this method only returns direct children. To return children at all levels, use [Get descendants by type](#api-content-id-descendant-type-get). **[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 children by type */ getContentChildrenByTypeRaw(requestParameters: GetContentChildrenByTypeRequest): Promise>; /** * Returns all children of a given type, for a piece of content. A piece of content has different types of child content, depending on its type: - `page`: child content is `page`, `comment`, `attachment` - `blogpost`: child content is `comment`, `attachment` - `attachment`: child content is `comment` - `comment`: child content is `attachment` Custom content types that are provided by apps can also be returned. Note, this method only returns direct children. To return children at all levels, use [Get descendants by type](#api-content-id-descendant-type-get). **[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 children by type */ getContentChildrenByType(requestParameters: GetContentChildrenByTypeRequest): Promise; /** * Returns the comments on a piece of content. **[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 comments */ getContentCommentsRaw(requestParameters: GetContentCommentsRequest): Promise>; /** * Returns the comments on a piece of content. **[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 comments */ getContentComments(requestParameters: GetContentCommentsRequest): Promise; } /** * @export * @enum {string} */ export declare enum GetAttachmentsExpandEnum { 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 GetContentChildrenExpandEnum { Attachment = "attachment", Comment = "comment", Page = "page" } /** * @export * @enum {string} */ export declare enum GetContentChildrenByTypeTypeEnum { Page = "page", Comment = "comment", Attachment = "attachment" } /** * @export * @enum {string} */ export declare enum GetContentChildrenByTypeExpandEnum { 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 GetContentCommentsExpandEnum { 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 GetContentCommentsLocationEnum { }