/** * 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, Space, SpaceArray, SpaceCreate, SpacePrivateCreate, SpaceSettings, SpaceSettingsUpdate, SpaceUpdate } from '../models'; export interface CreatePrivateSpaceRequest { SpacePrivateCreate: SpacePrivateCreate; } export interface CreateSpaceRequest { SpaceCreate: SpaceCreate; } export interface DeleteSpaceRequest { spaceKey: string; } export interface GetContentByTypeForSpaceRequest { spaceKey: string; type: GetContentByTypeForSpaceTypeEnum; depth?: GetContentByTypeForSpaceDepthEnum; expand?: Array; start?: number; limit?: number; } export interface GetContentForSpaceRequest { spaceKey: string; depth?: GetContentForSpaceDepthEnum; expand?: Array; start?: number; limit?: number; } export interface GetSpaceRequest { spaceKey: string; expand?: Array; } export interface GetSpaceSettingsRequest { spaceKey: string; } export interface GetSpacesRequest { spaceKey?: Array; type?: GetSpacesTypeEnum; status?: GetSpacesStatusEnum; label?: Array; favourite?: boolean; favouriteUserKey?: string; expand?: Array; start?: number; limit?: number; } export interface UpdateSpaceRequest { spaceKey: string; SpaceUpdate: SpaceUpdate; } export interface UpdateSpaceSettingsRequest { spaceKey: string; SpaceSettingsUpdate: SpaceSettingsUpdate; } /** * no description */ export declare class SpaceApi extends runtime.BaseAPI { /** * Creates a new space that is only visible to the creator. This method is the same as the [Create space](#api-space-post) method with permissions set to the current user only. Note, currently you cannot set space labels when creating a space. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: \'Create Space(s)\' global permission. * Create private space */ createPrivateSpaceRaw(requestParameters: CreatePrivateSpaceRequest): Promise>; /** * Creates a new space that is only visible to the creator. This method is the same as the [Create space](#api-space-post) method with permissions set to the current user only. Note, currently you cannot set space labels when creating a space. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: \'Create Space(s)\' global permission. * Create private space */ createPrivateSpace(requestParameters: CreatePrivateSpaceRequest): Promise; /** * Creates a new space. Note, currently you cannot set space labels when creating a space. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: \'Create Space(s)\' global permission. * Create space */ createSpaceRaw(requestParameters: CreateSpaceRequest): Promise>; /** * Creates a new space. Note, currently you cannot set space labels when creating a space. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: \'Create Space(s)\' global permission. * Create space */ createSpace(requestParameters: CreateSpaceRequest): Promise; /** * Deletes a space. Note, the space will be deleted in a long running task. Therefore, the space may not be deleted yet when this method has returned. Clients should poll the status link that is returned in the response until the task completes. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: \'Admin\' permission for the space. * Delete space */ deleteSpaceRaw(requestParameters: DeleteSpaceRequest): Promise>; /** * Deletes a space. Note, the space will be deleted in a long running task. Therefore, the space may not be deleted yet when this method has returned. Clients should poll the status link that is returned in the response until the task completes. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: \'Admin\' permission for the space. * Delete space */ deleteSpace(requestParameters: DeleteSpaceRequest): Promise; /** * Returns all content of a given type, in a space. The returned content is ordered by content ID in ascending order. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: \'View\' permission for the space. Note, the returned list will only contain content that the current user has permission to view. * Get content by type for space */ getContentByTypeForSpaceRaw(requestParameters: GetContentByTypeForSpaceRequest): Promise>; /** * Returns all content of a given type, in a space. The returned content is ordered by content ID in ascending order. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: \'View\' permission for the space. Note, the returned list will only contain content that the current user has permission to view. * Get content by type for space */ getContentByTypeForSpace(requestParameters: GetContentByTypeForSpaceRequest): Promise; /** * Returns all content in a space. The returned content is grouped by type (pages then blogposts), then ordered by content ID in ascending order. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: \'View\' permission for the space. Note, the returned list will only contain content that the current user has permission to view. * Get content for space */ getContentForSpaceRaw(requestParameters: GetContentForSpaceRequest): Promise>; /** * Returns all content in a space. The returned content is grouped by type (pages then blogposts), then ordered by content ID in ascending order. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: \'View\' permission for the space. Note, the returned list will only contain content that the current user has permission to view. * Get content for space */ getContentForSpace(requestParameters: GetContentForSpaceRequest): Promise; /** * Returns a space. This includes information like the name, description, and permissions, but not the content in the space. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: \'View\' permission for the space. * Get space */ getSpaceRaw(requestParameters: GetSpaceRequest): Promise>; /** * Returns a space. This includes information like the name, description, and permissions, but not the content in the space. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: \'View\' permission for the space. * Get space */ getSpace(requestParameters: GetSpaceRequest): Promise; /** * Returns the settings of a space. Currently only the `routeOverrideEnabled` setting can be returned. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: \'View\' permission for the space. * Get space settings */ getSpaceSettingsRaw(requestParameters: GetSpaceSettingsRequest): Promise>; /** * Returns the settings of a space. Currently only the `routeOverrideEnabled` setting can be returned. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: \'View\' permission for the space. * Get space settings */ getSpaceSettings(requestParameters: GetSpaceSettingsRequest): Promise; /** * Returns all spaces. The returned spaces are ordered alphabetically in ascending order by space key. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site (\'Can use\' global permission). Note, the returned list will only contain spaces that the current user has permission to view. * Get spaces */ getSpacesRaw(requestParameters: GetSpacesRequest): Promise>; /** * Returns all spaces. The returned spaces are ordered alphabetically in ascending order by space key. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site (\'Can use\' global permission). Note, the returned list will only contain spaces that the current user has permission to view. * Get spaces */ getSpaces(requestParameters: GetSpacesRequest): Promise; /** * Updates the name, description, or homepage of a space. - For security reasons, permissions cannot be updated via the API and must be changed via the user interface instead. - Currently you cannot set space labels when updating a space. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: \'Admin\' permission for the space. * Update space */ updateSpaceRaw(requestParameters: UpdateSpaceRequest): Promise>; /** * Updates the name, description, or homepage of a space. - For security reasons, permissions cannot be updated via the API and must be changed via the user interface instead. - Currently you cannot set space labels when updating a space. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: \'Admin\' permission for the space. * Update space */ updateSpace(requestParameters: UpdateSpaceRequest): Promise; /** * Updates the settings for a space. Currently only the `routeOverrideEnabled` setting can be updated. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: \'Admin\' permission for the space. * Update space settings */ updateSpaceSettingsRaw(requestParameters: UpdateSpaceSettingsRequest): Promise>; /** * Updates the settings for a space. Currently only the `routeOverrideEnabled` setting can be updated. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: \'Admin\' permission for the space. * Update space settings */ updateSpaceSettings(requestParameters: UpdateSpaceSettingsRequest): Promise; } /** * @export * @enum {string} */ export declare enum GetContentByTypeForSpaceTypeEnum { Page = "page", Blogpost = "blogpost" } /** * @export * @enum {string} */ export declare enum GetContentByTypeForSpaceDepthEnum { All = "all", Root = "root" } /** * @export * @enum {string} */ export declare enum GetContentByTypeForSpaceExpandEnum { 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 GetContentForSpaceDepthEnum { All = "all", Root = "root" } /** * @export * @enum {string} */ export declare enum GetContentForSpaceExpandEnum { 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 GetSpaceExpandEnum { Settings = "settings", MetadataLabels = "metadata.labels", Operations = "operations", LookAndFeel = "lookAndFeel", Permissions = "permissions", Icon = "icon", DescriptionPlain = "description.plain", DescriptionView = "description.view", Theme = "theme", Homepage = "homepage" } /** * @export * @enum {string} */ export declare enum GetSpacesTypeEnum { Global = "global", Personal = "personal" } /** * @export * @enum {string} */ export declare enum GetSpacesStatusEnum { Current = "current", Archived = "archived" } /** * @export * @enum {string} */ export declare enum GetSpacesExpandEnum { Settings = "settings", MetadataLabels = "metadata.labels", Operations = "operations", LookAndFeel = "lookAndFeel", Permissions = "permissions", Icon = "icon", DescriptionPlain = "description.plain", DescriptionView = "description.view", Theme = "theme", Homepage = "homepage" }