{"openapi":"3.0.1","info":{"title":"Co-pilot Service APIs","version":"v1.0.1"},"servers":[{"url":"/"}],"paths":{"/webhooks/ttvupdate":{"post":{"tags":["webhook-controller"],"operationId":"ttvStatusUpdate","parameters":[{"name":"apiKey","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookTtvStatusUpdate"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/webhooks/cache-clear":{"post":{"tags":["webhook-controller"],"operationId":"cacheClear","parameters":[{"name":"apiKey","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"object"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/v2/copilot/media":{"post":{"tags":["copilot-media-controller-v-2"],"operationId":"create","parameters":[{"name":"Tenant-Id","in":"header","description":"Company id of the user","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCopilotMediaRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CopilotMediaDtoV2"}}}}},"security":[{"Authorization":[]}]}},"/v2/copilot/media/{id}":{"get":{"tags":["copilot-media-controller-v-2"],"operationId":"get","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Tenant-Id","in":"header","description":"Company id of the user","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CopilotMediaDtoV2"}}}}},"security":[{"Authorization":[]}]},"post":{"tags":["copilot-media-controller-v-2"],"operationId":"update","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Tenant-Id","in":"header","description":"Company id of the user","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCopilotMediaRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CopilotMediaDtoV2"}}}}},"security":[{"Authorization":[]}]}},"/v2/copilot/media/generate":{"post":{"tags":["copilot-media-controller-v-2"],"operationId":"generateMedia","parameters":[{"name":"Tenant-Id","in":"header","description":"Company id of the user","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateMediaRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CopilotMediaDtoV2"}}}}},"security":[{"Authorization":[]}]}},"/v1/copilot/upload":{"post":{"tags":["upload-controller"],"operationId":"uploadFile","parameters":[{"name":"employeeCode","in":"query","required":true,"schema":{"type":"string"}},{"name":"Tenant-Id","in":"header","description":"Company id of the user","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"required":["file"],"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UploadFileDto"}}}}},"security":[{"Authorization":[]}]},"delete":{"tags":["upload-controller"],"operationId":"deleteFile","parameters":[{"name":"objectId","in":"query","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"employeeCode","in":"query","required":true,"schema":{"type":"string"}},{"name":"Tenant-Id","in":"header","description":"Company id of the user","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UploadFileDto"}}}}},"security":[{"Authorization":[]}]}},"/v1/copilot/upload/media":{"post":{"tags":["upload-controller"],"operationId":"uploadMediaFile","parameters":[{"name":"mediaId","in":"query","required":true,"schema":{"type":"string"}},{"name":"employeeCode","in":"query","required":true,"schema":{"type":"string"}},{"name":"Tenant-Id","in":"header","description":"Company id of the user","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"required":["file"],"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UploadFileDto"}}}}},"security":[{"Authorization":[]}]}},"/v1/copilot/prompt/quiz":{"post":{"tags":["copilot-prompt-controller"],"operationId":"textToQuiz","parameters":[{"name":"Tenant-Id","in":"header","description":"Company id of the user","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TextToQuizRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CopilotPromptQuizDto"}}}}},"security":[{"Authorization":[]}]}},"/v1/copilot/prompt/quiz/{id}":{"get":{"tags":["copilot-prompt-controller"],"operationId":"quizById","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"Tenant-Id","in":"header","description":"Company id of the user","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CopilotPromptQuizDto"}}}}},"security":[{"Authorization":[]}]},"post":{"tags":["copilot-prompt-controller"],"operationId":"updateQuiz","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"Tenant-Id","in":"header","description":"Company id of the user","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTextToQuizRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CopilotPromptQuizDto"}}}}},"security":[{"Authorization":[]}]},"delete":{"tags":["copilot-prompt-controller"],"operationId":"deleteQuiz","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"Tenant-Id","in":"header","description":"Company id of the user","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CopilotPromptQuizDto"}}}}},"security":[{"Authorization":[]}]}},"/v1/copilot/prompt/quiz/regenerate/{id}":{"post":{"tags":["copilot-prompt-controller"],"operationId":"regenerateQuiz","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"Tenant-Id","in":"header","description":"Company id of the user","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegenerateTextToQuizRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CopilotPromptQuizDto"}}}}},"security":[{"Authorization":[]}]}},"/v1/copilot/media":{"get":{"tags":["copilot-media-controller"],"operationId":"getAll","parameters":[{"name":"pageNumber","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":10}},{"name":"type","in":"query","required":false,"schema":{"type":"string","enum":["VIDEO","AUDIO"]}},{"name":"Tenant-Id","in":"header","description":"Company id of the user","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultsCopilotMediaListDto"}}}}},"security":[{"Authorization":[]}]},"post":{"tags":["copilot-media-controller"],"operationId":"create_1","parameters":[{"name":"Tenant-Id","in":"header","description":"Company id of the user","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCopilotMediaRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CopilotMediaDto"}}}}},"security":[{"Authorization":[]}]}},"/v1/copilot/media/{id}":{"get":{"tags":["copilot-media-controller"],"operationId":"get_1","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Tenant-Id","in":"header","description":"Company id of the user","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CopilotMediaDto"}}}}},"security":[{"Authorization":[]}]},"post":{"tags":["copilot-media-controller"],"operationId":"update_1","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Tenant-Id","in":"header","description":"Company id of the user","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCopilotMediaRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CopilotMediaDto"}}}}},"security":[{"Authorization":[]}]},"delete":{"tags":["copilot-media-controller"],"operationId":"delete","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Tenant-Id","in":"header","description":"Company id of the user","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CopilotMediaDto"}}}}},"security":[{"Authorization":[]}]}},"/v1/copilot/media/metadata/{copilotMediaId}":{"post":{"tags":["copilot-media-controller"],"operationId":"updateMetadata","parameters":[{"name":"copilotMediaId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Tenant-Id","in":"header","description":"Company id of the user","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateMetadataRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CopilotMediaDtoV2"}}}}},"security":[{"Authorization":[]}]}},"/v1/copilot/media/generate":{"post":{"tags":["copilot-media-controller"],"operationId":"generateMedia_1","parameters":[{"name":"Tenant-Id","in":"header","description":"Company id of the user","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateMediaRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CopilotMediaDto"}}}}},"security":[{"Authorization":[]}]}},"/v1/copilot/media/generate/video":{"post":{"tags":["copilot-media-controller"],"operationId":"generateVideo","parameters":[{"name":"Tenant-Id","in":"header","description":"Company id of the user","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateMediaRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CopilotMediaDtoV2"}}}}},"security":[{"Authorization":[]}]}},"/v1/copilot/media/generate/audio":{"post":{"tags":["copilot-media-controller"],"operationId":"generateAudio","parameters":[{"name":"Tenant-Id","in":"header","description":"Company id of the user","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateAudioRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CopilotMediaDtoV2"}}}}},"security":[{"Authorization":[]}]}},"/v1/copilot/account":{"get":{"tags":["copilot-account-controller"],"operationId":"getAccount","parameters":[{"name":"Tenant-Id","in":"header","description":"Company id of the user","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CopilotAccountDto"}}}}},"security":[{"Authorization":[]}]},"post":{"tags":["copilot-account-controller"],"operationId":"createAccount","parameters":[{"name":"Tenant-Id","in":"header","description":"Company id of the user","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CopilotAccountCreateRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CopilotAccountDto"}}}}},"security":[{"Authorization":[]}]}},"/v1/copilot/prompt":{"get":{"tags":["copilot-prompt-controller"],"operationId":"getPrompts","parameters":[{"name":"pageNumber","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":10}},{"name":"type","in":"query","required":false,"schema":{"type":"string","enum":["QUIZ_GENERATOR"]}},{"name":"Tenant-Id","in":"header","description":"Company id of the user","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageResultsCopilotPromptDto"}}}}},"security":[{"Authorization":[]}]}},"/v1/copilot/media/progress/{mediaId}":{"get":{"tags":["copilot-media-controller"],"operationId":"getProgress","parameters":[{"name":"mediaId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Tenant-Id","in":"header","description":"Company id of the user","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ProgressJsonDto"}}}}},"security":[{"Authorization":[]}]}},"/v1/copilot/health":{"get":{"tags":["health-controller"],"operationId":"health","parameters":[{"name":"Tenant-Id","in":"header","description":"Company id of the user","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}},"security":[{"Authorization":[]}]}},"/v1/copilot/app/cache/clear/employee":{"get":{"tags":["app-cache-controller"],"operationId":"clearCacheEmployee","parameters":[{"name":"Tenant-Id","in":"header","description":"Company id of the user","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}},"security":[{"Authorization":[]}]}},"/v1/copilot/app/cache/clear/company":{"get":{"tags":["app-cache-controller"],"operationId":"clearCacheCompany","parameters":[{"name":"Tenant-Id","in":"header","description":"Company id of the user","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}},"security":[{"Authorization":[]}]}},"/v1/copilot/account/plans":{"get":{"tags":["copilot-account-controller"],"operationId":"getPlans","parameters":[{"name":"Tenant-Id","in":"header","description":"Company id of the user","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CopilotAccountPlanDto"}}}}}},"security":[{"Authorization":[]}]}}},"components":{"schemas":{"WebhookTtvStatusUpdate":{"required":["mediaId"],"type":"object","properties":{"mediaId":{"type":"string"}}},"CreateCopilotMediaRequest":{"required":["employeeCode","name"],"type":"object","properties":{"name":{"type":"string"},"languageCode":{"type":"string"},"gender":{"type":"string","enum":["MALE","FEMALE"]},"format":{"type":"string","enum":["VIDEO","AUDIO"]},"aspectRatio":{"type":"string","enum":["PORTRAIT","LANDSCAPE","SQUARE","NONE"]},"sourceType":{"type":"string","enum":["PPT","TEXT"]},"sourceObjectId":{"type":"integer","format":"int64"},"employeeCode":{"type":"string"},"voiceName":{"type":"string"},"pitch":{"type":"number","format":"double"},"speechRate":{"type":"number","format":"double"},"volume":{"type":"number","format":"double"},"provider":{"type":"string"}}},"CopilotMediaDtoV2":{"required":["aspectRatio","createdAt","createdByCode","createdByName","format","gender","generateStatus","id","languageCode","name","pitch","provider","speechRate","voiceName","volume"],"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"format":{"type":"string"},"aspectRatio":{"type":"string"},"languageCode":{"type":"string"},"gender":{"type":"string"},"voiceName":{"type":"string"},"pitch":{"type":"number","format":"double"},"speechRate":{"type":"number","format":"double"},"volume":{"type":"number","format":"double"},"provider":{"type":"string"},"generateStatus":{"type":"string"},"createdAt":{"type":"string"},"createdByName":{"type":"string"},"createdByCode":{"type":"string"},"metadata":{"$ref":"#/components/schemas/CopilotMediaMetadataDtoV2"}}},"CopilotMediaMetadataContentDtoV2":{"required":["id","layers","scenes","settings"],"type":"object","properties":{"id":{"type":"string"},"scenes":{"type":"array","items":{"$ref":"#/components/schemas/CopilotMediaMetadataContentSceneDtoV2"}},"layers":{"type":"array","items":{"$ref":"#/components/schemas/CopilotMediaMetadataContentSceneLayerDto"}},"settings":{"$ref":"#/components/schemas/CopilotMetadataContentSettingsDto"}}},"CopilotMediaMetadataContentSceneDtoV2":{"required":["id","index"],"type":"object","properties":{"id":{"type":"string"},"index":{"type":"integer","format":"int32"}}},"CopilotMediaMetadataContentSceneLayerDataAudioDto":{"required":["mediaDetails"],"type":"object","properties":{"mediaDetails":{"$ref":"#/components/schemas/CopilotMediaMetadataMediaDetailsDto"}}},"CopilotMediaMetadataContentSceneLayerDataDto":{"type":"object","properties":{"content":{"type":"string"},"elements":{"type":"array","items":{"$ref":"#/components/schemas/CopilotMediaMetadataContentSceneLayerDataLayoutDto"}},"voiceDetails":{"$ref":"#/components/schemas/CopilotMediaMetadataContentSceneLayerDataVoiceDto"},"audioDetails":{"$ref":"#/components/schemas/CopilotMediaMetadataContentSceneLayerDataAudioDto"}}},"CopilotMediaMetadataContentSceneLayerDataLayoutDto":{"required":["mediaDetails","type"],"type":"object","properties":{"type":{"type":"string"},"mediaDetails":{"$ref":"#/components/schemas/CopilotMediaMetadataMediaDetailsDto"}}},"CopilotMediaMetadataContentSceneLayerDataVoiceDto":{"required":["mediaDetails"],"type":"object","properties":{"mediaDetails":{"$ref":"#/components/schemas/CopilotMediaMetadataMediaDetailsDto"}}},"CopilotMediaMetadataContentSceneLayerDto":{"required":["attributes","data","id","index","sceneId","type"],"type":"object","properties":{"id":{"type":"string"},"sceneId":{"type":"string"},"index":{"type":"integer","format":"int32"},"attributes":{"type":"object","additionalProperties":{"type":"object"}},"type":{"type":"string"},"data":{"$ref":"#/components/schemas/CopilotMediaMetadataContentSceneLayerDataDto"}}},"CopilotMediaMetadataDtoV2":{"required":["content"],"type":"object","properties":{"content":{"$ref":"#/components/schemas/CopilotMediaMetadataContentDtoV2"},"generatedDetails":{"$ref":"#/components/schemas/CopilotMediaMetadataMediaDetailsDto"}}},"CopilotMediaMetadataMediaDetailsDto":{"required":["filePath","id","type"],"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"filePath":{"type":"string"}}},"CopilotMetadataContentSettingsDto":{"required":["bgMusic"],"type":"object","properties":{"bgMusic":{"type":"string"}}},"UpdateCopilotMediaRequest":{"required":["name"],"type":"object","properties":{"name":{"type":"string"},"gender":{"type":"string","enum":["MALE","FEMALE"]},"languageCode":{"type":"string"},"voiceName":{"type":"string"},"pitch":{"type":"number","format":"double"},"speechRate":{"type":"number","format":"double"},"volume":{"type":"number","format":"double"},"provider":{"type":"string"}}},"GenerateMediaRequest":{"required":["mediaId","scenes"],"type":"object","properties":{"mediaId":{"type":"string"},"scenes":{"type":"array","items":{"$ref":"#/components/schemas/GenerateMediaSceneRequest"}}}},"GenerateMediaSceneRequest":{"required":["sceneId"],"type":"object","properties":{"sceneId":{"type":"string"},"voiceOver":{"type":"string"},"image":{"type":"string"},"attributes":{"type":"object","additionalProperties":{"type":"object"}}}},"UploadFileDto":{"required":["filePath","id"],"type":"object","properties":{"id":{"type":"integer","format":"int64"},"filePath":{"type":"string"}}},"TextToQuizRequest":{"required":["content","employeeCode","numOptions","numQuestions","title"],"type":"object","properties":{"title":{"type":"string"},"employeeCode":{"type":"string"},"content":{"type":"string"},"numQuestions":{"type":"integer","format":"int32"},"numOptions":{"type":"integer","format":"int32"}}},"CopilotPromptQuizDataDto":{"required":["content","items","numOptions","numQuestions"],"type":"object","properties":{"content":{"type":"string"},"numQuestions":{"type":"integer","format":"int32"},"numOptions":{"type":"integer","format":"int32"},"items":{"type":"array","items":{"$ref":"#/components/schemas/CopilotPromptQuizDataItemDto"}}}},"CopilotPromptQuizDataItemDto":{"required":["answer","options","question"],"type":"object","properties":{"question":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"answer":{"type":"string"}}},"CopilotPromptQuizDto":{"required":["data","id","name"],"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"data":{"$ref":"#/components/schemas/CopilotPromptQuizDataDto"}}},"UpdateTextToQuizRequest":{"required":["title"],"type":"object","properties":{"title":{"type":"string"}}},"RegenerateTextToQuizRequest":{"required":["content","numOptions","numQuestions"],"type":"object","properties":{"content":{"type":"string"},"numQuestions":{"type":"integer","format":"int32"},"numOptions":{"type":"integer","format":"int32"}}},"CopilotMediaDto":{"required":["aspectRatio","createdAt","createdByCode","createdByName","format","gender","generateStatus","id","languageCode","name"],"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"format":{"type":"string"},"aspectRatio":{"type":"string"},"languageCode":{"type":"string"},"gender":{"type":"string"},"generateStatus":{"type":"string"},"createdAt":{"type":"string"},"createdByName":{"type":"string"},"createdByCode":{"type":"string"},"metadata":{"$ref":"#/components/schemas/CopilotMediaMetadataDto"}}},"CopilotMediaMetadataContentDto":{"required":["id","scenes"],"type":"object","properties":{"id":{"type":"string"},"scenes":{"type":"array","items":{"$ref":"#/components/schemas/CopilotMediaMetadataContentSceneDtoLite"}}}},"CopilotMediaMetadataContentSceneDtoLite":{"required":["id","image","index","voiceOver"],"type":"object","properties":{"id":{"type":"string"},"index":{"type":"integer","format":"int32"},"voiceOver":{"type":"string"},"image":{"type":"string"}}},"CopilotMediaMetadataDto":{"required":["content"],"type":"object","properties":{"content":{"$ref":"#/components/schemas/CopilotMediaMetadataContentDto"},"generatedDetails":{"$ref":"#/components/schemas/CopilotMediaMetadataMediaDetailsDto"}}},"UpdateMetadataRequest":{"required":["type"],"type":"object","properties":{"type":{"type":"string","enum":["REPLACE_LAYER_IMAGE","DELETE_SCENE","MOVE_SCENE","REPLACE_CONTENT","UPDATE_VOICEOVER","UPDATE_BG_MUSIC"]},"layerId":{"type":"string"},"sceneId":{"type":"string"},"objectId":{"type":"integer","format":"int64"},"voiceOver":{"type":"string"},"direction":{"type":"string"},"attributes":{"type":"object","additionalProperties":{"type":"object"}}}},"GenerateAudioRequest":{"required":["mediaId","text"],"type":"object","properties":{"mediaId":{"type":"string"},"text":{"type":"string"},"gender":{"type":"string","enum":["MALE","FEMALE"]},"languageCode":{"type":"string"},"speechRate":{"type":"number","format":"double"},"voiceName":{"type":"string"},"pitch":{"type":"number","format":"double"},"volume":{"type":"number","format":"double"},"provider":{"type":"string"}}},"CopilotAccountCreateRequest":{"required":["planId"],"type":"object","properties":{"planId":{"type":"integer","format":"int64"}}},"CopilotAccountCreditDto":{"required":["accountId","credits","expireDate","id","type"],"type":"object","properties":{"id":{"type":"integer","format":"int64"},"accountId":{"type":"integer","format":"int64"},"type":{"type":"string"},"credits":{"type":"number","format":"double"},"expireDate":{"type":"string"}}},"CopilotAccountDto":{"required":["accountType","credits","id","tenantId"],"type":"object","properties":{"id":{"type":"integer","format":"int64"},"tenantId":{"type":"string"},"accountType":{"type":"string"},"credits":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/CopilotAccountCreditDto"}}}},"CopilotPromptDto":{"required":["createdAt","createdBy","id","name"],"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"}}},"PageResultsCopilotPromptDto":{"required":["entities","total"],"type":"object","properties":{"entities":{"type":"array","items":{"$ref":"#/components/schemas/CopilotPromptDto"}},"total":{"type":"integer","format":"int32"}}},"CopilotMediaListDto":{"required":["aspectRatio","createdAt","createdByCode","createdByName","duration","format","gender","generateStatus","id","languageCode","name"],"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"format":{"type":"string"},"aspectRatio":{"type":"string"},"languageCode":{"type":"string"},"gender":{"type":"string"},"generateStatus":{"type":"string"},"duration":{"type":"number","format":"double"},"createdByCode":{"type":"string"},"createdByName":{"type":"string"},"createdAt":{"type":"string"}}},"PageResultsCopilotMediaListDto":{"required":["entities","total"],"type":"object","properties":{"entities":{"type":"array","items":{"$ref":"#/components/schemas/CopilotMediaListDto"}},"total":{"type":"integer","format":"int32"}}},"ProgressJsonDto":{"required":["duration","lastUpdatedTimestamp","progress","status"],"type":"object","properties":{"progress":{"type":"integer","format":"int32"},"lastUpdatedTimestamp":{"type":"integer","format":"int64"},"duration":{"type":"number","format":"double"},"status":{"type":"string"}}},"CopilotAccountPlanDto":{"required":["id","name","promptQuizCredits","ttsCredits","videoCredits"],"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"ttsCredits":{"type":"integer","format":"int32"},"videoCredits":{"type":"integer","format":"int32"},"promptQuizCredits":{"type":"integer","format":"int32"}}}},"securitySchemes":{"Authorization":{"type":"http","in":"header","scheme":"bearer","bearerFormat":"JWT"}}}}