GetEventsByTypeDTO
Package: @nauth-toolkit/core
Type: DTO (Request)
Request DTO for getting paginated audit events filtered by a specific event type with optional date range filtering.
- NestJS
- Express
- Fastify
import { GetEventsByTypeDTO } from '@nauth-toolkit/nestjs';
import { GetEventsByTypeDTO } from '@nauth-toolkit/core';
import { GetEventsByTypeDTO } from '@nauth-toolkit/core';
Properties
| Property | Type | Required | Description |
|---|---|---|---|
eventType | AuthAuditEventType | Yes | Event type to filter by (e.g., LOGIN_SUCCESS, SUSPICIOUS_ACTIVITY) |
page | number | No | Page number (1-indexed). Default: 1 |
limit | number | No | Number of records per page. Default: 50. Max: 500 |
startDate | Date | No | Filter events from this date onwards |
endDate | Date | No | Filter events up to this date |
Example
{
"eventType": "SUSPICIOUS_ACTIVITY",
"page": 1,
"limit": 100,
"startDate": "2025-01-01T00:00:00.000Z"
}
Used By
Related APIs
- AuthAuditEventType - Complete list of event types