jbilcke-hf HF staff commited on
Commit
70e2a28
1 Parent(s): 58132fb

prepare support for actual videos

Browse files
package-lock.json CHANGED
@@ -9,7 +9,7 @@
9
  "version": "0.0.0",
10
  "dependencies": {
11
  "@aitube/clap": "0.0.7",
12
- "@aitube/client": "0.0.7",
13
  "@radix-ui/react-accordion": "^1.1.2",
14
  "@radix-ui/react-avatar": "^1.0.4",
15
  "@radix-ui/react-checkbox": "^1.0.4",
@@ -74,9 +74,9 @@
74
  }
75
  },
76
  "node_modules/@aitube/client": {
77
- "version": "0.0.7",
78
- "resolved": "https://registry.npmjs.org/@aitube/client/-/client-0.0.7.tgz",
79
- "integrity": "sha512-s6vxst7pkLt7tI96JS508gfk4EgdLJy5Itr76ej/zvtMRMgnKgAlfB6Bb8/1u7L5CToz4Wgk6h4kz8T+yEbEeg==",
80
  "dependencies": {
81
  "uuid": "^9.0.1",
82
  "yaml": "^2.4.1"
 
9
  "version": "0.0.0",
10
  "dependencies": {
11
  "@aitube/clap": "0.0.7",
12
+ "@aitube/client": "0.0.8",
13
  "@radix-ui/react-accordion": "^1.1.2",
14
  "@radix-ui/react-avatar": "^1.0.4",
15
  "@radix-ui/react-checkbox": "^1.0.4",
 
74
  }
75
  },
76
  "node_modules/@aitube/client": {
77
+ "version": "0.0.8",
78
+ "resolved": "https://registry.npmjs.org/@aitube/client/-/client-0.0.8.tgz",
79
+ "integrity": "sha512-GZiu5+8d6eENfrvRetJpIsRkU8W3AiC6sNh05H/9eahMWxaMrcn2wD6j8N9+c1gVy/nnLGrFmCyhfch1hnMVHg==",
80
  "dependencies": {
81
  "uuid": "^9.0.1",
82
  "yaml": "^2.4.1"
package.json CHANGED
@@ -10,7 +10,7 @@
10
  },
11
  "dependencies": {
12
  "@aitube/clap": "0.0.7",
13
- "@aitube/client": "0.0.7",
14
  "@radix-ui/react-accordion": "^1.1.2",
15
  "@radix-ui/react-avatar": "^1.0.4",
16
  "@radix-ui/react-checkbox": "^1.0.4",
 
10
  },
11
  "dependencies": {
12
  "@aitube/clap": "0.0.7",
13
+ "@aitube/client": "0.0.8",
14
  "@radix-ui/react-accordion": "^1.1.2",
15
  "@radix-ui/react-avatar": "^1.0.4",
16
  "@radix-ui/react-checkbox": "^1.0.4",
src/app/server/aitube/editClapVideos.ts ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use server"
2
+
3
+ import { ClapProject } from "@aitube/clap"
4
+ import { editClapVideos as apiEditClapvideos } from "@aitube/client"
5
+
6
+ import { getToken } from "./getToken"
7
+
8
+ export async function editClapVideos({
9
+ clap,
10
+ }: {
11
+ clap: ClapProject
12
+ }): Promise<ClapProject> {
13
+ const newClap: ClapProject = await apiEditClapVideos({
14
+ clap,
15
+ token: await getToken()
16
+ })
17
+
18
+ return newClap
19
+ }