@purpleschool/gptbot 0.15.60-stage2 → 0.15.61
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 +2 -5
- package/build/api/controllers/http/avatar-studio.js +4 -6
- package/build/api/controllers/http/index.d.ts +0 -1
- package/build/api/controllers/http/index.js +0 -1
- package/build/api/controllers/http/tts.d.ts +0 -9
- package/build/api/controllers/http/tts.js +0 -9
- package/build/api/routes.d.ts +3 -50
- package/build/api/routes.js +3 -50
- package/build/commands/ai-studio/canvas-node/find-canvas-node-definitions-with-configs.query.d.ts +1 -11
- package/build/commands/avatar-studio/clip/create-avatar-studio-clip.command.d.ts +1 -1
- package/build/commands/avatar-studio/clip/find-avatar-studio-clips.query.d.ts +1 -1
- package/build/commands/avatar-studio/clip/get-avatar-studio-clip.query.d.ts +1 -1
- package/build/commands/avatar-studio/clip/update-avatar-studio-clip.command.d.ts +1 -1
- package/build/commands/avatar-studio/generation-job/generate-avatar-studio-scene-voice.command.d.ts +2 -4
- package/build/commands/avatar-studio/generation-job/generate-avatar-studio-scene-voice.command.js +2 -4
- package/build/commands/avatar-studio/scene/{apply-avatar-studio-voice-to-all-scenes.command.d.ts → apply-avatar-studio-voice-sample-to-all-scenes.command.d.ts} +3 -3
- package/build/commands/avatar-studio/scene/apply-avatar-studio-voice-sample-to-all-scenes.command.js +15 -0
- package/build/commands/avatar-studio/scene/create-avatar-studio-scene.command.d.ts +1 -1
- package/build/commands/avatar-studio/scene/index.d.ts +1 -1
- package/build/commands/avatar-studio/scene/index.js +1 -1
- package/build/commands/avatar-studio/scene/reorder-avatar-studio-scenes.command.d.ts +1 -1
- package/build/commands/avatar-studio/scene/set-avatar-studio-scene-slot.command.d.ts +1 -1
- package/build/commands/avatar-studio/scene/update-avatar-studio-scene.command.d.ts +2 -2
- package/build/commands/avatar-studio/scriptwriter/apply-avatar-studio-scriptwriter-message.command.d.ts +1 -1
- package/build/commands/avatar-studio/shared/avatar-studio-common.schema.d.ts +1 -1
- package/build/commands/avatar-studio/shared/get-avatar-studio-config.query.d.ts +6 -5
- package/build/commands/avatar-studio/shared/get-avatar-studio-config.query.js +12 -7
- package/build/commands/avatar-studio/voice/design-avatar-studio-voice.command.d.ts +56 -26
- package/build/commands/avatar-studio/voice/design-avatar-studio-voice.command.js +7 -6
- package/build/commands/avatar-studio/voice/index.d.ts +0 -3
- package/build/commands/avatar-studio/voice/index.js +0 -3
- package/build/commands/photo-studio/get-photo-studio-config.query.d.ts +2 -0
- package/build/commands/product/create-product.command.d.ts +100 -0
- package/build/commands/product/find-product.command.d.ts +100 -0
- package/build/commands/product/get-my-products.command.d.ts +50 -0
- package/build/commands/product/update-product.command.d.ts +100 -0
- package/build/commands/subscription/create-subscription.command.d.ts +100 -0
- package/build/commands/subscription/find-subscription.command.d.ts +150 -0
- package/build/commands/subscription/get-available-upgrades.command.d.ts +100 -0
- package/build/commands/subscription/get-free-subscription.command.d.ts +50 -0
- package/build/commands/subscription/get-subscriptions-summary.command.d.ts +250 -0
- package/build/commands/subscription/update-subscription.command.d.ts +100 -0
- package/build/commands/team-account/find-current-team-account-products-by-team-account-id.command.d.ts +50 -0
- package/build/commands/team-account/find-current-team-account-products.command.d.ts +50 -0
- package/build/commands/team-account/find-current-team-account-subscriptions-by-team-account-id.command.d.ts +50 -0
- package/build/commands/team-account/find-current-team-account-subscriptions.command.d.ts +50 -0
- package/build/commands/team-account/find-team-account-products.command.d.ts +50 -0
- package/build/commands/team-account/find-team-account-subscriptions.command.d.ts +100 -0
- package/build/commands/team-account/get-team-account-available-upgrades.command.d.ts +50 -0
- package/build/commands/team-to-product/get-team-to-products.command.d.ts +50 -0
- package/build/commands/team-to-subscription/get-team-to-subscriptions.command.d.ts +50 -0
- package/build/commands/tools/html-page-builder/execute-html-page-builder.command.d.ts +0 -2
- package/build/commands/tools/html-page-builder/find-html-page-builder-session-by-uuid.command.d.ts +0 -2
- package/build/commands/tools/html-page-builder/find-html-page-builder-sessions.command.d.ts +0 -2
- package/build/commands/tools/html-page-builder/update-html-page-builder-session-favorite.command.d.ts +0 -2
- package/build/commands/tools/html-page-builder/update-html-page-builder-session-title.command.d.ts +0 -2
- package/build/commands/tools/image-editor/find-image-editor-job-by-uuid.command.d.ts +0 -2
- package/build/commands/tools/image-editor/find-image-editor-jobs.command.d.ts +0 -2
- package/build/commands/tools/image-editor/get-image-editor-tool-config.command.d.ts +1 -0
- package/build/commands/tools/image-editor/retry-image-editor-job.command.d.ts +0 -2
- package/build/commands/tools/image-editor/set-reaction-to-image-editor-job.command.d.ts +0 -2
- package/build/commands/tools/image-editor/update-image-editor-job-favorite.command.d.ts +0 -2
- package/build/commands/tools/image-editor/update-image-editor-job-title.command.d.ts +0 -2
- package/build/commands/tools/image-recognition/find-image-recognition-job-by-uuid.command.d.ts +0 -2
- package/build/commands/tools/image-recognition/find-image-recognition-jobs.command.d.ts +0 -2
- package/build/commands/tools/image-recognition/image-recognition.command.d.ts +0 -2
- package/build/commands/tools/image-recognition/retry-image-recognition-job.command.d.ts +0 -2
- package/build/commands/tools/image-recognition/set-reaction-to-image-recognition-job.command.d.ts +0 -2
- package/build/commands/tools/image-recognition/update-image-recognition-job-favorite.command.d.ts +0 -2
- package/build/commands/tools/image-recognition/update-image-recognition-job-title.command.d.ts +0 -2
- package/build/commands/tools/index.d.ts +0 -1
- package/build/commands/tools/index.js +0 -1
- package/build/commands/tools/interior-design/find-interior-design-job-by-uuid.command.d.ts +0 -2
- package/build/commands/tools/interior-design/find-interior-design-jobs.command.d.ts +0 -2
- package/build/commands/tools/interior-design/retry-interior-design-job.command.d.ts +0 -2
- package/build/commands/tools/interior-design/set-reaction-to-interior-design-job.command.d.ts +0 -2
- package/build/commands/tools/interior-design/update-interior-design-job-favorite.command.d.ts +0 -2
- package/build/commands/tools/interior-design/update-interior-design-job-title.command.d.ts +0 -2
- package/build/commands/tools/solving-edu-task/find-solving-edu-task-job-by-uuid.command.d.ts +0 -2
- package/build/commands/tools/solving-edu-task/find-solving-edu-task-jobs.command.d.ts +0 -2
- package/build/commands/tools/solving-edu-task/retry-solving-edu-task-job.command.d.ts +0 -2
- package/build/commands/tools/solving-edu-task/set-reaction-to-solving-edu-task-job.command.d.ts +0 -2
- package/build/commands/tools/solving-edu-task/solving-edu-task.command.d.ts +0 -2
- package/build/commands/tools/solving-edu-task/update-solving-edu-task-job-favorite.command.d.ts +0 -2
- package/build/commands/tools/solving-edu-task/update-solving-edu-task-job-title.command.d.ts +0 -2
- package/build/commands/tools/tool/find-grouped-tools.command.d.ts +1 -0
- package/build/commands/tools/tts/find-tts-job-by-uuid.command.d.ts +1 -13
- package/build/commands/tools/tts/find-tts-jobs.command.d.ts +1 -13
- package/build/commands/tools/tts/get-tts-tool-config.command.d.ts +0 -11
- package/build/commands/tools/tts/index.d.ts +0 -9
- package/build/commands/tools/tts/index.js +0 -9
- package/build/commands/tools/tts/retry-tts-job.command.d.ts +1 -13
- package/build/commands/tools/tts/set-reaction-to-tts-job.command.d.ts +1 -13
- package/build/commands/tools/tts/tts.command.d.ts +1 -6
- package/build/commands/tools/tts/tts.command.js +1 -7
- package/build/commands/tools/tts/update-tts-job-favorite.command.d.ts +1 -13
- package/build/commands/tools/tts/update-tts-job-title.command.d.ts +1 -13
- package/build/commands/user/get-user-products.command.d.ts +50 -0
- package/build/commands/user/get-user-subscriptions.command.d.ts +50 -0
- package/build/commands/user-to-subscription/get-user-to-subscriptions.command.d.ts +50 -0
- package/build/constants/avatar-studio/enums/avatar-studio-job-type.enum.d.ts +0 -1
- package/build/constants/avatar-studio/enums/avatar-studio-job-type.enum.js +0 -1
- package/build/constants/avatar-studio/enums/avatar-studio-media-kind.enum.d.ts +2 -1
- package/build/constants/avatar-studio/enums/avatar-studio-media-kind.enum.js +1 -0
- package/build/constants/avatar-studio/enums/avatar-studio-slot.enum.d.ts +1 -1
- package/build/constants/avatar-studio/enums/avatar-studio-slot.enum.js +1 -1
- package/build/constants/index.d.ts +0 -2
- package/build/constants/index.js +0 -2
- package/build/constants/subscription/enums/subscription-feature-type.enum.d.ts +2 -0
- package/build/constants/subscription/enums/subscription-feature-type.enum.js +2 -0
- package/build/constants/tool/enums/index.d.ts +0 -1
- package/build/constants/tool/enums/index.js +0 -1
- package/build/constants/tool/enums/tool-group.enum.d.ts +1 -1
- package/build/constants/tool/enums/tool-group.enum.js +1 -1
- package/build/helpers/image-editor/calculate-image-editor-price.helper.d.ts +2 -1
- package/build/helpers/image-editor/calculate-image-editor-price.helper.js +4 -1
- package/build/helpers/index.d.ts +0 -1
- package/build/helpers/index.js +0 -1
- package/build/models/avatar-studio/avatar-studio.schema.d.ts +6 -6
- package/build/models/avatar-studio/avatar-studio.schema.js +3 -3
- package/build/models/canvas-node-definition.schema.d.ts +3 -33
- package/build/models/product.schema.d.ts +50 -0
- package/build/models/subscription-feature.schema.d.ts +103 -0
- package/build/models/subscription-feature.schema.js +14 -1
- package/build/models/subscription-upgrade-schema.d.ts +50 -0
- package/build/models/subscription.schema.d.ts +250 -0
- package/build/models/team-account/team-to-product.schema.d.ts +50 -0
- package/build/models/team-account/team-to-subscription.schema.d.ts +50 -0
- package/build/models/tool-group.schema.d.ts +1 -0
- package/build/models/tool-group.schema.js +1 -0
- package/build/models/tools/common/attached-tool-file.schema.d.ts +0 -2
- package/build/models/tools/common/attached-tool-file.schema.js +0 -2
- package/build/models/tools/html-page-builder/html-page-builder-job.schema.d.ts +0 -4
- package/build/models/tools/html-page-builder/html-page-builder-session.schema.d.ts +0 -2
- package/build/models/tools/image-editor/image-editor-config.schema.d.ts +1 -0
- package/build/models/tools/image-editor/image-editor-job.schema.d.ts +0 -4
- package/build/models/tools/image-editor/image-editor-model.schema.d.ts +3 -0
- package/build/models/tools/image-editor/image-editor-model.schema.js +1 -0
- package/build/models/tools/image-recognition/image-recognition-job.schema.d.ts +0 -4
- package/build/models/tools/index.d.ts +0 -1
- package/build/models/tools/index.js +0 -1
- package/build/models/tools/interior-design/interior-design-job.schema.d.ts +0 -4
- package/build/models/tools/solving-edu-task/solving-edu-task-job.schema.d.ts +0 -4
- package/build/models/tools/tts/index.d.ts +0 -3
- package/build/models/tools/tts/index.js +0 -3
- package/build/models/tools/tts/tts-config.schema.d.ts +0 -23
- package/build/models/tools/tts/tts-config.schema.js +1 -14
- package/build/models/tools/tts/tts-job.schema.d.ts +1 -26
- package/build/models/tools/tts/tts-job.schema.js +2 -16
- package/build/models/tools/tts/tts-model.schema.d.ts +0 -1
- package/build/models/tools/tts/tts-model.schema.js +0 -1
- package/build/models/user-to-product.schema.d.ts +50 -0
- package/build/models/user-to-subscription.schema.d.ts +150 -0
- package/package.json +1 -1
- package/build/api/controllers/http/photo-session.d.ts +0 -20
- package/build/api/controllers/http/photo-session.js +0 -23
- package/build/commands/avatar-studio/scene/apply-avatar-studio-voice-to-all-scenes.command.js +0 -17
- package/build/commands/avatar-studio/voice/clone-avatar-studio-voice.command.d.ts +0 -43
- package/build/commands/avatar-studio/voice/clone-avatar-studio-voice.command.js +0 -19
- package/build/commands/avatar-studio/voice/delete-avatar-studio-voice.command.d.ts +0 -11
- package/build/commands/avatar-studio/voice/delete-avatar-studio-voice.command.js +0 -13
- package/build/commands/avatar-studio/voice/find-avatar-studio-voices.query.d.ts +0 -36
- package/build/commands/avatar-studio/voice/find-avatar-studio-voices.query.js +0 -11
- package/build/commands/tools/photo-session/admin/create-photo-session-style.command.d.ts +0 -39
- package/build/commands/tools/photo-session/admin/create-photo-session-style.command.js +0 -22
- package/build/commands/tools/photo-session/admin/delete-photo-session-style.command.d.ts +0 -9
- package/build/commands/tools/photo-session/admin/delete-photo-session-style.command.js +0 -11
- package/build/commands/tools/photo-session/admin/index.d.ts +0 -4
- package/build/commands/tools/photo-session/admin/index.js +0 -20
- package/build/commands/tools/photo-session/admin/list-photo-session-styles.command.d.ts +0 -8
- package/build/commands/tools/photo-session/admin/list-photo-session-styles.command.js +0 -11
- package/build/commands/tools/photo-session/admin/update-photo-session-style.command.d.ts +0 -38
- package/build/commands/tools/photo-session/admin/update-photo-session-style.command.js +0 -21
- package/build/commands/tools/photo-session/delete-all-photo-session-jobs.command.d.ts +0 -5
- package/build/commands/tools/photo-session/delete-all-photo-session-jobs.command.js +0 -8
- package/build/commands/tools/photo-session/delete-photo-session-job-by-uuid.command.d.ts +0 -9
- package/build/commands/tools/photo-session/delete-photo-session-job-by-uuid.command.js +0 -11
- package/build/commands/tools/photo-session/find-photo-session-job-by-uuid.command.d.ts +0 -119
- package/build/commands/tools/photo-session/find-photo-session-job-by-uuid.command.js +0 -14
- package/build/commands/tools/photo-session/find-photo-session-jobs.command.d.ts +0 -128
- package/build/commands/tools/photo-session/find-photo-session-jobs.command.js +0 -24
- package/build/commands/tools/photo-session/get-photo-session-config.command.d.ts +0 -75
- package/build/commands/tools/photo-session/get-photo-session-config.command.js +0 -11
- package/build/commands/tools/photo-session/get-photo-session-styles.command.d.ts +0 -23
- package/build/commands/tools/photo-session/get-photo-session-styles.command.js +0 -11
- package/build/commands/tools/photo-session/index.d.ts +0 -13
- package/build/commands/tools/photo-session/index.js +0 -29
- package/build/commands/tools/photo-session/photo-session.command.d.ts +0 -138
- package/build/commands/tools/photo-session/photo-session.command.js +0 -25
- package/build/commands/tools/photo-session/retry-photo-session-job.command.d.ts +0 -100
- package/build/commands/tools/photo-session/retry-photo-session-job.command.js +0 -14
- package/build/commands/tools/photo-session/set-reaction-to-photo-session-job.command.d.ts +0 -106
- package/build/commands/tools/photo-session/set-reaction-to-photo-session-job.command.js +0 -28
- package/build/commands/tools/photo-session/update-photo-session-job-favorite.command.d.ts +0 -104
- package/build/commands/tools/photo-session/update-photo-session-job-favorite.command.js +0 -17
- package/build/commands/tools/photo-session/update-photo-session-job-title.command.d.ts +0 -123
- package/build/commands/tools/photo-session/update-photo-session-job-title.command.js +0 -17
- package/build/commands/tools/photo-session/update-published-status-photo-session-job.command.d.ts +0 -105
- package/build/commands/tools/photo-session/update-published-status-photo-session-job.command.js +0 -23
- package/build/commands/tools/tts/create-voice-clone.command.d.ts +0 -44
- package/build/commands/tools/tts/create-voice-clone.command.js +0 -18
- package/build/commands/tools/tts/create-voice-design.command.d.ts +0 -24
- package/build/commands/tools/tts/create-voice-design.command.js +0 -18
- package/build/commands/tools/tts/delete-voice.command.d.ts +0 -9
- package/build/commands/tools/tts/delete-voice.command.js +0 -11
- package/build/commands/tools/tts/download-tts-job.command.d.ts +0 -18
- package/build/commands/tools/tts/download-tts-job.command.js +0 -17
- package/build/commands/tools/tts/find-voice-by-uuid.query.d.ts +0 -40
- package/build/commands/tools/tts/find-voice-by-uuid.query.js +0 -14
- package/build/commands/tools/tts/find-voices.query.d.ts +0 -48
- package/build/commands/tools/tts/find-voices.query.js +0 -18
- package/build/commands/tools/tts/improve-tts-text.command.d.ts +0 -13
- package/build/commands/tools/tts/improve-tts-text.command.js +0 -13
- package/build/commands/tools/tts/select-voice-design.command.d.ts +0 -44
- package/build/commands/tools/tts/select-voice-design.command.js +0 -17
- package/build/commands/tools/tts/update-voice.command.d.ts +0 -45
- package/build/commands/tools/tts/update-voice.command.js +0 -18
- package/build/constants/tool/enums/job-scope.enum.d.ts +0 -5
- package/build/constants/tool/enums/job-scope.enum.js +0 -9
- package/build/constants/tool-photo-session/enums/index.d.ts +0 -3
- package/build/constants/tool-photo-session/enums/index.js +0 -19
- package/build/constants/tool-photo-session/enums/photo-session-group-status.enum.d.ts +0 -6
- package/build/constants/tool-photo-session/enums/photo-session-group-status.enum.js +0 -10
- package/build/constants/tool-photo-session/enums/photo-session-look-type.enum.d.ts +0 -5
- package/build/constants/tool-photo-session/enums/photo-session-look-type.enum.js +0 -9
- package/build/constants/tool-photo-session/enums/photo-session-model-type.enum.d.ts +0 -3
- package/build/constants/tool-photo-session/enums/photo-session-model-type.enum.js +0 -7
- package/build/constants/tool-photo-session/index.d.ts +0 -1
- package/build/constants/tool-photo-session/index.js +0 -17
- package/build/constants/tool-tts/enums/index.d.ts +0 -7
- package/build/constants/tool-tts/enums/index.js +0 -23
- package/build/constants/tool-tts/enums/tts-download-format.enum.d.ts +0 -5
- package/build/constants/tool-tts/enums/tts-download-format.enum.js +0 -9
- package/build/constants/tool-tts/enums/voice-category.enum.d.ts +0 -19
- package/build/constants/tool-tts/enums/voice-category.enum.js +0 -23
- package/build/constants/tool-tts/enums/voice-gender.enum.d.ts +0 -4
- package/build/constants/tool-tts/enums/voice-gender.enum.js +0 -8
- package/build/constants/tool-tts/enums/voice-source.enum.d.ts +0 -5
- package/build/constants/tool-tts/enums/voice-source.enum.js +0 -9
- package/build/constants/tool-tts/enums/voice-status.enum.d.ts +0 -5
- package/build/constants/tool-tts/enums/voice-status.enum.js +0 -9
- package/build/constants/tool-tts/enums/voice-tag-group.enum.d.ts +0 -5
- package/build/constants/tool-tts/enums/voice-tag-group.enum.js +0 -9
- package/build/constants/tool-tts/enums/voice-tag.enum.d.ts +0 -20
- package/build/constants/tool-tts/enums/voice-tag.enum.js +0 -24
- package/build/constants/tool-tts/index.d.ts +0 -1
- package/build/constants/tool-tts/index.js +0 -17
- package/build/helpers/photo-session/calculate-photo-session-price.helper.d.ts +0 -6
- package/build/helpers/photo-session/calculate-photo-session-price.helper.js +0 -13
- package/build/helpers/photo-session/index.d.ts +0 -1
- package/build/helpers/photo-session/index.js +0 -17
- package/build/models/tools/photo-session/index.d.ts +0 -5
- package/build/models/tools/photo-session/index.js +0 -21
- package/build/models/tools/photo-session/photo-session-config.schema.d.ts +0 -141
- package/build/models/tools/photo-session/photo-session-config.schema.js +0 -21
- package/build/models/tools/photo-session/photo-session-group.schema.d.ts +0 -112
- package/build/models/tools/photo-session/photo-session-group.schema.js +0 -26
- package/build/models/tools/photo-session/photo-session-job.schema.d.ts +0 -158
- package/build/models/tools/photo-session/photo-session-job.schema.js +0 -55
- package/build/models/tools/photo-session/photo-session-model.schema.d.ts +0 -114
- package/build/models/tools/photo-session/photo-session-model.schema.js +0 -46
- package/build/models/tools/photo-session/photo-session-style.schema.d.ts +0 -29
- package/build/models/tools/photo-session/photo-session-style.schema.js +0 -22
- package/build/models/tools/tts/voice-design-draft.schema.d.ts +0 -13
- package/build/models/tools/tts/voice-design-draft.schema.js +0 -13
- package/build/models/tools/tts/voice-design-sample.schema.d.ts +0 -6
- package/build/models/tools/tts/voice-design-sample.schema.js +0 -8
- package/build/models/tools/tts/voice.schema.d.ts +0 -33
- package/build/models/tools/tts/voice.schema.js +0 -37
|
@@ -1,40 +1,70 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { VOICE_GENDER } from '../../../constants';
|
|
3
2
|
export declare namespace DesignAvatarStudioVoiceCommand {
|
|
4
3
|
const RequestSchema: z.ZodObject<{
|
|
5
|
-
title: z.ZodString
|
|
6
|
-
gender: z.ZodEnum<typeof VOICE_GENDER>;
|
|
4
|
+
title: z.ZodOptional<z.ZodString>;
|
|
7
5
|
instruction: z.ZodString;
|
|
6
|
+
language: z.ZodOptional<z.ZodString>;
|
|
8
7
|
}, z.core.$strict>;
|
|
9
8
|
type Request = z.infer<typeof RequestSchema>;
|
|
9
|
+
/**
|
|
10
|
+
* Отдаём job, как и все остальные генерации: созданный голос лежит в job.resultMedia.
|
|
11
|
+
* Отдельного поля media нет — форма ответа одинакова у всех роутов генерации.
|
|
12
|
+
*/
|
|
10
13
|
const ResponseSchema: z.ZodObject<{
|
|
11
14
|
data: z.ZodObject<{
|
|
12
15
|
uuid: z.ZodString;
|
|
13
|
-
scope: z.ZodEnum<typeof import("../../..").JOB_SCOPE>;
|
|
14
|
-
source: z.ZodObject<{
|
|
15
|
-
id: z.ZodEnum<typeof import("../../..").VOICE_SOURCE>;
|
|
16
|
-
label: z.ZodString;
|
|
17
|
-
}, z.core.$strip>;
|
|
18
|
-
title: z.ZodString;
|
|
19
|
-
description: z.ZodString;
|
|
20
|
-
gender: z.ZodNullable<z.ZodObject<{
|
|
21
|
-
id: z.ZodEnum<typeof VOICE_GENDER>;
|
|
22
|
-
label: z.ZodString;
|
|
23
|
-
}, z.core.$strip>>;
|
|
24
|
-
trait: z.ZodNullable<z.ZodString>;
|
|
25
|
-
ageRange: z.ZodNullable<z.ZodString>;
|
|
26
|
-
categories: z.ZodArray<z.ZodObject<{
|
|
27
|
-
id: z.ZodEnum<typeof import("../../..").VOICE_CATEGORY>;
|
|
28
|
-
label: z.ZodString;
|
|
29
|
-
}, z.core.$strip>>;
|
|
30
|
-
previewUrl: z.ZodString;
|
|
31
|
-
imageUrl: z.ZodNullable<z.ZodString>;
|
|
32
|
-
status: z.ZodEnum<typeof import("../../..").VOICE_STATUS>;
|
|
33
|
-
error: z.ZodNullable<z.ZodString>;
|
|
34
|
-
order: z.ZodNumber;
|
|
35
|
-
isDeleted: z.ZodBoolean;
|
|
36
16
|
userId: z.ZodNullable<z.ZodString>;
|
|
37
17
|
unregisteredUserId: z.ZodNullable<z.ZodString>;
|
|
18
|
+
clipId: z.ZodNullable<z.ZodString>;
|
|
19
|
+
sceneId: z.ZodNullable<z.ZodString>;
|
|
20
|
+
toolJobId: z.ZodNullable<z.ZodString>;
|
|
21
|
+
type: z.ZodEnum<typeof import("../../..").AVATAR_STUDIO_JOB_TYPE>;
|
|
22
|
+
targetSlot: z.ZodNullable<z.ZodEnum<typeof import("../../..").AVATAR_STUDIO_SLOT>>;
|
|
23
|
+
status: z.ZodEnum<typeof import("../../..").AVATAR_STUDIO_JOB_STATUS>;
|
|
24
|
+
request: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodType<import("../../..").JsonValue, unknown, z.core.$ZodTypeInternals<import("../../..").JsonValue, unknown>>>>;
|
|
25
|
+
resultMediaId: z.ZodNullable<z.ZodString>;
|
|
26
|
+
error: z.ZodNullable<z.ZodString>;
|
|
27
|
+
resultMedia: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
28
|
+
uuid: z.ZodString;
|
|
29
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
30
|
+
unregisteredUserId: z.ZodNullable<z.ZodString>;
|
|
31
|
+
fileId: z.ZodString;
|
|
32
|
+
kind: z.ZodEnum<typeof import("../../..").AVATAR_STUDIO_MEDIA_KIND>;
|
|
33
|
+
title: z.ZodNullable<z.ZodString>;
|
|
34
|
+
toolJobId: z.ZodNullable<z.ZodString>;
|
|
35
|
+
durationSeconds: z.ZodNullable<z.ZodNumber>;
|
|
36
|
+
transcript: z.ZodNullable<z.ZodString>;
|
|
37
|
+
wordTimings: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
38
|
+
word: z.ZodString;
|
|
39
|
+
start: z.ZodNumber;
|
|
40
|
+
end: z.ZodNumber;
|
|
41
|
+
}, z.core.$strip>>>;
|
|
42
|
+
subtitles: z.ZodNullable<z.ZodType<import("../../..").JsonValue, unknown, z.core.$ZodTypeInternals<import("../../..").JsonValue, unknown>>>;
|
|
43
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
44
|
+
file: z.ZodOptional<z.ZodObject<{
|
|
45
|
+
uuid: z.ZodString;
|
|
46
|
+
name: z.ZodString;
|
|
47
|
+
size: z.ZodNumber;
|
|
48
|
+
originalName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
|
+
resolution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
50
|
+
width: z.ZodNumber;
|
|
51
|
+
height: z.ZodNumber;
|
|
52
|
+
}, z.core.$strip>>>;
|
|
53
|
+
mimeType: z.ZodString;
|
|
54
|
+
url: z.ZodString;
|
|
55
|
+
key: z.ZodString;
|
|
56
|
+
type: z.ZodEnum<typeof import("../../..").FILE_TYPE>;
|
|
57
|
+
duration: z.ZodNullable<z.ZodNumber>;
|
|
58
|
+
attachmentCost: z.ZodDefault<z.ZodNumber>;
|
|
59
|
+
contentLength: z.ZodNullable<z.ZodNumber>;
|
|
60
|
+
createdAt: z.ZodDate;
|
|
61
|
+
updatedAt: z.ZodDate;
|
|
62
|
+
}, z.core.$strip>>;
|
|
63
|
+
createdAt: z.ZodDate;
|
|
64
|
+
updatedAt: z.ZodDate;
|
|
65
|
+
}, z.core.$strip>>>;
|
|
66
|
+
startedAt: z.ZodNullable<z.ZodDate>;
|
|
67
|
+
completedAt: z.ZodNullable<z.ZodDate>;
|
|
38
68
|
createdAt: z.ZodDate;
|
|
39
69
|
updatedAt: z.ZodDate;
|
|
40
70
|
}, z.core.$strip>;
|
|
@@ -2,20 +2,21 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DesignAvatarStudioVoiceCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const constants_1 = require("../../../constants");
|
|
6
5
|
const models_1 = require("../../../models");
|
|
7
6
|
var DesignAvatarStudioVoiceCommand;
|
|
8
7
|
(function (DesignAvatarStudioVoiceCommand) {
|
|
9
8
|
DesignAvatarStudioVoiceCommand.RequestSchema = zod_1.z
|
|
10
9
|
.object({
|
|
11
|
-
title: zod_1.z.string().trim().min(1).
|
|
12
|
-
gender: zod_1.z.nativeEnum(constants_1.VOICE_GENDER),
|
|
10
|
+
title: zod_1.z.string().trim().min(1).optional(),
|
|
13
11
|
instruction: zod_1.z.string().trim().min(1),
|
|
12
|
+
language: zod_1.z.string().trim().min(2).optional(),
|
|
14
13
|
})
|
|
15
14
|
.strict();
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
/**
|
|
16
|
+
* Отдаём job, как и все остальные генерации: созданный голос лежит в job.resultMedia.
|
|
17
|
+
* Отдельного поля media нет — форма ответа одинакова у всех роутов генерации.
|
|
18
|
+
*/
|
|
18
19
|
DesignAvatarStudioVoiceCommand.ResponseSchema = zod_1.z.object({
|
|
19
|
-
data: models_1.
|
|
20
|
+
data: models_1.AvatarStudioGenerationJobSchema,
|
|
20
21
|
});
|
|
21
22
|
})(DesignAvatarStudioVoiceCommand || (exports.DesignAvatarStudioVoiceCommand = DesignAvatarStudioVoiceCommand = {}));
|
|
@@ -15,6 +15,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./design-avatar-studio-voice.command"), exports);
|
|
18
|
-
__exportStar(require("./find-avatar-studio-voices.query"), exports);
|
|
19
|
-
__exportStar(require("./clone-avatar-studio-voice.command"), exports);
|
|
20
|
-
__exportStar(require("./delete-avatar-studio-voice.command"), exports);
|
|
@@ -98,6 +98,7 @@ export declare namespace GetPhotoStudioConfigQuery {
|
|
|
98
98
|
pricingRules: z.ZodArray<z.ZodObject<{
|
|
99
99
|
condition: z.ZodObject<{
|
|
100
100
|
withoutSub: z.ZodOptional<z.ZodBoolean>;
|
|
101
|
+
resolution: z.ZodOptional<z.ZodString>;
|
|
101
102
|
}, z.core.$strip>;
|
|
102
103
|
value: z.ZodNumber;
|
|
103
104
|
}, z.core.$strip>>;
|
|
@@ -245,6 +246,7 @@ export declare namespace GetPhotoStudioConfigQuery {
|
|
|
245
246
|
pricingRules: z.ZodArray<z.ZodObject<{
|
|
246
247
|
condition: z.ZodObject<{
|
|
247
248
|
withoutSub: z.ZodOptional<z.ZodBoolean>;
|
|
249
|
+
resolution: z.ZodOptional<z.ZodString>;
|
|
248
250
|
}, z.core.$strip>;
|
|
249
251
|
value: z.ZodNumber;
|
|
250
252
|
}, z.core.$strip>>;
|