File size: 449 Bytes
70e2a28
 
 
93ad82e
70e2a28
 
 
 
 
 
 
 
 
 
93ad82e
70e2a28
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
"use server"

import { ClapProject } from "@aitube/clap"
import { editClapVideos as apiEditClapVideos, ClapCompletionMode } from "@aitube/client"

import { getToken } from "./getToken"

export async function editClapVideos({
  clap,
}: {
  clap: ClapProject
}): Promise<ClapProject> {
  const newClap: ClapProject = await apiEditClapVideos({
    clap,
    completionMode: ClapCompletionMode.FULL,
    token: await getToken()
  })

  return newClap
}