@purpleschool/gptbot-tools 0.2.65 → 0.2.67-stage2
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/image-generation/enums/image-generation-model-strategy.enum.d.ts +1 -2
- package/build/image-generation/enums/image-generation-model-strategy.enum.js +0 -2
- package/build/index.d.ts +3 -0
- package/build/index.js +3 -0
- 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-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 +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-group.schema.d.ts +0 -1
- package/build/tools/models/tool-group.schema.js +0 -1
- 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/find-grouped-tools.query.d.ts +0 -2
- 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/build/video/enums/video-strategy.enum.d.ts +1 -2
- package/build/video/enums/video-strategy.enum.js +0 -1
- package/package.json +1 -1
|
@@ -543,6 +543,7 @@ export declare const GlobalToolsConfigSchema: z.ZodObject<{
|
|
|
543
543
|
}, z.core.$strip>;
|
|
544
544
|
strategy: z.ZodOptional<z.ZodString>;
|
|
545
545
|
maxInputLength: z.ZodNumber;
|
|
546
|
+
maxSpeakers: z.ZodNumber;
|
|
546
547
|
voices: z.ZodArray<z.ZodObject<{
|
|
547
548
|
id: z.ZodString;
|
|
548
549
|
externalId: z.ZodString;
|
|
@@ -643,6 +644,16 @@ export declare const GlobalToolsConfigSchema: z.ZodObject<{
|
|
|
643
644
|
createdAt: z.ZodDate;
|
|
644
645
|
updatedAt: z.ZodDate;
|
|
645
646
|
}, z.core.$strip>>;
|
|
647
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
648
|
+
id: z.ZodEnum<typeof import("../..").VOICE_TAG>;
|
|
649
|
+
group: z.ZodEnum<typeof import("../..").VOICE_TAG_GROUP>;
|
|
650
|
+
label: z.ZodString;
|
|
651
|
+
}, z.core.$strip>>;
|
|
652
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
653
|
+
id: z.ZodEnum<typeof import("../..").VOICE_CATEGORY>;
|
|
654
|
+
label: z.ZodString;
|
|
655
|
+
}, z.core.$strip>>;
|
|
656
|
+
speakerMarkerLabel: z.ZodString;
|
|
646
657
|
}, z.core.$strip>;
|
|
647
658
|
SPEECH_TO_TEXT: z.ZodObject<{
|
|
648
659
|
models: z.ZodArray<z.ZodObject<{
|
|
@@ -902,6 +913,71 @@ export declare const GlobalToolsConfigSchema: z.ZodObject<{
|
|
|
902
913
|
}, z.core.$strip>>;
|
|
903
914
|
maxAttachmentsCount: z.ZodNumber;
|
|
904
915
|
}, z.core.$strip>;
|
|
916
|
+
PHOTO_SESSIONS: z.ZodObject<{
|
|
917
|
+
models: z.ZodArray<z.ZodObject<{
|
|
918
|
+
uuid: z.ZodString;
|
|
919
|
+
title: z.ZodString;
|
|
920
|
+
description: z.ZodString;
|
|
921
|
+
aiModel: z.ZodString;
|
|
922
|
+
isNew: z.ZodBoolean;
|
|
923
|
+
tierLabel: z.ZodString;
|
|
924
|
+
pricePerImage: z.ZodNumber;
|
|
925
|
+
order: z.ZodNumber;
|
|
926
|
+
status: z.ZodEnum<typeof import("../..").TOOL_MODEL_STATUS>;
|
|
927
|
+
icons: z.ZodObject<{
|
|
928
|
+
light: z.ZodObject<{
|
|
929
|
+
svg: z.ZodString;
|
|
930
|
+
png: z.ZodString;
|
|
931
|
+
}, z.core.$strip>;
|
|
932
|
+
dark: z.ZodObject<{
|
|
933
|
+
svg: z.ZodString;
|
|
934
|
+
png: z.ZodString;
|
|
935
|
+
}, z.core.$strip>;
|
|
936
|
+
}, z.core.$strip>;
|
|
937
|
+
strategy: z.ZodEnum<typeof import("../..").PHOTO_SESSION_STRATEGY>;
|
|
938
|
+
maxInputLength: z.ZodNumber;
|
|
939
|
+
params: z.ZodObject<{
|
|
940
|
+
imageAttachment: z.ZodObject<{
|
|
941
|
+
supported: z.ZodBoolean;
|
|
942
|
+
maxImages: z.ZodNumber;
|
|
943
|
+
acceptedTypes: z.ZodArray<z.ZodString>;
|
|
944
|
+
}, z.core.$strip>;
|
|
945
|
+
aspectRatio: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
946
|
+
width: z.ZodNumber;
|
|
947
|
+
height: z.ZodNumber;
|
|
948
|
+
}, z.core.$strip>>;
|
|
949
|
+
}, z.core.$strip>;
|
|
950
|
+
pricingRules: z.ZodArray<z.ZodObject<{
|
|
951
|
+
condition: z.ZodObject<{
|
|
952
|
+
withoutSub: z.ZodOptional<z.ZodBoolean>;
|
|
953
|
+
}, z.core.$strip>;
|
|
954
|
+
value: z.ZodNumber;
|
|
955
|
+
}, z.core.$strip>>;
|
|
956
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
957
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
958
|
+
}, z.core.$strip>>;
|
|
959
|
+
styles: z.ZodArray<z.ZodObject<{
|
|
960
|
+
uuid: z.ZodString;
|
|
961
|
+
code: z.ZodString;
|
|
962
|
+
title: z.ZodString;
|
|
963
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
964
|
+
references: z.ZodArray<z.ZodObject<{
|
|
965
|
+
uuid: z.ZodString;
|
|
966
|
+
styleId: z.ZodString;
|
|
967
|
+
photoUrl: z.ZodString;
|
|
968
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
969
|
+
order: z.ZodNumber;
|
|
970
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
971
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
972
|
+
}, z.core.$strip>>;
|
|
973
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
974
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
975
|
+
}, z.core.$strip>>;
|
|
976
|
+
looks: z.ZodArray<z.ZodObject<{
|
|
977
|
+
type: z.ZodEnum<typeof import("../..").PHOTO_SESSION_LOOK_TYPE>;
|
|
978
|
+
maxPhotos: z.ZodNumber;
|
|
979
|
+
}, z.core.$strip>>;
|
|
980
|
+
}, z.core.$strip>;
|
|
905
981
|
IMAGE_RECOGNITION: z.ZodObject<{
|
|
906
982
|
models: z.ZodArray<z.ZodObject<{
|
|
907
983
|
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
|
});
|
|
@@ -651,6 +651,7 @@ export declare const ToolWithConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
651
651
|
}, z.core.$strip>;
|
|
652
652
|
strategy: z.ZodOptional<z.ZodString>;
|
|
653
653
|
maxInputLength: z.ZodNumber;
|
|
654
|
+
maxSpeakers: z.ZodNumber;
|
|
654
655
|
voices: z.ZodArray<z.ZodObject<{
|
|
655
656
|
id: z.ZodString;
|
|
656
657
|
externalId: z.ZodString;
|
|
@@ -751,6 +752,16 @@ export declare const ToolWithConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
751
752
|
createdAt: z.ZodDate;
|
|
752
753
|
updatedAt: z.ZodDate;
|
|
753
754
|
}, z.core.$strip>>;
|
|
755
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
756
|
+
id: z.ZodEnum<typeof import("../..").VOICE_TAG>;
|
|
757
|
+
group: z.ZodEnum<typeof import("../..").VOICE_TAG_GROUP>;
|
|
758
|
+
label: z.ZodString;
|
|
759
|
+
}, z.core.$strip>>;
|
|
760
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
761
|
+
id: z.ZodEnum<typeof import("../..").VOICE_CATEGORY>;
|
|
762
|
+
label: z.ZodString;
|
|
763
|
+
}, z.core.$strip>>;
|
|
764
|
+
speakerMarkerLabel: z.ZodString;
|
|
754
765
|
}, z.core.$strip>;
|
|
755
766
|
}, z.core.$strip>, z.ZodObject<{
|
|
756
767
|
uuid: z.ZodString;
|
|
@@ -1854,6 +1865,7 @@ export declare const ToolsWithConfigsSchema: z.ZodArray<z.ZodDiscriminatedUnion<
|
|
|
1854
1865
|
}, z.core.$strip>;
|
|
1855
1866
|
strategy: z.ZodOptional<z.ZodString>;
|
|
1856
1867
|
maxInputLength: z.ZodNumber;
|
|
1868
|
+
maxSpeakers: z.ZodNumber;
|
|
1857
1869
|
voices: z.ZodArray<z.ZodObject<{
|
|
1858
1870
|
id: z.ZodString;
|
|
1859
1871
|
externalId: z.ZodString;
|
|
@@ -1954,6 +1966,16 @@ export declare const ToolsWithConfigsSchema: z.ZodArray<z.ZodDiscriminatedUnion<
|
|
|
1954
1966
|
createdAt: z.ZodDate;
|
|
1955
1967
|
updatedAt: z.ZodDate;
|
|
1956
1968
|
}, z.core.$strip>>;
|
|
1969
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
1970
|
+
id: z.ZodEnum<typeof import("../..").VOICE_TAG>;
|
|
1971
|
+
group: z.ZodEnum<typeof import("../..").VOICE_TAG_GROUP>;
|
|
1972
|
+
label: z.ZodString;
|
|
1973
|
+
}, z.core.$strip>>;
|
|
1974
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
1975
|
+
id: z.ZodEnum<typeof import("../..").VOICE_CATEGORY>;
|
|
1976
|
+
label: z.ZodString;
|
|
1977
|
+
}, z.core.$strip>>;
|
|
1978
|
+
speakerMarkerLabel: z.ZodString;
|
|
1957
1979
|
}, z.core.$strip>;
|
|
1958
1980
|
}, z.core.$strip>, z.ZodObject<{
|
|
1959
1981
|
uuid: z.ZodString;
|
|
@@ -9,7 +9,6 @@ export declare namespace FindGroupedToolsQuery {
|
|
|
9
9
|
data: z.ZodOptional<z.ZodType<{
|
|
10
10
|
group: import("..").TOOL_GROUP;
|
|
11
11
|
title: string;
|
|
12
|
-
icon: string;
|
|
13
12
|
tools: {
|
|
14
13
|
uuid: string;
|
|
15
14
|
title: string;
|
|
@@ -26,7 +25,6 @@ export declare namespace FindGroupedToolsQuery {
|
|
|
26
25
|
}[], unknown, z.core.$ZodTypeInternals<{
|
|
27
26
|
group: import("..").TOOL_GROUP;
|
|
28
27
|
title: string;
|
|
29
|
-
icon: string;
|
|
30
28
|
tools: {
|
|
31
29
|
uuid: string;
|
|
32
30
|
title: string;
|
|
@@ -550,6 +550,7 @@ export declare namespace GetGlobalToolsConfigQuery {
|
|
|
550
550
|
};
|
|
551
551
|
strategy?: string | undefined;
|
|
552
552
|
maxInputLength: number;
|
|
553
|
+
maxSpeakers: number;
|
|
553
554
|
voices: {
|
|
554
555
|
id: string;
|
|
555
556
|
externalId: string;
|
|
@@ -650,6 +651,16 @@ export declare namespace GetGlobalToolsConfigQuery {
|
|
|
650
651
|
createdAt: Date;
|
|
651
652
|
updatedAt: Date;
|
|
652
653
|
}[];
|
|
654
|
+
tags: {
|
|
655
|
+
id: import("../..").VOICE_TAG;
|
|
656
|
+
group: import("../..").VOICE_TAG_GROUP;
|
|
657
|
+
label: string;
|
|
658
|
+
}[];
|
|
659
|
+
categories: {
|
|
660
|
+
id: import("../..").VOICE_CATEGORY;
|
|
661
|
+
label: string;
|
|
662
|
+
}[];
|
|
663
|
+
speakerMarkerLabel: string;
|
|
653
664
|
};
|
|
654
665
|
SPEECH_TO_TEXT: {
|
|
655
666
|
models: {
|
|
@@ -909,6 +920,71 @@ export declare namespace GetGlobalToolsConfigQuery {
|
|
|
909
920
|
}[];
|
|
910
921
|
maxAttachmentsCount: number;
|
|
911
922
|
};
|
|
923
|
+
PHOTO_SESSIONS: {
|
|
924
|
+
models: {
|
|
925
|
+
uuid: string;
|
|
926
|
+
title: string;
|
|
927
|
+
description: string;
|
|
928
|
+
aiModel: string;
|
|
929
|
+
isNew: boolean;
|
|
930
|
+
tierLabel: string;
|
|
931
|
+
pricePerImage: number;
|
|
932
|
+
order: number;
|
|
933
|
+
status: import("../..").TOOL_MODEL_STATUS;
|
|
934
|
+
icons: {
|
|
935
|
+
light: {
|
|
936
|
+
svg: string;
|
|
937
|
+
png: string;
|
|
938
|
+
};
|
|
939
|
+
dark: {
|
|
940
|
+
svg: string;
|
|
941
|
+
png: string;
|
|
942
|
+
};
|
|
943
|
+
};
|
|
944
|
+
strategy: import("../..").PHOTO_SESSION_STRATEGY;
|
|
945
|
+
maxInputLength: number;
|
|
946
|
+
params: {
|
|
947
|
+
imageAttachment: {
|
|
948
|
+
supported: boolean;
|
|
949
|
+
maxImages: number;
|
|
950
|
+
acceptedTypes: string[];
|
|
951
|
+
};
|
|
952
|
+
aspectRatio: Record<string, {
|
|
953
|
+
width: number;
|
|
954
|
+
height: number;
|
|
955
|
+
}>;
|
|
956
|
+
};
|
|
957
|
+
pricingRules: {
|
|
958
|
+
condition: {
|
|
959
|
+
withoutSub?: boolean | undefined;
|
|
960
|
+
};
|
|
961
|
+
value: number;
|
|
962
|
+
}[];
|
|
963
|
+
createdAt: Date;
|
|
964
|
+
updatedAt: Date;
|
|
965
|
+
}[];
|
|
966
|
+
styles: {
|
|
967
|
+
uuid: string;
|
|
968
|
+
code: string;
|
|
969
|
+
title: string;
|
|
970
|
+
description?: string | null | undefined;
|
|
971
|
+
references: {
|
|
972
|
+
uuid: string;
|
|
973
|
+
styleId: string;
|
|
974
|
+
photoUrl: string;
|
|
975
|
+
description?: string | null | undefined;
|
|
976
|
+
order: number;
|
|
977
|
+
createdAt: Date;
|
|
978
|
+
updatedAt: Date;
|
|
979
|
+
}[];
|
|
980
|
+
createdAt: Date;
|
|
981
|
+
updatedAt: Date;
|
|
982
|
+
}[];
|
|
983
|
+
looks: {
|
|
984
|
+
type: import("../..").PHOTO_SESSION_LOOK_TYPE;
|
|
985
|
+
maxPhotos: number;
|
|
986
|
+
}[];
|
|
987
|
+
};
|
|
912
988
|
IMAGE_RECOGNITION: {
|
|
913
989
|
models: {
|
|
914
990
|
uuid: string;
|
|
@@ -1536,6 +1612,7 @@ export declare namespace GetGlobalToolsConfigQuery {
|
|
|
1536
1612
|
};
|
|
1537
1613
|
strategy?: string | undefined;
|
|
1538
1614
|
maxInputLength: number;
|
|
1615
|
+
maxSpeakers: number;
|
|
1539
1616
|
voices: {
|
|
1540
1617
|
id: string;
|
|
1541
1618
|
externalId: string;
|
|
@@ -1636,6 +1713,16 @@ export declare namespace GetGlobalToolsConfigQuery {
|
|
|
1636
1713
|
createdAt: Date;
|
|
1637
1714
|
updatedAt: Date;
|
|
1638
1715
|
}[];
|
|
1716
|
+
tags: {
|
|
1717
|
+
id: import("../..").VOICE_TAG;
|
|
1718
|
+
group: import("../..").VOICE_TAG_GROUP;
|
|
1719
|
+
label: string;
|
|
1720
|
+
}[];
|
|
1721
|
+
categories: {
|
|
1722
|
+
id: import("../..").VOICE_CATEGORY;
|
|
1723
|
+
label: string;
|
|
1724
|
+
}[];
|
|
1725
|
+
speakerMarkerLabel: string;
|
|
1639
1726
|
};
|
|
1640
1727
|
SPEECH_TO_TEXT: {
|
|
1641
1728
|
models: {
|
|
@@ -1895,6 +1982,71 @@ export declare namespace GetGlobalToolsConfigQuery {
|
|
|
1895
1982
|
}[];
|
|
1896
1983
|
maxAttachmentsCount: number;
|
|
1897
1984
|
};
|
|
1985
|
+
PHOTO_SESSIONS: {
|
|
1986
|
+
models: {
|
|
1987
|
+
uuid: string;
|
|
1988
|
+
title: string;
|
|
1989
|
+
description: string;
|
|
1990
|
+
aiModel: string;
|
|
1991
|
+
isNew: boolean;
|
|
1992
|
+
tierLabel: string;
|
|
1993
|
+
pricePerImage: number;
|
|
1994
|
+
order: number;
|
|
1995
|
+
status: import("../..").TOOL_MODEL_STATUS;
|
|
1996
|
+
icons: {
|
|
1997
|
+
light: {
|
|
1998
|
+
svg: string;
|
|
1999
|
+
png: string;
|
|
2000
|
+
};
|
|
2001
|
+
dark: {
|
|
2002
|
+
svg: string;
|
|
2003
|
+
png: string;
|
|
2004
|
+
};
|
|
2005
|
+
};
|
|
2006
|
+
strategy: import("../..").PHOTO_SESSION_STRATEGY;
|
|
2007
|
+
maxInputLength: number;
|
|
2008
|
+
params: {
|
|
2009
|
+
imageAttachment: {
|
|
2010
|
+
supported: boolean;
|
|
2011
|
+
maxImages: number;
|
|
2012
|
+
acceptedTypes: string[];
|
|
2013
|
+
};
|
|
2014
|
+
aspectRatio: Record<string, {
|
|
2015
|
+
width: number;
|
|
2016
|
+
height: number;
|
|
2017
|
+
}>;
|
|
2018
|
+
};
|
|
2019
|
+
pricingRules: {
|
|
2020
|
+
condition: {
|
|
2021
|
+
withoutSub?: boolean | undefined;
|
|
2022
|
+
};
|
|
2023
|
+
value: number;
|
|
2024
|
+
}[];
|
|
2025
|
+
createdAt: Date;
|
|
2026
|
+
updatedAt: Date;
|
|
2027
|
+
}[];
|
|
2028
|
+
styles: {
|
|
2029
|
+
uuid: string;
|
|
2030
|
+
code: string;
|
|
2031
|
+
title: string;
|
|
2032
|
+
description?: string | null | undefined;
|
|
2033
|
+
references: {
|
|
2034
|
+
uuid: string;
|
|
2035
|
+
styleId: string;
|
|
2036
|
+
photoUrl: string;
|
|
2037
|
+
description?: string | null | undefined;
|
|
2038
|
+
order: number;
|
|
2039
|
+
createdAt: Date;
|
|
2040
|
+
updatedAt: Date;
|
|
2041
|
+
}[];
|
|
2042
|
+
createdAt: Date;
|
|
2043
|
+
updatedAt: Date;
|
|
2044
|
+
}[];
|
|
2045
|
+
looks: {
|
|
2046
|
+
type: import("../..").PHOTO_SESSION_LOOK_TYPE;
|
|
2047
|
+
maxPhotos: number;
|
|
2048
|
+
}[];
|
|
2049
|
+
};
|
|
1898
2050
|
IMAGE_RECOGNITION: {
|
|
1899
2051
|
models: {
|
|
1900
2052
|
uuid: string;
|
|
@@ -657,6 +657,7 @@ export declare namespace GetToolsWithConfigsQuery {
|
|
|
657
657
|
};
|
|
658
658
|
strategy?: string | undefined;
|
|
659
659
|
maxInputLength: number;
|
|
660
|
+
maxSpeakers: number;
|
|
660
661
|
voices: {
|
|
661
662
|
id: string;
|
|
662
663
|
externalId: string;
|
|
@@ -757,6 +758,16 @@ export declare namespace GetToolsWithConfigsQuery {
|
|
|
757
758
|
createdAt: Date;
|
|
758
759
|
updatedAt: Date;
|
|
759
760
|
}[];
|
|
761
|
+
tags: {
|
|
762
|
+
id: import("../..").VOICE_TAG;
|
|
763
|
+
group: import("../..").VOICE_TAG_GROUP;
|
|
764
|
+
label: string;
|
|
765
|
+
}[];
|
|
766
|
+
categories: {
|
|
767
|
+
id: import("../..").VOICE_CATEGORY;
|
|
768
|
+
label: string;
|
|
769
|
+
}[];
|
|
770
|
+
speakerMarkerLabel: string;
|
|
760
771
|
};
|
|
761
772
|
} | {
|
|
762
773
|
uuid: string;
|
|
@@ -1858,6 +1869,7 @@ export declare namespace GetToolsWithConfigsQuery {
|
|
|
1858
1869
|
};
|
|
1859
1870
|
strategy?: string | undefined;
|
|
1860
1871
|
maxInputLength: number;
|
|
1872
|
+
maxSpeakers: number;
|
|
1861
1873
|
voices: {
|
|
1862
1874
|
id: string;
|
|
1863
1875
|
externalId: string;
|
|
@@ -1958,6 +1970,16 @@ export declare namespace GetToolsWithConfigsQuery {
|
|
|
1958
1970
|
createdAt: Date;
|
|
1959
1971
|
updatedAt: Date;
|
|
1960
1972
|
}[];
|
|
1973
|
+
tags: {
|
|
1974
|
+
id: import("../..").VOICE_TAG;
|
|
1975
|
+
group: import("../..").VOICE_TAG_GROUP;
|
|
1976
|
+
label: string;
|
|
1977
|
+
}[];
|
|
1978
|
+
categories: {
|
|
1979
|
+
id: import("../..").VOICE_CATEGORY;
|
|
1980
|
+
label: string;
|
|
1981
|
+
}[];
|
|
1982
|
+
speakerMarkerLabel: string;
|
|
1961
1983
|
};
|
|
1962
1984
|
} | {
|
|
1963
1985
|
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 = {}));
|