/** * 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 { AuditRecord, AuditRecordArray, AuditRecordCreate, RetentionPeriod } from '../models'; export interface CreateAuditRecordRequest { AuditRecordCreate: AuditRecordCreate; } export interface ExportAuditRecordsRequest { startDate?: string; endDate?: string; searchString?: string; format?: ExportAuditRecordsFormatEnum; } export interface GetAuditRecordsRequest { startDate?: string; endDate?: string; searchString?: string; start?: number; limit?: number; } export interface GetAuditRecordsForTimePeriodRequest { number?: number; units?: GetAuditRecordsForTimePeriodUnitsEnum; searchString?: string; start?: number; limit?: number; } export interface SetRetentionPeriodRequest { RetentionPeriod: RetentionPeriod; } /** * no description */ export declare class AuditApi extends runtime.BaseAPI { /** * Creates a record in the audit log. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: \'Confluence Administrator\' global permission. * Create audit record */ createAuditRecordRaw(requestParameters: CreateAuditRecordRequest): Promise>; /** * Creates a record in the audit log. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: \'Confluence Administrator\' global permission. * Create audit record */ createAuditRecord(requestParameters: CreateAuditRecordRequest): Promise; /** * Exports audit records as a CSV file or ZIP file. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: \'Confluence Administrator\' global permission. * Export audit records */ exportAuditRecordsRaw(requestParameters: ExportAuditRecordsRequest): Promise>; /** * Exports audit records as a CSV file or ZIP file. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: \'Confluence Administrator\' global permission. * Export audit records */ exportAuditRecords(requestParameters: ExportAuditRecordsRequest): Promise; /** * Returns all records in the audit log, optionally for a certain date range. This contains information about events like space exports, group membership changes, app installations, etc. For more information, see [Audit log](https://confluence.atlassian.com/confcloud/audit-log-802164269.html) in the Confluence administrator\'s guide. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: \'Confluence Administrator\' global permission. * Get audit records */ getAuditRecordsRaw(requestParameters: GetAuditRecordsRequest): Promise>; /** * Returns all records in the audit log, optionally for a certain date range. This contains information about events like space exports, group membership changes, app installations, etc. For more information, see [Audit log](https://confluence.atlassian.com/confcloud/audit-log-802164269.html) in the Confluence administrator\'s guide. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: \'Confluence Administrator\' global permission. * Get audit records */ getAuditRecords(requestParameters: GetAuditRecordsRequest): Promise; /** * Returns records from the audit log, for a time period back from the current date. For example, you can use this method to get the last 3 months of records. This contains information about events like space exports, group membership changes, app installations, etc. For more information, see [Audit log](https://confluence.atlassian.com/confcloud/audit-log-802164269.html) in the Confluence administrator\'s guide. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: \'Confluence Administrator\' global permission. * Get audit records for time period */ getAuditRecordsForTimePeriodRaw(requestParameters: GetAuditRecordsForTimePeriodRequest): Promise>; /** * Returns records from the audit log, for a time period back from the current date. For example, you can use this method to get the last 3 months of records. This contains information about events like space exports, group membership changes, app installations, etc. For more information, see [Audit log](https://confluence.atlassian.com/confcloud/audit-log-802164269.html) in the Confluence administrator\'s guide. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: \'Confluence Administrator\' global permission. * Get audit records for time period */ getAuditRecordsForTimePeriod(requestParameters: GetAuditRecordsForTimePeriodRequest): Promise; /** * Returns the retention period for records in the audit log. The retention period is how long an audit record is kept for, from creation date until it is deleted. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: \'Confluence Administrator\' global permission. * Get retention period */ getRetentionPeriodRaw(): Promise>; /** * Returns the retention period for records in the audit log. The retention period is how long an audit record is kept for, from creation date until it is deleted. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: \'Confluence Administrator\' global permission. * Get retention period */ getRetentionPeriod(): Promise; /** * Sets the retention period for records in the audit log. The retention period can be set to a maximum of 20 years. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: \'Confluence Administrator\' global permission. * Set retention period */ setRetentionPeriodRaw(requestParameters: SetRetentionPeriodRequest): Promise>; /** * Sets the retention period for records in the audit log. The retention period can be set to a maximum of 20 years. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: \'Confluence Administrator\' global permission. * Set retention period */ setRetentionPeriod(requestParameters: SetRetentionPeriodRequest): Promise; } /** * @export * @enum {string} */ export declare enum ExportAuditRecordsFormatEnum { Csv = "csv", Zip = "zip" } /** * @export * @enum {string} */ export declare enum GetAuditRecordsForTimePeriodUnitsEnum { NANOS = "NANOS", MICROS = "MICROS", MILLIS = "MILLIS", SECONDS = "SECONDS", MINUTES = "MINUTES", HOURS = "HOURS", HALFDAYS = "HALF_DAYS", DAYS = "DAYS", WEEKS = "WEEKS", MONTHS = "MONTHS", YEARS = "YEARS", DECADES = "DECADES", CENTURIES = "CENTURIES" }