Skip to content

Add segments.sizes() for bulk segment size fetching - #16

Merged
prosdev merged 1 commit into
mainfrom
feature/segment-sizes-endpoint
Feb 26, 2026
Merged

prosdev merged 1 commit into
mainfrom
feature/segment-sizes-endpoint

Conversation

@prosdev

@prosdev prosdev commented Feb 26, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds segments.sizes() method that calls GET /api/segment/sizes to fetch pre-computed segment sizes in bulk
  • Returns SegmentSize[] with id, name, slug_name, size, and timestamp
  • Supports optional table and ids filtering
  • Includes changeset (patch)

This enables callers to fetch segment list + sizes in parallel and merge results, giving the agent size context for audience ranking and prioritization.

Test plan

  • Unit tests for no-params, table param, ids param, and null response
  • pnpm build clean
  • pnpm test — 70/70 passing
  • Response shape verified against live API

🤖 Generated with Claude Code

Adds segments.sizes() which calls GET /api/segment/sizes to fetch
pre-computed segment sizes in bulk. Returns id, name, slug_name,
size, and timestamp for each segment.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@prosdev
prosdev merged commit 81b97c8 into main Feb 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants