@purpleschool/gptbot 0.14.61-stage2 → 0.14.63-stage2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/build/api/controllers/http/avatar-studio.d.ts +5 -2
  2. package/build/api/controllers/http/avatar-studio.js +6 -4
  3. package/build/api/routes.d.ts +6 -3
  4. package/build/api/routes.js +6 -3
  5. package/build/commands/avatar-studio/clip/create-avatar-studio-clip.command.d.ts +1 -1
  6. package/build/commands/avatar-studio/clip/find-avatar-studio-clips.query.d.ts +1 -1
  7. package/build/commands/avatar-studio/clip/get-avatar-studio-clip.query.d.ts +1 -1
  8. package/build/commands/avatar-studio/clip/update-avatar-studio-clip.command.d.ts +1 -1
  9. package/build/commands/avatar-studio/generation-job/generate-avatar-studio-scene-voice.command.d.ts +4 -2
  10. package/build/commands/avatar-studio/generation-job/generate-avatar-studio-scene-voice.command.js +4 -2
  11. package/build/commands/avatar-studio/scene/{apply-avatar-studio-voice-sample-to-all-scenes.command.d.ts → apply-avatar-studio-voice-to-all-scenes.command.d.ts} +3 -3
  12. package/build/commands/avatar-studio/scene/apply-avatar-studio-voice-to-all-scenes.command.js +17 -0
  13. package/build/commands/avatar-studio/scene/create-avatar-studio-scene.command.d.ts +1 -1
  14. package/build/commands/avatar-studio/scene/index.d.ts +1 -1
  15. package/build/commands/avatar-studio/scene/index.js +1 -1
  16. package/build/commands/avatar-studio/scene/reorder-avatar-studio-scenes.command.d.ts +1 -1
  17. package/build/commands/avatar-studio/scene/set-avatar-studio-scene-slot.command.d.ts +1 -1
  18. package/build/commands/avatar-studio/scene/update-avatar-studio-scene.command.d.ts +2 -2
  19. package/build/commands/avatar-studio/scriptwriter/apply-avatar-studio-scriptwriter-message.command.d.ts +1 -1
  20. package/build/commands/avatar-studio/shared/avatar-studio-common.schema.d.ts +1 -1
  21. package/build/commands/avatar-studio/shared/get-avatar-studio-config.query.d.ts +5 -6
  22. package/build/commands/avatar-studio/shared/get-avatar-studio-config.query.js +7 -12
  23. package/build/commands/avatar-studio/voice/clone-avatar-studio-voice.command.d.ts +43 -0
  24. package/build/commands/avatar-studio/voice/clone-avatar-studio-voice.command.js +19 -0
  25. package/build/commands/avatar-studio/voice/delete-avatar-studio-voice.command.d.ts +11 -0
  26. package/build/commands/avatar-studio/voice/delete-avatar-studio-voice.command.js +13 -0
  27. package/build/commands/avatar-studio/voice/design-avatar-studio-voice.command.d.ts +26 -56
  28. package/build/commands/avatar-studio/voice/design-avatar-studio-voice.command.js +6 -7
  29. package/build/commands/avatar-studio/voice/find-avatar-studio-voices.query.d.ts +36 -0
  30. package/build/commands/avatar-studio/voice/find-avatar-studio-voices.query.js +11 -0
  31. package/build/commands/avatar-studio/voice/index.d.ts +3 -0
  32. package/build/commands/avatar-studio/voice/index.js +3 -0
  33. package/build/commands/tools/tts/create-voice-clone.command.d.ts +15 -3
  34. package/build/commands/tools/tts/create-voice-clone.command.js +1 -0
  35. package/build/commands/tools/tts/create-voice-design.command.d.ts +2 -0
  36. package/build/commands/tools/tts/create-voice-design.command.js +1 -0
  37. package/build/commands/tools/tts/find-voice-by-uuid.query.d.ts +14 -3
  38. package/build/commands/tools/tts/find-voices.query.d.ts +15 -4
  39. package/build/commands/tools/tts/find-voices.query.js +1 -1
  40. package/build/commands/tools/tts/select-voice-design.command.d.ts +14 -3
  41. package/build/commands/tools/tts/update-voice.command.d.ts +15 -3
  42. package/build/commands/tools/tts/update-voice.command.js +1 -0
  43. package/build/constants/avatar-studio/enums/avatar-studio-job-type.enum.d.ts +1 -0
  44. package/build/constants/avatar-studio/enums/avatar-studio-job-type.enum.js +1 -0
  45. package/build/constants/avatar-studio/enums/avatar-studio-media-kind.enum.d.ts +1 -2
  46. package/build/constants/avatar-studio/enums/avatar-studio-media-kind.enum.js +0 -1
  47. package/build/constants/avatar-studio/enums/avatar-studio-slot.enum.d.ts +1 -1
  48. package/build/constants/avatar-studio/enums/avatar-studio-slot.enum.js +1 -1
  49. package/build/constants/tool/enums/index.d.ts +1 -0
  50. package/build/constants/tool/enums/index.js +1 -0
  51. package/build/constants/tool/enums/job-scope.enum.d.ts +5 -0
  52. package/build/constants/tool/enums/job-scope.enum.js +9 -0
  53. package/build/constants/tool-tts/enums/voice-category.enum.d.ts +6 -1
  54. package/build/constants/tool-tts/enums/voice-category.enum.js +5 -0
  55. package/build/models/avatar-studio/avatar-studio.schema.d.ts +6 -6
  56. package/build/models/avatar-studio/avatar-studio.schema.js +3 -3
  57. package/build/models/tools/tts/voice-design-draft.schema.d.ts +1 -0
  58. package/build/models/tools/tts/voice-design-draft.schema.js +1 -0
  59. package/build/models/tools/tts/voice.schema.d.ts +15 -4
  60. package/build/models/tools/tts/voice.schema.js +16 -3
  61. package/package.json +1 -1
  62. package/build/commands/avatar-studio/scene/apply-avatar-studio-voice-sample-to-all-scenes.command.js +0 -15
@@ -16,10 +16,10 @@ export declare const AVATAR_STUDIO_ROUTES: {
16
16
  readonly REORDER_SCENES: (clipId: string) => string;
17
17
  readonly SET_SCENE_SLOT: (clipId: string, sceneId: string, slot: string) => string;
18
18
  /**
19
- * Разовое действие над всеми сценами клипа: проставить им один образец голоса.
19
+ * Разовое действие над всеми сценами клипа: проставить им один голос.
20
20
  * Не состояние клипа — голос принадлежит сцене, поэтому новые сцены его не наследуют.
21
21
  */
22
- readonly APPLY_VOICE_SAMPLE_TO_ALL_SCENES: (clipId: string, mediaId: string) => string;
22
+ readonly APPLY_VOICE_TO_ALL_SCENES: (clipId: string, voiceId: string) => string;
23
23
  readonly GET_CONFIG: 'config';
24
24
  readonly CREATE_MEDIA_FROM_FILE: 'media/from-file';
25
25
  readonly GET_MEDIA: 'media';
@@ -30,7 +30,10 @@ export declare const AVATAR_STUDIO_ROUTES: {
30
30
  readonly GENERATE_SCENE_VIDEO: (clipId: string, sceneId: string) => string;
31
31
  readonly GENERATE_SCENE_VOICE: (clipId: string, sceneId: string) => string;
32
32
  readonly GENERATE_AVATAR: (clipId: string, sceneId: string) => string;
33
+ readonly GET_VOICES: 'voices';
33
34
  readonly DESIGN_VOICE: 'voices/design';
35
+ readonly CLONE_VOICE: 'voices/clone';
36
+ readonly DELETE_VOICE: (voiceId: string) => string;
34
37
  readonly CALCULATE_SCRIPTWRITER_PRICE: 'scriptwriter/price';
35
38
  readonly GET_SCRIPTWRITER_MESSAGES: (clipId: string) => string;
36
39
  readonly CREATE_SCRIPTWRITER_MESSAGE: (clipId: string) => string;
@@ -19,10 +19,10 @@ exports.AVATAR_STUDIO_ROUTES = {
19
19
  REORDER_SCENES: (clipId) => `clips/${clipId}/scenes/reorder`,
20
20
  SET_SCENE_SLOT: (clipId, sceneId, slot) => `clips/${clipId}/scenes/${sceneId}/slots/${slot}`,
21
21
  /**
22
- * Разовое действие над всеми сценами клипа: проставить им один образец голоса.
22
+ * Разовое действие над всеми сценами клипа: проставить им один голос.
23
23
  * Не состояние клипа — голос принадлежит сцене, поэтому новые сцены его не наследуют.
24
24
  */
25
- APPLY_VOICE_SAMPLE_TO_ALL_SCENES: (clipId, mediaId) => `clips/${clipId}/voice-sample/${mediaId}/apply-to-all-scenes`,
25
+ APPLY_VOICE_TO_ALL_SCENES: (clipId, voiceId) => `clips/${clipId}/voices/${voiceId}/apply-to-all-scenes`,
26
26
  GET_CONFIG: 'config',
27
27
  // Медиатека принадлежит пользователю, а не клипу, поэтому роуты плоские.
28
28
  CREATE_MEDIA_FROM_FILE: 'media/from-file',
@@ -34,9 +34,11 @@ exports.AVATAR_STUDIO_ROUTES = {
34
34
  GENERATE_SCENE_VIDEO: (clipId, sceneId) => `clips/${clipId}/scenes/${sceneId}/video/generate`,
35
35
  GENERATE_SCENE_VOICE: (clipId, sceneId) => `clips/${clipId}/scenes/${sceneId}/voice/generate`,
36
36
  GENERATE_AVATAR: (clipId, sceneId) => `clips/${clipId}/scenes/${sceneId}/avatar/generate`,
37
- // Голос рождается в медиатеке пользователя, клип тут ни при чём — роут плоский,
38
- // как и GENERATE_IMAGE.
37
+ // Голоса не принадлежат клипу роуты плоские, как и GENERATE_IMAGE.
38
+ GET_VOICES: 'voices',
39
39
  DESIGN_VOICE: 'voices/design',
40
+ CLONE_VOICE: 'voices/clone',
41
+ DELETE_VOICE: (voiceId) => `voices/${voiceId}`,
40
42
  // Клип опционален и едет в теле: цену спрашивают ещё до создания клипа.
41
43
  CALCULATE_SCRIPTWRITER_PRICE: 'scriptwriter/price',
42
44
  GET_SCRIPTWRITER_MESSAGES: (clipId) => `clips/${clipId}/scriptwriter/messages`,
@@ -1250,7 +1250,7 @@ export declare const REST_API: {
1250
1250
  readonly GET_CONFIG: "/api/private/avatar-studio/config";
1251
1251
  readonly CREATE_MEDIA_FROM_FILE: "/api/private/avatar-studio/media/from-file";
1252
1252
  readonly SET_SCENE_SLOT: (clipId: string, sceneId: string, slot: string) => string;
1253
- readonly APPLY_VOICE_SAMPLE_TO_ALL_SCENES: (clipId: string, mediaId: string) => string;
1253
+ readonly APPLY_VOICE_TO_ALL_SCENES: (clipId: string, voiceId: string) => string;
1254
1254
  readonly GET_MEDIA: "/api/private/avatar-studio/media";
1255
1255
  readonly UPDATE_MEDIA: (mediaId: string) => string;
1256
1256
  readonly DELETE_MEDIA: (mediaId: string) => string;
@@ -1259,7 +1259,10 @@ export declare const REST_API: {
1259
1259
  readonly GENERATE_SCENE_VIDEO: (clipId: string, sceneId: string) => string;
1260
1260
  readonly GENERATE_SCENE_VOICE: (clipId: string, sceneId: string) => string;
1261
1261
  readonly GENERATE_AVATAR: (clipId: string, sceneId: string) => string;
1262
+ readonly GET_VOICES: "/api/private/avatar-studio/voices";
1262
1263
  readonly DESIGN_VOICE: "/api/private/avatar-studio/voices/design";
1264
+ readonly CLONE_VOICE: "/api/private/avatar-studio/voices/clone";
1265
+ readonly DELETE_VOICE: (voiceId: string) => string;
1263
1266
  readonly CALCULATE_SCRIPTWRITER_PRICE: "/api/private/avatar-studio/scriptwriter/price";
1264
1267
  readonly GET_SCRIPTWRITER_MESSAGES: (clipId: string) => string;
1265
1268
  readonly CREATE_SCRIPTWRITER_MESSAGE: (clipId: string) => string;
@@ -1283,7 +1286,7 @@ export declare const REST_API: {
1283
1286
  readonly GET_CONFIG: "/api/public/avatar-studio/config";
1284
1287
  readonly CREATE_MEDIA_FROM_FILE: "/api/public/avatar-studio/media/from-file";
1285
1288
  readonly SET_SCENE_SLOT: (clipId: string, sceneId: string, slot: string) => string;
1286
- readonly APPLY_VOICE_SAMPLE_TO_ALL_SCENES: (clipId: string, mediaId: string) => string;
1289
+ readonly APPLY_VOICE_TO_ALL_SCENES: (clipId: string, voiceId: string) => string;
1287
1290
  readonly GET_MEDIA: "/api/public/avatar-studio/media";
1288
1291
  readonly UPDATE_MEDIA: (mediaId: string) => string;
1289
1292
  readonly DELETE_MEDIA: (mediaId: string) => string;
@@ -1292,7 +1295,7 @@ export declare const REST_API: {
1292
1295
  readonly GENERATE_SCENE_VIDEO: (clipId: string, sceneId: string) => string;
1293
1296
  readonly GENERATE_SCENE_VOICE: (clipId: string, sceneId: string) => string;
1294
1297
  readonly GENERATE_AVATAR: (clipId: string, sceneId: string) => string;
1295
- readonly DESIGN_VOICE: "/api/public/avatar-studio/voices/design";
1298
+ readonly GET_VOICES: "/api/public/avatar-studio/voices";
1296
1299
  readonly CALCULATE_SCRIPTWRITER_PRICE: "/api/public/avatar-studio/scriptwriter/price";
1297
1300
  readonly GET_SCRIPTWRITER_MESSAGES: (clipId: string) => string;
1298
1301
  readonly CREATE_SCRIPTWRITER_MESSAGE: (clipId: string) => string;
@@ -1288,7 +1288,7 @@ exports.REST_API = {
1288
1288
  GET_CONFIG: `${exports.ROOT}/${CONTROLLERS.AVATAR_STUDIO_CONTROLLER_PRIVATE}/${CONTROLLERS.AVATAR_STUDIO_ROUTES.GET_CONFIG}`,
1289
1289
  CREATE_MEDIA_FROM_FILE: `${exports.ROOT}/${CONTROLLERS.AVATAR_STUDIO_CONTROLLER_PRIVATE}/${CONTROLLERS.AVATAR_STUDIO_ROUTES.CREATE_MEDIA_FROM_FILE}`,
1290
1290
  SET_SCENE_SLOT: (clipId, sceneId, slot) => `${exports.ROOT}/${CONTROLLERS.AVATAR_STUDIO_CONTROLLER_PRIVATE}/${CONTROLLERS.AVATAR_STUDIO_ROUTES.SET_SCENE_SLOT(clipId, sceneId, slot)}`,
1291
- APPLY_VOICE_SAMPLE_TO_ALL_SCENES: (clipId, mediaId) => `${exports.ROOT}/${CONTROLLERS.AVATAR_STUDIO_CONTROLLER_PRIVATE}/${CONTROLLERS.AVATAR_STUDIO_ROUTES.APPLY_VOICE_SAMPLE_TO_ALL_SCENES(clipId, mediaId)}`,
1291
+ APPLY_VOICE_TO_ALL_SCENES: (clipId, voiceId) => `${exports.ROOT}/${CONTROLLERS.AVATAR_STUDIO_CONTROLLER_PRIVATE}/${CONTROLLERS.AVATAR_STUDIO_ROUTES.APPLY_VOICE_TO_ALL_SCENES(clipId, voiceId)}`,
1292
1292
  GET_MEDIA: `${exports.ROOT}/${CONTROLLERS.AVATAR_STUDIO_CONTROLLER_PRIVATE}/${CONTROLLERS.AVATAR_STUDIO_ROUTES.GET_MEDIA}`,
1293
1293
  UPDATE_MEDIA: (mediaId) => `${exports.ROOT}/${CONTROLLERS.AVATAR_STUDIO_CONTROLLER_PRIVATE}/${CONTROLLERS.AVATAR_STUDIO_ROUTES.UPDATE_MEDIA(mediaId)}`,
1294
1294
  DELETE_MEDIA: (mediaId) => `${exports.ROOT}/${CONTROLLERS.AVATAR_STUDIO_CONTROLLER_PRIVATE}/${CONTROLLERS.AVATAR_STUDIO_ROUTES.DELETE_MEDIA(mediaId)}`,
@@ -1297,7 +1297,10 @@ exports.REST_API = {
1297
1297
  GENERATE_SCENE_VIDEO: (clipId, sceneId) => `${exports.ROOT}/${CONTROLLERS.AVATAR_STUDIO_CONTROLLER_PRIVATE}/${CONTROLLERS.AVATAR_STUDIO_ROUTES.GENERATE_SCENE_VIDEO(clipId, sceneId)}`,
1298
1298
  GENERATE_SCENE_VOICE: (clipId, sceneId) => `${exports.ROOT}/${CONTROLLERS.AVATAR_STUDIO_CONTROLLER_PRIVATE}/${CONTROLLERS.AVATAR_STUDIO_ROUTES.GENERATE_SCENE_VOICE(clipId, sceneId)}`,
1299
1299
  GENERATE_AVATAR: (clipId, sceneId) => `${exports.ROOT}/${CONTROLLERS.AVATAR_STUDIO_CONTROLLER_PRIVATE}/${CONTROLLERS.AVATAR_STUDIO_ROUTES.GENERATE_AVATAR(clipId, sceneId)}`,
1300
+ GET_VOICES: `${exports.ROOT}/${CONTROLLERS.AVATAR_STUDIO_CONTROLLER_PRIVATE}/${CONTROLLERS.AVATAR_STUDIO_ROUTES.GET_VOICES}`,
1300
1301
  DESIGN_VOICE: `${exports.ROOT}/${CONTROLLERS.AVATAR_STUDIO_CONTROLLER_PRIVATE}/${CONTROLLERS.AVATAR_STUDIO_ROUTES.DESIGN_VOICE}`,
1302
+ CLONE_VOICE: `${exports.ROOT}/${CONTROLLERS.AVATAR_STUDIO_CONTROLLER_PRIVATE}/${CONTROLLERS.AVATAR_STUDIO_ROUTES.CLONE_VOICE}`,
1303
+ DELETE_VOICE: (voiceId) => `${exports.ROOT}/${CONTROLLERS.AVATAR_STUDIO_CONTROLLER_PRIVATE}/${CONTROLLERS.AVATAR_STUDIO_ROUTES.DELETE_VOICE(voiceId)}`,
1301
1304
  CALCULATE_SCRIPTWRITER_PRICE: `${exports.ROOT}/${CONTROLLERS.AVATAR_STUDIO_CONTROLLER_PRIVATE}/${CONTROLLERS.AVATAR_STUDIO_ROUTES.CALCULATE_SCRIPTWRITER_PRICE}`,
1302
1305
  GET_SCRIPTWRITER_MESSAGES: (clipId) => `${exports.ROOT}/${CONTROLLERS.AVATAR_STUDIO_CONTROLLER_PRIVATE}/${CONTROLLERS.AVATAR_STUDIO_ROUTES.GET_SCRIPTWRITER_MESSAGES(clipId)}`,
1303
1306
  CREATE_SCRIPTWRITER_MESSAGE: (clipId) => `${exports.ROOT}/${CONTROLLERS.AVATAR_STUDIO_CONTROLLER_PRIVATE}/${CONTROLLERS.AVATAR_STUDIO_ROUTES.CREATE_SCRIPTWRITER_MESSAGE(clipId)}`,
@@ -1321,7 +1324,7 @@ exports.REST_API = {
1321
1324
  GET_CONFIG: `${exports.ROOT}/${CONTROLLERS.AVATAR_STUDIO_CONTROLLER_PUBLIC}/${CONTROLLERS.AVATAR_STUDIO_ROUTES.GET_CONFIG}`,
1322
1325
  CREATE_MEDIA_FROM_FILE: `${exports.ROOT}/${CONTROLLERS.AVATAR_STUDIO_CONTROLLER_PUBLIC}/${CONTROLLERS.AVATAR_STUDIO_ROUTES.CREATE_MEDIA_FROM_FILE}`,
1323
1326
  SET_SCENE_SLOT: (clipId, sceneId, slot) => `${exports.ROOT}/${CONTROLLERS.AVATAR_STUDIO_CONTROLLER_PUBLIC}/${CONTROLLERS.AVATAR_STUDIO_ROUTES.SET_SCENE_SLOT(clipId, sceneId, slot)}`,
1324
- APPLY_VOICE_SAMPLE_TO_ALL_SCENES: (clipId, mediaId) => `${exports.ROOT}/${CONTROLLERS.AVATAR_STUDIO_CONTROLLER_PUBLIC}/${CONTROLLERS.AVATAR_STUDIO_ROUTES.APPLY_VOICE_SAMPLE_TO_ALL_SCENES(clipId, mediaId)}`,
1327
+ APPLY_VOICE_TO_ALL_SCENES: (clipId, voiceId) => `${exports.ROOT}/${CONTROLLERS.AVATAR_STUDIO_CONTROLLER_PUBLIC}/${CONTROLLERS.AVATAR_STUDIO_ROUTES.APPLY_VOICE_TO_ALL_SCENES(clipId, voiceId)}`,
1325
1328
  GET_MEDIA: `${exports.ROOT}/${CONTROLLERS.AVATAR_STUDIO_CONTROLLER_PUBLIC}/${CONTROLLERS.AVATAR_STUDIO_ROUTES.GET_MEDIA}`,
1326
1329
  UPDATE_MEDIA: (mediaId) => `${exports.ROOT}/${CONTROLLERS.AVATAR_STUDIO_CONTROLLER_PUBLIC}/${CONTROLLERS.AVATAR_STUDIO_ROUTES.UPDATE_MEDIA(mediaId)}`,
1327
1330
  DELETE_MEDIA: (mediaId) => `${exports.ROOT}/${CONTROLLERS.AVATAR_STUDIO_CONTROLLER_PUBLIC}/${CONTROLLERS.AVATAR_STUDIO_ROUTES.DELETE_MEDIA(mediaId)}`,
@@ -1330,7 +1333,7 @@ exports.REST_API = {
1330
1333
  GENERATE_SCENE_VIDEO: (clipId, sceneId) => `${exports.ROOT}/${CONTROLLERS.AVATAR_STUDIO_CONTROLLER_PUBLIC}/${CONTROLLERS.AVATAR_STUDIO_ROUTES.GENERATE_SCENE_VIDEO(clipId, sceneId)}`,
1331
1334
  GENERATE_SCENE_VOICE: (clipId, sceneId) => `${exports.ROOT}/${CONTROLLERS.AVATAR_STUDIO_CONTROLLER_PUBLIC}/${CONTROLLERS.AVATAR_STUDIO_ROUTES.GENERATE_SCENE_VOICE(clipId, sceneId)}`,
1332
1335
  GENERATE_AVATAR: (clipId, sceneId) => `${exports.ROOT}/${CONTROLLERS.AVATAR_STUDIO_CONTROLLER_PUBLIC}/${CONTROLLERS.AVATAR_STUDIO_ROUTES.GENERATE_AVATAR(clipId, sceneId)}`,
1333
- DESIGN_VOICE: `${exports.ROOT}/${CONTROLLERS.AVATAR_STUDIO_CONTROLLER_PUBLIC}/${CONTROLLERS.AVATAR_STUDIO_ROUTES.DESIGN_VOICE}`,
1336
+ GET_VOICES: `${exports.ROOT}/${CONTROLLERS.AVATAR_STUDIO_CONTROLLER_PUBLIC}/${CONTROLLERS.AVATAR_STUDIO_ROUTES.GET_VOICES}`,
1334
1337
  CALCULATE_SCRIPTWRITER_PRICE: `${exports.ROOT}/${CONTROLLERS.AVATAR_STUDIO_CONTROLLER_PUBLIC}/${CONTROLLERS.AVATAR_STUDIO_ROUTES.CALCULATE_SCRIPTWRITER_PRICE}`,
1335
1338
  GET_SCRIPTWRITER_MESSAGES: (clipId) => `${exports.ROOT}/${CONTROLLERS.AVATAR_STUDIO_CONTROLLER_PUBLIC}/${CONTROLLERS.AVATAR_STUDIO_ROUTES.GET_SCRIPTWRITER_MESSAGES(clipId)}`,
1336
1339
  CREATE_SCRIPTWRITER_MESSAGE: (clipId) => `${exports.ROOT}/${CONTROLLERS.AVATAR_STUDIO_CONTROLLER_PUBLIC}/${CONTROLLERS.AVATAR_STUDIO_ROUTES.CREATE_SCRIPTWRITER_MESSAGE(clipId)}`,
@@ -71,7 +71,7 @@ export declare namespace CreateAvatarStudioClipCommand {
71
71
  trimStart: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
72
72
  trimEnd: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
73
73
  text: z.ZodDefault<z.ZodString>;
74
- voiceSampleMediaId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
74
+ voiceId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
75
75
  }, z.core.$strip>;
76
76
  imageConfig: z.ZodObject<{
77
77
  prompt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -67,7 +67,7 @@ export declare namespace FindAvatarStudioClipsQuery {
67
67
  trimStart: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
68
68
  trimEnd: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
69
69
  text: z.ZodDefault<z.ZodString>;
70
- voiceSampleMediaId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
70
+ voiceId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
71
71
  }, z.core.$strip>;
72
72
  imageConfig: z.ZodObject<{
73
73
  prompt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -65,7 +65,7 @@ export declare namespace GetAvatarStudioClipQuery {
65
65
  trimStart: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
66
66
  trimEnd: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
67
67
  text: z.ZodDefault<z.ZodString>;
68
- voiceSampleMediaId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
68
+ voiceId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
69
69
  }, z.core.$strip>;
70
70
  imageConfig: z.ZodObject<{
71
71
  prompt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -75,7 +75,7 @@ export declare namespace UpdateAvatarStudioClipCommand {
75
75
  trimStart: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
76
76
  trimEnd: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
77
77
  text: z.ZodDefault<z.ZodString>;
78
- voiceSampleMediaId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
78
+ voiceId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
79
79
  }, z.core.$strip>;
80
80
  imageConfig: z.ZodObject<{
81
81
  prompt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -6,11 +6,13 @@ export declare namespace GenerateAvatarStudioSceneVoiceCommand {
6
6
  }, z.core.$strip>;
7
7
  type Params = z.infer<typeof ParamsSchema>;
8
8
  /**
9
- * Образец голоса не передаётся: он берётся из voiceConfig.voiceSampleMediaId сцены.
10
- * Сменить образец — обычный PATCH сцены, а не отдельная операция.
9
+ * voiceId не обязателен: по умолчанию берётся из voiceConfig.voiceId сцены.
10
+ * Сменить голос сцены — обычный PATCH сцены, а не отдельная операция; здесь его
11
+ * можно передать только для одноразовой генерации другим голосом.
11
12
  */
12
13
  const RequestSchema: z.ZodObject<{
13
14
  text: z.ZodOptional<z.ZodString>;
15
+ voiceId: z.ZodOptional<z.ZodString>;
14
16
  }, z.core.$strict>;
15
17
  type Request = z.infer<typeof RequestSchema>;
16
18
  const ResponseSchema: z.ZodObject<{
@@ -8,12 +8,14 @@ var GenerateAvatarStudioSceneVoiceCommand;
8
8
  (function (GenerateAvatarStudioSceneVoiceCommand) {
9
9
  GenerateAvatarStudioSceneVoiceCommand.ParamsSchema = avatar_studio_common_schema_1.AvatarStudioSceneIdParamsSchema;
10
10
  /**
11
- * Образец голоса не передаётся: он берётся из voiceConfig.voiceSampleMediaId сцены.
12
- * Сменить образец — обычный PATCH сцены, а не отдельная операция.
11
+ * voiceId не обязателен: по умолчанию берётся из voiceConfig.voiceId сцены.
12
+ * Сменить голос сцены — обычный PATCH сцены, а не отдельная операция; здесь его
13
+ * можно передать только для одноразовой генерации другим голосом.
13
14
  */
14
15
  GenerateAvatarStudioSceneVoiceCommand.RequestSchema = zod_1.z
15
16
  .object({
16
17
  text: zod_1.z.string().trim().min(1).optional(),
18
+ voiceId: zod_1.z.string().uuid().optional(),
17
19
  })
18
20
  .strict();
19
21
  GenerateAvatarStudioSceneVoiceCommand.ResponseSchema = zod_1.z.object({
@@ -1,8 +1,8 @@
1
1
  import { z } from 'zod';
2
- export declare namespace ApplyAvatarStudioVoiceSampleToAllScenesCommand {
2
+ export declare namespace ApplyAvatarStudioVoiceToAllScenesCommand {
3
3
  const ParamsSchema: z.ZodObject<{
4
4
  clipId: z.ZodString;
5
- mediaId: z.ZodString;
5
+ voiceId: z.ZodString;
6
6
  }, z.core.$strip>;
7
7
  type Params = z.infer<typeof ParamsSchema>;
8
8
  const ResponseSchema: z.ZodObject<{
@@ -66,7 +66,7 @@ export declare namespace ApplyAvatarStudioVoiceSampleToAllScenesCommand {
66
66
  trimStart: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
67
67
  trimEnd: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
68
68
  text: z.ZodDefault<z.ZodString>;
69
- voiceSampleMediaId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
69
+ voiceId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
70
70
  }, z.core.$strip>;
71
71
  imageConfig: z.ZodObject<{
72
72
  prompt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ApplyAvatarStudioVoiceToAllScenesCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../../models");
6
+ const avatar_studio_common_schema_1 = require("../shared/avatar-studio-common.schema");
7
+ var ApplyAvatarStudioVoiceToAllScenesCommand;
8
+ (function (ApplyAvatarStudioVoiceToAllScenesCommand) {
9
+ ApplyAvatarStudioVoiceToAllScenesCommand.ParamsSchema = avatar_studio_common_schema_1.AvatarStudioClipIdParamsSchema.extend({
10
+ voiceId: zod_1.z.string().uuid(),
11
+ });
12
+ // Ответ — клип со сценами, а не список сцен: фронт перерисовывает клип целиком
13
+ // и не ходит следом за GET /clips/:clipId.
14
+ ApplyAvatarStudioVoiceToAllScenesCommand.ResponseSchema = zod_1.z.object({
15
+ data: models_1.AvatarStudioClipSchema,
16
+ });
17
+ })(ApplyAvatarStudioVoiceToAllScenesCommand || (exports.ApplyAvatarStudioVoiceToAllScenesCommand = ApplyAvatarStudioVoiceToAllScenesCommand = {}));
@@ -15,7 +15,7 @@ export declare namespace CreateAvatarStudioSceneCommand {
15
15
  trimStart: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
16
16
  trimEnd: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
17
17
  text: z.ZodDefault<z.ZodString>;
18
- voiceSampleMediaId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
18
+ voiceId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
19
19
  }, z.core.$strip>;
20
20
  imageConfig: z.ZodObject<{
21
21
  prompt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -1,4 +1,4 @@
1
- export * from './apply-avatar-studio-voice-sample-to-all-scenes.command';
1
+ export * from './apply-avatar-studio-voice-to-all-scenes.command';
2
2
  export * from './create-avatar-studio-scene.command';
3
3
  export * from './delete-avatar-studio-scene.command';
4
4
  export * from './reorder-avatar-studio-scenes.command';
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./apply-avatar-studio-voice-sample-to-all-scenes.command"), exports);
17
+ __exportStar(require("./apply-avatar-studio-voice-to-all-scenes.command"), exports);
18
18
  __exportStar(require("./create-avatar-studio-scene.command"), exports);
19
19
  __exportStar(require("./delete-avatar-studio-scene.command"), exports);
20
20
  __exportStar(require("./reorder-avatar-studio-scenes.command"), exports);
@@ -20,7 +20,7 @@ export declare namespace ReorderAvatarStudioScenesCommand {
20
20
  trimStart: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
21
21
  trimEnd: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
22
22
  text: z.ZodDefault<z.ZodString>;
23
- voiceSampleMediaId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
23
+ voiceId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
24
24
  }, z.core.$strip>;
25
25
  imageConfig: z.ZodObject<{
26
26
  prompt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -20,7 +20,7 @@ export declare namespace SetAvatarStudioSceneSlotCommand {
20
20
  trimStart: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
21
21
  trimEnd: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
22
22
  text: z.ZodDefault<z.ZodString>;
23
- voiceSampleMediaId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
23
+ voiceId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
24
24
  }, z.core.$strip>;
25
25
  imageConfig: z.ZodObject<{
26
26
  prompt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -10,7 +10,7 @@ export declare namespace UpdateAvatarStudioSceneCommand {
10
10
  trimStart: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
11
11
  trimEnd: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
12
12
  text: z.ZodOptional<z.ZodDefault<z.ZodString>>;
13
- voiceSampleMediaId: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
13
+ voiceId: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
14
14
  }, z.core.$strict>>;
15
15
  imageConfig: z.ZodOptional<z.ZodObject<{
16
16
  prompt: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
@@ -37,7 +37,7 @@ export declare namespace UpdateAvatarStudioSceneCommand {
37
37
  trimStart: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
38
38
  trimEnd: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
39
39
  text: z.ZodDefault<z.ZodString>;
40
- voiceSampleMediaId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
40
+ voiceId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
41
41
  }, z.core.$strip>;
42
42
  imageConfig: z.ZodObject<{
43
43
  prompt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -28,7 +28,7 @@ export declare namespace ApplyAvatarStudioScriptwriterMessageCommand {
28
28
  trimStart: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
29
29
  trimEnd: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
30
30
  text: z.ZodDefault<z.ZodString>;
31
- voiceSampleMediaId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
31
+ voiceId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
32
32
  }, z.core.$strip>;
33
33
  imageConfig: z.ZodObject<{
34
34
  prompt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -31,7 +31,7 @@ export declare const AvatarStudioSceneConfigPatchSchema: z.ZodObject<{
31
31
  trimStart: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
32
32
  trimEnd: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
33
33
  text: z.ZodOptional<z.ZodDefault<z.ZodString>>;
34
- voiceSampleMediaId: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
34
+ voiceId: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
35
35
  }, z.core.$strict>>;
36
36
  imageConfig: z.ZodOptional<z.ZodObject<{
37
37
  prompt: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { AVATAR_STUDIO_IMAGE_STYLE, AVATAR_STUDIO_MEDIA_KIND, AVATAR_STUDIO_UNAVAILABLE_REASON, AVATAR_STUDIO_VIDEO_MODE, AVATAR_STUDIO_VIDEO_QUALITY } from '../../../constants';
2
+ import { AVATAR_STUDIO_IMAGE_STYLE, AVATAR_STUDIO_UNAVAILABLE_REASON, AVATAR_STUDIO_VIDEO_MODE, AVATAR_STUDIO_VIDEO_QUALITY } from '../../../constants';
3
3
  export declare namespace GetAvatarStudioConfigQuery {
4
4
  const ResponseSchema: z.ZodObject<{
5
5
  data: z.ZodObject<{
@@ -12,17 +12,16 @@ export declare namespace GetAvatarStudioConfigQuery {
12
12
  maxLength: z.ZodNumber;
13
13
  required: z.ZodBoolean;
14
14
  }, z.core.$strict>;
15
- voiceSampleMediaId: z.ZodObject<{
16
- kind: z.ZodLiteral<"media">;
17
- required: z.ZodBoolean;
18
- mediaKind: z.ZodLiteral<AVATAR_STUDIO_MEDIA_KIND.VOICE_SAMPLE>;
15
+ voiceId: z.ZodObject<{
16
+ kind: z.ZodLiteral<"voice">;
17
+ required: z.ZodLiteral<true>;
19
18
  }, z.core.$strict>;
20
19
  }, z.core.$strict>;
21
20
  defaults: z.ZodObject<{
22
21
  trimStart: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
23
22
  trimEnd: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
24
23
  text: z.ZodDefault<z.ZodString>;
25
- voiceSampleMediaId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
24
+ voiceId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
26
25
  }, z.core.$strip>;
27
26
  pricing: z.ZodObject<{
28
27
  tts: z.ZodNullable<z.ZodObject<{
@@ -48,13 +48,6 @@ const AvatarStudioSelectFieldSchema = (optionSchema) => zod_1.z
48
48
  options: zod_1.z.array(optionSchema),
49
49
  })
50
50
  .strict();
51
- const AvatarStudioMediaFieldSchema = zod_1.z
52
- .object({
53
- kind: zod_1.z.literal('media'),
54
- required: zod_1.z.boolean(),
55
- mediaKind: zod_1.z.nativeEnum(constants_1.AVATAR_STUDIO_MEDIA_KIND),
56
- })
57
- .strict();
58
51
  const AvatarStudioMediaArrayFieldSchema = zod_1.z
59
52
  .object({
60
53
  kind: zod_1.z.literal('media-array'),
@@ -91,12 +84,14 @@ const AvatarStudioAudioConfigSectionSchema = AvatarStudioConfigSectionBaseSchema
91
84
  text: AvatarStudioTextFieldSchema.extend({
92
85
  required: zod_1.z.boolean(),
93
86
  }),
94
- // Образец голоса — вход генерации наравне с текстом, поэтому живёт
87
+ // Голос — вход генерации наравне с текстом, поэтому живёт
95
88
  // в voiceConfig и ставится через PATCH .../scenes/:sceneId.
96
- voiceSampleMediaId: AvatarStudioMediaFieldSchema.extend({
97
- required: zod_1.z.boolean(),
98
- mediaKind: zod_1.z.literal(constants_1.AVATAR_STUDIO_MEDIA_KIND.VOICE_SAMPLE),
99
- }),
89
+ voiceId: zod_1.z
90
+ .object({
91
+ kind: zod_1.z.literal('voice'),
92
+ required: zod_1.z.literal(true),
93
+ })
94
+ .strict(),
100
95
  })
101
96
  .strict(),
102
97
  defaults: models_1.AvatarStudioSceneVoiceConfigSchema,
@@ -0,0 +1,43 @@
1
+ import { z } from 'zod';
2
+ import { VOICE_GENDER } from '../../../constants';
3
+ export declare namespace CloneAvatarStudioVoiceCommand {
4
+ const RequestSchema: z.ZodObject<{
5
+ fileId: z.ZodString;
6
+ title: z.ZodString;
7
+ gender: z.ZodOptional<z.ZodEnum<typeof VOICE_GENDER>>;
8
+ }, z.core.$strict>;
9
+ type Request = z.infer<typeof RequestSchema>;
10
+ const ResponseSchema: z.ZodObject<{
11
+ data: z.ZodObject<{
12
+ uuid: z.ZodString;
13
+ scope: z.ZodEnum<typeof import("../../..").JOB_SCOPE>;
14
+ source: z.ZodObject<{
15
+ id: z.ZodEnum<typeof import("../../..").VOICE_SOURCE>;
16
+ label: z.ZodString;
17
+ }, z.core.$strip>;
18
+ title: z.ZodString;
19
+ description: z.ZodString;
20
+ gender: z.ZodNullable<z.ZodObject<{
21
+ id: z.ZodEnum<typeof VOICE_GENDER>;
22
+ label: z.ZodString;
23
+ }, z.core.$strip>>;
24
+ trait: z.ZodNullable<z.ZodString>;
25
+ ageRange: z.ZodNullable<z.ZodString>;
26
+ categories: z.ZodArray<z.ZodObject<{
27
+ id: z.ZodEnum<typeof import("../../..").VOICE_CATEGORY>;
28
+ label: z.ZodString;
29
+ }, z.core.$strip>>;
30
+ previewUrl: z.ZodString;
31
+ imageUrl: z.ZodNullable<z.ZodString>;
32
+ status: z.ZodEnum<typeof import("../../..").VOICE_STATUS>;
33
+ error: z.ZodNullable<z.ZodString>;
34
+ order: z.ZodNumber;
35
+ isDeleted: z.ZodBoolean;
36
+ userId: z.ZodNullable<z.ZodString>;
37
+ unregisteredUserId: z.ZodNullable<z.ZodString>;
38
+ createdAt: z.ZodDate;
39
+ updatedAt: z.ZodDate;
40
+ }, z.core.$strip>;
41
+ }, z.core.$strip>;
42
+ type Response = z.infer<typeof ResponseSchema>;
43
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CloneAvatarStudioVoiceCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const constants_1 = require("../../../constants");
6
+ const models_1 = require("../../../models");
7
+ var CloneAvatarStudioVoiceCommand;
8
+ (function (CloneAvatarStudioVoiceCommand) {
9
+ CloneAvatarStudioVoiceCommand.RequestSchema = zod_1.z
10
+ .object({
11
+ fileId: zod_1.z.string().uuid(),
12
+ title: zod_1.z.string().trim().min(1).max(255),
13
+ gender: zod_1.z.nativeEnum(constants_1.VOICE_GENDER).optional(),
14
+ })
15
+ .strict();
16
+ CloneAvatarStudioVoiceCommand.ResponseSchema = zod_1.z.object({
17
+ data: models_1.VoiceSchema,
18
+ });
19
+ })(CloneAvatarStudioVoiceCommand || (exports.CloneAvatarStudioVoiceCommand = CloneAvatarStudioVoiceCommand = {}));
@@ -0,0 +1,11 @@
1
+ import { z } from 'zod';
2
+ export declare namespace DeleteAvatarStudioVoiceCommand {
3
+ const ParamsSchema: z.ZodObject<{
4
+ voiceId: z.ZodString;
5
+ }, z.core.$strip>;
6
+ type Params = z.infer<typeof ParamsSchema>;
7
+ const ResponseSchema: z.ZodObject<{
8
+ data: z.ZodBoolean;
9
+ }, z.core.$strip>;
10
+ type Response = z.infer<typeof ResponseSchema>;
11
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteAvatarStudioVoiceCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ var DeleteAvatarStudioVoiceCommand;
6
+ (function (DeleteAvatarStudioVoiceCommand) {
7
+ DeleteAvatarStudioVoiceCommand.ParamsSchema = zod_1.z.object({
8
+ voiceId: zod_1.z.string().uuid(),
9
+ });
10
+ DeleteAvatarStudioVoiceCommand.ResponseSchema = zod_1.z.object({
11
+ data: zod_1.z.boolean(),
12
+ });
13
+ })(DeleteAvatarStudioVoiceCommand || (exports.DeleteAvatarStudioVoiceCommand = DeleteAvatarStudioVoiceCommand = {}));
@@ -1,70 +1,40 @@
1
1
  import { z } from 'zod';
2
+ import { VOICE_GENDER } from '../../../constants';
2
3
  export declare namespace DesignAvatarStudioVoiceCommand {
3
4
  const RequestSchema: z.ZodObject<{
4
- title: z.ZodOptional<z.ZodString>;
5
+ title: z.ZodString;
6
+ gender: z.ZodEnum<typeof VOICE_GENDER>;
5
7
  instruction: z.ZodString;
6
- language: z.ZodOptional<z.ZodString>;
7
8
  }, z.core.$strict>;
8
9
  type Request = z.infer<typeof RequestSchema>;
9
- /**
10
- * Отдаём job, как и все остальные генерации: созданный голос лежит в job.resultMedia.
11
- * Отдельного поля media нет — форма ответа одинакова у всех роутов генерации.
12
- */
13
10
  const ResponseSchema: z.ZodObject<{
14
11
  data: z.ZodObject<{
15
12
  uuid: z.ZodString;
13
+ scope: z.ZodEnum<typeof import("../../..").JOB_SCOPE>;
14
+ source: z.ZodObject<{
15
+ id: z.ZodEnum<typeof import("../../..").VOICE_SOURCE>;
16
+ label: z.ZodString;
17
+ }, z.core.$strip>;
18
+ title: z.ZodString;
19
+ description: z.ZodString;
20
+ gender: z.ZodNullable<z.ZodObject<{
21
+ id: z.ZodEnum<typeof VOICE_GENDER>;
22
+ label: z.ZodString;
23
+ }, z.core.$strip>>;
24
+ trait: z.ZodNullable<z.ZodString>;
25
+ ageRange: z.ZodNullable<z.ZodString>;
26
+ categories: z.ZodArray<z.ZodObject<{
27
+ id: z.ZodEnum<typeof import("../../..").VOICE_CATEGORY>;
28
+ label: z.ZodString;
29
+ }, z.core.$strip>>;
30
+ previewUrl: z.ZodString;
31
+ imageUrl: z.ZodNullable<z.ZodString>;
32
+ status: z.ZodEnum<typeof import("../../..").VOICE_STATUS>;
33
+ error: z.ZodNullable<z.ZodString>;
34
+ order: z.ZodNumber;
35
+ isDeleted: z.ZodBoolean;
16
36
  userId: z.ZodNullable<z.ZodString>;
17
37
  unregisteredUserId: z.ZodNullable<z.ZodString>;
18
- clipId: z.ZodNullable<z.ZodString>;
19
- sceneId: z.ZodNullable<z.ZodString>;
20
- toolJobId: z.ZodNullable<z.ZodString>;
21
- type: z.ZodEnum<typeof import("../../..").AVATAR_STUDIO_JOB_TYPE>;
22
- targetSlot: z.ZodNullable<z.ZodEnum<typeof import("../../..").AVATAR_STUDIO_SLOT>>;
23
- status: z.ZodEnum<typeof import("../../..").AVATAR_STUDIO_JOB_STATUS>;
24
- request: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodType<import("../../..").JsonValue, unknown, z.core.$ZodTypeInternals<import("../../..").JsonValue, unknown>>>>;
25
- resultMediaId: z.ZodNullable<z.ZodString>;
26
- error: z.ZodNullable<z.ZodString>;
27
- resultMedia: z.ZodOptional<z.ZodNullable<z.ZodObject<{
28
- uuid: z.ZodString;
29
- userId: z.ZodNullable<z.ZodString>;
30
- unregisteredUserId: z.ZodNullable<z.ZodString>;
31
- fileId: z.ZodString;
32
- kind: z.ZodEnum<typeof import("../../..").AVATAR_STUDIO_MEDIA_KIND>;
33
- title: z.ZodNullable<z.ZodString>;
34
- toolJobId: z.ZodNullable<z.ZodString>;
35
- durationSeconds: z.ZodNullable<z.ZodNumber>;
36
- transcript: z.ZodNullable<z.ZodString>;
37
- wordTimings: z.ZodNullable<z.ZodArray<z.ZodObject<{
38
- word: z.ZodString;
39
- start: z.ZodNumber;
40
- end: z.ZodNumber;
41
- }, z.core.$strip>>>;
42
- subtitles: z.ZodNullable<z.ZodType<import("../../..").JsonValue, unknown, z.core.$ZodTypeInternals<import("../../..").JsonValue, unknown>>>;
43
- deletedAt: z.ZodNullable<z.ZodDate>;
44
- file: z.ZodOptional<z.ZodObject<{
45
- uuid: z.ZodString;
46
- name: z.ZodString;
47
- size: z.ZodNumber;
48
- originalName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
49
- resolution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
50
- width: z.ZodNumber;
51
- height: z.ZodNumber;
52
- }, z.core.$strip>>>;
53
- mimeType: z.ZodString;
54
- url: z.ZodString;
55
- key: z.ZodString;
56
- type: z.ZodEnum<typeof import("../../..").FILE_TYPE>;
57
- duration: z.ZodNullable<z.ZodNumber>;
58
- attachmentCost: z.ZodDefault<z.ZodNumber>;
59
- contentLength: z.ZodNullable<z.ZodNumber>;
60
- createdAt: z.ZodDate;
61
- updatedAt: z.ZodDate;
62
- }, z.core.$strip>>;
63
- createdAt: z.ZodDate;
64
- updatedAt: z.ZodDate;
65
- }, z.core.$strip>>>;
66
- startedAt: z.ZodNullable<z.ZodDate>;
67
- completedAt: z.ZodNullable<z.ZodDate>;
68
38
  createdAt: z.ZodDate;
69
39
  updatedAt: z.ZodDate;
70
40
  }, z.core.$strip>;