import { APIResource } from "../../../resource.js"; import * as Core from "../../../core.js"; import { CursorPagination, type CursorPaginationParams } from "../../../pagination.js"; export declare class AuditLogs extends APIResource { /** * Lists audit log entries for all Security Center insights in the account or zone, * showing changes to insight status and classification. * * @example * ```ts * // Automatically fetches more pages as needed. * for await (const auditLogListResponse of client.securityCenter.insights.auditLogs.list( * { account_id: 'account_id' }, * )) { * // ... * } * ``` */ list(params?: AuditLogListParams, options?: Core.RequestOptions): Core.PagePromise; list(options?: Core.RequestOptions): Core.PagePromise; /** * Lists audit log entries for a specific Security Center insight, showing changes * to its status and classification over time. * * @example * ```ts * // Automatically fetches more pages as needed. * for await (const auditLogListByInsightResponse of client.securityCenter.insights.auditLogs.listByInsight( * 'issue_id', * { account_id: 'account_id' }, * )) { * // ... * } * ``` */ listByInsight(issueId: string, params?: AuditLogListByInsightParams, options?: Core.RequestOptions): Core.PagePromise; listByInsight(issueId: string, options?: Core.RequestOptions): Core.PagePromise; } export declare class AuditLogListResponsesCursorPagination extends CursorPagination { } export declare class AuditLogListByInsightResponsesCursorPagination extends CursorPagination { } export interface AuditLogListResponse { /** * UUIDv7 identifier for the audit log entry, time-ordered. */ id?: string; /** * The timestamp when the change occurred. */ changed_at?: string; /** * The actor that made the change. 'system' for automated changes, or a user * identifier. */ changed_by?: string; /** * The value of the field after the change. Null if the field was cleared. */ current_value?: string | null; /** * The field that was changed. */ field_changed?: 'status' | 'user_classification'; /** * The ID of the insight this audit log entry relates to. */ issue_id?: string; /** * The value of the field before the change. Null if the field was not previously * set. */ previous_value?: string | null; /** * Optional rationale provided for the change. */ rationale?: string | null; /** * The zone ID associated with the insight. Only present for zone-level insights. */ zone_id?: number; } export interface AuditLogListByInsightResponse { /** * UUIDv7 identifier for the audit log entry, time-ordered. */ id?: string; /** * The timestamp when the change occurred. */ changed_at?: string; /** * The actor that made the change. 'system' for automated changes, or a user * identifier. */ changed_by?: string; /** * The value of the field after the change. Null if the field was cleared. */ current_value?: string | null; /** * The field that was changed. */ field_changed?: 'status' | 'user_classification'; /** * The ID of the insight this audit log entry relates to. */ issue_id?: string; /** * The value of the field before the change. Null if the field was not previously * set. */ previous_value?: string | null; /** * Optional rationale provided for the change. */ rationale?: string | null; /** * The zone ID associated with the insight. Only present for zone-level insights. */ zone_id?: number; } export interface AuditLogListParams extends CursorPaginationParams { /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the * Zone ID. */ account_id?: string; /** * Path param: The Zone ID to use for this endpoint. Mutually exclusive with the * Account ID. */ zone_id?: string; /** * Query param: Filter entries changed before this timestamp (RFC 3339). */ before?: string; /** * Query param: Filter by the actor that made the change. */ changed_by?: string; /** * Query param: Filter by the field that was changed. */ field_changed?: 'status' | 'user_classification'; /** * Query param: Sort order for results. Use 'asc' for oldest first or 'desc' for * newest first. */ order?: 'asc' | 'desc'; /** * Query param: Filter entries changed at or after this timestamp (RFC 3339). */ since?: string; } export interface AuditLogListByInsightParams extends CursorPaginationParams { /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the * Zone ID. */ account_id?: string; /** * Path param: The Zone ID to use for this endpoint. Mutually exclusive with the * Account ID. */ zone_id?: string; /** * Query param: Filter entries changed before this timestamp (RFC 3339). */ before?: string; /** * Query param: Filter by the actor that made the change. */ changed_by?: string; /** * Query param: Filter by the field that was changed. */ field_changed?: 'status' | 'user_classification'; /** * Query param: Sort order for results. Use 'asc' for oldest first or 'desc' for * newest first. */ order?: 'asc' | 'desc'; /** * Query param: Filter entries changed at or after this timestamp (RFC 3339). */ since?: string; } export declare namespace AuditLogs { export { type AuditLogListResponse as AuditLogListResponse, type AuditLogListByInsightResponse as AuditLogListByInsightResponse, AuditLogListResponsesCursorPagination as AuditLogListResponsesCursorPagination, AuditLogListByInsightResponsesCursorPagination as AuditLogListByInsightResponsesCursorPagination, type AuditLogListParams as AuditLogListParams, type AuditLogListByInsightParams as AuditLogListByInsightParams, }; } //# sourceMappingURL=audit-logs.d.ts.map