@purpleschool/gptbot 0.15.75 → 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/api/controllers/http/paraphrase.d.ts +1 -0
- package/build/api/controllers/http/paraphrase.js +1 -0
- package/build/api/routes.d.ts +2 -0
- package/build/api/routes.js +2 -0
- package/build/commands/ai-model/create-ai-model.command.d.ts +0 -10
- package/build/commands/ai-model/find-ai-model.command.d.ts +0 -10
- package/build/commands/ai-model/find-ai-models-available-to-user.comand.d.ts +0 -5
- package/build/commands/ai-model/find-formatted-ai-model.command.d.ts +0 -10
- package/build/commands/ai-model/update-ai-model.command.d.ts +0 -10
- package/build/commands/ai-studio/canvas-node/find-canvas-node-definitions-with-configs.query.d.ts +0 -5
- package/build/commands/ai-studio/canvas-tool/text-gen/get-text-generation-config.command.d.ts +0 -5
- package/build/commands/ai-studio/canvas-tool/var-gen/get-var-gen-config.command.d.ts +0 -5
- 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/{helpers/ai-model → commands/avatar-studio/character}/index.js +6 -1
- 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/commands/b2b/get-b2b-documentation.command.d.ts +0 -10
- package/build/commands/page/find-page-by-alias.command.d.ts +0 -10
- package/build/commands/page/find-page.command.d.ts +0 -5
- package/build/commands/page/find-pages-by-criteria.command.d.ts +0 -10
- package/build/commands/tools/paraphrase/find-paraphrase-job-by-uuid.command.d.ts +20 -0
- package/build/commands/tools/paraphrase/find-paraphrase-jobs.command.d.ts +20 -0
- package/build/commands/tools/paraphrase/get-paraphrase-price.command.d.ts +31 -0
- package/build/commands/tools/paraphrase/get-paraphrase-price.command.js +30 -0
- package/build/commands/tools/paraphrase/get-paraphrase-tool-config.command.d.ts +3 -0
- package/build/commands/tools/paraphrase/index.d.ts +1 -0
- package/build/commands/tools/paraphrase/index.js +1 -0
- package/build/commands/tools/paraphrase/paraphrase.command.d.ts +36 -1
- package/build/commands/tools/paraphrase/paraphrase.command.js +16 -3
- package/build/commands/tools/paraphrase/retry-paraphrase-job.command.d.ts +20 -0
- package/build/commands/tools/paraphrase/set-reaction-to-paraphrase-job.command.d.ts +20 -0
- package/build/commands/tools/paraphrase/update-paraphrase-job-favorite.command.d.ts +20 -0
- package/build/commands/tools/paraphrase/update-paraphrase-job-title.command.d.ts +20 -0
- package/build/constants/ai-model/enums/ai-model-config-selector-type.enum.d.ts +0 -1
- package/build/constants/ai-model/enums/ai-model-config-selector-type.enum.js +0 -1
- 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/constants/tool-paraphrase/enums/index.d.ts +1 -0
- package/build/constants/tool-paraphrase/enums/index.js +1 -0
- package/build/constants/tool-paraphrase/enums/paraphrase-input-kind.enum.d.ts +4 -0
- package/build/constants/tool-paraphrase/enums/paraphrase-input-kind.enum.js +8 -0
- package/build/helpers/index.d.ts +0 -1
- package/build/helpers/index.js +0 -1
- package/build/models/ai-model-config.schema.d.ts +0 -11
- package/build/models/ai-model-config.schema.js +1 -8
- package/build/models/ai-model-formatted.schema.d.ts +0 -5
- package/build/models/ai-model.schema.d.ts +0 -15
- package/build/models/avatar-studio/avatar-studio.schema.d.ts +59 -1
- package/build/models/avatar-studio/avatar-studio.schema.js +31 -1
- package/build/models/canvas-node-definition.schema.d.ts +0 -20
- package/build/models/tools/paraphrase/index.d.ts +1 -0
- package/build/models/tools/paraphrase/index.js +1 -0
- package/build/models/tools/paraphrase/paraphrase-config.schema.d.ts +3 -0
- package/build/models/tools/paraphrase/paraphrase-config.schema.js +1 -0
- package/build/models/tools/paraphrase/paraphrase-document.schema.d.ts +10 -0
- package/build/models/tools/paraphrase/paraphrase-document.schema.js +13 -0
- package/build/models/tools/paraphrase/paraphrase-job.schema.d.ts +21 -1
- package/build/models/tools/paraphrase/paraphrase-job.schema.js +5 -0
- package/build/models/tools/paraphrase/paraphrase-model.schema.d.ts +2 -0
- package/build/models/tools/paraphrase/paraphrase-model.schema.js +2 -0
- package/package.json +1 -1
- package/build/helpers/ai-model/calc-base-text-generation-price.helper.d.ts +0 -8
- package/build/helpers/ai-model/calc-base-text-generation-price.helper.js +0 -15
- package/build/helpers/ai-model/index.d.ts +0 -1
package/build/commands/avatar-studio/generation-job/generate-avatar-studio-frame.command.d.ts
CHANGED
|
@@ -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
|
-
/** Все
|
|
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
|
-
/** Все
|
|
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({
|
|
@@ -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 = {}));
|
package/build/commands/avatar-studio/location/generate-avatar-studio-location-reference.command.d.ts
ADDED
|
@@ -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
|
+
}
|
package/build/commands/avatar-studio/location/generate-avatar-studio-location-reference.command.js
ADDED
|
@@ -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 = {}));
|
package/build/commands/avatar-studio/scene/apply-avatar-studio-voice-to-all-scenes.command.d.ts
CHANGED
|
@@ -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(),
|