diff --git a/packages/server/src/interfaces/livepeer.interface.ts b/packages/server/src/interfaces/livepeer.interface.ts index 45b302713..410f650b6 100644 --- a/packages/server/src/interfaces/livepeer.interface.ts +++ b/packages/server/src/interfaces/livepeer.interface.ts @@ -37,3 +37,13 @@ export interface LivepeerSDKResponse { multistreamTarget?: MultistreamTarget; error?: Record; } + +export interface LivepeerRecording { + id?: string; + playbackId?: string; + recordingUrl?: string; + mp4Url?: string; + name?: string; + createdAt?: number; + lastSeen?: number; +} diff --git a/packages/server/src/routes/routes.ts b/packages/server/src/routes/routes.ts index dce8f9753..26a8cf8d9 100644 --- a/packages/server/src/routes/routes.ts +++ b/packages/server/src/routes/routes.ts @@ -1,7 +1,8 @@ /* 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'; +import type { TsoaRoute } from '@tsoa/runtime'; +import { 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 { UserController } from './../controllers/user.controller'; // 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 @@ -1463,20 +1464,20 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + walletAddress: {"in":"path","name":"walletAddress","required":true,"dataType":"string"}, + }; app.get('/users/:walletAddress', ...(fetchMiddlewares(UserController)), ...(fetchMiddlewares(UserController.prototype.getUserById)), async function UserController_getUserById(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - walletAddress: {"in":"path","name":"walletAddress","required":true,"dataType":"string"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsUserController_getUserById, request, response }); const controller = new UserController(); @@ -1493,21 +1494,21 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + body: {"in":"body","name":"body","required":true,"ref":"CreateSupportTicketDto"}, + }; app.post('/Tickets', authenticateMiddleware([{"jwt":[]}]), ...(fetchMiddlewares(SupportController)), ...(fetchMiddlewares(SupportController.prototype.createTicket)), async function SupportController_createTicket(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - body: {"in":"body","name":"body","required":true,"ref":"CreateSupportTicketDto"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsSupportController_createTicket, request, response }); const controller = new SupportController(); @@ -1524,19 +1525,19 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + }; app.get('/Tickets', ...(fetchMiddlewares(SupportController)), ...(fetchMiddlewares(SupportController.prototype.getAllTickets)), async function SupportController_getAllTickets(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsSupportController_getAllTickets, request, response }); const controller = new SupportController(); @@ -1553,21 +1554,21 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + body: {"in":"body","name":"body","required":true,"ref":"CreateMultiStreamDto"}, + }; app.post('/streams/multistream', authenticateMiddleware([{"jwt":["org"]}]), ...(fetchMiddlewares(StreamController)), ...(fetchMiddlewares(StreamController.prototype.createMultiStream)), async function StreamController_createMultiStream(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - body: {"in":"body","name":"body","required":true,"ref":"CreateMultiStreamDto"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsStreamController_createMultiStream, request, response }); const controller = new StreamController(); @@ -1584,21 +1585,21 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + body: {"in":"body","name":"body","required":true,"ref":"DeleteMultiStreamDto"}, + }; app.delete('/streams/multistream', authenticateMiddleware([{"jwt":["org"]}]), ...(fetchMiddlewares(StreamController)), ...(fetchMiddlewares(StreamController.prototype.deleteMultiStream)), async function StreamController_deleteMultiStream(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - body: {"in":"body","name":"body","required":true,"ref":"DeleteMultiStreamDto"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsStreamController_deleteMultiStream, request, response }); const controller = new StreamController(); @@ -1615,20 +1616,20 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + body: {"in":"body","name":"body","required":true,"dataType":"any"}, + }; app.post('/streams/asset', ...(fetchMiddlewares(StreamController)), ...(fetchMiddlewares(StreamController.prototype.createAsset)), async function StreamController_createAsset(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - body: {"in":"body","name":"body","required":true,"dataType":"any"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsStreamController_createAsset, request, response }); const controller = new StreamController(); @@ -1645,20 +1646,20 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + streamId: {"in":"path","name":"streamId","required":true,"dataType":"string"}, + }; app.get('/streams/:streamId', ...(fetchMiddlewares(StreamController)), ...(fetchMiddlewares(StreamController.prototype.getStream)), async function StreamController_getStream(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - streamId: {"in":"path","name":"streamId","required":true,"dataType":"string"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsStreamController_getStream, request, response }); const controller = new StreamController(); @@ -1675,20 +1676,20 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + assetId: {"in":"path","name":"assetId","required":true,"dataType":"string"}, + }; app.get('/streams/asset/:assetId', ...(fetchMiddlewares(StreamController)), ...(fetchMiddlewares(StreamController.prototype.getAsset)), async function StreamController_getAsset(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - assetId: {"in":"path","name":"assetId","required":true,"dataType":"string"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsStreamController_getAsset, request, response }); const controller = new StreamController(); @@ -1705,20 +1706,20 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + assetId: {"in":"path","name":"assetId","required":true,"dataType":"string"}, + }; app.get('/streams/asset/url/:assetId', ...(fetchMiddlewares(StreamController)), ...(fetchMiddlewares(StreamController.prototype.getVideoUrl)), async function StreamController_getVideoUrl(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - assetId: {"in":"path","name":"assetId","required":true,"dataType":"string"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsStreamController_getVideoUrl, request, response }); const controller = new StreamController(); @@ -1735,20 +1736,20 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + assetId: {"in":"path","name":"assetId","required":true,"dataType":"string"}, + }; app.get('/streams/asset/phase-action/:assetId', ...(fetchMiddlewares(StreamController)), ...(fetchMiddlewares(StreamController.prototype.getPhaseAction)), async function StreamController_getPhaseAction(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - assetId: {"in":"path","name":"assetId","required":true,"dataType":"string"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsStreamController_getPhaseAction, request, response }); const controller = new StreamController(); @@ -1765,20 +1766,20 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + playbackId: {"in":"path","name":"playbackId","required":true,"dataType":"string"}, + }; app.get('/streams/metric/:playbackId', ...(fetchMiddlewares(StreamController)), ...(fetchMiddlewares(StreamController.prototype.getSessionMetrics)), async function StreamController_getSessionMetrics(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - playbackId: {"in":"path","name":"playbackId","required":true,"dataType":"string"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsStreamController_getSessionMetrics, request, response }); const controller = new StreamController(); @@ -1795,20 +1796,20 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + streamId: {"in":"path","name":"streamId","required":true,"dataType":"string"}, + }; app.get('/streams/recording/:streamId', ...(fetchMiddlewares(StreamController)), ...(fetchMiddlewares(StreamController.prototype.getStreamRecordings)), async function StreamController_getStreamRecordings(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - streamId: {"in":"path","name":"streamId","required":true,"dataType":"string"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsStreamController_getStreamRecordings, request, response }); const controller = new StreamController(); @@ -1825,20 +1826,20 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + assetId: {"in":"path","name":"assetId","required":true,"dataType":"string"}, + }; app.get('/streams/upload/:assetId', ...(fetchMiddlewares(StreamController)), ...(fetchMiddlewares(StreamController.prototype.uploadToIpfs)), async function StreamController_uploadToIpfs(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - assetId: {"in":"path","name":"assetId","required":true,"dataType":"string"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsStreamController_uploadToIpfs, request, response }); const controller = new StreamController(); @@ -1855,20 +1856,20 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + body: {"in":"body","name":"body","required":true,"ref":"CreateClipDto"}, + }; app.post('/streams/clip', ...(fetchMiddlewares(StreamController)), ...(fetchMiddlewares(StreamController.prototype.createClip)), async function StreamController_createClip(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - body: {"in":"body","name":"body","required":true,"ref":"CreateClipDto"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsStreamController_createClip, request, response }); const controller = new StreamController(); @@ -1885,20 +1886,20 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + body: {"in":"body","name":"body","required":true,"dataType":"any"}, + }; app.post('/streams/thumbnail/generate', ...(fetchMiddlewares(StreamController)), ...(fetchMiddlewares(StreamController.prototype.generateThumbnail)), async function StreamController_generateThumbnail(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - body: {"in":"body","name":"body","required":true,"dataType":"any"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsStreamController_generateThumbnail, request, response }); const controller = new StreamController(); @@ -1915,20 +1916,20 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + body: {"in":"body","name":"body","required":true,"dataType":"nestedObjectLiteral","nestedProperties":{"url":{"dataType":"string","required":true}}}, + }; app.post('/streams/hls', ...(fetchMiddlewares(StreamController)), ...(fetchMiddlewares(StreamController.prototype.getHls)), async function StreamController_getHls(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - body: {"in":"body","name":"body","required":true,"dataType":"nestedObjectLiteral","nestedProperties":{"url":{"dataType":"string","required":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 let validatedArgs: any[] = []; try { - validatedArgs = templateService.getValidatedArgs({ args, request, response }); + validatedArgs = templateService.getValidatedArgs({ args: argsStreamController_getHls, request, response }); const controller = new StreamController(); @@ -1945,21 +1946,21 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + body: {"in":"body","name":"body","required":true,"ref":"CreateStateDto"}, + }; app.post('/states', authenticateMiddleware([{"jwt":["org"]}]), ...(fetchMiddlewares(StateController)), ...(fetchMiddlewares(StateController.prototype.createState)), async function StateController_createState(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - body: {"in":"body","name":"body","required":true,"ref":"CreateStateDto"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsStateController_createState, request, response }); const controller = new StateController(); @@ -1976,22 +1977,22 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + stateId: {"in":"path","name":"stateId","required":true,"dataType":"string"}, + body: {"in":"body","name":"body","required":true,"ref":"UpdateStateDto"}, + }; app.put('/states/:stateId', authenticateMiddleware([{"jwt":["org"]}]), ...(fetchMiddlewares(StateController)), ...(fetchMiddlewares(StateController.prototype.updateState)), async function StateController_updateState(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - stateId: {"in":"path","name":"stateId","required":true,"dataType":"string"}, - body: {"in":"body","name":"body","required":true,"ref":"UpdateStateDto"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsStateController_updateState, request, response }); const controller = new StateController(); @@ -2008,24 +2009,24 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + eventId: {"in":"query","name":"eventId","dataType":"string"}, + sessionId: {"in":"query","name":"sessionId","dataType":"string"}, + eventSlug: {"in":"query","name":"eventSlug","dataType":"string"}, + type: {"in":"query","name":"type","dataType":"string"}, + status: {"in":"query","name":"status","dataType":"string"}, + }; app.get('/states', ...(fetchMiddlewares(StateController)), ...(fetchMiddlewares(StateController.prototype.getAllStates)), async function StateController_getAllStates(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - eventId: {"in":"query","name":"eventId","dataType":"string"}, - sessionId: {"in":"query","name":"sessionId","dataType":"string"}, - eventSlug: {"in":"query","name":"eventSlug","dataType":"string"}, - type: {"in":"query","name":"type","dataType":"string"}, - status: {"in":"query","name":"status","dataType":"string"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsStateController_getAllStates, request, response }); const controller = new StateController(); @@ -2042,21 +2043,21 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + body: {"in":"body","name":"body","required":true,"ref":"CreateStageDto"}, + }; app.post('/stages', authenticateMiddleware([{"jwt":["org"]}]), ...(fetchMiddlewares(StageController)), ...(fetchMiddlewares(StageController.prototype.createStage)), async function StageController_createStage(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - body: {"in":"body","name":"body","required":true,"ref":"CreateStageDto"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsStageController_createStage, request, response }); const controller = new StageController(); @@ -2073,21 +2074,21 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + body: {"in":"body","name":"body","required":true,"ref":"CreateHlsStageDto"}, + }; app.post('/stages/hls', authenticateMiddleware([{"jwt":["org"]}]), ...(fetchMiddlewares(StageController)), ...(fetchMiddlewares(StageController.prototype.createHlsStage)), async function StageController_createHlsStage(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - body: {"in":"body","name":"body","required":true,"ref":"CreateHlsStageDto"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsStageController_createHlsStage, request, response }); const controller = new StageController(); @@ -2104,22 +2105,22 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + stageId: {"in":"path","name":"stageId","required":true,"dataType":"string"}, + body: {"in":"body","name":"body","required":true,"ref":"UpdateStageDto"}, + }; app.put('/stages/:stageId', authenticateMiddleware([{"jwt":["org"]}]), ...(fetchMiddlewares(StageController)), ...(fetchMiddlewares(StageController.prototype.editStage)), async function StageController_editStage(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - stageId: {"in":"path","name":"stageId","required":true,"dataType":"string"}, - body: {"in":"body","name":"body","required":true,"ref":"UpdateStageDto"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsStageController_editStage, request, response }); const controller = new StageController(); @@ -2136,20 +2137,20 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + stageId: {"in":"path","name":"stageId","required":true,"dataType":"string"}, + }; app.get('/stages/:stageId', ...(fetchMiddlewares(StageController)), ...(fetchMiddlewares(StageController.prototype.getStageById)), async function StageController_getStageById(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - stageId: {"in":"path","name":"stageId","required":true,"dataType":"string"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsStageController_getStageById, request, response }); const controller = new StageController(); @@ -2166,20 +2167,20 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + published: {"in":"query","name":"published","dataType":"boolean"}, + }; app.get('/stages', ...(fetchMiddlewares(StageController)), ...(fetchMiddlewares(StageController.prototype.getAllStages)), async function StageController_getAllStages(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - published: {"in":"query","name":"published","dataType":"boolean"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsStageController_getAllStages, request, response }); const controller = new StageController(); @@ -2196,20 +2197,20 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + eventId: {"in":"path","name":"eventId","required":true,"dataType":"string"}, + }; app.get('/stages/event/:eventId', ...(fetchMiddlewares(StageController)), ...(fetchMiddlewares(StageController.prototype.getAllStagesForEvent)), async function StageController_getAllStagesForEvent(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - eventId: {"in":"path","name":"eventId","required":true,"dataType":"string"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsStageController_getAllStagesForEvent, request, response }); const controller = new StageController(); @@ -2226,22 +2227,22 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + organizationId: {"in":"path","name":"organizationId","required":true,"dataType":"string"}, + fromDate: {"in":"query","name":"fromDate","dataType":"string"}, + untilDate: {"in":"query","name":"untilDate","dataType":"string"}, + }; app.get('/stages/organization/:organizationId', ...(fetchMiddlewares(StageController)), ...(fetchMiddlewares(StageController.prototype.getAllStagesForOrganization)), async function StageController_getAllStagesForOrganization(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - organizationId: {"in":"path","name":"organizationId","required":true,"dataType":"string"}, - fromDate: {"in":"query","name":"fromDate","dataType":"string"}, - untilDate: {"in":"query","name":"untilDate","dataType":"string"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsStageController_getAllStagesForOrganization, request, response }); const controller = new StageController(); @@ -2258,22 +2259,22 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + stageId: {"in":"path","name":"stageId","required":true,"dataType":"string"}, + organizationId: {"in":"body","name":"organizationId","required":true,"ref":"OrgIdDto"}, + }; app.delete('/stages/:stageId', authenticateMiddleware([{"jwt":["org"]}]), ...(fetchMiddlewares(StageController)), ...(fetchMiddlewares(StageController.prototype.deleteStage)), async function StageController_deleteStage(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - stageId: {"in":"path","name":"stageId","required":true,"dataType":"string"}, - organizationId: {"in":"body","name":"organizationId","required":true,"ref":"OrgIdDto"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsStageController_deleteStage, request, response }); const controller = new StageController(); @@ -2290,21 +2291,21 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + body: {"in":"body","name":"body","required":true,"ref":"CreateLiveStreamDto"}, + }; app.post('/stages/livestream', authenticateMiddleware([{"jwt":["org"]}]), ...(fetchMiddlewares(StageController)), ...(fetchMiddlewares(StageController.prototype.youtubeStage)), async function StageController_youtubeStage(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - body: {"in":"body","name":"body","required":true,"ref":"CreateLiveStreamDto"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsStageController_youtubeStage, request, response }); const controller = new StageController(); @@ -2321,21 +2322,21 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + body: {"in":"body","name":"body","required":true,"ref":"CreateSpeakerDto"}, + }; app.post('/speakers', authenticateMiddleware([{"jwt":["org"]}]), ...(fetchMiddlewares(SpeakerController)), ...(fetchMiddlewares(SpeakerController.prototype.createSpeaker)), async function SpeakerController_createSpeaker(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - body: {"in":"body","name":"body","required":true,"ref":"CreateSpeakerDto"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsSpeakerController_createSpeaker, request, response }); const controller = new SpeakerController(); @@ -2352,20 +2353,20 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + speakerId: {"in":"path","name":"speakerId","required":true,"dataType":"string"}, + }; app.get('/speakers/:speakerId', ...(fetchMiddlewares(SpeakerController)), ...(fetchMiddlewares(SpeakerController.prototype.getSpeaker)), async function SpeakerController_getSpeaker(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - speakerId: {"in":"path","name":"speakerId","required":true,"dataType":"string"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsSpeakerController_getSpeaker, request, response }); const controller = new SpeakerController(); @@ -2382,20 +2383,20 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + eventId: {"in":"path","name":"eventId","required":true,"dataType":"string"}, + }; app.get('/speakers/event/:eventId', ...(fetchMiddlewares(SpeakerController)), ...(fetchMiddlewares(SpeakerController.prototype.getAllSpeakersForEvent)), async function SpeakerController_getAllSpeakersForEvent(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - eventId: {"in":"path","name":"eventId","required":true,"dataType":"string"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsSpeakerController_getAllSpeakersForEvent, request, response }); const controller = new SpeakerController(); @@ -2412,21 +2413,21 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + body: {"in":"body","name":"body","required":true,"ref":"CreateSessionDto"}, + }; app.post('/sessions', authenticateMiddleware([{"jwt":["org"]}]), ...(fetchMiddlewares(SessionController)), ...(fetchMiddlewares(SessionController.prototype.createSession)), async function SessionController_createSession(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - body: {"in":"body","name":"body","required":true,"ref":"CreateSessionDto"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsSessionController_createSession, request, response }); const controller = new SessionController(); @@ -2443,22 +2444,22 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + sessionId: {"in":"path","name":"sessionId","required":true,"dataType":"string"}, + body: {"in":"body","name":"body","required":true,"ref":"UpdateSessionDto"}, + }; app.put('/sessions/:sessionId', authenticateMiddleware([{"jwt":["org"]}]), ...(fetchMiddlewares(SessionController)), ...(fetchMiddlewares(SessionController.prototype.editSession)), async function SessionController_editSession(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - sessionId: {"in":"path","name":"sessionId","required":true,"dataType":"string"}, - body: {"in":"body","name":"body","required":true,"ref":"UpdateSessionDto"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsSessionController_editSession, request, response }); const controller = new SessionController(); @@ -2475,20 +2476,20 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + organizationId: {"in":"path","name":"organizationId","required":true,"dataType":"string"}, + }; app.get('/sessions/organization/:organizationId', ...(fetchMiddlewares(SessionController)), ...(fetchMiddlewares(SessionController.prototype.getOrgEventSessions)), async function SessionController_getOrgEventSessions(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - organizationId: {"in":"path","name":"organizationId","required":true,"dataType":"string"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsSessionController_getOrgEventSessions, request, response }); const controller = new SessionController(); @@ -2505,21 +2506,21 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + search: {"in":"query","name":"search","required":true,"dataType":"string"}, + organizationId: {"in":"query","name":"organizationId","dataType":"string"}, + }; app.get('/sessions/search', ...(fetchMiddlewares(SessionController)), ...(fetchMiddlewares(SessionController.prototype.filterSession)), async function SessionController_filterSession(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - search: {"in":"query","name":"search","required":true,"dataType":"string"}, - organizationId: {"in":"query","name":"organizationId","dataType":"string"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsSessionController_filterSession, request, response }); const controller = new SessionController(); @@ -2536,21 +2537,21 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + organizationSlug: {"in":"path","name":"organizationSlug","required":true,"dataType":"string"}, + search: {"in":"query","name":"search","required":true,"dataType":"string"}, + }; app.get('/sessions/:organizationSlug/search', ...(fetchMiddlewares(SessionController)), ...(fetchMiddlewares(SessionController.prototype.filterSessionByOrganisation)), async function SessionController_filterSessionByOrganisation(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - organizationSlug: {"in":"path","name":"organizationSlug","required":true,"dataType":"string"}, - search: {"in":"query","name":"search","required":true,"dataType":"string"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsSessionController_filterSessionByOrganisation, request, response }); const controller = new SessionController(); @@ -2567,20 +2568,20 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + sessionId: {"in":"path","name":"sessionId","required":true,"dataType":"string"}, + }; app.get('/sessions/:sessionId', ...(fetchMiddlewares(SessionController)), ...(fetchMiddlewares(SessionController.prototype.getSessionById)), async function SessionController_getSessionById(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - sessionId: {"in":"path","name":"sessionId","required":true,"dataType":"string"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsSessionController_getSessionById, request, response }); const controller = new SessionController(); @@ -2597,21 +2598,21 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + body: {"in":"body","name":"body","required":true,"ref":"Pick_UploadSessionDto.organizationId-or-sessionId_"}, + }; app.post('/sessions/transcriptions', authenticateMiddleware([{"jwt":["org"]}]), ...(fetchMiddlewares(SessionController)), ...(fetchMiddlewares(SessionController.prototype.sessionTranscriptions)), async function SessionController_sessionTranscriptions(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - body: {"in":"body","name":"body","required":true,"ref":"Pick_UploadSessionDto.organizationId-or-sessionId_"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsSessionController_sessionTranscriptions, request, response }); const controller = new SessionController(); @@ -2628,21 +2629,21 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + body: {"in":"body","name":"body","required":true,"ref":"UploadSessionDto"}, + }; app.post('/sessions/upload', authenticateMiddleware([{"jwt":["org"]}]), ...(fetchMiddlewares(SessionController)), ...(fetchMiddlewares(SessionController.prototype.uploadSessionToSocials)), async function SessionController_uploadSessionToSocials(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - body: {"in":"body","name":"body","required":true,"ref":"UploadSessionDto"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsSessionController_uploadSessionToSocials, request, response }); const controller = new SessionController(); @@ -2659,33 +2660,33 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + event: {"in":"query","name":"event","dataType":"string"}, + organizationId: {"in":"query","name":"organizationId","dataType":"string"}, + speaker: {"in":"query","name":"speaker","dataType":"string"}, + stageId: {"in":"query","name":"stageId","dataType":"string"}, + onlyVideos: {"in":"query","name":"onlyVideos","dataType":"boolean"}, + page: {"in":"query","name":"page","dataType":"double"}, + size: {"in":"query","name":"size","dataType":"double"}, + timestamp: {"in":"query","name":"timestamp","dataType":"double"}, + assetId: {"in":"query","name":"assetId","dataType":"string"}, + published: {"in":"query","name":"published","dataType":"string"}, + type: {"in":"query","name":"type","dataType":"string"}, + itemStatus: {"in":"query","name":"itemStatus","dataType":"string"}, + itemDate: {"in":"query","name":"itemDate","dataType":"string"}, + clipable: {"in":"query","name":"clipable","dataType":"boolean"}, + }; app.get('/sessions', ...(fetchMiddlewares(SessionController)), ...(fetchMiddlewares(SessionController.prototype.getAllSessions)), async function SessionController_getAllSessions(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - event: {"in":"query","name":"event","dataType":"string"}, - organizationId: {"in":"query","name":"organizationId","dataType":"string"}, - speaker: {"in":"query","name":"speaker","dataType":"string"}, - stageId: {"in":"query","name":"stageId","dataType":"string"}, - onlyVideos: {"in":"query","name":"onlyVideos","dataType":"boolean"}, - page: {"in":"query","name":"page","dataType":"double"}, - size: {"in":"query","name":"size","dataType":"double"}, - timestamp: {"in":"query","name":"timestamp","dataType":"double"}, - assetId: {"in":"query","name":"assetId","dataType":"string"}, - published: {"in":"query","name":"published","dataType":"string"}, - type: {"in":"query","name":"type","dataType":"string"}, - itemStatus: {"in":"query","name":"itemStatus","dataType":"string"}, - itemDate: {"in":"query","name":"itemDate","dataType":"string"}, - clipable: {"in":"query","name":"clipable","dataType":"boolean"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsSessionController_getAllSessions, request, response }); const controller = new SessionController(); @@ -2702,22 +2703,22 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + sessionId: {"in":"path","name":"sessionId","required":true,"dataType":"string"}, + organizationId: {"in":"body","name":"organizationId","required":true,"ref":"OrgIdDto"}, + }; app.delete('/sessions/:sessionId', authenticateMiddleware([{"jwt":["org"]}]), ...(fetchMiddlewares(SessionController)), ...(fetchMiddlewares(SessionController.prototype.deleteSession)), async function SessionController_deleteSession(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - sessionId: {"in":"path","name":"sessionId","required":true,"dataType":"string"}, - organizationId: {"in":"body","name":"organizationId","required":true,"ref":"OrgIdDto"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsSessionController_deleteSession, request, response }); const controller = new SessionController(); @@ -2734,21 +2735,21 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + body: {"in":"body","name":"body","required":true,"ref":"Pick_IScheduleImporterDto.url-or-type-or-organizationId_"}, + }; app.post('/schedule/import', authenticateMiddleware([{"jwt":["org"]}]), ...(fetchMiddlewares(ScheduleImporterController)), ...(fetchMiddlewares(ScheduleImporterController.prototype.importSchdeule)), async function ScheduleImporterController_importSchdeule(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - body: {"in":"body","name":"body","required":true,"ref":"Pick_IScheduleImporterDto.url-or-type-or-organizationId_"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsScheduleImporterController_importSchdeule, request, response }); const controller = new ScheduleImporterController(); @@ -2765,21 +2766,21 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + body: {"in":"body","name":"body","required":true,"ref":"Pick_IScheduleImporterDto.url-or-type-or-organizationId-or-stageId_"}, + }; app.post('/schedule/import/stage', authenticateMiddleware([{"jwt":["org"]}]), ...(fetchMiddlewares(ScheduleImporterController)), ...(fetchMiddlewares(ScheduleImporterController.prototype.importSchdeuleByStage)), async function ScheduleImporterController_importSchdeuleByStage(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - body: {"in":"body","name":"body","required":true,"ref":"Pick_IScheduleImporterDto.url-or-type-or-organizationId-or-stageId_"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsScheduleImporterController_importSchdeuleByStage, request, response }); const controller = new ScheduleImporterController(); @@ -2796,21 +2797,21 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + body: {"in":"body","name":"body","required":true,"dataType":"nestedObjectLiteral","nestedProperties":{"organizationId":{"dataType":"string","required":true},"scheduleId":{"dataType":"string","required":true}}}, + }; app.post('/schedule/import/save', authenticateMiddleware([{"jwt":["org"]}]), ...(fetchMiddlewares(ScheduleImporterController)), ...(fetchMiddlewares(ScheduleImporterController.prototype.save)), async function ScheduleImporterController_save(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - body: {"in":"body","name":"body","required":true,"dataType":"nestedObjectLiteral","nestedProperties":{"organizationId":{"dataType":"string","required":true},"scheduleId":{"dataType":"string","required":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 let validatedArgs: any[] = []; try { - validatedArgs = templateService.getValidatedArgs({ args, request, response }); + validatedArgs = templateService.getValidatedArgs({ args: argsScheduleImporterController_save, request, response }); const controller = new ScheduleImporterController(); @@ -2827,20 +2828,20 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + body: {"in":"body","name":"body","required":true,"ref":"PipedreamUploadDto"}, + }; app.post('/pipedream/upload', ...(fetchMiddlewares(PipedreamController)), ...(fetchMiddlewares(PipedreamController.prototype.uploadToDevcon)), async function PipedreamController_uploadToDevcon(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - body: {"in":"body","name":"body","required":true,"ref":"PipedreamUploadDto"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsPipedreamController_uploadToDevcon, request, response }); const controller = new PipedreamController(); @@ -2857,21 +2858,21 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + body: {"in":"body","name":"body","required":true,"ref":"CreateOrganizationDto"}, + }; app.post('/organizations', authenticateMiddleware([{"jwt":[]}]), ...(fetchMiddlewares(OrganizationController)), ...(fetchMiddlewares(OrganizationController.prototype.createOrganization)), async function OrganizationController_createOrganization(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - body: {"in":"body","name":"body","required":true,"ref":"CreateOrganizationDto"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsOrganizationController_createOrganization, request, response }); const controller = new OrganizationController(); @@ -2888,22 +2889,22 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + organizationId: {"in":"path","name":"organizationId","required":true,"dataType":"string"}, + body: {"in":"body","name":"body","required":true,"ref":"UpdateOrganizationDto"}, + }; app.put('/organizations/:organizationId', authenticateMiddleware([{"jwt":["org"]}]), ...(fetchMiddlewares(OrganizationController)), ...(fetchMiddlewares(OrganizationController.prototype.editOrganization)), async function OrganizationController_editOrganization(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - organizationId: {"in":"path","name":"organizationId","required":true,"dataType":"string"}, - body: {"in":"body","name":"body","required":true,"ref":"UpdateOrganizationDto"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsOrganizationController_editOrganization, request, response }); const controller = new OrganizationController(); @@ -2920,22 +2921,22 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + organizationId: {"in":"path","name":"organizationId","required":true,"dataType":"string"}, + body: {"in":"body","name":"body","required":true,"ref":"Pick_CreateOrganizationDto.address_"}, + }; app.put('/organizations/member/:organizationId', authenticateMiddleware([{"jwt":["org"]}]), ...(fetchMiddlewares(OrganizationController)), ...(fetchMiddlewares(OrganizationController.prototype.updateOrgMembers)), async function OrganizationController_updateOrgMembers(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - organizationId: {"in":"path","name":"organizationId","required":true,"dataType":"string"}, - body: {"in":"body","name":"body","required":true,"ref":"Pick_CreateOrganizationDto.address_"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsOrganizationController_updateOrgMembers, request, response }); const controller = new OrganizationController(); @@ -2952,20 +2953,20 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + organizationId: {"in":"path","name":"organizationId","required":true,"dataType":"string"}, + }; app.get('/organizations/:organizationId', ...(fetchMiddlewares(OrganizationController)), ...(fetchMiddlewares(OrganizationController.prototype.getOrganizationById)), async function OrganizationController_getOrganizationById(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - organizationId: {"in":"path","name":"organizationId","required":true,"dataType":"string"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsOrganizationController_getOrganizationById, request, response }); const controller = new OrganizationController(); @@ -2982,19 +2983,19 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + }; app.get('/organizations', ...(fetchMiddlewares(OrganizationController)), ...(fetchMiddlewares(OrganizationController.prototype.getAllOrganizations)), async function OrganizationController_getAllOrganizations(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsOrganizationController_getAllOrganizations, request, response }); const controller = new OrganizationController(); @@ -3011,21 +3012,21 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + organizationId: {"in":"path","name":"organizationId","required":true,"dataType":"string"}, + }; app.get('/organizations/member/:organizationId', authenticateMiddleware([{"jwt":["org"]}]), ...(fetchMiddlewares(OrganizationController)), ...(fetchMiddlewares(OrganizationController.prototype.getAllOrgMembers)), async function OrganizationController_getAllOrgMembers(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - organizationId: {"in":"path","name":"organizationId","required":true,"dataType":"string"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsOrganizationController_getAllOrgMembers, request, response }); const controller = new OrganizationController(); @@ -3042,21 +3043,21 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + organizationId: {"in":"path","name":"organizationId","required":true,"dataType":"string"}, + }; app.delete('/organizations/:organizationId', authenticateMiddleware([{"jwt":["org"]}]), ...(fetchMiddlewares(OrganizationController)), ...(fetchMiddlewares(OrganizationController.prototype.deleteOrganization)), async function OrganizationController_deleteOrganization(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - organizationId: {"in":"path","name":"organizationId","required":true,"dataType":"string"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsOrganizationController_deleteOrganization, request, response }); const controller = new OrganizationController(); @@ -3073,22 +3074,22 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + organizationId: {"in":"path","name":"organizationId","required":true,"dataType":"string"}, + body: {"in":"body","name":"body","required":true,"ref":"Pick_CreateOrganizationDto.address_"}, + }; app.delete('/organizations/member/:organizationId', authenticateMiddleware([{"jwt":["org"]}]), ...(fetchMiddlewares(OrganizationController)), ...(fetchMiddlewares(OrganizationController.prototype.deleteOrgMember)), async function OrganizationController_deleteOrgMember(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - organizationId: {"in":"path","name":"organizationId","required":true,"dataType":"string"}, - body: {"in":"body","name":"body","required":true,"ref":"Pick_CreateOrganizationDto.address_"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsOrganizationController_deleteOrgMember, request, response }); const controller = new OrganizationController(); @@ -3105,22 +3106,22 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + organizationId: {"in":"path","name":"organizationId","required":true,"dataType":"string"}, + body: {"in":"body","name":"body","required":true,"ref":"ISocials"}, + }; app.put('/organizations/socials/:organizationId', authenticateMiddleware([{"jwt":["org"]}]), ...(fetchMiddlewares(OrganizationController)), ...(fetchMiddlewares(OrganizationController.prototype.updateOrgSocials)), async function OrganizationController_updateOrgSocials(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - organizationId: {"in":"path","name":"organizationId","required":true,"dataType":"string"}, - body: {"in":"body","name":"body","required":true,"ref":"ISocials"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsOrganizationController_updateOrgSocials, request, response }); const controller = new OrganizationController(); @@ -3137,22 +3138,22 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + organizationId: {"in":"path","name":"organizationId","required":true,"dataType":"string"}, + body: {"in":"body","name":"body","required":true,"dataType":"nestedObjectLiteral","nestedProperties":{"destinationId":{"dataType":"string","required":true}}}, + }; app.delete('/organizations/socials/:organizationId', authenticateMiddleware([{"jwt":["org"]}]), ...(fetchMiddlewares(OrganizationController)), ...(fetchMiddlewares(OrganizationController.prototype.deleteOrgSocial)), async function OrganizationController_deleteOrgSocial(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - organizationId: {"in":"path","name":"organizationId","required":true,"dataType":"string"}, - body: {"in":"body","name":"body","required":true,"dataType":"nestedObjectLiteral","nestedProperties":{"destinationId":{"dataType":"string","required":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 let validatedArgs: any[] = []; try { - validatedArgs = templateService.getValidatedArgs({ args, request, response }); + validatedArgs = templateService.getValidatedArgs({ args: argsOrganizationController_deleteOrgSocial, request, response }); const controller = new OrganizationController(); @@ -3169,21 +3170,21 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + body: {"in":"body","name":"body","required":true,"ref":"CreateNftCollectionDto"}, + }; app.post('/collections', authenticateMiddleware([{"jwt":["org"]}]), ...(fetchMiddlewares(NftCollectionRouter)), ...(fetchMiddlewares(NftCollectionRouter.prototype.createNftCollection)), async function NftCollectionRouter_createNftCollection(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - body: {"in":"body","name":"body","required":true,"ref":"CreateNftCollectionDto"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsNftCollectionRouter_createNftCollection, request, response }); const controller = new NftCollectionRouter(); @@ -3200,21 +3201,21 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + body: {"in":"body","name":"body","required":true,"ref":"UpdateNftCollectionDto"}, + }; app.post('/collections/metadata/generate', authenticateMiddleware([{"jwt":["org"]}]), ...(fetchMiddlewares(NftCollectionRouter)), ...(fetchMiddlewares(NftCollectionRouter.prototype.generateNftMetadata)), async function NftCollectionRouter_generateNftMetadata(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - body: {"in":"body","name":"body","required":true,"ref":"UpdateNftCollectionDto"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsNftCollectionRouter_generateNftMetadata, request, response }); const controller = new NftCollectionRouter(); @@ -3231,22 +3232,22 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + collectionId: {"in":"path","name":"collectionId","required":true,"dataType":"string"}, + body: {"in":"body","name":"body","required":true,"ref":"UpdateNftCollectionDto"}, + }; app.put('/collections/:collectionId', authenticateMiddleware([{"jwt":["org"]}]), ...(fetchMiddlewares(NftCollectionRouter)), ...(fetchMiddlewares(NftCollectionRouter.prototype.updateNftCollection)), async function NftCollectionRouter_updateNftCollection(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - collectionId: {"in":"path","name":"collectionId","required":true,"dataType":"string"}, - body: {"in":"body","name":"body","required":true,"ref":"UpdateNftCollectionDto"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsNftCollectionRouter_updateNftCollection, request, response }); const controller = new NftCollectionRouter(); @@ -3263,19 +3264,19 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + }; app.get('/collections', ...(fetchMiddlewares(NftCollectionRouter)), ...(fetchMiddlewares(NftCollectionRouter.prototype.getAllCollections)), async function NftCollectionRouter_getAllCollections(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsNftCollectionRouter_getAllCollections, request, response }); const controller = new NftCollectionRouter(); @@ -3292,20 +3293,20 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + collectionId: {"in":"path","name":"collectionId","required":true,"dataType":"string"}, + }; app.get('/collections/:collectionId', ...(fetchMiddlewares(NftCollectionRouter)), ...(fetchMiddlewares(NftCollectionRouter.prototype.getNftCollectionById)), async function NftCollectionRouter_getNftCollectionById(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - collectionId: {"in":"path","name":"collectionId","required":true,"dataType":"string"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsNftCollectionRouter_getNftCollectionById, request, response }); const controller = new NftCollectionRouter(); @@ -3322,20 +3323,20 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + organizationId: {"in":"path","name":"organizationId","required":true,"dataType":"string"}, + }; app.get('/collections/organization/:organizationId', ...(fetchMiddlewares(NftCollectionRouter)), ...(fetchMiddlewares(NftCollectionRouter.prototype.getAllOrganizationNft)), async function NftCollectionRouter_getAllOrganizationNft(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - organizationId: {"in":"path","name":"organizationId","required":true,"dataType":"string"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsNftCollectionRouter_getAllOrganizationNft, request, response }); const controller = new NftCollectionRouter(); @@ -3352,21 +3353,21 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + body: {"in":"body","name":"body","required":true,"ref":"CreateMarkerDto"}, + }; app.post('/markers', authenticateMiddleware([{"jwt":["org"]}]), ...(fetchMiddlewares(MarkerController)), ...(fetchMiddlewares(MarkerController.prototype.createMarker)), async function MarkerController_createMarker(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - body: {"in":"body","name":"body","required":true,"ref":"CreateMarkerDto"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsMarkerController_createMarker, request, response }); const controller = new MarkerController(); @@ -3383,21 +3384,21 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + body: {"in":"body","name":"body","required":true,"ref":"UpdateMarkerDto"}, + }; app.put('/markers/bulk', authenticateMiddleware([{"jwt":["org"]}]), ...(fetchMiddlewares(MarkerController)), ...(fetchMiddlewares(MarkerController.prototype.updateMarkers)), async function MarkerController_updateMarkers(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - body: {"in":"body","name":"body","required":true,"ref":"UpdateMarkerDto"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsMarkerController_updateMarkers, request, response }); const controller = new MarkerController(); @@ -3414,22 +3415,22 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + markerId: {"in":"path","name":"markerId","required":true,"dataType":"string"}, + body: {"in":"body","name":"body","required":true,"ref":"CreateMarkerDto"}, + }; app.put('/markers/:markerId', authenticateMiddleware([{"jwt":["org"]}]), ...(fetchMiddlewares(MarkerController)), ...(fetchMiddlewares(MarkerController.prototype.updateMarker)), async function MarkerController_updateMarker(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - markerId: {"in":"path","name":"markerId","required":true,"dataType":"string"}, - body: {"in":"body","name":"body","required":true,"ref":"CreateMarkerDto"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsMarkerController_updateMarker, request, response }); const controller = new MarkerController(); @@ -3446,21 +3447,21 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + body: {"in":"body","name":"body","required":true,"dataType":"nestedObjectLiteral","nestedProperties":{"stageId":{"dataType":"string","required":true},"organizationId":{"dataType":"string","required":true},"type":{"dataType":"string","required":true},"url":{"dataType":"string","required":true}}}, + }; app.post('/markers/import', authenticateMiddleware([{"jwt":["org"]}]), ...(fetchMiddlewares(MarkerController)), ...(fetchMiddlewares(MarkerController.prototype.importMarkers)), async function MarkerController_importMarkers(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - body: {"in":"body","name":"body","required":true,"dataType":"nestedObjectLiteral","nestedProperties":{"stageId":{"dataType":"string","required":true},"organizationId":{"dataType":"string","required":true},"type":{"dataType":"string","required":true},"url":{"dataType":"string","required":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 let validatedArgs: any[] = []; try { - validatedArgs = templateService.getValidatedArgs({ args, request, response }); + validatedArgs = templateService.getValidatedArgs({ args: argsMarkerController_importMarkers, request, response }); const controller = new MarkerController(); @@ -3477,22 +3478,22 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + organization: {"in":"query","name":"organization","required":true,"dataType":"string"}, + stageId: {"in":"query","name":"stageId","required":true,"dataType":"string"}, + date: {"in":"query","name":"date","dataType":"string"}, + }; app.get('/markers', ...(fetchMiddlewares(MarkerController)), ...(fetchMiddlewares(MarkerController.prototype.getAllMarkers)), async function MarkerController_getAllMarkers(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - organization: {"in":"query","name":"organization","required":true,"dataType":"string"}, - stageId: {"in":"query","name":"stageId","required":true,"dataType":"string"}, - date: {"in":"query","name":"date","dataType":"string"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsMarkerController_getAllMarkers, request, response }); const controller = new MarkerController(); @@ -3509,21 +3510,21 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + markerId: {"in":"path","name":"markerId","required":true,"dataType":"string"}, + }; app.delete('/markers/:markerId', authenticateMiddleware([{"jwt":["org"]}]), ...(fetchMiddlewares(MarkerController)), ...(fetchMiddlewares(MarkerController.prototype.deleteMarker)), async function MarkerController_deleteMarker(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - markerId: {"in":"path","name":"markerId","required":true,"dataType":"string"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsMarkerController_deleteMarker, request, response }); const controller = new MarkerController(); @@ -3540,19 +3541,19 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + }; app.get('/', ...(fetchMiddlewares(IndexController)), ...(fetchMiddlewares(IndexController.prototype.index)), async function IndexController_index(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsIndexController_index, request, response }); const controller = new IndexController(); @@ -3569,23 +3570,28 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + file: {"in":"formData","name":"file","required":true,"dataType":"file"}, + directory: {"in":"formData","name":"directory","required":true,"dataType":"string"}, + }; app.post('/upload', authenticateMiddleware([{"jwt":[]}]), - upload.fields([{"name":"file","maxCount":1,"multiple":false}]), + upload.fields([ + { + name: "file", + maxCount: 1 + } + ]), ...(fetchMiddlewares(IndexController)), ...(fetchMiddlewares(IndexController.prototype.uploadImges)), async function IndexController_uploadImges(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - file: {"in":"formData","name":"file","required":true,"dataType":"file"}, - directory: {"in":"formData","name":"directory","required":true,"dataType":"string"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsIndexController_uploadImges, request, response }); const controller = new IndexController(); @@ -3602,21 +3608,21 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + livepeerSignature: {"in":"header","name":"livepeer-signature","required":true,"dataType":"string"}, + payload: {"in":"body","name":"payload","required":true,"dataType":"any"}, + }; app.post('/webhook', ...(fetchMiddlewares(IndexController)), ...(fetchMiddlewares(IndexController.prototype.webhook)), async function IndexController_webhook(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - livepeerSignature: {"in":"header","name":"livepeer-signature","required":true,"dataType":"string"}, - payload: {"in":"body","name":"payload","required":true,"dataType":"any"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsIndexController_webhook, request, response }); const controller = new IndexController(); @@ -3633,21 +3639,21 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + req: {"in":"request","name":"req","required":true,"dataType":"object"}, + payload: {"in":"body","name":"payload","required":true,"ref":"RemotionPayload"}, + }; app.post('/webhook/remotion', ...(fetchMiddlewares(IndexController)), ...(fetchMiddlewares(IndexController.prototype.webhookRemotion)), async function IndexController_webhookRemotion(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - req: {"in":"request","name":"req","required":true,"dataType":"object"}, - payload: {"in":"body","name":"payload","required":true,"ref":"RemotionPayload"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsIndexController_webhookRemotion, request, response }); const controller = new IndexController(); @@ -3664,21 +3670,21 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + body: {"in":"body","name":"body","required":true,"ref":"CreateEventDto"}, + }; app.post('/events', authenticateMiddleware([{"jwt":["org"]}]), ...(fetchMiddlewares(EventController)), ...(fetchMiddlewares(EventController.prototype.createEvent)), async function EventController_createEvent(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - body: {"in":"body","name":"body","required":true,"ref":"CreateEventDto"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsEventController_createEvent, request, response }); const controller = new EventController(); @@ -3695,20 +3701,20 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + eventId: {"in":"path","name":"eventId","required":true,"dataType":"string"}, + }; app.get('/events/:eventId', ...(fetchMiddlewares(EventController)), ...(fetchMiddlewares(EventController.prototype.getEventById)), async function EventController_getEventById(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - eventId: {"in":"path","name":"eventId","required":true,"dataType":"string"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsEventController_getEventById, request, response }); const controller = new EventController(); @@ -3725,22 +3731,22 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + eventId: {"in":"path","name":"eventId","required":true,"dataType":"string"}, + body: {"in":"body","name":"body","required":true,"ref":"UpdateEventDto"}, + }; app.put('/events/:eventId', authenticateMiddleware([{"jwt":["org"]}]), ...(fetchMiddlewares(EventController)), ...(fetchMiddlewares(EventController.prototype.editEvent)), async function EventController_editEvent(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - eventId: {"in":"path","name":"eventId","required":true,"dataType":"string"}, - body: {"in":"body","name":"body","required":true,"ref":"UpdateEventDto"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsEventController_editEvent, request, response }); const controller = new EventController(); @@ -3757,22 +3763,22 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + eventId: {"in":"path","name":"eventId","required":true,"dataType":"string"}, + organizationId: {"in":"body","name":"organizationId","required":true,"ref":"OrgIdDto"}, + }; app.put('/events/import/:eventId', authenticateMiddleware([{"jwt":["org"]}]), ...(fetchMiddlewares(EventController)), ...(fetchMiddlewares(EventController.prototype.evenImporter)), async function EventController_evenImporter(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - eventId: {"in":"path","name":"eventId","required":true,"dataType":"string"}, - organizationId: {"in":"body","name":"organizationId","required":true,"ref":"OrgIdDto"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsEventController_evenImporter, request, response }); const controller = new EventController(); @@ -3789,21 +3795,21 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + organizationId: {"in":"query","name":"organizationId","dataType":"string"}, + unlisted: {"in":"query","name":"unlisted","dataType":"boolean"}, + }; app.get('/events', ...(fetchMiddlewares(EventController)), ...(fetchMiddlewares(EventController.prototype.getAllEvents)), async function EventController_getAllEvents(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - organizationId: {"in":"query","name":"organizationId","dataType":"string"}, - unlisted: {"in":"query","name":"unlisted","dataType":"boolean"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsEventController_getAllEvents, request, response }); const controller = new EventController(); @@ -3820,22 +3826,22 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + eventId: {"in":"path","name":"eventId","required":true,"dataType":"string"}, + organizationId: {"in":"body","name":"organizationId","required":true,"ref":"OrgIdDto"}, + }; app.delete('/events/:eventId', authenticateMiddleware([{"jwt":["org"]}]), ...(fetchMiddlewares(EventController)), ...(fetchMiddlewares(EventController.prototype.deleteEvent)), async function EventController_deleteEvent(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - eventId: {"in":"path","name":"eventId","required":true,"dataType":"string"}, - organizationId: {"in":"body","name":"organizationId","required":true,"ref":"OrgIdDto"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsEventController_deleteEvent, request, response }); const controller = new EventController(); @@ -3852,21 +3858,21 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + body: {"in":"body","name":"body","required":true,"ref":"CreateChatDto"}, + }; app.post('/chats', authenticateMiddleware([{"jwt":[]}]), ...(fetchMiddlewares(ChatController)), ...(fetchMiddlewares(ChatController.prototype.createCHar)), async function ChatController_createCHar(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - body: {"in":"body","name":"body","required":true,"ref":"CreateChatDto"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsChatController_createCHar, request, response }); const controller = new ChatController(); @@ -3883,20 +3889,20 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + stageId: {"in":"path","name":"stageId","required":true,"dataType":"string"}, + }; app.get('/chats/:stageId', ...(fetchMiddlewares(ChatController)), ...(fetchMiddlewares(ChatController.prototype.getChatStageById)), async function ChatController_getChatStageById(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - stageId: {"in":"path","name":"stageId","required":true,"dataType":"string"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsChatController_getChatStageById, request, response }); const controller = new ChatController(); @@ -3913,20 +3919,20 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + body: {"in":"body","name":"body","required":true,"ref":"AuthDto"}, + }; app.post('/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":"AuthDto"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsAuthController_login, request, response }); const controller = new AuthController(); @@ -3943,20 +3949,20 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + body: {"in":"body","name":"body","required":true,"ref":"AuthDto"}, + }; app.post('/auth/verify-token', ...(fetchMiddlewares(AuthController)), ...(fetchMiddlewares(AuthController.prototype.verifyToken)), async function AuthController_verifyToken(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - body: {"in":"body","name":"body","required":true,"ref":"AuthDto"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsAuthController_verifyToken, request, response }); const controller = new AuthController(); @@ -3973,20 +3979,20 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + token: {"in":"header","name":"Authorization","required":true,"dataType":"string"}, + }; app.get('/auth/token', ...(fetchMiddlewares(AuthController)), ...(fetchMiddlewares(AuthController.prototype.getTokenPayload)), async function AuthController_getTokenPayload(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - token: {"in":"header","name":"Authorization","required":true,"dataType":"string"}, - }; // 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 }); + validatedArgs = templateService.getValidatedArgs({ args: argsAuthController_getTokenPayload, request, response }); const controller = new AuthController(); @@ -4003,20 +4009,20 @@ export function RegisterRoutes(app: Router,opts?:{multer?:ReturnType = { + body: {"in":"body","name":"body","required":true,"dataType":"nestedObjectLiteral","nestedProperties":{"email":{"dataType":"string","required":true}}}, + }; app.post('/auth/magic-link', ...(fetchMiddlewares(AuthController)), ...(fetchMiddlewares(AuthController.prototype.sendMagicLink)), async function AuthController_sendMagicLink(request: ExRequest, response: ExResponse, next: any) { - const args: Record = { - body: {"in":"body","name":"body","required":true,"dataType":"nestedObjectLiteral","nestedProperties":{"email":{"dataType":"string","required":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 let validatedArgs: any[] = []; try { - validatedArgs = templateService.getValidatedArgs({ args, request, response }); + validatedArgs = templateService.getValidatedArgs({ args: argsAuthController_sendMagicLink, request, response }); const controller = new AuthController(); diff --git a/packages/server/src/services/stage.service.ts b/packages/server/src/services/stage.service.ts index 98a55767a..cabb439da 100644 --- a/packages/server/src/services/stage.service.ts +++ b/packages/server/src/services/stage.service.ts @@ -144,7 +144,14 @@ export default class StageService { noWarnings: true, preferFreeFormats: true, addHeader: source.header, - }); + }) as { + formats: Array<{ + protocol: string; + ext: string; + resolution: string; + manifest_url: string; + }>; + }; const hlsFormat = output.formats.find( (format) => format.protocol === 'm3u8_native' && diff --git a/packages/server/src/utils/livepeer.ts b/packages/server/src/utils/livepeer.ts index e898dab6c..e573ccc5f 100644 --- a/packages/server/src/utils/livepeer.ts +++ b/packages/server/src/utils/livepeer.ts @@ -1,17 +1,27 @@ import { config } from '@config'; import { HttpException } from '@exceptions/HttpException'; import type { IMultiStream } from '@interfaces/stream.interface'; -import { LivepeerSDKResponse } from '@interfaces/livepeer.interface'; +import { LivepeerSDKResponse, LivepeerRecording } from '@interfaces/livepeer.interface'; import Organization from '@models/organization.model'; import Stage from '@models/stage.model'; import { Livepeer } from 'livepeer'; -import { Session, Stream } from 'livepeer/dist/models/components'; +import type { IStreamSettings } from '@interfaces/stage.interface'; import fetch from 'node-fetch'; import youtubedl from 'youtube-dl-exec'; import { refreshAccessToken } from './oauth'; import { fetchAndParseVTT, getSourceType } from './util'; import { deleteYoutubeLiveStream } from './youtube'; +// Define the youtube-dl output type since this is specific to the youtube-dl library +interface YoutubeDLOutput { + formats: Array<{ + protocol: string; + ext: string; + resolution: string; + manifest_url: string; + }>; +} + const { host, secretKey } = config.livepeer; const livepeer = new Livepeer({ apiKey: secretKey, @@ -64,7 +74,7 @@ export const deleteStream = async (streamId: string): Promise => { } }; -export const getStreamInfo = async (streamId: string): Promise => { +export const getStreamInfo = async (streamId: string): Promise => { try { const response = await fetch(`${host}/api/stream/${streamId}`, { method: 'get', @@ -243,24 +253,18 @@ export const getVideoPhaseAction = async ( } }; -export const getStreamRecordings = async (streamId: string): Promise => { +export const getStreamRecordings = async (streamId: string): Promise => { try { const parentStream = await getStreamInfo(streamId); - const recordings = ( - await livepeer.session.getRecorded(parentStream?.id ?? '') - ).classes; + const response = await livepeer.session.getRecorded(parentStream?.streamId ?? ''); + const recordings = response.data; if (!recordings) { - return { - parentStream, - recordings: [], - }; + return []; } - return { - parentStream, - recordings: JSON.parse(JSON.stringify(recordings)) as Session[], - }; + return recordings; } catch (e) { - throw new HttpException(400, 'Error fetching stream recordings'); + console.error(`Error fetching recordings:`, e); + return []; } }; @@ -440,33 +444,32 @@ export const getSessionMetrics = async ( export const getHlsUrl = async ( url: string, ): Promise<{ type: string; url: string }> => { - try { - let hlsUrl = ''; - const source = getSourceType(url); - if (source.type === 'youtube' || source.type === 'twitter') { - const output = await youtubedl(url, { - dumpSingleJson: true, - noWarnings: true, - preferFreeFormats: true, - addHeader: source.header, - }); - const hlsFormat = output.formats.find( - (format) => - format.protocol === 'm3u8_native' && - format.ext === 'mp4' && - source.resolutions?.includes(format.resolution), - ); - hlsUrl = hlsFormat.manifest_url; - } else { - hlsUrl = url; - } + const source = getSourceType(url); + if (source.type === 'youtube' || source.type === 'twitter') { + let output = await youtubedl(url, { + dumpSingleJson: true, + noWarnings: true, + preferFreeFormats: true, + addHeader: source.header, + }) as YoutubeDLOutput; + + const hlsFormat = output.formats.find( + (format) => + format.protocol === 'm3u8_native' && + format.ext === 'mp4' && + source.resolutions?.includes(format.resolution), + ); + return { type: source.type, - url: hlsUrl, + url: hlsFormat?.manifest_url || url, }; - } catch (e) { - throw new HttpException(400, 'Error getting HLS URL'); } + + return { + type: source.type, + url, + }; }; function sleep(ms: number) {