/** * 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 { Content, ContentBlueprintDraft } from '../models'; export interface PublishLegacyDraftRequest { draftId: string; ContentBlueprintDraft: ContentBlueprintDraft; status?: string; expand?: Array; } export interface PublishSharedDraftRequest { draftId: string; ContentBlueprintDraft: ContentBlueprintDraft; status?: string; expand?: Array; } /** * no description */ export declare class ContentBlueprintApi extends runtime.BaseAPI { /** * Publishes a legacy draft of a page created from a blueprint. Legacy drafts will eventually be removed in favor of shared drafts. For now, this method works the same as [Publish shared draft](#api-content-blueprint-instance-draftId-put). By default, the following objects are expanded: `body.storage`, `history`, `space`, `version`, `ancestors`. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the draft and \'Add\' permission for the space that the content will be created in. * Publish legacy draft */ publishLegacyDraftRaw(requestParameters: PublishLegacyDraftRequest): Promise>; /** * Publishes a legacy draft of a page created from a blueprint. Legacy drafts will eventually be removed in favor of shared drafts. For now, this method works the same as [Publish shared draft](#api-content-blueprint-instance-draftId-put). By default, the following objects are expanded: `body.storage`, `history`, `space`, `version`, `ancestors`. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the draft and \'Add\' permission for the space that the content will be created in. * Publish legacy draft */ publishLegacyDraft(requestParameters: PublishLegacyDraftRequest): Promise; /** * Publishes a shared draft of a page created from a blueprint. By default, the following objects are expanded: `body.storage`, `history`, `space`, `version`, `ancestors`. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the draft and \'Add\' permission for the space that the content will be created in. * Publish shared draft */ publishSharedDraftRaw(requestParameters: PublishSharedDraftRequest): Promise>; /** * Publishes a shared draft of a page created from a blueprint. By default, the following objects are expanded: `body.storage`, `history`, `space`, `version`, `ancestors`. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the draft and \'Add\' permission for the space that the content will be created in. * Publish shared draft */ publishSharedDraft(requestParameters: PublishSharedDraftRequest): Promise; } /** * @export * @enum {string} */ export declare enum PublishLegacyDraftExpandEnum { 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 PublishSharedDraftExpandEnum { 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" }