@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
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PhotoSessionJobSchema = exports.PhotoSessionJobParamsSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const constants_1 = require("../../../constants");
|
|
6
|
-
const tool_job_schema_1 = require("../../tool-job.schema");
|
|
7
|
-
const file_schema_1 = require("../../file.schema");
|
|
8
|
-
const common_1 = require("../common");
|
|
9
|
-
exports.PhotoSessionJobParamsSchema = zod_1.z.object({
|
|
10
|
-
attachedFiles: zod_1.z.array(common_1.AttachedToolFileSchema).optional(),
|
|
11
|
-
imageUrls: zod_1.z.array(zod_1.z.string()).optional(),
|
|
12
|
-
styleId: zod_1.z.string().uuid().nullable().optional(),
|
|
13
|
-
referenceId: zod_1.z.string().uuid().nullable().optional(),
|
|
14
|
-
referenceIds: zod_1.z.array(zod_1.z.string().uuid()).optional(),
|
|
15
|
-
customStylePrompt: zod_1.z.string().nullable().optional(),
|
|
16
|
-
customStylePhotos: zod_1.z.array(zod_1.z.string()).optional(),
|
|
17
|
-
clothingPhotos: zod_1.z.array(zod_1.z.string()).optional(),
|
|
18
|
-
hairstylePhotos: zod_1.z.array(zod_1.z.string()).optional(),
|
|
19
|
-
accessoriesPhotos: zod_1.z.array(zod_1.z.string()).optional(),
|
|
20
|
-
aspectRatio: zod_1.z.string().optional(),
|
|
21
|
-
userHasActiveSubscriptionOrProduct: zod_1.z.boolean().optional(),
|
|
22
|
-
});
|
|
23
|
-
exports.PhotoSessionJobSchema = tool_job_schema_1.ToolJobSchema.extend({
|
|
24
|
-
createdAt: zod_1.z.coerce.date(),
|
|
25
|
-
updatedAt: zod_1.z.coerce.date(),
|
|
26
|
-
prompt: zod_1.z.string(),
|
|
27
|
-
reaction: zod_1.z.enum(constants_1.USER_REACTION).nullable(),
|
|
28
|
-
dislikeReason: zod_1.z.string().nullable(),
|
|
29
|
-
externalId: zod_1.z.string().nullable(),
|
|
30
|
-
title: zod_1.z.string(),
|
|
31
|
-
modelId: zod_1.z.string(),
|
|
32
|
-
price: zod_1.z.number(),
|
|
33
|
-
previewUrl: zod_1.z.string().nullable(),
|
|
34
|
-
params: exports.PhotoSessionJobParamsSchema,
|
|
35
|
-
imageUrls: zod_1.z.array(zod_1.z.string()).nullable(),
|
|
36
|
-
images: zod_1.z
|
|
37
|
-
.array(zod_1.z.object({
|
|
38
|
-
uuid: zod_1.z.string(),
|
|
39
|
-
url: zod_1.z.string(),
|
|
40
|
-
originalName: zod_1.z.string().nullable().optional(),
|
|
41
|
-
resolution: file_schema_1.FileResolutionSchema.nullable().optional(),
|
|
42
|
-
}))
|
|
43
|
-
.nullable(),
|
|
44
|
-
isPublished: zod_1.z.boolean(),
|
|
45
|
-
postId: zod_1.z.string().nullable(),
|
|
46
|
-
isDeleted: zod_1.z.boolean(),
|
|
47
|
-
tokenReservationId: zod_1.z.string().nullable().optional(),
|
|
48
|
-
userId: zod_1.z.uuid().nullable().optional(),
|
|
49
|
-
unregisteredUserId: zod_1.z.uuid().nullable().optional(),
|
|
50
|
-
});
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { PHOTO_SESSION_STRATEGY, TOOL_MODEL_STATUS } from '../../../constants';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
export declare const PhotoSessionModelParamsSchema: z.ZodObject<{
|
|
4
|
-
imageAttachment: z.ZodObject<{
|
|
5
|
-
supported: z.ZodBoolean;
|
|
6
|
-
maxImages: z.ZodNumber;
|
|
7
|
-
acceptedTypes: z.ZodArray<z.ZodString>;
|
|
8
|
-
}, z.core.$strip>;
|
|
9
|
-
aspectRatio: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
10
|
-
width: z.ZodNumber;
|
|
11
|
-
height: z.ZodNumber;
|
|
12
|
-
}, z.core.$strip>>;
|
|
13
|
-
}, z.core.$strip>;
|
|
14
|
-
export type PhotoSessionModelParams = z.infer<typeof PhotoSessionModelParamsSchema>;
|
|
15
|
-
export declare const PhotoSessionModelPricingRuleConditionSchema: z.ZodObject<{
|
|
16
|
-
withoutSub: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
-
}, z.core.$strip>;
|
|
18
|
-
export type PhotoSessionModelPricingRuleCondition = z.infer<typeof PhotoSessionModelPricingRuleConditionSchema>;
|
|
19
|
-
export declare const PhotoSessionModelPricingRulesSchema: z.ZodArray<z.ZodObject<{
|
|
20
|
-
condition: z.ZodObject<{
|
|
21
|
-
withoutSub: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
-
}, z.core.$strip>;
|
|
23
|
-
value: z.ZodNumber;
|
|
24
|
-
}, z.core.$strip>>;
|
|
25
|
-
export type PhotoSessionModelPricingRules = z.infer<typeof PhotoSessionModelPricingRulesSchema>;
|
|
26
|
-
export declare const RawPhotoSessionModelSchema: z.ZodObject<{
|
|
27
|
-
uuid: z.ZodString;
|
|
28
|
-
title: z.ZodString;
|
|
29
|
-
description: z.ZodString;
|
|
30
|
-
aiModel: z.ZodString;
|
|
31
|
-
isNew: z.ZodBoolean;
|
|
32
|
-
tierLabel: z.ZodString;
|
|
33
|
-
pricePerImage: z.ZodNumber;
|
|
34
|
-
order: z.ZodNumber;
|
|
35
|
-
status: z.ZodEnum<typeof TOOL_MODEL_STATUS>;
|
|
36
|
-
icons: z.ZodObject<{
|
|
37
|
-
light: z.ZodObject<{
|
|
38
|
-
svg: z.ZodString;
|
|
39
|
-
png: z.ZodString;
|
|
40
|
-
}, z.core.$strip>;
|
|
41
|
-
dark: z.ZodObject<{
|
|
42
|
-
svg: z.ZodString;
|
|
43
|
-
png: z.ZodString;
|
|
44
|
-
}, z.core.$strip>;
|
|
45
|
-
}, z.core.$strip>;
|
|
46
|
-
strategy: z.ZodEnum<typeof PHOTO_SESSION_STRATEGY>;
|
|
47
|
-
maxInputLength: z.ZodNumber;
|
|
48
|
-
params: z.ZodObject<{
|
|
49
|
-
imageAttachment: z.ZodObject<{
|
|
50
|
-
supported: z.ZodBoolean;
|
|
51
|
-
maxImages: z.ZodNumber;
|
|
52
|
-
acceptedTypes: z.ZodArray<z.ZodString>;
|
|
53
|
-
}, z.core.$strip>;
|
|
54
|
-
aspectRatio: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
55
|
-
width: z.ZodNumber;
|
|
56
|
-
height: z.ZodNumber;
|
|
57
|
-
}, z.core.$strip>>;
|
|
58
|
-
}, z.core.$strip>;
|
|
59
|
-
pricingRules: z.ZodArray<z.ZodObject<{
|
|
60
|
-
condition: z.ZodObject<{
|
|
61
|
-
withoutSub: z.ZodOptional<z.ZodBoolean>;
|
|
62
|
-
}, z.core.$strip>;
|
|
63
|
-
value: z.ZodNumber;
|
|
64
|
-
}, z.core.$strip>>;
|
|
65
|
-
createdAt: z.ZodCoercedDate<unknown>;
|
|
66
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
67
|
-
}, z.core.$strip>;
|
|
68
|
-
export type RawPhotoSessionModel = z.infer<typeof RawPhotoSessionModelSchema>;
|
|
69
|
-
export declare const PhotoSessionModelSchema: z.ZodObject<{
|
|
70
|
-
uuid: z.ZodString;
|
|
71
|
-
title: z.ZodString;
|
|
72
|
-
description: z.ZodString;
|
|
73
|
-
aiModel: z.ZodString;
|
|
74
|
-
isNew: z.ZodBoolean;
|
|
75
|
-
tierLabel: z.ZodString;
|
|
76
|
-
pricePerImage: z.ZodNumber;
|
|
77
|
-
order: z.ZodNumber;
|
|
78
|
-
status: z.ZodEnum<typeof TOOL_MODEL_STATUS>;
|
|
79
|
-
icons: z.ZodObject<{
|
|
80
|
-
light: z.ZodObject<{
|
|
81
|
-
svg: z.ZodString;
|
|
82
|
-
png: z.ZodString;
|
|
83
|
-
}, z.core.$strip>;
|
|
84
|
-
dark: z.ZodObject<{
|
|
85
|
-
svg: z.ZodString;
|
|
86
|
-
png: z.ZodString;
|
|
87
|
-
}, z.core.$strip>;
|
|
88
|
-
}, z.core.$strip>;
|
|
89
|
-
strategy: z.ZodEnum<typeof PHOTO_SESSION_STRATEGY>;
|
|
90
|
-
maxInputLength: z.ZodNumber;
|
|
91
|
-
params: z.ZodObject<{
|
|
92
|
-
imageAttachment: z.ZodObject<{
|
|
93
|
-
supported: z.ZodBoolean;
|
|
94
|
-
maxImages: z.ZodNumber;
|
|
95
|
-
acceptedTypes: z.ZodArray<z.ZodString>;
|
|
96
|
-
}, z.core.$strip>;
|
|
97
|
-
aspectRatio: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
98
|
-
width: z.ZodNumber;
|
|
99
|
-
height: z.ZodNumber;
|
|
100
|
-
}, z.core.$strip>>;
|
|
101
|
-
}, z.core.$strip>;
|
|
102
|
-
pricingRules: z.ZodArray<z.ZodObject<{
|
|
103
|
-
condition: z.ZodObject<{
|
|
104
|
-
withoutSub: z.ZodOptional<z.ZodBoolean>;
|
|
105
|
-
}, z.core.$strip>;
|
|
106
|
-
value: z.ZodNumber;
|
|
107
|
-
}, z.core.$strip>>;
|
|
108
|
-
createdAt: z.ZodCoercedDate<unknown>;
|
|
109
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
110
|
-
unlockedBy: z.ZodNullable<z.ZodObject<{
|
|
111
|
-
uuid: z.ZodString;
|
|
112
|
-
name: z.ZodString;
|
|
113
|
-
}, z.core.$strip>>;
|
|
114
|
-
canUse: z.ZodBoolean;
|
|
115
|
-
}, z.core.$strip>;
|
|
116
|
-
export type PhotoSessionModel = z.infer<typeof PhotoSessionModelSchema>;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PhotoSessionModelSchema = exports.RawPhotoSessionModelSchema = exports.PhotoSessionModelPricingRulesSchema = exports.PhotoSessionModelPricingRuleConditionSchema = exports.PhotoSessionModelParamsSchema = void 0;
|
|
4
|
-
const unlocked_by_subscription_schema_1 = require("../../unlocked-by-subscription.schema");
|
|
5
|
-
const constants_1 = require("../../../constants");
|
|
6
|
-
const zod_1 = require("zod");
|
|
7
|
-
const icon_variants_schema_1 = require("../../icon-variants.schema");
|
|
8
|
-
exports.PhotoSessionModelParamsSchema = zod_1.z.object({
|
|
9
|
-
imageAttachment: zod_1.z.object({
|
|
10
|
-
supported: zod_1.z.boolean(),
|
|
11
|
-
maxImages: zod_1.z.number(),
|
|
12
|
-
acceptedTypes: zod_1.z.array(zod_1.z.string()),
|
|
13
|
-
}),
|
|
14
|
-
aspectRatio: zod_1.z.record(zod_1.z.string(), zod_1.z.object({
|
|
15
|
-
width: zod_1.z.number(),
|
|
16
|
-
height: zod_1.z.number(),
|
|
17
|
-
})),
|
|
18
|
-
});
|
|
19
|
-
exports.PhotoSessionModelPricingRuleConditionSchema = zod_1.z.object({
|
|
20
|
-
withoutSub: zod_1.z.boolean().optional(),
|
|
21
|
-
});
|
|
22
|
-
exports.PhotoSessionModelPricingRulesSchema = zod_1.z.array(zod_1.z.object({
|
|
23
|
-
condition: exports.PhotoSessionModelPricingRuleConditionSchema,
|
|
24
|
-
value: zod_1.z.number(),
|
|
25
|
-
}));
|
|
26
|
-
exports.RawPhotoSessionModelSchema = zod_1.z.object({
|
|
27
|
-
uuid: zod_1.z.string(),
|
|
28
|
-
title: zod_1.z.string(),
|
|
29
|
-
description: zod_1.z.string(),
|
|
30
|
-
aiModel: zod_1.z.string(),
|
|
31
|
-
isNew: zod_1.z.boolean(),
|
|
32
|
-
tierLabel: zod_1.z.string(),
|
|
33
|
-
pricePerImage: zod_1.z.number(),
|
|
34
|
-
order: zod_1.z.number(),
|
|
35
|
-
status: zod_1.z.nativeEnum(constants_1.TOOL_MODEL_STATUS),
|
|
36
|
-
icons: icon_variants_schema_1.IconVariantsSchema,
|
|
37
|
-
strategy: zod_1.z.nativeEnum(constants_1.PHOTO_SESSION_STRATEGY),
|
|
38
|
-
maxInputLength: zod_1.z.number(),
|
|
39
|
-
params: exports.PhotoSessionModelParamsSchema,
|
|
40
|
-
pricingRules: exports.PhotoSessionModelPricingRulesSchema,
|
|
41
|
-
createdAt: zod_1.z.coerce.date(),
|
|
42
|
-
updatedAt: zod_1.z.coerce.date(),
|
|
43
|
-
});
|
|
44
|
-
exports.PhotoSessionModelSchema = exports.RawPhotoSessionModelSchema.extend({
|
|
45
|
-
unlockedBy: unlocked_by_subscription_schema_1.UnlockedBySchema.nullable(),
|
|
46
|
-
canUse: zod_1.z.boolean(),
|
|
47
|
-
});
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const PhotoSessionStyleReferenceSchema: z.ZodObject<{
|
|
3
|
-
uuid: z.ZodString;
|
|
4
|
-
styleId: z.ZodString;
|
|
5
|
-
photoUrl: z.ZodString;
|
|
6
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
|
-
order: z.ZodNumber;
|
|
8
|
-
createdAt: z.ZodCoercedDate<unknown>;
|
|
9
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
10
|
-
}, z.core.$strip>;
|
|
11
|
-
export type PhotoSessionStyleReference = z.infer<typeof PhotoSessionStyleReferenceSchema>;
|
|
12
|
-
export declare const PhotoSessionStyleSchema: z.ZodObject<{
|
|
13
|
-
uuid: z.ZodString;
|
|
14
|
-
code: z.ZodString;
|
|
15
|
-
title: z.ZodString;
|
|
16
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
-
references: z.ZodArray<z.ZodObject<{
|
|
18
|
-
uuid: z.ZodString;
|
|
19
|
-
styleId: z.ZodString;
|
|
20
|
-
photoUrl: z.ZodString;
|
|
21
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
-
order: z.ZodNumber;
|
|
23
|
-
createdAt: z.ZodCoercedDate<unknown>;
|
|
24
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
25
|
-
}, z.core.$strip>>;
|
|
26
|
-
createdAt: z.ZodCoercedDate<unknown>;
|
|
27
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
28
|
-
}, z.core.$strip>;
|
|
29
|
-
export type PhotoSessionStyle = z.infer<typeof PhotoSessionStyleSchema>;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PhotoSessionStyleSchema = exports.PhotoSessionStyleReferenceSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.PhotoSessionStyleReferenceSchema = zod_1.z.object({
|
|
6
|
-
uuid: zod_1.z.string().uuid(),
|
|
7
|
-
styleId: zod_1.z.string().uuid(),
|
|
8
|
-
photoUrl: zod_1.z.string(),
|
|
9
|
-
description: zod_1.z.string().nullable().optional(),
|
|
10
|
-
order: zod_1.z.number().int().min(0).max(5),
|
|
11
|
-
createdAt: zod_1.z.coerce.date(),
|
|
12
|
-
updatedAt: zod_1.z.coerce.date(),
|
|
13
|
-
});
|
|
14
|
-
exports.PhotoSessionStyleSchema = zod_1.z.object({
|
|
15
|
-
uuid: zod_1.z.string().uuid(),
|
|
16
|
-
code: zod_1.z.string(),
|
|
17
|
-
title: zod_1.z.string(),
|
|
18
|
-
description: zod_1.z.string().nullable().optional(),
|
|
19
|
-
references: zod_1.z.array(exports.PhotoSessionStyleReferenceSchema),
|
|
20
|
-
createdAt: zod_1.z.coerce.date(),
|
|
21
|
-
updatedAt: zod_1.z.coerce.date(),
|
|
22
|
-
});
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { VOICE_GENDER } from '../../../constants';
|
|
3
|
-
export declare const VoiceDesignDraftSchema: z.ZodObject<{
|
|
4
|
-
designId: z.ZodString;
|
|
5
|
-
title: z.ZodString;
|
|
6
|
-
gender: z.ZodEnum<typeof VOICE_GENDER>;
|
|
7
|
-
imageUrl: z.ZodNullable<z.ZodString>;
|
|
8
|
-
samples: z.ZodArray<z.ZodObject<{
|
|
9
|
-
sampleId: z.ZodString;
|
|
10
|
-
previewUrl: z.ZodString;
|
|
11
|
-
}, z.core.$strip>>;
|
|
12
|
-
}, z.core.$strip>;
|
|
13
|
-
export type VoiceDesignDraft = z.infer<typeof VoiceDesignDraftSchema>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VoiceDesignDraftSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const constants_1 = require("../../../constants");
|
|
6
|
-
const voice_design_sample_schema_1 = require("./voice-design-sample.schema");
|
|
7
|
-
exports.VoiceDesignDraftSchema = zod_1.z.object({
|
|
8
|
-
designId: zod_1.z.string().uuid(),
|
|
9
|
-
title: zod_1.z.string(),
|
|
10
|
-
gender: zod_1.z.nativeEnum(constants_1.VOICE_GENDER),
|
|
11
|
-
imageUrl: zod_1.z.string().nullable(),
|
|
12
|
-
samples: zod_1.z.array(voice_design_sample_schema_1.VoiceDesignSampleSchema),
|
|
13
|
-
});
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VoiceDesignSampleSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.VoiceDesignSampleSchema = zod_1.z.object({
|
|
6
|
-
sampleId: zod_1.z.string().uuid(),
|
|
7
|
-
previewUrl: zod_1.z.string(),
|
|
8
|
-
});
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { JOB_SCOPE, VOICE_CATEGORY, VOICE_GENDER, VOICE_SOURCE, VOICE_STATUS } from '../../../constants';
|
|
3
|
-
export declare const VoiceSchema: z.ZodObject<{
|
|
4
|
-
uuid: z.ZodString;
|
|
5
|
-
scope: z.ZodEnum<typeof JOB_SCOPE>;
|
|
6
|
-
source: z.ZodObject<{
|
|
7
|
-
id: z.ZodEnum<typeof VOICE_SOURCE>;
|
|
8
|
-
label: z.ZodString;
|
|
9
|
-
}, z.core.$strip>;
|
|
10
|
-
title: z.ZodString;
|
|
11
|
-
description: z.ZodString;
|
|
12
|
-
gender: z.ZodNullable<z.ZodObject<{
|
|
13
|
-
id: z.ZodEnum<typeof VOICE_GENDER>;
|
|
14
|
-
label: z.ZodString;
|
|
15
|
-
}, z.core.$strip>>;
|
|
16
|
-
trait: z.ZodNullable<z.ZodString>;
|
|
17
|
-
ageRange: z.ZodNullable<z.ZodString>;
|
|
18
|
-
categories: z.ZodArray<z.ZodObject<{
|
|
19
|
-
id: z.ZodEnum<typeof VOICE_CATEGORY>;
|
|
20
|
-
label: z.ZodString;
|
|
21
|
-
}, z.core.$strip>>;
|
|
22
|
-
previewUrl: z.ZodString;
|
|
23
|
-
imageUrl: z.ZodNullable<z.ZodString>;
|
|
24
|
-
status: z.ZodEnum<typeof VOICE_STATUS>;
|
|
25
|
-
error: z.ZodNullable<z.ZodString>;
|
|
26
|
-
order: z.ZodNumber;
|
|
27
|
-
isDeleted: z.ZodBoolean;
|
|
28
|
-
userId: z.ZodNullable<z.ZodString>;
|
|
29
|
-
unregisteredUserId: z.ZodNullable<z.ZodString>;
|
|
30
|
-
createdAt: z.ZodDate;
|
|
31
|
-
updatedAt: z.ZodDate;
|
|
32
|
-
}, z.core.$strip>;
|
|
33
|
-
export type Voice = z.infer<typeof VoiceSchema>;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VoiceSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const constants_1 = require("../../../constants");
|
|
6
|
-
exports.VoiceSchema = zod_1.z.object({
|
|
7
|
-
uuid: zod_1.z.string().uuid(),
|
|
8
|
-
scope: zod_1.z.nativeEnum(constants_1.JOB_SCOPE),
|
|
9
|
-
source: zod_1.z.object({
|
|
10
|
-
id: zod_1.z.nativeEnum(constants_1.VOICE_SOURCE),
|
|
11
|
-
label: zod_1.z.string(),
|
|
12
|
-
}),
|
|
13
|
-
title: zod_1.z.string(),
|
|
14
|
-
description: zod_1.z.string(),
|
|
15
|
-
gender: zod_1.z
|
|
16
|
-
.object({
|
|
17
|
-
id: zod_1.z.nativeEnum(constants_1.VOICE_GENDER),
|
|
18
|
-
label: zod_1.z.string(),
|
|
19
|
-
})
|
|
20
|
-
.nullable(),
|
|
21
|
-
trait: zod_1.z.string().nullable(),
|
|
22
|
-
ageRange: zod_1.z.string().nullable(),
|
|
23
|
-
categories: zod_1.z.array(zod_1.z.object({
|
|
24
|
-
id: zod_1.z.nativeEnum(constants_1.VOICE_CATEGORY),
|
|
25
|
-
label: zod_1.z.string(),
|
|
26
|
-
})),
|
|
27
|
-
previewUrl: zod_1.z.string(),
|
|
28
|
-
imageUrl: zod_1.z.string().nullable(),
|
|
29
|
-
status: zod_1.z.nativeEnum(constants_1.VOICE_STATUS),
|
|
30
|
-
error: zod_1.z.string().nullable(),
|
|
31
|
-
order: zod_1.z.number(),
|
|
32
|
-
isDeleted: zod_1.z.boolean(),
|
|
33
|
-
userId: zod_1.z.string().uuid().nullable(),
|
|
34
|
-
unregisteredUserId: zod_1.z.string().uuid().nullable(),
|
|
35
|
-
createdAt: zod_1.z.date(),
|
|
36
|
-
updatedAt: zod_1.z.date(),
|
|
37
|
-
});
|