Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/contract-sync-1-20.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@freeticket/cli": patch
---

Sync the bundled OpenAPI contract to v1 1.20.0 and admin 1.5.1 (documented error codes, optional `streamType` and check-in body).
12 changes: 11 additions & 1 deletion admin-openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"openapi": "3.1.0",
"info": {
"title": "FreeTicket Admin API",
"version": "1.5.0",
"version": "1.5.1",
"description": "API REST de superadmin de FreeTicket (cross-tenant). Autenticación por sesión de plataforma (staff con rol SUPER_ADMIN) o por service token (PAT) vía `Authorization: Bearer <token>` — NO usa API key de tenant. Aislada del contrato B2B /api/v1."
},
"servers": [
Expand Down Expand Up @@ -1260,6 +1260,16 @@
}
}
},
"409": {
"description": "Conflict: the resource does not allow this operation in its current state.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"422": {
"description": "Request body/parameter validation failed.",
"content": {
Expand Down
167 changes: 163 additions & 4 deletions openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"openapi": "3.1.0",
"info": {
"title": "FreeTicket B2B API",
"version": "1.19.0",
"version": "1.20.0",
"description": "FreeTicket B2B REST API for integrations and the CLI. Authentication is by API key (`Authorization: Bearer <key>` header or `x-api-key`); the active workspace is selected with the `X-Workspace-Id` header.\n\nScopes: each key is either `read` (GET/HEAD only) or `write` (additionally creates, edits, deletes, cancels, refunds and checks in). Self-service keys are issued as `read`. A `read` key calling a mutating method gets a 403. The machine-readable declaration lives at `/.well-known/oauth-protected-resource` (RFC 9728)."
},
"servers": [
Expand Down Expand Up @@ -1523,6 +1523,16 @@
}
}
},
"409": {
"description": "Conflict: the resource does not allow this operation in its current state.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"422": {
"description": "Request body/parameter validation failed.",
"content": {
Expand Down Expand Up @@ -1945,6 +1955,16 @@
}
}
},
"409": {
"description": "Conflict: the resource does not allow this operation in its current state.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"422": {
"description": "Request body/parameter validation failed.",
"content": {
Expand Down Expand Up @@ -2032,6 +2052,16 @@
}
}
},
"409": {
"description": "Conflict: the resource does not allow this operation in its current state.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"422": {
"description": "Request body/parameter validation failed.",
"content": {
Expand Down Expand Up @@ -2372,6 +2402,16 @@
}
}
}
},
"502": {
"description": "The external provider failed to complete the operation.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}
Expand Down Expand Up @@ -3214,6 +3254,16 @@
}
}
},
"409": {
"description": "Conflict: the resource does not allow this operation in its current state.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"422": {
"description": "Request body/parameter validation failed.",
"content": {
Expand Down Expand Up @@ -5328,6 +5378,16 @@
}
}
},
"400": {
"description": "Bad request: malformed parameters.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Missing or invalid credential.",
"content": {
Expand Down Expand Up @@ -5461,6 +5521,16 @@
}
}
},
"400": {
"description": "Bad request: malformed parameters.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Missing or invalid credential.",
"content": {
Expand Down Expand Up @@ -5581,6 +5651,16 @@
}
}
},
"400": {
"description": "Bad request: malformed parameters.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Missing or invalid credential.",
"content": {
Expand Down Expand Up @@ -5719,6 +5799,16 @@
}
}
},
"400": {
"description": "Bad request: malformed parameters.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Missing or invalid credential.",
"content": {
Expand Down Expand Up @@ -7122,6 +7212,16 @@
}
}
}
},
"502": {
"description": "The external provider failed to complete the operation.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}
Expand Down Expand Up @@ -7489,7 +7589,7 @@
}
],
"requestBody": {
"required": true,
"required": false,
"content": {
"application/json": {
"schema": {
Expand Down Expand Up @@ -8535,6 +8635,16 @@
}
}
},
"409": {
"description": "Conflict: the resource does not allow this operation in its current state.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"422": {
"description": "Request body/parameter validation failed.",
"content": {
Expand Down Expand Up @@ -8888,6 +8998,16 @@
}
}
},
"409": {
"description": "Conflict: the resource does not allow this operation in its current state.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"422": {
"description": "Request body/parameter validation failed.",
"content": {
Expand Down Expand Up @@ -9823,6 +9943,16 @@
}
}
},
"400": {
"description": "Bad request: malformed parameters.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Missing or invalid credential.",
"content": {
Expand Down Expand Up @@ -9853,6 +9983,16 @@
}
}
},
"409": {
"description": "Conflict: the resource does not allow this operation in its current state.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"422": {
"description": "Request body/parameter validation failed.",
"content": {
Expand Down Expand Up @@ -10172,6 +10312,16 @@
}
}
}
},
"503": {
"description": "Service unavailable: an external dependency is down or initialization failed.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}
Expand Down Expand Up @@ -10260,6 +10410,16 @@
}
}
},
"409": {
"description": "Conflict: the resource does not allow this operation in its current state.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"422": {
"description": "Request body/parameter validation failed.",
"content": {
Expand Down Expand Up @@ -12389,8 +12549,7 @@
},
"required": [
"startsAt",
"timezone",
"streamType"
"timezone"
],
"additionalProperties": false
},
Expand Down
Loading