/** * openfilz-api * API for Document Management System * * 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 type { Configuration } from '../configuration'; import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; import { type RequestArgs, BaseAPI } from '../base'; import type { AuditIntegrityStatusResponse } from '../models'; import type { AuditLog } from '../models'; import type { AuditVerificationResult } from '../models'; import type { SearchByAuditLogRequest } from '../models'; /** * AuditControllerApi - axios parameter creator */ export declare const AuditControllerApiAxiosParamCreator: (configuration?: Configuration) => { /** * Returns the cached verdict of the last scheduled verification on this instance, without re-walking the chain. Poll this for monitoring; call /verify for an authoritative, on-demand answer. `verified=false` means the chain has not been checked yet on this instance — it does not mean the chain is valid. * @summary Last scheduled audit chain verification * @param {*} [options] Override http request option. * @throws {RequiredError} */ auditIntegrityStatus: (options?: RawAxiosRequestConfig) => Promise; /** * Retrieves the audit trail for a given resource. * @summary Get audit trail for a resource * @param {string} id ID of the resource to get the audit trail for * @param {GetAuditTrailSortEnum} [sort] Sort order for the audit trail. Can be \'ASC\' or \'DESC\'. Default is \'DESC\' * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAuditTrail: (id: string, sort?: GetAuditTrailSortEnum, options?: RawAxiosRequestConfig) => Promise; /** * Retrieves the audit trail according to the search parameters * @summary Search for audit trails * @param {SearchByAuditLogRequest} searchByAuditLogRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ searchAuditTrail: (searchByAuditLogRequest: SearchByAuditLogRequest, options?: RawAxiosRequestConfig) => Promise; /** * Verifies the cryptographic hash chain of the audit log to detect any tampering. * @summary Verify audit chain integrity * @param {*} [options] Override http request option. * @throws {RequiredError} */ verifyChain: (options?: RawAxiosRequestConfig) => Promise; }; /** * AuditControllerApi - functional programming interface */ export declare const AuditControllerApiFp: (configuration?: Configuration) => { /** * Returns the cached verdict of the last scheduled verification on this instance, without re-walking the chain. Poll this for monitoring; call /verify for an authoritative, on-demand answer. `verified=false` means the chain has not been checked yet on this instance — it does not mean the chain is valid. * @summary Last scheduled audit chain verification * @param {*} [options] Override http request option. * @throws {RequiredError} */ auditIntegrityStatus(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Retrieves the audit trail for a given resource. * @summary Get audit trail for a resource * @param {string} id ID of the resource to get the audit trail for * @param {GetAuditTrailSortEnum} [sort] Sort order for the audit trail. Can be \'ASC\' or \'DESC\'. Default is \'DESC\' * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAuditTrail(id: string, sort?: GetAuditTrailSortEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>>; /** * Retrieves the audit trail according to the search parameters * @summary Search for audit trails * @param {SearchByAuditLogRequest} searchByAuditLogRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ searchAuditTrail(searchByAuditLogRequest: SearchByAuditLogRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>>; /** * Verifies the cryptographic hash chain of the audit log to detect any tampering. * @summary Verify audit chain integrity * @param {*} [options] Override http request option. * @throws {RequiredError} */ verifyChain(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; }; /** * AuditControllerApi - factory interface */ export declare const AuditControllerApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * Returns the cached verdict of the last scheduled verification on this instance, without re-walking the chain. Poll this for monitoring; call /verify for an authoritative, on-demand answer. `verified=false` means the chain has not been checked yet on this instance — it does not mean the chain is valid. * @summary Last scheduled audit chain verification * @param {*} [options] Override http request option. * @throws {RequiredError} */ auditIntegrityStatus(options?: RawAxiosRequestConfig): AxiosPromise; /** * Retrieves the audit trail for a given resource. * @summary Get audit trail for a resource * @param {string} id ID of the resource to get the audit trail for * @param {GetAuditTrailSortEnum} [sort] Sort order for the audit trail. Can be \'ASC\' or \'DESC\'. Default is \'DESC\' * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAuditTrail(id: string, sort?: GetAuditTrailSortEnum, options?: RawAxiosRequestConfig): AxiosPromise>; /** * Retrieves the audit trail according to the search parameters * @summary Search for audit trails * @param {SearchByAuditLogRequest} searchByAuditLogRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ searchAuditTrail(searchByAuditLogRequest: SearchByAuditLogRequest, options?: RawAxiosRequestConfig): AxiosPromise>; /** * Verifies the cryptographic hash chain of the audit log to detect any tampering. * @summary Verify audit chain integrity * @param {*} [options] Override http request option. * @throws {RequiredError} */ verifyChain(options?: RawAxiosRequestConfig): AxiosPromise; }; /** * AuditControllerApi - object-oriented interface */ export declare class AuditControllerApi extends BaseAPI { /** * Returns the cached verdict of the last scheduled verification on this instance, without re-walking the chain. Poll this for monitoring; call /verify for an authoritative, on-demand answer. `verified=false` means the chain has not been checked yet on this instance — it does not mean the chain is valid. * @summary Last scheduled audit chain verification * @param {*} [options] Override http request option. * @throws {RequiredError} */ auditIntegrityStatus(options?: RawAxiosRequestConfig): Promise>; /** * Retrieves the audit trail for a given resource. * @summary Get audit trail for a resource * @param {string} id ID of the resource to get the audit trail for * @param {GetAuditTrailSortEnum} [sort] Sort order for the audit trail. Can be \'ASC\' or \'DESC\'. Default is \'DESC\' * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAuditTrail(id: string, sort?: GetAuditTrailSortEnum, options?: RawAxiosRequestConfig): Promise>; /** * Retrieves the audit trail according to the search parameters * @summary Search for audit trails * @param {SearchByAuditLogRequest} searchByAuditLogRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ searchAuditTrail(searchByAuditLogRequest: SearchByAuditLogRequest, options?: RawAxiosRequestConfig): Promise>; /** * Verifies the cryptographic hash chain of the audit log to detect any tampering. * @summary Verify audit chain integrity * @param {*} [options] Override http request option. * @throws {RequiredError} */ verifyChain(options?: RawAxiosRequestConfig): Promise>; } export declare const GetAuditTrailSortEnum: { readonly Asc: "ASC"; readonly Desc: "DESC"; }; export type GetAuditTrailSortEnum = typeof GetAuditTrailSortEnum[keyof typeof GetAuditTrailSortEnum];