Dashboardcli@sentry/api response types

@sentry/api response types

Category: preference
Confidence: 0.80
ID: 01a08c08-7428-71c6-8f5b-087c1f733370
Project ID: c760f4f9-42b0-4ce0-b36d-6b8c38d770b2
Cross-project: No
Recalled in other projects: 0
Source session: 06aLRoB0AYUPw7Dkg
Created: 2026-09-08 20:47:10
Updated: 2026-09-10 15:55:59

Content

Always import API response types directly from @sentry/api when available. Duplicating them as local Zod schemas looks safer but creates a second API authority that drifts; for genuinely untyped runtime boundaries, define the Zod schema beside its type in src/types/*.ts, re-export it through src/types/index.ts, and use type-only imports where appropriate.

Move to: