@purpleschool/gptbot 0.15.62-stage2 → 0.15.63
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/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/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/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/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/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>;
|
|
@@ -10,8 +10,6 @@ export declare const SolvingEduTaskJobParamsSchema: z.ZodObject<{
|
|
|
10
10
|
type: z.ZodString;
|
|
11
11
|
size: z.ZodNumber;
|
|
12
12
|
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
13
|
-
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
14
|
-
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
15
13
|
}, z.core.$strip>>;
|
|
16
14
|
}, z.core.$strip>;
|
|
17
15
|
export type SolvingEduTaskJobParams = z.infer<typeof SolvingEduTaskJobParamsSchema>;
|
|
@@ -33,8 +31,6 @@ export declare const SolvingEduTaskJobSchema: z.ZodObject<{
|
|
|
33
31
|
type: z.ZodString;
|
|
34
32
|
size: z.ZodNumber;
|
|
35
33
|
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
36
|
-
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
37
|
-
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
38
34
|
}, z.core.$strip>>;
|
|
39
35
|
}, z.core.$strip>;
|
|
40
36
|
error: z.ZodNullable<z.ZodString>;
|
|
@@ -17,6 +17,3 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./tts-config.schema"), exports);
|
|
18
18
|
__exportStar(require("./tts-job.schema"), exports);
|
|
19
19
|
__exportStar(require("./tts-model.schema"), exports);
|
|
20
|
-
__exportStar(require("./voice.schema"), exports);
|
|
21
|
-
__exportStar(require("./voice-design-draft.schema"), exports);
|
|
22
|
-
__exportStar(require("./voice-design-sample.schema"), exports);
|
|
@@ -1,16 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { VOICE_CATEGORY, VOICE_TAG, VOICE_TAG_GROUP } from '../../../constants';
|
|
3
|
-
export declare const TTSVoiceTagSchema: z.ZodObject<{
|
|
4
|
-
id: z.ZodEnum<typeof VOICE_TAG>;
|
|
5
|
-
group: z.ZodEnum<typeof VOICE_TAG_GROUP>;
|
|
6
|
-
label: z.ZodString;
|
|
7
|
-
}, z.core.$strip>;
|
|
8
|
-
export type TTSVoiceTag = z.infer<typeof TTSVoiceTagSchema>;
|
|
9
|
-
export declare const TTSVoiceCategorySchema: z.ZodObject<{
|
|
10
|
-
id: z.ZodEnum<typeof VOICE_CATEGORY>;
|
|
11
|
-
label: z.ZodString;
|
|
12
|
-
}, z.core.$strip>;
|
|
13
|
-
export type TTSVoiceCategory = z.infer<typeof TTSVoiceCategorySchema>;
|
|
14
2
|
export declare const TTSConfigSchema: z.ZodObject<{
|
|
15
3
|
models: z.ZodArray<z.ZodObject<{
|
|
16
4
|
uuid: z.ZodString;
|
|
@@ -29,7 +17,6 @@ export declare const TTSConfigSchema: z.ZodObject<{
|
|
|
29
17
|
}, z.core.$strip>;
|
|
30
18
|
}, z.core.$strip>;
|
|
31
19
|
maxInputLength: z.ZodNumber;
|
|
32
|
-
maxSpeakers: z.ZodNumber;
|
|
33
20
|
params: z.ZodObject<{
|
|
34
21
|
speed: z.ZodOptional<z.ZodObject<{
|
|
35
22
|
title: z.ZodString;
|
|
@@ -133,14 +120,4 @@ export declare const TTSConfigSchema: z.ZodObject<{
|
|
|
133
120
|
canUse: z.ZodBoolean;
|
|
134
121
|
status: z.ZodString;
|
|
135
122
|
}, z.core.$strip>>;
|
|
136
|
-
tags: z.ZodArray<z.ZodObject<{
|
|
137
|
-
id: z.ZodEnum<typeof VOICE_TAG>;
|
|
138
|
-
group: z.ZodEnum<typeof VOICE_TAG_GROUP>;
|
|
139
|
-
label: z.ZodString;
|
|
140
|
-
}, z.core.$strip>>;
|
|
141
|
-
categories: z.ZodArray<z.ZodObject<{
|
|
142
|
-
id: z.ZodEnum<typeof VOICE_CATEGORY>;
|
|
143
|
-
label: z.ZodString;
|
|
144
|
-
}, z.core.$strip>>;
|
|
145
|
-
speakerMarkerLabel: z.ZodString;
|
|
146
123
|
}, z.core.$strip>;
|
|
@@ -1,21 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TTSConfigSchema =
|
|
3
|
+
exports.TTSConfigSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const constants_1 = require("../../../constants");
|
|
6
5
|
const tts_model_schema_1 = require("./tts-model.schema");
|
|
7
|
-
exports.TTSVoiceTagSchema = zod_1.z.object({
|
|
8
|
-
id: zod_1.z.nativeEnum(constants_1.VOICE_TAG),
|
|
9
|
-
group: zod_1.z.nativeEnum(constants_1.VOICE_TAG_GROUP),
|
|
10
|
-
label: zod_1.z.string(),
|
|
11
|
-
});
|
|
12
|
-
exports.TTSVoiceCategorySchema = zod_1.z.object({
|
|
13
|
-
id: zod_1.z.nativeEnum(constants_1.VOICE_CATEGORY),
|
|
14
|
-
label: zod_1.z.string(),
|
|
15
|
-
});
|
|
16
6
|
exports.TTSConfigSchema = zod_1.z.object({
|
|
17
7
|
models: zod_1.z.array(tts_model_schema_1.TTSModelSchema),
|
|
18
|
-
tags: zod_1.z.array(exports.TTSVoiceTagSchema),
|
|
19
|
-
categories: zod_1.z.array(exports.TTSVoiceCategorySchema),
|
|
20
|
-
speakerMarkerLabel: zod_1.z.string(),
|
|
21
8
|
});
|
|
@@ -7,19 +7,6 @@ export declare const TTSJobParamsSchema: z.ZodObject<{
|
|
|
7
7
|
style: z.ZodOptional<z.ZodNumber>;
|
|
8
8
|
}, z.core.$strip>;
|
|
9
9
|
export type TTSJobParams = z.infer<typeof TTSJobParamsSchema>;
|
|
10
|
-
export declare const TTSJobSpeakerSchema: z.ZodObject<{
|
|
11
|
-
speaker: z.ZodNumber;
|
|
12
|
-
voiceId: z.ZodString;
|
|
13
|
-
}, z.core.$strip>;
|
|
14
|
-
export type TTSJobSpeaker = z.infer<typeof TTSJobSpeakerSchema>;
|
|
15
|
-
export declare const TTSJobVoiceSchema: z.ZodObject<{
|
|
16
|
-
uuid: z.ZodString;
|
|
17
|
-
title: z.ZodString;
|
|
18
|
-
previewUrl: z.ZodString;
|
|
19
|
-
isDeleted: z.ZodBoolean;
|
|
20
|
-
speaker: z.ZodNullable<z.ZodNumber>;
|
|
21
|
-
}, z.core.$strip>;
|
|
22
|
-
export type TTSJobVoice = z.infer<typeof TTSJobVoiceSchema>;
|
|
23
10
|
export declare const TTSJobSchema: z.ZodObject<{
|
|
24
11
|
uuid: z.ZodString;
|
|
25
12
|
status: z.ZodEnum<typeof import("../../..").TOOL_JOB_STATUS>;
|
|
@@ -39,18 +26,6 @@ export declare const TTSJobSchema: z.ZodObject<{
|
|
|
39
26
|
style: z.ZodOptional<z.ZodNumber>;
|
|
40
27
|
}, z.core.$strip>;
|
|
41
28
|
modelId: z.ZodString;
|
|
42
|
-
voiceId: z.
|
|
43
|
-
isDialog: z.ZodBoolean;
|
|
44
|
-
speakers: z.ZodArray<z.ZodObject<{
|
|
45
|
-
speaker: z.ZodNumber;
|
|
46
|
-
voiceId: z.ZodString;
|
|
47
|
-
}, z.core.$strip>>;
|
|
48
|
-
voices: z.ZodArray<z.ZodObject<{
|
|
49
|
-
uuid: z.ZodString;
|
|
50
|
-
title: z.ZodString;
|
|
51
|
-
previewUrl: z.ZodString;
|
|
52
|
-
isDeleted: z.ZodBoolean;
|
|
53
|
-
speaker: z.ZodNullable<z.ZodNumber>;
|
|
54
|
-
}, z.core.$strip>>;
|
|
29
|
+
voiceId: z.ZodString;
|
|
55
30
|
}, z.core.$strip>;
|
|
56
31
|
export type TTSJob = z.infer<typeof TTSJobSchema>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TTSJobSchema = exports.
|
|
3
|
+
exports.TTSJobSchema = exports.TTSJobParamsSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const tool_job_schema_1 = require("../../tool-job.schema");
|
|
6
6
|
const constants_1 = require("../../../constants");
|
|
@@ -10,17 +10,6 @@ exports.TTSJobParamsSchema = zod_1.z.object({
|
|
|
10
10
|
stability: zod_1.z.number().optional(),
|
|
11
11
|
style: zod_1.z.number().optional(),
|
|
12
12
|
});
|
|
13
|
-
exports.TTSJobSpeakerSchema = zod_1.z.object({
|
|
14
|
-
speaker: zod_1.z.number(),
|
|
15
|
-
voiceId: zod_1.z.string(),
|
|
16
|
-
});
|
|
17
|
-
exports.TTSJobVoiceSchema = zod_1.z.object({
|
|
18
|
-
uuid: zod_1.z.string(),
|
|
19
|
-
title: zod_1.z.string(),
|
|
20
|
-
previewUrl: zod_1.z.string(),
|
|
21
|
-
isDeleted: zod_1.z.boolean(),
|
|
22
|
-
speaker: zod_1.z.number().nullable(),
|
|
23
|
-
});
|
|
24
13
|
exports.TTSJobSchema = tool_job_schema_1.ToolJobSchema.extend({
|
|
25
14
|
userInput: zod_1.z.string(),
|
|
26
15
|
title: zod_1.z.string(),
|
|
@@ -29,8 +18,5 @@ exports.TTSJobSchema = tool_job_schema_1.ToolJobSchema.extend({
|
|
|
29
18
|
duration: zod_1.z.string(),
|
|
30
19
|
params: exports.TTSJobParamsSchema,
|
|
31
20
|
modelId: zod_1.z.string(),
|
|
32
|
-
voiceId: zod_1.z.string()
|
|
33
|
-
isDialog: zod_1.z.boolean(),
|
|
34
|
-
speakers: zod_1.z.array(exports.TTSJobSpeakerSchema),
|
|
35
|
-
voices: zod_1.z.array(exports.TTSJobVoiceSchema),
|
|
21
|
+
voiceId: zod_1.z.string(),
|
|
36
22
|
});
|
|
@@ -45,7 +45,6 @@ exports.TTSModelSchema = zod_1.z.object({
|
|
|
45
45
|
order: zod_1.z.number(),
|
|
46
46
|
icons: icon_variants_schema_1.IconVariantsSchema,
|
|
47
47
|
maxInputLength: zod_1.z.number(),
|
|
48
|
-
maxSpeakers: zod_1.z.number(),
|
|
49
48
|
params: exports.TTSModelParams,
|
|
50
49
|
voices: zod_1.z.array(exports.TTSVoiceSchema),
|
|
51
50
|
unlockedBy: unlocked_by_subscription_schema_1.UnlockedBySchema.nullable(),
|