/* tslint:disable */ /* eslint-disable */ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa import { TsoaRoute, fetchMiddlewares, ExpressTemplateService } from '@tsoa/runtime'; // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa import { UserSessionController } from './../controllers/api/v1/UserSessionController'; // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa import { UserController } from './../controllers/api/v1/UserController'; // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa import { AuthController } from './../controllers/api/v1/AuthController'; // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa import { AiConfigurationController } from './../controllers/api/v1/AiConfigurationController'; // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa import { AiInstanceController } from './../controllers/api/v1/AiInstanceController'; import { iocContainer } from './../ioc'; import type { IocContainer, IocContainerFactory } from '@tsoa/runtime'; import type { Request as ExRequest, Response as ExResponse, RequestHandler, Router } from 'express'; // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa const models: TsoaRoute.Models = { "UUID": { "dataType": "refAlias", "type": {"dataType":"string","validators":{"pattern":{"value":"[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}"}}}, }, // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa "UserSessionInfoVmV1": { "dataType": "refObject", "properties": { "id": {"ref":"UUID","required":true}, }, "additionalProperties": false, }, // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa "UserInfoVmV1": { "dataType": "refObject", "properties": { "id": {"ref":"UUID","required":true}, "createdAt": {"dataType":"datetime","required":true}, "createdBy": {"ref":"UUID","required":true}, "updatedAt": {"dataType":"datetime","required":true}, "updatedBy": {"ref":"UUID","required":true}, "name": {"dataType":"string","required":true,"validators":{"minLength":{"value":1},"maxLength":{"value":32}}}, "email": {"dataType":"union","subSchemas":[{"dataType":"string"},{"dataType":"undefined"}],"required":true,"validators":{"maxLength":{"value":255}}}, "displayName": {"dataType":"string","required":true,"validators":{"maxLength":{"value":255}}}, }, "additionalProperties": false, }, // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa "UpdatePasswordRequestV1": { "dataType": "refObject", "properties": { "userId": {"ref":"UUID","required":true}, "password": {"dataType":"string","required":true}, }, "additionalProperties": false, }, // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa "RegisterResponseVmV1": { "dataType": "refObject", "properties": { "success": {"dataType":"boolean","required":true}, "user": {"ref":"UserInfoVmV1"}, "session": {"ref":"UserSessionInfoVmV1"}, "message": {"dataType":"string"}, }, "additionalProperties": false, }, // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa "RegisterRequestVmV1": { "dataType": "refObject", "properties": { "username": {"dataType":"string","required":true,"validators":{"minLength":{"value":1},"maxLength":{"value":32}}}, "password": {"dataType":"string","required":true,"validators":{"maxLength":{"value":255}}}, }, "additionalProperties": false, }, // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa "LoginResponseVmV1": { "dataType": "refObject", "properties": { "success": {"dataType":"boolean","required":true}, "user": {"ref":"UserInfoVmV1"}, "session": {"ref":"UserSessionInfoVmV1"}, "message": {"dataType":"string"}, }, "additionalProperties": false, }, // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa "LoginRequestVmV1": { "dataType": "refObject", "properties": { "username": {"dataType":"string","required":true,"validators":{"minLength":{"value":1},"maxLength":{"value":32}}}, "password": {"dataType":"string","required":true,"validators":{"maxLength":{"value":255}}}, }, "additionalProperties": false, }, // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa "VerifyResponseVmV1": { "dataType": "refObject", "properties": { "success": {"dataType":"boolean","required":true}, "user": {"ref":"UserInfoVmV1"}, "session": {"ref":"UserSessionInfoVmV1"}, "message": {"dataType":"string"}, }, "additionalProperties": false, }, // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa "LogoutResponseVmV1": { "dataType": "refObject", "properties": { "success": {"dataType":"boolean","required":true}, "message": {"dataType":"union","subSchemas":[{"dataType":"string"},{"dataType":"undefined"}],"required":true}, }, "additionalProperties": false, }, // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa "AiConfigurationVmV1": { "dataType": "refObject", "properties": { "id": {"ref":"UUID","required":true}, "createdAt": {"dataType":"datetime","required":true}, "createdBy": {"ref":"UUID","required":true}, "updatedAt": {"dataType":"datetime","required":true}, "updatedBy": {"ref":"UUID","required":true}, "name": {"dataType":"string","required":true,"validators":{"maxLength":{"value":255}}}, "modelIdOrPath": {"dataType":"string","required":true,"validators":{"maxLength":{"value":255}}}, "discordToken": {"dataType":"string","required":true,"validators":{"maxLength":{"value":255}}}, }, "additionalProperties": false, }, // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa "DiscordStatusVmV1": { "dataType": "refObject", "properties": { "online": {"dataType":"boolean","required":true}, "reactToChat": {"dataType":"boolean","required":true}, }, "additionalProperties": false, }, // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa "ChatMessageVmV1": { "dataType": "refObject", "properties": { "role": {"dataType":"string","required":true}, "name": {"dataType":"string","required":true}, "content": {"dataType":"string","required":true}, }, "additionalProperties": false, }, // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa "AiInstanceVmV1": { "dataType": "refObject", "properties": { "configuration": {"ref":"AiConfigurationVmV1","required":true}, "discord": {"ref":"DiscordStatusVmV1","required":true}, "messages": {"dataType":"array","array":{"dataType":"refObject","ref":"ChatMessageVmV1"},"required":true}, }, "additionalProperties": false, }, // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa "DiscordOnlineVmV1": { "dataType": "refObject", "properties": { "online": {"dataType":"boolean","required":true}, }, "additionalProperties": false, }, // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa "DiscordReactoToChatVmV1": { "dataType": "refObject", "properties": { "reactToChat": {"dataType":"boolean","required":true}, }, "additionalProperties": false, }, // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa }; const templateService = new ExpressTemplateService(models, {"noImplicitAdditionalProperties":"throw-on-extras","bodyCoercion":true}); // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa export function RegisterRoutes(app: Router) { // ########################################################################################################### // NOTE: If you do not see routes for all of your controllers in this file, then you might not have informed tsoa of where to look // Please look into the "controllerPathGlobs" config option described in the readme: https://github.com/lukeautry/tsoa // ########################################################################################################### app.get('/api/v1/usersessions', ...(fetchMiddlewares(UserSessionController)), ...(fetchMiddlewares(UserSessionController.prototype.list)), async function UserSessionController_list(request: ExRequest, response: ExResponse, next: any) { const args: Record = { req: {"in":"request","name":"req","required":true,"dataType":"object"}, }; // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa let validatedArgs: any[] = []; try { validatedArgs = templateService.getValidatedArgs({ args, request, response }); const container: IocContainer = typeof iocContainer === 'function' ? (iocContainer as IocContainerFactory)(request) : iocContainer; const controller: any = await container.get(UserSessionController); if (typeof controller['setStatus'] === 'function') { controller.setStatus(undefined); } await templateService.apiHandler({ methodName: 'list', controller, response, next, validatedArgs, successStatus: 200, }); } catch (err) { return next(err); } }); // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa app.delete('/api/v1/usersessions/:id', ...(fetchMiddlewares(UserSessionController)), ...(fetchMiddlewares(UserSessionController.prototype.remove)), async function UserSessionController_remove(request: ExRequest, response: ExResponse, next: any) { const args: Record = { id: {"in":"path","name":"id","required":true,"ref":"UUID"}, req: {"in":"request","name":"req","required":true,"dataType":"object"}, }; // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa let validatedArgs: any[] = []; try { validatedArgs = templateService.getValidatedArgs({ args, request, response }); const container: IocContainer = typeof iocContainer === 'function' ? (iocContainer as IocContainerFactory)(request) : iocContainer; const controller: any = await container.get(UserSessionController); if (typeof controller['setStatus'] === 'function') { controller.setStatus(undefined); } await templateService.apiHandler({ methodName: 'remove', controller, response, next, validatedArgs, successStatus: 204, }); } catch (err) { return next(err); } }); // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa app.get('/api/v1/users', ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.list)), async function UserController_list(request: ExRequest, response: ExResponse, next: any) { const args: Record = { req: {"in":"request","name":"req","required":true,"dataType":"object"}, }; // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa let validatedArgs: any[] = []; try { validatedArgs = templateService.getValidatedArgs({ args, request, response }); const container: IocContainer = typeof iocContainer === 'function' ? (iocContainer as IocContainerFactory)(request) : iocContainer; const controller: any = await container.get(UserController); if (typeof controller['setStatus'] === 'function') { controller.setStatus(undefined); } await templateService.apiHandler({ methodName: 'list', controller, response, next, validatedArgs, successStatus: 200, }); } catch (err) { return next(err); } }); // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa app.get('/api/v1/users/:id', ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.getById)), async function UserController_getById(request: ExRequest, response: ExResponse, next: any) { const args: Record = { id: {"in":"path","name":"id","required":true,"ref":"UUID"}, req: {"in":"request","name":"req","required":true,"dataType":"object"}, }; // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa let validatedArgs: any[] = []; try { validatedArgs = templateService.getValidatedArgs({ args, request, response }); const container: IocContainer = typeof iocContainer === 'function' ? (iocContainer as IocContainerFactory)(request) : iocContainer; const controller: any = await container.get(UserController); if (typeof controller['setStatus'] === 'function') { controller.setStatus(undefined); } await templateService.apiHandler({ methodName: 'getById', controller, response, next, validatedArgs, successStatus: 200, }); } catch (err) { return next(err); } }); // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa app.post('/api/v1/users', ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.add)), async function UserController_add(request: ExRequest, response: ExResponse, next: any) { const args: Record = { body: {"in":"body","name":"body","required":true,"ref":"UserInfoVmV1"}, req: {"in":"request","name":"req","required":true,"dataType":"object"}, }; // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa let validatedArgs: any[] = []; try { validatedArgs = templateService.getValidatedArgs({ args, request, response }); const container: IocContainer = typeof iocContainer === 'function' ? (iocContainer as IocContainerFactory)(request) : iocContainer; const controller: any = await container.get(UserController); if (typeof controller['setStatus'] === 'function') { controller.setStatus(undefined); } await templateService.apiHandler({ methodName: 'add', controller, response, next, validatedArgs, successStatus: 201, }); } catch (err) { return next(err); } }); // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa app.put('/api/v1/users', ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.update)), async function UserController_update(request: ExRequest, response: ExResponse, next: any) { const args: Record = { body: {"in":"body","name":"body","required":true,"ref":"UserInfoVmV1"}, req: {"in":"request","name":"req","required":true,"dataType":"object"}, }; // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa let validatedArgs: any[] = []; try { validatedArgs = templateService.getValidatedArgs({ args, request, response }); const container: IocContainer = typeof iocContainer === 'function' ? (iocContainer as IocContainerFactory)(request) : iocContainer; const controller: any = await container.get(UserController); if (typeof controller['setStatus'] === 'function') { controller.setStatus(undefined); } await templateService.apiHandler({ methodName: 'update', controller, response, next, validatedArgs, successStatus: 200, }); } catch (err) { return next(err); } }); // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa app.put('/api/v1/users/password', ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.updatePassword)), async function UserController_updatePassword(request: ExRequest, response: ExResponse, next: any) { const args: Record = { body: {"in":"body","name":"body","required":true,"ref":"UpdatePasswordRequestV1"}, req: {"in":"request","name":"req","required":true,"dataType":"object"}, }; // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa let validatedArgs: any[] = []; try { validatedArgs = templateService.getValidatedArgs({ args, request, response }); const container: IocContainer = typeof iocContainer === 'function' ? (iocContainer as IocContainerFactory)(request) : iocContainer; const controller: any = await container.get(UserController); if (typeof controller['setStatus'] === 'function') { controller.setStatus(undefined); } await templateService.apiHandler({ methodName: 'updatePassword', controller, response, next, validatedArgs, successStatus: 200, }); } catch (err) { return next(err); } }); // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa app.delete('/api/v1/users/:id', ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.remove)), async function UserController_remove(request: ExRequest, response: ExResponse, next: any) { const args: Record = { id: {"in":"path","name":"id","required":true,"ref":"UUID"}, req: {"in":"request","name":"req","required":true,"dataType":"object"}, }; // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa let validatedArgs: any[] = []; try { validatedArgs = templateService.getValidatedArgs({ args, request, response }); const container: IocContainer = typeof iocContainer === 'function' ? (iocContainer as IocContainerFactory)(request) : iocContainer; const controller: any = await container.get(UserController); if (typeof controller['setStatus'] === 'function') { controller.setStatus(undefined); } await templateService.apiHandler({ methodName: 'remove', controller, response, next, validatedArgs, successStatus: 204, }); } catch (err) { return next(err); } }); // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa app.post('/api/v1/auth/register', ...(fetchMiddlewares(AuthController)), ...(fetchMiddlewares(AuthController.prototype.register)), async function AuthController_register(request: ExRequest, response: ExResponse, next: any) { const args: Record = { body: {"in":"body","name":"body","required":true,"ref":"RegisterRequestVmV1"}, req: {"in":"request","name":"req","required":true,"dataType":"object"}, }; // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa let validatedArgs: any[] = []; try { validatedArgs = templateService.getValidatedArgs({ args, request, response }); const container: IocContainer = typeof iocContainer === 'function' ? (iocContainer as IocContainerFactory)(request) : iocContainer; const controller: any = await container.get(AuthController); if (typeof controller['setStatus'] === 'function') { controller.setStatus(undefined); } await templateService.apiHandler({ methodName: 'register', controller, response, next, validatedArgs, successStatus: 200, }); } catch (err) { return next(err); } }); // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa app.post('/api/v1/auth/login', ...(fetchMiddlewares(AuthController)), ...(fetchMiddlewares(AuthController.prototype.login)), async function AuthController_login(request: ExRequest, response: ExResponse, next: any) { const args: Record = { body: {"in":"body","name":"body","required":true,"ref":"LoginRequestVmV1"}, req: {"in":"request","name":"req","required":true,"dataType":"object"}, }; // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa let validatedArgs: any[] = []; try { validatedArgs = templateService.getValidatedArgs({ args, request, response }); const container: IocContainer = typeof iocContainer === 'function' ? (iocContainer as IocContainerFactory)(request) : iocContainer; const controller: any = await container.get(AuthController); if (typeof controller['setStatus'] === 'function') { controller.setStatus(undefined); } await templateService.apiHandler({ methodName: 'login', controller, response, next, validatedArgs, successStatus: 200, }); } catch (err) { return next(err); } }); // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa app.post('/api/v1/auth/verify', ...(fetchMiddlewares(AuthController)), ...(fetchMiddlewares(AuthController.prototype.verify)), async function AuthController_verify(request: ExRequest, response: ExResponse, next: any) { const args: Record = { req: {"in":"request","name":"req","required":true,"dataType":"object"}, }; // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa let validatedArgs: any[] = []; try { validatedArgs = templateService.getValidatedArgs({ args, request, response }); const container: IocContainer = typeof iocContainer === 'function' ? (iocContainer as IocContainerFactory)(request) : iocContainer; const controller: any = await container.get(AuthController); if (typeof controller['setStatus'] === 'function') { controller.setStatus(undefined); } await templateService.apiHandler({ methodName: 'verify', controller, response, next, validatedArgs, successStatus: 200, }); } catch (err) { return next(err); } }); // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa app.post('/api/v1/auth/logout', ...(fetchMiddlewares(AuthController)), ...(fetchMiddlewares(AuthController.prototype.logout)), async function AuthController_logout(request: ExRequest, response: ExResponse, next: any) { const args: Record = { req: {"in":"request","name":"req","required":true,"dataType":"object"}, }; // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa let validatedArgs: any[] = []; try { validatedArgs = templateService.getValidatedArgs({ args, request, response }); const container: IocContainer = typeof iocContainer === 'function' ? (iocContainer as IocContainerFactory)(request) : iocContainer; const controller: any = await container.get(AuthController); if (typeof controller['setStatus'] === 'function') { controller.setStatus(undefined); } await templateService.apiHandler({ methodName: 'logout', controller, response, next, validatedArgs, successStatus: 200, }); } catch (err) { return next(err); } }); // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa app.get('/api/v1/ai/configurations', ...(fetchMiddlewares(AiConfigurationController)), ...(fetchMiddlewares(AiConfigurationController.prototype.list)), async function AiConfigurationController_list(request: ExRequest, response: ExResponse, next: any) { const args: Record = { req: {"in":"request","name":"req","required":true,"dataType":"object"}, }; // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa let validatedArgs: any[] = []; try { validatedArgs = templateService.getValidatedArgs({ args, request, response }); const container: IocContainer = typeof iocContainer === 'function' ? (iocContainer as IocContainerFactory)(request) : iocContainer; const controller: any = await container.get(AiConfigurationController); if (typeof controller['setStatus'] === 'function') { controller.setStatus(undefined); } await templateService.apiHandler({ methodName: 'list', controller, response, next, validatedArgs, successStatus: 200, }); } catch (err) { return next(err); } }); // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa app.get('/api/v1/ai/configurations/:id', ...(fetchMiddlewares(AiConfigurationController)), ...(fetchMiddlewares(AiConfigurationController.prototype.getById)), async function AiConfigurationController_getById(request: ExRequest, response: ExResponse, next: any) { const args: Record = { id: {"in":"path","name":"id","required":true,"ref":"UUID"}, req: {"in":"request","name":"req","required":true,"dataType":"object"}, }; // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa let validatedArgs: any[] = []; try { validatedArgs = templateService.getValidatedArgs({ args, request, response }); const container: IocContainer = typeof iocContainer === 'function' ? (iocContainer as IocContainerFactory)(request) : iocContainer; const controller: any = await container.get(AiConfigurationController); if (typeof controller['setStatus'] === 'function') { controller.setStatus(undefined); } await templateService.apiHandler({ methodName: 'getById', controller, response, next, validatedArgs, successStatus: 200, }); } catch (err) { return next(err); } }); // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa app.post('/api/v1/ai/configurations', ...(fetchMiddlewares(AiConfigurationController)), ...(fetchMiddlewares(AiConfigurationController.prototype.add)), async function AiConfigurationController_add(request: ExRequest, response: ExResponse, next: any) { const args: Record = { body: {"in":"body","name":"body","required":true,"ref":"AiConfigurationVmV1"}, req: {"in":"request","name":"req","required":true,"dataType":"object"}, }; // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa let validatedArgs: any[] = []; try { validatedArgs = templateService.getValidatedArgs({ args, request, response }); const container: IocContainer = typeof iocContainer === 'function' ? (iocContainer as IocContainerFactory)(request) : iocContainer; const controller: any = await container.get(AiConfigurationController); if (typeof controller['setStatus'] === 'function') { controller.setStatus(undefined); } await templateService.apiHandler({ methodName: 'add', controller, response, next, validatedArgs, successStatus: 201, }); } catch (err) { return next(err); } }); // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa app.put('/api/v1/ai/configurations', ...(fetchMiddlewares(AiConfigurationController)), ...(fetchMiddlewares(AiConfigurationController.prototype.update)), async function AiConfigurationController_update(request: ExRequest, response: ExResponse, next: any) { const args: Record = { body: {"in":"body","name":"body","required":true,"ref":"AiConfigurationVmV1"}, req: {"in":"request","name":"req","required":true,"dataType":"object"}, }; // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa let validatedArgs: any[] = []; try { validatedArgs = templateService.getValidatedArgs({ args, request, response }); const container: IocContainer = typeof iocContainer === 'function' ? (iocContainer as IocContainerFactory)(request) : iocContainer; const controller: any = await container.get(AiConfigurationController); if (typeof controller['setStatus'] === 'function') { controller.setStatus(undefined); } await templateService.apiHandler({ methodName: 'update', controller, response, next, validatedArgs, successStatus: 200, }); } catch (err) { return next(err); } }); // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa app.delete('/api/v1/ai/configurations/:id', ...(fetchMiddlewares(AiConfigurationController)), ...(fetchMiddlewares(AiConfigurationController.prototype.remove)), async function AiConfigurationController_remove(request: ExRequest, response: ExResponse, next: any) { const args: Record = { id: {"in":"path","name":"id","required":true,"ref":"UUID"}, req: {"in":"request","name":"req","required":true,"dataType":"object"}, }; // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa let validatedArgs: any[] = []; try { validatedArgs = templateService.getValidatedArgs({ args, request, response }); const container: IocContainer = typeof iocContainer === 'function' ? (iocContainer as IocContainerFactory)(request) : iocContainer; const controller: any = await container.get(AiConfigurationController); if (typeof controller['setStatus'] === 'function') { controller.setStatus(undefined); } await templateService.apiHandler({ methodName: 'remove', controller, response, next, validatedArgs, successStatus: 204, }); } catch (err) { return next(err); } }); // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa app.get('/api/v1/ai/instances', ...(fetchMiddlewares(AiInstanceController)), ...(fetchMiddlewares(AiInstanceController.prototype.list)), async function AiInstanceController_list(request: ExRequest, response: ExResponse, next: any) { const args: Record = { req: {"in":"request","name":"req","required":true,"dataType":"object"}, }; // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa let validatedArgs: any[] = []; try { validatedArgs = templateService.getValidatedArgs({ args, request, response }); const container: IocContainer = typeof iocContainer === 'function' ? (iocContainer as IocContainerFactory)(request) : iocContainer; const controller: any = await container.get(AiInstanceController); if (typeof controller['setStatus'] === 'function') { controller.setStatus(undefined); } await templateService.apiHandler({ methodName: 'list', controller, response, next, validatedArgs, successStatus: 200, }); } catch (err) { return next(err); } }); // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa app.post('/api/v1/ai/instances/:id/chat', ...(fetchMiddlewares(AiInstanceController)), ...(fetchMiddlewares(AiInstanceController.prototype.chatText)), async function AiInstanceController_chatText(request: ExRequest, response: ExResponse, next: any) { const args: Record = { id: {"in":"path","name":"id","required":true,"ref":"UUID"}, body: {"in":"body","name":"body","required":true,"ref":"ChatMessageVmV1"}, }; // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa let validatedArgs: any[] = []; try { validatedArgs = templateService.getValidatedArgs({ args, request, response }); const container: IocContainer = typeof iocContainer === 'function' ? (iocContainer as IocContainerFactory)(request) : iocContainer; const controller: any = await container.get(AiInstanceController); if (typeof controller['setStatus'] === 'function') { controller.setStatus(undefined); } await templateService.apiHandler({ methodName: 'chatText', controller, response, next, validatedArgs, successStatus: 200, }); } catch (err) { return next(err); } }); // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa app.post('/api/v1/ai/instances/:id/discord/online', ...(fetchMiddlewares(AiInstanceController)), ...(fetchMiddlewares(AiInstanceController.prototype.discordOnline)), async function AiInstanceController_discordOnline(request: ExRequest, response: ExResponse, next: any) { const args: Record = { id: {"in":"path","name":"id","required":true,"ref":"UUID"}, body: {"in":"body","name":"body","required":true,"ref":"DiscordOnlineVmV1"}, }; // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa let validatedArgs: any[] = []; try { validatedArgs = templateService.getValidatedArgs({ args, request, response }); const container: IocContainer = typeof iocContainer === 'function' ? (iocContainer as IocContainerFactory)(request) : iocContainer; const controller: any = await container.get(AiInstanceController); if (typeof controller['setStatus'] === 'function') { controller.setStatus(undefined); } await templateService.apiHandler({ methodName: 'discordOnline', controller, response, next, validatedArgs, successStatus: 200, }); } catch (err) { return next(err); } }); // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa app.post('/api/v1/ai/instances/:id/discord/reactToChat', ...(fetchMiddlewares(AiInstanceController)), ...(fetchMiddlewares(AiInstanceController.prototype.discordReactToChat)), async function AiInstanceController_discordReactToChat(request: ExRequest, response: ExResponse, next: any) { const args: Record = { id: {"in":"path","name":"id","required":true,"ref":"UUID"}, body: {"in":"body","name":"body","required":true,"ref":"DiscordReactoToChatVmV1"}, }; // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa let validatedArgs: any[] = []; try { validatedArgs = templateService.getValidatedArgs({ args, request, response }); const container: IocContainer = typeof iocContainer === 'function' ? (iocContainer as IocContainerFactory)(request) : iocContainer; const controller: any = await container.get(AiInstanceController); if (typeof controller['setStatus'] === 'function') { controller.setStatus(undefined); } await templateService.apiHandler({ methodName: 'discordReactToChat', controller, response, next, validatedArgs, successStatus: 200, }); } catch (err) { return next(err); } }); // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa } // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa