(auth?: AuthContext | null)
| 43 | } |
| 44 | |
| 45 | private requireOrganizationId(auth?: AuthContext | null): string { |
| 46 | const organizationId = auth?.organizationId; |
| 47 | if (!organizationId) { |
| 48 | throw new ForbiddenException('Organization context is required'); |
| 49 | } |
| 50 | return organizationId; |
| 51 | } |
| 52 | |
| 53 | private mapRecordToEvent(record: { |
| 54 | runId: string; |