@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.
Files changed (57) hide show
  1. package/build/api/controllers/http/avatar-studio.d.ts +12 -0
  2. package/build/api/controllers/http/avatar-studio.js +13 -0
  3. package/build/commands/avatar-studio/character/create-avatar-studio-character.command.d.ts +32 -0
  4. package/build/commands/avatar-studio/character/create-avatar-studio-character.command.js +23 -0
  5. package/build/commands/avatar-studio/character/delete-avatar-studio-character.command.d.ts +13 -0
  6. package/build/commands/avatar-studio/character/delete-avatar-studio-character.command.js +12 -0
  7. package/build/commands/avatar-studio/character/find-avatar-studio-characters.query.d.ts +28 -0
  8. package/build/commands/avatar-studio/character/find-avatar-studio-characters.query.js +10 -0
  9. package/build/commands/avatar-studio/character/generate-avatar-studio-character-reference.command.d.ts +76 -0
  10. package/build/commands/avatar-studio/character/generate-avatar-studio-character-reference.command.js +24 -0
  11. package/build/commands/avatar-studio/character/get-avatar-studio-character.query.d.ts +25 -0
  12. package/build/commands/avatar-studio/character/get-avatar-studio-character.query.js +13 -0
  13. package/build/commands/avatar-studio/character/index.d.ts +6 -0
  14. package/build/commands/avatar-studio/character/index.js +22 -0
  15. package/build/commands/avatar-studio/character/update-avatar-studio-character.command.d.ts +32 -0
  16. package/build/commands/avatar-studio/character/update-avatar-studio-character.command.js +24 -0
  17. package/build/commands/avatar-studio/clip/create-avatar-studio-clip.command.d.ts +2 -0
  18. package/build/commands/avatar-studio/clip/find-avatar-studio-clips.query.d.ts +2 -0
  19. package/build/commands/avatar-studio/clip/get-avatar-studio-clip.query.d.ts +2 -0
  20. package/build/commands/avatar-studio/clip/update-avatar-studio-clip.command.d.ts +2 -0
  21. package/build/commands/avatar-studio/generation-job/generate-avatar-studio-frame.command.d.ts +3 -1
  22. package/build/commands/avatar-studio/generation-job/generate-avatar-studio-frame.command.js +5 -1
  23. package/build/commands/avatar-studio/index.d.ts +2 -0
  24. package/build/commands/avatar-studio/index.js +2 -0
  25. package/build/commands/avatar-studio/location/create-avatar-studio-location.command.d.ts +30 -0
  26. package/build/commands/avatar-studio/location/create-avatar-studio-location.command.js +22 -0
  27. package/build/commands/avatar-studio/location/delete-avatar-studio-location.command.d.ts +13 -0
  28. package/build/commands/avatar-studio/location/delete-avatar-studio-location.command.js +12 -0
  29. package/build/commands/avatar-studio/location/find-avatar-studio-locations.query.d.ts +27 -0
  30. package/build/commands/avatar-studio/location/find-avatar-studio-locations.query.js +10 -0
  31. package/build/commands/avatar-studio/location/generate-avatar-studio-location-reference.command.d.ts +76 -0
  32. package/build/commands/avatar-studio/location/generate-avatar-studio-location-reference.command.js +24 -0
  33. package/build/commands/avatar-studio/location/get-avatar-studio-location.query.d.ts +24 -0
  34. package/build/commands/avatar-studio/location/get-avatar-studio-location.query.js +13 -0
  35. package/build/commands/avatar-studio/location/index.d.ts +6 -0
  36. package/build/commands/avatar-studio/location/index.js +22 -0
  37. package/build/commands/avatar-studio/location/update-avatar-studio-location.command.d.ts +30 -0
  38. package/build/commands/avatar-studio/location/update-avatar-studio-location.command.js +23 -0
  39. package/build/commands/avatar-studio/scene/apply-avatar-studio-voice-to-all-scenes.command.d.ts +2 -0
  40. package/build/commands/avatar-studio/scene/create-avatar-studio-scene.command.d.ts +2 -0
  41. package/build/commands/avatar-studio/scene/reorder-avatar-studio-scenes.command.d.ts +2 -0
  42. package/build/commands/avatar-studio/scene/set-avatar-studio-scene-slot.command.d.ts +2 -0
  43. package/build/commands/avatar-studio/scene/update-avatar-studio-scene.command.d.ts +4 -0
  44. package/build/commands/avatar-studio/scriptwriter/apply-avatar-studio-scriptwriter-message.command.d.ts +2 -0
  45. package/build/commands/avatar-studio/shared/avatar-studio-common.schema.d.ts +8 -0
  46. package/build/commands/avatar-studio/shared/avatar-studio-common.schema.js +8 -1
  47. package/build/commands/avatar-studio/shared/get-avatar-studio-config.query.d.ts +42 -0
  48. package/build/commands/avatar-studio/shared/get-avatar-studio-config.query.js +22 -0
  49. package/build/constants/avatar-studio/enums/avatar-studio-job-type.enum.d.ts +5 -1
  50. package/build/constants/avatar-studio/enums/avatar-studio-job-type.enum.js +4 -0
  51. package/build/constants/avatar-studio/enums/avatar-studio-reference-card-status.enum.d.ts +6 -0
  52. package/build/constants/avatar-studio/enums/avatar-studio-reference-card-status.enum.js +10 -0
  53. package/build/constants/avatar-studio/enums/index.d.ts +1 -0
  54. package/build/constants/avatar-studio/enums/index.js +1 -0
  55. package/build/models/avatar-studio/avatar-studio.schema.d.ts +59 -1
  56. package/build/models/avatar-studio/avatar-studio.schema.js +31 -1
  57. package/package.json +1 -1
@@ -42,4 +42,16 @@ export declare const AVATAR_STUDIO_ROUTES: {
42
42
  readonly GET_EXPORT_JOB: (jobId: string) => string;
43
43
  readonly GET_CLIP_EXPORT_JOBS: (clipId: string) => string;
44
44
  readonly START_EXPORT: (clipId: string) => string;
45
+ readonly CREATE_CHARACTER: 'characters';
46
+ readonly GET_CHARACTERS: 'characters';
47
+ readonly GET_CHARACTER: (characterId: string) => string;
48
+ readonly UPDATE_CHARACTER: (characterId: string) => string;
49
+ readonly DELETE_CHARACTER: (characterId: string) => string;
50
+ readonly GENERATE_CHARACTER_REFERENCE: (characterId: string) => string;
51
+ readonly CREATE_LOCATION: 'locations';
52
+ readonly GET_LOCATIONS: 'locations';
53
+ readonly GET_LOCATION: (locationId: string) => string;
54
+ readonly UPDATE_LOCATION: (locationId: string) => string;
55
+ readonly DELETE_LOCATION: (locationId: string) => string;
56
+ readonly GENERATE_LOCATION_REFERENCE: (locationId: string) => string;
45
57
  };
@@ -48,4 +48,17 @@ exports.AVATAR_STUDIO_ROUTES = {
48
48
  GET_EXPORT_JOB: (jobId) => `export-jobs/${jobId}`,
49
49
  GET_CLIP_EXPORT_JOBS: (clipId) => `clips/${clipId}/export-jobs`,
50
50
  START_EXPORT: (clipId) => `clips/${clipId}/export`,
51
+ // Персонажи и локации принадлежат пользователю, а не клипу — роуты плоские.
52
+ CREATE_CHARACTER: 'characters',
53
+ GET_CHARACTERS: 'characters',
54
+ GET_CHARACTER: (characterId) => `characters/${characterId}`,
55
+ UPDATE_CHARACTER: (characterId) => `characters/${characterId}`,
56
+ DELETE_CHARACTER: (characterId) => `characters/${characterId}`,
57
+ GENERATE_CHARACTER_REFERENCE: (characterId) => `characters/${characterId}/reference/generate`,
58
+ CREATE_LOCATION: 'locations',
59
+ GET_LOCATIONS: 'locations',
60
+ GET_LOCATION: (locationId) => `locations/${locationId}`,
61
+ UPDATE_LOCATION: (locationId) => `locations/${locationId}`,
62
+ DELETE_LOCATION: (locationId) => `locations/${locationId}`,
63
+ GENERATE_LOCATION_REFERENCE: (locationId) => `locations/${locationId}/reference/generate`,
51
64
  };
@@ -0,0 +1,32 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * fileId опущен — карточка создаётся со status = draft, без reference sheet.
4
+ * fileId уже загруженного файла — карточка сразу ready, отдельного multipart-роута нет.
5
+ */
6
+ export declare namespace CreateAvatarStudioCharacterCommand {
7
+ const RequestSchema: z.ZodObject<{
8
+ name: z.ZodString;
9
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ fileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ voiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ }, z.core.$strict>;
13
+ type Request = z.infer<typeof RequestSchema>;
14
+ const ResponseSchema: z.ZodObject<{
15
+ data: z.ZodObject<{
16
+ uuid: z.ZodString;
17
+ userId: z.ZodNullable<z.ZodString>;
18
+ unregisteredUserId: z.ZodNullable<z.ZodString>;
19
+ name: z.ZodString;
20
+ description: z.ZodNullable<z.ZodString>;
21
+ fileId: z.ZodNullable<z.ZodString>;
22
+ fileUrl: z.ZodNullable<z.ZodString>;
23
+ status: z.ZodEnum<typeof import("../../..").AVATAR_STUDIO_REFERENCE_CARD_STATUS>;
24
+ error: z.ZodNullable<z.ZodString>;
25
+ generationJobId: z.ZodNullable<z.ZodString>;
26
+ createdAt: z.ZodDate;
27
+ updatedAt: z.ZodDate;
28
+ voiceId: z.ZodNullable<z.ZodString>;
29
+ }, z.core.$strip>;
30
+ }, z.core.$strip>;
31
+ type Response = z.infer<typeof ResponseSchema>;
32
+ }
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateAvatarStudioCharacterCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../../models");
6
+ /**
7
+ * fileId опущен — карточка создаётся со status = draft, без reference sheet.
8
+ * fileId уже загруженного файла — карточка сразу ready, отдельного multipart-роута нет.
9
+ */
10
+ var CreateAvatarStudioCharacterCommand;
11
+ (function (CreateAvatarStudioCharacterCommand) {
12
+ CreateAvatarStudioCharacterCommand.RequestSchema = zod_1.z
13
+ .object({
14
+ name: zod_1.z.string().trim().min(1).max(255),
15
+ description: zod_1.z.string().trim().max(2000).nullable().optional(),
16
+ fileId: zod_1.z.string().uuid().nullable().optional(),
17
+ voiceId: zod_1.z.string().uuid().nullable().optional(),
18
+ })
19
+ .strict();
20
+ CreateAvatarStudioCharacterCommand.ResponseSchema = zod_1.z.object({
21
+ data: models_1.AvatarStudioCharacterSchema,
22
+ });
23
+ })(CreateAvatarStudioCharacterCommand || (exports.CreateAvatarStudioCharacterCommand = CreateAvatarStudioCharacterCommand = {}));
@@ -0,0 +1,13 @@
1
+ import { z } from 'zod';
2
+ export declare namespace DeleteAvatarStudioCharacterCommand {
3
+ const ParamsSchema: z.ZodObject<{
4
+ characterId: z.ZodString;
5
+ }, z.core.$strip>;
6
+ type Params = z.infer<typeof ParamsSchema>;
7
+ const ResponseSchema: z.ZodObject<{
8
+ data: z.ZodObject<{
9
+ uuid: z.ZodString;
10
+ }, z.core.$strip>;
11
+ }, z.core.$strip>;
12
+ type Response = z.infer<typeof ResponseSchema>;
13
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteAvatarStudioCharacterCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const avatar_studio_common_schema_1 = require("../shared/avatar-studio-common.schema");
6
+ var DeleteAvatarStudioCharacterCommand;
7
+ (function (DeleteAvatarStudioCharacterCommand) {
8
+ DeleteAvatarStudioCharacterCommand.ParamsSchema = avatar_studio_common_schema_1.AvatarStudioCharacterIdParamsSchema;
9
+ DeleteAvatarStudioCharacterCommand.ResponseSchema = zod_1.z.object({
10
+ data: zod_1.z.object({ uuid: zod_1.z.string().uuid() }),
11
+ });
12
+ })(DeleteAvatarStudioCharacterCommand || (exports.DeleteAvatarStudioCharacterCommand = DeleteAvatarStudioCharacterCommand = {}));
@@ -0,0 +1,28 @@
1
+ import { z } from 'zod';
2
+ export declare namespace FindAvatarStudioCharactersQuery {
3
+ const QuerySchema: z.ZodObject<{
4
+ limit: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
5
+ offset: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
6
+ }, z.core.$strip>;
7
+ type Query = z.infer<typeof QuerySchema>;
8
+ const ResponseSchema: z.ZodObject<{
9
+ data: z.ZodArray<z.ZodObject<{
10
+ uuid: z.ZodString;
11
+ userId: z.ZodNullable<z.ZodString>;
12
+ unregisteredUserId: z.ZodNullable<z.ZodString>;
13
+ name: z.ZodString;
14
+ description: z.ZodNullable<z.ZodString>;
15
+ fileId: z.ZodNullable<z.ZodString>;
16
+ fileUrl: z.ZodNullable<z.ZodString>;
17
+ status: z.ZodEnum<typeof import("../../..").AVATAR_STUDIO_REFERENCE_CARD_STATUS>;
18
+ error: z.ZodNullable<z.ZodString>;
19
+ generationJobId: z.ZodNullable<z.ZodString>;
20
+ createdAt: z.ZodDate;
21
+ updatedAt: z.ZodDate;
22
+ voiceId: z.ZodNullable<z.ZodString>;
23
+ }, z.core.$strip>>;
24
+ page: z.ZodNumber;
25
+ totalPages: z.ZodNumber;
26
+ }, z.core.$strip>;
27
+ type Response = z.infer<typeof ResponseSchema>;
28
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FindAvatarStudioCharactersQuery = void 0;
4
+ const models_1 = require("../../../models");
5
+ const avatar_studio_common_schema_1 = require("../shared/avatar-studio-common.schema");
6
+ var FindAvatarStudioCharactersQuery;
7
+ (function (FindAvatarStudioCharactersQuery) {
8
+ FindAvatarStudioCharactersQuery.QuerySchema = avatar_studio_common_schema_1.AvatarStudioPaginationQuerySchema;
9
+ FindAvatarStudioCharactersQuery.ResponseSchema = (0, avatar_studio_common_schema_1.AvatarStudioPagedResponseSchema)(models_1.AvatarStudioCharacterSchema);
10
+ })(FindAvatarStudioCharactersQuery || (exports.FindAvatarStudioCharactersQuery = FindAvatarStudioCharactersQuery = {}));
@@ -0,0 +1,76 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * prompt переопределяет построенный промпт reference sheet целиком.
4
+ * photoFileId — опциональное фото пользователя: генерация уходит в image-to-image
5
+ * и просит сохранить внешность с референса, а не выдумывать её по описанию.
6
+ */
7
+ export declare namespace GenerateAvatarStudioCharacterReferenceCommand {
8
+ const ParamsSchema: z.ZodObject<{
9
+ characterId: z.ZodString;
10
+ }, z.core.$strip>;
11
+ type Params = z.infer<typeof ParamsSchema>;
12
+ const RequestSchema: z.ZodObject<{
13
+ prompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ photoFileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ }, z.core.$strict>;
16
+ type Request = z.infer<typeof RequestSchema>;
17
+ const ResponseSchema: z.ZodObject<{
18
+ data: z.ZodObject<{
19
+ uuid: z.ZodString;
20
+ userId: z.ZodNullable<z.ZodString>;
21
+ unregisteredUserId: z.ZodNullable<z.ZodString>;
22
+ clipId: z.ZodNullable<z.ZodString>;
23
+ sceneId: z.ZodNullable<z.ZodString>;
24
+ toolJobId: z.ZodNullable<z.ZodString>;
25
+ type: z.ZodEnum<typeof import("../../..").AVATAR_STUDIO_JOB_TYPE>;
26
+ targetSlot: z.ZodNullable<z.ZodEnum<typeof import("../../..").AVATAR_STUDIO_SLOT>>;
27
+ status: z.ZodEnum<typeof import("../../..").AVATAR_STUDIO_JOB_STATUS>;
28
+ request: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodType<import("../../..").JsonValue, unknown, z.core.$ZodTypeInternals<import("../../..").JsonValue, unknown>>>>;
29
+ resultMediaId: z.ZodNullable<z.ZodString>;
30
+ error: z.ZodNullable<z.ZodString>;
31
+ resultMedia: z.ZodOptional<z.ZodNullable<z.ZodObject<{
32
+ uuid: z.ZodString;
33
+ userId: z.ZodNullable<z.ZodString>;
34
+ unregisteredUserId: z.ZodNullable<z.ZodString>;
35
+ fileId: z.ZodString;
36
+ kind: z.ZodEnum<typeof import("../../..").AVATAR_STUDIO_MEDIA_KIND>;
37
+ title: z.ZodNullable<z.ZodString>;
38
+ toolJobId: z.ZodNullable<z.ZodString>;
39
+ durationSeconds: z.ZodNullable<z.ZodNumber>;
40
+ transcript: z.ZodNullable<z.ZodString>;
41
+ wordTimings: z.ZodNullable<z.ZodArray<z.ZodObject<{
42
+ word: z.ZodString;
43
+ start: z.ZodNumber;
44
+ end: z.ZodNumber;
45
+ }, z.core.$strip>>>;
46
+ subtitles: z.ZodNullable<z.ZodType<import("../../..").JsonValue, unknown, z.core.$ZodTypeInternals<import("../../..").JsonValue, unknown>>>;
47
+ deletedAt: z.ZodNullable<z.ZodDate>;
48
+ file: z.ZodOptional<z.ZodObject<{
49
+ uuid: z.ZodString;
50
+ name: z.ZodString;
51
+ size: z.ZodNumber;
52
+ originalName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
+ resolution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
54
+ width: z.ZodNumber;
55
+ height: z.ZodNumber;
56
+ }, z.core.$strip>>>;
57
+ mimeType: z.ZodString;
58
+ url: z.ZodString;
59
+ key: z.ZodString;
60
+ type: z.ZodEnum<typeof import("../../..").FILE_TYPE>;
61
+ duration: z.ZodNullable<z.ZodNumber>;
62
+ contentLength: z.ZodNullable<z.ZodNumber>;
63
+ createdAt: z.ZodDate;
64
+ updatedAt: z.ZodDate;
65
+ }, z.core.$strip>>;
66
+ createdAt: z.ZodDate;
67
+ updatedAt: z.ZodDate;
68
+ }, z.core.$strip>>>;
69
+ startedAt: z.ZodNullable<z.ZodDate>;
70
+ completedAt: z.ZodNullable<z.ZodDate>;
71
+ createdAt: z.ZodDate;
72
+ updatedAt: z.ZodDate;
73
+ }, z.core.$strip>;
74
+ }, z.core.$strip>;
75
+ type Response = z.infer<typeof ResponseSchema>;
76
+ }
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GenerateAvatarStudioCharacterReferenceCommand = 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
+ /**
8
+ * prompt переопределяет построенный промпт reference sheet целиком.
9
+ * photoFileId — опциональное фото пользователя: генерация уходит в image-to-image
10
+ * и просит сохранить внешность с референса, а не выдумывать её по описанию.
11
+ */
12
+ var GenerateAvatarStudioCharacterReferenceCommand;
13
+ (function (GenerateAvatarStudioCharacterReferenceCommand) {
14
+ GenerateAvatarStudioCharacterReferenceCommand.ParamsSchema = avatar_studio_common_schema_1.AvatarStudioCharacterIdParamsSchema;
15
+ GenerateAvatarStudioCharacterReferenceCommand.RequestSchema = zod_1.z
16
+ .object({
17
+ prompt: zod_1.z.string().trim().min(1).nullable().optional(),
18
+ photoFileId: zod_1.z.string().uuid().nullable().optional(),
19
+ })
20
+ .strict();
21
+ GenerateAvatarStudioCharacterReferenceCommand.ResponseSchema = zod_1.z.object({
22
+ data: models_1.AvatarStudioGenerationJobSchema,
23
+ });
24
+ })(GenerateAvatarStudioCharacterReferenceCommand || (exports.GenerateAvatarStudioCharacterReferenceCommand = GenerateAvatarStudioCharacterReferenceCommand = {}));
@@ -0,0 +1,25 @@
1
+ import { z } from 'zod';
2
+ export declare namespace GetAvatarStudioCharacterQuery {
3
+ const ParamsSchema: z.ZodObject<{
4
+ characterId: z.ZodString;
5
+ }, z.core.$strip>;
6
+ type Params = z.infer<typeof ParamsSchema>;
7
+ const ResponseSchema: z.ZodObject<{
8
+ data: z.ZodObject<{
9
+ uuid: z.ZodString;
10
+ userId: z.ZodNullable<z.ZodString>;
11
+ unregisteredUserId: z.ZodNullable<z.ZodString>;
12
+ name: z.ZodString;
13
+ description: z.ZodNullable<z.ZodString>;
14
+ fileId: z.ZodNullable<z.ZodString>;
15
+ fileUrl: z.ZodNullable<z.ZodString>;
16
+ status: z.ZodEnum<typeof import("../../..").AVATAR_STUDIO_REFERENCE_CARD_STATUS>;
17
+ error: z.ZodNullable<z.ZodString>;
18
+ generationJobId: z.ZodNullable<z.ZodString>;
19
+ createdAt: z.ZodDate;
20
+ updatedAt: z.ZodDate;
21
+ voiceId: z.ZodNullable<z.ZodString>;
22
+ }, z.core.$strip>;
23
+ }, z.core.$strip>;
24
+ type Response = z.infer<typeof ResponseSchema>;
25
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetAvatarStudioCharacterQuery = 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 GetAvatarStudioCharacterQuery;
8
+ (function (GetAvatarStudioCharacterQuery) {
9
+ GetAvatarStudioCharacterQuery.ParamsSchema = avatar_studio_common_schema_1.AvatarStudioCharacterIdParamsSchema;
10
+ GetAvatarStudioCharacterQuery.ResponseSchema = zod_1.z.object({
11
+ data: models_1.AvatarStudioCharacterSchema,
12
+ });
13
+ })(GetAvatarStudioCharacterQuery || (exports.GetAvatarStudioCharacterQuery = GetAvatarStudioCharacterQuery = {}));
@@ -0,0 +1,6 @@
1
+ export * from './create-avatar-studio-character.command';
2
+ export * from './delete-avatar-studio-character.command';
3
+ export * from './find-avatar-studio-characters.query';
4
+ export * from './generate-avatar-studio-character-reference.command';
5
+ export * from './get-avatar-studio-character.query';
6
+ export * from './update-avatar-studio-character.command';
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./create-avatar-studio-character.command"), exports);
18
+ __exportStar(require("./delete-avatar-studio-character.command"), exports);
19
+ __exportStar(require("./find-avatar-studio-characters.query"), exports);
20
+ __exportStar(require("./generate-avatar-studio-character-reference.command"), exports);
21
+ __exportStar(require("./get-avatar-studio-character.query"), exports);
22
+ __exportStar(require("./update-avatar-studio-character.command"), exports);
@@ -0,0 +1,32 @@
1
+ import { z } from 'zod';
2
+ export declare namespace UpdateAvatarStudioCharacterCommand {
3
+ const ParamsSchema: z.ZodObject<{
4
+ characterId: z.ZodString;
5
+ }, z.core.$strip>;
6
+ type Params = z.infer<typeof ParamsSchema>;
7
+ const RequestSchema: z.ZodObject<{
8
+ name: z.ZodOptional<z.ZodString>;
9
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ fileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ voiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ }, z.core.$strict>;
13
+ type Request = z.infer<typeof RequestSchema>;
14
+ const ResponseSchema: z.ZodObject<{
15
+ data: z.ZodObject<{
16
+ uuid: z.ZodString;
17
+ userId: z.ZodNullable<z.ZodString>;
18
+ unregisteredUserId: z.ZodNullable<z.ZodString>;
19
+ name: z.ZodString;
20
+ description: z.ZodNullable<z.ZodString>;
21
+ fileId: z.ZodNullable<z.ZodString>;
22
+ fileUrl: z.ZodNullable<z.ZodString>;
23
+ status: z.ZodEnum<typeof import("../../..").AVATAR_STUDIO_REFERENCE_CARD_STATUS>;
24
+ error: z.ZodNullable<z.ZodString>;
25
+ generationJobId: z.ZodNullable<z.ZodString>;
26
+ createdAt: z.ZodDate;
27
+ updatedAt: z.ZodDate;
28
+ voiceId: z.ZodNullable<z.ZodString>;
29
+ }, z.core.$strip>;
30
+ }, z.core.$strip>;
31
+ type Response = z.infer<typeof ResponseSchema>;
32
+ }
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateAvatarStudioCharacterCommand = 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 UpdateAvatarStudioCharacterCommand;
8
+ (function (UpdateAvatarStudioCharacterCommand) {
9
+ UpdateAvatarStudioCharacterCommand.ParamsSchema = avatar_studio_common_schema_1.AvatarStudioCharacterIdParamsSchema;
10
+ UpdateAvatarStudioCharacterCommand.RequestSchema = zod_1.z
11
+ .object({
12
+ name: zod_1.z.string().trim().min(1).max(255).optional(),
13
+ description: zod_1.z.string().trim().max(2000).nullable().optional(),
14
+ fileId: zod_1.z.string().uuid().nullable().optional(),
15
+ voiceId: zod_1.z.string().uuid().nullable().optional(),
16
+ })
17
+ .strict()
18
+ .refine((value) => Object.keys(value).length > 0, {
19
+ message: 'At least one field must be provided',
20
+ });
21
+ UpdateAvatarStudioCharacterCommand.ResponseSchema = zod_1.z.object({
22
+ data: models_1.AvatarStudioCharacterSchema,
23
+ });
24
+ })(UpdateAvatarStudioCharacterCommand || (exports.UpdateAvatarStudioCharacterCommand = UpdateAvatarStudioCharacterCommand = {}));
@@ -75,6 +75,8 @@ export declare namespace CreateAvatarStudioClipCommand {
75
75
  imageConfig: z.ZodObject<{
76
76
  prompt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
77
77
  style: z.ZodDefault<z.ZodEnum<typeof import("../../..").AVATAR_STUDIO_IMAGE_STYLE>>;
78
+ characterId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
79
+ locationId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
78
80
  references: z.ZodDefault<z.ZodArray<z.ZodObject<{
79
81
  uuid: z.ZodString;
80
82
  url: z.ZodNullable<z.ZodString>;
@@ -71,6 +71,8 @@ export declare namespace FindAvatarStudioClipsQuery {
71
71
  imageConfig: z.ZodObject<{
72
72
  prompt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
73
73
  style: z.ZodDefault<z.ZodEnum<typeof import("../../..").AVATAR_STUDIO_IMAGE_STYLE>>;
74
+ characterId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
75
+ locationId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
74
76
  references: z.ZodDefault<z.ZodArray<z.ZodObject<{
75
77
  uuid: z.ZodString;
76
78
  url: z.ZodNullable<z.ZodString>;
@@ -69,6 +69,8 @@ export declare namespace GetAvatarStudioClipQuery {
69
69
  imageConfig: z.ZodObject<{
70
70
  prompt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
71
71
  style: z.ZodDefault<z.ZodEnum<typeof import("../../..").AVATAR_STUDIO_IMAGE_STYLE>>;
72
+ characterId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
73
+ locationId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
72
74
  references: z.ZodDefault<z.ZodArray<z.ZodObject<{
73
75
  uuid: z.ZodString;
74
76
  url: z.ZodNullable<z.ZodString>;
@@ -79,6 +79,8 @@ export declare namespace UpdateAvatarStudioClipCommand {
79
79
  imageConfig: z.ZodObject<{
80
80
  prompt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
81
81
  style: z.ZodDefault<z.ZodEnum<typeof import("../../..").AVATAR_STUDIO_IMAGE_STYLE>>;
82
+ characterId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
83
+ locationId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
82
84
  references: z.ZodDefault<z.ZodArray<z.ZodObject<{
83
85
  uuid: z.ZodString;
84
86
  url: z.ZodNullable<z.ZodString>;
@@ -6,11 +6,13 @@ export declare namespace GenerateAvatarStudioFrameCommand {
6
6
  sceneId: z.ZodString;
7
7
  }, z.core.$strip>;
8
8
  type Params = z.infer<typeof ParamsSchema>;
9
- /** Все три поля — параметры imageConfig сцены: они же в неё и сохраняются. */
9
+ /** Все поля — параметры imageConfig сцены: они же в неё и сохраняются. */
10
10
  const RequestSchema: z.ZodObject<{
11
11
  prompt: z.ZodString;
12
12
  style: z.ZodDefault<z.ZodEnum<typeof AVATAR_STUDIO_IMAGE_STYLE>>;
13
13
  references: z.ZodDefault<z.ZodArray<z.ZodString>>;
14
+ characterId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ locationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
16
  }, z.core.$strict>;
15
17
  type Request = z.infer<typeof RequestSchema>;
16
18
  const ResponseSchema: z.ZodObject<{
@@ -8,12 +8,16 @@ const avatar_studio_common_schema_1 = require("../shared/avatar-studio-common.sc
8
8
  var GenerateAvatarStudioFrameCommand;
9
9
  (function (GenerateAvatarStudioFrameCommand) {
10
10
  GenerateAvatarStudioFrameCommand.ParamsSchema = avatar_studio_common_schema_1.AvatarStudioSceneIdParamsSchema;
11
- /** Все три поля — параметры imageConfig сцены: они же в неё и сохраняются. */
11
+ /** Все поля — параметры imageConfig сцены: они же в неё и сохраняются. */
12
12
  GenerateAvatarStudioFrameCommand.RequestSchema = zod_1.z
13
13
  .object({
14
14
  prompt: zod_1.z.string().trim().min(1),
15
15
  style: zod_1.z.nativeEnum(constants_1.AVATAR_STUDIO_IMAGE_STYLE).default(constants_1.AVATAR_STUDIO_IMAGE_STYLE.UGC),
16
16
  references: avatar_studio_common_schema_1.AvatarStudioUuidListSchema,
17
+ /** Персонаж кадра. null снимает привязку, undefined — оставить текущую сцены. */
18
+ characterId: zod_1.z.string().uuid().nullable().optional(),
19
+ /** Локация кадра. null снимает привязку, undefined — оставить текущую сцены. */
20
+ locationId: zod_1.z.string().uuid().nullable().optional(),
17
21
  })
18
22
  .strict();
19
23
  GenerateAvatarStudioFrameCommand.ResponseSchema = zod_1.z.object({
@@ -1,6 +1,8 @@
1
+ export * from './character';
1
2
  export * from './clip';
2
3
  export * from './export-job';
3
4
  export * from './generation-job';
5
+ export * from './location';
4
6
  export * from './media';
5
7
  export * from './scene';
6
8
  export * from './scriptwriter';
@@ -14,9 +14,11 @@ 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("./character"), exports);
17
18
  __exportStar(require("./clip"), exports);
18
19
  __exportStar(require("./export-job"), exports);
19
20
  __exportStar(require("./generation-job"), exports);
21
+ __exportStar(require("./location"), exports);
20
22
  __exportStar(require("./media"), exports);
21
23
  __exportStar(require("./scene"), exports);
22
24
  __exportStar(require("./scriptwriter"), exports);
@@ -0,0 +1,30 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * fileId опущен — карточка создаётся со status = draft, без reference sheet.
4
+ * fileId уже загруженного файла — карточка сразу ready, отдельного multipart-роута нет.
5
+ */
6
+ export declare namespace CreateAvatarStudioLocationCommand {
7
+ const RequestSchema: z.ZodObject<{
8
+ name: z.ZodString;
9
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ fileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ }, z.core.$strict>;
12
+ type Request = z.infer<typeof RequestSchema>;
13
+ const ResponseSchema: z.ZodObject<{
14
+ data: z.ZodObject<{
15
+ uuid: z.ZodString;
16
+ userId: z.ZodNullable<z.ZodString>;
17
+ unregisteredUserId: z.ZodNullable<z.ZodString>;
18
+ name: z.ZodString;
19
+ description: z.ZodNullable<z.ZodString>;
20
+ fileId: z.ZodNullable<z.ZodString>;
21
+ fileUrl: z.ZodNullable<z.ZodString>;
22
+ status: z.ZodEnum<typeof import("../../..").AVATAR_STUDIO_REFERENCE_CARD_STATUS>;
23
+ error: z.ZodNullable<z.ZodString>;
24
+ generationJobId: z.ZodNullable<z.ZodString>;
25
+ createdAt: z.ZodDate;
26
+ updatedAt: z.ZodDate;
27
+ }, z.core.$strip>;
28
+ }, z.core.$strip>;
29
+ type Response = z.infer<typeof ResponseSchema>;
30
+ }
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateAvatarStudioLocationCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../../models");
6
+ /**
7
+ * fileId опущен — карточка создаётся со status = draft, без reference sheet.
8
+ * fileId уже загруженного файла — карточка сразу ready, отдельного multipart-роута нет.
9
+ */
10
+ var CreateAvatarStudioLocationCommand;
11
+ (function (CreateAvatarStudioLocationCommand) {
12
+ CreateAvatarStudioLocationCommand.RequestSchema = zod_1.z
13
+ .object({
14
+ name: zod_1.z.string().trim().min(1).max(255),
15
+ description: zod_1.z.string().trim().max(2000).nullable().optional(),
16
+ fileId: zod_1.z.string().uuid().nullable().optional(),
17
+ })
18
+ .strict();
19
+ CreateAvatarStudioLocationCommand.ResponseSchema = zod_1.z.object({
20
+ data: models_1.AvatarStudioLocationSchema,
21
+ });
22
+ })(CreateAvatarStudioLocationCommand || (exports.CreateAvatarStudioLocationCommand = CreateAvatarStudioLocationCommand = {}));
@@ -0,0 +1,13 @@
1
+ import { z } from 'zod';
2
+ export declare namespace DeleteAvatarStudioLocationCommand {
3
+ const ParamsSchema: z.ZodObject<{
4
+ locationId: z.ZodString;
5
+ }, z.core.$strip>;
6
+ type Params = z.infer<typeof ParamsSchema>;
7
+ const ResponseSchema: z.ZodObject<{
8
+ data: z.ZodObject<{
9
+ uuid: z.ZodString;
10
+ }, z.core.$strip>;
11
+ }, z.core.$strip>;
12
+ type Response = z.infer<typeof ResponseSchema>;
13
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteAvatarStudioLocationCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const avatar_studio_common_schema_1 = require("../shared/avatar-studio-common.schema");
6
+ var DeleteAvatarStudioLocationCommand;
7
+ (function (DeleteAvatarStudioLocationCommand) {
8
+ DeleteAvatarStudioLocationCommand.ParamsSchema = avatar_studio_common_schema_1.AvatarStudioLocationIdParamsSchema;
9
+ DeleteAvatarStudioLocationCommand.ResponseSchema = zod_1.z.object({
10
+ data: zod_1.z.object({ uuid: zod_1.z.string().uuid() }),
11
+ });
12
+ })(DeleteAvatarStudioLocationCommand || (exports.DeleteAvatarStudioLocationCommand = DeleteAvatarStudioLocationCommand = {}));
@@ -0,0 +1,27 @@
1
+ import { z } from 'zod';
2
+ export declare namespace FindAvatarStudioLocationsQuery {
3
+ const QuerySchema: z.ZodObject<{
4
+ limit: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
5
+ offset: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
6
+ }, z.core.$strip>;
7
+ type Query = z.infer<typeof QuerySchema>;
8
+ const ResponseSchema: z.ZodObject<{
9
+ data: z.ZodArray<z.ZodObject<{
10
+ uuid: z.ZodString;
11
+ userId: z.ZodNullable<z.ZodString>;
12
+ unregisteredUserId: z.ZodNullable<z.ZodString>;
13
+ name: z.ZodString;
14
+ description: z.ZodNullable<z.ZodString>;
15
+ fileId: z.ZodNullable<z.ZodString>;
16
+ fileUrl: z.ZodNullable<z.ZodString>;
17
+ status: z.ZodEnum<typeof import("../../..").AVATAR_STUDIO_REFERENCE_CARD_STATUS>;
18
+ error: z.ZodNullable<z.ZodString>;
19
+ generationJobId: z.ZodNullable<z.ZodString>;
20
+ createdAt: z.ZodDate;
21
+ updatedAt: z.ZodDate;
22
+ }, z.core.$strip>>;
23
+ page: z.ZodNumber;
24
+ totalPages: z.ZodNumber;
25
+ }, z.core.$strip>;
26
+ type Response = z.infer<typeof ResponseSchema>;
27
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FindAvatarStudioLocationsQuery = void 0;
4
+ const models_1 = require("../../../models");
5
+ const avatar_studio_common_schema_1 = require("../shared/avatar-studio-common.schema");
6
+ var FindAvatarStudioLocationsQuery;
7
+ (function (FindAvatarStudioLocationsQuery) {
8
+ FindAvatarStudioLocationsQuery.QuerySchema = avatar_studio_common_schema_1.AvatarStudioPaginationQuerySchema;
9
+ FindAvatarStudioLocationsQuery.ResponseSchema = (0, avatar_studio_common_schema_1.AvatarStudioPagedResponseSchema)(models_1.AvatarStudioLocationSchema);
10
+ })(FindAvatarStudioLocationsQuery || (exports.FindAvatarStudioLocationsQuery = FindAvatarStudioLocationsQuery = {}));