@purpleschool/gptbot-tools 0.2.72 → 0.2.74
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 +1 -0
- package/build/ai-proxy/routes/ai-proxy.routes.js +1 -0
- package/build/index.d.ts +3 -0
- package/build/index.js +3 -0
- package/build/music/commands/add-track-to-music-playlist.command.d.ts +822 -82
- package/build/music/commands/create-music-playlist.command.d.ts +822 -82
- package/build/music/commands/edit-music.command.d.ts +817 -77
- package/build/music/commands/generate-music.command.d.ts +811 -71
- package/build/music/commands/remove-track-from-music-playlist.command.d.ts +822 -82
- package/build/music/commands/retry-music-job.command.d.ts +811 -71
- package/build/music/commands/set-reaction-to-music-job.command.d.ts +811 -71
- package/build/music/commands/update-music-job-favorite.command.d.ts +811 -71
- package/build/music/commands/update-music-job-title.command.d.ts +811 -71
- package/build/music/commands/update-music-playlist.command.d.ts +822 -82
- package/build/music/commands/update-published-status-music-jobs.command.d.ts +811 -71
- package/build/music/models/music-job.schema.d.ts +386 -16
- package/build/music/models/music-job.schema.js +35 -6
- package/build/music/models/music-playlist.schema.d.ts +386 -16
- package/build/music/queries/find-music-job-by-id.query.d.ts +811 -71
- package/build/music/queries/find-music-jobs.query.d.ts +818 -78
- package/build/music/queries/find-music-playlists.query.d.ts +827 -87
- package/build/photo-sessions/commands/admin/create-photo-session-style.command.d.ts +58 -0
- package/build/photo-sessions/commands/admin/create-photo-session-style.command.js +21 -0
- package/build/photo-sessions/commands/admin/delete-photo-session-style.command.d.ts +14 -0
- package/build/photo-sessions/commands/admin/delete-photo-session-style.command.js +12 -0
- package/build/photo-sessions/commands/admin/index.d.ts +3 -0
- package/build/photo-sessions/commands/admin/index.js +19 -0
- package/build/photo-sessions/commands/admin/update-photo-session-style.command.d.ts +54 -0
- package/build/photo-sessions/commands/admin/update-photo-session-style.command.js +18 -0
- package/build/photo-sessions/commands/delete-all-photo-sessions-jobs.command.d.ts +17 -0
- package/build/photo-sessions/commands/delete-all-photo-sessions-jobs.command.js +19 -0
- package/build/photo-sessions/commands/delete-photo-sessions-job-by-uuid.command.d.ts +16 -0
- package/build/photo-sessions/commands/delete-photo-sessions-job-by-uuid.command.js +14 -0
- package/build/photo-sessions/commands/get-photo-sessions-price.command.d.ts +74 -0
- package/build/photo-sessions/commands/get-photo-sessions-price.command.js +28 -0
- package/build/photo-sessions/commands/index.d.ts +10 -0
- package/build/photo-sessions/commands/index.js +26 -0
- package/build/photo-sessions/commands/photo-sessions.command.d.ts +272 -0
- package/build/photo-sessions/commands/photo-sessions.command.js +37 -0
- package/build/photo-sessions/commands/retry-photo-sessions-job.command.d.ts +179 -0
- package/build/photo-sessions/commands/retry-photo-sessions-job.command.js +17 -0
- package/build/photo-sessions/commands/set-reaction-to-photo-sessions-job.command.d.ts +181 -0
- package/build/photo-sessions/commands/set-reaction-to-photo-sessions-job.command.js +27 -0
- package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.d.ts +179 -0
- package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.js +16 -0
- package/build/photo-sessions/commands/update-photo-sessions-job-title.command.d.ts +217 -0
- package/build/photo-sessions/commands/update-photo-sessions-job-title.command.js +16 -0
- package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.d.ts +184 -0
- package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.js +26 -0
- package/build/photo-sessions/enums/index.d.ts +3 -0
- package/build/photo-sessions/enums/index.js +19 -0
- package/build/photo-sessions/enums/photo-session-group-status.enum.d.ts +6 -0
- package/build/photo-sessions/enums/photo-session-group-status.enum.js +10 -0
- package/build/photo-sessions/enums/photo-session-look-type.enum.d.ts +5 -0
- package/build/photo-sessions/enums/photo-session-look-type.enum.js +9 -0
- package/build/photo-sessions/enums/photo-session-strategy.enum.d.ts +4 -0
- package/build/photo-sessions/enums/photo-session-strategy.enum.js +8 -0
- package/build/photo-sessions/index.d.ts +5 -0
- package/build/photo-sessions/index.js +21 -0
- package/build/photo-sessions/models/index.d.ts +5 -0
- package/build/photo-sessions/models/index.js +21 -0
- package/build/photo-sessions/models/photo-session-config.schema.d.ts +72 -0
- package/build/photo-sessions/models/photo-session-config.schema.js +16 -0
- package/build/photo-sessions/models/photo-session-group.schema.d.ts +113 -0
- package/build/photo-sessions/models/photo-session-group.schema.js +27 -0
- package/build/photo-sessions/models/photo-session-job.schema.d.ts +159 -0
- package/build/photo-sessions/models/photo-session-job.schema.js +55 -0
- package/build/photo-sessions/models/photo-session-model.schema.d.ts +69 -0
- package/build/photo-sessions/models/photo-session-model.schema.js +42 -0
- package/build/photo-sessions/models/photo-session-style.schema.d.ts +29 -0
- package/build/photo-sessions/models/photo-session-style.schema.js +22 -0
- package/build/photo-sessions/queries/find-photo-session-style-by-id.query.d.ts +46 -0
- package/build/photo-sessions/queries/find-photo-session-style-by-id.query.js +10 -0
- package/build/photo-sessions/queries/find-photo-session-styles.query.d.ts +57 -0
- package/build/photo-sessions/queries/find-photo-session-styles.query.js +19 -0
- package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.d.ts +216 -0
- package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.js +18 -0
- package/build/photo-sessions/queries/find-photo-sessions-jobs.query.d.ts +235 -0
- package/build/photo-sessions/queries/find-photo-sessions-jobs.query.js +33 -0
- package/build/photo-sessions/queries/get-photo-sessions-config.query.d.ts +142 -0
- package/build/photo-sessions/queries/get-photo-sessions-config.query.js +10 -0
- package/build/photo-sessions/queries/index.d.ts +5 -0
- package/build/photo-sessions/queries/index.js +21 -0
- package/build/photo-sessions/routes/index.d.ts +2 -0
- package/build/photo-sessions/routes/index.js +18 -0
- package/build/photo-sessions/routes/photo-sessions.amqp.routes.d.ts +19 -0
- package/build/photo-sessions/routes/photo-sessions.amqp.routes.js +22 -0
- package/build/photo-sessions/routes/photo-sessions.http.routes.d.ts +1 -0
- package/build/photo-sessions/routes/photo-sessions.http.routes.js +4 -0
- package/build/tools/enums/tool-content-type.enum.d.ts +1 -0
- package/build/tools/enums/tool-content-type.enum.js +1 -0
- package/build/tools/enums/tool-type.enum.d.ts +1 -0
- package/build/tools/enums/tool-type.enum.js +1 -0
- package/build/tools/events/tool-job-complete.event.d.ts +1 -0
- package/build/tools/events/tool-job-failed.event.d.ts +1 -0
- package/build/tools/models/global-tools-config.schema.d.ts +76 -0
- package/build/tools/models/global-tools-config.schema.js +2 -0
- package/build/tools/models/tool-job.schema.d.ts +1 -0
- package/build/tools/models/tool-job.schema.js +1 -0
- package/build/tools/models/tools-with-configs.schema.d.ts +22 -0
- package/build/tools/queries/get-global-tools-config.query.d.ts +152 -0
- package/build/tools/queries/get-tools-with-configs.query.d.ts +22 -0
- package/build/tts/commands/create-voice-clone.command.d.ts +81 -0
- package/build/tts/commands/create-voice-clone.command.js +21 -0
- package/build/tts/commands/create-voice-design.command.d.ts +40 -0
- package/build/tts/commands/create-voice-design.command.js +20 -0
- package/build/tts/commands/delete-voice.command.d.ts +17 -0
- package/build/tts/commands/delete-voice.command.js +14 -0
- package/build/tts/commands/download-tts-job.command.d.ts +25 -0
- package/build/tts/commands/download-tts-job.command.js +19 -0
- package/build/tts/commands/improve-tts-text.command.d.ts +22 -0
- package/build/tts/commands/improve-tts-text.command.js +16 -0
- package/build/tts/commands/index.d.ts +7 -0
- package/build/tts/commands/index.js +7 -0
- package/build/tts/commands/retry-tts-job.command.d.ts +29 -2
- package/build/tts/commands/retry-tts-job.command.js +2 -0
- package/build/tts/commands/select-voice-design.command.d.ts +77 -0
- package/build/tts/commands/select-voice-design.command.js +17 -0
- package/build/tts/commands/set-reaction-to-tts-job.command.d.ts +29 -2
- package/build/tts/commands/set-reaction-to-tts-job.command.js +1 -0
- package/build/tts/commands/tts.command.d.ts +35 -3
- package/build/tts/commands/tts.command.js +4 -1
- package/build/tts/commands/update-tts-job-favorite.command.d.ts +29 -2
- package/build/tts/commands/update-tts-job-favorite.command.js +2 -0
- package/build/tts/commands/update-tts-job-title.command.d.ts +29 -2
- package/build/tts/commands/update-tts-job-title.command.js +2 -0
- package/build/tts/commands/update-voice.command.d.ts +78 -0
- package/build/tts/commands/update-voice.command.js +18 -0
- package/build/tts/enums/index.d.ts +7 -0
- package/build/tts/enums/index.js +7 -0
- package/build/tts/enums/tts-download-format.enum.d.ts +5 -0
- package/build/tts/enums/tts-download-format.enum.js +9 -0
- package/build/tts/enums/voice-category.enum.d.ts +19 -0
- package/build/tts/enums/voice-category.enum.js +23 -0
- package/build/tts/enums/voice-gender.enum.d.ts +4 -0
- package/build/tts/enums/voice-gender.enum.js +8 -0
- package/build/tts/enums/voice-source.enum.d.ts +5 -0
- package/build/tts/enums/voice-source.enum.js +9 -0
- package/build/tts/enums/voice-status.enum.d.ts +5 -0
- package/build/tts/enums/voice-status.enum.js +9 -0
- package/build/tts/enums/voice-tag-group.enum.d.ts +5 -0
- package/build/tts/enums/voice-tag-group.enum.js +9 -0
- package/build/tts/enums/voice-tag.enum.d.ts +20 -0
- package/build/tts/enums/voice-tag.enum.js +24 -0
- package/build/tts/models/index.d.ts +7 -0
- package/build/tts/models/index.js +7 -0
- package/build/tts/models/tts-config-with-vendors.schema.d.ts +1 -0
- package/build/tts/models/tts-config.schema.d.ts +11 -0
- package/build/tts/models/tts-config.schema.js +5 -0
- package/build/tts/models/tts-job.schema.d.ts +34 -2
- package/build/tts/models/tts-job.schema.js +22 -2
- package/build/tts/models/tts-model-with-vendor.schema.d.ts +1 -0
- package/build/tts/models/tts-model.schema.d.ts +1 -0
- package/build/tts/models/tts-model.schema.js +1 -0
- package/build/tts/models/voice-category.schema.d.ts +7 -0
- package/build/tts/models/voice-category.schema.js +9 -0
- package/build/tts/models/voice-design-draft.schema.d.ts +13 -0
- package/build/tts/models/voice-design-draft.schema.js +13 -0
- package/build/tts/models/voice-design-sample.schema.d.ts +6 -0
- package/build/tts/models/voice-design-sample.schema.js +8 -0
- package/build/tts/models/voice-gender.schema.d.ts +7 -0
- package/build/tts/models/voice-gender.schema.js +9 -0
- package/build/tts/models/voice-source.schema.d.ts +7 -0
- package/build/tts/models/voice-source.schema.js +9 -0
- package/build/tts/models/voice-tag.schema.d.ts +9 -0
- package/build/tts/models/voice-tag.schema.js +11 -0
- package/build/tts/models/voice.schema.d.ts +34 -0
- package/build/tts/models/voice.schema.js +30 -0
- package/build/tts/queries/find-tts-job-by-id.query.d.ts +29 -2
- package/build/tts/queries/find-tts-job-by-id.query.js +2 -0
- package/build/tts/queries/find-tts-jobs.query.d.ts +29 -2
- package/build/tts/queries/find-tts-jobs.query.js +1 -0
- package/build/tts/queries/find-voice-by-id.query.d.ts +77 -0
- package/build/tts/queries/find-voice-by-id.query.js +17 -0
- package/build/tts/queries/find-voices.query.d.ts +122 -0
- package/build/tts/queries/find-voices.query.js +25 -0
- package/build/tts/queries/get-tts-config-with-vendors.query.d.ts +2 -0
- package/build/tts/queries/get-tts-config.query.d.ts +22 -0
- package/build/tts/queries/index.d.ts +2 -0
- package/build/tts/queries/index.js +2 -0
- package/build/tts/routes/tts.amqp.routes.d.ts +9 -0
- package/build/tts/routes/tts.amqp.routes.js +9 -0
- package/package.json +1 -1
|
@@ -544,6 +544,7 @@ export declare const GlobalToolsConfigSchema: z.ZodObject<{
|
|
|
544
544
|
}, z.core.$strip>;
|
|
545
545
|
strategy: z.ZodOptional<z.ZodString>;
|
|
546
546
|
maxInputLength: z.ZodNumber;
|
|
547
|
+
maxSpeakers: z.ZodNumber;
|
|
547
548
|
voices: z.ZodArray<z.ZodObject<{
|
|
548
549
|
id: z.ZodString;
|
|
549
550
|
externalId: z.ZodString;
|
|
@@ -644,6 +645,16 @@ export declare const GlobalToolsConfigSchema: z.ZodObject<{
|
|
|
644
645
|
createdAt: z.ZodDate;
|
|
645
646
|
updatedAt: z.ZodDate;
|
|
646
647
|
}, z.core.$strip>>;
|
|
648
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
649
|
+
id: z.ZodEnum<typeof import("../..").VOICE_TAG>;
|
|
650
|
+
group: z.ZodEnum<typeof import("../..").VOICE_TAG_GROUP>;
|
|
651
|
+
label: z.ZodString;
|
|
652
|
+
}, z.core.$strip>>;
|
|
653
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
654
|
+
id: z.ZodEnum<typeof import("../..").VOICE_CATEGORY>;
|
|
655
|
+
label: z.ZodString;
|
|
656
|
+
}, z.core.$strip>>;
|
|
657
|
+
speakerMarkerLabel: z.ZodString;
|
|
647
658
|
}, z.core.$strip>;
|
|
648
659
|
SPEECH_TO_TEXT: z.ZodObject<{
|
|
649
660
|
models: z.ZodArray<z.ZodObject<{
|
|
@@ -909,6 +920,71 @@ export declare const GlobalToolsConfigSchema: z.ZodObject<{
|
|
|
909
920
|
}, z.core.$strip>>;
|
|
910
921
|
maxAttachmentsCount: z.ZodNumber;
|
|
911
922
|
}, z.core.$strip>;
|
|
923
|
+
PHOTO_SESSIONS: z.ZodObject<{
|
|
924
|
+
models: z.ZodArray<z.ZodObject<{
|
|
925
|
+
uuid: z.ZodString;
|
|
926
|
+
title: z.ZodString;
|
|
927
|
+
description: z.ZodString;
|
|
928
|
+
aiModel: z.ZodString;
|
|
929
|
+
isNew: z.ZodBoolean;
|
|
930
|
+
tierLabel: z.ZodString;
|
|
931
|
+
pricePerImage: z.ZodNumber;
|
|
932
|
+
order: z.ZodNumber;
|
|
933
|
+
status: z.ZodEnum<typeof import("../..").TOOL_MODEL_STATUS>;
|
|
934
|
+
icons: z.ZodObject<{
|
|
935
|
+
light: z.ZodObject<{
|
|
936
|
+
svg: z.ZodString;
|
|
937
|
+
png: z.ZodString;
|
|
938
|
+
}, z.core.$strip>;
|
|
939
|
+
dark: z.ZodObject<{
|
|
940
|
+
svg: z.ZodString;
|
|
941
|
+
png: z.ZodString;
|
|
942
|
+
}, z.core.$strip>;
|
|
943
|
+
}, z.core.$strip>;
|
|
944
|
+
strategy: z.ZodEnum<typeof import("../..").PHOTO_SESSION_STRATEGY>;
|
|
945
|
+
maxInputLength: z.ZodNumber;
|
|
946
|
+
params: z.ZodObject<{
|
|
947
|
+
imageAttachment: z.ZodObject<{
|
|
948
|
+
supported: z.ZodBoolean;
|
|
949
|
+
maxImages: z.ZodNumber;
|
|
950
|
+
acceptedTypes: z.ZodArray<z.ZodString>;
|
|
951
|
+
}, z.core.$strip>;
|
|
952
|
+
aspectRatio: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
953
|
+
width: z.ZodNumber;
|
|
954
|
+
height: z.ZodNumber;
|
|
955
|
+
}, z.core.$strip>>;
|
|
956
|
+
}, z.core.$strip>;
|
|
957
|
+
pricingRules: z.ZodArray<z.ZodObject<{
|
|
958
|
+
condition: z.ZodObject<{
|
|
959
|
+
withoutSub: z.ZodOptional<z.ZodBoolean>;
|
|
960
|
+
}, z.core.$strip>;
|
|
961
|
+
value: z.ZodNumber;
|
|
962
|
+
}, z.core.$strip>>;
|
|
963
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
964
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
965
|
+
}, z.core.$strip>>;
|
|
966
|
+
styles: z.ZodArray<z.ZodObject<{
|
|
967
|
+
uuid: z.ZodString;
|
|
968
|
+
code: z.ZodString;
|
|
969
|
+
title: z.ZodString;
|
|
970
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
971
|
+
references: z.ZodArray<z.ZodObject<{
|
|
972
|
+
uuid: z.ZodString;
|
|
973
|
+
styleId: z.ZodString;
|
|
974
|
+
photoUrl: z.ZodString;
|
|
975
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
976
|
+
order: z.ZodNumber;
|
|
977
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
978
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
979
|
+
}, z.core.$strip>>;
|
|
980
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
981
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
982
|
+
}, z.core.$strip>>;
|
|
983
|
+
looks: z.ZodArray<z.ZodObject<{
|
|
984
|
+
type: z.ZodEnum<typeof import("../..").PHOTO_SESSION_LOOK_TYPE>;
|
|
985
|
+
maxPhotos: z.ZodNumber;
|
|
986
|
+
}, z.core.$strip>>;
|
|
987
|
+
}, z.core.$strip>;
|
|
912
988
|
IMAGE_RECOGNITION: z.ZodObject<{
|
|
913
989
|
models: z.ZodArray<z.ZodObject<{
|
|
914
990
|
uuid: z.ZodString;
|
|
@@ -19,6 +19,7 @@ const solving_edu_task_1 = require("../../solving-edu-task");
|
|
|
19
19
|
const spell_corrector_1 = require("../../spell-corrector");
|
|
20
20
|
const diagrams_1 = require("../../diagrams");
|
|
21
21
|
const models_2 = require("../../html-page-builder/models");
|
|
22
|
+
const photo_sessions_1 = require("../../photo-sessions");
|
|
22
23
|
const image_recognition_1 = require("../../image-recognition");
|
|
23
24
|
const sound_generation_1 = require("../../sound-generation");
|
|
24
25
|
exports.GlobalToolsConfigSchema = zod_1.z.object({
|
|
@@ -38,6 +39,7 @@ exports.GlobalToolsConfigSchema = zod_1.z.object({
|
|
|
38
39
|
[enums_1.TOOL_CONTENT_TYPE.SPELL_CORRECTOR]: spell_corrector_1.SpellCorrectorToolConfigSchema,
|
|
39
40
|
[enums_1.TOOL_CONTENT_TYPE.DIAGRAMS]: diagrams_1.DiagramsConfigSchema,
|
|
40
41
|
[enums_1.TOOL_CONTENT_TYPE.HTML_PAGE_BUILDER]: models_2.HtmlPageBuilderConfigSchema,
|
|
42
|
+
[enums_1.TOOL_CONTENT_TYPE.PHOTO_SESSIONS]: photo_sessions_1.PhotoSessionConfigSchema,
|
|
41
43
|
[enums_1.TOOL_CONTENT_TYPE.IMAGE_RECOGNITION]: image_recognition_1.ImageRecognitionConfigSchema,
|
|
42
44
|
[enums_1.TOOL_CONTENT_TYPE.SOUND_GENERATION]: sound_generation_1.SoundGenerationConfigSchema,
|
|
43
45
|
});
|
|
@@ -5,6 +5,7 @@ export declare const ToolJobSchema: z.ZodObject<{
|
|
|
5
5
|
unregisteredUserId: z.ZodNullable<z.ZodString>;
|
|
6
6
|
price: z.ZodNumber;
|
|
7
7
|
tokenReservationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
8
9
|
createdAt: z.ZodDate;
|
|
9
10
|
updatedAt: z.ZodDate;
|
|
10
11
|
}, z.core.$strip>;
|
|
@@ -8,6 +8,7 @@ exports.ToolJobSchema = zod_1.z.object({
|
|
|
8
8
|
unregisteredUserId: zod_1.z.string().nullable(),
|
|
9
9
|
price: zod_1.z.number(),
|
|
10
10
|
tokenReservationId: zod_1.z.string().nullable().optional(),
|
|
11
|
+
idempotencyKey: zod_1.z.string().optional(),
|
|
11
12
|
createdAt: zod_1.z.date(),
|
|
12
13
|
updatedAt: zod_1.z.date(),
|
|
13
14
|
});
|
|
@@ -652,6 +652,7 @@ export declare const ToolWithConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
652
652
|
}, z.core.$strip>;
|
|
653
653
|
strategy: z.ZodOptional<z.ZodString>;
|
|
654
654
|
maxInputLength: z.ZodNumber;
|
|
655
|
+
maxSpeakers: z.ZodNumber;
|
|
655
656
|
voices: z.ZodArray<z.ZodObject<{
|
|
656
657
|
id: z.ZodString;
|
|
657
658
|
externalId: z.ZodString;
|
|
@@ -752,6 +753,16 @@ export declare const ToolWithConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
752
753
|
createdAt: z.ZodDate;
|
|
753
754
|
updatedAt: z.ZodDate;
|
|
754
755
|
}, z.core.$strip>>;
|
|
756
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
757
|
+
id: z.ZodEnum<typeof import("../..").VOICE_TAG>;
|
|
758
|
+
group: z.ZodEnum<typeof import("../..").VOICE_TAG_GROUP>;
|
|
759
|
+
label: z.ZodString;
|
|
760
|
+
}, z.core.$strip>>;
|
|
761
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
762
|
+
id: z.ZodEnum<typeof import("../..").VOICE_CATEGORY>;
|
|
763
|
+
label: z.ZodString;
|
|
764
|
+
}, z.core.$strip>>;
|
|
765
|
+
speakerMarkerLabel: z.ZodString;
|
|
755
766
|
}, z.core.$strip>;
|
|
756
767
|
}, z.core.$strip>, z.ZodObject<{
|
|
757
768
|
uuid: z.ZodString;
|
|
@@ -1862,6 +1873,7 @@ export declare const ToolsWithConfigsSchema: z.ZodArray<z.ZodDiscriminatedUnion<
|
|
|
1862
1873
|
}, z.core.$strip>;
|
|
1863
1874
|
strategy: z.ZodOptional<z.ZodString>;
|
|
1864
1875
|
maxInputLength: z.ZodNumber;
|
|
1876
|
+
maxSpeakers: z.ZodNumber;
|
|
1865
1877
|
voices: z.ZodArray<z.ZodObject<{
|
|
1866
1878
|
id: z.ZodString;
|
|
1867
1879
|
externalId: z.ZodString;
|
|
@@ -1962,6 +1974,16 @@ export declare const ToolsWithConfigsSchema: z.ZodArray<z.ZodDiscriminatedUnion<
|
|
|
1962
1974
|
createdAt: z.ZodDate;
|
|
1963
1975
|
updatedAt: z.ZodDate;
|
|
1964
1976
|
}, z.core.$strip>>;
|
|
1977
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
1978
|
+
id: z.ZodEnum<typeof import("../..").VOICE_TAG>;
|
|
1979
|
+
group: z.ZodEnum<typeof import("../..").VOICE_TAG_GROUP>;
|
|
1980
|
+
label: z.ZodString;
|
|
1981
|
+
}, z.core.$strip>>;
|
|
1982
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
1983
|
+
id: z.ZodEnum<typeof import("../..").VOICE_CATEGORY>;
|
|
1984
|
+
label: z.ZodString;
|
|
1985
|
+
}, z.core.$strip>>;
|
|
1986
|
+
speakerMarkerLabel: z.ZodString;
|
|
1965
1987
|
}, z.core.$strip>;
|
|
1966
1988
|
}, z.core.$strip>, z.ZodObject<{
|
|
1967
1989
|
uuid: z.ZodString;
|
|
@@ -551,6 +551,7 @@ export declare namespace GetGlobalToolsConfigQuery {
|
|
|
551
551
|
};
|
|
552
552
|
strategy?: string | undefined;
|
|
553
553
|
maxInputLength: number;
|
|
554
|
+
maxSpeakers: number;
|
|
554
555
|
voices: {
|
|
555
556
|
id: string;
|
|
556
557
|
externalId: string;
|
|
@@ -651,6 +652,16 @@ export declare namespace GetGlobalToolsConfigQuery {
|
|
|
651
652
|
createdAt: Date;
|
|
652
653
|
updatedAt: Date;
|
|
653
654
|
}[];
|
|
655
|
+
tags: {
|
|
656
|
+
id: import("../..").VOICE_TAG;
|
|
657
|
+
group: import("../..").VOICE_TAG_GROUP;
|
|
658
|
+
label: string;
|
|
659
|
+
}[];
|
|
660
|
+
categories: {
|
|
661
|
+
id: import("../..").VOICE_CATEGORY;
|
|
662
|
+
label: string;
|
|
663
|
+
}[];
|
|
664
|
+
speakerMarkerLabel: string;
|
|
654
665
|
};
|
|
655
666
|
SPEECH_TO_TEXT: {
|
|
656
667
|
models: {
|
|
@@ -916,6 +927,71 @@ export declare namespace GetGlobalToolsConfigQuery {
|
|
|
916
927
|
}[];
|
|
917
928
|
maxAttachmentsCount: number;
|
|
918
929
|
};
|
|
930
|
+
PHOTO_SESSIONS: {
|
|
931
|
+
models: {
|
|
932
|
+
uuid: string;
|
|
933
|
+
title: string;
|
|
934
|
+
description: string;
|
|
935
|
+
aiModel: string;
|
|
936
|
+
isNew: boolean;
|
|
937
|
+
tierLabel: string;
|
|
938
|
+
pricePerImage: number;
|
|
939
|
+
order: number;
|
|
940
|
+
status: import("../..").TOOL_MODEL_STATUS;
|
|
941
|
+
icons: {
|
|
942
|
+
light: {
|
|
943
|
+
svg: string;
|
|
944
|
+
png: string;
|
|
945
|
+
};
|
|
946
|
+
dark: {
|
|
947
|
+
svg: string;
|
|
948
|
+
png: string;
|
|
949
|
+
};
|
|
950
|
+
};
|
|
951
|
+
strategy: import("../..").PHOTO_SESSION_STRATEGY;
|
|
952
|
+
maxInputLength: number;
|
|
953
|
+
params: {
|
|
954
|
+
imageAttachment: {
|
|
955
|
+
supported: boolean;
|
|
956
|
+
maxImages: number;
|
|
957
|
+
acceptedTypes: string[];
|
|
958
|
+
};
|
|
959
|
+
aspectRatio: Record<string, {
|
|
960
|
+
width: number;
|
|
961
|
+
height: number;
|
|
962
|
+
}>;
|
|
963
|
+
};
|
|
964
|
+
pricingRules: {
|
|
965
|
+
condition: {
|
|
966
|
+
withoutSub?: boolean | undefined;
|
|
967
|
+
};
|
|
968
|
+
value: number;
|
|
969
|
+
}[];
|
|
970
|
+
createdAt: Date;
|
|
971
|
+
updatedAt: Date;
|
|
972
|
+
}[];
|
|
973
|
+
styles: {
|
|
974
|
+
uuid: string;
|
|
975
|
+
code: string;
|
|
976
|
+
title: string;
|
|
977
|
+
description?: string | null | undefined;
|
|
978
|
+
references: {
|
|
979
|
+
uuid: string;
|
|
980
|
+
styleId: string;
|
|
981
|
+
photoUrl: string;
|
|
982
|
+
description?: string | null | undefined;
|
|
983
|
+
order: number;
|
|
984
|
+
createdAt: Date;
|
|
985
|
+
updatedAt: Date;
|
|
986
|
+
}[];
|
|
987
|
+
createdAt: Date;
|
|
988
|
+
updatedAt: Date;
|
|
989
|
+
}[];
|
|
990
|
+
looks: {
|
|
991
|
+
type: import("../..").PHOTO_SESSION_LOOK_TYPE;
|
|
992
|
+
maxPhotos: number;
|
|
993
|
+
}[];
|
|
994
|
+
};
|
|
919
995
|
IMAGE_RECOGNITION: {
|
|
920
996
|
models: {
|
|
921
997
|
uuid: string;
|
|
@@ -1544,6 +1620,7 @@ export declare namespace GetGlobalToolsConfigQuery {
|
|
|
1544
1620
|
};
|
|
1545
1621
|
strategy?: string | undefined;
|
|
1546
1622
|
maxInputLength: number;
|
|
1623
|
+
maxSpeakers: number;
|
|
1547
1624
|
voices: {
|
|
1548
1625
|
id: string;
|
|
1549
1626
|
externalId: string;
|
|
@@ -1644,6 +1721,16 @@ export declare namespace GetGlobalToolsConfigQuery {
|
|
|
1644
1721
|
createdAt: Date;
|
|
1645
1722
|
updatedAt: Date;
|
|
1646
1723
|
}[];
|
|
1724
|
+
tags: {
|
|
1725
|
+
id: import("../..").VOICE_TAG;
|
|
1726
|
+
group: import("../..").VOICE_TAG_GROUP;
|
|
1727
|
+
label: string;
|
|
1728
|
+
}[];
|
|
1729
|
+
categories: {
|
|
1730
|
+
id: import("../..").VOICE_CATEGORY;
|
|
1731
|
+
label: string;
|
|
1732
|
+
}[];
|
|
1733
|
+
speakerMarkerLabel: string;
|
|
1647
1734
|
};
|
|
1648
1735
|
SPEECH_TO_TEXT: {
|
|
1649
1736
|
models: {
|
|
@@ -1909,6 +1996,71 @@ export declare namespace GetGlobalToolsConfigQuery {
|
|
|
1909
1996
|
}[];
|
|
1910
1997
|
maxAttachmentsCount: number;
|
|
1911
1998
|
};
|
|
1999
|
+
PHOTO_SESSIONS: {
|
|
2000
|
+
models: {
|
|
2001
|
+
uuid: string;
|
|
2002
|
+
title: string;
|
|
2003
|
+
description: string;
|
|
2004
|
+
aiModel: string;
|
|
2005
|
+
isNew: boolean;
|
|
2006
|
+
tierLabel: string;
|
|
2007
|
+
pricePerImage: number;
|
|
2008
|
+
order: number;
|
|
2009
|
+
status: import("../..").TOOL_MODEL_STATUS;
|
|
2010
|
+
icons: {
|
|
2011
|
+
light: {
|
|
2012
|
+
svg: string;
|
|
2013
|
+
png: string;
|
|
2014
|
+
};
|
|
2015
|
+
dark: {
|
|
2016
|
+
svg: string;
|
|
2017
|
+
png: string;
|
|
2018
|
+
};
|
|
2019
|
+
};
|
|
2020
|
+
strategy: import("../..").PHOTO_SESSION_STRATEGY;
|
|
2021
|
+
maxInputLength: number;
|
|
2022
|
+
params: {
|
|
2023
|
+
imageAttachment: {
|
|
2024
|
+
supported: boolean;
|
|
2025
|
+
maxImages: number;
|
|
2026
|
+
acceptedTypes: string[];
|
|
2027
|
+
};
|
|
2028
|
+
aspectRatio: Record<string, {
|
|
2029
|
+
width: number;
|
|
2030
|
+
height: number;
|
|
2031
|
+
}>;
|
|
2032
|
+
};
|
|
2033
|
+
pricingRules: {
|
|
2034
|
+
condition: {
|
|
2035
|
+
withoutSub?: boolean | undefined;
|
|
2036
|
+
};
|
|
2037
|
+
value: number;
|
|
2038
|
+
}[];
|
|
2039
|
+
createdAt: Date;
|
|
2040
|
+
updatedAt: Date;
|
|
2041
|
+
}[];
|
|
2042
|
+
styles: {
|
|
2043
|
+
uuid: string;
|
|
2044
|
+
code: string;
|
|
2045
|
+
title: string;
|
|
2046
|
+
description?: string | null | undefined;
|
|
2047
|
+
references: {
|
|
2048
|
+
uuid: string;
|
|
2049
|
+
styleId: string;
|
|
2050
|
+
photoUrl: string;
|
|
2051
|
+
description?: string | null | undefined;
|
|
2052
|
+
order: number;
|
|
2053
|
+
createdAt: Date;
|
|
2054
|
+
updatedAt: Date;
|
|
2055
|
+
}[];
|
|
2056
|
+
createdAt: Date;
|
|
2057
|
+
updatedAt: Date;
|
|
2058
|
+
}[];
|
|
2059
|
+
looks: {
|
|
2060
|
+
type: import("../..").PHOTO_SESSION_LOOK_TYPE;
|
|
2061
|
+
maxPhotos: number;
|
|
2062
|
+
}[];
|
|
2063
|
+
};
|
|
1912
2064
|
IMAGE_RECOGNITION: {
|
|
1913
2065
|
models: {
|
|
1914
2066
|
uuid: string;
|
|
@@ -658,6 +658,7 @@ export declare namespace GetToolsWithConfigsQuery {
|
|
|
658
658
|
};
|
|
659
659
|
strategy?: string | undefined;
|
|
660
660
|
maxInputLength: number;
|
|
661
|
+
maxSpeakers: number;
|
|
661
662
|
voices: {
|
|
662
663
|
id: string;
|
|
663
664
|
externalId: string;
|
|
@@ -758,6 +759,16 @@ export declare namespace GetToolsWithConfigsQuery {
|
|
|
758
759
|
createdAt: Date;
|
|
759
760
|
updatedAt: Date;
|
|
760
761
|
}[];
|
|
762
|
+
tags: {
|
|
763
|
+
id: import("../..").VOICE_TAG;
|
|
764
|
+
group: import("../..").VOICE_TAG_GROUP;
|
|
765
|
+
label: string;
|
|
766
|
+
}[];
|
|
767
|
+
categories: {
|
|
768
|
+
id: import("../..").VOICE_CATEGORY;
|
|
769
|
+
label: string;
|
|
770
|
+
}[];
|
|
771
|
+
speakerMarkerLabel: string;
|
|
761
772
|
};
|
|
762
773
|
} | {
|
|
763
774
|
uuid: string;
|
|
@@ -1866,6 +1877,7 @@ export declare namespace GetToolsWithConfigsQuery {
|
|
|
1866
1877
|
};
|
|
1867
1878
|
strategy?: string | undefined;
|
|
1868
1879
|
maxInputLength: number;
|
|
1880
|
+
maxSpeakers: number;
|
|
1869
1881
|
voices: {
|
|
1870
1882
|
id: string;
|
|
1871
1883
|
externalId: string;
|
|
@@ -1966,6 +1978,16 @@ export declare namespace GetToolsWithConfigsQuery {
|
|
|
1966
1978
|
createdAt: Date;
|
|
1967
1979
|
updatedAt: Date;
|
|
1968
1980
|
}[];
|
|
1981
|
+
tags: {
|
|
1982
|
+
id: import("../..").VOICE_TAG;
|
|
1983
|
+
group: import("../..").VOICE_TAG_GROUP;
|
|
1984
|
+
label: string;
|
|
1985
|
+
}[];
|
|
1986
|
+
categories: {
|
|
1987
|
+
id: import("../..").VOICE_CATEGORY;
|
|
1988
|
+
label: string;
|
|
1989
|
+
}[];
|
|
1990
|
+
speakerMarkerLabel: string;
|
|
1969
1991
|
};
|
|
1970
1992
|
} | {
|
|
1971
1993
|
uuid: string;
|
|
@@ -0,0 +1,81 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
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 = {}));
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateVoiceDesignCommand = 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 CreateVoiceDesignCommand;
|
|
9
|
+
(function (CreateVoiceDesignCommand) {
|
|
10
|
+
CreateVoiceDesignCommand.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),
|
|
16
|
+
instruction: zod_1.z.string().min(1),
|
|
17
|
+
imageUrl: zod_1.z.string().url().optional(),
|
|
18
|
+
});
|
|
19
|
+
CreateVoiceDesignCommand.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.VoiceDesignDraftSchema);
|
|
20
|
+
})(CreateVoiceDesignCommand || (exports.CreateVoiceDesignCommand = CreateVoiceDesignCommand = {}));
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { JOB_SCOPE } from '../../common';
|
|
3
|
+
export declare namespace DeleteVoiceCommand {
|
|
4
|
+
const RequestSchema: z.ZodObject<{
|
|
5
|
+
uuid: z.ZodString;
|
|
6
|
+
userId: z.ZodString;
|
|
7
|
+
scope: z.ZodDefault<z.ZodOptional<z.ZodEnum<typeof JOB_SCOPE>>>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
10
|
+
const ResponseSchema: z.ZodObject<{
|
|
11
|
+
isSuccess: z.ZodBoolean;
|
|
12
|
+
data: z.ZodOptional<z.ZodType<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>>;
|
|
13
|
+
code: z.ZodOptional<z.ZodString>;
|
|
14
|
+
message: z.ZodOptional<z.ZodString>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteVoiceCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const common_1 = require("../../common");
|
|
6
|
+
var DeleteVoiceCommand;
|
|
7
|
+
(function (DeleteVoiceCommand) {
|
|
8
|
+
DeleteVoiceCommand.RequestSchema = zod_1.z.object({
|
|
9
|
+
uuid: zod_1.z.string().uuid(),
|
|
10
|
+
userId: zod_1.z.string().uuid(),
|
|
11
|
+
scope: zod_1.z.nativeEnum(common_1.JOB_SCOPE).optional().default(common_1.JOB_SCOPE.TOOL),
|
|
12
|
+
});
|
|
13
|
+
DeleteVoiceCommand.ResponseSchema = (0, common_1.ICommandResponseSchema)(zod_1.z.boolean());
|
|
14
|
+
})(DeleteVoiceCommand || (exports.DeleteVoiceCommand = DeleteVoiceCommand = {}));
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { TTS_DOWNLOAD_FORMAT } from '../enums/tts-download-format.enum';
|
|
3
|
+
export declare namespace DownloadTTSJobCommand {
|
|
4
|
+
const RequestSchema: z.ZodObject<{
|
|
5
|
+
uuid: z.ZodString;
|
|
6
|
+
userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
|
+
unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
format: z.ZodEnum<typeof TTS_DOWNLOAD_FORMAT>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
11
|
+
const ResponseDataSchema: z.ZodObject<{
|
|
12
|
+
url: z.ZodString;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
const ResponseSchema: z.ZodObject<{
|
|
15
|
+
isSuccess: z.ZodBoolean;
|
|
16
|
+
data: z.ZodOptional<z.ZodType<{
|
|
17
|
+
url: string;
|
|
18
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
19
|
+
url: string;
|
|
20
|
+
}, unknown>>>;
|
|
21
|
+
code: z.ZodOptional<z.ZodString>;
|
|
22
|
+
message: z.ZodOptional<z.ZodString>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DownloadTTSJobCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const common_1 = require("../../common");
|
|
6
|
+
const tts_download_format_enum_1 = require("../enums/tts-download-format.enum");
|
|
7
|
+
var DownloadTTSJobCommand;
|
|
8
|
+
(function (DownloadTTSJobCommand) {
|
|
9
|
+
DownloadTTSJobCommand.RequestSchema = zod_1.z.object({
|
|
10
|
+
uuid: zod_1.z.string().uuid(),
|
|
11
|
+
userId: zod_1.z.string().uuid().nullable().optional(),
|
|
12
|
+
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
13
|
+
format: zod_1.z.nativeEnum(tts_download_format_enum_1.TTS_DOWNLOAD_FORMAT),
|
|
14
|
+
});
|
|
15
|
+
DownloadTTSJobCommand.ResponseDataSchema = zod_1.z.object({
|
|
16
|
+
url: zod_1.z.string(),
|
|
17
|
+
});
|
|
18
|
+
DownloadTTSJobCommand.ResponseSchema = (0, common_1.ICommandResponseSchema)(DownloadTTSJobCommand.ResponseDataSchema);
|
|
19
|
+
})(DownloadTTSJobCommand || (exports.DownloadTTSJobCommand = DownloadTTSJobCommand = {}));
|