@purpleschool/gptbot 0.15.76 → 0.15.77-stage-2
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.
- package/build/api/controllers/http/avatar-studio.d.ts +12 -0
- package/build/api/controllers/http/avatar-studio.js +13 -0
- package/build/commands/avatar-studio/character/create-avatar-studio-character.command.d.ts +32 -0
- package/build/commands/avatar-studio/character/create-avatar-studio-character.command.js +23 -0
- package/build/commands/avatar-studio/character/delete-avatar-studio-character.command.d.ts +13 -0
- package/build/commands/avatar-studio/character/delete-avatar-studio-character.command.js +12 -0
- package/build/commands/avatar-studio/character/find-avatar-studio-characters.query.d.ts +28 -0
- package/build/commands/avatar-studio/character/find-avatar-studio-characters.query.js +10 -0
- package/build/commands/avatar-studio/character/generate-avatar-studio-character-reference.command.d.ts +76 -0
- package/build/commands/avatar-studio/character/generate-avatar-studio-character-reference.command.js +24 -0
- package/build/commands/avatar-studio/character/get-avatar-studio-character.query.d.ts +25 -0
- package/build/commands/avatar-studio/character/get-avatar-studio-character.query.js +13 -0
- package/build/commands/avatar-studio/character/index.d.ts +6 -0
- package/build/commands/avatar-studio/character/index.js +22 -0
- package/build/commands/avatar-studio/character/update-avatar-studio-character.command.d.ts +32 -0
- package/build/commands/avatar-studio/character/update-avatar-studio-character.command.js +24 -0
- package/build/commands/avatar-studio/clip/create-avatar-studio-clip.command.d.ts +2 -0
- package/build/commands/avatar-studio/clip/find-avatar-studio-clips.query.d.ts +2 -0
- package/build/commands/avatar-studio/clip/get-avatar-studio-clip.query.d.ts +2 -0
- package/build/commands/avatar-studio/clip/update-avatar-studio-clip.command.d.ts +2 -0
- package/build/commands/avatar-studio/generation-job/generate-avatar-studio-frame.command.d.ts +3 -1
- package/build/commands/avatar-studio/generation-job/generate-avatar-studio-frame.command.js +5 -1
- package/build/commands/avatar-studio/index.d.ts +2 -0
- package/build/commands/avatar-studio/index.js +2 -0
- package/build/commands/avatar-studio/location/create-avatar-studio-location.command.d.ts +30 -0
- package/build/commands/avatar-studio/location/create-avatar-studio-location.command.js +22 -0
- package/build/commands/avatar-studio/location/delete-avatar-studio-location.command.d.ts +13 -0
- package/build/commands/avatar-studio/location/delete-avatar-studio-location.command.js +12 -0
- package/build/commands/avatar-studio/location/find-avatar-studio-locations.query.d.ts +27 -0
- package/build/commands/avatar-studio/location/find-avatar-studio-locations.query.js +10 -0
- package/build/commands/avatar-studio/location/generate-avatar-studio-location-reference.command.d.ts +76 -0
- package/build/commands/avatar-studio/location/generate-avatar-studio-location-reference.command.js +24 -0
- package/build/commands/avatar-studio/location/get-avatar-studio-location.query.d.ts +24 -0
- package/build/commands/avatar-studio/location/get-avatar-studio-location.query.js +13 -0
- package/build/commands/avatar-studio/location/index.d.ts +6 -0
- package/build/commands/avatar-studio/location/index.js +22 -0
- package/build/commands/avatar-studio/location/update-avatar-studio-location.command.d.ts +30 -0
- package/build/commands/avatar-studio/location/update-avatar-studio-location.command.js +23 -0
- package/build/commands/avatar-studio/scene/apply-avatar-studio-voice-to-all-scenes.command.d.ts +2 -0
- package/build/commands/avatar-studio/scene/create-avatar-studio-scene.command.d.ts +2 -0
- package/build/commands/avatar-studio/scene/reorder-avatar-studio-scenes.command.d.ts +2 -0
- package/build/commands/avatar-studio/scene/set-avatar-studio-scene-slot.command.d.ts +2 -0
- package/build/commands/avatar-studio/scene/update-avatar-studio-scene.command.d.ts +4 -0
- package/build/commands/avatar-studio/scriptwriter/apply-avatar-studio-scriptwriter-message.command.d.ts +2 -0
- package/build/commands/avatar-studio/shared/avatar-studio-common.schema.d.ts +8 -0
- package/build/commands/avatar-studio/shared/avatar-studio-common.schema.js +8 -1
- package/build/commands/avatar-studio/shared/get-avatar-studio-config.query.d.ts +42 -0
- package/build/commands/avatar-studio/shared/get-avatar-studio-config.query.js +22 -0
- package/build/constants/avatar-studio/enums/avatar-studio-job-type.enum.d.ts +5 -1
- package/build/constants/avatar-studio/enums/avatar-studio-job-type.enum.js +4 -0
- package/build/constants/avatar-studio/enums/avatar-studio-reference-card-status.enum.d.ts +6 -0
- package/build/constants/avatar-studio/enums/avatar-studio-reference-card-status.enum.js +10 -0
- package/build/constants/avatar-studio/enums/index.d.ts +1 -0
- package/build/constants/avatar-studio/enums/index.js +1 -0
- package/build/models/avatar-studio/avatar-studio.schema.d.ts +59 -1
- package/build/models/avatar-studio/avatar-studio.schema.js +31 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AvatarStudioClipSchema = exports.AvatarStudioScriptwriterMessageSchema = exports.AvatarStudioExportJobSchema = exports.AvatarStudioGenerationJobSchema = exports.AvatarStudioGenerationJobBaseSchema = exports.AvatarStudioSceneSchema = exports.AvatarStudioSceneGenerationJobSchema = exports.AvatarStudioSceneVideoConfigSchema = exports.AvatarStudioSceneVideoConfigBaseSchema = exports.AvatarStudioSceneImageConfigResponseSchema = exports.AvatarStudioSceneImageReferenceSchema = exports.AvatarStudioSceneImageConfigSchema = exports.AvatarStudioSceneVoiceConfigSchema = exports.AvatarStudioSceneVoiceConfigBaseSchema = exports.validateAvatarStudioTrim = exports.AvatarStudioTrimConfigFields = exports.AvatarStudioMediaSchema = exports.AvatarStudioWordTimingSchema = exports.AvatarStudioSubtitleSettingsSchema = exports.AvatarStudioAspectRatioSchema = void 0;
|
|
3
|
+
exports.AvatarStudioClipSchema = exports.AvatarStudioScriptwriterMessageSchema = exports.AvatarStudioExportJobSchema = exports.AvatarStudioGenerationJobSchema = exports.AvatarStudioGenerationJobBaseSchema = exports.AvatarStudioSceneSchema = exports.AvatarStudioSceneGenerationJobSchema = exports.AvatarStudioSceneVideoConfigSchema = exports.AvatarStudioSceneVideoConfigBaseSchema = exports.AvatarStudioSceneImageConfigResponseSchema = exports.AvatarStudioSceneImageReferenceSchema = exports.AvatarStudioSceneImageConfigSchema = exports.AvatarStudioSceneVoiceConfigSchema = exports.AvatarStudioSceneVoiceConfigBaseSchema = exports.validateAvatarStudioTrim = exports.AvatarStudioTrimConfigFields = exports.AvatarStudioLocationSchema = exports.AvatarStudioCharacterSchema = exports.AvatarStudioReferenceCardBaseSchema = exports.AvatarStudioMediaSchema = exports.AvatarStudioWordTimingSchema = exports.AvatarStudioSubtitleSettingsSchema = exports.AvatarStudioAspectRatioSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const constants_1 = require("../../constants");
|
|
6
6
|
const file_schema_1 = require("../file.schema");
|
|
@@ -47,6 +47,32 @@ exports.AvatarStudioMediaSchema = zod_1.z.object({
|
|
|
47
47
|
createdAt: zod_1.z.date(),
|
|
48
48
|
updatedAt: zod_1.z.date(),
|
|
49
49
|
});
|
|
50
|
+
/**
|
|
51
|
+
* Общие поля персонажа и локации — переиспользуемых карточек с одним reference sheet
|
|
52
|
+
* (2x2-сетка ракурсов). Reference sheet — File, а не AvatarStudioMedia: карточка не должна
|
|
53
|
+
* попадать в сетку фото медиатеки.
|
|
54
|
+
*/
|
|
55
|
+
exports.AvatarStudioReferenceCardBaseSchema = zod_1.z.object({
|
|
56
|
+
uuid: zod_1.z.string().uuid(),
|
|
57
|
+
userId: zod_1.z.string().uuid().nullable(),
|
|
58
|
+
unregisteredUserId: zod_1.z.string().uuid().nullable(),
|
|
59
|
+
name: zod_1.z.string(),
|
|
60
|
+
description: zod_1.z.string().nullable(),
|
|
61
|
+
fileId: zod_1.z.string().uuid().nullable(),
|
|
62
|
+
/** URL reference sheet. null — файла ещё нет. */
|
|
63
|
+
fileUrl: zod_1.z.string().nullable(),
|
|
64
|
+
status: zod_1.z.nativeEnum(constants_1.AVATAR_STUDIO_REFERENCE_CARD_STATUS),
|
|
65
|
+
error: zod_1.z.string().nullable(),
|
|
66
|
+
/** Job текущей генерации; фронт поллит его на GET generation-jobs/:jobId. null — генерации нет. */
|
|
67
|
+
generationJobId: zod_1.z.string().uuid().nullable(),
|
|
68
|
+
createdAt: zod_1.z.date(),
|
|
69
|
+
updatedAt: zod_1.z.date(),
|
|
70
|
+
});
|
|
71
|
+
exports.AvatarStudioCharacterSchema = exports.AvatarStudioReferenceCardBaseSchema.extend({
|
|
72
|
+
/** uuid голоса инструмента (scope = avatar_studio). null — голос не закреплён. */
|
|
73
|
+
voiceId: zod_1.z.string().uuid().nullable(),
|
|
74
|
+
});
|
|
75
|
+
exports.AvatarStudioLocationSchema = exports.AvatarStudioReferenceCardBaseSchema;
|
|
50
76
|
exports.AvatarStudioTrimConfigFields = {
|
|
51
77
|
trimStart: zod_1.z.number().nonnegative().nullable().default(null),
|
|
52
78
|
trimEnd: zod_1.z.number().nonnegative().nullable().default(null),
|
|
@@ -78,6 +104,10 @@ exports.AvatarStudioSceneImageConfigSchema = zod_1.z.object({
|
|
|
78
104
|
prompt: zod_1.z.string().nullable().default(null),
|
|
79
105
|
style: zod_1.z.nativeEnum(constants_1.AVATAR_STUDIO_IMAGE_STYLE).default(constants_1.AVATAR_STUDIO_IMAGE_STYLE.UGC),
|
|
80
106
|
references: zod_1.z.array(zod_1.z.string().uuid()).default([]),
|
|
107
|
+
/** Персонаж сцены. Его reference sheet подставляется в референсы генерации кадра. */
|
|
108
|
+
characterId: zod_1.z.string().uuid().nullable().default(null),
|
|
109
|
+
/** Локация сцены. Её reference sheet подставляется в референсы генерации кадра. */
|
|
110
|
+
locationId: zod_1.z.string().uuid().nullable().default(null),
|
|
81
111
|
});
|
|
82
112
|
exports.AvatarStudioSceneImageReferenceSchema = zod_1.z.object({
|
|
83
113
|
uuid: zod_1.z.string().uuid(),
|