AuditLog
Source:
src/Railway/AuditLog.ts
List workspace audit logs. Query-only — Railway has no audit-log create/update/delete, so this is a catalog helper, not a resource.
Defaults to the current token workspace. Pass project /
environment to filter. The result may be empty.
List logs
Section titled “List logs”Workspace logs
const logs = yield* Railway.listAuditLogs();Filter by project
const site = yield* Railway.Project("Site");const logs = yield* Railway.listAuditLogs({ project: site, environment: site,});Get by id
Section titled “Get by id”const log = yield* Railway.getAuditLog({ id: logs[0].id });Event types
Section titled “Event types”const types = yield* Railway.listAuditLogEventTypes();