import type { ContentWatch } from '../models/ContentWatch.js'; import type { SpaceWatch } from '../models/SpaceWatch.js'; import type { CancelablePromise } from '../core/CancelablePromise.js'; export declare class UserWatchService { /** * Get information about content watcher * Get information about whether a user is watching a specified content. User is optional. If not specified, currently logged-in user will be used. Otherwise, it can be specified by either user key or username. When a user is specified and is different from the logged-in user, the logged-in user needs to be a Confluence administrator. * * Example request URI(s): * * `http://example.com/confluence/rest/api/user/watch/content/131213` * `http://example.com/confluence/rest/api/user/watch/content/131213?username=jblogs` * `http://example.com/confluence/rest/api/user/watch/content/131213?key=ff8080815a58e24c015a58e263710000` * @param contentId id of the content. * @param key userkey of the user to check for watching state. * @param username username of the user to check for watching state. * @returns any Returns a JSON representation containing the watching state. * @throws ApiError */ static isWatchingContent(contentId: string, key?: string, username?: string): CancelablePromise; /** * Add content watcher * Create a new watcher for the given user and content id. User is optional. If not specified, currently logged-in user will be used. Otherwise, it can be specified by either user key or username. When a user is specified and is different from the logged-in user, the logged-in user needs to be a Confluence administrator. * * Example request URI(s): * * `http://example.com/confluence/rest/api/user/watch/content/131213` * `http://example.com/confluence/rest/api/user/watch/content/131213?username=jblogs` * `http://example.com/confluence/rest/api/user/watch/content/131213?key=ff8080815a58e24c015a58e263710000` * @param contentId id of the content. * @param key userkey of the user to check for watching state. * @param username username of the user to check for watching state. * @returns ContentWatch Returned if the watcher was successfully created. * @throws ApiError */ static addContentWatcher(contentId: string, key?: string, username?: string): CancelablePromise; /** * Remove content watcher * Delete an existing watcher for the given user and content id. User is optional. If not specified, currently logged-in user will be used. Otherwise, it can be specified by either user key or username. When a user is specified and is different from the logged-in user, the logged-in user needs to be a Confluence administrator. * * Example request URI(s): * * `http://example.com/confluence/rest/api/user/watch/content/131213` * `http://example.com/confluence/rest/api/user/watch/content/131213?username=jblogs` * `http://example.com/confluence/rest/api/user/watch/content/131213?key=ff8080815a58e24c015a58e263710000` * @param contentId id of the content. * @param key userkey of the user to check for watching state. * @param username username of the user to check for watching state. * @returns void * @throws ApiError */ static removeContentWatcher(contentId: string, key?: string, username?: string): CancelablePromise; /** * Get information about space watcher * Get information about whether a user is watching a specified space. User is optional. If not specified, currently logged-in user will be used. Otherwise, it can be specified by either user key or username. When a user is specified and is different from the logged-in user, the logged-in user needs to be a Confluence administrator. * * Example request URI(s): * * `http://example.com/confluence/rest/api/user/watch/space/SPACEKEY` * `http://example.com/confluence/rest/api/user/watch/space/SPACEKEY?username=jblogs` * `http://example.com/confluence/rest/api/user/watch/space/SPACEKEY?key=ff8080815a58e24c015a58e263710000` * `http://example.com/confluence/rest/api/user/watch/space/SPACEKEY?contentType=blostpost` * @param spaceKey * @param contentType an optional content type to check for watching state. * @param key userkey of the user to check for watching state. * @param username username of the user to check for watching state. * @returns any Returns a JSON representation containing the watching state. * @throws ApiError */ static isWatchingSpace(spaceKey: string, contentType?: string, key?: string, username?: string): CancelablePromise; /** * Add space watcher * Create a new watcher for the given user and space key. User is optional. If not specified, currently logged-in user will be used. Otherwise, it can be specified by either user key or username. When a user is specified and is different from the logged-in user, the logged-in user needs to be a Confluence administrator. * * Example request URI(s): * * `http://example.com/confluence/rest/api/user/watch/space/SPACEKEY` * `http://example.com/confluence/rest/api/user/watch/space/SPACEKEY?username=jblogs` * `http://example.com/confluence/rest/api/user/watch/space/SPACEKEY?key=ff8080815a58e24c015a58e263710000` * `http://example.com/confluence/rest/api/user/watch/space/SPACEKEY?contentType=blogpost` * @param spaceKey * @param contentType the optional content type to delete the watcher for. * @param key userKey of the user to create the new watcher for. * @param username userName of the user to create the new watcher for. * @returns SpaceWatch Returned if the watcher was successfully created * @throws ApiError */ static addSpaceWatch(spaceKey: string, contentType?: string, key?: string, username?: string): CancelablePromise; /** * Remove space watcher * Delete an existing watcher for the given user and space key. User is optional. If not specified, currently logged-in user will be used. Otherwise, it can be specified by either user key or username. When a user is specified and is different from the logged-in user, the logged-in user needs to be a Confluence administrator. * * Example request URI(s): * * `http://example.com/confluence/rest/api/user/watch/space/SPACEKEY` * `http://example.com/confluence/rest/api/user/watch/space/SPACEKEY?username=jblogs` * `http://example.com/confluence/rest/api/user/watch/space/SPACEKEY?key=ff8080815a58e24c015a58e263710000` * `http://example.com/confluence/rest/api/user/watch/space/SPACEKEY?contentType=blogpost` * @param spaceKey * @param contentType the optional content type to delete the watcher for. * @param key userkey of the user to delete the watcher for. * @param username username of the user to delete the watcher for. * @returns void * @throws ApiError */ static removeSpaceWatch(spaceKey: string, contentType?: string, key?: string, username?: string): CancelablePromise; } //# sourceMappingURL=UserWatchService.d.ts.map