@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
package/commands/tools/html-page-builder/update-html-page-builder-session-favorite.command.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { HtmlPageBuilderSessionSchema } from '../../../models';
|
|
3
|
-
|
|
4
|
-
export namespace UpdateHtmlPageBuilderSessionFavoriteCommand {
|
|
5
|
-
export const RequestSchema = z.object({ isFavorite: z.boolean() });
|
|
6
|
-
export type Request = z.infer<typeof RequestSchema>;
|
|
7
|
-
|
|
8
|
-
export const RequestParamsSchema = z.object({ uuid: z.string().uuid() });
|
|
9
|
-
export type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
10
|
-
|
|
11
|
-
export const ResponseSchema = z.object({ data: HtmlPageBuilderSessionSchema });
|
|
12
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
13
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { ImageEditorJobSchema } from '../../../models';
|
|
3
|
-
|
|
4
|
-
export namespace UpdateImageEditorJobFavoriteCommand {
|
|
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: ImageEditorJobSchema,
|
|
17
|
-
});
|
|
18
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
19
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { ImageGenerationJobSchema } from '../../../models';
|
|
3
|
-
|
|
4
|
-
export namespace UpdateImageGenerationJobFavoriteCommand {
|
|
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: ImageGenerationJobSchema,
|
|
17
|
-
});
|
|
18
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
19
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { InteriorDesignJobSchema } from '../../../models';
|
|
3
|
-
|
|
4
|
-
export namespace UpdateInteriorDesignJobFavoriteCommand {
|
|
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: InteriorDesignJobSchema,
|
|
17
|
-
});
|
|
18
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
19
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { MarketplaceCardJobSchema } from '../../../models';
|
|
3
|
-
|
|
4
|
-
export namespace UpdateMarketplaceCardJobFavoriteCommand {
|
|
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: MarketplaceCardJobSchema,
|
|
17
|
-
});
|
|
18
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
19
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { MusicJobSchema } from '../../../models';
|
|
3
|
-
|
|
4
|
-
export namespace UpdateMusicJobFavoriteCommand {
|
|
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: MusicJobSchema,
|
|
17
|
-
});
|
|
18
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
19
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { ParaphraseToolJobSchema } from '../../../models';
|
|
3
|
-
|
|
4
|
-
export namespace UpdateParaphraseJobFavoriteCommand {
|
|
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: ParaphraseToolJobSchema,
|
|
17
|
-
});
|
|
18
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
19
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { PresentationSchema } from '../../../models/tools/presentation';
|
|
3
|
-
|
|
4
|
-
export namespace UpdatePresentationFavoriteCommand {
|
|
5
|
-
export const RequestBodySchema = z.object({ isFavorite: z.boolean() });
|
|
6
|
-
export type RequestBody = z.infer<typeof RequestBodySchema>;
|
|
7
|
-
|
|
8
|
-
export const RequestParamsSchema = z.object({ uuid: z.string().uuid() });
|
|
9
|
-
export type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
10
|
-
|
|
11
|
-
export const ResponseSchema = z.object({ data: PresentationSchema });
|
|
12
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
13
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { SolvingEduTaskJobSchema } from '../../../models';
|
|
3
|
-
|
|
4
|
-
export namespace UpdateSolvingEduTaskJobFavoriteCommand {
|
|
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: SolvingEduTaskJobSchema,
|
|
17
|
-
});
|
|
18
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
19
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { SpellCorrectorToolJobSchema } from '../../../models';
|
|
3
|
-
|
|
4
|
-
export namespace UpdateSpellCorrectorJobFavoriteCommand {
|
|
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: SpellCorrectorToolJobSchema,
|
|
17
|
-
});
|
|
18
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
19
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { STTJobSchema } from '../../../models';
|
|
3
|
-
|
|
4
|
-
export namespace UpdateSTTJobFavoriteCommand {
|
|
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: STTJobSchema,
|
|
17
|
-
});
|
|
18
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
19
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { TTSJobSchema } from '../../../models';
|
|
3
|
-
|
|
4
|
-
export namespace UpdateTTSJobFavoriteCommand {
|
|
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: TTSJobSchema,
|
|
17
|
-
});
|
|
18
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
19
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { VideoJobSchema } from '../../../models';
|
|
3
|
-
|
|
4
|
-
export namespace UpdateVideoJobFavoriteCommand {
|
|
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: VideoJobSchema,
|
|
17
|
-
});
|
|
18
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
19
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { VideoEditorJobSchema } from '../../../models';
|
|
3
|
-
|
|
4
|
-
export namespace UpdateVideoEditorJobFavoriteCommand {
|
|
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: VideoEditorJobSchema,
|
|
17
|
-
});
|
|
18
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
19
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { WriterDocumentSchema } from '../../../models';
|
|
3
|
-
|
|
4
|
-
export namespace UpdateWriterDocumentFavoriteCommand {
|
|
5
|
-
export const RequestSchema = z.object({ isFavorite: z.boolean() });
|
|
6
|
-
export type Request = z.infer<typeof RequestSchema>;
|
|
7
|
-
|
|
8
|
-
export const RequestParamsSchema = z.object({ uuid: z.string().uuid() });
|
|
9
|
-
export type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
10
|
-
|
|
11
|
-
export const ResponseSchema = z.object({ data: WriterDocumentSchema });
|
|
12
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
13
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './photo-studio-checkpoint-action-type.enum';
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
export const AgentStatisticsRangeSchema = z.object({
|
|
4
|
-
from: z.string().datetime(),
|
|
5
|
-
to: z.string().datetime(),
|
|
6
|
-
granularity: z.enum(['day', 'week', 'month']),
|
|
7
|
-
});
|
|
8
|
-
export type AgentStatisticsRange = z.infer<typeof AgentStatisticsRangeSchema>;
|
|
9
|
-
|
|
10
|
-
export const AgentStatisticsTotalsSchema = z.object({
|
|
11
|
-
dialogs: z.number().int().min(0),
|
|
12
|
-
leads: z.number().int().min(0),
|
|
13
|
-
messagesIncoming: z.number().int().min(0),
|
|
14
|
-
messagesOutgoing: z.number().int().min(0),
|
|
15
|
-
starsSpent: z.number().int().min(0),
|
|
16
|
-
conversionToLeadPercent: z.number().min(0),
|
|
17
|
-
conversionToDialogPercent: z.number().min(0),
|
|
18
|
-
agentActivations: z.number().int().min(0),
|
|
19
|
-
});
|
|
20
|
-
export type AgentStatisticsTotals = z.infer<typeof AgentStatisticsTotalsSchema>;
|
|
21
|
-
|
|
22
|
-
export const AgentStatisticsBucketSchema = z.object({
|
|
23
|
-
start: z.string().datetime(),
|
|
24
|
-
dialogs: z.number().int().min(0),
|
|
25
|
-
leads: z.number().int().min(0),
|
|
26
|
-
launches: z.number().int().min(0),
|
|
27
|
-
starsSpent: z.number().int().min(0),
|
|
28
|
-
});
|
|
29
|
-
export type AgentStatisticsBucket = z.infer<typeof AgentStatisticsBucketSchema>;
|
|
30
|
-
|
|
31
|
-
export const AgentStatisticsDataSchema = z.object({
|
|
32
|
-
range: AgentStatisticsRangeSchema,
|
|
33
|
-
totals: AgentStatisticsTotalsSchema,
|
|
34
|
-
chart: z.object({
|
|
35
|
-
buckets: z.array(AgentStatisticsBucketSchema),
|
|
36
|
-
}),
|
|
37
|
-
});
|
|
38
|
-
export type AgentStatisticsData = z.infer<typeof AgentStatisticsDataSchema>;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
export const MessageAttachmentTypeEnum = z.enum([
|
|
4
|
-
'image',
|
|
5
|
-
'document',
|
|
6
|
-
'text',
|
|
7
|
-
'audio',
|
|
8
|
-
'video',
|
|
9
|
-
'other',
|
|
10
|
-
]);
|
|
11
|
-
export type MessageAttachmentType = z.infer<typeof MessageAttachmentTypeEnum>;
|
|
12
|
-
|
|
13
|
-
export const MessageAttachmentInputSchema = z.object({
|
|
14
|
-
fileId: z.string().uuid().optional(),
|
|
15
|
-
url: z.string(),
|
|
16
|
-
mimeType: z.string(),
|
|
17
|
-
type: MessageAttachmentTypeEnum,
|
|
18
|
-
originalName: z.string().optional(),
|
|
19
|
-
content: z.string().optional(),
|
|
20
|
-
contentLength: z.number().int().optional(),
|
|
21
|
-
});
|
|
22
|
-
export type MessageAttachmentInput = z.infer<typeof MessageAttachmentInputSchema>;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
export const PhotoStudioImageSettingsSchema = z.object({
|
|
4
|
-
minImages: z.number().int().min(0),
|
|
5
|
-
maxImages: z.number().int().min(1),
|
|
6
|
-
});
|
|
7
|
-
export type PhotoStudioImageSettings = z.infer<typeof PhotoStudioImageSettingsSchema>;
|
|
8
|
-
|
|
9
|
-
export const PhotoStudioActionSchema = z.object({
|
|
10
|
-
alias: z.string().min(1),
|
|
11
|
-
title: z.string().min(1),
|
|
12
|
-
icon: z.string().min(1),
|
|
13
|
-
allowUserPrompt: z.boolean(),
|
|
14
|
-
systemPrompt: z.string().nullable(),
|
|
15
|
-
imageSettings: PhotoStudioImageSettingsSchema,
|
|
16
|
-
params: z.record(z.string(), z.unknown()).default({}),
|
|
17
|
-
});
|
|
18
|
-
export type PhotoStudioAction = z.infer<typeof PhotoStudioActionSchema>;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { PHOTO_STUDIO_CHECKPOINT_ACTION_TYPE } from '../../constants';
|
|
3
|
-
import { PhotoStudioImageNodeSchema } from './photo-studio-image-node.schema';
|
|
4
|
-
|
|
5
|
-
export const PhotoStudioCheckpointActionSchema = z.object({
|
|
6
|
-
type: z.nativeEnum(PHOTO_STUDIO_CHECKPOINT_ACTION_TYPE),
|
|
7
|
-
actionAlias: z.string().nullable().optional(),
|
|
8
|
-
title: z.string().nullable().optional(),
|
|
9
|
-
params: z.record(z.string(), z.unknown()).nullable().optional(),
|
|
10
|
-
});
|
|
11
|
-
export type PhotoStudioCheckpointAction = z.infer<typeof PhotoStudioCheckpointActionSchema>;
|
|
12
|
-
|
|
13
|
-
export const PhotoStudioCheckpointSchema = z.object({
|
|
14
|
-
uuid: z.string().uuid(),
|
|
15
|
-
canvasId: z.string().uuid(),
|
|
16
|
-
sequence: z.number().int().positive(),
|
|
17
|
-
action: PhotoStudioCheckpointActionSchema,
|
|
18
|
-
images: z.array(PhotoStudioImageNodeSchema),
|
|
19
|
-
createdAt: z.date(),
|
|
20
|
-
updatedAt: z.date(),
|
|
21
|
-
});
|
|
22
|
-
export type PhotoStudioCheckpoint = z.infer<typeof PhotoStudioCheckpointSchema>;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { CanvasNodePositionSchema } from '../canvas-node.schema';
|
|
3
|
-
import { FileResolutionSchema } from '../file.schema';
|
|
4
|
-
|
|
5
|
-
export const PhotoStudioImageResolutionSchema = FileResolutionSchema;
|
|
6
|
-
export type PhotoStudioImageResolution = z.infer<typeof PhotoStudioImageResolutionSchema>;
|
|
7
|
-
|
|
8
|
-
export const PhotoStudioImageNodeSchema = z.object({
|
|
9
|
-
uuid: z.string().uuid(),
|
|
10
|
-
fileId: z.string().uuid(),
|
|
11
|
-
url: z.string().url(),
|
|
12
|
-
originalName: z.string().nullable().optional(),
|
|
13
|
-
resolution: PhotoStudioImageResolutionSchema.nullable().optional(),
|
|
14
|
-
position: CanvasNodePositionSchema,
|
|
15
|
-
});
|
|
16
|
-
export type PhotoStudioImageNode = z.infer<typeof PhotoStudioImageNodeSchema>;
|
|
17
|
-
|
|
18
|
-
export const PhotoStudioImageInputSchema = z.object({
|
|
19
|
-
fileId: z.string().uuid(),
|
|
20
|
-
position: CanvasNodePositionSchema,
|
|
21
|
-
});
|
|
22
|
-
export type PhotoStudioImageInput = z.infer<typeof PhotoStudioImageInputSchema>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { PhotoStudioImageNodeSchema } from './photo-studio-image-node.schema';
|
|
3
|
-
|
|
4
|
-
export const PhotoStudioCanvasSchema = z.object({
|
|
5
|
-
uuid: z.string().uuid(),
|
|
6
|
-
name: z.string(),
|
|
7
|
-
userId: z.string().uuid(),
|
|
8
|
-
createdAt: z.date(),
|
|
9
|
-
updatedAt: z.date(),
|
|
10
|
-
});
|
|
11
|
-
export type PhotoStudioCanvas = z.infer<typeof PhotoStudioCanvasSchema>;
|
|
12
|
-
|
|
13
|
-
export const PhotoStudioCanvasWithImagesSchema = PhotoStudioCanvasSchema.extend({
|
|
14
|
-
images: z.array(PhotoStudioImageNodeSchema),
|
|
15
|
-
});
|
|
16
|
-
export type PhotoStudioCanvasWithImages = z.infer<typeof PhotoStudioCanvasWithImagesSchema>;
|
|
File without changes
|
|
File without changes
|