34 lines
876 B
TypeScript
34 lines
876 B
TypeScript
|
|
import * as plugins from '../plugins.ts';
|
||
|
|
import * as data from '../data/index.ts';
|
||
|
|
|
||
|
|
// ============================================================================
|
||
|
|
// Audit Requests
|
||
|
|
// ============================================================================
|
||
|
|
|
||
|
|
export interface IReq_QueryAudit extends
|
||
|
|
plugins.typedrequestInterfaces.implementsTR<
|
||
|
|
plugins.typedrequestInterfaces.ITypedRequest,
|
||
|
|
IReq_QueryAudit
|
||
|
|
> {
|
||
|
|
method: 'queryAudit';
|
||
|
|
request: {
|
||
|
|
identity: data.IIdentity;
|
||
|
|
organizationId?: string;
|
||
|
|
repositoryId?: string;
|
||
|
|
resourceType?: data.TAuditResourceType;
|
||
|
|
actions?: data.TAuditAction[];
|
||
|
|
success?: boolean;
|
||
|
|
startDate?: string;
|
||
|
|
endDate?: string;
|
||
|
|
actorId?: string;
|
||
|
|
limit?: number;
|
||
|
|
offset?: number;
|
||
|
|
};
|
||
|
|
response: {
|
||
|
|
logs: data.IAuditEntry[];
|
||
|
|
total: number;
|
||
|
|
limit: number;
|
||
|
|
offset: number;
|
||
|
|
};
|
||
|
|
}
|