Skip to content

chore(contract): sync v1 1.60.0 - #59

Merged
lu-ochenty merged 1 commit into
mainfrom
feat/contract-sync-v1-1.60
Nov 25, 2026
Merged

lu-ochenty merged 1 commit into
mainfrom
feat/contract-sync-v1-1.60

Conversation

@LucasLeguizamo

@LucasLeguizamo LucasLeguizamo commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Syncs the committed contracts with production: v1 1.55.0 → 1.60.0; admin stays at 1.9.0 (no diff). Spec and changeset only.

What changes

Path Contract Type Change CLI command MCP tool
GET /site v1 Additive New operation getSite + Site schema (VIEWER; 404 without an active own site) none site_get (new)
GET /settlements, GET /settlements/{id} v1 Additive (response) Settlement.vatAmount (always present, nullable); grossAmount documented as VAT-included on MEMBERSHIP ft settlements list/get (via --json/get) settlements_list, settlements_get
POST /ticket-types, PATCH /ticket-types/{id}, POST /ticket-templates/{id}/instantiate v1 Behavior: new rejection 409 IDENTITY_VERIFICATION_REQUIRED for the first paid type on an already public event ft ticket-types create/update ticket_types_create, ticket_types_update, ticket_templates_instantiate
POST /events/{id}/publish v1 Behavior: docs Price stages count as paid; a CANCELLED/COMPLETED event is not queued on 409 ft events publish events_publish
POST /sales v1 Behavior: new rejection 409 SEAT_NOT_AVAILABLE for numbered seats already claimed ft sales create none (sales_create sends no seats)
DELETE /staff/{id} v1 Behavior: tightened 403 TARGET_ROLE_FORBIDDEN, 409 TARGET_IS_ORG_ADMIN; sessions end only in the home workspace ft staff delete staff_delete
PATCH /staff/{id}/role v1 Behavior: tightened ADMIN assigns STAFF/VIEWER only, to home-workspace users; 403 TARGET_ROLE_FORBIDDEN ft staff set-role staff_update_role
POST /staff/{id}/resend-invite v1 Behavior: tightened 403 TARGET_ROLE_FORBIDDEN, 409 ACCOUNT_ALREADY_ACTIVE none staff_resend_invite
POST /workspaces v1 Behavior: tightened 403 MERCH_MANAGER_FORBIDDEN ft workspace create workspaces_create
(none) admin No change 1.9.0 = 1.9.0
POST /orders public Docs Inventory locking description (row lock + recount) n/a public_orders_create (no change)
servers[0].url public Additive (metadata) appfreeticket.com → admin.appfreeticket.com n/a none (the client already builds ${apiUrl}/api/public)

Schema-breaking changes: none (no path, operationId, type or request field removed or newly required). The "tightened" rows are runtime permission changes already live in production. v1 goes from 235 to 236 operations.

No command added. The CLI has no website/profile group: /website (1.32), /organization/profile and about 100 non-buyer v1 operations are uncovered too, and earlier spec-only syncs (0.13.1) shipped as a patch. GET /site is read by the site's own service key; a ft site get can come with the website group if it is ever added. The existing commands call the same operations and print the backend's message for the new 403/409 codes.

Most of the openapi.json line diff is upstream reordering of unchanged blocks. src/client/ is gitignored and regenerated. Suggested bump: patch (changeset included).

Flow diagram

flowchart LR
  A[production openapi v1 1.60.0] --> B[pnpm sync-openapi]
  B --> C[openapi.json] --> D[pnpm generate] --> E[existing ft commands]
Loading

How to test

pnpm install --frozen-lockfile
pnpm generate && pnpm typecheck && pnpm test && pnpm lint && pnpm build

Local results (GitHub Actions does not run here; Node 26.13, pnpm 10.33):

generate   ok (src/client, src/admin-client)
typecheck  ok
test       Test Files 14 passed (14) · Tests 175 passed (175)
lint       Checked 36 files, no errors (2 infos, both in biome.json)
build      ok

Not verified: commands against a live workspace (no credential used).

🤖 Generated with Claude Code

https://claude.ai/code/session_01Fo7cm88pv5nC6H9aXKtwc1

Committed B2B contract 1.55.0 -> 1.60.0; superadmin stays at 1.9.0. Adds
GET /site and Settlement.vatAmount; the rest is documented behavior (staff
permissions, identity verification, seat conflicts). No command changes.

Doco-Brief: https://doco.to/workspaces/appfreeticket/brief?id=brief_01M8A61X7ZPADM1C8NXJK3BVQF
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Fo7cm88pv5nC6H9aXKtwc1
@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@lu-ochenty
lu-ochenty merged commit 204e715 into main Nov 25, 2026
2 checks 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