/** * 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 { ContentRestriction, ContentRestrictionArray, ContentRestrictionUpdate, InlineResponse200 } from '../models'; export interface AddGroupToContentRestrictionRequest { id: string; operationKey: AddGroupToContentRestrictionOperationKeyEnum; groupName: string; } export interface AddRestrictionsRequest { id: string; ContentRestrictionUpdate: Array; expand?: Array; } export interface AddUserToContentRestrictionRequest { id: string; operationKey: string; key?: string; userName?: string; accountId?: string; } export interface DeleteRestrictionsRequest { id: string; expand?: Array; } export interface GetContentRestrictionStatusForGroupRequest { id: string; operationKey: GetContentRestrictionStatusForGroupOperationKeyEnum; groupName: string; } export interface GetContentRestrictionStatusForUserRequest { id: string; operationKey: string; key?: string; userName?: string; accountId?: string; } export interface GetRestrictionsRequest { id: string; expand?: Array; start?: number; limit?: number; } export interface GetRestrictionsByOperationRequest { id: string; expand?: Array; } export interface GetRestrictionsForOperationRequest { id: string; operationKey: GetRestrictionsForOperationOperationKeyEnum; expand?: Array; start?: number; limit?: number; } export interface RemoveGroupFromContentRestrictionRequest { id: string; operationKey: RemoveGroupFromContentRestrictionOperationKeyEnum; groupName: string; } export interface RemoveUserFromContentRestrictionRequest { id: string; operationKey: RemoveUserFromContentRestrictionOperationKeyEnum; key?: string; userName?: string; accountId?: string; } export interface UpdateRestrictionsRequest { id: string; ContentRestrictionUpdate: Array; expand?: Array; } /** * no description */ export declare class ContentIdRestrictionApi extends runtime.BaseAPI { /** * Adds a group to a content restriction. That is, grant read or update permission to the group for a piece of content. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content. * Add group to content restriction */ addGroupToContentRestrictionRaw(requestParameters: AddGroupToContentRestrictionRequest): Promise>; /** * Adds a group to a content restriction. That is, grant read or update permission to the group for a piece of content. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content. * Add group to content restriction */ addGroupToContentRestriction(requestParameters: AddGroupToContentRestrictionRequest): Promise; /** * Adds restrictions to a piece of content. Note, this does not change any existing restrictions on the content. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content. * Add restrictions */ addRestrictionsRaw(requestParameters: AddRestrictionsRequest): Promise>; /** * Adds restrictions to a piece of content. Note, this does not change any existing restrictions on the content. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content. * Add restrictions */ addRestrictions(requestParameters: AddRestrictionsRequest): Promise; /** * Adds a user to a content restriction. That is, grant read or update permission to the user for a piece of content. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content. * Add user to content restriction */ addUserToContentRestrictionRaw(requestParameters: AddUserToContentRestrictionRequest): Promise>; /** * Adds a user to a content restriction. That is, grant read or update permission to the user for a piece of content. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content. * Add user to content restriction */ addUserToContentRestriction(requestParameters: AddUserToContentRestrictionRequest): Promise; /** * Removes all restrictions (read and update) on a piece of content. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content. * Delete restrictions */ deleteRestrictionsRaw(requestParameters: DeleteRestrictionsRequest): Promise>; /** * Removes all restrictions (read and update) on a piece of content. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content. * Delete restrictions */ deleteRestrictions(requestParameters: DeleteRestrictionsRequest): Promise; /** * Returns whether the specified content restriction applies to a group. For example, if a page with `id=123` has a `read` restriction for the `admins` group, the following request will return `true`: `https://your-domain.atlassian.net/wiki/rest/api/content/123/restriction/byOperation/read/group/admins` Note that a response of `true` does not guarantee that the group can view the page, as it does not account for account-inherited restrictions, space permissions, or even product access. For more information, see [Confluence permissions](https://confluence.atlassian.com/x/_AozKw). **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content. * Get content restriction status for group */ getContentRestrictionStatusForGroupRaw(requestParameters: GetContentRestrictionStatusForGroupRequest): Promise>; /** * Returns whether the specified content restriction applies to a group. For example, if a page with `id=123` has a `read` restriction for the `admins` group, the following request will return `true`: `https://your-domain.atlassian.net/wiki/rest/api/content/123/restriction/byOperation/read/group/admins` Note that a response of `true` does not guarantee that the group can view the page, as it does not account for account-inherited restrictions, space permissions, or even product access. For more information, see [Confluence permissions](https://confluence.atlassian.com/x/_AozKw). **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content. * Get content restriction status for group */ getContentRestrictionStatusForGroup(requestParameters: GetContentRestrictionStatusForGroupRequest): Promise; /** * Returns whether the specified content restriction applies to a user. For example, if a page with `id=123` has a `read` restriction for a user with an account ID of `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`, the following request will return `true`: `https://your-domain.atlassian.net/wiki/rest/api/content/123/restriction/byOperation/read/user?accountId=384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192` Note that a response of `true` does not guarantee that the user can view the page, as it does not account for account-inherited restrictions, space permissions, or even product access. For more information, see [Confluence permissions](https://confluence.atlassian.com/x/_AozKw). **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content. * Get content restriction status for user */ getContentRestrictionStatusForUserRaw(requestParameters: GetContentRestrictionStatusForUserRequest): Promise>; /** * Returns whether the specified content restriction applies to a user. For example, if a page with `id=123` has a `read` restriction for a user with an account ID of `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`, the following request will return `true`: `https://your-domain.atlassian.net/wiki/rest/api/content/123/restriction/byOperation/read/user?accountId=384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192` Note that a response of `true` does not guarantee that the user can view the page, as it does not account for account-inherited restrictions, space permissions, or even product access. For more information, see [Confluence permissions](https://confluence.atlassian.com/x/_AozKw). **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content. * Get content restriction status for user */ getContentRestrictionStatusForUser(requestParameters: GetContentRestrictionStatusForUserRequest): Promise; /** * Returns the restrictions on a piece of content. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content. * Get restrictions */ getRestrictionsRaw(requestParameters: GetRestrictionsRequest): Promise>; /** * Returns the restrictions on a piece of content. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content. * Get restrictions */ getRestrictions(requestParameters: GetRestrictionsRequest): Promise; /** * Returns restrictions on a piece of content by operation. This method is similar to [Get restrictions](#api-content-id-restriction-get) except that the operations are properties of the return object, rather than items in a results array. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content. * Get restrictions by operation */ getRestrictionsByOperationRaw(requestParameters: GetRestrictionsByOperationRequest): Promise>; /** * Returns restrictions on a piece of content by operation. This method is similar to [Get restrictions](#api-content-id-restriction-get) except that the operations are properties of the return object, rather than items in a results array. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content. * Get restrictions by operation */ getRestrictionsByOperation(requestParameters: GetRestrictionsByOperationRequest): Promise; /** * Returns the restictions on a piece of content for a given operation (read or update). **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content. * Get restrictions for operation */ getRestrictionsForOperationRaw(requestParameters: GetRestrictionsForOperationRequest): Promise>; /** * Returns the restictions on a piece of content for a given operation (read or update). **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content. * Get restrictions for operation */ getRestrictionsForOperation(requestParameters: GetRestrictionsForOperationRequest): Promise; /** * Removes a group from a content restriction. That is, remove read or update permission for the group for a piece of content. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content. * Remove group from content restriction */ removeGroupFromContentRestrictionRaw(requestParameters: RemoveGroupFromContentRestrictionRequest): Promise>; /** * Removes a group from a content restriction. That is, remove read or update permission for the group for a piece of content. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content. * Remove group from content restriction */ removeGroupFromContentRestriction(requestParameters: RemoveGroupFromContentRestrictionRequest): Promise; /** * Removes a group from a content restriction. That is, remove read or update permission for the group for a piece of content. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content. * Remove user from content restriction */ removeUserFromContentRestrictionRaw(requestParameters: RemoveUserFromContentRestrictionRequest): Promise>; /** * Removes a group from a content restriction. That is, remove read or update permission for the group for a piece of content. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content. * Remove user from content restriction */ removeUserFromContentRestriction(requestParameters: RemoveUserFromContentRestrictionRequest): Promise; /** * Updates restrictions for a piece of content. This removes the existing restrictions and replaces them with the restrictions in the request. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content. * Update restrictions */ updateRestrictionsRaw(requestParameters: UpdateRestrictionsRequest): Promise>; /** * Updates restrictions for a piece of content. This removes the existing restrictions and replaces them with the restrictions in the request. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content. * Update restrictions */ updateRestrictions(requestParameters: UpdateRestrictionsRequest): Promise; } /** * @export * @enum {string} */ export declare enum AddGroupToContentRestrictionOperationKeyEnum { Read = "read", Update = "update" } /** * @export * @enum {string} */ export declare enum AddRestrictionsExpandEnum { RestrictionsUser = "restrictions.user", RestrictionsGroup = "restrictions.group", Content = "content" } /** * @export * @enum {string} */ export declare enum DeleteRestrictionsExpandEnum { RestrictionsUser = "restrictions.user", RestrictionsGroup = "restrictions.group", Content = "content" } /** * @export * @enum {string} */ export declare enum GetContentRestrictionStatusForGroupOperationKeyEnum { Read = "read", Update = "update" } /** * @export * @enum {string} */ export declare enum GetRestrictionsExpandEnum { RestrictionsUser = "restrictions.user", RestrictionsGroup = "restrictions.group", Content = "content" } /** * @export * @enum {string} */ export declare enum GetRestrictionsByOperationExpandEnum { RestrictionsUser = "restrictions.user", RestrictionsGroup = "restrictions.group", Content = "content" } /** * @export * @enum {string} */ export declare enum GetRestrictionsForOperationOperationKeyEnum { Read = "read", Update = "update" } /** * @export * @enum {string} */ export declare enum GetRestrictionsForOperationExpandEnum { RestrictionsUser = "restrictions.user", RestrictionsGroup = "restrictions.group", Content = "content" } /** * @export * @enum {string} */ export declare enum RemoveGroupFromContentRestrictionOperationKeyEnum { Read = "read", Update = "update" } /** * @export * @enum {string} */ export declare enum RemoveUserFromContentRestrictionOperationKeyEnum { Read = "read", Update = "update" } /** * @export * @enum {string} */ export declare enum UpdateRestrictionsExpandEnum { RestrictionsUser = "restrictions.user", RestrictionsGroup = "restrictions.group", Content = "content" }