move upgrade modal to ui package and add trial status and cancel trial ui

This commit is contained in:
Gregor Vostrak
2026-10-13 14:58:12 +02:00
parent 0c58896b00
commit 2564f74d9a
33 changed files with 1020 additions and 262 deletions

View File

@@ -5069,6 +5069,45 @@ If the group parameters are all set to `null` or are all missing, the
},
],
},
{
method: 'post',
path: '/v1/organizations/:organization/trial/cancel',
alias: 'cancelTrial',
description: `The organization switches to the free plan right away.`,
requestFormat: 'json',
parameters: [
{
name: 'organization',
type: 'Path',
schema: z.string(),
},
],
response: z.void(),
errors: [
{
status: 400,
description: `API exception`,
schema: z
.object({ error: z.boolean(), key: z.string(), message: z.string() })
.passthrough(),
},
{
status: 401,
description: `Unauthenticated`,
schema: z.object({ message: z.string() }).passthrough(),
},
{
status: 403,
description: `Authorization error`,
schema: z.object({ message: z.string() }).passthrough(),
},
{
status: 404,
description: `Not found`,
schema: z.object({ message: z.string() }).passthrough(),
},
],
},
{
method: 'get',
path: '/v1/public/reports',