@purpleschool/gptbot 0.13.23 → 0.14.2-stage-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/controllers/http/agents/agent-dialog.ts +1 -9
- package/api/controllers/http/agents/agent-lead-form.ts +0 -2
- package/api/controllers/http/agents/agent-lead.ts +0 -1
- package/api/controllers/http/agents/agent-template.ts +0 -4
- package/api/controllers/http/agents/agent-tool.ts +1 -2
- package/api/controllers/http/agents/agent.ts +3 -0
- package/api/controllers/http/agents/index.ts +0 -1
- package/api/controllers/http/b2b-compatible.ts +14 -0
- package/api/controllers/http/b2b-usage-log.ts +5 -0
- package/api/controllers/http/diagrams.ts +0 -1
- package/api/controllers/http/html-page-builder.ts +0 -1
- package/api/controllers/http/image-editor.ts +0 -1
- package/api/controllers/http/image-generation.ts +0 -1
- package/api/controllers/http/index.ts +3 -2
- package/api/controllers/http/interior-design.ts +0 -1
- package/api/controllers/http/marketplace-card.ts +0 -1
- package/api/controllers/http/model-page.ts +39 -0
- package/api/controllers/http/music.ts +0 -1
- package/api/controllers/http/paraphrase.ts +0 -1
- package/api/controllers/http/presentation.ts +0 -1
- package/api/controllers/http/solving-edu-task.ts +0 -1
- package/api/controllers/http/spell-corrector.ts +0 -1
- package/api/controllers/http/stt.ts +0 -1
- package/api/controllers/http/tts.ts +0 -1
- package/api/controllers/http/video-editor.ts +0 -1
- package/api/controllers/http/video.ts +0 -1
- package/api/controllers/http/writer.ts +0 -1
- package/api/routes.ts +72 -127
- package/build/api/controllers/http/agents/agent-dialog.js +1 -7
- package/build/api/controllers/http/agents/agent-lead-form.js +0 -2
- package/build/api/controllers/http/agents/agent-lead.js +0 -1
- package/build/api/controllers/http/agents/agent-template.js +0 -4
- package/build/api/controllers/http/agents/agent-tool.js +1 -2
- package/build/api/controllers/http/agents/agent.js +2 -0
- package/build/api/controllers/http/agents/index.js +0 -1
- package/build/api/controllers/http/b2b-compatible.js +15 -0
- package/build/api/controllers/http/b2b-usage-log.js +7 -0
- package/build/api/controllers/http/diagrams.js +0 -1
- package/build/api/controllers/http/html-page-builder.js +0 -1
- package/build/api/controllers/http/image-editor.js +0 -1
- package/build/api/controllers/http/image-generation.js +0 -1
- package/build/api/controllers/http/index.js +3 -2
- package/build/api/controllers/http/interior-design.js +0 -1
- package/build/api/controllers/http/marketplace-card.js +0 -1
- package/build/api/controllers/http/model-page.js +34 -0
- package/build/api/controllers/http/music.js +0 -1
- package/build/api/controllers/http/paraphrase.js +0 -1
- package/build/api/controllers/http/presentation.js +0 -1
- package/build/api/controllers/http/solving-edu-task.js +0 -1
- package/build/api/controllers/http/spell-corrector.js +0 -1
- package/build/api/controllers/http/stt.js +0 -1
- package/build/api/controllers/http/tts.js +0 -1
- package/build/api/controllers/http/video-editor.js +0 -1
- package/build/api/controllers/http/video.js +0 -1
- package/build/api/controllers/http/writer.js +0 -1
- package/build/api/routes.js +49 -69
- package/build/commands/agents/agent-dialog/clear-agent-dialog-history.command.js +14 -0
- package/build/commands/agents/agent-dialog/find-agent-dialogs.command.js +0 -1
- package/build/commands/agents/agent-dialog/index.js +1 -6
- package/build/commands/agents/agent-dialog/send-cabinet-message.command.js +11 -4
- package/build/commands/agents/agent-lead/find-agent-leads.command.js +4 -2
- package/build/commands/agents/agent-template/index.js +0 -1
- package/build/commands/agents/agent-tool/find-agent-tools-catalog.command.js +0 -2
- package/build/commands/agents/agent-tool/find-agent-tools.command.js +0 -2
- package/build/commands/agents/agents/index.js +0 -1
- package/build/commands/ai-studio/canvas-tool/index.js +0 -1
- package/build/commands/b2b/send-text-request.command.js +8 -1
- package/build/commands/b2b-compatible/anthropic-files.command.js +21 -0
- package/build/commands/b2b-compatible/anthropic-messages.command.js +217 -0
- package/build/commands/b2b-compatible/anthropic-models.command.js +26 -0
- package/build/commands/b2b-compatible/common.schemas.js +46 -0
- package/build/commands/b2b-compatible/index.js +23 -0
- package/build/commands/b2b-compatible/openai-files.command.js +26 -0
- package/build/commands/b2b-compatible/openai-models.command.js +24 -0
- package/build/commands/b2b-compatible/openai-responses.command.js +171 -0
- package/build/commands/b2b-usage-log/get-b2b-usage-statistics.command.js +111 -0
- package/build/{constants/photo-studio/enums → commands/b2b-usage-log}/index.js +1 -1
- package/build/commands/index.js +3 -1
- package/build/commands/model-page/base/create-model-page.command.js +13 -0
- package/build/commands/model-page/base/delete-model-page.command.js +9 -0
- package/build/commands/model-page/base/find-model-page-admin.command.js +13 -0
- package/build/commands/model-page/base/find-model-pages-admin.command.js +22 -0
- package/build/commands/model-page/base/index.js +21 -0
- package/build/commands/model-page/base/update-model-page.command.js +63 -0
- package/build/commands/model-page/common.schemas.js +62 -0
- package/build/{models/photo-studio → commands/model-page}/index.js +5 -4
- package/build/commands/model-page/public/find-model-page-answer-detail.command.js +14 -0
- package/build/commands/model-page/public/find-model-page-detail.command.js +12 -0
- package/build/commands/model-page/public/find-model-page-hub.command.js +19 -0
- package/build/commands/model-page/public/find-model-page-question-type.command.js +13 -0
- package/build/commands/model-page/public/index.js +20 -0
- package/build/commands/model-page/question/create-model-page-question.command.js +16 -0
- package/build/commands/model-page/question/delete-model-page-question.command.js +9 -0
- package/build/commands/model-page/question/find-model-page-question-admin.command.js +13 -0
- package/build/commands/model-page/question/find-model-page-questions-admin.command.js +21 -0
- package/build/commands/model-page/question/index.js +21 -0
- package/build/commands/model-page/question/update-model-page-question.command.js +18 -0
- package/build/commands/model-page/question-translation/create-model-page-question-translation.command.js +17 -0
- package/build/commands/model-page/question-translation/delete-model-page-question-translation.command.js +9 -0
- package/build/commands/model-page/question-translation/find-model-page-question-translation.command.js +13 -0
- package/build/commands/model-page/question-translation/find-model-page-question-translations.command.js +13 -0
- package/build/commands/model-page/question-translation/index.js +21 -0
- package/build/commands/model-page/question-translation/update-model-page-question-translation.command.js +16 -0
- package/build/commands/model-page/translation/create-model-page-translation.command.js +18 -0
- package/build/commands/model-page/translation/delete-model-page-translation.command.js +9 -0
- package/build/commands/model-page/translation/find-model-page-translation.command.js +13 -0
- package/build/commands/model-page/translation/find-model-page-translations.command.js +13 -0
- package/build/commands/model-page/translation/index.js +21 -0
- package/build/commands/model-page/translation/update-model-page-translation.command.js +17 -0
- package/build/commands/question/create-question.command.js +15 -4
- package/build/commands/question/update-question.command.js +12 -7
- package/build/commands/tools/diagrams/find-diagrams-jobs.command.js +0 -5
- package/build/commands/tools/diagrams/index.js +0 -1
- package/build/commands/tools/html-page-builder/find-html-page-builder-sessions.command.js +0 -5
- package/build/commands/tools/html-page-builder/index.js +0 -1
- package/build/commands/tools/image-editor/find-image-editor-jobs.command.js +0 -5
- package/build/commands/tools/image-editor/index.js +0 -1
- package/build/commands/tools/image-generation/find-image-generation-jobs.command.js +0 -5
- package/build/commands/tools/image-generation/index.js +0 -1
- package/build/commands/tools/interior-design/find-interior-design-jobs.command.js +0 -5
- package/build/commands/tools/interior-design/index.js +0 -1
- package/build/commands/tools/marketplace-card/find-marketplace-card-jobs.command.js +0 -5
- package/build/commands/tools/marketplace-card/index.js +0 -1
- package/build/commands/tools/music/find-music-jobs.command.js +0 -5
- package/build/commands/tools/music/index.js +0 -1
- package/build/commands/tools/paraphrase/find-paraphrase-jobs.command.js +0 -5
- package/build/commands/tools/paraphrase/index.js +0 -1
- package/build/commands/tools/presentation/find-presentations.command.js +0 -5
- package/build/commands/tools/presentation/index.js +0 -1
- package/build/commands/tools/solving-edu-task/find-solving-edu-task-jobs.command.js +0 -5
- package/build/commands/tools/solving-edu-task/index.js +0 -1
- package/build/commands/tools/spell-corrector/find-spell-corrector-jobs.command.js +0 -5
- package/build/commands/tools/spell-corrector/index.js +0 -1
- package/build/commands/tools/stt/find-stt-jobs.command.js +0 -5
- package/build/commands/tools/stt/index.js +0 -1
- package/build/commands/tools/tts/find-tts-jobs.command.js +0 -5
- package/build/commands/tools/tts/index.js +0 -1
- package/build/commands/tools/video/find-video-jobs.command.js +0 -5
- package/build/commands/tools/video/index.js +0 -1
- package/build/commands/tools/video-editor/find-video-editor-jobs.command.js +0 -5
- package/build/commands/tools/video-editor/index.js +0 -1
- package/build/commands/tools/writer/find-writer-documents.command.js +0 -5
- package/build/commands/tools/writer/index.js +0 -1
- package/build/constants/b2b/enums/b2b-debit-status.enum.js +9 -0
- package/build/constants/b2b/enums/b2b-endpoint-family.enum.js +9 -0
- package/build/constants/b2b/enums/b2b-statistics-granularity.enum.js +8 -0
- package/build/constants/b2b/enums/b2b-statistics-period.enum.js +13 -0
- package/build/constants/b2b/enums/b2b-usage-operation.enum.js +8 -0
- package/build/constants/b2b/enums/b2b-usage-spend-component.enum.js +12 -0
- package/build/constants/b2b/enums/b2b-usage-status.enum.js +8 -0
- package/build/constants/b2b/enums/index.js +23 -0
- package/build/constants/cabinet/enums/statistics-request-type.enum.js +0 -1
- package/build/constants/index.js +2 -1
- package/build/{commands/ai-studio/canvas-tool/var-gen → constants/model-page/enums}/index.js +3 -3
- package/build/constants/model-page/enums/model-page-question-type.enum.js +13 -0
- package/build/constants/model-page/enums/model-page-sort-by.enum.js +8 -0
- package/build/constants/model-page/enums/model-page-type.enum.js +12 -0
- package/build/constants/model-page/index.js +17 -0
- package/build/constants/tool/enums/index.js +0 -1
- package/build/helpers/index.js +0 -1
- package/build/models/agents/index.js +0 -2
- package/build/models/b2b/b2b-usage-statistics.schema.js +69 -0
- package/build/models/b2b/index.js +1 -0
- package/build/models/canvas-node.schema.js +2 -2
- package/build/models/file.schema.js +1 -7
- package/build/models/index.js +1 -1
- package/build/models/model-page/index.js +22 -0
- package/build/models/model-page/model-page-public.schema.js +63 -0
- package/build/models/model-page/model-page-question-translation.schema.js +13 -0
- package/build/models/model-page/model-page-question.schema.js +13 -0
- package/build/models/model-page/model-page-technical-model.schema.js +80 -0
- package/build/models/model-page/model-page-translation.schema.js +14 -0
- package/build/models/model-page/model-page.schema.js +15 -0
- package/build/models/question.schema.js +2 -1
- package/build/models/tool-job.schema.js +0 -1
- package/build/models/tools/diagrams/diagrams-job.schema.js +0 -1
- package/build/models/tools/html-page-builder/html-page-builder-session.schema.js +0 -1
- package/build/models/tools/image-generation/image-generation-job.schema.js +0 -3
- package/build/models/tools/presentation/presentation.schema.js +0 -1
- package/build/models/tools/solving-edu-task/solving-edu-task-job.schema.js +0 -1
- package/build/models/tools/video/video-model.schema.js +0 -1
- package/build/models/tools/writer/writer-document.schema.js +0 -1
- package/commands/agents/agent-dialog/{delete-dialog.command.ts → clear-agent-dialog-history.command.ts} +5 -5
- package/commands/agents/agent-dialog/find-agent-dialogs.command.ts +0 -1
- package/commands/agents/agent-dialog/index.ts +1 -6
- package/commands/agents/agent-dialog/send-cabinet-message.command.ts +18 -17
- package/commands/agents/agent-lead/find-agent-leads.command.ts +4 -2
- package/commands/agents/agent-template/index.ts +0 -1
- package/commands/agents/agent-tool/find-agent-tools-catalog.command.ts +0 -2
- package/commands/agents/agent-tool/find-agent-tools.command.ts +0 -2
- package/commands/agents/agents/index.ts +0 -1
- package/commands/ai-studio/canvas-tool/index.ts +0 -1
- package/commands/b2b/send-text-request.command.ts +10 -1
- package/commands/b2b-compatible/anthropic-files.command.ts +29 -0
- package/commands/b2b-compatible/anthropic-messages.command.ts +244 -0
- package/commands/b2b-compatible/anthropic-models.command.ts +31 -0
- package/commands/b2b-compatible/common.schemas.ts +55 -0
- package/commands/b2b-compatible/index.ts +7 -0
- package/commands/b2b-compatible/openai-files.command.ts +37 -0
- package/commands/b2b-compatible/openai-models.command.ts +29 -0
- package/commands/b2b-compatible/openai-responses.command.ts +191 -0
- package/commands/b2b-usage-log/get-b2b-usage-statistics.command.ts +128 -0
- package/commands/b2b-usage-log/index.ts +1 -0
- package/commands/index.ts +3 -1
- package/commands/model-page/base/create-model-page.command.ts +15 -0
- package/commands/model-page/base/delete-model-page.command.ts +10 -0
- package/commands/model-page/base/find-model-page-admin.command.ts +14 -0
- package/commands/model-page/base/find-model-pages-admin.command.ts +24 -0
- package/commands/model-page/base/index.ts +5 -0
- package/commands/model-page/base/update-model-page.command.ts +69 -0
- package/commands/model-page/common.schemas.ts +64 -0
- package/commands/model-page/index.ts +5 -0
- package/commands/model-page/public/find-model-page-answer-detail.command.ts +15 -0
- package/commands/model-page/public/find-model-page-detail.command.ts +13 -0
- package/commands/model-page/public/find-model-page-hub.command.ts +20 -0
- package/commands/model-page/public/find-model-page-question-type.command.ts +14 -0
- package/commands/model-page/public/index.ts +4 -0
- package/commands/model-page/question/create-model-page-question.command.ts +18 -0
- package/commands/model-page/question/delete-model-page-question.command.ts +10 -0
- package/commands/model-page/question/find-model-page-question-admin.command.ts +14 -0
- package/commands/model-page/question/find-model-page-questions-admin.command.ts +23 -0
- package/commands/model-page/question/index.ts +5 -0
- package/commands/model-page/question/update-model-page-question.command.ts +22 -0
- package/commands/model-page/question-translation/create-model-page-question-translation.command.ts +21 -0
- package/commands/model-page/question-translation/delete-model-page-question-translation.command.ts +10 -0
- package/commands/model-page/question-translation/find-model-page-question-translation.command.ts +14 -0
- package/commands/model-page/question-translation/find-model-page-question-translations.command.ts +14 -0
- package/commands/model-page/question-translation/index.ts +5 -0
- package/commands/model-page/question-translation/update-model-page-question-translation.command.ts +20 -0
- package/commands/model-page/translation/create-model-page-translation.command.ts +22 -0
- package/commands/model-page/translation/delete-model-page-translation.command.ts +10 -0
- package/commands/model-page/translation/find-model-page-translation.command.ts +14 -0
- package/commands/model-page/translation/find-model-page-translations.command.ts +14 -0
- package/commands/model-page/translation/index.ts +5 -0
- package/commands/model-page/translation/update-model-page-translation.command.ts +21 -0
- package/commands/question/create-question.command.ts +17 -3
- package/commands/question/update-question.command.ts +14 -7
- package/commands/tools/diagrams/find-diagrams-jobs.command.ts +0 -5
- package/commands/tools/diagrams/index.ts +0 -1
- package/commands/tools/html-page-builder/find-html-page-builder-sessions.command.ts +0 -5
- package/commands/tools/html-page-builder/index.ts +0 -1
- package/commands/tools/image-editor/find-image-editor-jobs.command.ts +0 -5
- package/commands/tools/image-editor/index.ts +0 -1
- package/commands/tools/image-generation/find-image-generation-jobs.command.ts +0 -5
- package/commands/tools/image-generation/index.ts +0 -1
- package/commands/tools/interior-design/find-interior-design-jobs.command.ts +0 -5
- package/commands/tools/interior-design/index.ts +0 -1
- package/commands/tools/marketplace-card/find-marketplace-card-jobs.command.ts +0 -5
- package/commands/tools/marketplace-card/index.ts +0 -1
- package/commands/tools/music/find-music-jobs.command.ts +0 -5
- package/commands/tools/music/index.ts +0 -1
- package/commands/tools/paraphrase/find-paraphrase-jobs.command.ts +0 -5
- package/commands/tools/paraphrase/index.ts +0 -1
- package/commands/tools/presentation/find-presentations.command.ts +0 -5
- package/commands/tools/presentation/index.ts +0 -1
- package/commands/tools/solving-edu-task/find-solving-edu-task-jobs.command.ts +0 -5
- package/commands/tools/solving-edu-task/index.ts +0 -1
- package/commands/tools/spell-corrector/find-spell-corrector-jobs.command.ts +0 -5
- package/commands/tools/spell-corrector/index.ts +0 -1
- package/commands/tools/stt/find-stt-jobs.command.ts +0 -5
- package/commands/tools/stt/index.ts +0 -1
- package/commands/tools/tts/find-tts-jobs.command.ts +0 -5
- package/commands/tools/tts/index.ts +0 -1
- package/commands/tools/video/find-video-jobs.command.ts +0 -5
- package/commands/tools/video/index.ts +0 -1
- package/commands/tools/video-editor/find-video-editor-jobs.command.ts +0 -5
- package/commands/tools/video-editor/index.ts +0 -1
- package/commands/tools/writer/find-writer-documents.command.ts +0 -5
- package/commands/tools/writer/index.ts +0 -1
- package/constants/b2b/enums/b2b-debit-status.enum.ts +5 -0
- package/constants/b2b/enums/b2b-endpoint-family.enum.ts +5 -0
- package/constants/b2b/enums/b2b-statistics-granularity.enum.ts +4 -0
- package/constants/b2b/enums/b2b-statistics-period.enum.ts +9 -0
- package/constants/b2b/enums/b2b-usage-operation.enum.ts +4 -0
- package/constants/b2b/enums/b2b-usage-spend-component.enum.ts +8 -0
- package/constants/b2b/enums/b2b-usage-status.enum.ts +4 -0
- package/constants/b2b/enums/index.ts +7 -0
- package/constants/cabinet/enums/statistics-request-type.enum.ts +0 -1
- package/constants/index.ts +2 -1
- package/constants/model-page/enums/index.ts +3 -0
- package/constants/model-page/enums/model-page-question-type.enum.ts +9 -0
- package/constants/model-page/enums/model-page-sort-by.enum.ts +4 -0
- package/constants/model-page/enums/model-page-type.enum.ts +8 -0
- package/constants/model-page/index.ts +1 -0
- package/constants/tool/enums/index.ts +0 -1
- package/helpers/index.ts +0 -1
- package/models/agents/index.ts +0 -2
- package/models/b2b/b2b-usage-statistics.schema.ts +81 -0
- package/models/b2b/index.ts +1 -0
- package/models/canvas-node.schema.ts +2 -2
- package/models/file.schema.ts +0 -8
- package/models/index.ts +1 -1
- package/models/model-page/index.ts +6 -0
- package/models/model-page/model-page-public.schema.ts +94 -0
- package/models/model-page/model-page-question-translation.schema.ts +13 -0
- package/models/model-page/model-page-question.schema.ts +13 -0
- package/models/model-page/model-page-technical-model.schema.ts +109 -0
- package/models/model-page/model-page-translation.schema.ts +14 -0
- package/models/model-page/model-page.schema.ts +15 -0
- package/models/question.schema.ts +2 -1
- package/models/tool-job.schema.ts +0 -1
- package/models/tools/diagrams/diagrams-job.schema.ts +0 -1
- package/models/tools/html-page-builder/html-page-builder-session.schema.ts +0 -1
- package/models/tools/image-generation/image-generation-job.schema.ts +0 -3
- package/models/tools/presentation/presentation.schema.ts +0 -1
- package/models/tools/solving-edu-task/solving-edu-task-job.schema.ts +0 -1
- package/models/tools/video/video-model.schema.ts +0 -1
- package/models/tools/writer/writer-document.schema.ts +0 -1
- package/package.json +1 -1
- package/api/controllers/http/agents/agent-statistics.ts +0 -5
- package/api/controllers/http/canvas-var-generation.ts +0 -7
- package/api/controllers/http/photo-studio.ts +0 -21
- package/build/api/controllers/http/agents/agent-statistics.js +0 -7
- package/build/api/controllers/http/canvas-var-generation.js +0 -9
- package/build/api/controllers/http/photo-studio.js +0 -21
- package/build/commands/agents/agent-dialog/delete-dialog.command.js +0 -16
- package/build/commands/agents/agent-dialog/get-cabinet-config.command.js +0 -12
- package/build/commands/agents/agent-dialog/get-cabinet-price-preview.command.js +0 -24
- package/build/commands/agents/agent-dialog/get-dialog-context-length.command.js +0 -32
- package/build/commands/agents/agent-dialog/rename-agent-dialog.command.js +0 -17
- package/build/commands/agents/agent-dialog/stop-cabinet-stream.command.js +0 -15
- package/build/commands/agents/agent-template/get-agent-template-instructions-by-template.command.js +0 -14
- package/build/commands/agents/agents/get-agent-statistics.command.js +0 -20
- package/build/commands/ai-studio/canvas-tool/var-gen/generate-variables.command.js +0 -18
- package/build/commands/ai-studio/canvas-tool/var-gen/get-var-gen-config.command.js +0 -11
- package/build/commands/ai-studio/canvas-tool/var-gen/get-var-gen-price.command.js +0 -18
- package/build/commands/photo-studio/add-photo-studio-checkpoint.command.js +0 -17
- package/build/commands/photo-studio/clear-photo-studio-checkpoints.command.js +0 -12
- package/build/commands/photo-studio/create-photo-studio-canvas.command.js +0 -15
- package/build/commands/photo-studio/delete-photo-studio-canvas.command.js +0 -11
- package/build/commands/photo-studio/delete-photo-studio-checkpoint.command.js +0 -14
- package/build/commands/photo-studio/execute-photo-studio-action.command.js +0 -47
- package/build/commands/photo-studio/find-photo-studio-canvas-by-uuid.query.js +0 -12
- package/build/commands/photo-studio/find-photo-studio-canvases.query.js +0 -18
- package/build/commands/photo-studio/find-photo-studio-checkpoints.query.js +0 -12
- package/build/commands/photo-studio/find-photo-studio-job-by-id.query.js +0 -32
- package/build/commands/photo-studio/find-photo-studio-jobs.query.js +0 -18
- package/build/commands/photo-studio/get-photo-studio-actions.query.js +0 -11
- package/build/commands/photo-studio/index.js +0 -31
- package/build/commands/photo-studio/save-photo-studio-canvas.command.js +0 -18
- package/build/commands/photo-studio/update-photo-studio-canvas.command.js +0 -15
- package/build/commands/photo-studio/update-photo-studio-checkpoint.command.js +0 -19
- package/build/commands/tools/diagrams/update-diagrams-job-favorite.command.js +0 -17
- package/build/commands/tools/html-page-builder/update-html-page-builder-session-favorite.command.js +0 -11
- package/build/commands/tools/image-editor/update-image-editor-job-favorite.command.js +0 -17
- package/build/commands/tools/image-generation/update-image-generation-job-favorite.command.js +0 -17
- package/build/commands/tools/interior-design/update-interior-design-job-favorite.command.js +0 -17
- package/build/commands/tools/marketplace-card/update-marketplace-card-job-favorite.command.js +0 -17
- package/build/commands/tools/music/update-music-job-favorite.command.js +0 -17
- package/build/commands/tools/paraphrase/update-paraphrase-job-favorite.command.js +0 -17
- package/build/commands/tools/presentation/update-presentation-favorite.command.js +0 -11
- package/build/commands/tools/solving-edu-task/update-solving-edu-task-job-favorite.command.js +0 -17
- package/build/commands/tools/spell-corrector/update-spell-corrector-job-favorite.command.js +0 -17
- package/build/commands/tools/stt/update-stt-job-favorite.command.js +0 -17
- package/build/commands/tools/tts/update-tts-job-favorite.command.js +0 -17
- package/build/commands/tools/video/update-video-job-favorite.command.js +0 -17
- package/build/commands/tools/video-editor/update-video-editor-job-favorite.command.js +0 -17
- package/build/commands/tools/writer/update-writer-document-favorite.command.js +0 -11
- package/build/constants/photo-studio/enums/photo-studio-checkpoint-action-type.enum.js +0 -11
- package/build/constants/tool/enums/job-sort.enum.js +0 -8
- package/build/helpers/query-boolean.schema.js +0 -13
- package/build/models/agents/agent-statistics.schema.js +0 -33
- package/build/models/agents/message-attachment.schema.js +0 -21
- package/build/models/photo-studio/photo-studio-action.schema.js +0 -17
- package/build/models/photo-studio/photo-studio-checkpoint.schema.js +0 -21
- package/build/models/photo-studio/photo-studio-image-node.schema.js +0 -19
- package/build/models/photo-studio/photo-studio.schema.js +0 -15
- package/commands/agents/agent-dialog/get-cabinet-config.command.ts +0 -11
- package/commands/agents/agent-dialog/get-cabinet-price-preview.command.ts +0 -26
- package/commands/agents/agent-dialog/get-dialog-context-length.command.ts +0 -35
- package/commands/agents/agent-dialog/rename-agent-dialog.command.ts +0 -19
- package/commands/agents/agent-dialog/stop-cabinet-stream.command.ts +0 -15
- package/commands/agents/agent-template/get-agent-template-instructions-by-template.command.ts +0 -14
- package/commands/agents/agents/get-agent-statistics.command.ts +0 -28
- package/commands/ai-studio/canvas-tool/var-gen/generate-variables.command.ts +0 -20
- package/commands/ai-studio/canvas-tool/var-gen/get-var-gen-config.command.ts +0 -9
- package/commands/ai-studio/canvas-tool/var-gen/get-var-gen-price.command.ts +0 -18
- package/commands/ai-studio/canvas-tool/var-gen/index.ts +0 -3
- package/commands/photo-studio/add-photo-studio-checkpoint.command.ts +0 -23
- package/commands/photo-studio/clear-photo-studio-checkpoints.command.ts +0 -12
- package/commands/photo-studio/create-photo-studio-canvas.command.ts +0 -16
- package/commands/photo-studio/delete-photo-studio-canvas.command.ts +0 -11
- package/commands/photo-studio/delete-photo-studio-checkpoint.command.ts +0 -14
- package/commands/photo-studio/execute-photo-studio-action.command.ts +0 -49
- package/commands/photo-studio/find-photo-studio-canvas-by-uuid.query.ts +0 -12
- package/commands/photo-studio/find-photo-studio-canvases.query.ts +0 -20
- package/commands/photo-studio/find-photo-studio-checkpoints.query.ts +0 -12
- package/commands/photo-studio/find-photo-studio-job-by-id.query.ts +0 -36
- package/commands/photo-studio/find-photo-studio-jobs.query.ts +0 -20
- package/commands/photo-studio/get-photo-studio-actions.query.ts +0 -10
- package/commands/photo-studio/index.ts +0 -15
- package/commands/photo-studio/save-photo-studio-canvas.command.ts +0 -24
- package/commands/photo-studio/update-photo-studio-canvas.command.ts +0 -17
- package/commands/photo-studio/update-photo-studio-checkpoint.command.ts +0 -25
- package/commands/tools/diagrams/update-diagrams-job-favorite.command.ts +0 -19
- package/commands/tools/html-page-builder/update-html-page-builder-session-favorite.command.ts +0 -13
- package/commands/tools/image-editor/update-image-editor-job-favorite.command.ts +0 -19
- package/commands/tools/image-generation/update-image-generation-job-favorite.command.ts +0 -19
- package/commands/tools/interior-design/update-interior-design-job-favorite.command.ts +0 -19
- package/commands/tools/marketplace-card/update-marketplace-card-job-favorite.command.ts +0 -19
- package/commands/tools/music/update-music-job-favorite.command.ts +0 -19
- package/commands/tools/paraphrase/update-paraphrase-job-favorite.command.ts +0 -19
- package/commands/tools/presentation/update-presentation-favorite.command.ts +0 -13
- package/commands/tools/solving-edu-task/update-solving-edu-task-job-favorite.command.ts +0 -19
- package/commands/tools/spell-corrector/update-spell-corrector-job-favorite.command.ts +0 -19
- package/commands/tools/stt/update-stt-job-favorite.command.ts +0 -19
- package/commands/tools/tts/update-tts-job-favorite.command.ts +0 -19
- package/commands/tools/video/update-video-job-favorite.command.ts +0 -19
- package/commands/tools/video-editor/update-video-editor-job-favorite.command.ts +0 -19
- package/commands/tools/writer/update-writer-document-favorite.command.ts +0 -13
- package/constants/photo-studio/enums/index.ts +0 -1
- package/constants/photo-studio/enums/photo-studio-checkpoint-action-type.enum.ts +0 -7
- package/constants/tool/enums/job-sort.enum.ts +0 -4
- package/helpers/query-boolean.schema.ts +0 -13
- package/models/agents/agent-statistics.schema.ts +0 -38
- package/models/agents/message-attachment.schema.ts +0 -22
- package/models/photo-studio/index.ts +0 -4
- package/models/photo-studio/photo-studio-action.schema.ts +0 -18
- package/models/photo-studio/photo-studio-checkpoint.schema.ts +0 -22
- package/models/photo-studio/photo-studio-image-node.schema.ts +0 -22
- package/models/photo-studio/photo-studio.schema.ts +0 -16
- /package/build/constants/{photo-studio → b2b}/index.js +0 -0
- /package/constants/{photo-studio → b2b}/index.ts +0 -0
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PhotoStudioActionSchema = exports.PhotoStudioImageSettingsSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.PhotoStudioImageSettingsSchema = zod_1.z.object({
|
|
6
|
-
minImages: zod_1.z.number().int().min(0),
|
|
7
|
-
maxImages: zod_1.z.number().int().min(1),
|
|
8
|
-
});
|
|
9
|
-
exports.PhotoStudioActionSchema = zod_1.z.object({
|
|
10
|
-
alias: zod_1.z.string().min(1),
|
|
11
|
-
title: zod_1.z.string().min(1),
|
|
12
|
-
icon: zod_1.z.string().min(1),
|
|
13
|
-
allowUserPrompt: zod_1.z.boolean(),
|
|
14
|
-
systemPrompt: zod_1.z.string().nullable(),
|
|
15
|
-
imageSettings: exports.PhotoStudioImageSettingsSchema,
|
|
16
|
-
params: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).default({}),
|
|
17
|
-
});
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PhotoStudioCheckpointSchema = exports.PhotoStudioCheckpointActionSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const constants_1 = require("../../constants");
|
|
6
|
-
const photo_studio_image_node_schema_1 = require("./photo-studio-image-node.schema");
|
|
7
|
-
exports.PhotoStudioCheckpointActionSchema = zod_1.z.object({
|
|
8
|
-
type: zod_1.z.nativeEnum(constants_1.PHOTO_STUDIO_CHECKPOINT_ACTION_TYPE),
|
|
9
|
-
actionAlias: zod_1.z.string().nullable().optional(),
|
|
10
|
-
title: zod_1.z.string().nullable().optional(),
|
|
11
|
-
params: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).nullable().optional(),
|
|
12
|
-
});
|
|
13
|
-
exports.PhotoStudioCheckpointSchema = zod_1.z.object({
|
|
14
|
-
uuid: zod_1.z.string().uuid(),
|
|
15
|
-
canvasId: zod_1.z.string().uuid(),
|
|
16
|
-
sequence: zod_1.z.number().int().positive(),
|
|
17
|
-
action: exports.PhotoStudioCheckpointActionSchema,
|
|
18
|
-
images: zod_1.z.array(photo_studio_image_node_schema_1.PhotoStudioImageNodeSchema),
|
|
19
|
-
createdAt: zod_1.z.date(),
|
|
20
|
-
updatedAt: zod_1.z.date(),
|
|
21
|
-
});
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PhotoStudioImageInputSchema = exports.PhotoStudioImageNodeSchema = exports.PhotoStudioImageResolutionSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const canvas_node_schema_1 = require("../canvas-node.schema");
|
|
6
|
-
const file_schema_1 = require("../file.schema");
|
|
7
|
-
exports.PhotoStudioImageResolutionSchema = file_schema_1.FileResolutionSchema;
|
|
8
|
-
exports.PhotoStudioImageNodeSchema = zod_1.z.object({
|
|
9
|
-
uuid: zod_1.z.string().uuid(),
|
|
10
|
-
fileId: zod_1.z.string().uuid(),
|
|
11
|
-
url: zod_1.z.string().url(),
|
|
12
|
-
originalName: zod_1.z.string().nullable().optional(),
|
|
13
|
-
resolution: exports.PhotoStudioImageResolutionSchema.nullable().optional(),
|
|
14
|
-
position: canvas_node_schema_1.CanvasNodePositionSchema,
|
|
15
|
-
});
|
|
16
|
-
exports.PhotoStudioImageInputSchema = zod_1.z.object({
|
|
17
|
-
fileId: zod_1.z.string().uuid(),
|
|
18
|
-
position: canvas_node_schema_1.CanvasNodePositionSchema,
|
|
19
|
-
});
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PhotoStudioCanvasWithImagesSchema = exports.PhotoStudioCanvasSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const photo_studio_image_node_schema_1 = require("./photo-studio-image-node.schema");
|
|
6
|
-
exports.PhotoStudioCanvasSchema = zod_1.z.object({
|
|
7
|
-
uuid: zod_1.z.string().uuid(),
|
|
8
|
-
name: zod_1.z.string(),
|
|
9
|
-
userId: zod_1.z.string().uuid(),
|
|
10
|
-
createdAt: zod_1.z.date(),
|
|
11
|
-
updatedAt: zod_1.z.date(),
|
|
12
|
-
});
|
|
13
|
-
exports.PhotoStudioCanvasWithImagesSchema = exports.PhotoStudioCanvasSchema.extend({
|
|
14
|
-
images: zod_1.z.array(photo_studio_image_node_schema_1.PhotoStudioImageNodeSchema),
|
|
15
|
-
});
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
export namespace GetCabinetConfigCommand {
|
|
4
|
-
export const ResponseSchema = z.object({
|
|
5
|
-
data: z.object({
|
|
6
|
-
maxPromptLength: z.number().int().positive(),
|
|
7
|
-
}),
|
|
8
|
-
});
|
|
9
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
10
|
-
export type ResponseData = z.infer<typeof ResponseSchema>['data'];
|
|
11
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
export namespace GetCabinetPricePreviewCommand {
|
|
4
|
-
export const RequestParamsSchema = z.object({
|
|
5
|
-
agentId: z.string().uuid(),
|
|
6
|
-
});
|
|
7
|
-
export type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
8
|
-
|
|
9
|
-
export const RequestBodySchema = z.object({
|
|
10
|
-
inputLength: z.number().int().min(0),
|
|
11
|
-
fileIds: z.array(z.string().uuid()).optional(),
|
|
12
|
-
useWebSearch: z.boolean().optional(),
|
|
13
|
-
/** Если не передан — расчёт для нового диалога (история пустая) */
|
|
14
|
-
dialogId: z.string().uuid().nullable().optional(),
|
|
15
|
-
});
|
|
16
|
-
export type RequestBody = z.infer<typeof RequestBodySchema>;
|
|
17
|
-
|
|
18
|
-
export const ResponseSchema = z.object({
|
|
19
|
-
data: z.object({
|
|
20
|
-
price: z.number().int().min(0),
|
|
21
|
-
charsUntilNextPriceIncrease: z.number().int().min(1).nullable(),
|
|
22
|
-
charsUntilNextPriceDecrease: z.number().int().min(1).nullable(),
|
|
23
|
-
}),
|
|
24
|
-
});
|
|
25
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
26
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { MessageAttachmentTypeEnum } from '../../../models/agents/message-attachment.schema';
|
|
3
|
-
|
|
4
|
-
export namespace GetDialogContextLengthCommand {
|
|
5
|
-
export const RequestSchema = z.object({
|
|
6
|
-
teamAccountId: z.string().uuid(),
|
|
7
|
-
agentId: z.string().uuid(),
|
|
8
|
-
/** Если не передан — история пустая (расчёт для нового диалога) */
|
|
9
|
-
dialogId: z.string().uuid().optional(),
|
|
10
|
-
inputLength: z.number().int().min(0),
|
|
11
|
-
attachments: z
|
|
12
|
-
.array(
|
|
13
|
-
z.object({
|
|
14
|
-
type: MessageAttachmentTypeEnum,
|
|
15
|
-
contentLength: z.number().int().optional(),
|
|
16
|
-
}),
|
|
17
|
-
)
|
|
18
|
-
.default([]),
|
|
19
|
-
});
|
|
20
|
-
export type Request = z.infer<typeof RequestSchema>;
|
|
21
|
-
|
|
22
|
-
export const ResponseSchema = z.object({
|
|
23
|
-
isSuccess: z.literal(true),
|
|
24
|
-
data: z.object({
|
|
25
|
-
historyChars: z.number().int().min(0),
|
|
26
|
-
totalInputChars: z.number().int().min(0),
|
|
27
|
-
modelPricing: z.object({
|
|
28
|
-
inputPrice: z.number(),
|
|
29
|
-
outputPrice: z.number(),
|
|
30
|
-
}),
|
|
31
|
-
}),
|
|
32
|
-
});
|
|
33
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
34
|
-
export type ResponseData = z.infer<typeof ResponseSchema>['data'];
|
|
35
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { DialogSchema } from '../../../models/agents/dialog.schema';
|
|
3
|
-
|
|
4
|
-
export namespace RenameAgentDialogCommand {
|
|
5
|
-
export const RequestParamsSchema = z.object({
|
|
6
|
-
dialogId: z.string().uuid(),
|
|
7
|
-
});
|
|
8
|
-
export type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
9
|
-
|
|
10
|
-
export const RequestBodySchema = z.object({
|
|
11
|
-
title: z.string(),
|
|
12
|
-
});
|
|
13
|
-
export type RequestBody = z.infer<typeof RequestBodySchema>;
|
|
14
|
-
|
|
15
|
-
export const ResponseSchema = z.object({
|
|
16
|
-
data: DialogSchema,
|
|
17
|
-
});
|
|
18
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
19
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
export namespace StopCabinetStreamCommand {
|
|
4
|
-
export const RequestParamsSchema = z.object({
|
|
5
|
-
agentId: z.string().uuid(),
|
|
6
|
-
dialogId: z.string().uuid(),
|
|
7
|
-
messageId: z.string().uuid(),
|
|
8
|
-
});
|
|
9
|
-
export type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
10
|
-
|
|
11
|
-
export const ResponseSchema = z.object({
|
|
12
|
-
stopped: z.boolean(),
|
|
13
|
-
});
|
|
14
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
15
|
-
}
|
package/commands/agents/agent-template/get-agent-template-instructions-by-template.command.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { AgentTemplateInstructionSchema } from '../../../models/agents/agent-template-instruction.schema';
|
|
3
|
-
|
|
4
|
-
export namespace GetAgentTemplateInstructionsByTemplateCommand {
|
|
5
|
-
export const RequestParamsSchema = z.object({
|
|
6
|
-
templateId: z.string().uuid(),
|
|
7
|
-
});
|
|
8
|
-
export type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
9
|
-
|
|
10
|
-
export const ResponseSchema = z.object({
|
|
11
|
-
data: z.array(AgentTemplateInstructionSchema),
|
|
12
|
-
});
|
|
13
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
14
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { AgentStatisticsDataSchema } from '../../../models/agents/agent-statistics.schema';
|
|
3
|
-
|
|
4
|
-
export namespace GetAgentStatisticsCommand {
|
|
5
|
-
export const RequestQuerySchema = z.object({
|
|
6
|
-
from: z.string().datetime().optional(),
|
|
7
|
-
to: z.string().datetime().optional(),
|
|
8
|
-
granularity: z.enum(['day', 'week', 'month']).optional().default('day'),
|
|
9
|
-
source: z.string().optional(),
|
|
10
|
-
});
|
|
11
|
-
export type RequestQuery = z.infer<typeof RequestQuerySchema>;
|
|
12
|
-
|
|
13
|
-
export const RequestParamsSchema = z.object({
|
|
14
|
-
agentId: z.string().uuid(),
|
|
15
|
-
});
|
|
16
|
-
export type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
17
|
-
|
|
18
|
-
export const ResponseSchema = z.object({
|
|
19
|
-
data: AgentStatisticsDataSchema,
|
|
20
|
-
});
|
|
21
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
22
|
-
|
|
23
|
-
// Internal RMQ envelope — not part of the HTTP contract
|
|
24
|
-
export type RmqResponse = {
|
|
25
|
-
isSuccess: true;
|
|
26
|
-
data: z.infer<typeof AgentStatisticsDataSchema>;
|
|
27
|
-
};
|
|
28
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { VarGenOutputSchema } from '../../../../models';
|
|
3
|
-
|
|
4
|
-
export namespace GenerateVariablesCommand {
|
|
5
|
-
export const OutputSchema = VarGenOutputSchema;
|
|
6
|
-
export type Output = z.infer<typeof OutputSchema>;
|
|
7
|
-
|
|
8
|
-
export const RequestSchema = z.object({
|
|
9
|
-
nodeUuid: z.string().uuid(),
|
|
10
|
-
canvasId: z.string().uuid(),
|
|
11
|
-
modelId: z.string().uuid(),
|
|
12
|
-
prompt: z.string().min(1),
|
|
13
|
-
});
|
|
14
|
-
export type Request = z.infer<typeof RequestSchema>;
|
|
15
|
-
|
|
16
|
-
export const ResponseSchema = z.object({
|
|
17
|
-
data: OutputSchema,
|
|
18
|
-
});
|
|
19
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
20
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { AiModelSchema } from '../../../../models';
|
|
3
|
-
|
|
4
|
-
export namespace GetVarGenConfigCommand {
|
|
5
|
-
export const ResponseSchema = z.object({
|
|
6
|
-
data: z.array(AiModelSchema),
|
|
7
|
-
});
|
|
8
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
9
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
export namespace GetVarGenPriceCommand {
|
|
4
|
-
export const RequestSchema = z.object({
|
|
5
|
-
modelId: z.string().uuid(),
|
|
6
|
-
promptLength: z.coerce.number().int().positive(),
|
|
7
|
-
});
|
|
8
|
-
export type Request = z.infer<typeof RequestSchema>;
|
|
9
|
-
|
|
10
|
-
export const ResponseSchema = z.object({
|
|
11
|
-
data: z.object({
|
|
12
|
-
price: z.number(),
|
|
13
|
-
charsUntilNextPriceIncrease: z.number().int().nonnegative().nullable().optional(),
|
|
14
|
-
charsUntilNextPriceDecrease: z.number().int().nonnegative().nullable().optional(),
|
|
15
|
-
}),
|
|
16
|
-
});
|
|
17
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
18
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import {
|
|
3
|
-
PhotoStudioCheckpointActionSchema,
|
|
4
|
-
PhotoStudioCheckpointSchema,
|
|
5
|
-
PhotoStudioImageInputSchema,
|
|
6
|
-
} from '../../models';
|
|
7
|
-
|
|
8
|
-
export namespace AddPhotoStudioCheckpointCommand {
|
|
9
|
-
export const RequestParamSchema = z.object({ canvasId: z.string().uuid() });
|
|
10
|
-
export type RequestParam = z.infer<typeof RequestParamSchema>;
|
|
11
|
-
|
|
12
|
-
export const RequestSchema = z.object({
|
|
13
|
-
action: PhotoStudioCheckpointActionSchema,
|
|
14
|
-
images: z.array(PhotoStudioImageInputSchema).optional(),
|
|
15
|
-
baseCheckpointSequence: z.number().int().positive().optional(),
|
|
16
|
-
});
|
|
17
|
-
export type Request = z.infer<typeof RequestSchema>;
|
|
18
|
-
|
|
19
|
-
export const ResponseSchema = z.object({
|
|
20
|
-
data: PhotoStudioCheckpointSchema,
|
|
21
|
-
});
|
|
22
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
23
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { PhotoStudioCheckpointSchema } from '../../models';
|
|
3
|
-
|
|
4
|
-
export namespace ClearPhotoStudioCheckpointsCommand {
|
|
5
|
-
export const RequestParamSchema = z.object({ canvasId: z.string().uuid() });
|
|
6
|
-
export type RequestParam = z.infer<typeof RequestParamSchema>;
|
|
7
|
-
|
|
8
|
-
export const ResponseSchema = z.object({
|
|
9
|
-
data: z.array(PhotoStudioCheckpointSchema),
|
|
10
|
-
});
|
|
11
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
12
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { PhotoStudioCanvasWithImagesSchema, PhotoStudioImageInputSchema } from '../../models';
|
|
3
|
-
|
|
4
|
-
export namespace CreatePhotoStudioCanvasCommand {
|
|
5
|
-
export const RequestSchema = z.object({
|
|
6
|
-
name: z.string().trim().min(1).optional(),
|
|
7
|
-
images: z.array(PhotoStudioImageInputSchema).default([]).optional(),
|
|
8
|
-
});
|
|
9
|
-
|
|
10
|
-
export type Request = z.infer<typeof RequestSchema>;
|
|
11
|
-
|
|
12
|
-
export const ResponseSchema = z.object({
|
|
13
|
-
data: PhotoStudioCanvasWithImagesSchema,
|
|
14
|
-
});
|
|
15
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
16
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
export namespace DeletePhotoStudioCanvasCommand {
|
|
4
|
-
export const RequestParamSchema = z.object({ uuid: z.string().uuid() });
|
|
5
|
-
export type RequestParam = z.infer<typeof RequestParamSchema>;
|
|
6
|
-
|
|
7
|
-
export const ResponseSchema = z.object({
|
|
8
|
-
data: z.object({ isDeleted: z.boolean() }),
|
|
9
|
-
});
|
|
10
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
11
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
export namespace DeletePhotoStudioCheckpointCommand {
|
|
4
|
-
export const RequestParamSchema = z.object({
|
|
5
|
-
canvasId: z.string().uuid(),
|
|
6
|
-
checkpointId: z.string().uuid(),
|
|
7
|
-
});
|
|
8
|
-
export type RequestParam = z.infer<typeof RequestParamSchema>;
|
|
9
|
-
|
|
10
|
-
export const ResponseSchema = z.object({
|
|
11
|
-
data: z.object({ isDeleted: z.boolean() }),
|
|
12
|
-
});
|
|
13
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
14
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { TOOL_CONTENT_TYPE } from '../../constants';
|
|
3
|
-
import { IMAGE_GENERATION_RESOLUTION } from '../../constants/tool-image-generation/enums/image-generation-resolution.enum';
|
|
4
|
-
import { CanvasNodePositionSchema, ToolJobSchema } from '../../models';
|
|
5
|
-
|
|
6
|
-
export namespace ExecutePhotoStudioActionCommand {
|
|
7
|
-
export const RequestSchema = z.object({
|
|
8
|
-
actionAlias: z.string().min(1),
|
|
9
|
-
modelId: z.string().uuid(),
|
|
10
|
-
prompt: z.string().optional(),
|
|
11
|
-
params: z
|
|
12
|
-
.object({
|
|
13
|
-
imageUrls: z.array(z.string().uuid()).optional(),
|
|
14
|
-
enhancePrompt: z.boolean().optional(),
|
|
15
|
-
resolution: z.nativeEnum(IMAGE_GENERATION_RESOLUTION).optional(),
|
|
16
|
-
aspectRatio: z.string().optional(),
|
|
17
|
-
effect: z.string().optional(),
|
|
18
|
-
size: z.enum(['2x', '4x', '8x']).optional(),
|
|
19
|
-
variationsCount: z.union([z.literal(2), z.literal(3), z.literal(4)]).optional(),
|
|
20
|
-
variationStrength: z.enum(['light', 'medium', 'high']).optional(),
|
|
21
|
-
fontStyle: z
|
|
22
|
-
.enum([
|
|
23
|
-
'calligraphy',
|
|
24
|
-
'handwritten',
|
|
25
|
-
'elegant',
|
|
26
|
-
'decorative',
|
|
27
|
-
'poster',
|
|
28
|
-
'engraving',
|
|
29
|
-
])
|
|
30
|
-
.optional(),
|
|
31
|
-
placement: z.enum(['top', 'center', 'bottom']).optional(),
|
|
32
|
-
color: z.string().optional(),
|
|
33
|
-
})
|
|
34
|
-
.default({}),
|
|
35
|
-
position: CanvasNodePositionSchema,
|
|
36
|
-
baseCheckpointSequence: z.number().int().positive().optional(),
|
|
37
|
-
});
|
|
38
|
-
export type Request = z.infer<typeof RequestSchema>;
|
|
39
|
-
|
|
40
|
-
export const PhotoStudioExecuteJobSchema = ToolJobSchema.extend({
|
|
41
|
-
toolType: z.nativeEnum(TOOL_CONTENT_TYPE),
|
|
42
|
-
});
|
|
43
|
-
export type PhotoStudioExecuteJob = z.infer<typeof PhotoStudioExecuteJobSchema>;
|
|
44
|
-
|
|
45
|
-
export const ResponseSchema = z.object({
|
|
46
|
-
data: z.array(PhotoStudioExecuteJobSchema),
|
|
47
|
-
});
|
|
48
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
49
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { PhotoStudioCanvasWithImagesSchema } from '../../models';
|
|
3
|
-
|
|
4
|
-
export namespace FindPhotoStudioCanvasByUuidQuery {
|
|
5
|
-
export const RequestParamSchema = z.object({ uuid: z.string().uuid() });
|
|
6
|
-
export type RequestParam = z.infer<typeof RequestParamSchema>;
|
|
7
|
-
|
|
8
|
-
export const ResponseSchema = z.object({
|
|
9
|
-
data: PhotoStudioCanvasWithImagesSchema,
|
|
10
|
-
});
|
|
11
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
12
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { PhotoStudioCanvasSchema } from '../../models';
|
|
3
|
-
|
|
4
|
-
export namespace FindPhotoStudioCanvasesQuery {
|
|
5
|
-
export const RequestSchema = z.object({
|
|
6
|
-
limit: z.coerce.number().int().min(1).default(20).optional(),
|
|
7
|
-
offset: z.coerce.number().int().min(0).default(0).optional(),
|
|
8
|
-
name: z.string().optional(),
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
export type Request = z.infer<typeof RequestSchema>;
|
|
12
|
-
|
|
13
|
-
export const ResponseSchema = z.object({
|
|
14
|
-
data: z.array(PhotoStudioCanvasSchema.extend({ countOfImages: z.number() })),
|
|
15
|
-
page: z.number(),
|
|
16
|
-
totalPages: z.number(),
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
20
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { PhotoStudioCheckpointSchema } from '../../models';
|
|
3
|
-
|
|
4
|
-
export namespace FindPhotoStudioCheckpointsQuery {
|
|
5
|
-
export const RequestParamSchema = z.object({ canvasId: z.string().uuid() });
|
|
6
|
-
export type RequestParam = z.infer<typeof RequestParamSchema>;
|
|
7
|
-
|
|
8
|
-
export const ResponseSchema = z.object({
|
|
9
|
-
data: z.array(PhotoStudioCheckpointSchema),
|
|
10
|
-
});
|
|
11
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
12
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { TOOL_CONTENT_TYPE, TOOL_JOB_STATUS } from '../../constants';
|
|
3
|
-
import { CanvasNodePositionSchema, FileResolutionSchema } from '../../models';
|
|
4
|
-
|
|
5
|
-
export namespace FindPhotoStudioJobByIdQuery {
|
|
6
|
-
export const RequestParamSchema = z.object({
|
|
7
|
-
canvasId: z.string().uuid(),
|
|
8
|
-
jobId: z.string().uuid(),
|
|
9
|
-
});
|
|
10
|
-
export type RequestParams = z.infer<typeof RequestParamSchema>;
|
|
11
|
-
|
|
12
|
-
export const PhotoStudioJobImageSchema = z.object({
|
|
13
|
-
fileId: z.string().uuid(),
|
|
14
|
-
url: z.string(),
|
|
15
|
-
originalName: z.string().nullable().optional(),
|
|
16
|
-
resolution: FileResolutionSchema.nullable().optional(),
|
|
17
|
-
});
|
|
18
|
-
export type PhotoStudioJobImage = z.infer<typeof PhotoStudioJobImageSchema>;
|
|
19
|
-
|
|
20
|
-
export const PhotoStudioJobSchema = z.object({
|
|
21
|
-
jobId: z.string().uuid(),
|
|
22
|
-
toolType: z.nativeEnum(TOOL_CONTENT_TYPE),
|
|
23
|
-
status: z.nativeEnum(TOOL_JOB_STATUS),
|
|
24
|
-
position: CanvasNodePositionSchema,
|
|
25
|
-
images: z.array(PhotoStudioJobImageSchema),
|
|
26
|
-
error: z.string().nullable(),
|
|
27
|
-
createdAt: z.date(),
|
|
28
|
-
updatedAt: z.date(),
|
|
29
|
-
});
|
|
30
|
-
export type PhotoStudioJob = z.infer<typeof PhotoStudioJobSchema>;
|
|
31
|
-
|
|
32
|
-
export const ResponseSchema = z.object({
|
|
33
|
-
data: PhotoStudioJobSchema,
|
|
34
|
-
});
|
|
35
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
36
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { TOOL_JOB_STATUS } from '../../constants';
|
|
3
|
-
import { FindPhotoStudioJobByIdQuery } from './find-photo-studio-job-by-id.query';
|
|
4
|
-
|
|
5
|
-
export namespace FindPhotoStudioJobsQuery {
|
|
6
|
-
export const RequestParamSchema = z.object({
|
|
7
|
-
canvasId: z.string().uuid(),
|
|
8
|
-
});
|
|
9
|
-
export type RequestParams = z.infer<typeof RequestParamSchema>;
|
|
10
|
-
|
|
11
|
-
export const RequestQuerySchema = z.object({
|
|
12
|
-
status: z.nativeEnum(TOOL_JOB_STATUS).optional(),
|
|
13
|
-
});
|
|
14
|
-
export type RequestQuery = z.infer<typeof RequestQuerySchema>;
|
|
15
|
-
|
|
16
|
-
export const ResponseSchema = z.object({
|
|
17
|
-
data: z.array(FindPhotoStudioJobByIdQuery.PhotoStudioJobSchema),
|
|
18
|
-
});
|
|
19
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
20
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { PhotoStudioActionSchema } from '../../models';
|
|
3
|
-
|
|
4
|
-
export namespace GetPhotoStudioActionsQuery {
|
|
5
|
-
export const ResponseSchema = z.object({
|
|
6
|
-
data: z.array(PhotoStudioActionSchema),
|
|
7
|
-
});
|
|
8
|
-
|
|
9
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
10
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export * from './add-photo-studio-checkpoint.command';
|
|
2
|
-
export * from './clear-photo-studio-checkpoints.command';
|
|
3
|
-
export * from './create-photo-studio-canvas.command';
|
|
4
|
-
export * from './delete-photo-studio-canvas.command';
|
|
5
|
-
export * from './delete-photo-studio-checkpoint.command';
|
|
6
|
-
export * from './execute-photo-studio-action.command';
|
|
7
|
-
export * from './find-photo-studio-canvas-by-uuid.query';
|
|
8
|
-
export * from './find-photo-studio-canvases.query';
|
|
9
|
-
export * from './find-photo-studio-checkpoints.query';
|
|
10
|
-
export * from './find-photo-studio-job-by-id.query';
|
|
11
|
-
export * from './find-photo-studio-jobs.query';
|
|
12
|
-
export * from './get-photo-studio-actions.query';
|
|
13
|
-
export * from './save-photo-studio-canvas.command';
|
|
14
|
-
export * from './update-photo-studio-canvas.command';
|
|
15
|
-
export * from './update-photo-studio-checkpoint.command';
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import {
|
|
3
|
-
PhotoStudioCanvasWithImagesSchema,
|
|
4
|
-
PhotoStudioCheckpointActionSchema,
|
|
5
|
-
PhotoStudioImageInputSchema,
|
|
6
|
-
} from '../../models';
|
|
7
|
-
|
|
8
|
-
export namespace SavePhotoStudioCanvasCommand {
|
|
9
|
-
export const RequestParamSchema = z.object({ uuid: z.string().uuid() });
|
|
10
|
-
export type RequestParam = z.infer<typeof RequestParamSchema>;
|
|
11
|
-
|
|
12
|
-
export const RequestSchema = z.object({
|
|
13
|
-
updatedAt: z.coerce.date().optional(),
|
|
14
|
-
images: z.array(PhotoStudioImageInputSchema),
|
|
15
|
-
action: PhotoStudioCheckpointActionSchema.optional(),
|
|
16
|
-
baseCheckpointSequence: z.number().int().positive().optional(),
|
|
17
|
-
});
|
|
18
|
-
export type Request = z.infer<typeof RequestSchema>;
|
|
19
|
-
|
|
20
|
-
export const ResponseSchema = z.object({
|
|
21
|
-
data: PhotoStudioCanvasWithImagesSchema,
|
|
22
|
-
});
|
|
23
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
24
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { PhotoStudioCanvasWithImagesSchema } from '../../models';
|
|
3
|
-
|
|
4
|
-
export namespace UpdatePhotoStudioCanvasCommand {
|
|
5
|
-
export const RequestParamSchema = z.object({ uuid: z.string().uuid() });
|
|
6
|
-
export type RequestParam = z.infer<typeof RequestParamSchema>;
|
|
7
|
-
|
|
8
|
-
export const RequestSchema = z.object({
|
|
9
|
-
name: z.string().trim().min(1),
|
|
10
|
-
});
|
|
11
|
-
export type Request = z.infer<typeof RequestSchema>;
|
|
12
|
-
|
|
13
|
-
export const ResponseSchema = z.object({
|
|
14
|
-
data: PhotoStudioCanvasWithImagesSchema,
|
|
15
|
-
});
|
|
16
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
17
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import {
|
|
3
|
-
PhotoStudioCheckpointActionSchema,
|
|
4
|
-
PhotoStudioCheckpointSchema,
|
|
5
|
-
PhotoStudioImageInputSchema,
|
|
6
|
-
} from '../../models';
|
|
7
|
-
|
|
8
|
-
export namespace UpdatePhotoStudioCheckpointCommand {
|
|
9
|
-
export const RequestParamSchema = z.object({
|
|
10
|
-
canvasId: z.string().uuid(),
|
|
11
|
-
checkpointId: z.string().uuid(),
|
|
12
|
-
});
|
|
13
|
-
export type RequestParam = z.infer<typeof RequestParamSchema>;
|
|
14
|
-
|
|
15
|
-
export const RequestSchema = z.object({
|
|
16
|
-
action: PhotoStudioCheckpointActionSchema.optional(),
|
|
17
|
-
images: z.array(PhotoStudioImageInputSchema).optional(),
|
|
18
|
-
});
|
|
19
|
-
export type Request = z.infer<typeof RequestSchema>;
|
|
20
|
-
|
|
21
|
-
export const ResponseSchema = z.object({
|
|
22
|
-
data: PhotoStudioCheckpointSchema,
|
|
23
|
-
});
|
|
24
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
25
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { DiagramsJobSchemaResponse } from '../../../models';
|
|
3
|
-
|
|
4
|
-
export namespace UpdateDiagramsJobFavoriteCommand {
|
|
5
|
-
export const RequestSchema = z.object({
|
|
6
|
-
isFavorite: z.boolean(),
|
|
7
|
-
});
|
|
8
|
-
export type Request = z.infer<typeof RequestSchema>;
|
|
9
|
-
|
|
10
|
-
export const RequestParamsSchema = z.object({
|
|
11
|
-
uuid: z.string().uuid(),
|
|
12
|
-
});
|
|
13
|
-
export type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
14
|
-
|
|
15
|
-
export const ResponseSchema = z.object({
|
|
16
|
-
data: DiagramsJobSchemaResponse,
|
|
17
|
-
});
|
|
18
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
19
|
-
}
|