@purpleschool/gptbot-tools 0.2.67-stage2 → 0.2.67
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/ai-proxy/routes/ai-proxy.routes.d.ts +0 -1
- package/build/ai-proxy/routes/ai-proxy.routes.js +0 -1
- package/build/diagrams/commands/diagrams.command.d.ts +1 -0
- package/build/diagrams/commands/diagrams.command.js +1 -0
- package/build/diagrams/commands/edit-diagrams-job.command.d.ts +1 -0
- package/build/diagrams/commands/edit-diagrams-job.command.js +1 -0
- package/build/diagrams/commands/retry-diagrams-job.command.d.ts +1 -0
- package/build/diagrams/commands/retry-diagrams-job.command.js +1 -0
- package/build/html-page-builder/commands/html-page-builder-execute.command.d.ts +1 -0
- package/build/html-page-builder/commands/html-page-builder-execute.command.js +1 -0
- package/build/image-editor/commands/image-editor.command.d.ts +1 -0
- package/build/image-editor/commands/image-editor.command.js +1 -0
- package/build/image-editor/commands/retry-image-editor-job.command.d.ts +1 -0
- package/build/image-editor/commands/retry-image-editor-job.command.js +1 -0
- package/build/image-editor/enums/image-editor-strategy.enum.d.ts +1 -0
- package/build/image-editor/enums/image-editor-strategy.enum.js +1 -0
- package/build/image-generation/commands/execute-image-generation.command.d.ts +1 -0
- package/build/image-generation/commands/execute-image-generation.command.js +1 -0
- package/build/image-generation/commands/retry-image-generation-job.command.d.ts +1 -0
- package/build/image-generation/commands/retry-image-generation-job.command.js +1 -0
- package/build/image-generation/enums/image-generation-model-strategy.enum.d.ts +2 -1
- package/build/image-generation/enums/image-generation-model-strategy.enum.js +2 -0
- package/build/image-recognition/commands/image-recognition.command.d.ts +1 -0
- package/build/image-recognition/commands/image-recognition.command.js +1 -0
- package/build/image-recognition/commands/retry-image-recognition-job.command.d.ts +1 -0
- package/build/image-recognition/commands/retry-image-recognition-job.command.js +1 -0
- package/build/index.d.ts +0 -3
- package/build/index.js +0 -3
- package/build/interior-design/commands/interior-design.command.d.ts +1 -0
- package/build/interior-design/commands/interior-design.command.js +1 -0
- package/build/interior-design/commands/retry-interior-design-job.command.d.ts +1 -0
- package/build/interior-design/commands/retry-interior-design-job.command.js +1 -0
- package/build/marketplace-card/commands/execute-marketplace-card.command.d.ts +1 -0
- package/build/marketplace-card/commands/execute-marketplace-card.command.js +1 -0
- package/build/marketplace-card/commands/generate-marketplace-card-description.command.d.ts +1 -0
- package/build/marketplace-card/commands/generate-marketplace-card-description.command.js +1 -0
- package/build/marketplace-card/commands/retry-marketplace-card-job.command.d.ts +1 -0
- package/build/marketplace-card/commands/retry-marketplace-card-job.command.js +1 -0
- package/build/music/commands/boost-music-style.command.d.ts +1 -0
- package/build/music/commands/boost-music-style.command.js +1 -0
- package/build/music/commands/convert-to-wav.command.d.ts +1 -0
- package/build/music/commands/convert-to-wav.command.js +1 -0
- package/build/music/commands/edit-music.command.d.ts +1 -0
- package/build/music/commands/generate-lyrics.command.d.ts +1 -0
- package/build/music/commands/generate-lyrics.command.js +1 -0
- package/build/music/commands/generate-music.command.d.ts +1 -0
- package/build/music/commands/generate-music.command.js +1 -0
- package/build/music/commands/retry-music-job.command.d.ts +1 -0
- package/build/music/commands/retry-music-job.command.js +1 -0
- package/build/music/models/music-job.schema.d.ts +1 -0
- package/build/music/models/music-job.schema.js +1 -0
- package/build/paraphrase/commands/paraphrase.command.d.ts +1 -0
- package/build/paraphrase/commands/paraphrase.command.js +1 -0
- package/build/paraphrase/commands/retry-paraphrase-job.command.d.ts +1 -0
- package/build/paraphrase/commands/retry-paraphrase-job.command.js +1 -0
- package/build/presentation/commands/create-presentation.command.d.ts +1 -0
- package/build/presentation/commands/create-presentation.command.js +1 -0
- package/build/presentation/commands/generate-and-insert-slide.command.d.ts +1 -0
- package/build/presentation/commands/generate-and-insert-slide.command.js +1 -0
- package/build/presentation/commands/generate-presentation-outline.command.d.ts +1 -0
- package/build/presentation/commands/generate-presentation-outline.command.js +1 -0
- package/build/presentation/commands/generate-slides.command.d.ts +1 -0
- package/build/presentation/commands/generate-slides.command.js +1 -0
- package/build/presentation/commands/presentation-generate-report.command.d.ts +1 -0
- package/build/presentation/commands/presentation-generate-report.command.js +1 -0
- package/build/presentation/commands/presentation-paraphrase.command.d.ts +1 -0
- package/build/presentation/commands/presentation-paraphrase.command.js +1 -0
- package/build/presentation/commands/update-slide-image-slot.command.d.ts +1 -0
- package/build/presentation/commands/update-slide-image-slot.command.js +1 -0
- package/build/solving-edu-task/commands/retry-solving-edu-task-job.command.d.ts +1 -0
- package/build/solving-edu-task/commands/retry-solving-edu-task-job.command.js +1 -0
- package/build/solving-edu-task/commands/solving-edu-task.command.d.ts +1 -0
- package/build/solving-edu-task/commands/solving-edu-task.command.js +1 -0
- package/build/sound-generation/commands/retry-sound-generation-job.command.d.ts +1 -0
- package/build/sound-generation/commands/retry-sound-generation-job.command.js +1 -0
- package/build/sound-generation/commands/sound-generation.command.d.ts +1 -0
- package/build/sound-generation/commands/sound-generation.command.js +1 -0
- package/build/spell-corrector/commands/retry-spell-corrector-job.command.d.ts +1 -0
- package/build/spell-corrector/commands/retry-spell-corrector-job.command.js +1 -0
- package/build/spell-corrector/commands/spell-corrector.command.d.ts +1 -0
- package/build/spell-corrector/commands/spell-corrector.command.js +1 -0
- package/build/stt/commands/retry-stt-job.command.d.ts +1 -0
- package/build/stt/commands/retry-stt-job.command.js +1 -0
- package/build/stt/commands/stt.command.d.ts +1 -0
- package/build/stt/commands/stt.command.js +1 -0
- package/build/tools/enums/tool-content-type.enum.d.ts +0 -1
- package/build/tools/enums/tool-content-type.enum.js +0 -1
- package/build/tools/enums/tool-group.enum.d.ts +1 -1
- package/build/tools/enums/tool-group.enum.js +1 -1
- package/build/tools/enums/tool-type.enum.d.ts +0 -1
- package/build/tools/enums/tool-type.enum.js +0 -1
- package/build/tools/events/tool-job-complete.event.d.ts +0 -1
- package/build/tools/events/tool-job-failed.event.d.ts +0 -1
- package/build/tools/models/global-tools-config.schema.d.ts +0 -76
- package/build/tools/models/global-tools-config.schema.js +0 -2
- package/build/tools/models/tool-group.schema.d.ts +1 -0
- package/build/tools/models/tool-group.schema.js +1 -0
- package/build/tools/models/tool-job.schema.d.ts +0 -1
- package/build/tools/models/tool-job.schema.js +0 -1
- package/build/tools/models/tools-with-configs.schema.d.ts +0 -22
- package/build/tools/queries/find-grouped-tools.query.d.ts +2 -0
- package/build/tools/queries/get-global-tools-config.query.d.ts +0 -152
- package/build/tools/queries/get-tools-with-configs.query.d.ts +0 -22
- package/build/tts/commands/index.d.ts +0 -7
- package/build/tts/commands/index.js +0 -7
- package/build/tts/commands/retry-tts-job.command.d.ts +3 -29
- package/build/tts/commands/retry-tts-job.command.js +1 -2
- package/build/tts/commands/set-reaction-to-tts-job.command.d.ts +2 -29
- package/build/tts/commands/set-reaction-to-tts-job.command.js +0 -1
- package/build/tts/commands/tts.command.d.ts +4 -35
- package/build/tts/commands/tts.command.js +2 -4
- package/build/tts/commands/update-tts-job-favorite.command.d.ts +2 -29
- package/build/tts/commands/update-tts-job-favorite.command.js +0 -2
- package/build/tts/commands/update-tts-job-title.command.d.ts +2 -29
- package/build/tts/commands/update-tts-job-title.command.js +0 -2
- package/build/tts/enums/index.d.ts +0 -7
- package/build/tts/enums/index.js +0 -7
- package/build/tts/models/index.d.ts +0 -7
- package/build/tts/models/index.js +0 -7
- package/build/tts/models/tts-config-with-vendors.schema.d.ts +0 -1
- package/build/tts/models/tts-config.schema.d.ts +0 -11
- package/build/tts/models/tts-config.schema.js +0 -5
- package/build/tts/models/tts-job.schema.d.ts +2 -34
- package/build/tts/models/tts-job.schema.js +2 -22
- package/build/tts/models/tts-model-with-vendor.schema.d.ts +0 -1
- package/build/tts/models/tts-model.schema.d.ts +0 -1
- package/build/tts/models/tts-model.schema.js +0 -1
- package/build/tts/queries/find-tts-job-by-id.query.d.ts +2 -29
- package/build/tts/queries/find-tts-job-by-id.query.js +0 -2
- package/build/tts/queries/find-tts-jobs.query.d.ts +2 -29
- package/build/tts/queries/find-tts-jobs.query.js +0 -1
- package/build/tts/queries/get-tts-config-with-vendors.query.d.ts +0 -2
- package/build/tts/queries/get-tts-config.query.d.ts +0 -22
- package/build/tts/queries/index.d.ts +0 -2
- package/build/tts/queries/index.js +0 -2
- package/build/tts/routes/tts.amqp.routes.d.ts +0 -9
- package/build/tts/routes/tts.amqp.routes.js +0 -9
- package/build/video/commands/retry-video-job.command.d.ts +1 -0
- package/build/video/commands/retry-video-job.command.js +1 -0
- package/build/video/commands/video.command.d.ts +1 -0
- package/build/video/commands/video.command.js +1 -0
- package/build/video/enums/video-strategy.enum.d.ts +2 -1
- package/build/video/enums/video-strategy.enum.js +1 -0
- package/build/video-editor/commands/edit-video.command.d.ts +1 -0
- package/build/video-editor/commands/edit-video.command.js +1 -0
- package/build/video-editor/commands/retry-video-editor-job.command.d.ts +1 -0
- package/build/video-editor/commands/retry-video-editor-job.command.js +1 -0
- package/build/writer/commands/collect-sources.command.d.ts +1 -0
- package/build/writer/commands/collect-sources.command.js +1 -0
- package/build/writer/commands/create-writer-document.command.d.ts +1 -0
- package/build/writer/commands/create-writer-document.command.js +1 -0
- package/build/writer/commands/generate-document-contents.command.d.ts +1 -0
- package/build/writer/commands/generate-document-contents.command.js +1 -0
- package/build/writer/commands/generate-document-outline.command.d.ts +1 -0
- package/build/writer/commands/generate-document-outline.command.js +1 -0
- package/build/writer/commands/writer-extend-text.command.d.ts +1 -0
- package/build/writer/commands/writer-extend-text.command.js +1 -0
- package/build/writer/commands/writer-fix-errors.command.d.ts +1 -0
- package/build/writer/commands/writer-fix-errors.command.js +1 -0
- package/build/writer/commands/writer-generate-text.command.d.ts +1 -0
- package/build/writer/commands/writer-generate-text.command.js +1 -0
- package/build/writer/commands/writer-paraphrase.command.d.ts +1 -0
- package/build/writer/commands/writer-paraphrase.command.js +1 -0
- package/build/writer/commands/writer-shorten-text.command.d.ts +1 -0
- package/build/writer/commands/writer-shorten-text.command.js +1 -0
- package/package.json +1 -1
- package/build/photo-sessions/commands/admin/create-photo-session-style.command.d.ts +0 -58
- package/build/photo-sessions/commands/admin/create-photo-session-style.command.js +0 -21
- package/build/photo-sessions/commands/admin/delete-photo-session-style.command.d.ts +0 -14
- package/build/photo-sessions/commands/admin/delete-photo-session-style.command.js +0 -12
- package/build/photo-sessions/commands/admin/index.d.ts +0 -3
- package/build/photo-sessions/commands/admin/index.js +0 -19
- package/build/photo-sessions/commands/admin/update-photo-session-style.command.d.ts +0 -54
- package/build/photo-sessions/commands/admin/update-photo-session-style.command.js +0 -18
- package/build/photo-sessions/commands/delete-all-photo-sessions-jobs.command.d.ts +0 -17
- package/build/photo-sessions/commands/delete-all-photo-sessions-jobs.command.js +0 -19
- package/build/photo-sessions/commands/delete-photo-sessions-job-by-uuid.command.d.ts +0 -16
- package/build/photo-sessions/commands/delete-photo-sessions-job-by-uuid.command.js +0 -14
- package/build/photo-sessions/commands/get-photo-sessions-price.command.d.ts +0 -74
- package/build/photo-sessions/commands/get-photo-sessions-price.command.js +0 -28
- package/build/photo-sessions/commands/index.d.ts +0 -10
- package/build/photo-sessions/commands/index.js +0 -26
- package/build/photo-sessions/commands/photo-sessions.command.d.ts +0 -272
- package/build/photo-sessions/commands/photo-sessions.command.js +0 -37
- package/build/photo-sessions/commands/retry-photo-sessions-job.command.d.ts +0 -179
- package/build/photo-sessions/commands/retry-photo-sessions-job.command.js +0 -17
- package/build/photo-sessions/commands/set-reaction-to-photo-sessions-job.command.d.ts +0 -181
- package/build/photo-sessions/commands/set-reaction-to-photo-sessions-job.command.js +0 -27
- package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.d.ts +0 -179
- package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.js +0 -16
- package/build/photo-sessions/commands/update-photo-sessions-job-title.command.d.ts +0 -217
- package/build/photo-sessions/commands/update-photo-sessions-job-title.command.js +0 -16
- package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.d.ts +0 -184
- package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.js +0 -26
- package/build/photo-sessions/enums/index.d.ts +0 -3
- package/build/photo-sessions/enums/index.js +0 -19
- package/build/photo-sessions/enums/photo-session-group-status.enum.d.ts +0 -6
- package/build/photo-sessions/enums/photo-session-group-status.enum.js +0 -10
- package/build/photo-sessions/enums/photo-session-look-type.enum.d.ts +0 -5
- package/build/photo-sessions/enums/photo-session-look-type.enum.js +0 -9
- package/build/photo-sessions/enums/photo-session-strategy.enum.d.ts +0 -4
- package/build/photo-sessions/enums/photo-session-strategy.enum.js +0 -8
- package/build/photo-sessions/index.d.ts +0 -5
- package/build/photo-sessions/index.js +0 -21
- package/build/photo-sessions/models/index.d.ts +0 -5
- package/build/photo-sessions/models/index.js +0 -21
- package/build/photo-sessions/models/photo-session-config.schema.d.ts +0 -72
- package/build/photo-sessions/models/photo-session-config.schema.js +0 -16
- package/build/photo-sessions/models/photo-session-group.schema.d.ts +0 -113
- package/build/photo-sessions/models/photo-session-group.schema.js +0 -27
- package/build/photo-sessions/models/photo-session-job.schema.d.ts +0 -159
- package/build/photo-sessions/models/photo-session-job.schema.js +0 -55
- package/build/photo-sessions/models/photo-session-model.schema.d.ts +0 -69
- package/build/photo-sessions/models/photo-session-model.schema.js +0 -42
- package/build/photo-sessions/models/photo-session-style.schema.d.ts +0 -29
- package/build/photo-sessions/models/photo-session-style.schema.js +0 -22
- package/build/photo-sessions/queries/find-photo-session-style-by-id.query.d.ts +0 -46
- package/build/photo-sessions/queries/find-photo-session-style-by-id.query.js +0 -10
- package/build/photo-sessions/queries/find-photo-session-styles.query.d.ts +0 -57
- package/build/photo-sessions/queries/find-photo-session-styles.query.js +0 -19
- package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.d.ts +0 -216
- package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.js +0 -18
- package/build/photo-sessions/queries/find-photo-sessions-jobs.query.d.ts +0 -235
- package/build/photo-sessions/queries/find-photo-sessions-jobs.query.js +0 -33
- package/build/photo-sessions/queries/get-photo-sessions-config.query.d.ts +0 -142
- package/build/photo-sessions/queries/get-photo-sessions-config.query.js +0 -10
- package/build/photo-sessions/queries/index.d.ts +0 -5
- package/build/photo-sessions/queries/index.js +0 -21
- package/build/photo-sessions/routes/index.d.ts +0 -2
- package/build/photo-sessions/routes/index.js +0 -18
- package/build/photo-sessions/routes/photo-sessions.amqp.routes.d.ts +0 -19
- package/build/photo-sessions/routes/photo-sessions.amqp.routes.js +0 -22
- package/build/photo-sessions/routes/photo-sessions.http.routes.d.ts +0 -1
- package/build/photo-sessions/routes/photo-sessions.http.routes.js +0 -4
- package/build/tts/commands/create-voice-clone.command.d.ts +0 -81
- package/build/tts/commands/create-voice-clone.command.js +0 -21
- package/build/tts/commands/create-voice-design.command.d.ts +0 -40
- package/build/tts/commands/create-voice-design.command.js +0 -20
- package/build/tts/commands/delete-voice.command.d.ts +0 -17
- package/build/tts/commands/delete-voice.command.js +0 -14
- package/build/tts/commands/download-tts-job.command.d.ts +0 -25
- package/build/tts/commands/download-tts-job.command.js +0 -19
- package/build/tts/commands/improve-tts-text.command.d.ts +0 -22
- package/build/tts/commands/improve-tts-text.command.js +0 -16
- package/build/tts/commands/select-voice-design.command.d.ts +0 -77
- package/build/tts/commands/select-voice-design.command.js +0 -17
- package/build/tts/commands/update-voice.command.d.ts +0 -78
- package/build/tts/commands/update-voice.command.js +0 -18
- package/build/tts/enums/tts-download-format.enum.d.ts +0 -5
- package/build/tts/enums/tts-download-format.enum.js +0 -9
- package/build/tts/enums/voice-category.enum.d.ts +0 -19
- package/build/tts/enums/voice-category.enum.js +0 -23
- package/build/tts/enums/voice-gender.enum.d.ts +0 -4
- package/build/tts/enums/voice-gender.enum.js +0 -8
- package/build/tts/enums/voice-source.enum.d.ts +0 -5
- package/build/tts/enums/voice-source.enum.js +0 -9
- package/build/tts/enums/voice-status.enum.d.ts +0 -5
- package/build/tts/enums/voice-status.enum.js +0 -9
- package/build/tts/enums/voice-tag-group.enum.d.ts +0 -5
- package/build/tts/enums/voice-tag-group.enum.js +0 -9
- package/build/tts/enums/voice-tag.enum.d.ts +0 -20
- package/build/tts/enums/voice-tag.enum.js +0 -24
- package/build/tts/models/voice-category.schema.d.ts +0 -7
- package/build/tts/models/voice-category.schema.js +0 -9
- package/build/tts/models/voice-design-draft.schema.d.ts +0 -13
- package/build/tts/models/voice-design-draft.schema.js +0 -13
- package/build/tts/models/voice-design-sample.schema.d.ts +0 -6
- package/build/tts/models/voice-design-sample.schema.js +0 -8
- package/build/tts/models/voice-gender.schema.d.ts +0 -7
- package/build/tts/models/voice-gender.schema.js +0 -9
- package/build/tts/models/voice-source.schema.d.ts +0 -7
- package/build/tts/models/voice-source.schema.js +0 -9
- package/build/tts/models/voice-tag.schema.d.ts +0 -9
- package/build/tts/models/voice-tag.schema.js +0 -11
- package/build/tts/models/voice.schema.d.ts +0 -34
- package/build/tts/models/voice.schema.js +0 -30
- package/build/tts/queries/find-voice-by-id.query.d.ts +0 -77
- package/build/tts/queries/find-voice-by-id.query.js +0 -17
- package/build/tts/queries/find-voices.query.d.ts +0 -122
- package/build/tts/queries/find-voices.query.js +0 -25
|
@@ -1,235 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { JOB_SCOPE } from '../../common';
|
|
3
|
-
import { JOB_SORT } from '../../tools';
|
|
4
|
-
import { PHOTO_SESSION_GROUP_STATUS } from '../enums';
|
|
5
|
-
export declare namespace FindPhotoSessionsJobsQuery {
|
|
6
|
-
const RequestSchema: z.ZodObject<{
|
|
7
|
-
userId: z.ZodOptional<z.ZodString>;
|
|
8
|
-
unregisteredUserId: z.ZodOptional<z.ZodString>;
|
|
9
|
-
scope: z.ZodOptional<z.ZodEnum<typeof JOB_SCOPE>>;
|
|
10
|
-
title: z.ZodOptional<z.ZodString>;
|
|
11
|
-
isFavorite: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
12
|
-
createdAtSortOrder: z.ZodOptional<z.ZodEnum<typeof JOB_SORT>>;
|
|
13
|
-
status: z.ZodOptional<z.ZodEnum<typeof PHOTO_SESSION_GROUP_STATUS>>;
|
|
14
|
-
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
15
|
-
offset: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
16
|
-
}, z.core.$strip>;
|
|
17
|
-
type Request = z.infer<typeof RequestSchema>;
|
|
18
|
-
const ResponseSchema: z.ZodObject<{
|
|
19
|
-
isSuccess: z.ZodBoolean;
|
|
20
|
-
data: z.ZodOptional<z.ZodType<{
|
|
21
|
-
data: {
|
|
22
|
-
uuid: string;
|
|
23
|
-
title: string;
|
|
24
|
-
prompt: string;
|
|
25
|
-
status: PHOTO_SESSION_GROUP_STATUS;
|
|
26
|
-
error: string | null;
|
|
27
|
-
modelId: string;
|
|
28
|
-
price: number;
|
|
29
|
-
tokenReservationId: string | null;
|
|
30
|
-
params: unknown;
|
|
31
|
-
attempts: unknown[];
|
|
32
|
-
scope: JOB_SCOPE;
|
|
33
|
-
userId: string | null;
|
|
34
|
-
unregisteredUserId: string | null;
|
|
35
|
-
isDeleted: boolean;
|
|
36
|
-
subJobs: {
|
|
37
|
-
uuid: string;
|
|
38
|
-
prompt: string;
|
|
39
|
-
reaction: import("../..").USER_REACTION | null;
|
|
40
|
-
dislikeReason: string | null;
|
|
41
|
-
externalId: string | null;
|
|
42
|
-
title: string;
|
|
43
|
-
status: import("../..").JOB_STATUS.PENDING | import("../..").JOB_STATUS.COMPLETED | import("../..").JOB_STATUS.FAILED;
|
|
44
|
-
error: string | null;
|
|
45
|
-
modelId: string;
|
|
46
|
-
groupId: string;
|
|
47
|
-
previewUrl: string | null;
|
|
48
|
-
params: {
|
|
49
|
-
attachedFiles?: {
|
|
50
|
-
uuid: string;
|
|
51
|
-
url: string;
|
|
52
|
-
name: string;
|
|
53
|
-
mimeType: string;
|
|
54
|
-
type: string;
|
|
55
|
-
size: number;
|
|
56
|
-
duration?: number | null | undefined;
|
|
57
|
-
content?: string | null | undefined;
|
|
58
|
-
contentLength?: number | null | undefined;
|
|
59
|
-
}[] | undefined;
|
|
60
|
-
styleReferenceImageUrl?: string | undefined;
|
|
61
|
-
styleId?: string | null | undefined;
|
|
62
|
-
referenceId?: string | null | undefined;
|
|
63
|
-
photosCount?: number | undefined;
|
|
64
|
-
clothingPhotos?: {
|
|
65
|
-
uuid: string;
|
|
66
|
-
url: string;
|
|
67
|
-
name: string;
|
|
68
|
-
mimeType: string;
|
|
69
|
-
type: string;
|
|
70
|
-
size: number;
|
|
71
|
-
duration?: number | null | undefined;
|
|
72
|
-
content?: string | null | undefined;
|
|
73
|
-
contentLength?: number | null | undefined;
|
|
74
|
-
}[] | undefined;
|
|
75
|
-
hairstylePhotos?: {
|
|
76
|
-
uuid: string;
|
|
77
|
-
url: string;
|
|
78
|
-
name: string;
|
|
79
|
-
mimeType: string;
|
|
80
|
-
type: string;
|
|
81
|
-
size: number;
|
|
82
|
-
duration?: number | null | undefined;
|
|
83
|
-
content?: string | null | undefined;
|
|
84
|
-
contentLength?: number | null | undefined;
|
|
85
|
-
}[] | undefined;
|
|
86
|
-
accessoriesPhotos?: {
|
|
87
|
-
uuid: string;
|
|
88
|
-
url: string;
|
|
89
|
-
name: string;
|
|
90
|
-
mimeType: string;
|
|
91
|
-
type: string;
|
|
92
|
-
size: number;
|
|
93
|
-
duration?: number | null | undefined;
|
|
94
|
-
content?: string | null | undefined;
|
|
95
|
-
contentLength?: number | null | undefined;
|
|
96
|
-
}[] | undefined;
|
|
97
|
-
aspectRatio?: string | undefined;
|
|
98
|
-
userHasActiveSubscriptionOrProduct?: boolean | undefined;
|
|
99
|
-
};
|
|
100
|
-
imageUrls: string[] | null;
|
|
101
|
-
attempts: {
|
|
102
|
-
order: number;
|
|
103
|
-
attemptId?: string | undefined;
|
|
104
|
-
status: import("../..").JOB_STATUS.PENDING | import("../..").JOB_STATUS.COMPLETED | import("../..").JOB_STATUS.FAILED;
|
|
105
|
-
error: string | null;
|
|
106
|
-
timestamp: Date;
|
|
107
|
-
}[];
|
|
108
|
-
userId?: string | null | undefined;
|
|
109
|
-
unregisteredUserId?: string | null | undefined;
|
|
110
|
-
isPublished: boolean;
|
|
111
|
-
postId: string | null;
|
|
112
|
-
isDeleted: boolean;
|
|
113
|
-
isFavorite: boolean;
|
|
114
|
-
createdAt: Date;
|
|
115
|
-
completedAt?: Date | null | undefined;
|
|
116
|
-
updatedAt: Date;
|
|
117
|
-
}[];
|
|
118
|
-
createdAt: Date;
|
|
119
|
-
completedAt: Date | null;
|
|
120
|
-
updatedAt: Date;
|
|
121
|
-
}[];
|
|
122
|
-
page: number;
|
|
123
|
-
totalPages: number;
|
|
124
|
-
total: number;
|
|
125
|
-
}, unknown, z.core.$ZodTypeInternals<{
|
|
126
|
-
data: {
|
|
127
|
-
uuid: string;
|
|
128
|
-
title: string;
|
|
129
|
-
prompt: string;
|
|
130
|
-
status: PHOTO_SESSION_GROUP_STATUS;
|
|
131
|
-
error: string | null;
|
|
132
|
-
modelId: string;
|
|
133
|
-
price: number;
|
|
134
|
-
tokenReservationId: string | null;
|
|
135
|
-
params: unknown;
|
|
136
|
-
attempts: unknown[];
|
|
137
|
-
scope: JOB_SCOPE;
|
|
138
|
-
userId: string | null;
|
|
139
|
-
unregisteredUserId: string | null;
|
|
140
|
-
isDeleted: boolean;
|
|
141
|
-
subJobs: {
|
|
142
|
-
uuid: string;
|
|
143
|
-
prompt: string;
|
|
144
|
-
reaction: import("../..").USER_REACTION | null;
|
|
145
|
-
dislikeReason: string | null;
|
|
146
|
-
externalId: string | null;
|
|
147
|
-
title: string;
|
|
148
|
-
status: import("../..").JOB_STATUS.PENDING | import("../..").JOB_STATUS.COMPLETED | import("../..").JOB_STATUS.FAILED;
|
|
149
|
-
error: string | null;
|
|
150
|
-
modelId: string;
|
|
151
|
-
groupId: string;
|
|
152
|
-
previewUrl: string | null;
|
|
153
|
-
params: {
|
|
154
|
-
attachedFiles?: {
|
|
155
|
-
uuid: string;
|
|
156
|
-
url: string;
|
|
157
|
-
name: string;
|
|
158
|
-
mimeType: string;
|
|
159
|
-
type: string;
|
|
160
|
-
size: number;
|
|
161
|
-
duration?: number | null | undefined;
|
|
162
|
-
content?: string | null | undefined;
|
|
163
|
-
contentLength?: number | null | undefined;
|
|
164
|
-
}[] | undefined;
|
|
165
|
-
styleReferenceImageUrl?: string | undefined;
|
|
166
|
-
styleId?: string | null | undefined;
|
|
167
|
-
referenceId?: string | null | undefined;
|
|
168
|
-
photosCount?: number | undefined;
|
|
169
|
-
clothingPhotos?: {
|
|
170
|
-
uuid: string;
|
|
171
|
-
url: string;
|
|
172
|
-
name: string;
|
|
173
|
-
mimeType: string;
|
|
174
|
-
type: string;
|
|
175
|
-
size: number;
|
|
176
|
-
duration?: number | null | undefined;
|
|
177
|
-
content?: string | null | undefined;
|
|
178
|
-
contentLength?: number | null | undefined;
|
|
179
|
-
}[] | undefined;
|
|
180
|
-
hairstylePhotos?: {
|
|
181
|
-
uuid: string;
|
|
182
|
-
url: string;
|
|
183
|
-
name: string;
|
|
184
|
-
mimeType: string;
|
|
185
|
-
type: string;
|
|
186
|
-
size: number;
|
|
187
|
-
duration?: number | null | undefined;
|
|
188
|
-
content?: string | null | undefined;
|
|
189
|
-
contentLength?: number | null | undefined;
|
|
190
|
-
}[] | undefined;
|
|
191
|
-
accessoriesPhotos?: {
|
|
192
|
-
uuid: string;
|
|
193
|
-
url: string;
|
|
194
|
-
name: string;
|
|
195
|
-
mimeType: string;
|
|
196
|
-
type: string;
|
|
197
|
-
size: number;
|
|
198
|
-
duration?: number | null | undefined;
|
|
199
|
-
content?: string | null | undefined;
|
|
200
|
-
contentLength?: number | null | undefined;
|
|
201
|
-
}[] | undefined;
|
|
202
|
-
aspectRatio?: string | undefined;
|
|
203
|
-
userHasActiveSubscriptionOrProduct?: boolean | undefined;
|
|
204
|
-
};
|
|
205
|
-
imageUrls: string[] | null;
|
|
206
|
-
attempts: {
|
|
207
|
-
order: number;
|
|
208
|
-
attemptId?: string | undefined;
|
|
209
|
-
status: import("../..").JOB_STATUS.PENDING | import("../..").JOB_STATUS.COMPLETED | import("../..").JOB_STATUS.FAILED;
|
|
210
|
-
error: string | null;
|
|
211
|
-
timestamp: Date;
|
|
212
|
-
}[];
|
|
213
|
-
userId?: string | null | undefined;
|
|
214
|
-
unregisteredUserId?: string | null | undefined;
|
|
215
|
-
isPublished: boolean;
|
|
216
|
-
postId: string | null;
|
|
217
|
-
isDeleted: boolean;
|
|
218
|
-
isFavorite: boolean;
|
|
219
|
-
createdAt: Date;
|
|
220
|
-
completedAt?: Date | null | undefined;
|
|
221
|
-
updatedAt: Date;
|
|
222
|
-
}[];
|
|
223
|
-
createdAt: Date;
|
|
224
|
-
completedAt: Date | null;
|
|
225
|
-
updatedAt: Date;
|
|
226
|
-
}[];
|
|
227
|
-
page: number;
|
|
228
|
-
totalPages: number;
|
|
229
|
-
total: number;
|
|
230
|
-
}, unknown>>>;
|
|
231
|
-
code: z.ZodOptional<z.ZodString>;
|
|
232
|
-
message: z.ZodOptional<z.ZodString>;
|
|
233
|
-
}, z.core.$strip>;
|
|
234
|
-
type Response = z.infer<typeof ResponseSchema>;
|
|
235
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FindPhotoSessionsJobsQuery = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const common_1 = require("../../common");
|
|
6
|
-
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
7
|
-
const models_1 = require("../models");
|
|
8
|
-
const tools_1 = require("../../tools");
|
|
9
|
-
const enums_1 = require("../enums");
|
|
10
|
-
var FindPhotoSessionsJobsQuery;
|
|
11
|
-
(function (FindPhotoSessionsJobsQuery) {
|
|
12
|
-
FindPhotoSessionsJobsQuery.RequestSchema = zod_1.z
|
|
13
|
-
.object({
|
|
14
|
-
userId: zod_1.z.string().uuid().optional(),
|
|
15
|
-
unregisteredUserId: zod_1.z.string().uuid().optional(),
|
|
16
|
-
scope: zod_1.z.nativeEnum(common_1.JOB_SCOPE).optional(),
|
|
17
|
-
title: zod_1.z.string().optional(),
|
|
18
|
-
isFavorite: zod_1.z.coerce.boolean().optional(),
|
|
19
|
-
createdAtSortOrder: zod_1.z.nativeEnum(tools_1.JOB_SORT).optional(),
|
|
20
|
-
status: zod_1.z.nativeEnum(enums_1.PHOTO_SESSION_GROUP_STATUS).optional(),
|
|
21
|
-
limit: zod_1.z.coerce.number().min(1).optional(),
|
|
22
|
-
offset: zod_1.z.coerce.number().min(0).optional(),
|
|
23
|
-
})
|
|
24
|
-
.refine((data) => Boolean(data.userId) !== Boolean(data.unregisteredUserId), {
|
|
25
|
-
message: 'Exactly one owner identity is required',
|
|
26
|
-
});
|
|
27
|
-
FindPhotoSessionsJobsQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(zod_1.z.object({
|
|
28
|
-
data: zod_1.z.array(models_1.PhotoSessionGroupSchema),
|
|
29
|
-
page: zod_1.z.number(),
|
|
30
|
-
totalPages: zod_1.z.number(),
|
|
31
|
-
total: zod_1.z.number(),
|
|
32
|
-
}));
|
|
33
|
-
})(FindPhotoSessionsJobsQuery || (exports.FindPhotoSessionsJobsQuery = FindPhotoSessionsJobsQuery = {}));
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare namespace GetPhotoSessionsConfigQuery {
|
|
3
|
-
const RequestSchema: z.ZodObject<{
|
|
4
|
-
locale: z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>;
|
|
5
|
-
}, z.core.$strip>;
|
|
6
|
-
type Request = z.infer<typeof RequestSchema>;
|
|
7
|
-
const ResponseSchema: z.ZodObject<{
|
|
8
|
-
isSuccess: z.ZodBoolean;
|
|
9
|
-
data: z.ZodOptional<z.ZodType<{
|
|
10
|
-
models: {
|
|
11
|
-
uuid: string;
|
|
12
|
-
title: string;
|
|
13
|
-
description: string;
|
|
14
|
-
aiModel: string;
|
|
15
|
-
isNew: boolean;
|
|
16
|
-
tierLabel: string;
|
|
17
|
-
pricePerImage: number;
|
|
18
|
-
order: number;
|
|
19
|
-
status: import("../..").TOOL_MODEL_STATUS;
|
|
20
|
-
icons: {
|
|
21
|
-
light: {
|
|
22
|
-
svg: string;
|
|
23
|
-
png: string;
|
|
24
|
-
};
|
|
25
|
-
dark: {
|
|
26
|
-
svg: string;
|
|
27
|
-
png: string;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
strategy: import("..").PHOTO_SESSION_STRATEGY;
|
|
31
|
-
maxInputLength: number;
|
|
32
|
-
params: {
|
|
33
|
-
imageAttachment: {
|
|
34
|
-
supported: boolean;
|
|
35
|
-
maxImages: number;
|
|
36
|
-
acceptedTypes: string[];
|
|
37
|
-
};
|
|
38
|
-
aspectRatio: Record<string, {
|
|
39
|
-
width: number;
|
|
40
|
-
height: number;
|
|
41
|
-
}>;
|
|
42
|
-
};
|
|
43
|
-
pricingRules: {
|
|
44
|
-
condition: {
|
|
45
|
-
withoutSub?: boolean | undefined;
|
|
46
|
-
};
|
|
47
|
-
value: number;
|
|
48
|
-
}[];
|
|
49
|
-
createdAt: Date;
|
|
50
|
-
updatedAt: Date;
|
|
51
|
-
}[];
|
|
52
|
-
styles: {
|
|
53
|
-
uuid: string;
|
|
54
|
-
code: string;
|
|
55
|
-
title: string;
|
|
56
|
-
description?: string | null | undefined;
|
|
57
|
-
references: {
|
|
58
|
-
uuid: string;
|
|
59
|
-
styleId: string;
|
|
60
|
-
photoUrl: string;
|
|
61
|
-
description?: string | null | undefined;
|
|
62
|
-
order: number;
|
|
63
|
-
createdAt: Date;
|
|
64
|
-
updatedAt: Date;
|
|
65
|
-
}[];
|
|
66
|
-
createdAt: Date;
|
|
67
|
-
updatedAt: Date;
|
|
68
|
-
}[];
|
|
69
|
-
looks: {
|
|
70
|
-
type: import("..").PHOTO_SESSION_LOOK_TYPE;
|
|
71
|
-
maxPhotos: number;
|
|
72
|
-
}[];
|
|
73
|
-
}, unknown, z.core.$ZodTypeInternals<{
|
|
74
|
-
models: {
|
|
75
|
-
uuid: string;
|
|
76
|
-
title: string;
|
|
77
|
-
description: string;
|
|
78
|
-
aiModel: string;
|
|
79
|
-
isNew: boolean;
|
|
80
|
-
tierLabel: string;
|
|
81
|
-
pricePerImage: number;
|
|
82
|
-
order: number;
|
|
83
|
-
status: import("../..").TOOL_MODEL_STATUS;
|
|
84
|
-
icons: {
|
|
85
|
-
light: {
|
|
86
|
-
svg: string;
|
|
87
|
-
png: string;
|
|
88
|
-
};
|
|
89
|
-
dark: {
|
|
90
|
-
svg: string;
|
|
91
|
-
png: string;
|
|
92
|
-
};
|
|
93
|
-
};
|
|
94
|
-
strategy: import("..").PHOTO_SESSION_STRATEGY;
|
|
95
|
-
maxInputLength: number;
|
|
96
|
-
params: {
|
|
97
|
-
imageAttachment: {
|
|
98
|
-
supported: boolean;
|
|
99
|
-
maxImages: number;
|
|
100
|
-
acceptedTypes: string[];
|
|
101
|
-
};
|
|
102
|
-
aspectRatio: Record<string, {
|
|
103
|
-
width: number;
|
|
104
|
-
height: number;
|
|
105
|
-
}>;
|
|
106
|
-
};
|
|
107
|
-
pricingRules: {
|
|
108
|
-
condition: {
|
|
109
|
-
withoutSub?: boolean | undefined;
|
|
110
|
-
};
|
|
111
|
-
value: number;
|
|
112
|
-
}[];
|
|
113
|
-
createdAt: Date;
|
|
114
|
-
updatedAt: Date;
|
|
115
|
-
}[];
|
|
116
|
-
styles: {
|
|
117
|
-
uuid: string;
|
|
118
|
-
code: string;
|
|
119
|
-
title: string;
|
|
120
|
-
description?: string | null | undefined;
|
|
121
|
-
references: {
|
|
122
|
-
uuid: string;
|
|
123
|
-
styleId: string;
|
|
124
|
-
photoUrl: string;
|
|
125
|
-
description?: string | null | undefined;
|
|
126
|
-
order: number;
|
|
127
|
-
createdAt: Date;
|
|
128
|
-
updatedAt: Date;
|
|
129
|
-
}[];
|
|
130
|
-
createdAt: Date;
|
|
131
|
-
updatedAt: Date;
|
|
132
|
-
}[];
|
|
133
|
-
looks: {
|
|
134
|
-
type: import("..").PHOTO_SESSION_LOOK_TYPE;
|
|
135
|
-
maxPhotos: number;
|
|
136
|
-
}[];
|
|
137
|
-
}, unknown>>>;
|
|
138
|
-
code: z.ZodOptional<z.ZodString>;
|
|
139
|
-
message: z.ZodOptional<z.ZodString>;
|
|
140
|
-
}, z.core.$strip>;
|
|
141
|
-
type Response = z.infer<typeof ResponseSchema>;
|
|
142
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetPhotoSessionsConfigQuery = void 0;
|
|
4
|
-
const common_1 = require("../../common");
|
|
5
|
-
const models_1 = require("../models");
|
|
6
|
-
var GetPhotoSessionsConfigQuery;
|
|
7
|
-
(function (GetPhotoSessionsConfigQuery) {
|
|
8
|
-
GetPhotoSessionsConfigQuery.RequestSchema = common_1.LocaleRequestSchema;
|
|
9
|
-
GetPhotoSessionsConfigQuery.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.PhotoSessionConfigSchema);
|
|
10
|
-
})(GetPhotoSessionsConfigQuery || (exports.GetPhotoSessionsConfigQuery = GetPhotoSessionsConfigQuery = {}));
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./find-photo-sessions-job-by-id.query"), exports);
|
|
18
|
-
__exportStar(require("./find-photo-sessions-jobs.query"), exports);
|
|
19
|
-
__exportStar(require("./get-photo-sessions-config.query"), exports);
|
|
20
|
-
__exportStar(require("./find-photo-session-styles.query"), exports);
|
|
21
|
-
__exportStar(require("./find-photo-session-style-by-id.query"), exports);
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./photo-sessions.amqp.routes"), exports);
|
|
18
|
-
__exportStar(require("./photo-sessions.http.routes"), exports);
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export declare const PHOTO_SESSIONS_AMQP_ROUTES: {
|
|
2
|
-
readonly EXECUTE: 'tools.photo-sessions.execute.rpc';
|
|
3
|
-
readonly GET_PRICE: 'tools.photo-sessions.get-price.rpc';
|
|
4
|
-
readonly CONFIG: 'tools.photo-sessions.config.rpc';
|
|
5
|
-
readonly GET_JOB: 'tools.photo-sessions.jobs.get.rpc';
|
|
6
|
-
readonly LIST_JOBS: 'tools.photo-sessions.jobs.list.rpc';
|
|
7
|
-
readonly SET_REACTION: 'tools.photo-sessions.jobs.set-reaction.rpc';
|
|
8
|
-
readonly UPDATE_TITLE: 'tools.photo-sessions.jobs.update-title.rpc';
|
|
9
|
-
readonly UPDATE_FAVORITE: 'tools.photo-sessions.jobs.update-favorite.rpc';
|
|
10
|
-
readonly SOFT_DELETE: 'tools.photo-sessions.jobs.soft-delete.rpc';
|
|
11
|
-
readonly SOFT_DELETE_ALL: 'tools.photo-sessions.jobs.soft-delete-all.rpc';
|
|
12
|
-
readonly RETRY: 'tools.photo-sessions.jobs.retry.rpc';
|
|
13
|
-
readonly UPDATE_JOB: 'tools.photo-sessions.jobs.update.rpc';
|
|
14
|
-
readonly LIST_STYLES: 'tools.photo-sessions.styles.list.rpc';
|
|
15
|
-
readonly GET_STYLE: 'tools.photo-sessions.styles.get.rpc';
|
|
16
|
-
readonly CREATE_STYLE: 'tools.photo-sessions.styles.create.rpc';
|
|
17
|
-
readonly UPDATE_STYLE: 'tools.photo-sessions.styles.update.rpc';
|
|
18
|
-
readonly DELETE_STYLE: 'tools.photo-sessions.styles.delete.rpc';
|
|
19
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PHOTO_SESSIONS_AMQP_ROUTES = void 0;
|
|
4
|
-
exports.PHOTO_SESSIONS_AMQP_ROUTES = {
|
|
5
|
-
EXECUTE: 'tools.photo-sessions.execute.rpc',
|
|
6
|
-
GET_PRICE: 'tools.photo-sessions.get-price.rpc',
|
|
7
|
-
CONFIG: 'tools.photo-sessions.config.rpc',
|
|
8
|
-
GET_JOB: 'tools.photo-sessions.jobs.get.rpc',
|
|
9
|
-
LIST_JOBS: 'tools.photo-sessions.jobs.list.rpc',
|
|
10
|
-
SET_REACTION: 'tools.photo-sessions.jobs.set-reaction.rpc',
|
|
11
|
-
UPDATE_TITLE: 'tools.photo-sessions.jobs.update-title.rpc',
|
|
12
|
-
UPDATE_FAVORITE: 'tools.photo-sessions.jobs.update-favorite.rpc',
|
|
13
|
-
SOFT_DELETE: 'tools.photo-sessions.jobs.soft-delete.rpc',
|
|
14
|
-
SOFT_DELETE_ALL: 'tools.photo-sessions.jobs.soft-delete-all.rpc',
|
|
15
|
-
RETRY: 'tools.photo-sessions.jobs.retry.rpc',
|
|
16
|
-
UPDATE_JOB: 'tools.photo-sessions.jobs.update.rpc',
|
|
17
|
-
LIST_STYLES: 'tools.photo-sessions.styles.list.rpc',
|
|
18
|
-
GET_STYLE: 'tools.photo-sessions.styles.get.rpc',
|
|
19
|
-
CREATE_STYLE: 'tools.photo-sessions.styles.create.rpc',
|
|
20
|
-
UPDATE_STYLE: 'tools.photo-sessions.styles.update.rpc',
|
|
21
|
-
DELETE_STYLE: 'tools.photo-sessions.styles.delete.rpc',
|
|
22
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const PHOTO_SESSIONS_CONTROLLER = "photo-sessions";
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { JOB_SCOPE } from '../../common';
|
|
3
|
-
import { VOICE_GENDER } from '../enums/voice-gender.enum';
|
|
4
|
-
export declare namespace CreateVoiceCloneCommand {
|
|
5
|
-
const RequestSchema: z.ZodObject<{
|
|
6
|
-
userId: z.ZodString;
|
|
7
|
-
locale: z.ZodOptional<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>>;
|
|
8
|
-
scope: z.ZodDefault<z.ZodOptional<z.ZodEnum<typeof JOB_SCOPE>>>;
|
|
9
|
-
title: z.ZodString;
|
|
10
|
-
gender: z.ZodOptional<z.ZodEnum<typeof VOICE_GENDER>>;
|
|
11
|
-
fileUrl: z.ZodString;
|
|
12
|
-
fileKey: z.ZodString;
|
|
13
|
-
imageUrl: z.ZodOptional<z.ZodString>;
|
|
14
|
-
}, z.core.$strip>;
|
|
15
|
-
type Request = z.infer<typeof RequestSchema>;
|
|
16
|
-
const ResponseSchema: z.ZodObject<{
|
|
17
|
-
isSuccess: z.ZodBoolean;
|
|
18
|
-
data: z.ZodOptional<z.ZodType<{
|
|
19
|
-
uuid: string;
|
|
20
|
-
scope: JOB_SCOPE;
|
|
21
|
-
source: {
|
|
22
|
-
id: import("..").VOICE_SOURCE;
|
|
23
|
-
label: string;
|
|
24
|
-
};
|
|
25
|
-
title: string;
|
|
26
|
-
description: string;
|
|
27
|
-
gender: {
|
|
28
|
-
id: VOICE_GENDER;
|
|
29
|
-
label: string;
|
|
30
|
-
} | null;
|
|
31
|
-
trait: string | null;
|
|
32
|
-
ageRange: string | null;
|
|
33
|
-
categories: {
|
|
34
|
-
id: import("..").VOICE_CATEGORY;
|
|
35
|
-
label: string;
|
|
36
|
-
}[];
|
|
37
|
-
previewUrl: string;
|
|
38
|
-
imageUrl: string | null;
|
|
39
|
-
status: import("..").VOICE_STATUS;
|
|
40
|
-
error: string | null;
|
|
41
|
-
order: number;
|
|
42
|
-
isDeleted: boolean;
|
|
43
|
-
userId: string | null;
|
|
44
|
-
unregisteredUserId: string | null;
|
|
45
|
-
createdAt: Date;
|
|
46
|
-
updatedAt: Date;
|
|
47
|
-
}, unknown, z.core.$ZodTypeInternals<{
|
|
48
|
-
uuid: string;
|
|
49
|
-
scope: JOB_SCOPE;
|
|
50
|
-
source: {
|
|
51
|
-
id: import("..").VOICE_SOURCE;
|
|
52
|
-
label: string;
|
|
53
|
-
};
|
|
54
|
-
title: string;
|
|
55
|
-
description: string;
|
|
56
|
-
gender: {
|
|
57
|
-
id: VOICE_GENDER;
|
|
58
|
-
label: string;
|
|
59
|
-
} | null;
|
|
60
|
-
trait: string | null;
|
|
61
|
-
ageRange: string | null;
|
|
62
|
-
categories: {
|
|
63
|
-
id: import("..").VOICE_CATEGORY;
|
|
64
|
-
label: string;
|
|
65
|
-
}[];
|
|
66
|
-
previewUrl: string;
|
|
67
|
-
imageUrl: string | null;
|
|
68
|
-
status: import("..").VOICE_STATUS;
|
|
69
|
-
error: string | null;
|
|
70
|
-
order: number;
|
|
71
|
-
isDeleted: boolean;
|
|
72
|
-
userId: string | null;
|
|
73
|
-
unregisteredUserId: string | null;
|
|
74
|
-
createdAt: Date;
|
|
75
|
-
updatedAt: Date;
|
|
76
|
-
}, unknown>>>;
|
|
77
|
-
code: z.ZodOptional<z.ZodString>;
|
|
78
|
-
message: z.ZodOptional<z.ZodString>;
|
|
79
|
-
}, z.core.$strip>;
|
|
80
|
-
type Response = z.infer<typeof ResponseSchema>;
|
|
81
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CreateVoiceCloneCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const common_1 = require("../../common");
|
|
6
|
-
const voice_gender_enum_1 = require("../enums/voice-gender.enum");
|
|
7
|
-
const models_1 = require("../models");
|
|
8
|
-
var CreateVoiceCloneCommand;
|
|
9
|
-
(function (CreateVoiceCloneCommand) {
|
|
10
|
-
CreateVoiceCloneCommand.RequestSchema = zod_1.z.object({
|
|
11
|
-
userId: zod_1.z.string().uuid(),
|
|
12
|
-
locale: common_1.LocaleSchema.optional(),
|
|
13
|
-
scope: zod_1.z.nativeEnum(common_1.JOB_SCOPE).optional().default(common_1.JOB_SCOPE.TOOL),
|
|
14
|
-
title: zod_1.z.string(),
|
|
15
|
-
gender: zod_1.z.nativeEnum(voice_gender_enum_1.VOICE_GENDER).optional(),
|
|
16
|
-
fileUrl: zod_1.z.string().url(),
|
|
17
|
-
fileKey: zod_1.z.string(),
|
|
18
|
-
imageUrl: zod_1.z.string().url().optional(),
|
|
19
|
-
});
|
|
20
|
-
CreateVoiceCloneCommand.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.VoiceSchema);
|
|
21
|
-
})(CreateVoiceCloneCommand || (exports.CreateVoiceCloneCommand = CreateVoiceCloneCommand = {}));
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { JOB_SCOPE } from '../../common';
|
|
3
|
-
import { VOICE_GENDER } from '../enums/voice-gender.enum';
|
|
4
|
-
export declare namespace CreateVoiceDesignCommand {
|
|
5
|
-
const RequestSchema: z.ZodObject<{
|
|
6
|
-
userId: z.ZodString;
|
|
7
|
-
locale: z.ZodOptional<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>>;
|
|
8
|
-
scope: z.ZodDefault<z.ZodOptional<z.ZodEnum<typeof JOB_SCOPE>>>;
|
|
9
|
-
title: z.ZodString;
|
|
10
|
-
gender: z.ZodEnum<typeof VOICE_GENDER>;
|
|
11
|
-
instruction: z.ZodString;
|
|
12
|
-
imageUrl: z.ZodOptional<z.ZodString>;
|
|
13
|
-
}, z.core.$strip>;
|
|
14
|
-
type Request = z.infer<typeof RequestSchema>;
|
|
15
|
-
const ResponseSchema: z.ZodObject<{
|
|
16
|
-
isSuccess: z.ZodBoolean;
|
|
17
|
-
data: z.ZodOptional<z.ZodType<{
|
|
18
|
-
designId: string;
|
|
19
|
-
title: string;
|
|
20
|
-
gender: VOICE_GENDER;
|
|
21
|
-
imageUrl: string | null;
|
|
22
|
-
samples: {
|
|
23
|
-
sampleId: string;
|
|
24
|
-
previewUrl: string;
|
|
25
|
-
}[];
|
|
26
|
-
}, unknown, z.core.$ZodTypeInternals<{
|
|
27
|
-
designId: string;
|
|
28
|
-
title: string;
|
|
29
|
-
gender: VOICE_GENDER;
|
|
30
|
-
imageUrl: string | null;
|
|
31
|
-
samples: {
|
|
32
|
-
sampleId: string;
|
|
33
|
-
previewUrl: string;
|
|
34
|
-
}[];
|
|
35
|
-
}, unknown>>>;
|
|
36
|
-
code: z.ZodOptional<z.ZodString>;
|
|
37
|
-
message: z.ZodOptional<z.ZodString>;
|
|
38
|
-
}, z.core.$strip>;
|
|
39
|
-
type Response = z.infer<typeof ResponseSchema>;
|
|
40
|
-
}
|