You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3aa4c2a
Browse filesBrowse the repository at this point in the historyBrowse files
Adds the Workstream B2 parity surface to the dual sync/async SDK:
- New `imports` resource (sync + async) wrapping /api/v1/imports:
start (snake_case body), get_status, cancel, list, wait_for_completion
(polls to a terminal state; sync time.sleep / async asyncio.sleep).
- Extends the analytics resource (sync + async) with get_aggregate_stats
-> GET /api/v1/links/{short_path}/stats/aggregate.
- Pydantic v2 models: ImportJob, ImportCounts, AggregateStats, DayClicks,
HourClicks, DeviceBreakdown, UTMBreakdown, UpgradeForMore.
- Attaches `imports` to Client and AsyncClient; exports new models.
- Fully mocked tests (sync + async) for imports + aggregate stats.
- README sections; version bump 1.2.0 -> 1.3.0 (pyproject + __version__).
NOTE: backing routes are staging-only (prod deploy pending APPROVE) —
this PR is a DRAFT and all tests are mocked (no live calls).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments