/** * 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 { Version, VersionArray, VersionRestore } from '../models'; export interface DeleteContentVersionRequest { id: string; versionNumber: number; } export interface GetContentVersionRequest { id: string; versionNumber: number; expand?: Array; } export interface GetContentVersionsRequest { id: string; start?: number; limit?: number; expand?: Array; } export interface RestoreContentVersionRequest { id: string; VersionRestore: VersionRestore; expand?: Array; } /** * no description */ export declare class ContentIdVersionApi extends runtime.BaseAPI { /** * Delete a historical version. This does not delete the changes made to the content in that version, rather the changes for the deleted version are rolled up into the next version. Note, you cannot delete the current version. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the content. * Delete content version */ deleteContentVersionRaw(requestParameters: DeleteContentVersionRequest): Promise>; /** * Delete a historical version. This does not delete the changes made to the content in that version, rather the changes for the deleted version are rolled up into the next version. Note, you cannot delete the current version. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the content. * Delete content version */ deleteContentVersion(requestParameters: DeleteContentVersionRequest): Promise; /** * Returns a version for a piece of content. **[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 content version */ getContentVersionRaw(requestParameters: GetContentVersionRequest): Promise>; /** * Returns a version for a piece of content. **[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 content version */ getContentVersion(requestParameters: GetContentVersionRequest): Promise; /** * Returns the versions for a piece of content in descending order. **[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 content versions */ getContentVersionsRaw(requestParameters: GetContentVersionsRequest): Promise>; /** * Returns the versions for a piece of content in descending order. **[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 content versions */ getContentVersions(requestParameters: GetContentVersionsRequest): Promise; /** * Restores a historical version to be the latest version. That is, a new version is created with the content of the historical version. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the content. * Restore content version */ restoreContentVersionRaw(requestParameters: RestoreContentVersionRequest): Promise>; /** * Restores a historical version to be the latest version. That is, a new version is created with the content of the historical version. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the content. * Restore content version */ restoreContentVersion(requestParameters: RestoreContentVersionRequest): Promise; } /** * @export * @enum {string} */ export declare enum GetContentVersionExpandEnum { Collaborators = "collaborators", Content = "content" } /** * @export * @enum {string} */ export declare enum GetContentVersionsExpandEnum { Collaborators = "collaborators", Content = "content" } /** * @export * @enum {string} */ export declare enum RestoreContentVersionExpandEnum { Collaborators = "collaborators", Content = "content" }