@purpleschool/gptbot 0.15.64 → 0.15.65-stage2
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 +5 -3
- package/build/api/controllers/http/avatar-studio.js +6 -5
- package/build/api/controllers/http/index.d.ts +1 -0
- package/build/api/controllers/http/index.js +1 -0
- package/build/api/controllers/http/photo-session.d.ts +20 -0
- package/build/api/controllers/http/photo-session.js +23 -0
- package/build/api/controllers/http/spell-corrector.d.ts +1 -0
- package/build/api/controllers/http/spell-corrector.js +1 -0
- package/build/api/controllers/http/tts.d.ts +9 -0
- package/build/api/controllers/http/tts.js +9 -0
- package/build/api/routes.d.ts +52 -5
- package/build/api/routes.js +52 -5
- package/build/commands/ai-studio/canvas-node/find-canvas-node-definitions-with-configs.query.d.ts +11 -0
- package/build/commands/avatar-studio/clip/create-avatar-studio-clip.command.d.ts +3 -2
- package/build/commands/avatar-studio/clip/find-avatar-studio-clips.query.d.ts +3 -2
- package/build/commands/avatar-studio/clip/get-avatar-studio-clip.query.d.ts +3 -2
- package/build/commands/avatar-studio/clip/update-avatar-studio-clip.command.d.ts +3 -2
- package/build/commands/avatar-studio/generation-job/generate-avatar-studio-scene-video.command.d.ts +2 -1
- package/build/commands/avatar-studio/generation-job/generate-avatar-studio-scene-voice.command.d.ts +4 -2
- package/build/commands/avatar-studio/generation-job/generate-avatar-studio-scene-voice.command.js +4 -2
- package/build/commands/avatar-studio/generation-job/index.d.ts +0 -1
- package/build/commands/avatar-studio/generation-job/index.js +0 -1
- package/build/commands/avatar-studio/scene/{apply-avatar-studio-voice-sample-to-all-scenes.command.d.ts → apply-avatar-studio-voice-to-all-scenes.command.d.ts} +5 -4
- package/build/commands/avatar-studio/scene/apply-avatar-studio-voice-to-all-scenes.command.js +17 -0
- package/build/commands/avatar-studio/scene/create-avatar-studio-scene.command.d.ts +3 -2
- 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 +3 -2
- package/build/commands/avatar-studio/scene/set-avatar-studio-scene-slot.command.d.ts +3 -2
- package/build/commands/avatar-studio/scene/update-avatar-studio-scene.command.d.ts +6 -4
- package/build/commands/avatar-studio/scriptwriter/apply-avatar-studio-scriptwriter-message.command.d.ts +3 -2
- package/build/commands/avatar-studio/scriptwriter/create-avatar-studio-scriptwriter-message.command.d.ts +7 -4
- package/build/commands/avatar-studio/scriptwriter/create-avatar-studio-scriptwriter-message.command.js +4 -2
- package/build/commands/avatar-studio/shared/avatar-studio-common.schema.d.ts +8 -5
- package/build/commands/avatar-studio/shared/avatar-studio-common.schema.js +2 -1
- package/build/commands/avatar-studio/shared/get-avatar-studio-config.query.d.ts +68 -65
- package/build/commands/avatar-studio/shared/get-avatar-studio-config.query.js +58 -40
- package/build/commands/avatar-studio/voice/clone-avatar-studio-voice.command.d.ts +43 -0
- package/build/commands/avatar-studio/voice/clone-avatar-studio-voice.command.js +19 -0
- package/build/commands/avatar-studio/voice/delete-avatar-studio-voice.command.d.ts +11 -0
- package/build/commands/avatar-studio/voice/delete-avatar-studio-voice.command.js +13 -0
- package/build/commands/avatar-studio/voice/design-avatar-studio-voice.command.d.ts +26 -56
- package/build/commands/avatar-studio/voice/design-avatar-studio-voice.command.js +6 -7
- package/build/commands/avatar-studio/voice/find-avatar-studio-voices.query.d.ts +36 -0
- package/build/commands/avatar-studio/voice/find-avatar-studio-voices.query.js +11 -0
- package/build/commands/avatar-studio/voice/index.d.ts +3 -0
- package/build/commands/avatar-studio/voice/index.js +3 -0
- package/build/commands/tools/html-page-builder/execute-html-page-builder.command.d.ts +2 -0
- package/build/commands/tools/html-page-builder/find-html-page-builder-session-by-uuid.command.d.ts +2 -0
- package/build/commands/tools/html-page-builder/find-html-page-builder-sessions.command.d.ts +2 -0
- package/build/commands/tools/html-page-builder/update-html-page-builder-session-favorite.command.d.ts +2 -0
- package/build/commands/tools/html-page-builder/update-html-page-builder-session-title.command.d.ts +2 -0
- package/build/commands/tools/image-editor/find-image-editor-job-by-uuid.command.d.ts +2 -0
- package/build/commands/tools/image-editor/find-image-editor-jobs.command.d.ts +2 -0
- package/build/commands/tools/image-editor/retry-image-editor-job.command.d.ts +2 -0
- package/build/commands/tools/image-editor/set-reaction-to-image-editor-job.command.d.ts +2 -0
- package/build/commands/tools/image-editor/update-image-editor-job-favorite.command.d.ts +2 -0
- package/build/commands/tools/image-editor/update-image-editor-job-title.command.d.ts +2 -0
- package/build/commands/tools/image-recognition/find-image-recognition-job-by-uuid.command.d.ts +2 -0
- package/build/commands/tools/image-recognition/find-image-recognition-jobs.command.d.ts +2 -0
- package/build/commands/tools/image-recognition/image-recognition.command.d.ts +2 -0
- package/build/commands/tools/image-recognition/retry-image-recognition-job.command.d.ts +2 -0
- package/build/commands/tools/image-recognition/set-reaction-to-image-recognition-job.command.d.ts +2 -0
- package/build/commands/tools/image-recognition/update-image-recognition-job-favorite.command.d.ts +2 -0
- package/build/commands/tools/image-recognition/update-image-recognition-job-title.command.d.ts +2 -0
- package/build/commands/tools/index.d.ts +1 -0
- package/build/commands/tools/index.js +1 -0
- package/build/commands/tools/interior-design/find-interior-design-job-by-uuid.command.d.ts +2 -0
- package/build/commands/tools/interior-design/find-interior-design-jobs.command.d.ts +2 -0
- package/build/commands/tools/interior-design/retry-interior-design-job.command.d.ts +2 -0
- package/build/commands/tools/interior-design/set-reaction-to-interior-design-job.command.d.ts +2 -0
- package/build/commands/tools/interior-design/update-interior-design-job-favorite.command.d.ts +2 -0
- package/build/commands/tools/interior-design/update-interior-design-job-title.command.d.ts +2 -0
- package/build/commands/tools/photo-session/admin/create-photo-session-style.command.d.ts +39 -0
- package/build/commands/tools/photo-session/admin/create-photo-session-style.command.js +22 -0
- package/build/commands/tools/photo-session/admin/delete-photo-session-style.command.d.ts +9 -0
- package/build/commands/tools/photo-session/admin/delete-photo-session-style.command.js +11 -0
- package/build/commands/tools/photo-session/admin/index.d.ts +4 -0
- package/build/commands/tools/photo-session/admin/index.js +20 -0
- package/build/commands/tools/photo-session/admin/list-photo-session-styles.command.d.ts +8 -0
- package/build/commands/tools/photo-session/admin/list-photo-session-styles.command.js +11 -0
- package/build/commands/tools/photo-session/admin/update-photo-session-style.command.d.ts +38 -0
- package/build/commands/tools/photo-session/admin/update-photo-session-style.command.js +21 -0
- package/build/commands/tools/photo-session/delete-all-photo-session-jobs.command.d.ts +5 -0
- package/build/commands/tools/photo-session/delete-all-photo-session-jobs.command.js +8 -0
- package/build/commands/tools/photo-session/delete-photo-session-job-by-uuid.command.d.ts +9 -0
- package/build/commands/tools/photo-session/delete-photo-session-job-by-uuid.command.js +11 -0
- package/build/commands/tools/photo-session/find-photo-session-job-by-uuid.command.d.ts +119 -0
- package/build/commands/tools/photo-session/find-photo-session-job-by-uuid.command.js +14 -0
- package/build/commands/tools/photo-session/find-photo-session-jobs.command.d.ts +128 -0
- package/build/commands/tools/photo-session/find-photo-session-jobs.command.js +24 -0
- package/build/commands/tools/photo-session/get-photo-session-config.command.d.ts +75 -0
- package/build/commands/tools/photo-session/get-photo-session-config.command.js +11 -0
- package/build/commands/tools/photo-session/get-photo-session-styles.command.d.ts +23 -0
- package/build/commands/tools/photo-session/get-photo-session-styles.command.js +11 -0
- package/build/commands/tools/photo-session/index.d.ts +13 -0
- package/build/commands/tools/photo-session/index.js +29 -0
- package/build/commands/tools/photo-session/photo-session.command.d.ts +138 -0
- package/build/commands/tools/photo-session/photo-session.command.js +25 -0
- package/build/commands/tools/photo-session/retry-photo-session-job.command.d.ts +100 -0
- package/build/commands/tools/photo-session/retry-photo-session-job.command.js +14 -0
- package/build/commands/tools/photo-session/set-reaction-to-photo-session-job.command.d.ts +106 -0
- package/build/commands/tools/photo-session/set-reaction-to-photo-session-job.command.js +28 -0
- package/build/commands/tools/photo-session/update-photo-session-job-favorite.command.d.ts +104 -0
- package/build/commands/tools/photo-session/update-photo-session-job-favorite.command.js +17 -0
- package/build/commands/tools/photo-session/update-photo-session-job-title.command.d.ts +123 -0
- package/build/commands/tools/photo-session/update-photo-session-job-title.command.js +17 -0
- package/build/commands/tools/photo-session/update-published-status-photo-session-job.command.d.ts +105 -0
- package/build/commands/tools/photo-session/update-published-status-photo-session-job.command.js +23 -0
- package/build/commands/tools/solving-edu-task/find-solving-edu-task-job-by-uuid.command.d.ts +2 -0
- package/build/commands/tools/solving-edu-task/find-solving-edu-task-jobs.command.d.ts +2 -0
- package/build/commands/tools/solving-edu-task/retry-solving-edu-task-job.command.d.ts +2 -0
- package/build/commands/tools/solving-edu-task/set-reaction-to-solving-edu-task-job.command.d.ts +2 -0
- package/build/commands/tools/solving-edu-task/solving-edu-task.command.d.ts +2 -0
- package/build/commands/tools/solving-edu-task/update-solving-edu-task-job-favorite.command.d.ts +2 -0
- package/build/commands/tools/solving-edu-task/update-solving-edu-task-job-title.command.d.ts +2 -0
- package/build/commands/tools/spell-corrector/find-spell-corrector-job-by-uuid.command.d.ts +24 -0
- package/build/commands/tools/spell-corrector/find-spell-corrector-jobs.command.d.ts +24 -0
- package/build/commands/tools/spell-corrector/get-spell-corrector-price.command.d.ts +24 -0
- package/build/commands/tools/spell-corrector/get-spell-corrector-price.command.js +25 -0
- package/build/commands/tools/spell-corrector/get-spell-corrector-tool-config.command.d.ts +3 -0
- package/build/commands/tools/spell-corrector/index.d.ts +1 -0
- package/build/commands/tools/spell-corrector/index.js +1 -0
- package/build/commands/tools/spell-corrector/retry-spell-corrector-job.command.d.ts +24 -0
- package/build/commands/tools/spell-corrector/set-reaction-to-spell-corrector-job.command.d.ts +24 -0
- package/build/commands/tools/spell-corrector/spell-corrector.command.d.ts +37 -1
- package/build/commands/tools/spell-corrector/spell-corrector.command.js +16 -3
- package/build/commands/tools/spell-corrector/update-spell-corrector-job-favorite.command.d.ts +24 -0
- package/build/commands/tools/spell-corrector/update-spell-corrector-job-title.command.d.ts +24 -0
- package/build/commands/tools/tts/create-voice-clone.command.d.ts +44 -0
- package/build/commands/tools/tts/create-voice-clone.command.js +18 -0
- package/build/commands/tools/tts/create-voice-design.command.d.ts +24 -0
- package/build/commands/tools/tts/create-voice-design.command.js +18 -0
- package/build/commands/tools/tts/delete-voice.command.d.ts +9 -0
- package/build/commands/tools/tts/delete-voice.command.js +11 -0
- package/build/commands/tools/tts/download-tts-job.command.d.ts +18 -0
- package/build/commands/tools/tts/download-tts-job.command.js +17 -0
- package/build/commands/tools/tts/find-tts-job-by-uuid.command.d.ts +13 -1
- package/build/commands/tools/tts/find-tts-jobs.command.d.ts +13 -1
- package/build/commands/tools/tts/find-voice-by-uuid.query.d.ts +40 -0
- package/build/commands/tools/tts/find-voice-by-uuid.query.js +14 -0
- package/build/commands/tools/tts/find-voices.query.d.ts +48 -0
- package/build/commands/tools/tts/find-voices.query.js +18 -0
- package/build/commands/tools/tts/get-tts-tool-config.command.d.ts +11 -0
- package/build/commands/tools/tts/improve-tts-text.command.d.ts +13 -0
- package/build/commands/tools/tts/improve-tts-text.command.js +13 -0
- package/build/commands/tools/tts/index.d.ts +9 -0
- package/build/commands/tools/tts/index.js +9 -0
- package/build/commands/tools/tts/retry-tts-job.command.d.ts +13 -1
- package/build/commands/tools/tts/select-voice-design.command.d.ts +44 -0
- package/build/commands/tools/tts/select-voice-design.command.js +17 -0
- package/build/commands/tools/tts/set-reaction-to-tts-job.command.d.ts +13 -1
- package/build/commands/tools/tts/tts.command.d.ts +6 -1
- package/build/commands/tools/tts/tts.command.js +7 -1
- package/build/commands/tools/tts/update-tts-job-favorite.command.d.ts +13 -1
- package/build/commands/tools/tts/update-tts-job-title.command.d.ts +13 -1
- package/build/commands/tools/tts/update-voice.command.d.ts +45 -0
- package/build/commands/tools/tts/update-voice.command.js +18 -0
- package/build/constants/avatar-studio/enums/avatar-studio-job-type.enum.d.ts +1 -0
- package/build/constants/avatar-studio/enums/avatar-studio-job-type.enum.js +1 -0
- package/build/constants/avatar-studio/enums/avatar-studio-media-kind.enum.d.ts +1 -2
- package/build/constants/avatar-studio/enums/avatar-studio-media-kind.enum.js +0 -1
- package/build/constants/avatar-studio/enums/avatar-studio-model-purpose.enum.d.ts +6 -0
- package/build/constants/avatar-studio/enums/avatar-studio-model-purpose.enum.js +10 -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/avatar-studio/enums/index.d.ts +1 -1
- package/build/constants/avatar-studio/enums/index.js +1 -1
- package/build/constants/index.d.ts +3 -0
- package/build/constants/index.js +3 -0
- package/build/constants/tool/enums/index.d.ts +1 -0
- package/build/constants/tool/enums/index.js +1 -0
- package/build/constants/tool/enums/job-scope.enum.d.ts +5 -0
- package/build/constants/tool/enums/job-scope.enum.js +9 -0
- package/build/constants/tool-photo-session/enums/index.d.ts +3 -0
- package/build/constants/tool-photo-session/enums/index.js +19 -0
- package/build/constants/tool-photo-session/enums/photo-session-group-status.enum.d.ts +6 -0
- package/build/constants/tool-photo-session/enums/photo-session-group-status.enum.js +10 -0
- package/build/constants/tool-photo-session/enums/photo-session-look-type.enum.d.ts +5 -0
- package/build/constants/tool-photo-session/enums/photo-session-look-type.enum.js +9 -0
- package/build/constants/tool-photo-session/enums/photo-session-model-type.enum.d.ts +3 -0
- package/build/constants/tool-photo-session/enums/photo-session-model-type.enum.js +7 -0
- package/build/constants/tool-photo-session/index.d.ts +1 -0
- package/build/constants/tool-photo-session/index.js +17 -0
- package/build/constants/tool-spell-corrector/enums/index.d.ts +1 -0
- package/build/constants/tool-spell-corrector/enums/index.js +17 -0
- package/build/constants/tool-spell-corrector/enums/spell-corrector-input-kind.enum.d.ts +4 -0
- package/build/constants/tool-spell-corrector/enums/spell-corrector-input-kind.enum.js +8 -0
- package/build/constants/tool-spell-corrector/index.d.ts +1 -0
- package/build/constants/tool-spell-corrector/index.js +17 -0
- package/build/constants/tool-tts/enums/index.d.ts +7 -0
- package/build/constants/tool-tts/enums/index.js +23 -0
- package/build/constants/tool-tts/enums/tts-download-format.enum.d.ts +5 -0
- package/build/constants/tool-tts/enums/tts-download-format.enum.js +9 -0
- package/build/constants/tool-tts/enums/voice-category.enum.d.ts +19 -0
- package/build/constants/tool-tts/enums/voice-category.enum.js +23 -0
- package/build/constants/tool-tts/enums/voice-gender.enum.d.ts +4 -0
- package/build/constants/tool-tts/enums/voice-gender.enum.js +8 -0
- package/build/constants/tool-tts/enums/voice-source.enum.d.ts +5 -0
- package/build/constants/tool-tts/enums/voice-source.enum.js +9 -0
- package/build/constants/tool-tts/enums/voice-status.enum.d.ts +5 -0
- package/build/constants/tool-tts/enums/voice-status.enum.js +9 -0
- package/build/constants/tool-tts/enums/voice-tag-group.enum.d.ts +5 -0
- package/build/constants/tool-tts/enums/voice-tag-group.enum.js +9 -0
- package/build/constants/tool-tts/enums/voice-tag.enum.d.ts +20 -0
- package/build/constants/tool-tts/enums/voice-tag.enum.js +24 -0
- package/build/constants/tool-tts/index.d.ts +1 -0
- package/build/constants/tool-tts/index.js +17 -0
- package/build/helpers/index.d.ts +1 -0
- package/build/helpers/index.js +1 -0
- package/build/helpers/photo-session/calculate-photo-session-price.helper.d.ts +6 -0
- package/build/helpers/photo-session/calculate-photo-session-price.helper.js +13 -0
- package/build/helpers/photo-session/index.d.ts +1 -0
- package/build/helpers/photo-session/index.js +17 -0
- package/build/models/avatar-studio/avatar-studio.schema.d.ts +15 -11
- package/build/models/avatar-studio/avatar-studio.schema.js +8 -4
- package/build/models/canvas-node-definition.schema.d.ts +33 -0
- package/build/models/tools/common/attached-tool-file.schema.d.ts +2 -0
- package/build/models/tools/common/attached-tool-file.schema.js +2 -0
- package/build/models/tools/html-page-builder/html-page-builder-job.schema.d.ts +4 -0
- package/build/models/tools/html-page-builder/html-page-builder-session.schema.d.ts +2 -0
- package/build/models/tools/image-editor/image-editor-job.schema.d.ts +4 -0
- package/build/models/tools/image-recognition/image-recognition-job.schema.d.ts +4 -0
- package/build/models/tools/index.d.ts +1 -0
- package/build/models/tools/index.js +1 -0
- package/build/models/tools/interior-design/interior-design-job.schema.d.ts +4 -0
- package/build/models/tools/photo-session/index.d.ts +5 -0
- package/build/models/tools/photo-session/index.js +21 -0
- package/build/models/tools/photo-session/photo-session-config.schema.d.ts +141 -0
- package/build/models/tools/photo-session/photo-session-config.schema.js +21 -0
- package/build/models/tools/photo-session/photo-session-group.schema.d.ts +112 -0
- package/build/models/tools/photo-session/photo-session-group.schema.js +26 -0
- package/build/models/tools/photo-session/photo-session-job.schema.d.ts +158 -0
- package/build/models/tools/photo-session/photo-session-job.schema.js +55 -0
- package/build/models/tools/photo-session/photo-session-model.schema.d.ts +114 -0
- package/build/models/tools/photo-session/photo-session-model.schema.js +46 -0
- package/build/models/tools/photo-session/photo-session-style.schema.d.ts +29 -0
- package/build/models/tools/photo-session/photo-session-style.schema.js +22 -0
- package/build/models/tools/solving-edu-task/solving-edu-task-job.schema.d.ts +4 -0
- package/build/models/tools/spell-corrector/spell-corrector-config.schema.d.ts +3 -0
- package/build/models/tools/spell-corrector/spell-corrector-config.schema.js +1 -0
- package/build/models/tools/spell-corrector/spell-corrector-job.schema.d.ts +39 -1
- package/build/models/tools/spell-corrector/spell-corrector-job.schema.js +23 -1
- package/build/models/tools/spell-corrector/spell-corrector-model.schema.d.ts +2 -0
- package/build/models/tools/spell-corrector/spell-corrector-model.schema.js +2 -0
- package/build/models/tools/tts/index.d.ts +3 -0
- package/build/models/tools/tts/index.js +3 -0
- package/build/models/tools/tts/tts-config.schema.d.ts +23 -0
- package/build/models/tools/tts/tts-config.schema.js +14 -1
- package/build/models/tools/tts/tts-job.schema.d.ts +26 -1
- package/build/models/tools/tts/tts-job.schema.js +16 -2
- package/build/models/tools/tts/tts-model.schema.d.ts +1 -0
- package/build/models/tools/tts/tts-model.schema.js +1 -0
- package/build/models/tools/tts/voice-design-draft.schema.d.ts +13 -0
- package/build/models/tools/tts/voice-design-draft.schema.js +13 -0
- package/build/models/tools/tts/voice-design-sample.schema.d.ts +6 -0
- package/build/models/tools/tts/voice-design-sample.schema.js +8 -0
- package/build/models/tools/tts/voice.schema.d.ts +33 -0
- package/build/models/tools/tts/voice.schema.js +37 -0
- package/package.json +1 -1
- package/build/commands/avatar-studio/generation-job/generate-avatar-studio-talking-avatar.command.d.ts +0 -78
- package/build/commands/avatar-studio/generation-job/generate-avatar-studio-talking-avatar.command.js +0 -14
- package/build/commands/avatar-studio/scene/apply-avatar-studio-voice-sample-to-all-scenes.command.js +0 -15
- package/build/constants/avatar-studio/enums/avatar-studio-video-quality.enum.d.ts +0 -4
- package/build/constants/avatar-studio/enums/avatar-studio-video-quality.enum.js +0 -8
|
@@ -0,0 +1,17 @@
|
|
|
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("./enums"), exports);
|
package/build/helpers/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export * from './video-editor';
|
|
|
8
8
|
export * from './writer';
|
|
9
9
|
export * from './image-editor';
|
|
10
10
|
export * from './image-generation';
|
|
11
|
+
export * from './photo-session';
|
|
11
12
|
export * from './music';
|
|
12
13
|
export * from './interior-design';
|
|
13
14
|
export * from './query-boolean.schema';
|
package/build/helpers/index.js
CHANGED
|
@@ -24,6 +24,7 @@ __exportStar(require("./video-editor"), exports);
|
|
|
24
24
|
__exportStar(require("./writer"), exports);
|
|
25
25
|
__exportStar(require("./image-editor"), exports);
|
|
26
26
|
__exportStar(require("./image-generation"), exports);
|
|
27
|
+
__exportStar(require("./photo-session"), exports);
|
|
27
28
|
__exportStar(require("./music"), exports);
|
|
28
29
|
__exportStar(require("./interior-design"), exports);
|
|
29
30
|
__exportStar(require("./query-boolean.schema"), exports);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PhotoSessionModelPricingRules } from '../../models';
|
|
2
|
+
export declare function calculatePhotoSessionPrice({ basePrice, userHasActiveSubscriptionOrProduct, rules, }: {
|
|
3
|
+
basePrice: number;
|
|
4
|
+
userHasActiveSubscriptionOrProduct: boolean;
|
|
5
|
+
rules: PhotoSessionModelPricingRules;
|
|
6
|
+
}): number;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.calculatePhotoSessionPrice = calculatePhotoSessionPrice;
|
|
4
|
+
function calculatePhotoSessionPrice({ basePrice, userHasActiveSubscriptionOrProduct, rules, }) {
|
|
5
|
+
let price = basePrice;
|
|
6
|
+
for (const rule of rules !== null && rules !== void 0 ? rules : []) {
|
|
7
|
+
const condition = rule.condition;
|
|
8
|
+
if (condition.withoutSub && userHasActiveSubscriptionOrProduct === false) {
|
|
9
|
+
price += rule.value;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
return price;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './calculate-photo-session-price.helper';
|
|
@@ -0,0 +1,17 @@
|
|
|
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("./calculate-photo-session-price.helper"), 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
|
|
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';
|
|
3
3
|
export declare const AvatarStudioAspectRatioSchema: z.ZodEnum<{
|
|
4
4
|
"16:9": "16:9";
|
|
5
5
|
"1:1": "1:1";
|
|
@@ -69,20 +69,20 @@ export declare const validateAvatarStudioTrim: ({ trimStart, trimEnd }: {
|
|
|
69
69
|
trimEnd?: number | null;
|
|
70
70
|
}, ctx: z.RefinementCtx) => void;
|
|
71
71
|
/**
|
|
72
|
-
*
|
|
73
|
-
*
|
|
72
|
+
* Голос — вход генерации наравне с текстом, поэтому лежит здесь, а не колонкой сцены:
|
|
73
|
+
* колонки сцены хранят результаты в слотах, конфиги — то, из чего их делают.
|
|
74
74
|
*/
|
|
75
75
|
export declare const AvatarStudioSceneVoiceConfigBaseSchema: z.ZodObject<{
|
|
76
76
|
trimStart: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
77
77
|
trimEnd: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
78
78
|
text: z.ZodDefault<z.ZodString>;
|
|
79
|
-
|
|
79
|
+
voiceId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
80
80
|
}, z.core.$strip>;
|
|
81
81
|
export declare const AvatarStudioSceneVoiceConfigSchema: z.ZodObject<{
|
|
82
82
|
trimStart: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
83
83
|
trimEnd: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
84
84
|
text: z.ZodDefault<z.ZodString>;
|
|
85
|
-
|
|
85
|
+
voiceId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
86
86
|
}, z.core.$strip>;
|
|
87
87
|
export type AvatarStudioSceneVoiceConfig = z.infer<typeof AvatarStudioSceneVoiceConfigSchema>;
|
|
88
88
|
/**
|
|
@@ -115,19 +115,21 @@ export type AvatarStudioSceneImageConfigResponse = z.infer<typeof AvatarStudioSc
|
|
|
115
115
|
export declare const AvatarStudioSceneVideoConfigBaseSchema: z.ZodObject<{
|
|
116
116
|
trimStart: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
117
117
|
trimEnd: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
118
|
+
modelId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
118
119
|
prompt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
119
120
|
durationSeconds: z.ZodDefault<z.ZodNumber>;
|
|
120
121
|
videoMode: z.ZodDefault<z.ZodEnum<typeof AVATAR_STUDIO_VIDEO_MODE>>;
|
|
121
|
-
|
|
122
|
+
resolution: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
122
123
|
sound: z.ZodDefault<z.ZodBoolean>;
|
|
123
124
|
}, z.core.$strip>;
|
|
124
125
|
export declare const AvatarStudioSceneVideoConfigSchema: z.ZodObject<{
|
|
125
126
|
trimStart: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
126
127
|
trimEnd: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
128
|
+
modelId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
127
129
|
prompt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
128
130
|
durationSeconds: z.ZodDefault<z.ZodNumber>;
|
|
129
131
|
videoMode: z.ZodDefault<z.ZodEnum<typeof AVATAR_STUDIO_VIDEO_MODE>>;
|
|
130
|
-
|
|
132
|
+
resolution: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
131
133
|
sound: z.ZodDefault<z.ZodBoolean>;
|
|
132
134
|
}, z.core.$strip>;
|
|
133
135
|
export type AvatarStudioSceneVideoConfig = z.infer<typeof AvatarStudioSceneVideoConfigSchema>;
|
|
@@ -150,7 +152,7 @@ export declare const AvatarStudioSceneSchema: z.ZodObject<{
|
|
|
150
152
|
trimStart: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
151
153
|
trimEnd: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
152
154
|
text: z.ZodDefault<z.ZodString>;
|
|
153
|
-
|
|
155
|
+
voiceId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
154
156
|
}, z.core.$strip>;
|
|
155
157
|
imageConfig: z.ZodObject<{
|
|
156
158
|
prompt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -163,10 +165,11 @@ export declare const AvatarStudioSceneSchema: z.ZodObject<{
|
|
|
163
165
|
videoConfig: z.ZodObject<{
|
|
164
166
|
trimStart: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
165
167
|
trimEnd: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
168
|
+
modelId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
166
169
|
prompt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
167
170
|
durationSeconds: z.ZodDefault<z.ZodNumber>;
|
|
168
171
|
videoMode: z.ZodDefault<z.ZodEnum<typeof AVATAR_STUDIO_VIDEO_MODE>>;
|
|
169
|
-
|
|
172
|
+
resolution: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
170
173
|
sound: z.ZodDefault<z.ZodBoolean>;
|
|
171
174
|
}, z.core.$strip>;
|
|
172
175
|
voiceMediaId: z.ZodNullable<z.ZodString>;
|
|
@@ -547,7 +550,7 @@ export declare const AvatarStudioClipSchema: z.ZodObject<{
|
|
|
547
550
|
trimStart: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
548
551
|
trimEnd: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
549
552
|
text: z.ZodDefault<z.ZodString>;
|
|
550
|
-
|
|
553
|
+
voiceId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
551
554
|
}, z.core.$strip>;
|
|
552
555
|
imageConfig: z.ZodObject<{
|
|
553
556
|
prompt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -560,10 +563,11 @@ export declare const AvatarStudioClipSchema: z.ZodObject<{
|
|
|
560
563
|
videoConfig: z.ZodObject<{
|
|
561
564
|
trimStart: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
562
565
|
trimEnd: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
566
|
+
modelId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
563
567
|
prompt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
564
568
|
durationSeconds: z.ZodDefault<z.ZodNumber>;
|
|
565
569
|
videoMode: z.ZodDefault<z.ZodEnum<typeof AVATAR_STUDIO_VIDEO_MODE>>;
|
|
566
|
-
|
|
570
|
+
resolution: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
567
571
|
sound: z.ZodDefault<z.ZodBoolean>;
|
|
568
572
|
}, z.core.$strip>;
|
|
569
573
|
voiceMediaId: z.ZodNullable<z.ZodString>;
|
|
@@ -62,10 +62,10 @@ const validateAvatarStudioTrim = ({ trimStart, trimEnd }, ctx) => {
|
|
|
62
62
|
};
|
|
63
63
|
exports.validateAvatarStudioTrim = validateAvatarStudioTrim;
|
|
64
64
|
/**
|
|
65
|
-
*
|
|
66
|
-
*
|
|
65
|
+
* Голос — вход генерации наравне с текстом, поэтому лежит здесь, а не колонкой сцены:
|
|
66
|
+
* колонки сцены хранят результаты в слотах, конфиги — то, из чего их делают.
|
|
67
67
|
*/
|
|
68
|
-
exports.AvatarStudioSceneVoiceConfigBaseSchema = zod_1.z.object(Object.assign({ text: zod_1.z.string().default(''),
|
|
68
|
+
exports.AvatarStudioSceneVoiceConfigBaseSchema = zod_1.z.object(Object.assign({ text: zod_1.z.string().default(''), voiceId: zod_1.z.string().uuid().nullable().default(null) }, exports.AvatarStudioTrimConfigFields));
|
|
69
69
|
exports.AvatarStudioSceneVoiceConfigSchema = exports.AvatarStudioSceneVoiceConfigBaseSchema.superRefine(exports.validateAvatarStudioTrim);
|
|
70
70
|
/**
|
|
71
71
|
* Референсы — вход генерации кадра, наравне с prompt и style, поэтому лежат здесь,
|
|
@@ -86,7 +86,11 @@ exports.AvatarStudioSceneImageReferenceSchema = zod_1.z.object({
|
|
|
86
86
|
exports.AvatarStudioSceneImageConfigResponseSchema = exports.AvatarStudioSceneImageConfigSchema.extend({
|
|
87
87
|
references: zod_1.z.array(exports.AvatarStudioSceneImageReferenceSchema).default([]),
|
|
88
88
|
});
|
|
89
|
-
exports.AvatarStudioSceneVideoConfigBaseSchema = zod_1.z.object(Object.assign({
|
|
89
|
+
exports.AvatarStudioSceneVideoConfigBaseSchema = zod_1.z.object(Object.assign({
|
|
90
|
+
/** Выбранная пользователем модель (uuid модели инструмента). null — дефолтная модель текущего videoMode. */
|
|
91
|
+
modelId: zod_1.z.string().uuid().nullable().default(null), prompt: zod_1.z.string().nullable().default(null), durationSeconds: zod_1.z.number().positive().default(5), videoMode: zod_1.z.nativeEnum(constants_1.AVATAR_STUDIO_VIDEO_MODE).default(constants_1.AVATAR_STUDIO_VIDEO_MODE.B_ROLL),
|
|
92
|
+
/** Строка из params.resolution.options выбранной модели. null — у модели нет выбора разрешения. */
|
|
93
|
+
resolution: zod_1.z.string().nullable().default(null), sound: zod_1.z.boolean().default(false) }, exports.AvatarStudioTrimConfigFields));
|
|
90
94
|
exports.AvatarStudioSceneVideoConfigSchema = exports.AvatarStudioSceneVideoConfigBaseSchema.superRefine(exports.validateAvatarStudioTrim);
|
|
91
95
|
exports.AvatarStudioSceneGenerationJobSchema = zod_1.z.object({
|
|
92
96
|
jobId: zod_1.z.string().uuid(),
|
|
@@ -351,6 +351,7 @@ export declare const CanvasNodeDefinitionToolConfigSchema: z.ZodDiscriminatedUni
|
|
|
351
351
|
}, z.core.$strip>;
|
|
352
352
|
}, z.core.$strip>;
|
|
353
353
|
maxInputLength: z.ZodNumber;
|
|
354
|
+
maxSpeakers: z.ZodNumber;
|
|
354
355
|
params: z.ZodObject<{
|
|
355
356
|
speed: z.ZodOptional<z.ZodObject<{
|
|
356
357
|
title: z.ZodString;
|
|
@@ -454,6 +455,16 @@ export declare const CanvasNodeDefinitionToolConfigSchema: z.ZodDiscriminatedUni
|
|
|
454
455
|
canUse: z.ZodBoolean;
|
|
455
456
|
status: z.ZodString;
|
|
456
457
|
}, z.core.$strip>>;
|
|
458
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
459
|
+
id: z.ZodEnum<typeof import("..").VOICE_TAG>;
|
|
460
|
+
group: z.ZodEnum<typeof import("..").VOICE_TAG_GROUP>;
|
|
461
|
+
label: z.ZodString;
|
|
462
|
+
}, z.core.$strip>>;
|
|
463
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
464
|
+
id: z.ZodEnum<typeof import("..").VOICE_CATEGORY>;
|
|
465
|
+
label: z.ZodString;
|
|
466
|
+
}, z.core.$strip>>;
|
|
467
|
+
speakerMarkerLabel: z.ZodString;
|
|
457
468
|
}, z.core.$strip>;
|
|
458
469
|
}, z.core.$strip>, z.ZodObject<{
|
|
459
470
|
nodeType: z.ZodLiteral<CANVAS_NODE_TYPE.sttGen>;
|
|
@@ -1083,6 +1094,7 @@ export declare const CanvasNodeDefinitionWithConfigSchema: z.ZodObject<{
|
|
|
1083
1094
|
}, z.core.$strip>;
|
|
1084
1095
|
}, z.core.$strip>;
|
|
1085
1096
|
maxInputLength: z.ZodNumber;
|
|
1097
|
+
maxSpeakers: z.ZodNumber;
|
|
1086
1098
|
params: z.ZodObject<{
|
|
1087
1099
|
speed: z.ZodOptional<z.ZodObject<{
|
|
1088
1100
|
title: z.ZodString;
|
|
@@ -1186,6 +1198,16 @@ export declare const CanvasNodeDefinitionWithConfigSchema: z.ZodObject<{
|
|
|
1186
1198
|
canUse: z.ZodBoolean;
|
|
1187
1199
|
status: z.ZodString;
|
|
1188
1200
|
}, z.core.$strip>>;
|
|
1201
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
1202
|
+
id: z.ZodEnum<typeof import("..").VOICE_TAG>;
|
|
1203
|
+
group: z.ZodEnum<typeof import("..").VOICE_TAG_GROUP>;
|
|
1204
|
+
label: z.ZodString;
|
|
1205
|
+
}, z.core.$strip>>;
|
|
1206
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
1207
|
+
id: z.ZodEnum<typeof import("..").VOICE_CATEGORY>;
|
|
1208
|
+
label: z.ZodString;
|
|
1209
|
+
}, z.core.$strip>>;
|
|
1210
|
+
speakerMarkerLabel: z.ZodString;
|
|
1189
1211
|
}, z.core.$strip>;
|
|
1190
1212
|
}, z.core.$strip>, z.ZodObject<{
|
|
1191
1213
|
nodeType: z.ZodLiteral<CANVAS_NODE_TYPE.sttGen>;
|
|
@@ -1773,6 +1795,7 @@ export declare const CanvasNodeDefinitionsWithConfigsSchema: z.ZodRecord<z.ZodEn
|
|
|
1773
1795
|
}, z.core.$strip>;
|
|
1774
1796
|
}, z.core.$strip>;
|
|
1775
1797
|
maxInputLength: z.ZodNumber;
|
|
1798
|
+
maxSpeakers: z.ZodNumber;
|
|
1776
1799
|
params: z.ZodObject<{
|
|
1777
1800
|
speed: z.ZodOptional<z.ZodObject<{
|
|
1778
1801
|
title: z.ZodString;
|
|
@@ -1876,6 +1899,16 @@ export declare const CanvasNodeDefinitionsWithConfigsSchema: z.ZodRecord<z.ZodEn
|
|
|
1876
1899
|
canUse: z.ZodBoolean;
|
|
1877
1900
|
status: z.ZodString;
|
|
1878
1901
|
}, z.core.$strip>>;
|
|
1902
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
1903
|
+
id: z.ZodEnum<typeof import("..").VOICE_TAG>;
|
|
1904
|
+
group: z.ZodEnum<typeof import("..").VOICE_TAG_GROUP>;
|
|
1905
|
+
label: z.ZodString;
|
|
1906
|
+
}, z.core.$strip>>;
|
|
1907
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
1908
|
+
id: z.ZodEnum<typeof import("..").VOICE_CATEGORY>;
|
|
1909
|
+
label: z.ZodString;
|
|
1910
|
+
}, z.core.$strip>>;
|
|
1911
|
+
speakerMarkerLabel: z.ZodString;
|
|
1879
1912
|
}, z.core.$strip>;
|
|
1880
1913
|
}, z.core.$strip>, z.ZodObject<{
|
|
1881
1914
|
nodeType: z.ZodLiteral<CANVAS_NODE_TYPE.sttGen>;
|
|
@@ -7,5 +7,7 @@ export declare const AttachedToolFileSchema: z.ZodObject<{
|
|
|
7
7
|
type: z.ZodString;
|
|
8
8
|
size: z.ZodNumber;
|
|
9
9
|
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
10
|
+
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
11
|
+
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
10
12
|
}, z.core.$strip>;
|
|
11
13
|
export type AttachedToolFile = z.infer<typeof AttachedToolFileSchema>;
|
|
@@ -10,4 +10,6 @@ exports.AttachedToolFileSchema = zod_1.z.object({
|
|
|
10
10
|
type: zod_1.z.string(),
|
|
11
11
|
size: zod_1.z.number(),
|
|
12
12
|
duration: zod_1.z.number().optional().nullable(),
|
|
13
|
+
content: zod_1.z.string().optional().nullable(),
|
|
14
|
+
contentLength: zod_1.z.number().optional().nullable(),
|
|
13
15
|
});
|
|
@@ -9,6 +9,8 @@ export declare const HtmlPageBuilderJobParamsSchema: z.ZodObject<{
|
|
|
9
9
|
type: z.ZodString;
|
|
10
10
|
size: z.ZodNumber;
|
|
11
11
|
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
12
|
+
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
13
|
+
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
12
14
|
}, z.core.$strip>>;
|
|
13
15
|
}, z.core.$strip>;
|
|
14
16
|
export type HtmlPageBuilderJobParams = z.infer<typeof HtmlPageBuilderJobParamsSchema>;
|
|
@@ -35,6 +37,8 @@ export declare const HtmlPageBuilderJobSchema: z.ZodObject<{
|
|
|
35
37
|
type: z.ZodString;
|
|
36
38
|
size: z.ZodNumber;
|
|
37
39
|
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
40
|
+
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
41
|
+
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
38
42
|
}, z.core.$strip>>;
|
|
39
43
|
}, z.core.$strip>;
|
|
40
44
|
isDeleted: z.ZodBoolean;
|
|
@@ -29,6 +29,8 @@ export declare const HtmlPageBuilderSessionSchema: z.ZodObject<{
|
|
|
29
29
|
type: z.ZodString;
|
|
30
30
|
size: z.ZodNumber;
|
|
31
31
|
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
32
|
+
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
33
|
+
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
32
34
|
}, z.core.$strip>>;
|
|
33
35
|
}, z.core.$strip>;
|
|
34
36
|
isDeleted: z.ZodBoolean;
|
|
@@ -9,6 +9,8 @@ export declare const ImageEditorJobParamsSchema: z.ZodObject<{
|
|
|
9
9
|
type: z.ZodString;
|
|
10
10
|
size: z.ZodNumber;
|
|
11
11
|
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
12
|
+
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
13
|
+
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
12
14
|
}, z.core.$strip>>;
|
|
13
15
|
systemPromptId: z.ZodOptional<z.ZodString>;
|
|
14
16
|
imageUrls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -40,6 +42,8 @@ export declare const ImageEditorJobSchema: z.ZodObject<{
|
|
|
40
42
|
type: z.ZodString;
|
|
41
43
|
size: z.ZodNumber;
|
|
42
44
|
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
45
|
+
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
46
|
+
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
43
47
|
}, z.core.$strip>>;
|
|
44
48
|
systemPromptId: z.ZodOptional<z.ZodString>;
|
|
45
49
|
imageUrls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -9,6 +9,8 @@ export declare const ImageRecognitionJobParamsSchema: z.ZodObject<{
|
|
|
9
9
|
type: z.ZodString;
|
|
10
10
|
size: z.ZodNumber;
|
|
11
11
|
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
12
|
+
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
13
|
+
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
12
14
|
}, z.core.$strip>>;
|
|
13
15
|
}, z.core.$strip>;
|
|
14
16
|
export type ImageRecognitionJobParams = z.infer<typeof ImageRecognitionJobParamsSchema>;
|
|
@@ -36,6 +38,8 @@ export declare const ImageRecognitionJobSchema: z.ZodObject<{
|
|
|
36
38
|
type: z.ZodString;
|
|
37
39
|
size: z.ZodNumber;
|
|
38
40
|
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
41
|
+
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
42
|
+
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
39
43
|
}, z.core.$strip>>;
|
|
40
44
|
}, z.core.$strip>;
|
|
41
45
|
completedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
@@ -33,5 +33,6 @@ __exportStar(require("./solving-edu-task"), exports);
|
|
|
33
33
|
__exportStar(require("./spell-corrector"), exports);
|
|
34
34
|
__exportStar(require("./html-page-builder"), exports);
|
|
35
35
|
__exportStar(require("./tool-workspace"), exports);
|
|
36
|
+
__exportStar(require("./photo-session"), exports);
|
|
36
37
|
__exportStar(require("./diagrams"), exports);
|
|
37
38
|
__exportStar(require("./sound-generation"), exports);
|
|
@@ -9,6 +9,8 @@ export declare const InteriorDesignJobParamsSchema: z.ZodObject<{
|
|
|
9
9
|
type: z.ZodString;
|
|
10
10
|
size: z.ZodNumber;
|
|
11
11
|
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
12
|
+
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
13
|
+
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
12
14
|
}, z.core.$strip>>;
|
|
13
15
|
styleId: z.ZodOptional<z.ZodString>;
|
|
14
16
|
roomTypeId: z.ZodOptional<z.ZodString>;
|
|
@@ -39,6 +41,8 @@ export declare const InteriorDesignJobSchema: z.ZodObject<{
|
|
|
39
41
|
type: z.ZodString;
|
|
40
42
|
size: z.ZodNumber;
|
|
41
43
|
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
44
|
+
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
45
|
+
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
42
46
|
}, z.core.$strip>>;
|
|
43
47
|
styleId: z.ZodOptional<z.ZodString>;
|
|
44
48
|
roomTypeId: z.ZodOptional<z.ZodString>;
|
|
@@ -0,0 +1,21 @@
|
|
|
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("./photo-session-config.schema"), exports);
|
|
18
|
+
__exportStar(require("./photo-session-job.schema"), exports);
|
|
19
|
+
__exportStar(require("./photo-session-group.schema"), exports);
|
|
20
|
+
__exportStar(require("./photo-session-model.schema"), exports);
|
|
21
|
+
__exportStar(require("./photo-session-style.schema"), exports);
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { PHOTO_SESSION_LOOK_TYPE } from '../../../constants';
|
|
3
|
+
export declare const PhotoSessionLookCategorySchema: z.ZodObject<{
|
|
4
|
+
type: z.ZodEnum<typeof PHOTO_SESSION_LOOK_TYPE>;
|
|
5
|
+
maxPhotos: z.ZodNumber;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export declare const PhotoSessionConfigSchema: z.ZodObject<{
|
|
8
|
+
models: z.ZodArray<z.ZodObject<{
|
|
9
|
+
uuid: z.ZodString;
|
|
10
|
+
title: z.ZodString;
|
|
11
|
+
description: z.ZodString;
|
|
12
|
+
aiModel: z.ZodString;
|
|
13
|
+
isNew: z.ZodBoolean;
|
|
14
|
+
tierLabel: z.ZodString;
|
|
15
|
+
pricePerImage: z.ZodNumber;
|
|
16
|
+
order: z.ZodNumber;
|
|
17
|
+
status: z.ZodEnum<typeof import("../../..").TOOL_MODEL_STATUS>;
|
|
18
|
+
icons: z.ZodObject<{
|
|
19
|
+
light: z.ZodObject<{
|
|
20
|
+
svg: z.ZodString;
|
|
21
|
+
png: z.ZodString;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
dark: z.ZodObject<{
|
|
24
|
+
svg: z.ZodString;
|
|
25
|
+
png: z.ZodString;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
maxInputLength: z.ZodNumber;
|
|
29
|
+
params: z.ZodObject<{
|
|
30
|
+
imageAttachment: z.ZodObject<{
|
|
31
|
+
supported: z.ZodBoolean;
|
|
32
|
+
maxImages: z.ZodNumber;
|
|
33
|
+
acceptedTypes: z.ZodArray<z.ZodString>;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
aspectRatio: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
36
|
+
width: z.ZodNumber;
|
|
37
|
+
height: z.ZodNumber;
|
|
38
|
+
}, z.core.$strip>>;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
pricingRules: z.ZodArray<z.ZodObject<{
|
|
41
|
+
condition: z.ZodObject<{
|
|
42
|
+
withoutSub: z.ZodOptional<z.ZodBoolean>;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
|
+
value: z.ZodNumber;
|
|
45
|
+
}, z.core.$strip>>;
|
|
46
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
47
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
48
|
+
unlockedBy: z.ZodNullable<z.ZodObject<{
|
|
49
|
+
uuid: z.ZodString;
|
|
50
|
+
name: z.ZodString;
|
|
51
|
+
}, z.core.$strip>>;
|
|
52
|
+
canUse: z.ZodBoolean;
|
|
53
|
+
}, z.core.$strip>>;
|
|
54
|
+
styles: z.ZodArray<z.ZodObject<{
|
|
55
|
+
uuid: z.ZodString;
|
|
56
|
+
code: z.ZodString;
|
|
57
|
+
title: z.ZodString;
|
|
58
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
|
+
references: z.ZodArray<z.ZodObject<{
|
|
60
|
+
uuid: z.ZodString;
|
|
61
|
+
styleId: z.ZodString;
|
|
62
|
+
photoUrl: z.ZodString;
|
|
63
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
64
|
+
order: z.ZodNumber;
|
|
65
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
66
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
67
|
+
}, z.core.$strip>>;
|
|
68
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
69
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
70
|
+
}, z.core.$strip>>;
|
|
71
|
+
looks: z.ZodArray<z.ZodObject<{
|
|
72
|
+
type: z.ZodEnum<typeof PHOTO_SESSION_LOOK_TYPE>;
|
|
73
|
+
maxPhotos: z.ZodNumber;
|
|
74
|
+
}, z.core.$strip>>;
|
|
75
|
+
}, z.core.$strip>;
|
|
76
|
+
export type PhotoSessionConfig = z.infer<typeof PhotoSessionConfigSchema>;
|
|
77
|
+
export declare const RawPhotoSessionConfigSchema: z.ZodObject<{
|
|
78
|
+
models: z.ZodArray<z.ZodObject<{
|
|
79
|
+
uuid: z.ZodString;
|
|
80
|
+
title: z.ZodString;
|
|
81
|
+
description: z.ZodString;
|
|
82
|
+
aiModel: z.ZodString;
|
|
83
|
+
isNew: z.ZodBoolean;
|
|
84
|
+
tierLabel: z.ZodString;
|
|
85
|
+
pricePerImage: z.ZodNumber;
|
|
86
|
+
order: z.ZodNumber;
|
|
87
|
+
status: z.ZodEnum<typeof import("../../..").TOOL_MODEL_STATUS>;
|
|
88
|
+
icons: z.ZodObject<{
|
|
89
|
+
light: z.ZodObject<{
|
|
90
|
+
svg: z.ZodString;
|
|
91
|
+
png: z.ZodString;
|
|
92
|
+
}, z.core.$strip>;
|
|
93
|
+
dark: z.ZodObject<{
|
|
94
|
+
svg: z.ZodString;
|
|
95
|
+
png: z.ZodString;
|
|
96
|
+
}, z.core.$strip>;
|
|
97
|
+
}, z.core.$strip>;
|
|
98
|
+
maxInputLength: z.ZodNumber;
|
|
99
|
+
params: z.ZodObject<{
|
|
100
|
+
imageAttachment: z.ZodObject<{
|
|
101
|
+
supported: z.ZodBoolean;
|
|
102
|
+
maxImages: z.ZodNumber;
|
|
103
|
+
acceptedTypes: z.ZodArray<z.ZodString>;
|
|
104
|
+
}, z.core.$strip>;
|
|
105
|
+
aspectRatio: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
106
|
+
width: z.ZodNumber;
|
|
107
|
+
height: z.ZodNumber;
|
|
108
|
+
}, z.core.$strip>>;
|
|
109
|
+
}, z.core.$strip>;
|
|
110
|
+
pricingRules: z.ZodArray<z.ZodObject<{
|
|
111
|
+
condition: z.ZodObject<{
|
|
112
|
+
withoutSub: z.ZodOptional<z.ZodBoolean>;
|
|
113
|
+
}, z.core.$strip>;
|
|
114
|
+
value: z.ZodNumber;
|
|
115
|
+
}, z.core.$strip>>;
|
|
116
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
117
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
118
|
+
}, z.core.$strip>>;
|
|
119
|
+
styles: z.ZodArray<z.ZodObject<{
|
|
120
|
+
uuid: z.ZodString;
|
|
121
|
+
code: z.ZodString;
|
|
122
|
+
title: z.ZodString;
|
|
123
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
124
|
+
references: z.ZodArray<z.ZodObject<{
|
|
125
|
+
uuid: z.ZodString;
|
|
126
|
+
styleId: z.ZodString;
|
|
127
|
+
photoUrl: z.ZodString;
|
|
128
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
129
|
+
order: z.ZodNumber;
|
|
130
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
131
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
132
|
+
}, z.core.$strip>>;
|
|
133
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
134
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
135
|
+
}, z.core.$strip>>;
|
|
136
|
+
looks: z.ZodArray<z.ZodObject<{
|
|
137
|
+
type: z.ZodEnum<typeof PHOTO_SESSION_LOOK_TYPE>;
|
|
138
|
+
maxPhotos: z.ZodNumber;
|
|
139
|
+
}, z.core.$strip>>;
|
|
140
|
+
}, z.core.$strip>;
|
|
141
|
+
export type RawPhotoSessionConfig = z.infer<typeof RawPhotoSessionConfigSchema>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RawPhotoSessionConfigSchema = exports.PhotoSessionConfigSchema = exports.PhotoSessionLookCategorySchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const photo_session_model_schema_1 = require("./photo-session-model.schema");
|
|
6
|
+
const photo_session_style_schema_1 = require("./photo-session-style.schema");
|
|
7
|
+
const constants_1 = require("../../../constants");
|
|
8
|
+
exports.PhotoSessionLookCategorySchema = zod_1.z.object({
|
|
9
|
+
type: zod_1.z.nativeEnum(constants_1.PHOTO_SESSION_LOOK_TYPE),
|
|
10
|
+
maxPhotos: zod_1.z.number(),
|
|
11
|
+
});
|
|
12
|
+
exports.PhotoSessionConfigSchema = zod_1.z.object({
|
|
13
|
+
models: zod_1.z.array(photo_session_model_schema_1.PhotoSessionModelSchema),
|
|
14
|
+
styles: zod_1.z.array(photo_session_style_schema_1.PhotoSessionStyleSchema),
|
|
15
|
+
looks: zod_1.z.array(exports.PhotoSessionLookCategorySchema),
|
|
16
|
+
});
|
|
17
|
+
exports.RawPhotoSessionConfigSchema = zod_1.z.object({
|
|
18
|
+
models: zod_1.z.array(photo_session_model_schema_1.RawPhotoSessionModelSchema),
|
|
19
|
+
styles: zod_1.z.array(photo_session_style_schema_1.PhotoSessionStyleSchema),
|
|
20
|
+
looks: zod_1.z.array(exports.PhotoSessionLookCategorySchema),
|
|
21
|
+
});
|