|
| 1 | +/** |
| 2 | + * ! Autogenerated code ! |
| 3 | + * Do not make changes to this file. |
| 4 | + * Changes may be overwritten as part of auto-generation. |
| 5 | + */ |
| 6 | + |
| 7 | +import { type IEventsResponse } from '../../../types/index.js'; |
| 8 | +import { IApiKeyExposureNotificationResponse } from '../../../notifications/index.js'; |
| 9 | + |
| 10 | +export const ApiKeyExposureCreatedMock: IEventsResponse<IApiKeyExposureNotificationResponse> = { |
| 11 | + event_id: 'evt_01jkdr0rc527wcjdg1txsdxhtg', |
| 12 | + event_type: 'api_key_exposure.created', |
| 13 | + occurred_at: '2025-06-24T12:58:38.746382Z', |
| 14 | + notification_id: 'ntf_01jkdr1mgbe62eqkh3p0fq8b0w', |
| 15 | + data: { |
| 16 | + id: 'apikeyexp_01jkdpbhazdpn3wpcya45as9tg', |
| 17 | + api_key_id: 'apikey_01jkdpbhazdpn3wpcya45as9tg', |
| 18 | + risk_level: 'high', |
| 19 | + action_taken: 'revoked', |
| 20 | + source: 'github', |
| 21 | + reference: 'https://github.com/example/repo/blob/main/config.js', |
| 22 | + description: 'API key found exposed in public GitHub repository.', |
| 23 | + created_at: '2025-06-24T12:58:38.746382Z', |
| 24 | + }, |
| 25 | +}; |
| 26 | + |
| 27 | +export const ApiKeyExposureCreatedMockExpectation = { |
| 28 | + eventId: 'evt_01jkdr0rc527wcjdg1txsdxhtg', |
| 29 | + eventType: 'api_key_exposure.created', |
| 30 | + occurredAt: '2025-06-24T12:58:38.746382Z', |
| 31 | + notificationId: 'ntf_01jkdr1mgbe62eqkh3p0fq8b0w', |
| 32 | + data: { |
| 33 | + id: 'apikeyexp_01jkdpbhazdpn3wpcya45as9tg', |
| 34 | + apiKeyId: 'apikey_01jkdpbhazdpn3wpcya45as9tg', |
| 35 | + riskLevel: 'high', |
| 36 | + actionTaken: 'revoked', |
| 37 | + source: 'github', |
| 38 | + reference: 'https://github.com/example/repo/blob/main/config.js', |
| 39 | + description: 'API key found exposed in public GitHub repository.', |
| 40 | + createdAt: '2025-06-24T12:58:38.746382Z', |
| 41 | + }, |
| 42 | +}; |
0 commit comments