@purpleschool/gptbot 0.15.79 → 0.15.80-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 +1 -0
- package/build/api/controllers/http/avatar-studio.js +1 -0
- package/build/api/routes.d.ts +1 -0
- package/build/api/routes.js +1 -0
- package/build/commands/avatar-studio/voice/index.d.ts +1 -0
- package/build/commands/avatar-studio/voice/index.js +1 -0
- package/build/commands/avatar-studio/voice/update-avatar-studio-voice.command.d.ts +44 -0
- package/build/commands/avatar-studio/voice/update-avatar-studio-voice.command.js +19 -0
- package/package.json +1 -1
|
@@ -32,6 +32,7 @@ export declare const AVATAR_STUDIO_ROUTES: {
|
|
|
32
32
|
readonly GET_VOICES: 'voices';
|
|
33
33
|
readonly DESIGN_VOICE: 'voices/design';
|
|
34
34
|
readonly CLONE_VOICE: 'voices/clone';
|
|
35
|
+
readonly UPDATE_VOICE: (voiceId: string) => string;
|
|
35
36
|
readonly DELETE_VOICE: (voiceId: string) => string;
|
|
36
37
|
readonly CALCULATE_SCRIPTWRITER_PRICE: 'scriptwriter/price';
|
|
37
38
|
readonly GET_SCRIPTWRITER_MESSAGES: (clipId: string) => string;
|
|
@@ -37,6 +37,7 @@ exports.AVATAR_STUDIO_ROUTES = {
|
|
|
37
37
|
GET_VOICES: 'voices',
|
|
38
38
|
DESIGN_VOICE: 'voices/design',
|
|
39
39
|
CLONE_VOICE: 'voices/clone',
|
|
40
|
+
UPDATE_VOICE: (voiceId) => `voices/${voiceId}`,
|
|
40
41
|
DELETE_VOICE: (voiceId) => `voices/${voiceId}`,
|
|
41
42
|
// Клип опционален и едет в теле: цену спрашивают ещё до создания клипа.
|
|
42
43
|
CALCULATE_SCRIPTWRITER_PRICE: 'scriptwriter/price',
|
package/build/api/routes.d.ts
CHANGED
|
@@ -1294,6 +1294,7 @@ export declare const REST_API: {
|
|
|
1294
1294
|
readonly GET_VOICES: "/api/private/avatar-studio/voices";
|
|
1295
1295
|
readonly DESIGN_VOICE: "/api/private/avatar-studio/voices/design";
|
|
1296
1296
|
readonly CLONE_VOICE: "/api/private/avatar-studio/voices/clone";
|
|
1297
|
+
readonly UPDATE_VOICE: (voiceId: string) => string;
|
|
1297
1298
|
readonly DELETE_VOICE: (voiceId: string) => string;
|
|
1298
1299
|
readonly CALCULATE_SCRIPTWRITER_PRICE: "/api/private/avatar-studio/scriptwriter/price";
|
|
1299
1300
|
readonly GET_SCRIPTWRITER_MESSAGES: (clipId: string) => string;
|
package/build/api/routes.js
CHANGED
|
@@ -1332,6 +1332,7 @@ exports.REST_API = {
|
|
|
1332
1332
|
GET_VOICES: `${exports.ROOT}/${CONTROLLERS.AVATAR_STUDIO_CONTROLLER_PRIVATE}/${CONTROLLERS.AVATAR_STUDIO_ROUTES.GET_VOICES}`,
|
|
1333
1333
|
DESIGN_VOICE: `${exports.ROOT}/${CONTROLLERS.AVATAR_STUDIO_CONTROLLER_PRIVATE}/${CONTROLLERS.AVATAR_STUDIO_ROUTES.DESIGN_VOICE}`,
|
|
1334
1334
|
CLONE_VOICE: `${exports.ROOT}/${CONTROLLERS.AVATAR_STUDIO_CONTROLLER_PRIVATE}/${CONTROLLERS.AVATAR_STUDIO_ROUTES.CLONE_VOICE}`,
|
|
1335
|
+
UPDATE_VOICE: (voiceId) => `${exports.ROOT}/${CONTROLLERS.AVATAR_STUDIO_CONTROLLER_PRIVATE}/${CONTROLLERS.AVATAR_STUDIO_ROUTES.UPDATE_VOICE(voiceId)}`,
|
|
1335
1336
|
DELETE_VOICE: (voiceId) => `${exports.ROOT}/${CONTROLLERS.AVATAR_STUDIO_CONTROLLER_PRIVATE}/${CONTROLLERS.AVATAR_STUDIO_ROUTES.DELETE_VOICE(voiceId)}`,
|
|
1336
1337
|
CALCULATE_SCRIPTWRITER_PRICE: `${exports.ROOT}/${CONTROLLERS.AVATAR_STUDIO_CONTROLLER_PRIVATE}/${CONTROLLERS.AVATAR_STUDIO_ROUTES.CALCULATE_SCRIPTWRITER_PRICE}`,
|
|
1337
1338
|
GET_SCRIPTWRITER_MESSAGES: (clipId) => `${exports.ROOT}/${CONTROLLERS.AVATAR_STUDIO_CONTROLLER_PRIVATE}/${CONTROLLERS.AVATAR_STUDIO_ROUTES.GET_SCRIPTWRITER_MESSAGES(clipId)}`,
|
|
@@ -18,3 +18,4 @@ __exportStar(require("./design-avatar-studio-voice.command"), exports);
|
|
|
18
18
|
__exportStar(require("./find-avatar-studio-voices.query"), exports);
|
|
19
19
|
__exportStar(require("./clone-avatar-studio-voice.command"), exports);
|
|
20
20
|
__exportStar(require("./delete-avatar-studio-voice.command"), exports);
|
|
21
|
+
__exportStar(require("./update-avatar-studio-voice.command"), exports);
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace UpdateAvatarStudioVoiceCommand {
|
|
3
|
+
const ParamsSchema: z.ZodObject<{
|
|
4
|
+
voiceId: z.ZodUUID;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
type Params = z.infer<typeof ParamsSchema>;
|
|
7
|
+
const RequestSchema: z.ZodObject<{
|
|
8
|
+
title: z.ZodString;
|
|
9
|
+
}, z.core.$strict>;
|
|
10
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
11
|
+
const ResponseSchema: z.ZodObject<{
|
|
12
|
+
data: z.ZodObject<{
|
|
13
|
+
uuid: z.ZodUUID;
|
|
14
|
+
scope: z.ZodEnum<typeof import("../../..").JOB_SCOPE>;
|
|
15
|
+
source: z.ZodObject<{
|
|
16
|
+
id: z.ZodEnum<typeof import("../../..").VOICE_SOURCE>;
|
|
17
|
+
label: z.ZodString;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
title: z.ZodString;
|
|
20
|
+
description: z.ZodString;
|
|
21
|
+
gender: z.ZodNullable<z.ZodObject<{
|
|
22
|
+
id: z.ZodEnum<typeof import("../../..").VOICE_GENDER>;
|
|
23
|
+
label: z.ZodString;
|
|
24
|
+
}, z.core.$strip>>;
|
|
25
|
+
trait: z.ZodNullable<z.ZodString>;
|
|
26
|
+
ageRange: z.ZodNullable<z.ZodString>;
|
|
27
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
28
|
+
id: z.ZodEnum<typeof import("../../..").VOICE_CATEGORY>;
|
|
29
|
+
label: z.ZodString;
|
|
30
|
+
}, z.core.$strip>>;
|
|
31
|
+
previewUrl: z.ZodString;
|
|
32
|
+
imageUrl: z.ZodNullable<z.ZodString>;
|
|
33
|
+
status: z.ZodEnum<typeof import("../../..").VOICE_STATUS>;
|
|
34
|
+
error: z.ZodNullable<z.ZodString>;
|
|
35
|
+
order: z.ZodNumber;
|
|
36
|
+
isDeleted: z.ZodBoolean;
|
|
37
|
+
userId: z.ZodNullable<z.ZodUUID>;
|
|
38
|
+
unregisteredUserId: z.ZodNullable<z.ZodUUID>;
|
|
39
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
40
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
44
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateAvatarStudioVoiceCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var UpdateAvatarStudioVoiceCommand;
|
|
7
|
+
(function (UpdateAvatarStudioVoiceCommand) {
|
|
8
|
+
UpdateAvatarStudioVoiceCommand.ParamsSchema = zod_1.z.object({
|
|
9
|
+
voiceId: zod_1.z.uuid(),
|
|
10
|
+
});
|
|
11
|
+
UpdateAvatarStudioVoiceCommand.RequestSchema = zod_1.z
|
|
12
|
+
.object({
|
|
13
|
+
title: zod_1.z.string().trim().min(1).max(255),
|
|
14
|
+
})
|
|
15
|
+
.strict();
|
|
16
|
+
UpdateAvatarStudioVoiceCommand.ResponseSchema = zod_1.z.object({
|
|
17
|
+
data: models_1.VoiceSchema,
|
|
18
|
+
});
|
|
19
|
+
})(UpdateAvatarStudioVoiceCommand || (exports.UpdateAvatarStudioVoiceCommand = UpdateAvatarStudioVoiceCommand = {}));
|