@purpleschool/gptbot 0.15.62-stage2 → 0.15.64
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 +3 -5
- package/build/api/controllers/http/avatar-studio.js +5 -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 +5 -50
- package/build/api/routes.js +5 -50
- package/build/commands/ai-studio/canvas-node/find-canvas-node-definitions-with-configs.query.d.ts +2 -11
- package/build/commands/avatar-studio/clip/create-avatar-studio-clip.command.d.ts +2 -3
- package/build/commands/avatar-studio/clip/find-avatar-studio-clips.query.d.ts +2 -3
- package/build/commands/avatar-studio/clip/get-avatar-studio-clip.query.d.ts +2 -3
- package/build/commands/avatar-studio/clip/update-avatar-studio-clip.command.d.ts +2 -3
- package/build/commands/avatar-studio/generation-job/generate-avatar-studio-scene-video.command.d.ts +1 -2
- 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/generation-job/generate-avatar-studio-talking-avatar.command.d.ts +78 -0
- package/build/commands/avatar-studio/generation-job/generate-avatar-studio-talking-avatar.command.js +14 -0
- package/build/commands/avatar-studio/generation-job/index.d.ts +1 -0
- package/build/commands/avatar-studio/generation-job/index.js +1 -0
- 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} +4 -5
- 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 +2 -3
- 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 +2 -3
- package/build/commands/avatar-studio/scene/set-avatar-studio-scene-slot.command.d.ts +2 -3
- package/build/commands/avatar-studio/scene/update-avatar-studio-scene.command.d.ts +4 -6
- package/build/commands/avatar-studio/scriptwriter/apply-avatar-studio-scriptwriter-message.command.d.ts +2 -3
- package/build/commands/avatar-studio/scriptwriter/create-avatar-studio-scriptwriter-message.command.d.ts +4 -7
- package/build/commands/avatar-studio/scriptwriter/create-avatar-studio-scriptwriter-message.command.js +2 -4
- package/build/commands/avatar-studio/shared/avatar-studio-common.schema.d.ts +5 -8
- package/build/commands/avatar-studio/shared/avatar-studio-common.schema.js +1 -2
- package/build/commands/avatar-studio/shared/get-avatar-studio-config.query.d.ts +65 -68
- package/build/commands/avatar-studio/shared/get-avatar-studio-config.query.js +40 -58
- 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/b2b/get-b2b-documentation.command.d.ts +2 -0
- package/build/commands/community/create-community-post.command.d.ts +4 -0
- package/build/commands/community/get-all-community-posts-by-criteria.command.d.ts +4 -0
- package/build/commands/community/get-community-post-by-uuid.command.d.ts +4 -0
- package/build/commands/community/get-my-community-posts-by-criteria.command.d.ts +4 -0
- package/build/commands/community/get-my-favorite-community-posts.command.d.ts +4 -0
- package/build/commands/community/get-my-likes-community-posts.command.d.ts +4 -0
- package/build/commands/community/set-like-community-post.command.d.ts +4 -0
- package/build/commands/model-page/base/find-model-page-admin.command.d.ts +1 -0
- package/build/commands/model-page/public/find-model-page-answer-detail.command.d.ts +1 -0
- package/build/commands/model-page/public/find-model-page-detail.command.d.ts +1 -0
- package/build/commands/model-page/public/find-model-page-hub.command.d.ts +1 -0
- package/build/commands/photo-studio/get-photo-studio-config.query.d.ts +4 -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/diagrams/diagrams.command.d.ts +17 -5
- package/build/commands/tools/diagrams/diagrams.command.js +2 -4
- package/build/commands/tools/diagrams/edit-diagrams-job.command.d.ts +18 -4
- package/build/commands/tools/diagrams/edit-diagrams-job.command.js +1 -2
- package/build/commands/tools/diagrams/find-diagrams-job-by-uuid.command.d.ts +9 -2
- package/build/commands/tools/diagrams/find-diagrams-jobs.command.d.ts +9 -2
- package/build/commands/tools/diagrams/get-diagrams-price.command.d.ts +9 -2
- package/build/commands/tools/diagrams/get-diagrams-price.command.js +2 -2
- package/build/commands/tools/diagrams/get-diagrams-tool-config.command.d.ts +4 -0
- package/build/commands/tools/diagrams/retry-diagrams-job.command.d.ts +15 -3
- package/build/commands/tools/diagrams/retry-diagrams-job.command.js +1 -1
- package/build/commands/tools/diagrams/set-reaction-to-diagrams-job.command.d.ts +9 -2
- package/build/commands/tools/diagrams/update-diagrams-job-favorite.command.d.ts +9 -2
- package/build/commands/tools/diagrams/update-diagrams-job-title.command.d.ts +9 -2
- 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-generation/get-image-generation-config.command.d.ts +1 -0
- 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/music/add-track-to-music-playlist.command.d.ts +90 -23
- package/build/commands/tools/music/add-track-to-music-playlist.command.js +1 -1
- package/build/commands/tools/music/create-music-playlist.command.d.ts +89 -22
- package/build/commands/tools/music/edit-music.command.d.ts +6 -0
- package/build/commands/tools/music/find-music-job-by-uuid.command.d.ts +6 -0
- package/build/commands/tools/music/find-music-jobs.command.d.ts +6 -0
- package/build/commands/tools/music/find-music-playlists.command.d.ts +98 -22
- package/build/commands/tools/music/find-music-playlists.command.js +8 -0
- package/build/commands/tools/music/generate-music.command.d.ts +6 -0
- package/build/commands/tools/music/remove-track-from-music-playlist.command.d.ts +90 -23
- package/build/commands/tools/music/remove-track-from-music-playlist.command.js +1 -1
- package/build/commands/tools/music/retry-music-job.command.d.ts +6 -0
- package/build/commands/tools/music/set-reaction-to-music-job.command.d.ts +6 -0
- package/build/commands/tools/music/update-music-job-favorite.command.d.ts +6 -0
- package/build/commands/tools/music/update-music-job-title.command.d.ts +6 -0
- package/build/commands/tools/music/update-music-playlist.command.d.ts +89 -22
- 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/avatar-studio/enums/avatar-studio-video-quality.enum.d.ts +4 -0
- package/build/constants/avatar-studio/enums/avatar-studio-video-quality.enum.js +8 -0
- 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 +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-content-type.enum.d.ts +3 -1
- package/build/constants/tool/enums/tool-content-type.enum.js +2 -0
- 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/constants/tool-music/enums/music-action-type.enum.d.ts +0 -2
- package/build/constants/tool-music/enums/music-action-type.enum.js +0 -2
- package/build/constants/tool-music/enums/music-audio-action-type.enum.d.ts +0 -2
- package/build/constants/tool-music/enums/music-audio-action-type.enum.js +0 -2
- package/build/constants/tool-music/enums/music-generation-action-type.enum.d.ts +2 -1
- package/build/constants/tool-music/enums/music-generation-action-type.enum.js +1 -0
- 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/image-generation/calculate-image-generation-price.helper.d.ts +1 -1
- package/build/helpers/image-generation/calculate-image-generation-price.helper.js +5 -0
- 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 +11 -15
- package/build/models/avatar-studio/avatar-studio.schema.js +4 -8
- package/build/models/canvas-node-definition.schema.d.ts +6 -33
- package/build/models/community/community-post-media-data.schema.d.ts +8 -0
- package/build/models/community/community-post.schema.d.ts +12 -0
- package/build/models/model-page/model-page-public.schema.d.ts +3 -0
- package/build/models/model-page/model-page-technical-model.schema.d.ts +3 -0
- 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/diagrams/diagrams-config.schema.d.ts +4 -0
- package/build/models/tools/diagrams/diagrams-config.schema.js +2 -0
- package/build/models/tools/diagrams/diagrams-job.schema.d.ts +104 -10
- package/build/models/tools/diagrams/diagrams-job.schema.js +71 -17
- 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-generation/image-generation-config.schema.d.ts +2 -0
- package/build/models/tools/image-generation/image-generation-model.schema.d.ts +3 -0
- package/build/models/tools/image-generation/image-generation-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/music/music-job.schema.d.ts +10 -0
- package/build/models/tools/music/music-job.schema.js +20 -19
- package/build/models/tools/music/music-playlist.schema.d.ts +89 -22
- package/build/models/tools/music/music-playlist.schema.js +3 -3
- 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/avatar-studio/enums/avatar-studio-model-purpose.enum.d.ts +0 -6
- package/build/constants/avatar-studio/enums/avatar-studio-model-purpose.enum.js +0 -10
- 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,25 +1,90 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { TOOL_JOB_STATUS, USER_REACTION } from '../../../constants';
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const DIAGRAMS_MODES: readonly ['chart', 'report'];
|
|
4
|
+
export declare const DiagramsModeSchema: z.ZodEnum<{
|
|
5
|
+
chart: "chart";
|
|
6
|
+
report: "report";
|
|
7
|
+
}>;
|
|
8
|
+
export declare const DiagramsReportAccentColorSchema: z.ZodString;
|
|
9
|
+
export declare const DiagramsJobRequestParamsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
10
|
+
mode: z.ZodLiteral<"chart">;
|
|
4
11
|
chartTypeUuid: z.ZodString;
|
|
5
12
|
fileIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6
|
-
}, z.core.$strip
|
|
13
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
14
|
+
mode: z.ZodLiteral<"report">;
|
|
15
|
+
accentColor: z.ZodString;
|
|
16
|
+
fileIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
17
|
+
}, z.core.$strip>], "mode">;
|
|
7
18
|
export type DiagramsJobRequestParams = z.infer<typeof DiagramsJobRequestParamsSchema>;
|
|
8
|
-
export declare const
|
|
19
|
+
export declare const DiagramsJobRequestParamsUpdateSchema: z.ZodObject<{
|
|
20
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
21
|
+
chart: "chart";
|
|
22
|
+
report: "report";
|
|
23
|
+
}>>;
|
|
24
|
+
chartTypeUuid: z.ZodOptional<z.ZodString>;
|
|
25
|
+
accentColor: z.ZodOptional<z.ZodString>;
|
|
26
|
+
fileIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
export type DiagramsJobRequestParamsUpdate = z.infer<typeof DiagramsJobRequestParamsUpdateSchema>;
|
|
29
|
+
export declare const DiagramsChartParamsSchema: z.ZodObject<{
|
|
30
|
+
mode: z.ZodDefault<z.ZodLiteral<"chart">>;
|
|
9
31
|
chartTypeUuid: z.ZodString;
|
|
10
32
|
data: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11
33
|
fileId: z.ZodString;
|
|
12
34
|
url: z.ZodString;
|
|
13
35
|
}, z.core.$strip>>>;
|
|
14
36
|
}, z.core.$strip>;
|
|
15
|
-
export
|
|
16
|
-
|
|
37
|
+
export declare const DiagramsReportParamsSchema: z.ZodObject<{
|
|
38
|
+
mode: z.ZodLiteral<"report">;
|
|
39
|
+
accentColor: z.ZodString;
|
|
40
|
+
data: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
41
|
+
fileId: z.ZodString;
|
|
42
|
+
url: z.ZodString;
|
|
43
|
+
}, z.core.$strip>>>;
|
|
44
|
+
}, z.core.$strip>;
|
|
45
|
+
export declare const DiagramsNewJobParamsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
46
|
+
chartTypeUuid: z.ZodString;
|
|
47
|
+
data: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
48
|
+
fileId: z.ZodString;
|
|
49
|
+
url: z.ZodString;
|
|
50
|
+
}, z.core.$strip>>>;
|
|
51
|
+
mode: z.ZodLiteral<"chart">;
|
|
52
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
53
|
+
mode: z.ZodLiteral<"report">;
|
|
54
|
+
accentColor: z.ZodString;
|
|
55
|
+
data: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
56
|
+
fileId: z.ZodString;
|
|
57
|
+
url: z.ZodString;
|
|
58
|
+
}, z.core.$strip>>>;
|
|
59
|
+
}, z.core.$strip>], "mode">;
|
|
60
|
+
export declare const DiagramsJobParamsSchema: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
61
|
+
mode: z.ZodDefault<z.ZodLiteral<"chart">>;
|
|
17
62
|
chartTypeUuid: z.ZodString;
|
|
18
63
|
data: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
19
64
|
fileId: z.ZodString;
|
|
65
|
+
url: z.ZodString;
|
|
66
|
+
}, z.core.$strip>>>;
|
|
67
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
68
|
+
mode: z.ZodLiteral<"report">;
|
|
69
|
+
accentColor: z.ZodString;
|
|
70
|
+
data: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
71
|
+
fileId: z.ZodString;
|
|
72
|
+
url: z.ZodString;
|
|
73
|
+
}, z.core.$strip>>>;
|
|
74
|
+
}, z.core.$strip>], "mode">>;
|
|
75
|
+
export type DiagramsJobParams = z.infer<typeof DiagramsJobParamsSchema>;
|
|
76
|
+
export declare const DiagramsJobParamsUpdateSchema: z.ZodObject<{
|
|
77
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
78
|
+
chart: "chart";
|
|
79
|
+
report: "report";
|
|
80
|
+
}>>;
|
|
81
|
+
chartTypeUuid: z.ZodOptional<z.ZodString>;
|
|
82
|
+
accentColor: z.ZodOptional<z.ZodString>;
|
|
83
|
+
data: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
84
|
+
fileId: z.ZodString;
|
|
85
|
+
url: z.ZodString;
|
|
20
86
|
}, z.core.$strip>>>;
|
|
21
87
|
}, z.core.$strip>;
|
|
22
|
-
export type DiagramsJobParamsResponse = z.infer<typeof DiagramsJobParamsSchemaResponse>;
|
|
23
88
|
export declare const DiagramsJobOutputSchema: z.ZodObject<{
|
|
24
89
|
versions: z.ZodArray<z.ZodObject<{
|
|
25
90
|
uuid: z.ZodString;
|
|
@@ -29,6 +94,20 @@ export declare const DiagramsJobOutputSchema: z.ZodObject<{
|
|
|
29
94
|
}, z.core.$strip>>;
|
|
30
95
|
}, z.core.$strip>;
|
|
31
96
|
export type DiagramsJobOutput = z.infer<typeof DiagramsJobOutputSchema>;
|
|
97
|
+
export declare const DiagramsJobParamsSchemaResponse: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
98
|
+
mode: z.ZodLiteral<"chart">;
|
|
99
|
+
chartTypeUuid: z.ZodString;
|
|
100
|
+
data: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
101
|
+
fileId: z.ZodString;
|
|
102
|
+
}, z.core.$strip>>>;
|
|
103
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
104
|
+
mode: z.ZodLiteral<"report">;
|
|
105
|
+
accentColor: z.ZodString;
|
|
106
|
+
data: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
107
|
+
fileId: z.ZodString;
|
|
108
|
+
}, z.core.$strip>>>;
|
|
109
|
+
}, z.core.$strip>], "mode">;
|
|
110
|
+
export type DiagramsJobParamsResponse = z.infer<typeof DiagramsJobParamsSchemaResponse>;
|
|
32
111
|
export declare const DiagramsJobSchema: z.ZodObject<{
|
|
33
112
|
uuid: z.ZodString;
|
|
34
113
|
prompt: z.ZodString;
|
|
@@ -38,13 +117,21 @@ export declare const DiagramsJobSchema: z.ZodObject<{
|
|
|
38
117
|
internalError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
118
|
modelId: z.ZodString;
|
|
40
119
|
price: z.ZodNumber;
|
|
41
|
-
params: z.ZodObject<{
|
|
120
|
+
params: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
121
|
+
mode: z.ZodDefault<z.ZodLiteral<"chart">>;
|
|
42
122
|
chartTypeUuid: z.ZodString;
|
|
43
123
|
data: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
44
124
|
fileId: z.ZodString;
|
|
45
125
|
url: z.ZodString;
|
|
46
126
|
}, z.core.$strip>>>;
|
|
47
|
-
}, z.core.$strip
|
|
127
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
128
|
+
mode: z.ZodLiteral<"report">;
|
|
129
|
+
accentColor: z.ZodString;
|
|
130
|
+
data: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
131
|
+
fileId: z.ZodString;
|
|
132
|
+
url: z.ZodString;
|
|
133
|
+
}, z.core.$strip>>>;
|
|
134
|
+
}, z.core.$strip>], "mode">>;
|
|
48
135
|
output: z.ZodObject<{
|
|
49
136
|
versions: z.ZodArray<z.ZodObject<{
|
|
50
137
|
uuid: z.ZodString;
|
|
@@ -90,11 +177,18 @@ export declare const DiagramsJobSchemaResponse: z.ZodObject<{
|
|
|
90
177
|
createdAt: z.ZodDate;
|
|
91
178
|
completedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
92
179
|
updatedAt: z.ZodDate;
|
|
93
|
-
params: z.ZodObject<{
|
|
180
|
+
params: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
181
|
+
mode: z.ZodLiteral<"chart">;
|
|
94
182
|
chartTypeUuid: z.ZodString;
|
|
95
183
|
data: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
96
184
|
fileId: z.ZodString;
|
|
97
185
|
}, z.core.$strip>>>;
|
|
98
|
-
}, z.core.$strip
|
|
186
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
187
|
+
mode: z.ZodLiteral<"report">;
|
|
188
|
+
accentColor: z.ZodString;
|
|
189
|
+
data: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
190
|
+
fileId: z.ZodString;
|
|
191
|
+
}, z.core.$strip>>>;
|
|
192
|
+
}, z.core.$strip>], "mode">;
|
|
99
193
|
}, z.core.$strip>;
|
|
100
194
|
export type DiagramsJobResponse = z.infer<typeof DiagramsJobSchemaResponse>;
|
|
@@ -1,28 +1,65 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DiagramsJobSchemaResponse = exports.DiagramsJobSchema = exports.DiagramsJobOutputSchema = exports.
|
|
3
|
+
exports.DiagramsJobSchemaResponse = exports.DiagramsJobSchema = exports.DiagramsJobParamsSchemaResponse = exports.DiagramsJobOutputSchema = exports.DiagramsJobParamsUpdateSchema = exports.DiagramsJobParamsSchema = exports.DiagramsNewJobParamsSchema = exports.DiagramsReportParamsSchema = exports.DiagramsChartParamsSchema = exports.DiagramsJobRequestParamsUpdateSchema = exports.DiagramsJobRequestParamsSchema = exports.DiagramsReportAccentColorSchema = exports.DiagramsModeSchema = exports.DIAGRAMS_MODES = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const constants_1 = require("../../../constants");
|
|
6
|
-
exports.
|
|
7
|
-
|
|
6
|
+
exports.DIAGRAMS_MODES = ['chart', 'report'];
|
|
7
|
+
exports.DiagramsModeSchema = zod_1.z.enum(exports.DIAGRAMS_MODES);
|
|
8
|
+
exports.DiagramsReportAccentColorSchema = zod_1.z
|
|
9
|
+
.string()
|
|
10
|
+
.regex(/^#[0-9a-fA-F]{6}$/, 'Укажите цвет в формате #RRGGBB');
|
|
11
|
+
exports.DiagramsJobRequestParamsSchema = zod_1.z.discriminatedUnion('mode', [
|
|
12
|
+
zod_1.z.object({
|
|
13
|
+
mode: zod_1.z.literal('chart'),
|
|
14
|
+
chartTypeUuid: zod_1.z.string().uuid(),
|
|
15
|
+
fileIds: zod_1.z.array(zod_1.z.string().uuid()).optional(),
|
|
16
|
+
}),
|
|
17
|
+
zod_1.z.object({
|
|
18
|
+
mode: zod_1.z.literal('report'),
|
|
19
|
+
accentColor: exports.DiagramsReportAccentColorSchema,
|
|
20
|
+
fileIds: zod_1.z.array(zod_1.z.string().uuid()).optional(),
|
|
21
|
+
}),
|
|
22
|
+
]);
|
|
23
|
+
exports.DiagramsJobRequestParamsUpdateSchema = zod_1.z.object({
|
|
24
|
+
mode: exports.DiagramsModeSchema.optional(),
|
|
25
|
+
chartTypeUuid: zod_1.z.string().uuid().optional(),
|
|
26
|
+
accentColor: exports.DiagramsReportAccentColorSchema.optional(),
|
|
8
27
|
fileIds: zod_1.z.array(zod_1.z.string().uuid()).optional(),
|
|
9
28
|
});
|
|
10
|
-
|
|
29
|
+
const DiagramsJobDataSchema = zod_1.z
|
|
30
|
+
.array(zod_1.z.object({
|
|
31
|
+
fileId: zod_1.z.string().uuid(),
|
|
32
|
+
url: zod_1.z.string(),
|
|
33
|
+
}))
|
|
34
|
+
.optional();
|
|
35
|
+
exports.DiagramsChartParamsSchema = zod_1.z.object({
|
|
36
|
+
mode: zod_1.z.literal('chart').default('chart'),
|
|
11
37
|
chartTypeUuid: zod_1.z.string().uuid(),
|
|
12
|
-
data:
|
|
13
|
-
.array(zod_1.z.object({
|
|
14
|
-
fileId: zod_1.z.string().uuid(),
|
|
15
|
-
url: zod_1.z.string(),
|
|
16
|
-
}))
|
|
17
|
-
.optional(),
|
|
38
|
+
data: DiagramsJobDataSchema,
|
|
18
39
|
});
|
|
19
|
-
exports.
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
40
|
+
exports.DiagramsReportParamsSchema = zod_1.z.object({
|
|
41
|
+
mode: zod_1.z.literal('report'),
|
|
42
|
+
accentColor: exports.DiagramsReportAccentColorSchema,
|
|
43
|
+
data: DiagramsJobDataSchema,
|
|
44
|
+
});
|
|
45
|
+
exports.DiagramsNewJobParamsSchema = zod_1.z.discriminatedUnion('mode', [
|
|
46
|
+
exports.DiagramsChartParamsSchema.extend({ mode: zod_1.z.literal('chart') }),
|
|
47
|
+
exports.DiagramsReportParamsSchema,
|
|
48
|
+
]);
|
|
49
|
+
exports.DiagramsJobParamsSchema = zod_1.z.preprocess((params) => {
|
|
50
|
+
if (params &&
|
|
51
|
+
typeof params === 'object' &&
|
|
52
|
+
!('mode' in params) &&
|
|
53
|
+
'chartTypeUuid' in params) {
|
|
54
|
+
return Object.assign(Object.assign({}, params), { mode: 'chart' });
|
|
55
|
+
}
|
|
56
|
+
return params;
|
|
57
|
+
}, zod_1.z.discriminatedUnion('mode', [exports.DiagramsChartParamsSchema, exports.DiagramsReportParamsSchema]));
|
|
58
|
+
exports.DiagramsJobParamsUpdateSchema = zod_1.z.object({
|
|
59
|
+
mode: exports.DiagramsModeSchema.optional(),
|
|
60
|
+
chartTypeUuid: zod_1.z.string().uuid().optional(),
|
|
61
|
+
accentColor: exports.DiagramsReportAccentColorSchema.optional(),
|
|
62
|
+
data: DiagramsJobDataSchema,
|
|
26
63
|
});
|
|
27
64
|
exports.DiagramsJobOutputSchema = zod_1.z.object({
|
|
28
65
|
versions: zod_1.z.array(zod_1.z.object({
|
|
@@ -32,6 +69,23 @@ exports.DiagramsJobOutputSchema = zod_1.z.object({
|
|
|
32
69
|
parentUuid: zod_1.z.string().uuid().optional(),
|
|
33
70
|
})),
|
|
34
71
|
});
|
|
72
|
+
const DiagramsJobDataResponseSchema = zod_1.z
|
|
73
|
+
.array(zod_1.z.object({
|
|
74
|
+
fileId: zod_1.z.string().uuid(),
|
|
75
|
+
}))
|
|
76
|
+
.optional();
|
|
77
|
+
exports.DiagramsJobParamsSchemaResponse = zod_1.z.discriminatedUnion('mode', [
|
|
78
|
+
zod_1.z.object({
|
|
79
|
+
mode: zod_1.z.literal('chart'),
|
|
80
|
+
chartTypeUuid: zod_1.z.string().uuid(),
|
|
81
|
+
data: DiagramsJobDataResponseSchema,
|
|
82
|
+
}),
|
|
83
|
+
zod_1.z.object({
|
|
84
|
+
mode: zod_1.z.literal('report'),
|
|
85
|
+
accentColor: exports.DiagramsReportAccentColorSchema,
|
|
86
|
+
data: DiagramsJobDataResponseSchema,
|
|
87
|
+
}),
|
|
88
|
+
]);
|
|
35
89
|
exports.DiagramsJobSchema = zod_1.z.object({
|
|
36
90
|
uuid: zod_1.z.string().uuid(),
|
|
37
91
|
prompt: zod_1.z.string(),
|
|
@@ -9,8 +9,6 @@ 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>>;
|
|
14
12
|
}, z.core.$strip>>;
|
|
15
13
|
}, z.core.$strip>;
|
|
16
14
|
export type HtmlPageBuilderJobParams = z.infer<typeof HtmlPageBuilderJobParamsSchema>;
|
|
@@ -37,8 +35,6 @@ export declare const HtmlPageBuilderJobSchema: z.ZodObject<{
|
|
|
37
35
|
type: z.ZodString;
|
|
38
36
|
size: z.ZodNumber;
|
|
39
37
|
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
40
|
-
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
41
|
-
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
42
38
|
}, z.core.$strip>>;
|
|
43
39
|
}, z.core.$strip>;
|
|
44
40
|
isDeleted: z.ZodBoolean;
|
|
@@ -29,8 +29,6 @@ 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>>;
|
|
34
32
|
}, z.core.$strip>>;
|
|
35
33
|
}, z.core.$strip>;
|
|
36
34
|
isDeleted: z.ZodBoolean;
|
|
@@ -98,6 +98,7 @@ export declare const ImageEditorConfigSchema: z.ZodObject<{
|
|
|
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>>;
|
|
@@ -9,8 +9,6 @@ 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>>;
|
|
14
12
|
}, z.core.$strip>>;
|
|
15
13
|
systemPromptId: z.ZodOptional<z.ZodString>;
|
|
16
14
|
imageUrls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -42,8 +40,6 @@ export declare const ImageEditorJobSchema: z.ZodObject<{
|
|
|
42
40
|
type: z.ZodString;
|
|
43
41
|
size: z.ZodNumber;
|
|
44
42
|
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
45
|
-
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
46
|
-
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
47
43
|
}, z.core.$strip>>;
|
|
48
44
|
systemPromptId: z.ZodOptional<z.ZodString>;
|
|
49
45
|
imageUrls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -16,11 +16,13 @@ export declare const ImageEditorModelParamsSchema: z.ZodObject<{
|
|
|
16
16
|
export type ImageEditorModelParams = z.infer<typeof ImageEditorModelParamsSchema>;
|
|
17
17
|
export declare const ImageEditorModelPricingRuleConditionSchema: z.ZodObject<{
|
|
18
18
|
withoutSub: z.ZodOptional<z.ZodBoolean>;
|
|
19
|
+
resolution: z.ZodOptional<z.ZodString>;
|
|
19
20
|
}, z.core.$strip>;
|
|
20
21
|
export type ImageEditorModelPricingRuleCondition = z.infer<typeof ImageEditorModelPricingRuleConditionSchema>;
|
|
21
22
|
export declare const ImageEditorModelPricingRulesSchema: z.ZodArray<z.ZodObject<{
|
|
22
23
|
condition: z.ZodObject<{
|
|
23
24
|
withoutSub: z.ZodOptional<z.ZodBoolean>;
|
|
25
|
+
resolution: z.ZodOptional<z.ZodString>;
|
|
24
26
|
}, z.core.$strip>;
|
|
25
27
|
value: z.ZodNumber;
|
|
26
28
|
}, z.core.$strip>>;
|
|
@@ -61,6 +63,7 @@ export declare const ImageEditorModelSchema: z.ZodObject<{
|
|
|
61
63
|
pricingRules: z.ZodArray<z.ZodObject<{
|
|
62
64
|
condition: z.ZodObject<{
|
|
63
65
|
withoutSub: z.ZodOptional<z.ZodBoolean>;
|
|
66
|
+
resolution: z.ZodOptional<z.ZodString>;
|
|
64
67
|
}, z.core.$strip>;
|
|
65
68
|
value: z.ZodNumber;
|
|
66
69
|
}, z.core.$strip>>;
|
|
@@ -27,6 +27,7 @@ exports.ImageEditorModelParamsSchema = zod_1.z.object({
|
|
|
27
27
|
});
|
|
28
28
|
exports.ImageEditorModelPricingRuleConditionSchema = zod_1.z.object({
|
|
29
29
|
withoutSub: zod_1.z.boolean().optional(),
|
|
30
|
+
resolution: zod_1.z.string().optional(),
|
|
30
31
|
});
|
|
31
32
|
exports.ImageEditorModelPricingRulesSchema = zod_1.z.array(zod_1.z.object({
|
|
32
33
|
condition: exports.ImageEditorModelPricingRuleConditionSchema,
|
|
@@ -40,6 +40,7 @@ export declare const ImageGenerationVendorSchema: z.ZodObject<{
|
|
|
40
40
|
condition: z.ZodObject<{
|
|
41
41
|
resolution: z.ZodOptional<z.ZodString>;
|
|
42
42
|
withoutSub: z.ZodOptional<z.ZodBoolean>;
|
|
43
|
+
perAttachedImage: z.ZodOptional<z.ZodBoolean>;
|
|
43
44
|
}, z.core.$strip>;
|
|
44
45
|
value: z.ZodNumber;
|
|
45
46
|
}, z.core.$strip>>;
|
|
@@ -100,6 +101,7 @@ export declare const ImageGenerationConfigSchema: z.ZodObject<{
|
|
|
100
101
|
condition: z.ZodObject<{
|
|
101
102
|
resolution: z.ZodOptional<z.ZodString>;
|
|
102
103
|
withoutSub: z.ZodOptional<z.ZodBoolean>;
|
|
104
|
+
perAttachedImage: z.ZodOptional<z.ZodBoolean>;
|
|
103
105
|
}, z.core.$strip>;
|
|
104
106
|
value: z.ZodNumber;
|
|
105
107
|
}, z.core.$strip>>;
|
|
@@ -14,12 +14,14 @@ export type ImageGenerationModelParams = z.infer<typeof ImageGenerationModelPara
|
|
|
14
14
|
export declare const ImageModelPricingRuleConditionSchema: z.ZodObject<{
|
|
15
15
|
resolution: z.ZodOptional<z.ZodString>;
|
|
16
16
|
withoutSub: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
+
perAttachedImage: z.ZodOptional<z.ZodBoolean>;
|
|
17
18
|
}, z.core.$strip>;
|
|
18
19
|
export type ImageModelPricingRuleCondition = z.infer<typeof ImageModelPricingRuleConditionSchema>;
|
|
19
20
|
export declare const ImageModelPricingRulesSchema: z.ZodArray<z.ZodObject<{
|
|
20
21
|
condition: z.ZodObject<{
|
|
21
22
|
resolution: z.ZodOptional<z.ZodString>;
|
|
22
23
|
withoutSub: z.ZodOptional<z.ZodBoolean>;
|
|
24
|
+
perAttachedImage: z.ZodOptional<z.ZodBoolean>;
|
|
23
25
|
}, z.core.$strip>;
|
|
24
26
|
value: z.ZodNumber;
|
|
25
27
|
}, z.core.$strip>>;
|
|
@@ -51,6 +53,7 @@ export declare const ImageGenerationModelSchema: z.ZodObject<{
|
|
|
51
53
|
condition: z.ZodObject<{
|
|
52
54
|
resolution: z.ZodOptional<z.ZodString>;
|
|
53
55
|
withoutSub: z.ZodOptional<z.ZodBoolean>;
|
|
56
|
+
perAttachedImage: z.ZodOptional<z.ZodBoolean>;
|
|
54
57
|
}, z.core.$strip>;
|
|
55
58
|
value: z.ZodNumber;
|
|
56
59
|
}, z.core.$strip>>;
|
|
@@ -22,6 +22,7 @@ exports.ImageGenerationModelParamsSchema = zod_1.z.object({
|
|
|
22
22
|
exports.ImageModelPricingRuleConditionSchema = zod_1.z.object({
|
|
23
23
|
resolution: zod_1.z.string().optional(),
|
|
24
24
|
withoutSub: zod_1.z.boolean().optional(),
|
|
25
|
+
perAttachedImage: zod_1.z.boolean().optional(),
|
|
25
26
|
});
|
|
26
27
|
exports.ImageModelPricingRulesSchema = zod_1.z.array(zod_1.z.object({
|
|
27
28
|
condition: exports.ImageModelPricingRuleConditionSchema,
|
|
@@ -9,8 +9,6 @@ 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>>;
|
|
14
12
|
}, z.core.$strip>>;
|
|
15
13
|
}, z.core.$strip>;
|
|
16
14
|
export type ImageRecognitionJobParams = z.infer<typeof ImageRecognitionJobParamsSchema>;
|
|
@@ -38,8 +36,6 @@ export declare const ImageRecognitionJobSchema: z.ZodObject<{
|
|
|
38
36
|
type: z.ZodString;
|
|
39
37
|
size: z.ZodNumber;
|
|
40
38
|
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
41
|
-
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
42
|
-
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
43
39
|
}, z.core.$strip>>;
|
|
44
40
|
}, z.core.$strip>;
|
|
45
41
|
completedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
@@ -33,6 +33,5 @@ __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);
|
|
37
36
|
__exportStar(require("./diagrams"), exports);
|
|
38
37
|
__exportStar(require("./sound-generation"), exports);
|
|
@@ -9,8 +9,6 @@ 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>>;
|
|
14
12
|
}, z.core.$strip>>;
|
|
15
13
|
styleId: z.ZodOptional<z.ZodString>;
|
|
16
14
|
roomTypeId: z.ZodOptional<z.ZodString>;
|
|
@@ -41,8 +39,6 @@ export declare const InteriorDesignJobSchema: z.ZodObject<{
|
|
|
41
39
|
type: z.ZodString;
|
|
42
40
|
size: z.ZodNumber;
|
|
43
41
|
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
44
|
-
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
45
|
-
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
46
42
|
}, z.core.$strip>>;
|
|
47
43
|
styleId: z.ZodOptional<z.ZodString>;
|
|
48
44
|
roomTypeId: z.ZodOptional<z.ZodString>;
|
|
@@ -106,6 +106,10 @@ export declare const MusicAnyJobParamsSchema: z.ZodUnion<readonly [z.ZodDiscrimi
|
|
|
106
106
|
mode: z.ZodLiteral<SUNO_MODE_TYPE.CUSTOM_INSTRUMENTAL>;
|
|
107
107
|
style: z.ZodString;
|
|
108
108
|
}, z.core.$strip>], "mode">, z.ZodObject<{
|
|
109
|
+
prompt: z.ZodString;
|
|
110
|
+
style: z.ZodOptional<z.ZodString>;
|
|
111
|
+
structure: z.ZodEnum<typeof MUSIC_LYRICS_STRUCTURE>;
|
|
112
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
109
113
|
audioId: z.ZodString;
|
|
110
114
|
style: z.ZodString;
|
|
111
115
|
prompt: z.ZodOptional<z.ZodString>;
|
|
@@ -150,6 +154,8 @@ export declare const MusicJobSchema: z.ZodObject<{
|
|
|
150
154
|
isFavorite: z.ZodBoolean;
|
|
151
155
|
createdAt: z.ZodDate;
|
|
152
156
|
updatedAt: z.ZodDate;
|
|
157
|
+
actionType: z.ZodUnion<readonly [z.ZodEnum<typeof MUSIC_GENERATION_ACTION_TYPE>, z.ZodEnum<typeof MUSIC_AUDIO_ACTION_TYPE>]>;
|
|
158
|
+
lyrics: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
153
159
|
title: z.ZodString;
|
|
154
160
|
prompt: z.ZodString;
|
|
155
161
|
reaction: z.ZodNullable<z.ZodEnum<typeof USER_REACTION>>;
|
|
@@ -196,6 +202,10 @@ export declare const MusicJobSchema: z.ZodObject<{
|
|
|
196
202
|
mode: z.ZodLiteral<SUNO_MODE_TYPE.CUSTOM_INSTRUMENTAL>;
|
|
197
203
|
style: z.ZodString;
|
|
198
204
|
}, z.core.$strip>], "mode">, z.ZodObject<{
|
|
205
|
+
prompt: z.ZodString;
|
|
206
|
+
style: z.ZodOptional<z.ZodString>;
|
|
207
|
+
structure: z.ZodEnum<typeof MUSIC_LYRICS_STRUCTURE>;
|
|
208
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
199
209
|
audioId: z.ZodString;
|
|
200
210
|
style: z.ZodString;
|
|
201
211
|
prompt: z.ZodOptional<z.ZodString>;
|
|
@@ -82,27 +82,20 @@ exports.MusicEditRequestSchema = zod_1.z
|
|
|
82
82
|
params: zod_1.z.unknown(),
|
|
83
83
|
})
|
|
84
84
|
.superRefine((data, ctx) => {
|
|
85
|
-
|
|
86
|
-
constants_1.MUSIC_AUDIO_ACTION_TYPE.REMOVE_VOCALS,
|
|
87
|
-
constants_1.MUSIC_AUDIO_ACTION_TYPE.EXTRACT_VOCALS,
|
|
88
|
-
].includes(data.actionType);
|
|
89
|
-
if (requiresModel && !data.modelId) {
|
|
85
|
+
if (!data.modelId) {
|
|
90
86
|
ctx.addIssue({
|
|
91
87
|
code: zod_1.z.ZodIssueCode.custom,
|
|
92
88
|
message: 'modelId is required',
|
|
93
89
|
path: ['modelId'],
|
|
94
90
|
});
|
|
95
91
|
}
|
|
96
|
-
const paramsValidation = data.actionType === constants_1.MUSIC_AUDIO_ACTION_TYPE.
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
: data.actionType === constants_1.MUSIC_AUDIO_ACTION_TYPE.ADD_INSTRUMENTAL
|
|
104
|
-
? exports.MusicAddInstrumentalParamsSchema.safeParse(data.params)
|
|
105
|
-
: exports.MusicAddVocalsParamsSchema.safeParse(data.params);
|
|
92
|
+
const paramsValidation = data.actionType === constants_1.MUSIC_AUDIO_ACTION_TYPE.COVER
|
|
93
|
+
? exports.MusicUploadCoverParamsSchema.safeParse(data.params)
|
|
94
|
+
: data.actionType === constants_1.MUSIC_AUDIO_ACTION_TYPE.EXTEND
|
|
95
|
+
? exports.MusicUploadExtendParamsSchema.safeParse(data.params)
|
|
96
|
+
: data.actionType === constants_1.MUSIC_AUDIO_ACTION_TYPE.ADD_INSTRUMENTAL
|
|
97
|
+
? exports.MusicAddInstrumentalParamsSchema.safeParse(data.params)
|
|
98
|
+
: exports.MusicAddVocalsParamsSchema.safeParse(data.params);
|
|
106
99
|
if (!paramsValidation.success) {
|
|
107
100
|
for (const issue of paramsValidation.error.issues) {
|
|
108
101
|
ctx.addIssue(Object.assign(Object.assign({}, issue), { path: ['params', ...issue.path] }));
|
|
@@ -119,6 +112,7 @@ exports.MusicEditActionResultSchema = zod_1.z.object({
|
|
|
119
112
|
});
|
|
120
113
|
exports.MusicAnyJobParamsSchema = zod_1.z.union([
|
|
121
114
|
exports.MusicJobParamsSchema,
|
|
115
|
+
exports.MusicLyricsParamsSchema,
|
|
122
116
|
exports.MusicUploadCoverParamsSchema,
|
|
123
117
|
exports.MusicUploadExtendParamsSchema,
|
|
124
118
|
exports.MusicAddInstrumentalParamsSchema,
|
|
@@ -134,16 +128,18 @@ exports.MusicExecuteRequestSchema = zod_1.z
|
|
|
134
128
|
params: zod_1.z.unknown(),
|
|
135
129
|
})
|
|
136
130
|
.superRefine((data, ctx) => {
|
|
137
|
-
if (!data.modelId) {
|
|
131
|
+
if (data.actionType !== constants_1.MUSIC_GENERATION_ACTION_TYPE.GENERATE_LYRICS && !data.modelId) {
|
|
138
132
|
ctx.addIssue({
|
|
139
133
|
code: zod_1.z.ZodIssueCode.custom,
|
|
140
134
|
message: 'modelId is required',
|
|
141
135
|
path: ['modelId'],
|
|
142
136
|
});
|
|
143
137
|
}
|
|
144
|
-
const paramsValidation = data.actionType === constants_1.MUSIC_GENERATION_ACTION_TYPE.
|
|
145
|
-
? exports.
|
|
146
|
-
:
|
|
138
|
+
const paramsValidation = data.actionType === constants_1.MUSIC_GENERATION_ACTION_TYPE.GENERATE_LYRICS
|
|
139
|
+
? exports.MusicLyricsParamsSchema.safeParse(data.params)
|
|
140
|
+
: data.actionType === constants_1.MUSIC_GENERATION_ACTION_TYPE.BACKGROUND
|
|
141
|
+
? exports.MusicBackgroundParamsSchema.safeParse(data.params)
|
|
142
|
+
: exports.MusicJobParamsSchema.safeParse(data.params);
|
|
147
143
|
if (!paramsValidation.success) {
|
|
148
144
|
for (const issue of paramsValidation.error.issues) {
|
|
149
145
|
ctx.addIssue(Object.assign(Object.assign({}, issue), { path: ['params', ...issue.path] }));
|
|
@@ -151,6 +147,11 @@ exports.MusicExecuteRequestSchema = zod_1.z
|
|
|
151
147
|
}
|
|
152
148
|
});
|
|
153
149
|
exports.MusicJobSchema = tool_job_schema_1.ToolJobSchema.extend({
|
|
150
|
+
actionType: zod_1.z.union([
|
|
151
|
+
zod_1.z.nativeEnum(constants_1.MUSIC_GENERATION_ACTION_TYPE),
|
|
152
|
+
zod_1.z.nativeEnum(constants_1.MUSIC_AUDIO_ACTION_TYPE),
|
|
153
|
+
]),
|
|
154
|
+
lyrics: zod_1.z.string().nullable().optional(),
|
|
154
155
|
title: zod_1.z.string(),
|
|
155
156
|
prompt: zod_1.z.string(),
|
|
156
157
|
reaction: zod_1.z.nativeEnum(constants_1.USER_REACTION).nullable(),
|