diff --git a/server/src/routes/openapi.ts b/server/src/routes/openapi.ts index 88a5ceabacb..77ab6b96431 100644 --- a/server/src/routes/openapi.ts +++ b/server/src/routes/openapi.ts @@ -10391,6 +10391,15 @@ registerCurrentRoute({ responses: { 200: r.ok(), 400: r.badRequest, 401: r.unauthorized, 403: r.forbidden, 404: r.notFound, 409: r.conflict, 422: r.unprocessable }, }); +registerCurrentRoute({ + method: "delete", + path: "/api/companies/{companyId}/ai-connection-pools/{poolId}", + tags: ["ai-connections"], + summary: "Delete a connection pool while retaining task and run records", + body: z.object({ expectedRevision: z.number().int().positive() }).strict(), + responses: { 200: r.ok(z.object({ ok: z.literal(true) })), 400: r.badRequest, 401: r.unauthorized, 403: r.forbidden, 404: r.notFound, 409: r.conflict }, +}); + registerCurrentRoute({ method: "get", path: "/api/companies/{companyId}/ai-connection-pools/{poolId}/inspection",