Permission-scoped Ops hub counts
Changed onSingle authenticated aggregate for the native Ops hub (d-sports-engage-native#1238) so tiles do not waterfall the live, reports and submissions endpoints. data contains only the groups the caller may see: live, submissions and team require canAccessTeam on the resolved team; reports requires isModerator and mirrors the reports list visibility (non-superadmin moderators count only escalatedToSuper: false rows; superadmins count pending and escalated rows). Unauthorized groups are omitted, never zeroed; a caller allowed none still receives 200 { success: true, data: {} }. Optional teamId accepts a Team id or slug (1-128 chars trimmed); a supplied ref that resolves to nothing is 400 VALIDATION_ERROR. submissions.awaiting counts only the two human-review statuses preview_ready and pending_platform_review for the team. A live-read failure is 500, never reported as active: false. Per-user rate limit admin.ops.counts 60/60s fails closed (429 RATE_LIMITED with Retry-After; 500 when the limiter store is down). Every response, including errors, is Cache-Control: private, no-store.
Request
- Base URLhttps://app.d-sports.org
- AuthHTTP bearer
Query parameters
Team id or slug scoping the live, submissions and team groups. Omitted returns only globally visible groups (reports for moderators).
Response
The counts the caller is authorized to see; may be an empty object.
Changes
- info
endpoint added
- info