Governed raw telemetry event export API for Phase 72.5.1.12.
queryTelemetryDataExport reads warehouse.v2_telemetry.events rows through a
TelemetryDataExportSource, enforces researcher/analyst/admin authorization,
requires an approved purpose, applies topic and account-hash scopes, paginates
with opaque cursors, and returns raw event rows with preserved payloadJson.
createTelemetryDataExportApi exposes the same behavior through
GET /v2/telemetry/export/events. JSON responses include an audit record, while
format=jsonl returns newline-delimited event rows.
Targeted verification:
bash
pnpm --filter @v2/telemetry-data-export-api run typecheck
pnpm --filter @v2/telemetry-data-export-api run test
python V2/ue/Tools/check-v2-telemetry-data-export-api.py