@purpleschool/gptbot 0.14.63-stage2 → 0.15.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/build/api/controllers/http/avatar-studio.d.ts +2 -5
- package/build/api/controllers/http/avatar-studio.js +4 -6
- package/build/api/controllers/http/index.d.ts +1 -1
- package/build/api/controllers/http/index.js +1 -1
- package/build/api/controllers/http/{photo-session.d.ts → sound-generation.d.ts} +3 -8
- package/build/api/controllers/http/sound-generation.js +17 -0
- package/build/api/controllers/http/tts.d.ts +0 -9
- package/build/api/controllers/http/tts.js +0 -9
- package/build/api/routes.d.ts +27 -48
- package/build/api/routes.js +27 -48
- package/build/commands/ai-model/create-ai-model.command.d.ts +6 -0
- package/build/commands/ai-model/find-ai-model.command.d.ts +6 -0
- package/build/commands/ai-model/find-ai-models-available-to-user.comand.d.ts +3 -0
- package/build/commands/ai-model/find-formatted-ai-model.command.d.ts +6 -0
- package/build/commands/ai-model/update-ai-model.command.d.ts +6 -0
- package/build/commands/ai-studio/canvas-node/find-canvas-node-definitions-with-configs.query.d.ts +3 -11
- package/build/commands/ai-studio/canvas-tool/text-gen/get-text-generation-config.command.d.ts +3 -0
- package/build/commands/ai-studio/canvas-tool/var-gen/get-var-gen-config.command.d.ts +3 -0
- package/build/commands/avatar-studio/clip/create-avatar-studio-clip.command.d.ts +1 -1
- package/build/commands/avatar-studio/clip/find-avatar-studio-clips.query.d.ts +1 -1
- package/build/commands/avatar-studio/clip/get-avatar-studio-clip.query.d.ts +1 -1
- package/build/commands/avatar-studio/clip/update-avatar-studio-clip.command.d.ts +1 -1
- package/build/commands/avatar-studio/generation-job/generate-avatar-studio-scene-voice.command.d.ts +2 -4
- package/build/commands/avatar-studio/generation-job/generate-avatar-studio-scene-voice.command.js +2 -4
- package/build/commands/avatar-studio/scene/{apply-avatar-studio-voice-to-all-scenes.command.d.ts → apply-avatar-studio-voice-sample-to-all-scenes.command.d.ts} +3 -3
- package/build/commands/avatar-studio/scene/apply-avatar-studio-voice-sample-to-all-scenes.command.js +15 -0
- package/build/commands/avatar-studio/scene/create-avatar-studio-scene.command.d.ts +1 -1
- package/build/commands/avatar-studio/scene/index.d.ts +1 -1
- package/build/commands/avatar-studio/scene/index.js +1 -1
- package/build/commands/avatar-studio/scene/reorder-avatar-studio-scenes.command.d.ts +1 -1
- package/build/commands/avatar-studio/scene/set-avatar-studio-scene-slot.command.d.ts +1 -1
- package/build/commands/avatar-studio/scene/update-avatar-studio-scene.command.d.ts +2 -2
- package/build/commands/avatar-studio/scriptwriter/apply-avatar-studio-scriptwriter-message.command.d.ts +1 -1
- package/build/commands/avatar-studio/shared/avatar-studio-common.schema.d.ts +1 -1
- package/build/commands/avatar-studio/shared/get-avatar-studio-config.query.d.ts +6 -5
- package/build/commands/avatar-studio/shared/get-avatar-studio-config.query.js +12 -7
- package/build/commands/avatar-studio/voice/design-avatar-studio-voice.command.d.ts +56 -26
- package/build/commands/avatar-studio/voice/design-avatar-studio-voice.command.js +7 -6
- package/build/commands/avatar-studio/voice/index.d.ts +0 -3
- package/build/commands/avatar-studio/voice/index.js +0 -3
- package/build/commands/b2b/get-b2b-documentation.command.d.ts +6 -0
- package/build/commands/page/find-page-by-alias.command.d.ts +6 -0
- package/build/commands/page/find-page.command.d.ts +3 -0
- package/build/commands/page/find-pages-by-criteria.command.d.ts +6 -0
- package/build/commands/payment/receipt.command.d.ts +3 -3
- package/build/commands/product/create-product.command.d.ts +76 -0
- package/build/commands/product/find-product.command.d.ts +76 -0
- package/build/commands/product/get-my-products.command.d.ts +38 -0
- package/build/commands/product/update-product.command.d.ts +76 -0
- package/build/commands/subscription/buy-subscription.command.d.ts +4 -4
- package/build/commands/subscription/buy-subscription.command.js +1 -1
- package/build/commands/subscription/create-subscription.command.d.ts +76 -0
- package/build/commands/subscription/find-subscription.command.d.ts +114 -0
- package/build/commands/subscription/get-available-upgrades.command.d.ts +76 -0
- package/build/commands/subscription/get-free-subscription.command.d.ts +38 -0
- package/build/commands/subscription/get-subscriptions-summary.command.d.ts +190 -0
- package/build/commands/subscription/update-subscription.command.d.ts +76 -0
- package/build/commands/subscription/upgrade-subscription.command.d.ts +3 -3
- package/build/commands/subscription/upgrade-subscription.command.js +1 -1
- package/build/commands/team-account/find-current-team-account-products-by-team-account-id.command.d.ts +38 -0
- package/build/commands/team-account/find-current-team-account-products.command.d.ts +38 -0
- package/build/commands/team-account/find-current-team-account-subscriptions-by-team-account-id.command.d.ts +38 -0
- package/build/commands/team-account/find-current-team-account-subscriptions.command.d.ts +38 -0
- package/build/commands/team-account/find-team-account-products.command.d.ts +38 -0
- package/build/commands/team-account/find-team-account-subscriptions.command.d.ts +76 -0
- package/build/commands/team-account/get-team-account-available-upgrades.command.d.ts +38 -0
- package/build/commands/team-to-product/get-team-to-products.command.d.ts +38 -0
- package/build/commands/team-to-subscription/get-team-to-subscriptions.command.d.ts +38 -0
- package/build/commands/tools/index.d.ts +1 -1
- package/build/commands/tools/index.js +1 -1
- package/build/commands/tools/{photo-session/delete-all-photo-session-jobs.command.d.ts → sound-generation/delete-all-sound-generation-jobs.command.d.ts} +1 -1
- package/build/commands/tools/sound-generation/delete-all-sound-generation-jobs.command.js +8 -0
- package/build/commands/tools/{tts/delete-voice.command.d.ts → sound-generation/delete-sound-generation-job-by-uuid.command.d.ts} +2 -2
- package/build/commands/tools/sound-generation/delete-sound-generation-job-by-uuid.command.js +11 -0
- package/build/commands/tools/sound-generation/find-sound-generation-job-by-uuid.command.d.ts +37 -0
- package/build/commands/tools/sound-generation/find-sound-generation-job-by-uuid.command.js +14 -0
- package/build/commands/tools/sound-generation/find-sound-generation-jobs.command.d.ts +46 -0
- package/build/commands/tools/sound-generation/find-sound-generation-jobs.command.js +24 -0
- package/build/commands/tools/sound-generation/get-sound-generation-tool-config.command.d.ts +43 -0
- package/build/commands/tools/sound-generation/get-sound-generation-tool-config.command.js +11 -0
- package/build/commands/tools/sound-generation/index.d.ts +10 -0
- package/build/commands/tools/{photo-session/admin → sound-generation}/index.js +10 -3
- package/build/commands/tools/sound-generation/retry-sound-generation-job.command.d.ts +48 -0
- package/build/commands/tools/sound-generation/retry-sound-generation-job.command.js +19 -0
- package/build/commands/tools/sound-generation/set-reaction-to-sound-generation-job.command.d.ts +43 -0
- package/build/commands/tools/sound-generation/set-reaction-to-sound-generation-job.command.js +23 -0
- package/build/commands/tools/sound-generation/sound-generation.command.d.ts +44 -0
- package/build/commands/tools/sound-generation/sound-generation.command.js +16 -0
- package/build/commands/tools/sound-generation/update-sound-generation-job-favorite.command.d.ts +41 -0
- package/build/commands/tools/sound-generation/update-sound-generation-job-favorite.command.js +17 -0
- package/build/commands/tools/sound-generation/update-sound-generation-job-title.command.d.ts +41 -0
- package/build/commands/tools/sound-generation/update-sound-generation-job-title.command.js +17 -0
- package/build/commands/tools/tool/find-grouped-tools.command.d.ts +1 -0
- package/build/commands/tools/tts/find-tts-job-by-uuid.command.d.ts +1 -13
- package/build/commands/tools/tts/find-tts-jobs.command.d.ts +1 -13
- package/build/commands/tools/tts/get-tts-tool-config.command.d.ts +0 -11
- package/build/commands/tools/tts/index.d.ts +0 -9
- package/build/commands/tools/tts/index.js +0 -9
- package/build/commands/tools/tts/retry-tts-job.command.d.ts +1 -13
- package/build/commands/tools/tts/set-reaction-to-tts-job.command.d.ts +1 -13
- package/build/commands/tools/tts/tts.command.d.ts +1 -6
- package/build/commands/tools/tts/tts.command.js +1 -7
- package/build/commands/tools/tts/update-tts-job-favorite.command.d.ts +1 -13
- package/build/commands/tools/tts/update-tts-job-title.command.d.ts +1 -13
- package/build/commands/user/get-user-products.command.d.ts +38 -0
- package/build/commands/user/get-user-subscriptions.command.d.ts +38 -0
- package/build/commands/user-to-subscription/get-user-to-subscriptions.command.d.ts +38 -0
- package/build/constants/ai-model/enums/ai-model-config-selector-type.enum.d.ts +2 -1
- package/build/constants/ai-model/enums/ai-model-config-selector-type.enum.js +1 -0
- package/build/constants/avatar-studio/enums/avatar-studio-job-type.enum.d.ts +0 -1
- package/build/constants/avatar-studio/enums/avatar-studio-job-type.enum.js +0 -1
- package/build/constants/avatar-studio/enums/avatar-studio-media-kind.enum.d.ts +2 -1
- package/build/constants/avatar-studio/enums/avatar-studio-media-kind.enum.js +1 -0
- package/build/constants/avatar-studio/enums/avatar-studio-slot.enum.d.ts +1 -1
- package/build/constants/avatar-studio/enums/avatar-studio-slot.enum.js +1 -1
- package/build/constants/cabinet/enums/statistics-request-type.enum.d.ts +1 -0
- package/build/constants/cabinet/enums/statistics-request-type.enum.js +1 -0
- package/build/constants/cloud-payments/index.d.ts +5 -0
- package/build/constants/cloud-payments/index.js +7 -1
- package/build/constants/index.d.ts +0 -2
- package/build/constants/index.js +0 -2
- package/build/constants/tool/enums/index.d.ts +0 -1
- package/build/constants/tool/enums/index.js +0 -1
- package/build/helpers/index.d.ts +0 -1
- package/build/helpers/index.js +0 -1
- package/build/models/ai-model-config.schema.d.ts +7 -0
- package/build/models/ai-model-config.schema.js +6 -1
- package/build/models/ai-model-formatted.schema.d.ts +3 -0
- package/build/models/ai-model.schema.d.ts +9 -0
- package/build/models/avatar-studio/avatar-studio.schema.d.ts +6 -6
- package/build/models/avatar-studio/avatar-studio.schema.js +3 -3
- package/build/models/canvas-node-definition.schema.d.ts +12 -33
- package/build/models/cloud-payments-receipt.schema.d.ts +1 -1
- package/build/models/cloud-payments-receipt.schema.js +1 -1
- package/build/models/product.schema.d.ts +38 -0
- package/build/models/subscription-feature.schema.d.ts +77 -0
- package/build/models/subscription-feature.schema.js +1 -0
- package/build/models/subscription-upgrade-schema.d.ts +38 -0
- package/build/models/subscription.schema.d.ts +190 -0
- package/build/models/team-account/team-to-product.schema.d.ts +38 -0
- package/build/models/team-account/team-to-subscription.schema.d.ts +38 -0
- package/build/models/tool-group.schema.d.ts +1 -0
- package/build/models/tool-group.schema.js +1 -0
- package/build/models/tools/index.d.ts +1 -1
- package/build/models/tools/index.js +1 -1
- package/build/models/tools/sound-generation/index.d.ts +5 -0
- package/build/{constants/tool-photo-session/enums → models/tools/sound-generation}/index.js +5 -3
- package/build/models/tools/sound-generation/sound-generation-config.schema.d.ts +39 -0
- package/build/models/tools/sound-generation/sound-generation-config.schema.js +8 -0
- package/build/models/tools/sound-generation/sound-generation-job.schema.d.ts +30 -0
- package/build/models/tools/sound-generation/sound-generation-job.schema.js +20 -0
- package/build/models/tools/sound-generation/sound-generation-model.schema.d.ts +49 -0
- package/build/models/tools/sound-generation/sound-generation-model.schema.js +35 -0
- package/build/models/tools/sound-generation/sound-generation-params.schema.d.ts +8 -0
- package/build/models/tools/sound-generation/sound-generation-params.schema.js +10 -0
- package/build/models/tools/sound-generation/sound-generation-result.schema.d.ts +7 -0
- package/build/models/tools/sound-generation/sound-generation-result.schema.js +9 -0
- package/build/models/tools/tts/index.d.ts +0 -3
- package/build/models/tools/tts/index.js +0 -3
- package/build/models/tools/tts/tts-config.schema.d.ts +0 -23
- package/build/models/tools/tts/tts-config.schema.js +1 -14
- package/build/models/tools/tts/tts-job.schema.d.ts +1 -26
- package/build/models/tools/tts/tts-job.schema.js +2 -16
- package/build/models/tools/tts/tts-model.schema.d.ts +0 -1
- package/build/models/tools/tts/tts-model.schema.js +0 -1
- package/build/models/user-to-product.schema.d.ts +38 -0
- package/build/models/user-to-subscription.schema.d.ts +114 -0
- package/package.json +1 -1
- package/build/api/controllers/http/photo-session.js +0 -22
- package/build/commands/avatar-studio/scene/apply-avatar-studio-voice-to-all-scenes.command.js +0 -17
- package/build/commands/avatar-studio/voice/clone-avatar-studio-voice.command.d.ts +0 -43
- package/build/commands/avatar-studio/voice/clone-avatar-studio-voice.command.js +0 -19
- package/build/commands/avatar-studio/voice/delete-avatar-studio-voice.command.d.ts +0 -11
- package/build/commands/avatar-studio/voice/delete-avatar-studio-voice.command.js +0 -13
- package/build/commands/avatar-studio/voice/find-avatar-studio-voices.query.d.ts +0 -36
- package/build/commands/avatar-studio/voice/find-avatar-studio-voices.query.js +0 -11
- package/build/commands/tools/photo-session/admin/create-photo-session-style.command.d.ts +0 -39
- package/build/commands/tools/photo-session/admin/create-photo-session-style.command.js +0 -26
- package/build/commands/tools/photo-session/admin/delete-photo-session-style.command.d.ts +0 -9
- package/build/commands/tools/photo-session/admin/delete-photo-session-style.command.js +0 -11
- package/build/commands/tools/photo-session/admin/index.d.ts +0 -3
- package/build/commands/tools/photo-session/admin/update-photo-session-style.command.d.ts +0 -45
- package/build/commands/tools/photo-session/admin/update-photo-session-style.command.js +0 -36
- package/build/commands/tools/photo-session/delete-all-photo-session-jobs.command.js +0 -8
- package/build/commands/tools/photo-session/delete-photo-session-job-by-uuid.command.d.ts +0 -9
- package/build/commands/tools/photo-session/delete-photo-session-job-by-uuid.command.js +0 -11
- package/build/commands/tools/photo-session/find-photo-session-job-by-uuid.command.d.ts +0 -64
- package/build/commands/tools/photo-session/find-photo-session-job-by-uuid.command.js +0 -14
- package/build/commands/tools/photo-session/find-photo-session-jobs.command.d.ts +0 -73
- package/build/commands/tools/photo-session/find-photo-session-jobs.command.js +0 -24
- package/build/commands/tools/photo-session/get-photo-session-config.command.d.ts +0 -76
- package/build/commands/tools/photo-session/get-photo-session-config.command.js +0 -11
- package/build/commands/tools/photo-session/get-photo-session-price.command.d.ts +0 -32
- package/build/commands/tools/photo-session/get-photo-session-price.command.js +0 -27
- package/build/commands/tools/photo-session/index.d.ts +0 -13
- package/build/commands/tools/photo-session/index.js +0 -29
- package/build/commands/tools/photo-session/photo-session.command.d.ts +0 -87
- package/build/commands/tools/photo-session/photo-session.command.js +0 -27
- package/build/commands/tools/photo-session/retry-photo-session-job.command.d.ts +0 -107
- package/build/commands/tools/photo-session/retry-photo-session-job.command.js +0 -31
- package/build/commands/tools/photo-session/set-reaction-to-photo-session-job.command.d.ts +0 -70
- package/build/commands/tools/photo-session/set-reaction-to-photo-session-job.command.js +0 -28
- package/build/commands/tools/photo-session/update-photo-session-job-favorite.command.d.ts +0 -68
- package/build/commands/tools/photo-session/update-photo-session-job-favorite.command.js +0 -17
- package/build/commands/tools/photo-session/update-photo-session-job-title.command.d.ts +0 -68
- package/build/commands/tools/photo-session/update-photo-session-job-title.command.js +0 -17
- package/build/commands/tools/photo-session/update-published-status-photo-session-job.command.d.ts +0 -69
- package/build/commands/tools/photo-session/update-published-status-photo-session-job.command.js +0 -18
- package/build/commands/tools/tts/create-voice-clone.command.d.ts +0 -44
- package/build/commands/tools/tts/create-voice-clone.command.js +0 -18
- package/build/commands/tools/tts/create-voice-design.command.d.ts +0 -24
- package/build/commands/tools/tts/create-voice-design.command.js +0 -18
- package/build/commands/tools/tts/delete-voice.command.js +0 -11
- package/build/commands/tools/tts/download-tts-job.command.d.ts +0 -18
- package/build/commands/tools/tts/download-tts-job.command.js +0 -17
- package/build/commands/tools/tts/find-voice-by-uuid.query.d.ts +0 -40
- package/build/commands/tools/tts/find-voice-by-uuid.query.js +0 -14
- package/build/commands/tools/tts/find-voices.query.d.ts +0 -48
- package/build/commands/tools/tts/find-voices.query.js +0 -18
- package/build/commands/tools/tts/improve-tts-text.command.d.ts +0 -13
- package/build/commands/tools/tts/improve-tts-text.command.js +0 -13
- package/build/commands/tools/tts/select-voice-design.command.d.ts +0 -44
- package/build/commands/tools/tts/select-voice-design.command.js +0 -17
- package/build/commands/tools/tts/update-voice.command.d.ts +0 -45
- package/build/commands/tools/tts/update-voice.command.js +0 -18
- package/build/constants/tool/enums/job-scope.enum.d.ts +0 -5
- package/build/constants/tool/enums/job-scope.enum.js +0 -9
- package/build/constants/tool-photo-session/enums/index.d.ts +0 -3
- package/build/constants/tool-photo-session/enums/photo-session-look-type.enum.d.ts +0 -5
- package/build/constants/tool-photo-session/enums/photo-session-look-type.enum.js +0 -9
- package/build/constants/tool-photo-session/enums/photo-session-model-type.enum.d.ts +0 -3
- package/build/constants/tool-photo-session/enums/photo-session-model-type.enum.js +0 -7
- package/build/constants/tool-photo-session/enums/photo-session-strategy.enum.d.ts +0 -4
- package/build/constants/tool-photo-session/enums/photo-session-strategy.enum.js +0 -8
- package/build/constants/tool-photo-session/index.d.ts +0 -1
- package/build/constants/tool-photo-session/index.js +0 -17
- package/build/constants/tool-tts/enums/index.d.ts +0 -7
- package/build/constants/tool-tts/enums/index.js +0 -23
- package/build/constants/tool-tts/enums/tts-download-format.enum.d.ts +0 -5
- package/build/constants/tool-tts/enums/tts-download-format.enum.js +0 -9
- package/build/constants/tool-tts/enums/voice-category.enum.d.ts +0 -19
- package/build/constants/tool-tts/enums/voice-category.enum.js +0 -23
- package/build/constants/tool-tts/enums/voice-gender.enum.d.ts +0 -4
- package/build/constants/tool-tts/enums/voice-gender.enum.js +0 -8
- package/build/constants/tool-tts/enums/voice-source.enum.d.ts +0 -5
- package/build/constants/tool-tts/enums/voice-source.enum.js +0 -9
- package/build/constants/tool-tts/enums/voice-status.enum.d.ts +0 -5
- package/build/constants/tool-tts/enums/voice-status.enum.js +0 -9
- package/build/constants/tool-tts/enums/voice-tag-group.enum.d.ts +0 -5
- package/build/constants/tool-tts/enums/voice-tag-group.enum.js +0 -9
- package/build/constants/tool-tts/enums/voice-tag.enum.d.ts +0 -20
- package/build/constants/tool-tts/enums/voice-tag.enum.js +0 -24
- package/build/constants/tool-tts/index.d.ts +0 -1
- package/build/constants/tool-tts/index.js +0 -17
- package/build/helpers/photo-session/calculate-photo-session-price.helper.d.ts +0 -6
- package/build/helpers/photo-session/calculate-photo-session-price.helper.js +0 -13
- package/build/helpers/photo-session/index.d.ts +0 -1
- package/build/helpers/photo-session/index.js +0 -17
- package/build/models/tools/photo-session/index.d.ts +0 -4
- package/build/models/tools/photo-session/index.js +0 -20
- package/build/models/tools/photo-session/photo-session-config.schema.d.ts +0 -143
- package/build/models/tools/photo-session/photo-session-config.schema.js +0 -21
- package/build/models/tools/photo-session/photo-session-job.schema.d.ts +0 -80
- package/build/models/tools/photo-session/photo-session-job.schema.js +0 -50
- package/build/models/tools/photo-session/photo-session-model.schema.d.ts +0 -116
- package/build/models/tools/photo-session/photo-session-model.schema.js +0 -47
- package/build/models/tools/photo-session/photo-session-style.schema.d.ts +0 -29
- package/build/models/tools/photo-session/photo-session-style.schema.js +0 -22
- package/build/models/tools/tts/voice-design-draft.schema.d.ts +0 -13
- package/build/models/tools/tts/voice-design-draft.schema.js +0 -13
- package/build/models/tools/tts/voice-design-sample.schema.d.ts +0 -6
- package/build/models/tools/tts/voice-design-sample.schema.js +0 -8
- package/build/models/tools/tts/voice.schema.d.ts +0 -33
- package/build/models/tools/tts/voice.schema.js +0 -37
package/package.json
CHANGED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PHOTO_SESSION_ROUTES = exports.PHOTO_SESSION_CONTROLLER_PUBLIC = exports.PHOTO_SESSION_CONTROLLER_PRIVATE = void 0;
|
|
4
|
-
exports.PHOTO_SESSION_CONTROLLER_PRIVATE = 'private/tools/photo-session';
|
|
5
|
-
exports.PHOTO_SESSION_CONTROLLER_PUBLIC = 'public/tools/photo-session';
|
|
6
|
-
exports.PHOTO_SESSION_ROUTES = {
|
|
7
|
-
CONFIG: 'config',
|
|
8
|
-
EXECUTE: 'execute',
|
|
9
|
-
GET_JOBS: 'jobs',
|
|
10
|
-
GET_JOB: (uuid) => `jobs/${uuid}`,
|
|
11
|
-
UPDATE: (uuid) => `jobs/${uuid}`,
|
|
12
|
-
UPDATE_FAVORITE: (uuid) => `jobs/${uuid}/favorite`,
|
|
13
|
-
SET_REACTION: (uuid) => `jobs/${uuid}/reaction`,
|
|
14
|
-
DELETE: (uuid) => `jobs/${uuid}`,
|
|
15
|
-
DELETE_ALL: 'jobs',
|
|
16
|
-
RETRY: (uuid) => `jobs/${uuid}/retry`,
|
|
17
|
-
UPDATE_PUBLISHED: (uuid) => `jobs/${uuid}/published`,
|
|
18
|
-
ADMIN: {
|
|
19
|
-
STYLES: 'admin/styles',
|
|
20
|
-
STYLE: (uuid) => `admin/styles/${uuid}`,
|
|
21
|
-
},
|
|
22
|
-
};
|
package/build/commands/avatar-studio/scene/apply-avatar-studio-voice-to-all-scenes.command.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ApplyAvatarStudioVoiceToAllScenesCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const models_1 = require("../../../models");
|
|
6
|
-
const avatar_studio_common_schema_1 = require("../shared/avatar-studio-common.schema");
|
|
7
|
-
var ApplyAvatarStudioVoiceToAllScenesCommand;
|
|
8
|
-
(function (ApplyAvatarStudioVoiceToAllScenesCommand) {
|
|
9
|
-
ApplyAvatarStudioVoiceToAllScenesCommand.ParamsSchema = avatar_studio_common_schema_1.AvatarStudioClipIdParamsSchema.extend({
|
|
10
|
-
voiceId: zod_1.z.string().uuid(),
|
|
11
|
-
});
|
|
12
|
-
// Ответ — клип со сценами, а не список сцен: фронт перерисовывает клип целиком
|
|
13
|
-
// и не ходит следом за GET /clips/:clipId.
|
|
14
|
-
ApplyAvatarStudioVoiceToAllScenesCommand.ResponseSchema = zod_1.z.object({
|
|
15
|
-
data: models_1.AvatarStudioClipSchema,
|
|
16
|
-
});
|
|
17
|
-
})(ApplyAvatarStudioVoiceToAllScenesCommand || (exports.ApplyAvatarStudioVoiceToAllScenesCommand = ApplyAvatarStudioVoiceToAllScenesCommand = {}));
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { VOICE_GENDER } from '../../../constants';
|
|
3
|
-
export declare namespace CloneAvatarStudioVoiceCommand {
|
|
4
|
-
const RequestSchema: z.ZodObject<{
|
|
5
|
-
fileId: z.ZodString;
|
|
6
|
-
title: z.ZodString;
|
|
7
|
-
gender: z.ZodOptional<z.ZodEnum<typeof VOICE_GENDER>>;
|
|
8
|
-
}, z.core.$strict>;
|
|
9
|
-
type Request = z.infer<typeof RequestSchema>;
|
|
10
|
-
const ResponseSchema: z.ZodObject<{
|
|
11
|
-
data: z.ZodObject<{
|
|
12
|
-
uuid: z.ZodString;
|
|
13
|
-
scope: z.ZodEnum<typeof import("../../..").JOB_SCOPE>;
|
|
14
|
-
source: z.ZodObject<{
|
|
15
|
-
id: z.ZodEnum<typeof import("../../..").VOICE_SOURCE>;
|
|
16
|
-
label: z.ZodString;
|
|
17
|
-
}, z.core.$strip>;
|
|
18
|
-
title: z.ZodString;
|
|
19
|
-
description: z.ZodString;
|
|
20
|
-
gender: z.ZodNullable<z.ZodObject<{
|
|
21
|
-
id: z.ZodEnum<typeof VOICE_GENDER>;
|
|
22
|
-
label: z.ZodString;
|
|
23
|
-
}, z.core.$strip>>;
|
|
24
|
-
trait: z.ZodNullable<z.ZodString>;
|
|
25
|
-
ageRange: z.ZodNullable<z.ZodString>;
|
|
26
|
-
categories: z.ZodArray<z.ZodObject<{
|
|
27
|
-
id: z.ZodEnum<typeof import("../../..").VOICE_CATEGORY>;
|
|
28
|
-
label: z.ZodString;
|
|
29
|
-
}, z.core.$strip>>;
|
|
30
|
-
previewUrl: z.ZodString;
|
|
31
|
-
imageUrl: z.ZodNullable<z.ZodString>;
|
|
32
|
-
status: z.ZodEnum<typeof import("../../..").VOICE_STATUS>;
|
|
33
|
-
error: z.ZodNullable<z.ZodString>;
|
|
34
|
-
order: z.ZodNumber;
|
|
35
|
-
isDeleted: z.ZodBoolean;
|
|
36
|
-
userId: z.ZodNullable<z.ZodString>;
|
|
37
|
-
unregisteredUserId: z.ZodNullable<z.ZodString>;
|
|
38
|
-
createdAt: z.ZodDate;
|
|
39
|
-
updatedAt: z.ZodDate;
|
|
40
|
-
}, z.core.$strip>;
|
|
41
|
-
}, z.core.$strip>;
|
|
42
|
-
type Response = z.infer<typeof ResponseSchema>;
|
|
43
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CloneAvatarStudioVoiceCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const constants_1 = require("../../../constants");
|
|
6
|
-
const models_1 = require("../../../models");
|
|
7
|
-
var CloneAvatarStudioVoiceCommand;
|
|
8
|
-
(function (CloneAvatarStudioVoiceCommand) {
|
|
9
|
-
CloneAvatarStudioVoiceCommand.RequestSchema = zod_1.z
|
|
10
|
-
.object({
|
|
11
|
-
fileId: zod_1.z.string().uuid(),
|
|
12
|
-
title: zod_1.z.string().trim().min(1).max(255),
|
|
13
|
-
gender: zod_1.z.nativeEnum(constants_1.VOICE_GENDER).optional(),
|
|
14
|
-
})
|
|
15
|
-
.strict();
|
|
16
|
-
CloneAvatarStudioVoiceCommand.ResponseSchema = zod_1.z.object({
|
|
17
|
-
data: models_1.VoiceSchema,
|
|
18
|
-
});
|
|
19
|
-
})(CloneAvatarStudioVoiceCommand || (exports.CloneAvatarStudioVoiceCommand = CloneAvatarStudioVoiceCommand = {}));
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare namespace DeleteAvatarStudioVoiceCommand {
|
|
3
|
-
const ParamsSchema: z.ZodObject<{
|
|
4
|
-
voiceId: z.ZodString;
|
|
5
|
-
}, z.core.$strip>;
|
|
6
|
-
type Params = z.infer<typeof ParamsSchema>;
|
|
7
|
-
const ResponseSchema: z.ZodObject<{
|
|
8
|
-
data: z.ZodBoolean;
|
|
9
|
-
}, z.core.$strip>;
|
|
10
|
-
type Response = z.infer<typeof ResponseSchema>;
|
|
11
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DeleteAvatarStudioVoiceCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
var DeleteAvatarStudioVoiceCommand;
|
|
6
|
-
(function (DeleteAvatarStudioVoiceCommand) {
|
|
7
|
-
DeleteAvatarStudioVoiceCommand.ParamsSchema = zod_1.z.object({
|
|
8
|
-
voiceId: zod_1.z.string().uuid(),
|
|
9
|
-
});
|
|
10
|
-
DeleteAvatarStudioVoiceCommand.ResponseSchema = zod_1.z.object({
|
|
11
|
-
data: zod_1.z.boolean(),
|
|
12
|
-
});
|
|
13
|
-
})(DeleteAvatarStudioVoiceCommand || (exports.DeleteAvatarStudioVoiceCommand = DeleteAvatarStudioVoiceCommand = {}));
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare namespace FindAvatarStudioVoicesQuery {
|
|
3
|
-
const ResponseSchema: z.ZodObject<{
|
|
4
|
-
data: z.ZodArray<z.ZodObject<{
|
|
5
|
-
uuid: z.ZodString;
|
|
6
|
-
scope: z.ZodEnum<typeof import("../../..").JOB_SCOPE>;
|
|
7
|
-
source: z.ZodObject<{
|
|
8
|
-
id: z.ZodEnum<typeof import("../../..").VOICE_SOURCE>;
|
|
9
|
-
label: z.ZodString;
|
|
10
|
-
}, z.core.$strip>;
|
|
11
|
-
title: z.ZodString;
|
|
12
|
-
description: z.ZodString;
|
|
13
|
-
gender: z.ZodNullable<z.ZodObject<{
|
|
14
|
-
id: z.ZodEnum<typeof import("../../..").VOICE_GENDER>;
|
|
15
|
-
label: z.ZodString;
|
|
16
|
-
}, z.core.$strip>>;
|
|
17
|
-
trait: z.ZodNullable<z.ZodString>;
|
|
18
|
-
ageRange: z.ZodNullable<z.ZodString>;
|
|
19
|
-
categories: z.ZodArray<z.ZodObject<{
|
|
20
|
-
id: z.ZodEnum<typeof import("../../..").VOICE_CATEGORY>;
|
|
21
|
-
label: z.ZodString;
|
|
22
|
-
}, z.core.$strip>>;
|
|
23
|
-
previewUrl: z.ZodString;
|
|
24
|
-
imageUrl: z.ZodNullable<z.ZodString>;
|
|
25
|
-
status: z.ZodEnum<typeof import("../../..").VOICE_STATUS>;
|
|
26
|
-
error: z.ZodNullable<z.ZodString>;
|
|
27
|
-
order: z.ZodNumber;
|
|
28
|
-
isDeleted: z.ZodBoolean;
|
|
29
|
-
userId: z.ZodNullable<z.ZodString>;
|
|
30
|
-
unregisteredUserId: z.ZodNullable<z.ZodString>;
|
|
31
|
-
createdAt: z.ZodDate;
|
|
32
|
-
updatedAt: z.ZodDate;
|
|
33
|
-
}, z.core.$strip>>;
|
|
34
|
-
}, z.core.$strip>;
|
|
35
|
-
type Response = z.infer<typeof ResponseSchema>;
|
|
36
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FindAvatarStudioVoicesQuery = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const models_1 = require("../../../models");
|
|
6
|
-
var FindAvatarStudioVoicesQuery;
|
|
7
|
-
(function (FindAvatarStudioVoicesQuery) {
|
|
8
|
-
FindAvatarStudioVoicesQuery.ResponseSchema = zod_1.z.object({
|
|
9
|
-
data: zod_1.z.array(models_1.VoiceSchema),
|
|
10
|
-
});
|
|
11
|
-
})(FindAvatarStudioVoicesQuery || (exports.FindAvatarStudioVoicesQuery = FindAvatarStudioVoicesQuery = {}));
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const CreatePhotoSessionStyleReferenceSchema: z.ZodObject<{
|
|
3
|
-
photoUrl: z.ZodString;
|
|
4
|
-
description: z.ZodOptional<z.ZodString>;
|
|
5
|
-
order: z.ZodNumber;
|
|
6
|
-
}, z.core.$strip>;
|
|
7
|
-
export declare namespace CreatePhotoSessionStyleCommand {
|
|
8
|
-
const RequestSchema: z.ZodObject<{
|
|
9
|
-
code: z.ZodString;
|
|
10
|
-
title: z.ZodString;
|
|
11
|
-
description: z.ZodOptional<z.ZodString>;
|
|
12
|
-
references: z.ZodArray<z.ZodObject<{
|
|
13
|
-
photoUrl: z.ZodString;
|
|
14
|
-
description: z.ZodOptional<z.ZodString>;
|
|
15
|
-
order: z.ZodNumber;
|
|
16
|
-
}, z.core.$strip>>;
|
|
17
|
-
}, z.core.$strip>;
|
|
18
|
-
type Request = z.infer<typeof RequestSchema>;
|
|
19
|
-
const ResponseSchema: z.ZodObject<{
|
|
20
|
-
data: z.ZodObject<{
|
|
21
|
-
uuid: z.ZodString;
|
|
22
|
-
code: z.ZodString;
|
|
23
|
-
title: z.ZodString;
|
|
24
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
-
references: z.ZodArray<z.ZodObject<{
|
|
26
|
-
uuid: z.ZodString;
|
|
27
|
-
styleId: z.ZodString;
|
|
28
|
-
photoUrl: z.ZodString;
|
|
29
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
-
order: z.ZodNumber;
|
|
31
|
-
createdAt: z.ZodCoercedDate<unknown>;
|
|
32
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
33
|
-
}, z.core.$strip>>;
|
|
34
|
-
createdAt: z.ZodCoercedDate<unknown>;
|
|
35
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
36
|
-
}, z.core.$strip>;
|
|
37
|
-
}, z.core.$strip>;
|
|
38
|
-
type Response = z.infer<typeof ResponseSchema>;
|
|
39
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CreatePhotoSessionStyleCommand = exports.CreatePhotoSessionStyleReferenceSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const models_1 = require("../../../../models");
|
|
6
|
-
exports.CreatePhotoSessionStyleReferenceSchema = zod_1.z.object({
|
|
7
|
-
photoUrl: zod_1.z.string(),
|
|
8
|
-
description: zod_1.z.string().optional(),
|
|
9
|
-
order: zod_1.z.number().int().min(0).max(5),
|
|
10
|
-
});
|
|
11
|
-
var CreatePhotoSessionStyleCommand;
|
|
12
|
-
(function (CreatePhotoSessionStyleCommand) {
|
|
13
|
-
CreatePhotoSessionStyleCommand.RequestSchema = zod_1.z.object({
|
|
14
|
-
code: zod_1.z.string(),
|
|
15
|
-
title: zod_1.z.string(),
|
|
16
|
-
description: zod_1.z.string().optional(),
|
|
17
|
-
references: zod_1.z
|
|
18
|
-
.array(exports.CreatePhotoSessionStyleReferenceSchema)
|
|
19
|
-
.max(6)
|
|
20
|
-
.refine((references) => new Set(references.map((reference) => reference.order)).size ===
|
|
21
|
-
references.length, { message: 'Reference order must be unique' }),
|
|
22
|
-
});
|
|
23
|
-
CreatePhotoSessionStyleCommand.ResponseSchema = zod_1.z.object({
|
|
24
|
-
data: models_1.PhotoSessionStyleSchema,
|
|
25
|
-
});
|
|
26
|
-
})(CreatePhotoSessionStyleCommand || (exports.CreatePhotoSessionStyleCommand = CreatePhotoSessionStyleCommand = {}));
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare namespace DeletePhotoSessionStyleCommand {
|
|
3
|
-
const RequestParamsSchema: z.ZodObject<{
|
|
4
|
-
uuid: z.ZodString;
|
|
5
|
-
}, z.core.$strip>;
|
|
6
|
-
type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
7
|
-
const ResponseSchema: z.ZodVoid;
|
|
8
|
-
type Response = z.infer<typeof ResponseSchema>;
|
|
9
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DeletePhotoSessionStyleCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
var DeletePhotoSessionStyleCommand;
|
|
6
|
-
(function (DeletePhotoSessionStyleCommand) {
|
|
7
|
-
DeletePhotoSessionStyleCommand.RequestParamsSchema = zod_1.z.object({
|
|
8
|
-
uuid: zod_1.z.string().uuid(),
|
|
9
|
-
});
|
|
10
|
-
DeletePhotoSessionStyleCommand.ResponseSchema = zod_1.z.void();
|
|
11
|
-
})(DeletePhotoSessionStyleCommand || (exports.DeletePhotoSessionStyleCommand = DeletePhotoSessionStyleCommand = {}));
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const UpdatePhotoSessionStyleReferenceSchema: z.ZodObject<{
|
|
3
|
-
photoUrl: z.ZodString;
|
|
4
|
-
description: z.ZodOptional<z.ZodString>;
|
|
5
|
-
order: z.ZodNumber;
|
|
6
|
-
uuid: z.ZodOptional<z.ZodString>;
|
|
7
|
-
}, z.core.$strip>;
|
|
8
|
-
export declare namespace UpdatePhotoSessionStyleCommand {
|
|
9
|
-
const RequestParamsSchema: z.ZodObject<{
|
|
10
|
-
uuid: z.ZodString;
|
|
11
|
-
}, z.core.$strip>;
|
|
12
|
-
type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
13
|
-
const RequestSchema: z.ZodObject<{
|
|
14
|
-
code: z.ZodOptional<z.ZodString>;
|
|
15
|
-
title: z.ZodOptional<z.ZodString>;
|
|
16
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
-
references: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
18
|
-
photoUrl: z.ZodString;
|
|
19
|
-
description: z.ZodOptional<z.ZodString>;
|
|
20
|
-
order: z.ZodNumber;
|
|
21
|
-
uuid: z.ZodOptional<z.ZodString>;
|
|
22
|
-
}, z.core.$strip>>>;
|
|
23
|
-
}, z.core.$strip>;
|
|
24
|
-
type Request = z.infer<typeof RequestSchema>;
|
|
25
|
-
const ResponseSchema: z.ZodObject<{
|
|
26
|
-
data: z.ZodObject<{
|
|
27
|
-
uuid: z.ZodString;
|
|
28
|
-
code: z.ZodString;
|
|
29
|
-
title: z.ZodString;
|
|
30
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
-
references: z.ZodArray<z.ZodObject<{
|
|
32
|
-
uuid: z.ZodString;
|
|
33
|
-
styleId: z.ZodString;
|
|
34
|
-
photoUrl: z.ZodString;
|
|
35
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
-
order: z.ZodNumber;
|
|
37
|
-
createdAt: z.ZodCoercedDate<unknown>;
|
|
38
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
39
|
-
}, z.core.$strip>>;
|
|
40
|
-
createdAt: z.ZodCoercedDate<unknown>;
|
|
41
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
42
|
-
}, z.core.$strip>;
|
|
43
|
-
}, z.core.$strip>;
|
|
44
|
-
type Response = z.infer<typeof ResponseSchema>;
|
|
45
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdatePhotoSessionStyleCommand = exports.UpdatePhotoSessionStyleReferenceSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const models_1 = require("../../../../models");
|
|
6
|
-
const create_photo_session_style_command_1 = require("./create-photo-session-style.command");
|
|
7
|
-
exports.UpdatePhotoSessionStyleReferenceSchema = create_photo_session_style_command_1.CreatePhotoSessionStyleReferenceSchema.extend({
|
|
8
|
-
uuid: zod_1.z.string().uuid().optional(),
|
|
9
|
-
}).refine((ref) => {
|
|
10
|
-
if (ref.photoUrl === undefined &&
|
|
11
|
-
ref.description === undefined &&
|
|
12
|
-
ref.order === undefined) {
|
|
13
|
-
return false;
|
|
14
|
-
}
|
|
15
|
-
return true;
|
|
16
|
-
}, { message: 'At least one field must be provided for reference update' });
|
|
17
|
-
var UpdatePhotoSessionStyleCommand;
|
|
18
|
-
(function (UpdatePhotoSessionStyleCommand) {
|
|
19
|
-
UpdatePhotoSessionStyleCommand.RequestParamsSchema = zod_1.z.object({
|
|
20
|
-
uuid: zod_1.z.string().uuid(),
|
|
21
|
-
});
|
|
22
|
-
UpdatePhotoSessionStyleCommand.RequestSchema = zod_1.z.object({
|
|
23
|
-
code: zod_1.z.string().optional(),
|
|
24
|
-
title: zod_1.z.string().optional(),
|
|
25
|
-
description: zod_1.z.string().nullable().optional(),
|
|
26
|
-
references: zod_1.z
|
|
27
|
-
.array(exports.UpdatePhotoSessionStyleReferenceSchema)
|
|
28
|
-
.max(6)
|
|
29
|
-
.refine((references) => new Set(references.map((reference) => reference.order)).size ===
|
|
30
|
-
references.length, { message: 'Reference order must be unique' })
|
|
31
|
-
.optional(),
|
|
32
|
-
});
|
|
33
|
-
UpdatePhotoSessionStyleCommand.ResponseSchema = zod_1.z.object({
|
|
34
|
-
data: models_1.PhotoSessionStyleSchema,
|
|
35
|
-
});
|
|
36
|
-
})(UpdatePhotoSessionStyleCommand || (exports.UpdatePhotoSessionStyleCommand = UpdatePhotoSessionStyleCommand = {}));
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DeleteAllPhotoSessionJobsCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
var DeleteAllPhotoSessionJobsCommand;
|
|
6
|
-
(function (DeleteAllPhotoSessionJobsCommand) {
|
|
7
|
-
DeleteAllPhotoSessionJobsCommand.ResponseSchema = zod_1.z.void();
|
|
8
|
-
})(DeleteAllPhotoSessionJobsCommand || (exports.DeleteAllPhotoSessionJobsCommand = DeleteAllPhotoSessionJobsCommand = {}));
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare namespace DeletePhotoSessionJobByUUIDCommand {
|
|
3
|
-
const RequestParamsSchema: z.ZodObject<{
|
|
4
|
-
uuid: z.ZodString;
|
|
5
|
-
}, z.core.$strip>;
|
|
6
|
-
type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
7
|
-
const ResponseSchema: z.ZodVoid;
|
|
8
|
-
type Response = z.infer<typeof ResponseSchema>;
|
|
9
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DeletePhotoSessionJobByUUIDCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
var DeletePhotoSessionJobByUUIDCommand;
|
|
6
|
-
(function (DeletePhotoSessionJobByUUIDCommand) {
|
|
7
|
-
DeletePhotoSessionJobByUUIDCommand.RequestParamsSchema = zod_1.z.object({
|
|
8
|
-
uuid: zod_1.z.string().uuid(),
|
|
9
|
-
});
|
|
10
|
-
DeletePhotoSessionJobByUUIDCommand.ResponseSchema = zod_1.z.void();
|
|
11
|
-
})(DeletePhotoSessionJobByUUIDCommand || (exports.DeletePhotoSessionJobByUUIDCommand = DeletePhotoSessionJobByUUIDCommand = {}));
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare namespace FindPhotoSessionJobByUUIDCommand {
|
|
3
|
-
const RequestParamsSchema: z.ZodObject<{
|
|
4
|
-
uuid: z.ZodString;
|
|
5
|
-
}, z.core.$strip>;
|
|
6
|
-
type Request = z.infer<typeof RequestParamsSchema>;
|
|
7
|
-
const ResponseSchema: z.ZodObject<{
|
|
8
|
-
data: z.ZodObject<{
|
|
9
|
-
uuid: z.ZodString;
|
|
10
|
-
status: z.ZodEnum<typeof import("../../..").TOOL_JOB_STATUS>;
|
|
11
|
-
error: z.ZodNullable<z.ZodString>;
|
|
12
|
-
isFavorite: z.ZodBoolean;
|
|
13
|
-
createdAt: z.ZodCoercedDate<unknown>;
|
|
14
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
15
|
-
prompt: z.ZodString;
|
|
16
|
-
reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
|
|
17
|
-
dislikeReason: z.ZodNullable<z.ZodString>;
|
|
18
|
-
externalId: z.ZodNullable<z.ZodString>;
|
|
19
|
-
title: z.ZodString;
|
|
20
|
-
modelId: z.ZodString;
|
|
21
|
-
price: z.ZodNumber;
|
|
22
|
-
previewUrl: z.ZodNullable<z.ZodString>;
|
|
23
|
-
params: z.ZodObject<{
|
|
24
|
-
attachedFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
25
|
-
uuid: z.ZodString;
|
|
26
|
-
url: z.ZodString;
|
|
27
|
-
name: z.ZodString;
|
|
28
|
-
mimeType: z.ZodString;
|
|
29
|
-
type: z.ZodString;
|
|
30
|
-
size: z.ZodNumber;
|
|
31
|
-
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
32
|
-
}, z.core.$strip>>>;
|
|
33
|
-
imageUrls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
34
|
-
styleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
-
referenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
-
referenceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
37
|
-
customStylePrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
-
customStylePhotos: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
39
|
-
clothingPhotos: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
40
|
-
hairstylePhotos: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
41
|
-
accessoriesPhotos: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
42
|
-
aspectRatio: z.ZodOptional<z.ZodString>;
|
|
43
|
-
userHasActiveSubscriptionOrProduct: z.ZodOptional<z.ZodBoolean>;
|
|
44
|
-
}, z.core.$strip>;
|
|
45
|
-
imageUrls: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
46
|
-
images: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
47
|
-
uuid: z.ZodString;
|
|
48
|
-
url: z.ZodString;
|
|
49
|
-
originalName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
|
-
resolution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
51
|
-
width: z.ZodNumber;
|
|
52
|
-
height: z.ZodNumber;
|
|
53
|
-
}, z.core.$strip>>>;
|
|
54
|
-
}, z.core.$strip>>>;
|
|
55
|
-
isPublished: z.ZodBoolean;
|
|
56
|
-
postId: z.ZodNullable<z.ZodString>;
|
|
57
|
-
isDeleted: z.ZodBoolean;
|
|
58
|
-
tokenReservationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
|
-
userId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
60
|
-
unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
61
|
-
}, z.core.$strip>;
|
|
62
|
-
}, z.core.$strip>;
|
|
63
|
-
type Response = z.infer<typeof ResponseSchema>;
|
|
64
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FindPhotoSessionJobByUUIDCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const models_1 = require("../../../models");
|
|
6
|
-
var FindPhotoSessionJobByUUIDCommand;
|
|
7
|
-
(function (FindPhotoSessionJobByUUIDCommand) {
|
|
8
|
-
FindPhotoSessionJobByUUIDCommand.RequestParamsSchema = zod_1.z.object({
|
|
9
|
-
uuid: zod_1.z.string().uuid(),
|
|
10
|
-
});
|
|
11
|
-
FindPhotoSessionJobByUUIDCommand.ResponseSchema = zod_1.z.object({
|
|
12
|
-
data: models_1.PhotoSessionJobSchema,
|
|
13
|
-
});
|
|
14
|
-
})(FindPhotoSessionJobByUUIDCommand || (exports.FindPhotoSessionJobByUUIDCommand = FindPhotoSessionJobByUUIDCommand = {}));
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { JOB_SORT, TOOL_JOB_STATUS } from '../../../constants';
|
|
3
|
-
export declare namespace FindPhotoSessionJobsCommand {
|
|
4
|
-
const RequestQuerySchema: z.ZodObject<{
|
|
5
|
-
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
6
|
-
offset: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
7
|
-
title: z.ZodOptional<z.ZodString>;
|
|
8
|
-
isFavorite: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean>>;
|
|
9
|
-
createdAtSortOrder: z.ZodOptional<z.ZodEnum<typeof JOB_SORT>>;
|
|
10
|
-
status: z.ZodOptional<z.ZodEnum<typeof TOOL_JOB_STATUS>>;
|
|
11
|
-
}, z.core.$strip>;
|
|
12
|
-
type RequestQuery = z.infer<typeof RequestQuerySchema>;
|
|
13
|
-
const ResponseSchema: z.ZodObject<{
|
|
14
|
-
data: z.ZodArray<z.ZodObject<{
|
|
15
|
-
uuid: z.ZodString;
|
|
16
|
-
status: z.ZodEnum<typeof TOOL_JOB_STATUS>;
|
|
17
|
-
error: z.ZodNullable<z.ZodString>;
|
|
18
|
-
isFavorite: z.ZodBoolean;
|
|
19
|
-
createdAt: z.ZodCoercedDate<unknown>;
|
|
20
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
21
|
-
prompt: z.ZodString;
|
|
22
|
-
reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
|
|
23
|
-
dislikeReason: z.ZodNullable<z.ZodString>;
|
|
24
|
-
externalId: z.ZodNullable<z.ZodString>;
|
|
25
|
-
title: z.ZodString;
|
|
26
|
-
modelId: z.ZodString;
|
|
27
|
-
price: z.ZodNumber;
|
|
28
|
-
previewUrl: z.ZodNullable<z.ZodString>;
|
|
29
|
-
params: z.ZodObject<{
|
|
30
|
-
attachedFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
31
|
-
uuid: z.ZodString;
|
|
32
|
-
url: z.ZodString;
|
|
33
|
-
name: z.ZodString;
|
|
34
|
-
mimeType: z.ZodString;
|
|
35
|
-
type: z.ZodString;
|
|
36
|
-
size: z.ZodNumber;
|
|
37
|
-
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
38
|
-
}, z.core.$strip>>>;
|
|
39
|
-
imageUrls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
40
|
-
styleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
-
referenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
-
referenceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
43
|
-
customStylePrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
-
customStylePhotos: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
45
|
-
clothingPhotos: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
46
|
-
hairstylePhotos: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
47
|
-
accessoriesPhotos: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
48
|
-
aspectRatio: z.ZodOptional<z.ZodString>;
|
|
49
|
-
userHasActiveSubscriptionOrProduct: z.ZodOptional<z.ZodBoolean>;
|
|
50
|
-
}, z.core.$strip>;
|
|
51
|
-
imageUrls: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
52
|
-
images: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
53
|
-
uuid: z.ZodString;
|
|
54
|
-
url: z.ZodString;
|
|
55
|
-
originalName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
56
|
-
resolution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
57
|
-
width: z.ZodNumber;
|
|
58
|
-
height: z.ZodNumber;
|
|
59
|
-
}, z.core.$strip>>>;
|
|
60
|
-
}, z.core.$strip>>>;
|
|
61
|
-
isPublished: z.ZodBoolean;
|
|
62
|
-
postId: z.ZodNullable<z.ZodString>;
|
|
63
|
-
isDeleted: z.ZodBoolean;
|
|
64
|
-
tokenReservationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
65
|
-
userId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
66
|
-
unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
67
|
-
}, z.core.$strip>>;
|
|
68
|
-
totalPages: z.ZodNumber;
|
|
69
|
-
total: z.ZodNumber;
|
|
70
|
-
page: z.ZodNumber;
|
|
71
|
-
}, z.core.$strip>;
|
|
72
|
-
type Response = z.infer<typeof ResponseSchema>;
|
|
73
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FindPhotoSessionJobsCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const helpers_1 = require("../../../helpers");
|
|
6
|
-
const constants_1 = require("../../../constants");
|
|
7
|
-
const models_1 = require("../../../models");
|
|
8
|
-
var FindPhotoSessionJobsCommand;
|
|
9
|
-
(function (FindPhotoSessionJobsCommand) {
|
|
10
|
-
FindPhotoSessionJobsCommand.RequestQuerySchema = zod_1.z.object({
|
|
11
|
-
limit: zod_1.z.coerce.number().min(1).max(100).optional(),
|
|
12
|
-
offset: zod_1.z.coerce.number().min(0).optional(),
|
|
13
|
-
title: zod_1.z.string().optional(),
|
|
14
|
-
isFavorite: helpers_1.QueryBooleanSchema.optional(),
|
|
15
|
-
createdAtSortOrder: zod_1.z.enum(constants_1.JOB_SORT).optional(),
|
|
16
|
-
status: zod_1.z.enum(constants_1.TOOL_JOB_STATUS).optional(),
|
|
17
|
-
});
|
|
18
|
-
FindPhotoSessionJobsCommand.ResponseSchema = zod_1.z.object({
|
|
19
|
-
data: zod_1.z.array(models_1.PhotoSessionJobSchema),
|
|
20
|
-
totalPages: zod_1.z.number(),
|
|
21
|
-
total: zod_1.z.number(),
|
|
22
|
-
page: zod_1.z.number(),
|
|
23
|
-
});
|
|
24
|
-
})(FindPhotoSessionJobsCommand || (exports.FindPhotoSessionJobsCommand = FindPhotoSessionJobsCommand = {}));
|