@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
@@ -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 GenerateAvatarStudioLocationReferenceCommand {
8
+ const ParamsSchema: z.ZodObject<{
9
+ locationId: 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.GenerateAvatarStudioLocationReferenceCommand = 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 GenerateAvatarStudioLocationReferenceCommand;
13
+ (function (GenerateAvatarStudioLocationReferenceCommand) {
14
+ GenerateAvatarStudioLocationReferenceCommand.ParamsSchema = avatar_studio_common_schema_1.AvatarStudioLocationIdParamsSchema;
15
+ GenerateAvatarStudioLocationReferenceCommand.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
+ GenerateAvatarStudioLocationReferenceCommand.ResponseSchema = zod_1.z.object({
22
+ data: models_1.AvatarStudioGenerationJobSchema,
23
+ });
24
+ })(GenerateAvatarStudioLocationReferenceCommand || (exports.GenerateAvatarStudioLocationReferenceCommand = GenerateAvatarStudioLocationReferenceCommand = {}));
@@ -0,0 +1,24 @@
1
+ import { z } from 'zod';
2
+ export declare namespace GetAvatarStudioLocationQuery {
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
+ 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
+ }, z.core.$strip>;
22
+ }, z.core.$strip>;
23
+ type Response = z.infer<typeof ResponseSchema>;
24
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetAvatarStudioLocationQuery = 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 GetAvatarStudioLocationQuery;
8
+ (function (GetAvatarStudioLocationQuery) {
9
+ GetAvatarStudioLocationQuery.ParamsSchema = avatar_studio_common_schema_1.AvatarStudioLocationIdParamsSchema;
10
+ GetAvatarStudioLocationQuery.ResponseSchema = zod_1.z.object({
11
+ data: models_1.AvatarStudioLocationSchema,
12
+ });
13
+ })(GetAvatarStudioLocationQuery || (exports.GetAvatarStudioLocationQuery = GetAvatarStudioLocationQuery = {}));
@@ -0,0 +1,6 @@
1
+ export * from './create-avatar-studio-location.command';
2
+ export * from './delete-avatar-studio-location.command';
3
+ export * from './find-avatar-studio-locations.query';
4
+ export * from './generate-avatar-studio-location-reference.command';
5
+ export * from './get-avatar-studio-location.query';
6
+ export * from './update-avatar-studio-location.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-location.command"), exports);
18
+ __exportStar(require("./delete-avatar-studio-location.command"), exports);
19
+ __exportStar(require("./find-avatar-studio-locations.query"), exports);
20
+ __exportStar(require("./generate-avatar-studio-location-reference.command"), exports);
21
+ __exportStar(require("./get-avatar-studio-location.query"), exports);
22
+ __exportStar(require("./update-avatar-studio-location.command"), exports);
@@ -0,0 +1,30 @@
1
+ import { z } from 'zod';
2
+ export declare namespace UpdateAvatarStudioLocationCommand {
3
+ const ParamsSchema: z.ZodObject<{
4
+ locationId: 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
+ }, 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,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateAvatarStudioLocationCommand = 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 UpdateAvatarStudioLocationCommand;
8
+ (function (UpdateAvatarStudioLocationCommand) {
9
+ UpdateAvatarStudioLocationCommand.ParamsSchema = avatar_studio_common_schema_1.AvatarStudioLocationIdParamsSchema;
10
+ UpdateAvatarStudioLocationCommand.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
+ })
16
+ .strict()
17
+ .refine((value) => Object.keys(value).length > 0, {
18
+ message: 'At least one field must be provided',
19
+ });
20
+ UpdateAvatarStudioLocationCommand.ResponseSchema = zod_1.z.object({
21
+ data: models_1.AvatarStudioLocationSchema,
22
+ });
23
+ })(UpdateAvatarStudioLocationCommand || (exports.UpdateAvatarStudioLocationCommand = UpdateAvatarStudioLocationCommand = {}));
@@ -70,6 +70,8 @@ export declare namespace ApplyAvatarStudioVoiceToAllScenesCommand {
70
70
  imageConfig: z.ZodObject<{
71
71
  prompt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
72
72
  style: z.ZodDefault<z.ZodEnum<typeof import("../../..").AVATAR_STUDIO_IMAGE_STYLE>>;
73
+ characterId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
74
+ locationId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
73
75
  references: z.ZodDefault<z.ZodArray<z.ZodObject<{
74
76
  uuid: z.ZodString;
75
77
  url: z.ZodNullable<z.ZodString>;
@@ -20,6 +20,8 @@ export declare namespace CreateAvatarStudioSceneCommand {
20
20
  imageConfig: z.ZodObject<{
21
21
  prompt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
22
22
  style: z.ZodDefault<z.ZodEnum<typeof import("../../..").AVATAR_STUDIO_IMAGE_STYLE>>;
23
+ characterId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
24
+ locationId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
23
25
  references: z.ZodDefault<z.ZodArray<z.ZodObject<{
24
26
  uuid: z.ZodString;
25
27
  url: z.ZodNullable<z.ZodString>;
@@ -25,6 +25,8 @@ export declare namespace ReorderAvatarStudioScenesCommand {
25
25
  imageConfig: z.ZodObject<{
26
26
  prompt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
27
27
  style: z.ZodDefault<z.ZodEnum<typeof import("../../..").AVATAR_STUDIO_IMAGE_STYLE>>;
28
+ characterId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
29
+ locationId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
28
30
  references: z.ZodDefault<z.ZodArray<z.ZodObject<{
29
31
  uuid: z.ZodString;
30
32
  url: z.ZodNullable<z.ZodString>;
@@ -25,6 +25,8 @@ export declare namespace SetAvatarStudioSceneSlotCommand {
25
25
  imageConfig: z.ZodObject<{
26
26
  prompt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
27
27
  style: z.ZodDefault<z.ZodEnum<typeof import("../../..").AVATAR_STUDIO_IMAGE_STYLE>>;
28
+ characterId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
29
+ locationId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
28
30
  references: z.ZodDefault<z.ZodArray<z.ZodObject<{
29
31
  uuid: z.ZodString;
30
32
  url: z.ZodNullable<z.ZodString>;
@@ -16,6 +16,8 @@ export declare namespace UpdateAvatarStudioSceneCommand {
16
16
  prompt: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
17
17
  style: z.ZodOptional<z.ZodDefault<z.ZodEnum<typeof import("../../..").AVATAR_STUDIO_IMAGE_STYLE>>>;
18
18
  references: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
19
+ characterId: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
20
+ locationId: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
19
21
  }, z.core.$strict>>;
20
22
  videoConfig: z.ZodOptional<z.ZodObject<{
21
23
  trimStart: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
@@ -43,6 +45,8 @@ export declare namespace UpdateAvatarStudioSceneCommand {
43
45
  imageConfig: z.ZodObject<{
44
46
  prompt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
45
47
  style: z.ZodDefault<z.ZodEnum<typeof import("../../..").AVATAR_STUDIO_IMAGE_STYLE>>;
48
+ characterId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
49
+ locationId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
46
50
  references: z.ZodDefault<z.ZodArray<z.ZodObject<{
47
51
  uuid: z.ZodString;
48
52
  url: z.ZodNullable<z.ZodString>;
@@ -33,6 +33,8 @@ export declare namespace ApplyAvatarStudioScriptwriterMessageCommand {
33
33
  imageConfig: z.ZodObject<{
34
34
  prompt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
35
35
  style: z.ZodDefault<z.ZodEnum<typeof import("../../..").AVATAR_STUDIO_IMAGE_STYLE>>;
36
+ characterId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
37
+ locationId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
36
38
  references: z.ZodDefault<z.ZodArray<z.ZodObject<{
37
39
  uuid: z.ZodString;
38
40
  url: z.ZodNullable<z.ZodString>;
@@ -10,6 +10,12 @@ export declare const AvatarStudioSceneIdParamsSchema: z.ZodObject<{
10
10
  export declare const AvatarStudioMediaIdParamsSchema: z.ZodObject<{
11
11
  mediaId: z.ZodString;
12
12
  }, z.core.$strip>;
13
+ export declare const AvatarStudioCharacterIdParamsSchema: z.ZodObject<{
14
+ characterId: z.ZodString;
15
+ }, z.core.$strip>;
16
+ export declare const AvatarStudioLocationIdParamsSchema: z.ZodObject<{
17
+ locationId: z.ZodString;
18
+ }, z.core.$strip>;
13
19
  export declare const AvatarStudioGenerationJobIdParamsSchema: z.ZodObject<{
14
20
  jobId: z.ZodString;
15
21
  }, z.core.$strip>;
@@ -37,6 +43,8 @@ export declare const AvatarStudioSceneConfigPatchSchema: z.ZodObject<{
37
43
  prompt: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
38
44
  style: z.ZodOptional<z.ZodDefault<z.ZodEnum<typeof import("../../..").AVATAR_STUDIO_IMAGE_STYLE>>>;
39
45
  references: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
46
+ characterId: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
47
+ locationId: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
40
48
  }, z.core.$strict>>;
41
49
  videoConfig: z.ZodOptional<z.ZodObject<{
42
50
  trimStart: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AvatarStudioVideoGenerationRequestSchema = exports.AvatarStudioVideoGenerationRequestBaseSchema = exports.AvatarStudioSceneConfigPatchSchema = exports.AvatarStudioUuidListSchema = exports.AvatarStudioPagedResponseSchema = exports.AvatarStudioPaginationQuerySchema = exports.AvatarStudioExportJobIdParamsSchema = exports.AvatarStudioGenerationJobIdParamsSchema = exports.AvatarStudioMediaIdParamsSchema = exports.AvatarStudioSceneIdParamsSchema = exports.AvatarStudioClipIdParamsSchema = void 0;
3
+ exports.AvatarStudioVideoGenerationRequestSchema = exports.AvatarStudioVideoGenerationRequestBaseSchema = exports.AvatarStudioSceneConfigPatchSchema = exports.AvatarStudioUuidListSchema = exports.AvatarStudioPagedResponseSchema = exports.AvatarStudioPaginationQuerySchema = exports.AvatarStudioExportJobIdParamsSchema = exports.AvatarStudioGenerationJobIdParamsSchema = exports.AvatarStudioLocationIdParamsSchema = exports.AvatarStudioCharacterIdParamsSchema = exports.AvatarStudioMediaIdParamsSchema = exports.AvatarStudioSceneIdParamsSchema = exports.AvatarStudioClipIdParamsSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const constants_1 = require("../../../constants");
6
6
  const models_1 = require("../../../models");
@@ -14,6 +14,13 @@ exports.AvatarStudioSceneIdParamsSchema = exports.AvatarStudioClipIdParamsSchema
14
14
  exports.AvatarStudioMediaIdParamsSchema = zod_1.z.object({
15
15
  mediaId: zod_1.z.string().uuid(),
16
16
  });
17
+ // Карточки персонажа/локации принадлежат пользователю, а не клипу — роуты плоские.
18
+ exports.AvatarStudioCharacterIdParamsSchema = zod_1.z.object({
19
+ characterId: zod_1.z.string().uuid(),
20
+ });
21
+ exports.AvatarStudioLocationIdParamsSchema = zod_1.z.object({
22
+ locationId: zod_1.z.string().uuid(),
23
+ });
17
24
  exports.AvatarStudioGenerationJobIdParamsSchema = zod_1.z.object({
18
25
  jobId: zod_1.z.string().uuid(),
19
26
  });
@@ -65,6 +65,8 @@ export declare namespace GetAvatarStudioConfigQuery {
65
65
  prompt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
66
66
  style: z.ZodDefault<z.ZodEnum<typeof AVATAR_STUDIO_IMAGE_STYLE>>;
67
67
  references: z.ZodDefault<z.ZodArray<z.ZodString>>;
68
+ characterId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
69
+ locationId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
68
70
  aspectRatio: z.ZodLiteral<"9:16">;
69
71
  }, z.core.$strip>;
70
72
  pricing: z.ZodObject<{
@@ -196,6 +198,46 @@ export declare namespace GetAvatarStudioConfigQuery {
196
198
  referenceSurcharge: z.ZodNumber;
197
199
  }, z.core.$strict>;
198
200
  }, z.core.$strict>;
201
+ referenceCard: z.ZodObject<{
202
+ available: z.ZodBoolean;
203
+ unavailableReason: z.ZodOptional<z.ZodEnum<typeof AVATAR_STUDIO_UNAVAILABLE_REASON>>;
204
+ fields: z.ZodObject<{
205
+ name: z.ZodObject<{
206
+ maxLength: z.ZodNumber;
207
+ required: z.ZodLiteral<true>;
208
+ }, z.core.$strict>;
209
+ description: z.ZodObject<{
210
+ maxLength: z.ZodNumber;
211
+ required: z.ZodLiteral<false>;
212
+ }, z.core.$strict>;
213
+ prompt: z.ZodObject<{
214
+ kind: z.ZodLiteral<"text">;
215
+ maxLength: z.ZodNumber;
216
+ required: z.ZodBoolean;
217
+ }, z.core.$strict>;
218
+ photo: z.ZodObject<{
219
+ kind: z.ZodLiteral<"media-array">;
220
+ supported: z.ZodBoolean;
221
+ maxCount: z.ZodNumber;
222
+ required: z.ZodBoolean;
223
+ }, z.core.$strict>;
224
+ aspectRatio: z.ZodObject<{
225
+ kind: z.ZodLiteral<"fixed">;
226
+ value: z.ZodLiteral<"1:1">;
227
+ }, z.core.$strict>;
228
+ }, z.core.$strict>;
229
+ defaults: z.ZodObject<{
230
+ aspectRatio: z.ZodLiteral<"1:1">;
231
+ }, z.core.$strict>;
232
+ pricing: z.ZodObject<{
233
+ base: z.ZodNullable<z.ZodObject<{
234
+ price: z.ZodOptional<z.ZodNumber>;
235
+ pricePerSecond: z.ZodOptional<z.ZodNumber>;
236
+ pricePerSymbol: z.ZodOptional<z.ZodNumber>;
237
+ }, z.core.$strict>>;
238
+ referenceSurcharge: z.ZodNumber;
239
+ }, z.core.$strict>;
240
+ }, z.core.$strict>;
199
241
  scriptwriter: z.ZodObject<{
200
242
  available: z.ZodBoolean;
201
243
  unavailableReason: z.ZodOptional<z.ZodEnum<typeof AVATAR_STUDIO_UNAVAILABLE_REASON>>;
@@ -200,6 +200,27 @@ const AvatarStudioLibraryImageConfigSectionSchema = AvatarStudioConfigSectionBas
200
200
  .strict(),
201
201
  pricing: AvatarStudioImagePricingSchema,
202
202
  });
203
+ /**
204
+ * Одна секция обслуживает и персонажей, и локации: модель, цена и лимиты у них общие.
205
+ * fields.photo — опциональное фото для image-to-image генерации (photoFileId в запросе).
206
+ */
207
+ const AvatarStudioReferenceCardConfigSectionSchema = AvatarStudioConfigSectionBaseSchema.extend({
208
+ fields: zod_1.z
209
+ .object({
210
+ name: zod_1.z
211
+ .object({ maxLength: zod_1.z.number().int().positive(), required: zod_1.z.literal(true) })
212
+ .strict(),
213
+ description: zod_1.z
214
+ .object({ maxLength: zod_1.z.number().int().positive(), required: zod_1.z.literal(false) })
215
+ .strict(),
216
+ prompt: AvatarStudioTextFieldSchema.extend({ required: zod_1.z.boolean() }),
217
+ photo: AvatarStudioMediaArrayFieldSchema.extend({ required: zod_1.z.boolean() }),
218
+ aspectRatio: AvatarStudioFixedFieldSchema(zod_1.z.literal('1:1')),
219
+ })
220
+ .strict(),
221
+ defaults: zod_1.z.object({ aspectRatio: zod_1.z.literal('1:1') }).strict(),
222
+ pricing: AvatarStudioImagePricingSchema,
223
+ });
203
224
  var GetAvatarStudioConfigQuery;
204
225
  (function (GetAvatarStudioConfigQuery) {
205
226
  GetAvatarStudioConfigQuery.ResponseSchema = zod_1.z.object({
@@ -209,6 +230,7 @@ var GetAvatarStudioConfigQuery;
209
230
  frame: AvatarStudioFrameConfigSectionSchema,
210
231
  video: AvatarStudioVideoConfigSectionSchema,
211
232
  libraryImage: AvatarStudioLibraryImageConfigSectionSchema,
233
+ referenceCard: AvatarStudioReferenceCardConfigSectionSchema,
212
234
  scriptwriter: AvatarStudioScriptwriterConfigSectionSchema,
213
235
  })
214
236
  .strict(),
@@ -6,5 +6,9 @@ export declare enum AVATAR_STUDIO_JOB_TYPE {
6
6
  VOICE_STT = "voice_stt",
7
7
  TALKING_AVATAR = "talking_avatar",
8
8
  /** legacy: новые job'ы этого типа не создаются, значение остаётся ради чтения продовой истории. */
9
- VOICE_DESIGN = "voice_design"
9
+ VOICE_DESIGN = "voice_design",
10
+ /** Генерация reference sheet персонажа. clipId = null, sceneId = null, targetSlot = null. */
11
+ CHARACTER_REFERENCE = "character_reference",
12
+ /** Генерация reference sheet локации. Те же поля, что у CHARACTER_REFERENCE. */
13
+ LOCATION_REFERENCE = "location_reference"
10
14
  }
@@ -11,4 +11,8 @@ var AVATAR_STUDIO_JOB_TYPE;
11
11
  AVATAR_STUDIO_JOB_TYPE["TALKING_AVATAR"] = "talking_avatar";
12
12
  /** legacy: новые job'ы этого типа не создаются, значение остаётся ради чтения продовой истории. */
13
13
  AVATAR_STUDIO_JOB_TYPE["VOICE_DESIGN"] = "voice_design";
14
+ /** Генерация reference sheet персонажа. clipId = null, sceneId = null, targetSlot = null. */
15
+ AVATAR_STUDIO_JOB_TYPE["CHARACTER_REFERENCE"] = "character_reference";
16
+ /** Генерация reference sheet локации. Те же поля, что у CHARACTER_REFERENCE. */
17
+ AVATAR_STUDIO_JOB_TYPE["LOCATION_REFERENCE"] = "location_reference";
14
18
  })(AVATAR_STUDIO_JOB_TYPE || (exports.AVATAR_STUDIO_JOB_TYPE = AVATAR_STUDIO_JOB_TYPE = {}));
@@ -0,0 +1,6 @@
1
+ export declare enum AVATAR_STUDIO_REFERENCE_CARD_STATUS {
2
+ DRAFT = "draft",
3
+ PROCESSING = "processing",
4
+ READY = "ready",
5
+ FAILED = "failed"
6
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AVATAR_STUDIO_REFERENCE_CARD_STATUS = void 0;
4
+ var AVATAR_STUDIO_REFERENCE_CARD_STATUS;
5
+ (function (AVATAR_STUDIO_REFERENCE_CARD_STATUS) {
6
+ AVATAR_STUDIO_REFERENCE_CARD_STATUS["DRAFT"] = "draft";
7
+ AVATAR_STUDIO_REFERENCE_CARD_STATUS["PROCESSING"] = "processing";
8
+ AVATAR_STUDIO_REFERENCE_CARD_STATUS["READY"] = "ready";
9
+ AVATAR_STUDIO_REFERENCE_CARD_STATUS["FAILED"] = "failed";
10
+ })(AVATAR_STUDIO_REFERENCE_CARD_STATUS || (exports.AVATAR_STUDIO_REFERENCE_CARD_STATUS = AVATAR_STUDIO_REFERENCE_CARD_STATUS = {}));
@@ -4,6 +4,7 @@ export * from './avatar-studio-job-status.enum';
4
4
  export * from './avatar-studio-job-type.enum';
5
5
  export * from './avatar-studio-media-kind.enum';
6
6
  export * from './avatar-studio-model-purpose.enum';
7
+ export * from './avatar-studio-reference-card-status.enum';
7
8
  export * from './avatar-studio-scriptwriter-role.enum';
8
9
  export * from './avatar-studio-slot.enum';
9
10
  export * from './avatar-studio-subtitle-font.enum';
@@ -20,6 +20,7 @@ __exportStar(require("./avatar-studio-job-status.enum"), exports);
20
20
  __exportStar(require("./avatar-studio-job-type.enum"), exports);
21
21
  __exportStar(require("./avatar-studio-media-kind.enum"), exports);
22
22
  __exportStar(require("./avatar-studio-model-purpose.enum"), exports);
23
+ __exportStar(require("./avatar-studio-reference-card-status.enum"), exports);
23
24
  __exportStar(require("./avatar-studio-scriptwriter-role.enum"), exports);
24
25
  __exportStar(require("./avatar-studio-slot.enum"), exports);
25
26
  __exportStar(require("./avatar-studio-subtitle-font.enum"), exports);
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { AVATAR_STUDIO_EXPORT_STATUS, AVATAR_STUDIO_IMAGE_STYLE, AVATAR_STUDIO_JOB_STATUS, AVATAR_STUDIO_JOB_TYPE, AVATAR_STUDIO_MEDIA_KIND, AVATAR_STUDIO_SCRIPTWRITER_ROLE, AVATAR_STUDIO_SLOT, AVATAR_STUDIO_SUBTITLE_FONT, AVATAR_STUDIO_SUBTITLE_MODE, AVATAR_STUDIO_VIDEO_MODE } from '../../constants';
2
+ import { AVATAR_STUDIO_EXPORT_STATUS, AVATAR_STUDIO_IMAGE_STYLE, AVATAR_STUDIO_JOB_STATUS, AVATAR_STUDIO_JOB_TYPE, AVATAR_STUDIO_MEDIA_KIND, AVATAR_STUDIO_REFERENCE_CARD_STATUS, AVATAR_STUDIO_SCRIPTWRITER_ROLE, AVATAR_STUDIO_SLOT, AVATAR_STUDIO_SUBTITLE_FONT, AVATAR_STUDIO_SUBTITLE_MODE, AVATAR_STUDIO_VIDEO_MODE } from '../../constants';
3
3
  export declare const AvatarStudioAspectRatioSchema: z.ZodEnum<{
4
4
  "16:9": "16:9";
5
5
  "1:1": "1:1";
@@ -59,6 +59,56 @@ export declare const AvatarStudioMediaSchema: z.ZodObject<{
59
59
  updatedAt: z.ZodDate;
60
60
  }, z.core.$strip>;
61
61
  export type AvatarStudioMedia = z.infer<typeof AvatarStudioMediaSchema>;
62
+ /**
63
+ * Общие поля персонажа и локации — переиспользуемых карточек с одним reference sheet
64
+ * (2x2-сетка ракурсов). Reference sheet — File, а не AvatarStudioMedia: карточка не должна
65
+ * попадать в сетку фото медиатеки.
66
+ */
67
+ export declare const AvatarStudioReferenceCardBaseSchema: z.ZodObject<{
68
+ uuid: z.ZodString;
69
+ userId: z.ZodNullable<z.ZodString>;
70
+ unregisteredUserId: z.ZodNullable<z.ZodString>;
71
+ name: z.ZodString;
72
+ description: z.ZodNullable<z.ZodString>;
73
+ fileId: z.ZodNullable<z.ZodString>;
74
+ fileUrl: z.ZodNullable<z.ZodString>;
75
+ status: z.ZodEnum<typeof AVATAR_STUDIO_REFERENCE_CARD_STATUS>;
76
+ error: z.ZodNullable<z.ZodString>;
77
+ generationJobId: z.ZodNullable<z.ZodString>;
78
+ createdAt: z.ZodDate;
79
+ updatedAt: z.ZodDate;
80
+ }, z.core.$strip>;
81
+ export declare const AvatarStudioCharacterSchema: z.ZodObject<{
82
+ uuid: z.ZodString;
83
+ userId: z.ZodNullable<z.ZodString>;
84
+ unregisteredUserId: z.ZodNullable<z.ZodString>;
85
+ name: z.ZodString;
86
+ description: z.ZodNullable<z.ZodString>;
87
+ fileId: z.ZodNullable<z.ZodString>;
88
+ fileUrl: z.ZodNullable<z.ZodString>;
89
+ status: z.ZodEnum<typeof AVATAR_STUDIO_REFERENCE_CARD_STATUS>;
90
+ error: z.ZodNullable<z.ZodString>;
91
+ generationJobId: z.ZodNullable<z.ZodString>;
92
+ createdAt: z.ZodDate;
93
+ updatedAt: z.ZodDate;
94
+ voiceId: z.ZodNullable<z.ZodString>;
95
+ }, z.core.$strip>;
96
+ export type AvatarStudioCharacter = z.infer<typeof AvatarStudioCharacterSchema>;
97
+ export declare const AvatarStudioLocationSchema: z.ZodObject<{
98
+ uuid: z.ZodString;
99
+ userId: z.ZodNullable<z.ZodString>;
100
+ unregisteredUserId: z.ZodNullable<z.ZodString>;
101
+ name: z.ZodString;
102
+ description: z.ZodNullable<z.ZodString>;
103
+ fileId: z.ZodNullable<z.ZodString>;
104
+ fileUrl: z.ZodNullable<z.ZodString>;
105
+ status: z.ZodEnum<typeof AVATAR_STUDIO_REFERENCE_CARD_STATUS>;
106
+ error: z.ZodNullable<z.ZodString>;
107
+ generationJobId: z.ZodNullable<z.ZodString>;
108
+ createdAt: z.ZodDate;
109
+ updatedAt: z.ZodDate;
110
+ }, z.core.$strip>;
111
+ export type AvatarStudioLocation = z.infer<typeof AvatarStudioLocationSchema>;
62
112
  export declare const AvatarStudioTrimConfigFields: {
63
113
  trimStart: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
64
114
  trimEnd: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
@@ -95,6 +145,8 @@ export declare const AvatarStudioSceneImageConfigSchema: z.ZodObject<{
95
145
  prompt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
96
146
  style: z.ZodDefault<z.ZodEnum<typeof AVATAR_STUDIO_IMAGE_STYLE>>;
97
147
  references: z.ZodDefault<z.ZodArray<z.ZodString>>;
148
+ characterId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
149
+ locationId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
98
150
  }, z.core.$strip>;
99
151
  export type AvatarStudioSceneImageConfig = z.infer<typeof AvatarStudioSceneImageConfigSchema>;
100
152
  export declare const AvatarStudioSceneImageReferenceSchema: z.ZodObject<{
@@ -105,6 +157,8 @@ export type AvatarStudioSceneImageReference = z.infer<typeof AvatarStudioSceneIm
105
157
  export declare const AvatarStudioSceneImageConfigResponseSchema: z.ZodObject<{
106
158
  prompt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
107
159
  style: z.ZodDefault<z.ZodEnum<typeof AVATAR_STUDIO_IMAGE_STYLE>>;
160
+ characterId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
161
+ locationId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
108
162
  references: z.ZodDefault<z.ZodArray<z.ZodObject<{
109
163
  uuid: z.ZodString;
110
164
  url: z.ZodNullable<z.ZodString>;
@@ -156,6 +210,8 @@ export declare const AvatarStudioSceneSchema: z.ZodObject<{
156
210
  imageConfig: z.ZodObject<{
157
211
  prompt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
158
212
  style: z.ZodDefault<z.ZodEnum<typeof AVATAR_STUDIO_IMAGE_STYLE>>;
213
+ characterId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
214
+ locationId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
159
215
  references: z.ZodDefault<z.ZodArray<z.ZodObject<{
160
216
  uuid: z.ZodString;
161
217
  url: z.ZodNullable<z.ZodString>;
@@ -547,6 +603,8 @@ export declare const AvatarStudioClipSchema: z.ZodObject<{
547
603
  imageConfig: z.ZodObject<{
548
604
  prompt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
549
605
  style: z.ZodDefault<z.ZodEnum<typeof AVATAR_STUDIO_IMAGE_STYLE>>;
606
+ characterId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
607
+ locationId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
550
608
  references: z.ZodDefault<z.ZodArray<z.ZodObject<{
551
609
  uuid: z.ZodString;
552
610
  url: z.ZodNullable<z.ZodString>;