@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,6 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { QueryBooleanSchema } from '../../../helpers';
|
|
3
|
-
import { JOB_SORT, TOOL_JOB_STATUS } from '../../../constants';
|
|
4
2
|
import { MusicJobSchema } from '../../../models';
|
|
5
3
|
|
|
6
4
|
export namespace FindMusicJobsCommand {
|
|
@@ -8,9 +6,6 @@ export namespace FindMusicJobsCommand {
|
|
|
8
6
|
limit: z.coerce.number().min(1).optional(),
|
|
9
7
|
offset: z.coerce.number().min(0).default(0).optional(),
|
|
10
8
|
title: z.string().optional(),
|
|
11
|
-
isFavorite: QueryBooleanSchema.optional(),
|
|
12
|
-
createdAtSortOrder: z.nativeEnum(JOB_SORT).optional().default(JOB_SORT.DESC),
|
|
13
|
-
status: z.nativeEnum(TOOL_JOB_STATUS).optional(),
|
|
14
9
|
});
|
|
15
10
|
export type RequestQuery = z.infer<typeof RequestQuerySchema>;
|
|
16
11
|
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { QueryBooleanSchema } from '../../../helpers';
|
|
3
|
-
import { JOB_SORT, TOOL_JOB_STATUS } from '../../../constants';
|
|
4
2
|
import { ParaphraseToolJobSchema } from '../../../models';
|
|
5
3
|
|
|
6
4
|
export namespace FindParaphraseJobsCommand {
|
|
@@ -8,9 +6,6 @@ export namespace FindParaphraseJobsCommand {
|
|
|
8
6
|
limit: z.coerce.number().min(1).optional(),
|
|
9
7
|
offset: z.coerce.number().min(0).default(0).optional(),
|
|
10
8
|
title: z.string().optional(),
|
|
11
|
-
isFavorite: QueryBooleanSchema.optional(),
|
|
12
|
-
createdAtSortOrder: z.nativeEnum(JOB_SORT).optional().default(JOB_SORT.DESC),
|
|
13
|
-
status: z.nativeEnum(TOOL_JOB_STATUS).optional(),
|
|
14
9
|
});
|
|
15
10
|
export type RequestQuery = z.infer<typeof RequestQuerySchema>;
|
|
16
11
|
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { QueryBooleanSchema } from '../../../helpers';
|
|
3
|
-
import { JOB_SORT, TOOL_JOB_STATUS } from '../../../constants';
|
|
4
2
|
import { PresentationSchema } from '../../../models/tools/presentation';
|
|
5
3
|
|
|
6
4
|
export namespace FindPresentationsCommand {
|
|
@@ -8,9 +6,6 @@ export namespace FindPresentationsCommand {
|
|
|
8
6
|
limit: z.coerce.number().min(1).optional(),
|
|
9
7
|
offset: z.coerce.number().min(0).default(0).optional(),
|
|
10
8
|
title: z.string().optional(),
|
|
11
|
-
isFavorite: QueryBooleanSchema.optional(),
|
|
12
|
-
createdAtSortOrder: z.nativeEnum(JOB_SORT).optional().default(JOB_SORT.DESC),
|
|
13
|
-
status: z.nativeEnum(TOOL_JOB_STATUS).optional(),
|
|
14
9
|
});
|
|
15
10
|
export type RequestQuery = z.infer<typeof RequestQuerySchema>;
|
|
16
11
|
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { QueryBooleanSchema } from '../../../helpers';
|
|
3
|
-
import { JOB_SORT, TOOL_JOB_STATUS } from '../../../constants';
|
|
4
2
|
import { SolvingEduTaskJobSchema } from '../../../models';
|
|
5
3
|
|
|
6
4
|
export namespace FindSolvingEduTaskJobsCommand {
|
|
@@ -8,9 +6,6 @@ export namespace FindSolvingEduTaskJobsCommand {
|
|
|
8
6
|
limit: z.coerce.number().min(1).optional(),
|
|
9
7
|
offset: z.coerce.number().min(0).default(0).optional(),
|
|
10
8
|
title: z.string().optional(),
|
|
11
|
-
isFavorite: QueryBooleanSchema.optional(),
|
|
12
|
-
createdAtSortOrder: z.nativeEnum(JOB_SORT).optional().default(JOB_SORT.DESC),
|
|
13
|
-
status: z.nativeEnum(TOOL_JOB_STATUS).optional(),
|
|
14
9
|
});
|
|
15
10
|
export type RequestQuery = z.infer<typeof RequestQuerySchema>;
|
|
16
11
|
|
|
@@ -7,4 +7,3 @@ export * from './set-reaction-to-solving-edu-task-job.command';
|
|
|
7
7
|
export * from './delete-solving-edu-task-job-by-uuid.command';
|
|
8
8
|
export * from './delete-all-solving-edu-task-jobs.command';
|
|
9
9
|
export * from './update-solving-edu-task-job-title.command';
|
|
10
|
-
export * from './update-solving-edu-task-job-favorite.command';
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { QueryBooleanSchema } from '../../../helpers';
|
|
3
|
-
import { JOB_SORT, TOOL_JOB_STATUS } from '../../../constants';
|
|
4
2
|
import { SpellCorrectorToolJobSchema } from '../../../models';
|
|
5
3
|
|
|
6
4
|
export namespace FindSpellCorrectorJobsCommand {
|
|
@@ -8,9 +6,6 @@ export namespace FindSpellCorrectorJobsCommand {
|
|
|
8
6
|
limit: z.coerce.number().min(1).optional(),
|
|
9
7
|
offset: z.coerce.number().min(0).default(0).optional(),
|
|
10
8
|
title: z.string().optional(),
|
|
11
|
-
isFavorite: QueryBooleanSchema.optional(),
|
|
12
|
-
createdAtSortOrder: z.nativeEnum(JOB_SORT).optional().default(JOB_SORT.DESC),
|
|
13
|
-
status: z.nativeEnum(TOOL_JOB_STATUS).optional(),
|
|
14
9
|
});
|
|
15
10
|
export type RequestQuery = z.infer<typeof RequestQuerySchema>;
|
|
16
11
|
|
|
@@ -7,4 +7,3 @@ export * from './retry-spell-corrector-job.command';
|
|
|
7
7
|
export * from './find-spell-corrector-job-by-uuid.command';
|
|
8
8
|
export * from './find-spell-corrector-jobs.command';
|
|
9
9
|
export * from './get-spell-corrector-tool-config.command';
|
|
10
|
-
export * from './update-spell-corrector-job-favorite.command';
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { QueryBooleanSchema } from '../../../helpers';
|
|
3
|
-
import { JOB_SORT, TOOL_JOB_STATUS } from '../../../constants';
|
|
4
2
|
import { STTJobSchema } from '../../../models';
|
|
5
3
|
|
|
6
4
|
export namespace FindSTTJobsCommand {
|
|
@@ -8,9 +6,6 @@ export namespace FindSTTJobsCommand {
|
|
|
8
6
|
limit: z.coerce.number().min(1).optional(),
|
|
9
7
|
offset: z.coerce.number().min(0).default(0).optional(),
|
|
10
8
|
title: z.string().optional(),
|
|
11
|
-
isFavorite: QueryBooleanSchema.optional(),
|
|
12
|
-
createdAtSortOrder: z.nativeEnum(JOB_SORT).optional().default(JOB_SORT.DESC),
|
|
13
|
-
status: z.nativeEnum(TOOL_JOB_STATUS).optional(),
|
|
14
9
|
});
|
|
15
10
|
export type RequestQuery = z.infer<typeof RequestQuerySchema>;
|
|
16
11
|
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { QueryBooleanSchema } from '../../../helpers';
|
|
3
|
-
import { JOB_SORT, TOOL_JOB_STATUS } from '../../../constants';
|
|
4
2
|
import { TTSJobSchema } from '../../../models';
|
|
5
3
|
|
|
6
4
|
export namespace FindTTSJobsCommand {
|
|
@@ -8,9 +6,6 @@ export namespace FindTTSJobsCommand {
|
|
|
8
6
|
limit: z.coerce.number().min(1).optional(),
|
|
9
7
|
offset: z.coerce.number().min(0).default(0).optional(),
|
|
10
8
|
title: z.string().optional(),
|
|
11
|
-
isFavorite: QueryBooleanSchema.optional(),
|
|
12
|
-
createdAtSortOrder: z.nativeEnum(JOB_SORT).optional().default(JOB_SORT.DESC),
|
|
13
|
-
status: z.nativeEnum(TOOL_JOB_STATUS).optional(),
|
|
14
9
|
});
|
|
15
10
|
export type RequestQuery = z.infer<typeof RequestQuerySchema>;
|
|
16
11
|
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { QueryBooleanSchema } from '../../../helpers';
|
|
3
|
-
import { JOB_SORT, TOOL_JOB_STATUS } from '../../../constants';
|
|
4
2
|
import { VideoJobSchema } from '../../../models';
|
|
5
3
|
|
|
6
4
|
export namespace FindVideoJobsCommand {
|
|
@@ -8,9 +6,6 @@ export namespace FindVideoJobsCommand {
|
|
|
8
6
|
limit: z.coerce.number().min(1).optional(),
|
|
9
7
|
offset: z.coerce.number().min(0).default(0).optional(),
|
|
10
8
|
title: z.string().optional(),
|
|
11
|
-
isFavorite: QueryBooleanSchema.optional(),
|
|
12
|
-
createdAtSortOrder: z.nativeEnum(JOB_SORT).optional().default(JOB_SORT.DESC),
|
|
13
|
-
status: z.nativeEnum(TOOL_JOB_STATUS).optional(),
|
|
14
9
|
});
|
|
15
10
|
export type RequestQuery = z.infer<typeof RequestQuerySchema>;
|
|
16
11
|
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { QueryBooleanSchema } from '../../../helpers';
|
|
3
|
-
import { JOB_SORT, TOOL_JOB_STATUS } from '../../../constants';
|
|
4
2
|
import { VideoEditorJobSchema } from '../../../models';
|
|
5
3
|
|
|
6
4
|
export namespace FindVideoEditorJobsCommand {
|
|
@@ -8,9 +6,6 @@ export namespace FindVideoEditorJobsCommand {
|
|
|
8
6
|
limit: z.coerce.number().min(1).optional(),
|
|
9
7
|
offset: z.coerce.number().min(0).default(0).optional(),
|
|
10
8
|
title: z.string().optional(),
|
|
11
|
-
isFavorite: QueryBooleanSchema.optional(),
|
|
12
|
-
createdAtSortOrder: z.nativeEnum(JOB_SORT).optional().default(JOB_SORT.DESC),
|
|
13
|
-
status: z.nativeEnum(TOOL_JOB_STATUS).optional(),
|
|
14
9
|
});
|
|
15
10
|
export type RequestQuery = z.infer<typeof RequestQuerySchema>;
|
|
16
11
|
|
|
@@ -7,4 +7,3 @@ export * from './get-video-editor-config.command';
|
|
|
7
7
|
export * from './retry-video-editor-job.command';
|
|
8
8
|
export * from './set-reaction-to-video-editor-job.command';
|
|
9
9
|
export * from './update-video-editor-job-title.command';
|
|
10
|
-
export * from './update-video-editor-job-favorite.command';
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { QueryBooleanSchema } from '../../../helpers';
|
|
3
|
-
import { JOB_SORT, TOOL_JOB_STATUS } from '../../../constants';
|
|
4
2
|
import { WriterDocumentSchema } from '../../../models';
|
|
5
3
|
|
|
6
4
|
export namespace FindWriterDocumentsCommand {
|
|
@@ -8,9 +6,6 @@ export namespace FindWriterDocumentsCommand {
|
|
|
8
6
|
limit: z.coerce.number().min(1).optional(),
|
|
9
7
|
offset: z.coerce.number().min(0).default(0).optional(),
|
|
10
8
|
title: z.string().optional(),
|
|
11
|
-
isFavorite: QueryBooleanSchema.optional(),
|
|
12
|
-
createdAtSortOrder: z.nativeEnum(JOB_SORT).optional().default(JOB_SORT.DESC),
|
|
13
|
-
status: z.nativeEnum(TOOL_JOB_STATUS).optional(),
|
|
14
9
|
});
|
|
15
10
|
export type RequestQuery = z.infer<typeof RequestQuerySchema>;
|
|
16
11
|
|
|
@@ -21,4 +21,3 @@ export * from './get-writer-document-sources.command';
|
|
|
21
21
|
export * from './upload-writer-source.command';
|
|
22
22
|
export * from './confirm-source-citation-metadata.command';
|
|
23
23
|
export * from './discard-writer-source.command';
|
|
24
|
-
export * from './update-writer-document-favorite.command';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './b2b-debit-status.enum';
|
|
2
|
+
export * from './b2b-endpoint-family.enum';
|
|
3
|
+
export * from './b2b-statistics-granularity.enum';
|
|
4
|
+
export * from './b2b-statistics-period.enum';
|
|
5
|
+
export * from './b2b-usage-operation.enum';
|
|
6
|
+
export * from './b2b-usage-spend-component.enum';
|
|
7
|
+
export * from './b2b-usage-status.enum';
|
package/constants/index.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from './ai-model';
|
|
2
|
+
export * from './b2b';
|
|
2
3
|
export * from './api-key';
|
|
3
4
|
export * from './agents';
|
|
4
5
|
export * from './blog';
|
|
@@ -14,11 +15,11 @@ export * from './form-submission';
|
|
|
14
15
|
export * from './form-submission';
|
|
15
16
|
export * from './message';
|
|
16
17
|
export * from './midjourney';
|
|
18
|
+
export * from './model-page';
|
|
17
19
|
export * from './order';
|
|
18
20
|
export * from './page';
|
|
19
21
|
export * from './payment';
|
|
20
22
|
export * from './presentation';
|
|
21
|
-
export * from './photo-studio';
|
|
22
23
|
export * from './product';
|
|
23
24
|
export * from './referral';
|
|
24
25
|
export * from './roles';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './enums';
|
package/helpers/index.ts
CHANGED
package/models/agents/index.ts
CHANGED
|
@@ -22,6 +22,4 @@ export * from './agent-document-find-result.schema';
|
|
|
22
22
|
export * from './agent-document-chunk.schema';
|
|
23
23
|
export * from './agent.schema';
|
|
24
24
|
export * from './agent-aggregate.schema';
|
|
25
|
-
export * from './agent-statistics.schema';
|
|
26
25
|
export * from './channel.schema';
|
|
27
|
-
export * from './message-attachment.schema';
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import {
|
|
3
|
+
API_KEY_STATUS,
|
|
4
|
+
B2B_STATISTICS_GRANULARITY,
|
|
5
|
+
B2B_STATISTICS_PERIOD,
|
|
6
|
+
B2B_USAGE_SPEND_COMPONENT,
|
|
7
|
+
} from '../../constants';
|
|
8
|
+
import { IconVariantsSchema } from '../icon-variants.schema';
|
|
9
|
+
|
|
10
|
+
const NonNegativeNumberSchema = z.number().finite().nonnegative();
|
|
11
|
+
const PercentageSchema = z.number().finite().min(0).max(100);
|
|
12
|
+
const ChangePercentageSchema = z.number().finite().nullable();
|
|
13
|
+
|
|
14
|
+
export const B2bUsageStatisticsAppliedFilterSchema = z.object({
|
|
15
|
+
period: z.nativeEnum(B2B_STATISTICS_PERIOD),
|
|
16
|
+
dateFrom: z.string().datetime({ offset: true }),
|
|
17
|
+
dateTo: z.string().datetime({ offset: true }),
|
|
18
|
+
apiKeyId: z.string().uuid().nullable(),
|
|
19
|
+
granularity: z.nativeEnum(B2B_STATISTICS_GRANULARITY),
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
export const B2bUsageStatisticsSummarySchema = z.object({
|
|
23
|
+
totalSpent: NonNegativeNumberSchema.int(),
|
|
24
|
+
totalRequests: NonNegativeNumberSchema.int(),
|
|
25
|
+
averageCost: NonNegativeNumberSchema,
|
|
26
|
+
activeKeys: NonNegativeNumberSchema.int(),
|
|
27
|
+
totalKeys: NonNegativeNumberSchema.int(),
|
|
28
|
+
changes: z.object({
|
|
29
|
+
totalSpentPercent: ChangePercentageSchema,
|
|
30
|
+
totalRequestsPercent: ChangePercentageSchema,
|
|
31
|
+
averageCostPercent: ChangePercentageSchema,
|
|
32
|
+
activeKeysPercent: ChangePercentageSchema,
|
|
33
|
+
}),
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
export const B2bUsageStatisticsGraphPointSchema = z.object({
|
|
37
|
+
startAt: z.string().datetime({ offset: true }),
|
|
38
|
+
endAt: z.string().datetime({ offset: true }),
|
|
39
|
+
label: z.string(),
|
|
40
|
+
spent: NonNegativeNumberSchema,
|
|
41
|
+
requests: NonNegativeNumberSchema.int(),
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
export const B2bUsageStatisticsKeySchema = z.object({
|
|
45
|
+
apiKeyId: z.string().uuid(),
|
|
46
|
+
title: z.string(),
|
|
47
|
+
status: z.nativeEnum(API_KEY_STATUS),
|
|
48
|
+
isRevoked: z.boolean(),
|
|
49
|
+
isSelected: z.boolean(),
|
|
50
|
+
requests: NonNegativeNumberSchema.int(),
|
|
51
|
+
spent: NonNegativeNumberSchema,
|
|
52
|
+
sharePercent: PercentageSchema,
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
export const B2bUsageStatisticsModelSchema = z.object({
|
|
56
|
+
aiModelId: z.string().uuid().nullable(),
|
|
57
|
+
model: z.string(),
|
|
58
|
+
title: z.string(),
|
|
59
|
+
iconVariants: IconVariantsSchema.nullable(),
|
|
60
|
+
requests: NonNegativeNumberSchema.int(),
|
|
61
|
+
spent: NonNegativeNumberSchema,
|
|
62
|
+
sharePercent: PercentageSchema,
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
export const B2bUsageStatisticsSpendStructureItemSchema = z.object({
|
|
66
|
+
component: z.nativeEnum(B2B_USAGE_SPEND_COMPONENT),
|
|
67
|
+
spent: NonNegativeNumberSchema,
|
|
68
|
+
sharePercent: PercentageSchema,
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
export const B2bUsageStatisticsSchema = z.object({
|
|
72
|
+
hasData: z.boolean(),
|
|
73
|
+
appliedFilter: B2bUsageStatisticsAppliedFilterSchema,
|
|
74
|
+
summary: B2bUsageStatisticsSummarySchema,
|
|
75
|
+
graph: z.array(B2bUsageStatisticsGraphPointSchema),
|
|
76
|
+
keys: z.array(B2bUsageStatisticsKeySchema),
|
|
77
|
+
models: z.array(B2bUsageStatisticsModelSchema),
|
|
78
|
+
spendStructure: z.array(B2bUsageStatisticsSpendStructureItemSchema),
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
export type B2bUsageStatistics = z.infer<typeof B2bUsageStatisticsSchema>;
|
package/models/b2b/index.ts
CHANGED
|
@@ -84,7 +84,7 @@ export const MotionControlParamsSchema = strictObject({
|
|
|
84
84
|
export type MotionControlParams = z.infer<typeof MotionControlParamsSchema>;
|
|
85
85
|
|
|
86
86
|
export const VarGenParamsSchema = strictObject({
|
|
87
|
-
prompt: z.string()
|
|
87
|
+
prompt: z.string(),
|
|
88
88
|
modelId: z.string(),
|
|
89
89
|
modelName: z.string(),
|
|
90
90
|
});
|
|
@@ -137,7 +137,7 @@ export const MotionControlOutputSchema = strictObject({
|
|
|
137
137
|
export type MotionControlOutput = z.infer<typeof MotionControlOutputSchema>;
|
|
138
138
|
|
|
139
139
|
export const VarGenOutputSchema = strictObject({
|
|
140
|
-
variables: z.record(z.string()
|
|
140
|
+
variables: z.record(z.string()),
|
|
141
141
|
});
|
|
142
142
|
export type VarGenOutput = z.infer<typeof VarGenOutputSchema>;
|
|
143
143
|
|
package/models/file.schema.ts
CHANGED
|
@@ -1,18 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { FILE_TYPE } from '../constants';
|
|
3
3
|
|
|
4
|
-
export const FileResolutionSchema = z.object({
|
|
5
|
-
width: z.number().int().positive(),
|
|
6
|
-
height: z.number().int().positive(),
|
|
7
|
-
});
|
|
8
|
-
export type FileResolution = z.infer<typeof FileResolutionSchema>;
|
|
9
|
-
|
|
10
4
|
export const FileSchema = z.object({
|
|
11
5
|
uuid: z.string().uuid(),
|
|
12
6
|
name: z.string(),
|
|
13
7
|
size: z.number(),
|
|
14
|
-
originalName: z.string().nullable().optional(),
|
|
15
|
-
resolution: FileResolutionSchema.nullable().optional(),
|
|
16
8
|
mimeType: z.string(),
|
|
17
9
|
url: z.string(),
|
|
18
10
|
key: z.string(),
|
package/models/index.ts
CHANGED
|
@@ -22,11 +22,11 @@ export * from './file.schema';
|
|
|
22
22
|
export * from './key-value.schema';
|
|
23
23
|
export * from './form-submission.schema';
|
|
24
24
|
export * from './icon-variants.schema';
|
|
25
|
-
export * from './photo-studio';
|
|
26
25
|
export * from './lesson.schema';
|
|
27
26
|
export * from './lesson-translation.schema';
|
|
28
27
|
export * from './message.schema';
|
|
29
28
|
export * from './midjourney-job.schema';
|
|
29
|
+
export * from './model-page';
|
|
30
30
|
export * from './order.schema';
|
|
31
31
|
export * from './page.schema';
|
|
32
32
|
export * from './page-translation.schema';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from './model-page-public.schema';
|
|
2
|
+
export * from './model-page-question-translation.schema';
|
|
3
|
+
export * from './model-page-question.schema';
|
|
4
|
+
export * from './model-page-technical-model.schema';
|
|
5
|
+
export * from './model-page-translation.schema';
|
|
6
|
+
export * from './model-page.schema';
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { MODEL_PAGE_QUESTION_TYPE, MODEL_PAGE_TYPE } from '../../constants';
|
|
3
|
+
import {
|
|
4
|
+
ModelPageCardSchema,
|
|
5
|
+
ModelPageTechnicalModelSchema,
|
|
6
|
+
ModelPageVendorSchema,
|
|
7
|
+
} from './model-page-technical-model.schema';
|
|
8
|
+
|
|
9
|
+
export const ModelPageCodeSnippetSchema = z.object({
|
|
10
|
+
language: z.string(),
|
|
11
|
+
code: z.string(),
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
export type ModelPageCodeSnippet = z.infer<typeof ModelPageCodeSnippetSchema>;
|
|
15
|
+
|
|
16
|
+
export const ModelPageCodeExampleSchema = z.object({
|
|
17
|
+
provider: z.string(),
|
|
18
|
+
snippets: z.array(ModelPageCodeSnippetSchema),
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
export type ModelPageCodeExample = z.infer<typeof ModelPageCodeExampleSchema>;
|
|
22
|
+
|
|
23
|
+
export const ModelPageSimilarModelSchema = z.object({
|
|
24
|
+
uuid: z.string().uuid(),
|
|
25
|
+
slug: z.string(),
|
|
26
|
+
name: z.string(),
|
|
27
|
+
type: z.nativeEnum(MODEL_PAGE_TYPE),
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
export type ModelPageSimilarModel = z.infer<typeof ModelPageSimilarModelSchema>;
|
|
31
|
+
|
|
32
|
+
export const ModelPageFaqSchema = z.object({
|
|
33
|
+
uuid: z.string().uuid(),
|
|
34
|
+
question: z.string(),
|
|
35
|
+
answer: z.string(),
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
export type ModelPageFaq = z.infer<typeof ModelPageFaqSchema>;
|
|
39
|
+
|
|
40
|
+
export const ModelPageHubSchema = z.object({
|
|
41
|
+
pages: z.array(
|
|
42
|
+
z.object({
|
|
43
|
+
type: z.nativeEnum(MODEL_PAGE_TYPE),
|
|
44
|
+
aiModels: z.array(ModelPageCardSchema),
|
|
45
|
+
}),
|
|
46
|
+
),
|
|
47
|
+
total: z.number().int().min(0),
|
|
48
|
+
page: z.number().int().min(1),
|
|
49
|
+
limit: z.number().int().min(1),
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
export type ModelPageHub = z.infer<typeof ModelPageHubSchema>;
|
|
53
|
+
|
|
54
|
+
export const ModelPageDetailSchema = z.object({
|
|
55
|
+
uuid: z.string().uuid(),
|
|
56
|
+
slug: z.string(),
|
|
57
|
+
description: z.string(),
|
|
58
|
+
documentation: z.string(),
|
|
59
|
+
codeExamples: z.array(ModelPageCodeExampleSchema),
|
|
60
|
+
aiModel: ModelPageTechnicalModelSchema,
|
|
61
|
+
similarModels: z.array(ModelPageSimilarModelSchema),
|
|
62
|
+
questions: z.array(ModelPageFaqSchema),
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
export type ModelPageDetail = z.infer<typeof ModelPageDetailSchema>;
|
|
66
|
+
|
|
67
|
+
export const ModelPageQuestionTypeListSchema = z.object({
|
|
68
|
+
questionType: z.nativeEnum(MODEL_PAGE_QUESTION_TYPE),
|
|
69
|
+
vendors: z.array(
|
|
70
|
+
z.object({
|
|
71
|
+
vendor: ModelPageVendorSchema,
|
|
72
|
+
models: z.array(
|
|
73
|
+
z.object({
|
|
74
|
+
name: z.string(),
|
|
75
|
+
slug: z.string(),
|
|
76
|
+
}),
|
|
77
|
+
),
|
|
78
|
+
}),
|
|
79
|
+
),
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
export type ModelPageQuestionTypeList = z.infer<typeof ModelPageQuestionTypeListSchema>;
|
|
83
|
+
|
|
84
|
+
export const ModelPageAnswerDetailSchema = z.object({
|
|
85
|
+
uuid: z.string().uuid(),
|
|
86
|
+
slug: z.string(),
|
|
87
|
+
questionType: z.nativeEnum(MODEL_PAGE_QUESTION_TYPE),
|
|
88
|
+
answer: z.string(),
|
|
89
|
+
codeExamples: z.array(ModelPageCodeExampleSchema),
|
|
90
|
+
aiModel: ModelPageTechnicalModelSchema,
|
|
91
|
+
similarModels: z.array(ModelPageSimilarModelSchema),
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
export type ModelPageAnswerDetail = z.infer<typeof ModelPageAnswerDetailSchema>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LOCALE } from '@purpleschool/rugpt-lib-common';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
|
|
4
|
+
export const ModelPageQuestionTranslationSchema = z.object({
|
|
5
|
+
uuid: z.string().uuid(),
|
|
6
|
+
modelPageQuestionId: z.string().uuid(),
|
|
7
|
+
locale: z.nativeEnum(LOCALE),
|
|
8
|
+
answer: z.string(),
|
|
9
|
+
createdAt: z.date(),
|
|
10
|
+
updatedAt: z.date(),
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
export type ModelPageQuestionTranslation = z.infer<typeof ModelPageQuestionTranslationSchema>;
|