jbilcke-hf HF staff commited on
Commit
647daf0
1 Parent(s): e921d2d

fix migration to the latest version of @aitube/clap

Browse files
src/app/api/parsers/parseCompletionMode.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ClapCompletionMode } from "@aitube/client"
2
 
3
  export function parseCompletionMode(
4
  input?: any,
 
1
+ import { ClapCompletionMode } from "@aitube/clap"
2
 
3
  export function parseCompletionMode(
4
  input?: any,
src/app/api/v1/edit/dialogues/processShot.ts CHANGED
@@ -8,7 +8,7 @@ import {
8
  ClapSegmentCategory,
9
  ClapSegmentStatus
10
  } from "@aitube/clap"
11
- import { ClapCompletionMode } from "@aitube/client"
12
  import { getSpeechBackgroundAudioPrompt } from "@aitube/engine"
13
 
14
  import { generateSpeechWithParlerTTS } from "@/app/api/generators/speech/generateVoiceWithParlerTTS"
 
8
  ClapSegmentCategory,
9
  ClapSegmentStatus
10
  } from "@aitube/clap"
11
+ import { ClapCompletionMode } from "@aitube/clap"
12
  import { getSpeechBackgroundAudioPrompt } from "@aitube/engine"
13
 
14
  import { generateSpeechWithParlerTTS } from "@/app/api/generators/speech/generateVoiceWithParlerTTS"
src/app/api/v1/edit/dialogues/route.ts CHANGED
@@ -1,7 +1,7 @@
1
  import { NextResponse, NextRequest } from "next/server"
2
  import queryString from "query-string"
3
  import { ClapProject, ClapSegment, ClapSegmentCategory, newClap, parseClap, serializeClap } from "@aitube/clap"
4
- import { ClapCompletionMode } from "@aitube/client"
5
 
6
  import { parseCompletionMode } from "@/app/api/parsers/parseCompletionMode"
7
  import { throwIfInvalidToken } from "@/app/api/v1/auth/throwIfInvalidToken"
 
1
  import { NextResponse, NextRequest } from "next/server"
2
  import queryString from "query-string"
3
  import { ClapProject, ClapSegment, ClapSegmentCategory, newClap, parseClap, serializeClap } from "@aitube/clap"
4
+ import { ClapCompletionMode } from "@aitube/clap"
5
 
6
  import { parseCompletionMode } from "@/app/api/parsers/parseCompletionMode"
7
  import { throwIfInvalidToken } from "@/app/api/v1/auth/throwIfInvalidToken"
src/app/api/v1/edit/entities/index.ts CHANGED
@@ -1,6 +1,6 @@
1
 
2
- import { ClapProject, ClapSegmentCategory, getClapAssetSourceType, getValidNumber, newEntity } from "@aitube/clap"
3
- import { ClapCompletionMode, ClapEntityPrompt } from "@aitube/client"
4
 
5
  import { generateImageID } from "./generateImageID"
6
  import { generateAudioID } from "./generateAudioID"
 
1
 
2
+ import { ClapProject, ClapCompletionMode, ClapSegmentCategory, getClapAssetSourceType, getValidNumber, newEntity } from "@aitube/clap"
3
+ import { ClapEntityPrompt } from "@aitube/client"
4
 
5
  import { generateImageID } from "./generateImageID"
6
  import { generateAudioID } from "./generateAudioID"
src/app/api/v1/edit/entities/route.ts CHANGED
@@ -7,7 +7,7 @@ import { parseClapEntityPrompts } from "@/app/api/parsers/parseEntityPrompts"
7
  import { throwIfInvalidToken } from "@/app/api/v1/auth/throwIfInvalidToken"
8
 
9
  import { editEntities } from "."
10
- import { ClapCompletionMode } from "@aitube/client"
11
  import { parseTurbo } from "@/app/api/parsers/parseTurbo"
12
 
13
  export async function POST(req: NextRequest) {
 
7
  import { throwIfInvalidToken } from "@/app/api/v1/auth/throwIfInvalidToken"
8
 
9
  import { editEntities } from "."
10
+ import { ClapCompletionMode } from "@aitube/clap"
11
  import { parseTurbo } from "@/app/api/parsers/parseTurbo"
12
 
13
  export async function POST(req: NextRequest) {
src/app/api/v1/edit/music/generateMusic.ts CHANGED
@@ -9,7 +9,7 @@ import {
9
  ClapSegmentStatus,
10
  newSegment
11
  } from "@aitube/clap"
12
- import { ClapCompletionMode } from "@aitube/client"
13
  import { getSpeechBackgroundAudioPrompt } from "@aitube/engine"
14
 
15
  import { generateSpeechWithParlerTTS } from "@/app/api/generators/speech/generateVoiceWithParlerTTS"
 
9
  ClapSegmentStatus,
10
  newSegment
11
  } from "@aitube/clap"
12
+ import { ClapCompletionMode } from "@aitube/clap"
13
  import { getSpeechBackgroundAudioPrompt } from "@aitube/engine"
14
 
15
  import { generateSpeechWithParlerTTS } from "@/app/api/generators/speech/generateVoiceWithParlerTTS"
src/app/api/v1/edit/music/route.ts CHANGED
@@ -1,7 +1,7 @@
1
  import { NextResponse, NextRequest } from "next/server"
2
  import queryString from "query-string"
3
  import { ClapProject, ClapSegment, ClapSegmentCategory, ClapSegmentStatus, newClap, parseClap, serializeClap } from "@aitube/clap"
4
- import { ClapCompletionMode } from "@aitube/client"
5
 
6
  import { parseCompletionMode } from "@/app/api/parsers/parseCompletionMode"
7
  import { throwIfInvalidToken } from "@/app/api/v1/auth/throwIfInvalidToken"
 
1
  import { NextResponse, NextRequest } from "next/server"
2
  import queryString from "query-string"
3
  import { ClapProject, ClapSegment, ClapSegmentCategory, ClapSegmentStatus, newClap, parseClap, serializeClap } from "@aitube/clap"
4
+ import { ClapCompletionMode } from "@aitube/clap"
5
 
6
  import { parseCompletionMode } from "@/app/api/parsers/parseCompletionMode"
7
  import { throwIfInvalidToken } from "@/app/api/v1/auth/throwIfInvalidToken"
src/app/api/v1/edit/sounds/generateSound.ts CHANGED
@@ -9,7 +9,7 @@ import {
9
  ClapSegmentStatus,
10
  newSegment
11
  } from "@aitube/clap"
12
- import { ClapCompletionMode } from "@aitube/client"
13
  import { getMediaInfo } from "@/app/api/utils/getMediaInfo"
14
  import { generateSoundWithMagnet } from "./generateSourceWithMagnet"
15
 
 
9
  ClapSegmentStatus,
10
  newSegment
11
  } from "@aitube/clap"
12
+ import { ClapCompletionMode } from "@aitube/clap"
13
  import { getMediaInfo } from "@/app/api/utils/getMediaInfo"
14
  import { generateSoundWithMagnet } from "./generateSourceWithMagnet"
15
 
src/app/api/v1/edit/sounds/processShot.ts CHANGED
@@ -8,7 +8,7 @@ import {
8
  ClapSegmentCategory,
9
  ClapSegmentStatus
10
  } from "@aitube/clap"
11
- import { ClapCompletionMode } from "@aitube/client"
12
 
13
  import { generateSoundWithMagnet } from "./generateSourceWithMagnet"
14
  import { getMediaInfo } from "@/app/api/utils/getMediaInfo"
 
8
  ClapSegmentCategory,
9
  ClapSegmentStatus
10
  } from "@aitube/clap"
11
+ import { ClapCompletionMode } from "@aitube/clap"
12
 
13
  import { generateSoundWithMagnet } from "./generateSourceWithMagnet"
14
  import { getMediaInfo } from "@/app/api/utils/getMediaInfo"
src/app/api/v1/edit/sounds/route.txt CHANGED
@@ -1,7 +1,7 @@
1
  import { NextResponse, NextRequest } from "next/server"
2
  import queryString from "query-string"
3
  import { ClapProject, ClapSegment, ClapSegmentCategory, newClap, parseClap, serializeClap } from "@aitube/clap"
4
- import { ClapCompletionMode } from "@aitube/client"
5
 
6
  import { parseCompletionMode } from "@/app/api/parsers/parseCompletionMode"
7
  import { throwIfInvalidToken } from "@/app/api/v1/auth/throwIfInvalidToken"
 
1
  import { NextResponse, NextRequest } from "next/server"
2
  import queryString from "query-string"
3
  import { ClapProject, ClapSegment, ClapSegmentCategory, newClap, parseClap, serializeClap } from "@aitube/clap"
4
+ import { ClapCompletionMode } from "@aitube/clap"
5
 
6
  import { parseCompletionMode } from "@/app/api/parsers/parseCompletionMode"
7
  import { throwIfInvalidToken } from "@/app/api/v1/auth/throwIfInvalidToken"
src/app/api/v1/edit/story/extendClapStory.ts CHANGED
@@ -6,7 +6,7 @@ import {
6
  ClapOutputType,
7
  ClapSegmentStatus
8
  } from "@aitube/clap"
9
- import { ClapCompletionMode } from "@aitube/client"
10
 
11
  import { clapToLatentStory } from "../entities/clapToLatentStory"
12
  import { LatentStory } from "../../types"
 
6
  ClapOutputType,
7
  ClapSegmentStatus
8
  } from "@aitube/clap"
9
+ import { ClapCompletionMode } from "@aitube/clap"
10
 
11
  import { clapToLatentStory } from "../entities/clapToLatentStory"
12
  import { LatentStory } from "../../types"
src/app/api/v1/edit/story/route.ts CHANGED
@@ -5,7 +5,7 @@ import { ClapProject, ClapSegment, ClapSegmentCategory, newClap, parseClap, seri
5
  import { parseCompletionMode } from "@/app/api/parsers/parseCompletionMode"
6
  import { throwIfInvalidToken } from "@/app/api/v1/auth/throwIfInvalidToken"
7
 
8
- import { ClapCompletionMode } from "@aitube/client"
9
  import { parseTurbo } from "@/app/api/parsers/parseTurbo"
10
  import { parsePrompt } from "@/app/api/parsers/parsePrompt"
11
  import { extendClapStory } from "./extendClapStory"
 
5
  import { parseCompletionMode } from "@/app/api/parsers/parseCompletionMode"
6
  import { throwIfInvalidToken } from "@/app/api/v1/auth/throwIfInvalidToken"
7
 
8
+ import { ClapCompletionMode } from "@aitube/clap"
9
  import { parseTurbo } from "@/app/api/parsers/parseTurbo"
10
  import { parsePrompt } from "@/app/api/parsers/parsePrompt"
11
  import { extendClapStory } from "./extendClapStory"
src/app/api/v1/edit/storyboards/processShot.ts CHANGED
@@ -9,7 +9,7 @@ import {
9
  ClapOutputType,
10
  ClapSegmentStatus
11
  } from "@aitube/clap"
12
- import { ClapCompletionMode } from "@aitube/client"
13
  import { getVideoPrompt } from "@aitube/engine"
14
 
15
  import { getPositivePrompt } from "@/app/api/utils/imagePrompts"
 
9
  ClapOutputType,
10
  ClapSegmentStatus
11
  } from "@aitube/clap"
12
+ import { ClapCompletionMode } from "@aitube/clap"
13
  import { getVideoPrompt } from "@aitube/engine"
14
 
15
  import { getPositivePrompt } from "@/app/api/utils/imagePrompts"
src/app/api/v1/edit/storyboards/route.ts CHANGED
@@ -6,7 +6,7 @@ import { parseCompletionMode } from "@/app/api/parsers/parseCompletionMode"
6
  import { throwIfInvalidToken } from "@/app/api/v1/auth/throwIfInvalidToken"
7
 
8
  import { processShot } from "./processShot"
9
- import { ClapCompletionMode } from "@aitube/client"
10
  import { parseTurbo } from "@/app/api/parsers/parseTurbo"
11
 
12
  // a helper to generate storyboards for a Clap
 
6
  import { throwIfInvalidToken } from "@/app/api/v1/auth/throwIfInvalidToken"
7
 
8
  import { processShot } from "./processShot"
9
+ import { ClapCompletionMode } from "@aitube/clap"
10
  import { parseTurbo } from "@/app/api/parsers/parseTurbo"
11
 
12
  // a helper to generate storyboards for a Clap
src/app/api/v1/edit/videos/processShot.ts CHANGED
@@ -11,7 +11,7 @@ import {
11
  ClapSegmentStatus,
12
  parseMediaOrientation
13
  } from "@aitube/clap"
14
- import { ClapCompletionMode } from "@aitube/client"
15
  import { getVideoPrompt } from "@aitube/engine"
16
 
17
  import { getPositivePrompt } from "@/app/api/utils/imagePrompts"
 
11
  ClapSegmentStatus,
12
  parseMediaOrientation
13
  } from "@aitube/clap"
14
+ import { ClapCompletionMode } from "@aitube/clap"
15
  import { getVideoPrompt } from "@aitube/engine"
16
 
17
  import { getPositivePrompt } from "@/app/api/utils/imagePrompts"
src/app/api/v1/edit/videos/route.ts CHANGED
@@ -1,7 +1,7 @@
1
  import { NextResponse, NextRequest } from "next/server"
2
  import queryString from "query-string"
3
  import { ClapProject, ClapSegment, ClapSegmentCategory, newClap, parseClap, serializeClap } from "@aitube/clap"
4
- import { ClapCompletionMode } from "@aitube/client"
5
 
6
  import { parseCompletionMode } from "@/app/api/parsers/parseCompletionMode"
7
  import { throwIfInvalidToken } from "@/app/api/v1/auth/throwIfInvalidToken"
 
1
  import { NextResponse, NextRequest } from "next/server"
2
  import queryString from "query-string"
3
  import { ClapProject, ClapSegment, ClapSegmentCategory, newClap, parseClap, serializeClap } from "@aitube/clap"
4
+ import { ClapCompletionMode } from "@aitube/clap"
5
 
6
  import { parseCompletionMode } from "@/app/api/parsers/parseCompletionMode"
7
  import { throwIfInvalidToken } from "@/app/api/v1/auth/throwIfInvalidToken"