Repository navigation
feat(contract): v1 1.55.0 + admin 1.9.0 — ft admin settlements, CRM and courtesy requests - #58
Merged
Merged
Conversation
…TOKEN Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Fo7cm88pv5nC6H9aXKtwc1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Fo7cm88pv5nC6H9aXKtwc1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Fo7cm88pv5nC6H9aXKtwc1
Adds ft admin settlements (list, get, upload, create, regenerate, attach, send, mark-paid, delete), the remaining ft admin crm commands, ft courtesy-requests create and ft settlements list --kind. Fixes admin list filters that read the query name instead of the flag name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Fo7cm88pv5nC6H9aXKtwc1
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
…-paid email is best-effort Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Fo7cm88pv5nC6H9aXKtwc1
LucasLeguizamo
force-pushed
the
feat/contract-sync-v1-1.55-admin-1.9
branch
from
November 23, 2026 19:45
58c97a0 to
b906a2b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Syncs the CLI with the current free-admin contracts: v1 1.43.0 → 1.55.0 and admin 1.8.0 → 1.9.0. It also brings in the
feat/admin-crmbranch, which was never merged (ft admin crmcommands andFT_ADMIN_TOKENauthentication).What changes
Admin 1.9.0 (SUPER_ADMIN)
ft admin settlements list [--status] [--organization] [--all]GET /settlementsft admin settlements get <id>GET /settlements/{id}ft admin settlements upload <pdf> --organization <id>POST /settlements/filesft admin settlements create --data [--pdf]POST /settlements(manual/auto)ft admin settlements regenerate <id>POST /settlements/{id}/regenerateft admin settlements attach <id>POST /settlements/{id}/proofsft admin settlements send <id>POST /settlements/{id}/send(confirm: true)ft admin settlements mark-paid <id> --proof …POST /settlements/{id}/mark-paid(confirm: true)ft admin settlements delete <id>DELETE /settlements/{id}(confirm: true)ft admin crm suppressions list|add|removeGET/POST/DELETE /crm/suppressions(removesendsconfirm: true)ft admin crm test-send --dataPOST /crm/test-send(confirm: true)ft admin crm organizations [query]GET /crm/organizationsft admin crm people search <query> [--scope]POST /crm/people/searchEvery settlement write,
suppressions removeandtest-sendshows its target and asks for confirmation; without a TTY they refuse unless--yesis passed. The CLI never retries a write. PDFs are checked locally (3 MB,%PDFheader) before upload. Named errors (DUPLICATE_SETTLEMENT,AMOUNT_MISMATCH,INVALID_STATE,CONFIRMATION_REQUIRED,SEND_FAILED,RATE_LIMITED…) print the next step. The README notes thatget/listcover event settlements only and that the organizer email onsend/mark-paidis best-effort.v1 1.55.0
ft courtesy-requests create --data→POST /courtesy-requests(enterprise service key).ft settlements list --kind EVENT|MEMBERSHIPand akindcolumn (v1 1.54).Fix: in
ft admin,users list --workspaceandaudit-log list --actorwere silently ignored because the value was read under the query name (workspaceId,actorId) instead of the flag name.Deliberately out of scope: the 21 new
/customer/*operations (community, live chat, newsletter). They need a buyer session (X-Customer-Session), and the CLI implements no/customer/*or/public/*route: it is the B2B surface. For the same reason the nullableticketCodein buyer/public tickets affects no command. The MCP covers those routes.Flow diagram
flowchart LR A[ft admin settlements send/mark-paid/delete] --> B[GET /settlements/id: show] B --> C{--yes or TTY confirmation} C -- no --> D[Exit 1 without writing] C -- yes --> E[POST/DELETE with confirm: true]How to test
New tests:
src/commands/admin-settlements.test.ts, cases inadmin-crm.test.ts,destructive-confirm.test.ts(8 new writes refused without--yes) andprogram.test.ts. 175/175 passing.🤖 Generated with Claude Code
https://claude.ai/code/session_01Fo7cm88pv5nC6H9aXKtwc1