Skip to content

fix: expose configured line admission errors - #22

Draft
Si40Code wants to merge 3 commits into
mainfrom
codex/account-admission-errors
Draft

fix: expose configured line admission errors#22
Si40Code wants to merge 3 commits into
mainfrom
codex/account-admission-errors

Conversation

@Si40Code

@Si40Code Si40Code commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator

Sync the configured account admission contract from backend GitLab MR !222 (dev commit af1d16d043ede61ad6cdc7cd814d2cbf105c5cb1, account-task-admission v1.2.0), following MR !220.

Shared routes such as us and all allow one active task per account by default. Dedicated eligible purchased Twilio numbers allow ten, including when selected as the account default outbound number. User configuration can override each allowance. The fixed 20 creations per rolling 24 hours is removed; shared-line OneShot calls remain limited to one recipient.

Concurrency denials now explain the effective allowance and include details.line_type, details.max_active_tasks, and shared-line details.upgrade (purchased allowance, KYC requirement, purchase URL). The message guides users to verify identity, purchase and activate a dedicated number, and select it as default outbound. Purchased-line exhaustion has waiting/retry guidance without a purchase CTA. API/MCP messages agree, and persisted creation errors preserve the original details on replay.

The contract also covers concurrency/token-budget 429/503 responses and in-progress duplicate 409 errors. OpenAPI matches the backend source of truth.

Keep this PR in draft until the production API supports the contract. TEST deployment does not publish production documentation or SDK packages.

Updated the OpenAPI snapshot, generated schema and server error handling in unreleased version 0.7.1. Validation: full pnpm run validate; 35 tests, typechecks, example checks and package/tarball smoke tests passed.

@Si40Code Si40Code changed the title fix: expose account admission error contract fix: expose configured line admission errors Sep 8, 2026
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.

1 participant