@purpleschool/gptbot 0.8.55 → 0.8.57
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/ai-model.ts +0 -1
- package/api/controllers/http/ai-proxy.ts +5 -0
- package/api/controllers/http/b2b.ts +10 -0
- package/api/controllers/http/index.ts +2 -4
- package/api/controllers/http/page.ts +0 -1
- package/api/controllers/http/paraphrase.ts +0 -6
- package/api/controllers/http/payment.ts +0 -1
- package/api/controllers/http/presentation.ts +0 -1
- package/api/controllers/http/product.ts +1 -1
- package/api/controllers/http/referral.ts +1 -1
- package/api/controllers/http/review.ts +0 -1
- package/api/controllers/http/subscription.ts +1 -1
- package/api/controllers/http/ui-notification.ts +2 -2
- package/api/controllers/http/user-to-subscription.ts +0 -1
- package/api/controllers/http/user.ts +0 -2
- package/api/routes.ts +27 -141
- package/build/api/controllers/http/ai-model.js +0 -1
- package/build/api/controllers/http/ai-proxy.js +7 -0
- package/build/api/controllers/http/b2b.js +12 -0
- package/build/api/controllers/http/index.js +2 -4
- package/build/api/controllers/http/page.js +0 -1
- package/build/api/controllers/http/paraphrase.js +0 -6
- package/build/api/controllers/http/payment.js +0 -1
- package/build/api/controllers/http/presentation.js +0 -1
- package/build/api/controllers/http/product.js +1 -1
- package/build/api/controllers/http/referral.js +1 -1
- package/build/api/controllers/http/review.js +0 -1
- package/build/api/controllers/http/subscription.js +1 -1
- package/build/api/controllers/http/ui-notification.js +2 -2
- package/build/api/controllers/http/user-to-subscription.js +0 -1
- package/build/api/controllers/http/user.js +0 -2
- package/build/api/routes.js +27 -101
- package/build/commands/ai-model/index.js +0 -2
- package/build/commands/b2b/get-api-key.command.js +12 -0
- package/build/{constants/community/community-post-report/enums → commands/b2b}/index.js +5 -1
- package/build/commands/b2b/refresh-api-key.command.js +12 -0
- package/build/commands/b2b/send-image-request.command.js +24 -0
- package/build/commands/b2b/send-text-request.command.js +22 -0
- package/build/commands/b2b/submit-balance-top-up-form.command.js +19 -0
- package/build/commands/folder/find-folder-by-uuid-with-chats.command.js +0 -1
- package/build/commands/folder/find-folders-by-user.command.js +0 -1
- package/build/commands/index.js +1 -2
- package/build/commands/payment/check.command.js +1 -1
- package/build/commands/payment/index.js +0 -1
- package/build/commands/review/create-review.command.js +1 -1
- package/build/commands/review/find-reviews.command.js +1 -1
- package/build/commands/review/index.js +0 -2
- package/build/commands/subscription/create-custom-subscription-plan.command.js +1 -1
- package/build/commands/tools/image-editor/retry-image-editor-job.command.js +0 -10
- package/build/commands/tools/image-editor/set-reaction-to-image-editor-job.command.js +1 -11
- package/build/commands/tools/index.js +0 -1
- package/build/commands/tools/music/retry-music-job.command.js +0 -4
- package/build/commands/tools/music/set-reaction-to-music-job.command.js +1 -11
- package/build/commands/tools/paraphrase/index.js +1 -7
- package/build/commands/tools/presentation/index.js +0 -1
- package/build/commands/tools/stt/set-reaction-to-stt-job.command.js +1 -11
- package/build/commands/tools/tts/set-reaction-to-tts-job.command.js +1 -11
- package/build/commands/tools/video/retry-video-job.command.js +0 -5
- package/build/commands/tools/video/set-reaction-to-video-job.command.js +1 -11
- package/build/commands/tools/video-editor/retry-video-editor-job.command.js +0 -5
- package/build/commands/tools/video-editor/set-reaction-to-video-editor-job.command.js +1 -11
- package/build/commands/tools/writer/set-reaction.writer-document.command.js +1 -11
- package/build/commands/user/find-users-by-criteria.command.js +1 -1
- package/build/commands/user/get-me.command.js +0 -2
- package/build/commands/user/get-user-products.command.js +1 -1
- package/build/commands/user/get-user-subscriptions.command.js +1 -1
- package/build/commands/user/index.js +0 -2
- package/build/commands/user-to-subscription/index.js +0 -1
- package/build/commands/webmaster-click/get-webmaster-clicks-overview.command.js +6 -3
- package/build/constants/cloud-payments/index.js +1 -2
- package/build/constants/errors/errors.js +21 -257
- package/build/constants/form-submission/enums/form-type.enum.js +1 -0
- package/build/constants/index.js +0 -4
- package/build/constants/page/enums/page-type.enum.js +0 -1
- package/build/constants/payment/enums/index.js +0 -1
- package/build/constants/payment/enums/payment-status.enum.js +0 -1
- package/build/constants/presentation/enums/slide-content-type.enum.js +0 -1
- package/build/constants/presentation/maps/slide-layout-map.constant.js +0 -1
- package/build/constants/subscription/enums/subscription-feature-type.enum.js +0 -6
- package/build/constants/subscription/enums/subscription-status.enum.js +2 -2
- package/build/constants/tool/enums/index.js +0 -1
- package/build/constants/tool/enums/tool-job-status.enum.js +0 -1
- package/build/constants/tool-video/enums/video-pricing-rule-type.enum.js +0 -1
- package/build/helpers/index.js +0 -2
- package/build/helpers/video/calculate-video-price.helper.js +1 -5
- package/build/models/api-key.schema.js +15 -0
- package/build/models/index.js +1 -2
- package/build/models/order.schema.js +0 -1
- package/build/models/page.schema.js +1 -2
- package/build/models/payment.schema.js +2 -5
- package/build/models/review.schema.js +0 -2
- package/build/models/subscription-feature.schema.js +1 -27
- package/build/models/tool.schema.js +0 -3
- package/build/models/tools/image-editor/image-editor-config.schema.js +0 -1
- package/build/models/tools/image-editor/image-editor-job.schema.js +2 -9
- package/build/models/tools/image-editor/image-editor-model.schema.js +1 -9
- package/build/models/tools/index.js +0 -2
- package/build/models/tools/music/music-track.schema.js +0 -1
- package/build/models/tools/paraphrase/paraphrase-job.schema.js +0 -5
- package/build/models/tools/presentation/pptx-export-payload.schema.js +1 -34
- package/build/models/tools/presentation/slide-content-edit.schema.js +1 -18
- package/build/models/tools/presentation/slide-content.schema.js +1 -26
- package/build/models/tools/stt/stt-job.schema.js +0 -1
- package/build/models/tools/tts/tts-job.schema.js +0 -1
- package/build/models/tools/video/video-job.schema.js +0 -2
- package/build/models/tools/video/video-model.schema.js +1 -8
- package/build/models/tools/video-editor/video-editor-job.schema.js +0 -1
- package/build/models/tools/writer/writer-document-outline.schema.js +2 -1
- package/build/models/webmaster-click.schema.js +2 -2
- package/commands/ai-model/index.ts +0 -2
- package/commands/{community/get-count-of-likes-on-my-posts.command.ts → b2b/get-api-key.command.ts} +4 -2
- package/commands/b2b/index.ts +5 -0
- package/commands/{tools/image-generation/delete-all-image-generation-jobs.command.ts → b2b/refresh-api-key.command.ts} +5 -2
- package/commands/b2b/send-image-request.command.ts +28 -0
- package/commands/b2b/send-text-request.command.ts +26 -0
- package/commands/b2b/submit-balance-top-up-form.command.ts +20 -0
- package/commands/folder/find-folder-by-uuid-with-chats.command.ts +0 -1
- package/commands/folder/find-folders-by-user.command.ts +0 -1
- package/commands/index.ts +1 -2
- package/commands/payment/check.command.ts +1 -1
- package/commands/payment/index.ts +0 -1
- package/commands/review/create-review.command.ts +1 -1
- package/commands/review/find-reviews.command.ts +1 -1
- package/commands/review/index.ts +0 -2
- package/commands/subscription/create-custom-subscription-plan.command.ts +1 -1
- package/commands/tools/image-editor/retry-image-editor-job.command.ts +1 -13
- package/commands/tools/image-editor/set-reaction-to-image-editor-job.command.ts +3 -16
- package/commands/tools/index.ts +0 -1
- package/commands/tools/music/retry-music-job.command.ts +1 -7
- package/commands/tools/music/set-reaction-to-music-job.command.ts +3 -16
- package/commands/tools/paraphrase/index.ts +1 -7
- package/commands/tools/presentation/index.ts +0 -1
- package/commands/tools/stt/set-reaction-to-stt-job.command.ts +3 -16
- package/commands/tools/tts/set-reaction-to-tts-job.command.ts +3 -16
- package/commands/tools/video/retry-video-job.command.ts +1 -8
- package/commands/tools/video/set-reaction-to-video-job.command.ts +3 -16
- package/commands/tools/video-editor/retry-video-editor-job.command.ts +0 -7
- package/commands/tools/video-editor/set-reaction-to-video-editor-job.command.ts +3 -16
- package/commands/tools/writer/set-reaction.writer-document.command.ts +3 -16
- package/commands/user/find-users-by-criteria.command.ts +1 -1
- package/commands/user/get-me.command.ts +0 -2
- package/commands/user/get-user-products.command.ts +2 -2
- package/commands/user/get-user-subscriptions.command.ts +2 -2
- package/commands/user/index.ts +0 -2
- package/commands/user-to-subscription/index.ts +0 -1
- package/commands/webmaster-click/get-webmaster-clicks-overview.command.ts +8 -3
- package/constants/cloud-payments/index.ts +0 -2
- package/constants/errors/errors.ts +21 -258
- package/constants/form-submission/enums/form-type.enum.ts +1 -0
- package/constants/index.ts +0 -4
- package/constants/page/enums/page-type.enum.ts +0 -1
- package/constants/payment/enums/index.ts +0 -1
- package/constants/payment/enums/payment-status.enum.ts +0 -1
- package/constants/presentation/enums/slide-content-type.enum.ts +0 -1
- package/constants/presentation/maps/slide-layout-map.constant.ts +0 -1
- package/constants/subscription/enums/subscription-feature-type.enum.ts +0 -6
- package/constants/subscription/enums/subscription-status.enum.ts +2 -2
- package/constants/tool/enums/index.ts +0 -1
- package/constants/tool/enums/tool-job-status.enum.ts +0 -1
- package/constants/tool-video/enums/video-pricing-rule-type.enum.ts +0 -1
- package/helpers/index.ts +0 -2
- package/helpers/video/calculate-video-price.helper.ts +1 -7
- package/models/api-key.schema.ts +10 -0
- package/models/index.ts +1 -2
- package/models/order.schema.ts +0 -1
- package/models/page.schema.ts +1 -2
- package/models/payment.schema.ts +1 -5
- package/models/review.schema.ts +0 -2
- package/models/subscription-feature.schema.ts +0 -34
- package/models/tool.schema.ts +0 -3
- package/models/tools/image-editor/image-editor-config.schema.ts +0 -1
- package/models/tools/image-editor/image-editor-job.schema.ts +2 -11
- package/models/tools/image-editor/image-editor-model.schema.ts +0 -16
- package/models/tools/index.ts +0 -2
- package/models/tools/music/music-track.schema.ts +0 -1
- package/models/tools/paraphrase/paraphrase-job.schema.ts +0 -5
- package/models/tools/presentation/pptx-export-payload.schema.ts +0 -34
- package/models/tools/presentation/slide-content-edit.schema.ts +0 -21
- package/models/tools/presentation/slide-content.schema.ts +0 -45
- package/models/tools/stt/stt-job.schema.ts +0 -1
- package/models/tools/tts/tts-job.schema.ts +0 -1
- package/models/tools/video/video-job.schema.ts +0 -2
- package/models/tools/video/video-model.schema.ts +1 -8
- package/models/tools/video-editor/video-editor-job.schema.ts +0 -1
- package/models/tools/writer/writer-document-outline.schema.ts +2 -1
- package/models/webmaster-click.schema.ts +2 -2
- package/package.json +1 -1
- package/api/controllers/http/community.ts +0 -25
- package/api/controllers/http/image-generation.ts +0 -14
- package/api/controllers/http/kie.ts +0 -5
- package/api/controllers/http/user-profile.ts +0 -8
- package/build/api/controllers/http/community.js +0 -25
- package/build/api/controllers/http/image-generation.js +0 -16
- package/build/api/controllers/http/kie.js +0 -7
- package/build/api/controllers/http/user-profile.js +0 -10
- package/build/commands/ai-model/find-formatted-ai-model-v2.command.js +0 -23
- package/build/commands/ai-model/find-model-pages.command.js +0 -31
- package/build/commands/community/archive-community-post.command.js +0 -13
- package/build/commands/community/create-community-post.command.js +0 -34
- package/build/commands/community/delete-community-post.command.js +0 -13
- package/build/commands/community/get-all-community-posts-by-criteria.command.js +0 -25
- package/build/commands/community/get-community-post-by-uuid.command.js +0 -14
- package/build/commands/community/get-count-of-likes-on-my-posts.command.js +0 -10
- package/build/commands/community/get-my-community-posts-by-criteria.command.js +0 -32
- package/build/commands/community/get-my-favorite-community-posts.command.js +0 -19
- package/build/commands/community/get-my-likes-community-posts.command.js +0 -19
- package/build/commands/community/index.js +0 -29
- package/build/commands/community/send-report-to-community-post.command.js +0 -15
- package/build/commands/community/set-favorite-community-post.command.js +0 -13
- package/build/commands/community/set-like-community-post.command.js +0 -14
- package/build/commands/community/share-my-community-post.command.js +0 -13
- package/build/commands/payment/refund-payment.command.js +0 -15
- package/build/commands/review/find-all-reviews.command.js +0 -20
- package/build/commands/review/get-review-count.command.js +0 -15
- package/build/commands/tools/image-generation/delete-all-image-generation-jobs.command.js +0 -10
- package/build/commands/tools/image-generation/delete-image-generation-job-by-uuid.command.js +0 -13
- package/build/commands/tools/image-generation/find-image-generation-job-by-uuid.command.js +0 -14
- package/build/commands/tools/image-generation/find-image-generation-jobs.command.js +0 -18
- package/build/commands/tools/image-generation/get-image-generation-config.command.js +0 -11
- package/build/commands/tools/image-generation/image-generation.command.js +0 -23
- package/build/commands/tools/image-generation/index.js +0 -24
- package/build/commands/tools/image-generation/set-reaction-to-image-generation-job.command.js +0 -28
- package/build/commands/tools/image-generation/update-image-generation-job-title.command.js +0 -17
- package/build/commands/tools/paraphrase/delete-all-paraphrase-jobs.command.js +0 -8
- package/build/commands/tools/paraphrase/delete-paraphrase-job-by-uuid.command.js +0 -11
- package/build/commands/tools/paraphrase/find-paraphrase-jobs.command.js +0 -18
- package/build/commands/tools/paraphrase/retry-paraphrase-job.command.js +0 -14
- package/build/commands/tools/paraphrase/set-reaction-to-paraphrase-job.command.js +0 -28
- package/build/commands/tools/paraphrase/update-paraphrase-job-title.command.js +0 -17
- package/build/commands/tools/presentation/set-reaction-to-presentation.command.js +0 -28
- package/build/commands/user/cancel-user-subscription.command.js +0 -21
- package/build/commands/user/get-user-payments.command.js +0 -26
- package/build/commands/user-profile/delete-avatar.command.js +0 -12
- package/build/commands/user-profile/get-user-profile-by-user-id.command.js +0 -14
- package/build/commands/user-profile/index.js +0 -20
- package/build/commands/user-profile/update-profile.command.js +0 -14
- package/build/commands/user-profile/upload-avatar.command.js +0 -11
- package/build/commands/user-to-subscription/delete-user-to-subscription.command.js +0 -16
- package/build/constants/community/community-post-report/enums/community-post-report-reason.enum.js +0 -18
- package/build/constants/community/community-post-report/index.js +0 -17
- package/build/constants/community/default-pagination.constant.js +0 -6
- package/build/constants/community/enums/community-aspect-ratio.enum.js +0 -11
- package/build/constants/community/enums/community-post-visibility.enum.js +0 -8
- package/build/constants/community/enums/community-status.enum.js +0 -11
- package/build/constants/community/enums/community-tool-type.enum.js +0 -10
- package/build/constants/community/enums/community-type.enum.js +0 -11
- package/build/constants/community/enums/index.js +0 -21
- package/build/constants/community/index.js +0 -19
- package/build/constants/model/enums/index.js +0 -17
- package/build/constants/model/enums/unified-model-content-type.enum.js +0 -21
- package/build/constants/model/index.js +0 -17
- package/build/constants/payment/enums/payment-sort-by.enum.js +0 -10
- package/build/constants/tool/enums/tool-content-type.enum.js +0 -17
- package/build/constants/tool-image-generation/enums/image-generation-resolution.enum.js +0 -9
- package/build/constants/tool-image-generation/enums/index.js +0 -17
- package/build/constants/tool-image-generation/index.js +0 -17
- package/build/constants/user-profile/index.js +0 -17
- package/build/constants/user-profile/user-profile.constant.js +0 -10
- package/build/helpers/image-editor/calculate-image-editor-price.helper.js +0 -13
- package/build/helpers/image-editor/index.js +0 -17
- package/build/helpers/image-generation/calculate-image-generation-price.helper.js +0 -16
- package/build/helpers/image-generation/index.js +0 -17
- package/build/models/community/community-post-media-data.schema.js +0 -53
- package/build/models/community/community-post-report/community-post-report.schema.js +0 -13
- package/build/models/community/community-post-report/index.js +0 -17
- package/build/models/community/community-post.schema.js +0 -44
- package/build/models/community/index.js +0 -19
- package/build/models/tools/common/attached-tool-file.schema.js +0 -13
- package/build/models/tools/common/index.js +0 -17
- package/build/models/tools/image-generation/image-generation-config.schema.js +0 -23
- package/build/models/tools/image-generation/image-generation-job.schema.js +0 -34
- package/build/models/tools/image-generation/image-generation-model.schema.js +0 -41
- package/build/models/tools/image-generation/index.js +0 -19
- package/build/models/user-profile.schema.js +0 -16
- package/commands/ai-model/find-formatted-ai-model-v2.command.ts +0 -23
- package/commands/ai-model/find-model-pages.command.ts +0 -34
- package/commands/community/archive-community-post.command.ts +0 -13
- package/commands/community/create-community-post.command.ts +0 -40
- package/commands/community/delete-community-post.command.ts +0 -13
- package/commands/community/get-all-community-posts-by-criteria.command.ts +0 -29
- package/commands/community/get-community-post-by-uuid.command.ts +0 -16
- package/commands/community/get-my-community-posts-by-criteria.command.ts +0 -40
- package/commands/community/get-my-favorite-community-posts.command.ts +0 -19
- package/commands/community/get-my-likes-community-posts.command.ts +0 -19
- package/commands/community/index.ts +0 -13
- package/commands/community/send-report-to-community-post.command.ts +0 -17
- package/commands/community/set-favorite-community-post.command.ts +0 -13
- package/commands/community/set-like-community-post.command.ts +0 -14
- package/commands/community/share-my-community-post.command.ts +0 -13
- package/commands/payment/refund-payment.command.ts +0 -17
- package/commands/review/find-all-reviews.command.ts +0 -19
- package/commands/review/get-review-count.command.ts +0 -13
- package/commands/tools/image-generation/delete-image-generation-job-by-uuid.command.ts +0 -13
- package/commands/tools/image-generation/find-image-generation-job-by-uuid.command.ts +0 -16
- package/commands/tools/image-generation/find-image-generation-jobs.command.ts +0 -18
- package/commands/tools/image-generation/get-image-generation-config.command.ts +0 -9
- package/commands/tools/image-generation/image-generation.command.ts +0 -25
- package/commands/tools/image-generation/index.ts +0 -8
- package/commands/tools/image-generation/set-reaction-to-image-generation-job.command.ts +0 -33
- package/commands/tools/image-generation/update-image-generation-job-title.command.ts +0 -19
- package/commands/tools/paraphrase/delete-all-paraphrase-jobs.command.ts +0 -6
- package/commands/tools/paraphrase/delete-paraphrase-job-by-uuid.command.ts +0 -11
- package/commands/tools/paraphrase/find-paraphrase-jobs.command.ts +0 -18
- package/commands/tools/paraphrase/retry-paraphrase-job.command.ts +0 -14
- package/commands/tools/paraphrase/set-reaction-to-paraphrase-job.command.ts +0 -33
- package/commands/tools/paraphrase/update-paraphrase-job-title.command.ts +0 -19
- package/commands/tools/presentation/set-reaction-to-presentation.command.ts +0 -33
- package/commands/user/cancel-user-subscription.command.ts +0 -21
- package/commands/user/get-user-payments.command.ts +0 -27
- package/commands/user-profile/delete-avatar.command.ts +0 -14
- package/commands/user-profile/get-user-profile-by-user-id.command.ts +0 -16
- package/commands/user-profile/index.ts +0 -4
- package/commands/user-profile/update-profile.command.ts +0 -16
- package/commands/user-profile/upload-avatar.command.ts +0 -10
- package/commands/user-to-subscription/delete-user-to-subscription.command.ts +0 -18
- package/constants/community/community-post-report/enums/community-post-report-reason.enum.ts +0 -14
- package/constants/community/community-post-report/enums/index.ts +0 -1
- package/constants/community/community-post-report/index.ts +0 -1
- package/constants/community/default-pagination.constant.ts +0 -4
- package/constants/community/enums/community-aspect-ratio.enum.ts +0 -7
- package/constants/community/enums/community-post-visibility.enum.ts +0 -4
- package/constants/community/enums/community-status.enum.ts +0 -7
- package/constants/community/enums/community-tool-type.enum.ts +0 -6
- package/constants/community/enums/community-type.enum.ts +0 -7
- package/constants/community/enums/index.ts +0 -5
- package/constants/community/index.ts +0 -3
- package/constants/model/enums/index.ts +0 -1
- package/constants/model/enums/unified-model-content-type.enum.ts +0 -17
- package/constants/model/index.ts +0 -1
- package/constants/payment/enums/payment-sort-by.enum.ts +0 -6
- package/constants/tool/enums/tool-content-type.enum.ts +0 -13
- package/constants/tool-image-generation/enums/image-generation-resolution.enum.ts +0 -5
- package/constants/tool-image-generation/enums/index.ts +0 -1
- package/constants/tool-image-generation/index.ts +0 -1
- package/constants/user-profile/index.ts +0 -1
- package/constants/user-profile/user-profile.constant.ts +0 -14
- package/helpers/image-editor/calculate-image-editor-price.helper.ts +0 -23
- package/helpers/image-editor/index.ts +0 -1
- package/helpers/image-generation/calculate-image-generation-price.helper.ts +0 -29
- package/helpers/image-generation/index.ts +0 -1
- package/models/community/community-post-media-data.schema.ts +0 -65
- package/models/community/community-post-report/community-post-report.schema.ts +0 -11
- package/models/community/community-post-report/index.ts +0 -1
- package/models/community/community-post.schema.ts +0 -48
- package/models/community/index.ts +0 -3
- package/models/tools/common/attached-tool-file.schema.ts +0 -13
- package/models/tools/common/index.ts +0 -1
- package/models/tools/image-generation/image-generation-config.schema.ts +0 -29
- package/models/tools/image-generation/image-generation-job.schema.ts +0 -41
- package/models/tools/image-generation/image-generation-model.schema.ts +0 -52
- package/models/tools/image-generation/index.ts +0 -3
- package/models/user-profile.schema.ts +0 -15
package/models/tools/index.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export * from './common';
|
|
2
1
|
export * from './language';
|
|
3
2
|
export * from './paraphrase';
|
|
4
3
|
export * from './presentation';
|
|
@@ -9,4 +8,3 @@ export * from './writer';
|
|
|
9
8
|
export * from './image-editor';
|
|
10
9
|
export * from './video-editor';
|
|
11
10
|
export * from './music';
|
|
12
|
-
export * from './image-generation';
|
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { ToolJobSchema } from '../../tool-job.schema';
|
|
3
|
-
import { PARAPHRASING_INTENSITY, USER_REACTION } from '../../../constants';
|
|
4
3
|
|
|
5
4
|
export const ParaphraseToolJobSchema = ToolJobSchema.extend({
|
|
6
5
|
styleId: z.string().uuid().nullable().optional(),
|
|
7
6
|
modelId: z.string().uuid().nullable().optional(),
|
|
8
7
|
userInput: z.string(),
|
|
9
|
-
title: z.string(),
|
|
10
|
-
typeId: z.string(),
|
|
11
|
-
intensity: z.nativeEnum(PARAPHRASING_INTENSITY),
|
|
12
|
-
reaction: z.nativeEnum(USER_REACTION).nullable(),
|
|
13
8
|
aiOutput: z.string().nullable().optional(),
|
|
14
9
|
});
|
|
@@ -5,22 +5,8 @@ export enum PPTX_SHAPE_TYPE {
|
|
|
5
5
|
PICTURE_BOX = 'picture_box',
|
|
6
6
|
CUSTOM_SHAPE = 'custom_shape',
|
|
7
7
|
TABLE = 'table',
|
|
8
|
-
CHEVRON = 'chevron',
|
|
9
8
|
}
|
|
10
9
|
|
|
11
|
-
export enum PPTX_CHEVRON_DIRECTION {
|
|
12
|
-
RIGHT = 'right',
|
|
13
|
-
LEFT = 'left',
|
|
14
|
-
UP = 'up',
|
|
15
|
-
DOWN = 'down',
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export enum PPTX_ARROW_TYPE {
|
|
19
|
-
RIGHT = 'rightArrow',
|
|
20
|
-
LEFT = 'leftArrow',
|
|
21
|
-
UP = 'upArrow',
|
|
22
|
-
DOWN = 'downArrow',
|
|
23
|
-
}
|
|
24
10
|
export enum PPTX_H_ALIGN {
|
|
25
11
|
LEFT = 'left',
|
|
26
12
|
CENTER = 'center',
|
|
@@ -196,25 +182,6 @@ export const PPTXTableShapeSchema = z.object({
|
|
|
196
182
|
});
|
|
197
183
|
export type PPTXTableShape = z.infer<typeof PPTXTableShapeSchema>;
|
|
198
184
|
|
|
199
|
-
// Chevron
|
|
200
|
-
export const PPTXChevronShapeSchema = z.object({
|
|
201
|
-
type: z.literal(PPTX_SHAPE_TYPE.CHEVRON),
|
|
202
|
-
direction: z.nativeEnum(PPTX_CHEVRON_DIRECTION).default(PPTX_CHEVRON_DIRECTION.RIGHT),
|
|
203
|
-
position: PPTXPositionSchema,
|
|
204
|
-
fill: PPTXFillSchema.optional(),
|
|
205
|
-
text: z.string().optional(),
|
|
206
|
-
font: PPTXFontSchema.optional(),
|
|
207
|
-
align: z
|
|
208
|
-
.nativeEnum(PPTX_H_ALIGN)
|
|
209
|
-
.optional()
|
|
210
|
-
.default('center' as PPTX_H_ALIGN),
|
|
211
|
-
valign: z
|
|
212
|
-
.nativeEnum(PPTX_V_ALIGN)
|
|
213
|
-
.optional()
|
|
214
|
-
.default('middle' as PPTX_V_ALIGN),
|
|
215
|
-
});
|
|
216
|
-
export type PPTXChevronShape = z.infer<typeof PPTXChevronShapeSchema>;
|
|
217
|
-
|
|
218
185
|
// Overview
|
|
219
186
|
|
|
220
187
|
export const PPTXShapeSchema = z.discriminatedUnion('type', [
|
|
@@ -222,7 +189,6 @@ export const PPTXShapeSchema = z.discriminatedUnion('type', [
|
|
|
222
189
|
PPTXPictureBoxSchema,
|
|
223
190
|
PPTXCustomShapeSchema,
|
|
224
191
|
PPTXTableShapeSchema,
|
|
225
|
-
PPTXChevronShapeSchema,
|
|
226
192
|
]);
|
|
227
193
|
export type PPTXShape = z.infer<typeof PPTXShapeSchema>;
|
|
228
194
|
|
|
@@ -12,7 +12,6 @@ import {
|
|
|
12
12
|
IBarChartSlideDataStructure,
|
|
13
13
|
IChartSlideDataStructure,
|
|
14
14
|
ImageSlotSchema,
|
|
15
|
-
ITimelineSlideDataStructure,
|
|
16
15
|
} from './slide-content.schema';
|
|
17
16
|
import { SLIDE_CONTENT_TYPE } from '../../../constants';
|
|
18
17
|
|
|
@@ -141,25 +140,6 @@ export const ChartSlideDataUserEditSchema = z.object({
|
|
|
141
140
|
version: z.literal(1),
|
|
142
141
|
}) satisfies z.ZodType<IChartSlideDataStructure>;
|
|
143
142
|
|
|
144
|
-
export const TimelineSlideDataUserEditSchema = z.object({
|
|
145
|
-
contentType: z.literal(SLIDE_CONTENT_TYPE.TIMELINE),
|
|
146
|
-
title: z.string().min(1).max(500),
|
|
147
|
-
description: z.string().min(1).max(1000),
|
|
148
|
-
timeline: z.object({
|
|
149
|
-
events: z
|
|
150
|
-
.array(
|
|
151
|
-
z.object({
|
|
152
|
-
date: z.string().min(1).max(100),
|
|
153
|
-
title: z.string().min(1).max(200),
|
|
154
|
-
description: z.string().min(1).max(500),
|
|
155
|
-
}),
|
|
156
|
-
)
|
|
157
|
-
.min(2)
|
|
158
|
-
.max(10),
|
|
159
|
-
}),
|
|
160
|
-
version: z.literal(1),
|
|
161
|
-
}) satisfies z.ZodType<ITimelineSlideDataStructure>;
|
|
162
|
-
|
|
163
143
|
export const SlideContentUserEditSchema = z.discriminatedUnion('contentType', [
|
|
164
144
|
CoverSlideDataUserEditSchema,
|
|
165
145
|
StructuredListSlideDataUserEditSchema,
|
|
@@ -170,6 +150,5 @@ export const SlideContentUserEditSchema = z.discriminatedUnion('contentType', [
|
|
|
170
150
|
ThankYouSlideDataUserEditSchema,
|
|
171
151
|
TableSlideDataUserEditSchema,
|
|
172
152
|
ChartSlideDataUserEditSchema,
|
|
173
|
-
TimelineSlideDataUserEditSchema,
|
|
174
153
|
]);
|
|
175
154
|
export type SlideContentUserEdit = z.infer<typeof SlideContentUserEditSchema>;
|
|
@@ -108,20 +108,6 @@ export interface IChartSlideDataStructure {
|
|
|
108
108
|
version: 1;
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
export interface ITimelineSlideDataStructure {
|
|
112
|
-
contentType: SLIDE_CONTENT_TYPE.TIMELINE;
|
|
113
|
-
title: string;
|
|
114
|
-
description: string;
|
|
115
|
-
timeline: {
|
|
116
|
-
events: Array<{
|
|
117
|
-
date: string;
|
|
118
|
-
title: string;
|
|
119
|
-
description: string;
|
|
120
|
-
}>;
|
|
121
|
-
};
|
|
122
|
-
version: 1;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
111
|
export const CoverSlideDataSchema = z.object({
|
|
126
112
|
contentType: z.literal(SLIDE_CONTENT_TYPE.COVER),
|
|
127
113
|
title: z.string().describe('Slide title in about 6 words').min(10).max(150),
|
|
@@ -321,36 +307,6 @@ export const ChartSlideDataSchema = z.object({
|
|
|
321
307
|
}) satisfies z.ZodType<IChartSlideDataStructure>;
|
|
322
308
|
export type ChartSlideData = z.infer<typeof ChartSlideDataSchema>;
|
|
323
309
|
|
|
324
|
-
export const TimelineSlideDataSchema = z.object({
|
|
325
|
-
contentType: z.literal(SLIDE_CONTENT_TYPE.TIMELINE),
|
|
326
|
-
title: z.string().describe('Slide title in about 6 words').min(10).max(150),
|
|
327
|
-
description: z.string().describe('Brief context for the timeline').min(10).max(200),
|
|
328
|
-
timeline: z.object({
|
|
329
|
-
events: z
|
|
330
|
-
.array(
|
|
331
|
-
z.object({
|
|
332
|
-
date: z
|
|
333
|
-
.string()
|
|
334
|
-
.describe(
|
|
335
|
-
'Date or time period label. MUST be general/approximate if exact date unknown (e.g., "Early 2020s", "Mid-1990s", "Recent years")',
|
|
336
|
-
)
|
|
337
|
-
.min(2)
|
|
338
|
-
.max(50),
|
|
339
|
-
title: z.string().describe('Event title in 2-4 words').min(5).max(80),
|
|
340
|
-
description: z
|
|
341
|
-
.string()
|
|
342
|
-
.describe('Brief description of the event or milestone')
|
|
343
|
-
.min(20)
|
|
344
|
-
.max(150),
|
|
345
|
-
}),
|
|
346
|
-
)
|
|
347
|
-
.length(5)
|
|
348
|
-
.describe('Timeline must contain exactly 5 chronological events'),
|
|
349
|
-
}),
|
|
350
|
-
version: z.literal(1),
|
|
351
|
-
}) satisfies z.ZodType<ITimelineSlideDataStructure>;
|
|
352
|
-
export type TimelineSlideData = z.infer<typeof TimelineSlideDataSchema>;
|
|
353
|
-
|
|
354
310
|
export const SlideContentSchema = z.discriminatedUnion('contentType', [
|
|
355
311
|
CoverSlideDataSchema,
|
|
356
312
|
StructuredListSlideDataSchema,
|
|
@@ -361,6 +317,5 @@ export const SlideContentSchema = z.discriminatedUnion('contentType', [
|
|
|
361
317
|
ThankYouSlideDataSchema,
|
|
362
318
|
TableSlideDataSchema,
|
|
363
319
|
ChartSlideDataSchema,
|
|
364
|
-
TimelineSlideDataSchema,
|
|
365
320
|
]);
|
|
366
321
|
export type SlideContent = z.infer<typeof SlideContentSchema>;
|
|
@@ -15,7 +15,6 @@ export const TTSJobSchema = ToolJobSchema.extend({
|
|
|
15
15
|
title: z.string(),
|
|
16
16
|
reaction: z.nativeEnum(USER_REACTION).nullable(),
|
|
17
17
|
aiResponse: z.string().nullable(),
|
|
18
|
-
duration: z.string(),
|
|
19
18
|
params: TTSJobParamsSchema,
|
|
20
19
|
modelId: z.string(),
|
|
21
20
|
voiceId: z.string(),
|
|
@@ -6,8 +6,6 @@ export const VideoJobParamsSchema = z.object({
|
|
|
6
6
|
imageUrls: z.string().array().optional(),
|
|
7
7
|
duration: z.number().optional(),
|
|
8
8
|
aspectRatio: z.string().optional(),
|
|
9
|
-
imageIds: z.array(z.string()).optional(),
|
|
10
|
-
resolution: z.string().optional(),
|
|
11
9
|
});
|
|
12
10
|
|
|
13
11
|
export type VideoJobParams = z.infer<typeof VideoJobParamsSchema>;
|
|
@@ -18,11 +18,6 @@ export const VideoModelParamsSchema = z.object({
|
|
|
18
18
|
})
|
|
19
19
|
.optional(),
|
|
20
20
|
quality: z.string().optional(),
|
|
21
|
-
resolution: z
|
|
22
|
-
.object({
|
|
23
|
-
options: z.array(z.string()),
|
|
24
|
-
})
|
|
25
|
-
.optional(),
|
|
26
21
|
});
|
|
27
22
|
|
|
28
23
|
export const VideoGenerationRequestParamsSchema = z.object({
|
|
@@ -30,13 +25,11 @@ export const VideoGenerationRequestParamsSchema = z.object({
|
|
|
30
25
|
duration: z.number(),
|
|
31
26
|
aspectRatio: z.string().optional(),
|
|
32
27
|
quality: z.string().optional(),
|
|
33
|
-
resolution: z.string().optional(),
|
|
34
28
|
});
|
|
35
29
|
export type VideoGenerationRequestParams = z.infer<typeof VideoGenerationRequestParamsSchema>;
|
|
36
30
|
|
|
37
31
|
export const VideoModelPricingRuleConditionSchema = z.object({
|
|
38
|
-
aspectRatio: z.string()
|
|
39
|
-
resolution: z.string().optional(),
|
|
32
|
+
aspectRatio: z.string(),
|
|
40
33
|
});
|
|
41
34
|
export type VideoModelPricingRuleCondition = z.infer<typeof VideoModelPricingRuleConditionSchema>;
|
|
42
35
|
|
|
@@ -6,7 +6,6 @@ export const VideoEditorJobSchema = ToolJobSchema.extend({
|
|
|
6
6
|
title: z.string(),
|
|
7
7
|
prompt: z.string(),
|
|
8
8
|
reaction: z.nativeEnum(USER_REACTION).nullable(),
|
|
9
|
-
inputVideoId: z.string().nullable(),
|
|
10
9
|
inputVideoUrl: z.string(),
|
|
11
10
|
outputVideoUrl: z.string().nullable(),
|
|
12
11
|
modelId: z.string(),
|
|
@@ -5,6 +5,7 @@ export const WriterDocumentOutlineSubsectionSchema = z.object({
|
|
|
5
5
|
title: z
|
|
6
6
|
.string()
|
|
7
7
|
.min(3)
|
|
8
|
+
.max(120)
|
|
8
9
|
.describe(
|
|
9
10
|
`Concise title of the subsection. Meant to elaborate on its parent section's title.`,
|
|
10
11
|
),
|
|
@@ -12,7 +13,7 @@ export const WriterDocumentOutlineSubsectionSchema = z.object({
|
|
|
12
13
|
export type WriterDocumentOutlineSubsection = z.infer<typeof WriterDocumentOutlineSubsectionSchema>;
|
|
13
14
|
|
|
14
15
|
export const WriterDocumentOutlineSectionSchema = z.object({
|
|
15
|
-
title: z.string().min(3).describe(`Concise title of the paper section.`),
|
|
16
|
+
title: z.string().min(3).max(120).describe(`Concise title of the paper section.`),
|
|
16
17
|
type: z.nativeEnum(WRITER_DOCUMENT_SECTION_TYPE),
|
|
17
18
|
subsections: z
|
|
18
19
|
.array(WriterDocumentOutlineSubsectionSchema)
|
|
@@ -2,9 +2,9 @@ import z from 'zod';
|
|
|
2
2
|
|
|
3
3
|
export const WebmasterClickSchema = z.object({
|
|
4
4
|
uuid: z.string().uuid(),
|
|
5
|
+
aliasUsed: z.string(),
|
|
5
6
|
webmasterId: z.string().uuid(),
|
|
6
|
-
|
|
7
|
-
day: z.date().nullable(),
|
|
7
|
+
unregisteredUserId: z.string().uuid().nullable(),
|
|
8
8
|
|
|
9
9
|
createdAt: z.date(),
|
|
10
10
|
updatedAt: z.date(),
|
package/package.json
CHANGED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export const COMMUNITY_CONTROLLER_PRIVATE = 'private/community/posts' as const;
|
|
2
|
-
export const COMMUNITY_CONTROLLER_PUBLIC = 'public/community/posts' as const;
|
|
3
|
-
|
|
4
|
-
export const COMMUNITY_ROUTES_PRIVATE = {
|
|
5
|
-
GET_ALL: '',
|
|
6
|
-
GET_MY: 'my',
|
|
7
|
-
GET_MY_LIKE: 'my/likes',
|
|
8
|
-
GET_MY_FAVORITE: 'my/favorites',
|
|
9
|
-
GET_BY_UUID: (uuid: string) => `by/uuid/${uuid}`,
|
|
10
|
-
GET_BY_USER_ID: (uuid: string) => `by/user/${uuid}`,
|
|
11
|
-
CREATE: '',
|
|
12
|
-
UPDATE: (uuid: string) => `${uuid}`,
|
|
13
|
-
DELETE: (uuid: string) => `${uuid}`,
|
|
14
|
-
ARCHIVE: (uuid: string) => `${uuid}/archive`,
|
|
15
|
-
LIKE: (uuid: string) => `${uuid}/like`,
|
|
16
|
-
FAVORITE: (uuid: string) => `${uuid}/favorite`,
|
|
17
|
-
|
|
18
|
-
REPORT: (uuid: string) => `report/${uuid}`,
|
|
19
|
-
LIKES_COUNT: 'my/count',
|
|
20
|
-
} as const;
|
|
21
|
-
|
|
22
|
-
export const COMMUNITY_ROUTES_PUBLIC = {
|
|
23
|
-
GET_ALL: '',
|
|
24
|
-
GET_BY_UUID: (uuid: string) => `by/uuid/${uuid}`,
|
|
25
|
-
} as const;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export const IMAGE_GENERATION_CONTROLLER_PRIVATE = 'private/tools/image-generation' as const;
|
|
2
|
-
export const IMAGE_GENERATION_CONTROLLER_PUBLIC = 'public/tools/image-generation' as const;
|
|
3
|
-
|
|
4
|
-
export const IMAGE_GENERATION_ROUTES = {
|
|
5
|
-
CONFIG: 'config',
|
|
6
|
-
EXECUTE: 'execute',
|
|
7
|
-
GET_JOBS: 'jobs',
|
|
8
|
-
GET_JOB: (uuid: string) => `jobs/${uuid}`,
|
|
9
|
-
UPDATE: (uuid: string) => `jobs/${uuid}`,
|
|
10
|
-
SET_REACTION: (uuid: string) => `jobs/${uuid}/reaction`,
|
|
11
|
-
DELETE: (uuid: string) => `jobs/${uuid}`,
|
|
12
|
-
DELETE_ALL: 'jobs',
|
|
13
|
-
RETRY: (uuid: string) => `jobs/${uuid}/retry`,
|
|
14
|
-
} as const;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.COMMUNITY_ROUTES_PUBLIC = exports.COMMUNITY_ROUTES_PRIVATE = exports.COMMUNITY_CONTROLLER_PUBLIC = exports.COMMUNITY_CONTROLLER_PRIVATE = void 0;
|
|
4
|
-
exports.COMMUNITY_CONTROLLER_PRIVATE = 'private/community/posts';
|
|
5
|
-
exports.COMMUNITY_CONTROLLER_PUBLIC = 'public/community/posts';
|
|
6
|
-
exports.COMMUNITY_ROUTES_PRIVATE = {
|
|
7
|
-
GET_ALL: '',
|
|
8
|
-
GET_MY: 'my',
|
|
9
|
-
GET_MY_LIKE: 'my/likes',
|
|
10
|
-
GET_MY_FAVORITE: 'my/favorites',
|
|
11
|
-
GET_BY_UUID: (uuid) => `by/uuid/${uuid}`,
|
|
12
|
-
GET_BY_USER_ID: (uuid) => `by/user/${uuid}`,
|
|
13
|
-
CREATE: '',
|
|
14
|
-
UPDATE: (uuid) => `${uuid}`,
|
|
15
|
-
DELETE: (uuid) => `${uuid}`,
|
|
16
|
-
ARCHIVE: (uuid) => `${uuid}/archive`,
|
|
17
|
-
LIKE: (uuid) => `${uuid}/like`,
|
|
18
|
-
FAVORITE: (uuid) => `${uuid}/favorite`,
|
|
19
|
-
REPORT: (uuid) => `report/${uuid}`,
|
|
20
|
-
LIKES_COUNT: 'my/count',
|
|
21
|
-
};
|
|
22
|
-
exports.COMMUNITY_ROUTES_PUBLIC = {
|
|
23
|
-
GET_ALL: '',
|
|
24
|
-
GET_BY_UUID: (uuid) => `by/uuid/${uuid}`,
|
|
25
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IMAGE_GENERATION_ROUTES = exports.IMAGE_GENERATION_CONTROLLER_PUBLIC = exports.IMAGE_GENERATION_CONTROLLER_PRIVATE = void 0;
|
|
4
|
-
exports.IMAGE_GENERATION_CONTROLLER_PRIVATE = 'private/tools/image-generation';
|
|
5
|
-
exports.IMAGE_GENERATION_CONTROLLER_PUBLIC = 'public/tools/image-generation';
|
|
6
|
-
exports.IMAGE_GENERATION_ROUTES = {
|
|
7
|
-
CONFIG: 'config',
|
|
8
|
-
EXECUTE: 'execute',
|
|
9
|
-
GET_JOBS: 'jobs',
|
|
10
|
-
GET_JOB: (uuid) => `jobs/${uuid}`,
|
|
11
|
-
UPDATE: (uuid) => `jobs/${uuid}`,
|
|
12
|
-
SET_REACTION: (uuid) => `jobs/${uuid}/reaction`,
|
|
13
|
-
DELETE: (uuid) => `jobs/${uuid}`,
|
|
14
|
-
DELETE_ALL: 'jobs',
|
|
15
|
-
RETRY: (uuid) => `jobs/${uuid}/retry`,
|
|
16
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.USER_PROFILE_ROUTES = exports.USER_PROFILE_CONTROLLER = void 0;
|
|
4
|
-
exports.USER_PROFILE_CONTROLLER = 'user-profile';
|
|
5
|
-
exports.USER_PROFILE_ROUTES = {
|
|
6
|
-
GET_PROFILE_INFO: 'profile',
|
|
7
|
-
UPDATE_PROFILE: 'profile',
|
|
8
|
-
UPLOAD_AVATAR: 'upload-avatar',
|
|
9
|
-
DELETE_AVATAR: 'avatar',
|
|
10
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FindFormattedAIModelV2Command = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const unified_model_content_type_enum_1 = require("../../constants/model/enums/unified-model-content-type.enum");
|
|
6
|
-
const icon_variants_schema_1 = require("../../models/icon-variants.schema");
|
|
7
|
-
const FormattedModelSchema = zod_1.z.object({
|
|
8
|
-
uuid: zod_1.z.string().uuid(),
|
|
9
|
-
title: zod_1.z.string(),
|
|
10
|
-
description: zod_1.z.string().nullable(),
|
|
11
|
-
contentType: zod_1.z.nativeEnum(unified_model_content_type_enum_1.UNIFIED_MODEL_CONTENT_TYPE),
|
|
12
|
-
order: zod_1.z.number(),
|
|
13
|
-
icons: icon_variants_schema_1.IconVariantsSchema,
|
|
14
|
-
pageAlias: zod_1.z.string().nullable().optional(),
|
|
15
|
-
toolId: zod_1.z.string().uuid().nullable().optional(),
|
|
16
|
-
isToolModel: zod_1.z.boolean(),
|
|
17
|
-
});
|
|
18
|
-
var FindFormattedAIModelV2Command;
|
|
19
|
-
(function (FindFormattedAIModelV2Command) {
|
|
20
|
-
FindFormattedAIModelV2Command.ResponseSchema = zod_1.z.object({
|
|
21
|
-
data: zod_1.z.array(FormattedModelSchema),
|
|
22
|
-
});
|
|
23
|
-
})(FindFormattedAIModelV2Command || (exports.FindFormattedAIModelV2Command = FindFormattedAIModelV2Command = {}));
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FindModelPagesCommand = exports.PageWithModelSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const icon_variants_schema_1 = require("../../models/icon-variants.schema");
|
|
6
|
-
const unified_model_content_type_enum_1 = require("../../constants/model/enums/unified-model-content-type.enum");
|
|
7
|
-
const ModelSchema = zod_1.z.object({
|
|
8
|
-
uuid: zod_1.z.string().uuid(),
|
|
9
|
-
title: zod_1.z.string(),
|
|
10
|
-
description: zod_1.z.string().nullable(),
|
|
11
|
-
contentType: zod_1.z.nativeEnum(unified_model_content_type_enum_1.UNIFIED_MODEL_CONTENT_TYPE),
|
|
12
|
-
order: zod_1.z.number(),
|
|
13
|
-
icons: icon_variants_schema_1.IconVariantsSchema,
|
|
14
|
-
});
|
|
15
|
-
exports.PageWithModelSchema = zod_1.z.object({
|
|
16
|
-
uuid: zod_1.z.string().uuid(),
|
|
17
|
-
title: zod_1.z.string(),
|
|
18
|
-
alias: zod_1.z.string(),
|
|
19
|
-
type: zod_1.z.string(),
|
|
20
|
-
toolId: zod_1.z.string().uuid().nullable(),
|
|
21
|
-
toolModelId: zod_1.z.string().uuid().nullable(),
|
|
22
|
-
toolOptionId: zod_1.z.string().uuid().nullable(),
|
|
23
|
-
aIModelId: zod_1.z.string().uuid().nullable(),
|
|
24
|
-
model: ModelSchema,
|
|
25
|
-
});
|
|
26
|
-
var FindModelPagesCommand;
|
|
27
|
-
(function (FindModelPagesCommand) {
|
|
28
|
-
FindModelPagesCommand.ResponseSchema = zod_1.z.object({
|
|
29
|
-
data: zod_1.z.array(exports.PageWithModelSchema),
|
|
30
|
-
});
|
|
31
|
-
})(FindModelPagesCommand || (exports.FindModelPagesCommand = FindModelPagesCommand = {}));
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ArchiveCommunityPostCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
var ArchiveCommunityPostCommand;
|
|
6
|
-
(function (ArchiveCommunityPostCommand) {
|
|
7
|
-
ArchiveCommunityPostCommand.RequestParamsSchema = zod_1.z.object({
|
|
8
|
-
uuid: zod_1.z.string().uuid(),
|
|
9
|
-
});
|
|
10
|
-
ArchiveCommunityPostCommand.ResponseSchema = zod_1.z.object({
|
|
11
|
-
data: zod_1.z.boolean(),
|
|
12
|
-
});
|
|
13
|
-
})(ArchiveCommunityPostCommand || (exports.ArchiveCommunityPostCommand = ArchiveCommunityPostCommand = {}));
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CreateCommunityPostCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const models_1 = require("../../models");
|
|
6
|
-
const constants_1 = require("../../constants");
|
|
7
|
-
var CreateCommunityPostCommand;
|
|
8
|
-
(function (CreateCommunityPostCommand) {
|
|
9
|
-
CreateCommunityPostCommand.RequestBodySchema = zod_1.z
|
|
10
|
-
.object({
|
|
11
|
-
visibility: zod_1.z.nativeEnum(constants_1.COMMUNITY_POST_VISIBILITY),
|
|
12
|
-
caption: zod_1.z.string().max(500).nullable().optional(),
|
|
13
|
-
messageId: zod_1.z.string().uuid().nullable().optional(),
|
|
14
|
-
toolJobId: zod_1.z.string().uuid().nullable().optional(),
|
|
15
|
-
toolType: zod_1.z.nativeEnum(constants_1.COMMUNITY_TOOL_TYPE).nullable().optional(),
|
|
16
|
-
})
|
|
17
|
-
.refine((data) => {
|
|
18
|
-
const hasMessageId = data.messageId != null;
|
|
19
|
-
const hasToolJobId = data.toolJobId != null;
|
|
20
|
-
if (!(hasMessageId !== hasToolJobId)) {
|
|
21
|
-
return false;
|
|
22
|
-
}
|
|
23
|
-
if (hasToolJobId && data.toolType == null) {
|
|
24
|
-
return false;
|
|
25
|
-
}
|
|
26
|
-
return true;
|
|
27
|
-
}, {
|
|
28
|
-
message: 'Either messageId or toolJobId must be provided, but not both.',
|
|
29
|
-
path: ['messageId'],
|
|
30
|
-
});
|
|
31
|
-
CreateCommunityPostCommand.ResponseSchema = zod_1.z.object({
|
|
32
|
-
data: models_1.ResponseCommunityPostSchema,
|
|
33
|
-
});
|
|
34
|
-
})(CreateCommunityPostCommand || (exports.CreateCommunityPostCommand = CreateCommunityPostCommand = {}));
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DeleteCommunityPostCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
var DeleteCommunityPostCommand;
|
|
6
|
-
(function (DeleteCommunityPostCommand) {
|
|
7
|
-
DeleteCommunityPostCommand.RequestParamsSchema = zod_1.z.object({
|
|
8
|
-
uuid: zod_1.z.string().uuid(),
|
|
9
|
-
});
|
|
10
|
-
DeleteCommunityPostCommand.ResponseSchema = zod_1.z.object({
|
|
11
|
-
data: zod_1.z.boolean(),
|
|
12
|
-
});
|
|
13
|
-
})(DeleteCommunityPostCommand || (exports.DeleteCommunityPostCommand = DeleteCommunityPostCommand = {}));
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetAllCommunityPostsCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const models_1 = require("../../models");
|
|
6
|
-
const constants_1 = require("../../constants");
|
|
7
|
-
var GetAllCommunityPostsCommand;
|
|
8
|
-
(function (GetAllCommunityPostsCommand) {
|
|
9
|
-
GetAllCommunityPostsCommand.RequestQuerySchema = zod_1.z.object({
|
|
10
|
-
// Pagination
|
|
11
|
-
cursor: zod_1.z.string().uuid().nullable().optional(),
|
|
12
|
-
limit: zod_1.z.coerce.number().int().positive().max(100).default(30).optional(),
|
|
13
|
-
// Sorting
|
|
14
|
-
sortBy: zod_1.z.enum(['publishedAt', 'views', 'likesCount']).optional(),
|
|
15
|
-
sortOrder: zod_1.z.nativeEnum(constants_1.SORT_ORDER).optional(),
|
|
16
|
-
// Criteria
|
|
17
|
-
userId: zod_1.z.string().uuid().optional(),
|
|
18
|
-
type: zod_1.z.nativeEnum(constants_1.COMMUNITY_POST_TYPE).optional(),
|
|
19
|
-
});
|
|
20
|
-
GetAllCommunityPostsCommand.ResponseSchema = zod_1.z.object({
|
|
21
|
-
data: zod_1.z.array(models_1.ResponseCommunityPostSchema),
|
|
22
|
-
cursor: zod_1.z.string().uuid().nullable(),
|
|
23
|
-
hasNext: zod_1.z.boolean(),
|
|
24
|
-
});
|
|
25
|
-
})(GetAllCommunityPostsCommand || (exports.GetAllCommunityPostsCommand = GetAllCommunityPostsCommand = {}));
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetCommunityPostByUuidCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const models_1 = require("../../models");
|
|
6
|
-
var GetCommunityPostByUuidCommand;
|
|
7
|
-
(function (GetCommunityPostByUuidCommand) {
|
|
8
|
-
GetCommunityPostByUuidCommand.RequestSchema = zod_1.z.object({
|
|
9
|
-
uuid: zod_1.z.string().uuid(),
|
|
10
|
-
});
|
|
11
|
-
GetCommunityPostByUuidCommand.ResponseSchema = zod_1.z.object({
|
|
12
|
-
data: models_1.ResponseCommunityPostSchema,
|
|
13
|
-
});
|
|
14
|
-
})(GetCommunityPostByUuidCommand || (exports.GetCommunityPostByUuidCommand = GetCommunityPostByUuidCommand = {}));
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetCountOfLikesOnMyPostsCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
var GetCountOfLikesOnMyPostsCommand;
|
|
6
|
-
(function (GetCountOfLikesOnMyPostsCommand) {
|
|
7
|
-
GetCountOfLikesOnMyPostsCommand.ResponseSchema = zod_1.z.object({
|
|
8
|
-
data: zod_1.z.number(),
|
|
9
|
-
});
|
|
10
|
-
})(GetCountOfLikesOnMyPostsCommand || (exports.GetCountOfLikesOnMyPostsCommand = GetCountOfLikesOnMyPostsCommand = {}));
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetMyCommunityPostsByCriteriaCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const models_1 = require("../../models");
|
|
6
|
-
const constants_1 = require("../../constants");
|
|
7
|
-
var GetMyCommunityPostsByCriteriaCommand;
|
|
8
|
-
(function (GetMyCommunityPostsByCriteriaCommand) {
|
|
9
|
-
GetMyCommunityPostsByCriteriaCommand.RequestQuerySchema = zod_1.z.object({
|
|
10
|
-
// Pagination
|
|
11
|
-
cursor: zod_1.z.string().uuid().nullable().optional(),
|
|
12
|
-
limit: zod_1.z.coerce
|
|
13
|
-
.number()
|
|
14
|
-
.int()
|
|
15
|
-
.positive()
|
|
16
|
-
.max(100)
|
|
17
|
-
.default(constants_1.DEFAULT_PAGINATION_LIMIT)
|
|
18
|
-
.optional(),
|
|
19
|
-
// Sorting
|
|
20
|
-
sortBy: zod_1.z.enum(['publishedAt', 'views', 'likesCount']).optional(),
|
|
21
|
-
sortOrder: zod_1.z.nativeEnum(constants_1.SORT_ORDER).optional(),
|
|
22
|
-
// Criteria
|
|
23
|
-
visibility: zod_1.z.nativeEnum(constants_1.COMMUNITY_POST_VISIBILITY).optional(),
|
|
24
|
-
type: zod_1.z.nativeEnum(constants_1.COMMUNITY_POST_TYPE).optional(),
|
|
25
|
-
status: zod_1.z.nativeEnum(constants_1.COMMUNITY_POST_STATUS).optional(),
|
|
26
|
-
});
|
|
27
|
-
GetMyCommunityPostsByCriteriaCommand.ResponseSchema = zod_1.z.object({
|
|
28
|
-
data: zod_1.z.array(models_1.ResponseCommunityPostSchema),
|
|
29
|
-
cursor: zod_1.z.string().uuid().nullable(),
|
|
30
|
-
hasNext: zod_1.z.boolean(),
|
|
31
|
-
});
|
|
32
|
-
})(GetMyCommunityPostsByCriteriaCommand || (exports.GetMyCommunityPostsByCriteriaCommand = GetMyCommunityPostsByCriteriaCommand = {}));
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetMyFavoriteCommunityPostsCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const constants_1 = require("../../constants");
|
|
6
|
-
const models_1 = require("../../models");
|
|
7
|
-
var GetMyFavoriteCommunityPostsCommand;
|
|
8
|
-
(function (GetMyFavoriteCommunityPostsCommand) {
|
|
9
|
-
GetMyFavoriteCommunityPostsCommand.RequestQuerySchema = zod_1.z.object({
|
|
10
|
-
offset: zod_1.z.coerce.number().int().min(0).default(0).optional(),
|
|
11
|
-
limit: zod_1.z.coerce.number().int().min(1).max(100).default(constants_1.DEFAULT_PAGINATION_LIMIT).optional(),
|
|
12
|
-
sortOrder: zod_1.z.nativeEnum(constants_1.SORT_ORDER).optional(),
|
|
13
|
-
});
|
|
14
|
-
GetMyFavoriteCommunityPostsCommand.ResponseSchema = zod_1.z.object({
|
|
15
|
-
data: zod_1.z.array(models_1.ResponseCommunityPostSchema),
|
|
16
|
-
page: zod_1.z.number(),
|
|
17
|
-
totalPages: zod_1.z.number(),
|
|
18
|
-
});
|
|
19
|
-
})(GetMyFavoriteCommunityPostsCommand || (exports.GetMyFavoriteCommunityPostsCommand = GetMyFavoriteCommunityPostsCommand = {}));
|