@purpleschool/gptbot-tools 0.2.61 → 0.2.62-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/index.d.ts +3 -3
- package/build/index.js +3 -3
- 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/{sound-generation/queries → photo-sessions/commands/admin}/index.js +3 -3
- package/build/photo-sessions/commands/admin/update-photo-session-style.command.d.ts +55 -0
- package/build/photo-sessions/commands/admin/update-photo-session-style.command.js +28 -0
- package/build/{sound-generation/commands/delete-all-sound-generation-jobs.command.d.ts → photo-sessions/commands/delete-all-photo-sessions-jobs.command.d.ts} +1 -1
- package/build/photo-sessions/commands/delete-all-photo-sessions-jobs.command.js +15 -0
- package/build/{sound-generation/commands/delete-sound-generation-job-by-uuid.command.d.ts → photo-sessions/commands/delete-photo-sessions-job-by-uuid.command.d.ts} +2 -2
- 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 +46 -0
- package/build/photo-sessions/commands/get-photo-sessions-price.command.js +30 -0
- package/build/photo-sessions/commands/index.d.ts +10 -0
- package/build/{sound-generation → photo-sessions}/commands/index.js +10 -8
- package/build/photo-sessions/commands/photo-sessions.command.d.ts +147 -0
- package/build/photo-sessions/commands/photo-sessions.command.js +41 -0
- package/build/photo-sessions/commands/retry-photo-sessions-job.command.d.ts +142 -0
- package/build/photo-sessions/commands/retry-photo-sessions-job.command.js +23 -0
- package/build/photo-sessions/commands/set-reaction-to-photo-sessions-job.command.d.ts +115 -0
- package/build/{sound-generation/commands/set-reaction-to-sound-generation-job.command.js → photo-sessions/commands/set-reaction-to-photo-sessions-job.command.js} +7 -7
- package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.d.ts +113 -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 +113 -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 +118 -0
- package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.js +26 -0
- package/build/photo-sessions/enums/index.d.ts +2 -0
- package/build/{sound-generation/routes → photo-sessions/enums}/index.js +2 -1
- 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/models/index.d.ts +4 -0
- package/build/photo-sessions/models/index.js +20 -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-job.schema.d.ts +78 -0
- package/build/photo-sessions/models/photo-session-job.schema.js +46 -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 +110 -0
- package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.js +10 -0
- package/build/{sound-generation/queries/find-sound-generation-jobs.query.d.ts → photo-sessions/queries/find-photo-sessions-jobs.query.d.ts} +63 -33
- package/build/{sound-generation/queries/find-sound-generation-jobs.query.js → photo-sessions/queries/find-photo-sessions-jobs.query.js} +10 -17
- 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/{sound-generation/models → photo-sessions/queries}/index.js +5 -5
- package/build/photo-sessions/routes/index.d.ts +2 -0
- package/build/{sound-generation/enums → photo-sessions/routes}/index.js +2 -1
- 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 +2 -2
- package/build/tools/enums/tool-content-type.enum.js +1 -1
- package/build/tools/enums/tool-type.enum.d.ts +2 -2
- package/build/tools/enums/tool-type.enum.js +1 -1
- package/build/tools/models/global-tools-config.schema.d.ts +69 -25
- package/build/tools/models/global-tools-config.schema.js +2 -2
- package/build/tools/models/tools-with-configs.schema.d.ts +22 -88
- package/build/tools/models/tools-with-configs.schema.js +0 -5
- package/build/tools/queries/get-global-tools-config.query.d.ts +134 -46
- package/build/tools/queries/get-tools-with-configs.query.d.ts +22 -88
- 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/{sound-generation/commands/get-sound-generation-price.command.d.ts → tts/commands/improve-tts-text.command.d.ts} +6 -8
- 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
- package/build/sound-generation/commands/delete-all-sound-generation-jobs.command.js +0 -14
- package/build/sound-generation/commands/delete-sound-generation-job-by-uuid.command.js +0 -14
- package/build/sound-generation/commands/get-sound-generation-price.command.js +0 -17
- package/build/sound-generation/commands/index.d.ts +0 -8
- package/build/sound-generation/commands/retry-sound-generation-job.command.d.ts +0 -84
- package/build/sound-generation/commands/retry-sound-generation-job.command.js +0 -17
- package/build/sound-generation/commands/set-reaction-to-sound-generation-job.command.d.ts +0 -85
- package/build/sound-generation/commands/sound-generation.command.d.ts +0 -94
- package/build/sound-generation/commands/sound-generation.command.js +0 -27
- package/build/sound-generation/commands/update-sound-generation-job-favorite.command.d.ts +0 -83
- package/build/sound-generation/commands/update-sound-generation-job-favorite.command.js +0 -16
- package/build/sound-generation/commands/update-sound-generation-job-title.command.d.ts +0 -83
- package/build/sound-generation/commands/update-sound-generation-job-title.command.js +0 -16
- package/build/sound-generation/enums/index.d.ts +0 -1
- package/build/sound-generation/enums/sound-generation-strategy.enum.d.ts +0 -3
- package/build/sound-generation/enums/sound-generation-strategy.enum.js +0 -7
- package/build/sound-generation/models/index.d.ts +0 -5
- package/build/sound-generation/models/sound-generation-config.schema.d.ts +0 -34
- package/build/sound-generation/models/sound-generation-config.schema.js +0 -8
- package/build/sound-generation/models/sound-generation-job.schema.d.ts +0 -38
- package/build/sound-generation/models/sound-generation-job.schema.js +0 -34
- package/build/sound-generation/models/sound-generation-model.schema.d.ts +0 -42
- package/build/sound-generation/models/sound-generation-model.schema.js +0 -28
- package/build/sound-generation/models/sound-generation-params.schema.d.ts +0 -8
- package/build/sound-generation/models/sound-generation-params.schema.js +0 -10
- package/build/sound-generation/models/sound-generation-result.schema.d.ts +0 -6
- package/build/sound-generation/models/sound-generation-result.schema.js +0 -8
- package/build/sound-generation/queries/find-sound-generation-job-by-id.query.d.ts +0 -82
- package/build/sound-generation/queries/find-sound-generation-job-by-id.query.js +0 -15
- package/build/sound-generation/queries/get-sound-generation-config.query.d.ts +0 -76
- package/build/sound-generation/queries/get-sound-generation-config.query.js +0 -10
- package/build/sound-generation/queries/index.d.ts +0 -3
- package/build/sound-generation/routes/index.d.ts +0 -1
- package/build/sound-generation/routes/sound-generation.amqp.routes.d.ts +0 -13
- package/build/sound-generation/routes/sound-generation.amqp.routes.js +0 -16
- /package/build/{sound-generation → photo-sessions}/index.d.ts +0 -0
- /package/build/{sound-generation → photo-sessions}/index.js +0 -0
|
@@ -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;
|
|
@@ -1163,50 +1174,6 @@ export declare namespace GetToolsWithConfigsQuery {
|
|
|
1163
1174
|
updatedAt: Date;
|
|
1164
1175
|
}[];
|
|
1165
1176
|
};
|
|
1166
|
-
} | {
|
|
1167
|
-
uuid: string;
|
|
1168
|
-
title: string;
|
|
1169
|
-
description: string;
|
|
1170
|
-
icon: string;
|
|
1171
|
-
alias: string;
|
|
1172
|
-
bgColor: string;
|
|
1173
|
-
iconColor: string;
|
|
1174
|
-
order: number;
|
|
1175
|
-
createdAt: Date;
|
|
1176
|
-
updatedAt: Date;
|
|
1177
|
-
contentType: import("..").TOOL_CONTENT_TYPE.SOUND_GENERATION;
|
|
1178
|
-
config: {
|
|
1179
|
-
models: {
|
|
1180
|
-
uuid: string;
|
|
1181
|
-
title: string;
|
|
1182
|
-
description: string;
|
|
1183
|
-
aiModel: string;
|
|
1184
|
-
pricePerSecond: number;
|
|
1185
|
-
order: number;
|
|
1186
|
-
status: import("../..").TOOL_MODEL_STATUS;
|
|
1187
|
-
icons: {
|
|
1188
|
-
light: {
|
|
1189
|
-
svg: string;
|
|
1190
|
-
png: string;
|
|
1191
|
-
};
|
|
1192
|
-
dark: {
|
|
1193
|
-
svg: string;
|
|
1194
|
-
png: string;
|
|
1195
|
-
};
|
|
1196
|
-
};
|
|
1197
|
-
strategy: import("../..").SOUND_GENERATION_STRATEGY.ELEVENLABS_SOUND_GENERATION;
|
|
1198
|
-
maxPromptLength: number;
|
|
1199
|
-
params: {
|
|
1200
|
-
minDurationSeconds: number;
|
|
1201
|
-
maxDurationSeconds: number;
|
|
1202
|
-
durationStepSeconds: number;
|
|
1203
|
-
maxVariations: number;
|
|
1204
|
-
supportsLoop: boolean;
|
|
1205
|
-
};
|
|
1206
|
-
createdAt: Date;
|
|
1207
|
-
updatedAt: Date;
|
|
1208
|
-
}[];
|
|
1209
|
-
};
|
|
1210
1177
|
})[], unknown, z.core.$ZodTypeInternals<({
|
|
1211
1178
|
uuid: string;
|
|
1212
1179
|
title: string;
|
|
@@ -1858,6 +1825,7 @@ export declare namespace GetToolsWithConfigsQuery {
|
|
|
1858
1825
|
};
|
|
1859
1826
|
strategy?: string | undefined;
|
|
1860
1827
|
maxInputLength: number;
|
|
1828
|
+
maxSpeakers: number;
|
|
1861
1829
|
voices: {
|
|
1862
1830
|
id: string;
|
|
1863
1831
|
externalId: string;
|
|
@@ -1958,6 +1926,16 @@ export declare namespace GetToolsWithConfigsQuery {
|
|
|
1958
1926
|
createdAt: Date;
|
|
1959
1927
|
updatedAt: Date;
|
|
1960
1928
|
}[];
|
|
1929
|
+
tags: {
|
|
1930
|
+
id: import("../..").VOICE_TAG;
|
|
1931
|
+
group: import("../..").VOICE_TAG_GROUP;
|
|
1932
|
+
label: string;
|
|
1933
|
+
}[];
|
|
1934
|
+
categories: {
|
|
1935
|
+
id: import("../..").VOICE_CATEGORY;
|
|
1936
|
+
label: string;
|
|
1937
|
+
}[];
|
|
1938
|
+
speakerMarkerLabel: string;
|
|
1961
1939
|
};
|
|
1962
1940
|
} | {
|
|
1963
1941
|
uuid: string;
|
|
@@ -2364,50 +2342,6 @@ export declare namespace GetToolsWithConfigsQuery {
|
|
|
2364
2342
|
updatedAt: Date;
|
|
2365
2343
|
}[];
|
|
2366
2344
|
};
|
|
2367
|
-
} | {
|
|
2368
|
-
uuid: string;
|
|
2369
|
-
title: string;
|
|
2370
|
-
description: string;
|
|
2371
|
-
icon: string;
|
|
2372
|
-
alias: string;
|
|
2373
|
-
bgColor: string;
|
|
2374
|
-
iconColor: string;
|
|
2375
|
-
order: number;
|
|
2376
|
-
createdAt: Date;
|
|
2377
|
-
updatedAt: Date;
|
|
2378
|
-
contentType: import("..").TOOL_CONTENT_TYPE.SOUND_GENERATION;
|
|
2379
|
-
config: {
|
|
2380
|
-
models: {
|
|
2381
|
-
uuid: string;
|
|
2382
|
-
title: string;
|
|
2383
|
-
description: string;
|
|
2384
|
-
aiModel: string;
|
|
2385
|
-
pricePerSecond: number;
|
|
2386
|
-
order: number;
|
|
2387
|
-
status: import("../..").TOOL_MODEL_STATUS;
|
|
2388
|
-
icons: {
|
|
2389
|
-
light: {
|
|
2390
|
-
svg: string;
|
|
2391
|
-
png: string;
|
|
2392
|
-
};
|
|
2393
|
-
dark: {
|
|
2394
|
-
svg: string;
|
|
2395
|
-
png: string;
|
|
2396
|
-
};
|
|
2397
|
-
};
|
|
2398
|
-
strategy: import("../..").SOUND_GENERATION_STRATEGY.ELEVENLABS_SOUND_GENERATION;
|
|
2399
|
-
maxPromptLength: number;
|
|
2400
|
-
params: {
|
|
2401
|
-
minDurationSeconds: number;
|
|
2402
|
-
maxDurationSeconds: number;
|
|
2403
|
-
durationStepSeconds: number;
|
|
2404
|
-
maxVariations: number;
|
|
2405
|
-
supportsLoop: boolean;
|
|
2406
|
-
};
|
|
2407
|
-
createdAt: Date;
|
|
2408
|
-
updatedAt: Date;
|
|
2409
|
-
}[];
|
|
2410
|
-
};
|
|
2411
2345
|
})[], unknown>>>;
|
|
2412
2346
|
code: z.ZodOptional<z.ZodString>;
|
|
2413
2347
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -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 = {}));
|
|
@@ -1,21 +1,19 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare namespace
|
|
2
|
+
export declare namespace ImproveTTSTextCommand {
|
|
3
3
|
const RequestSchema: z.ZodObject<{
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
variations: z.ZodDefault<z.ZodNumber>;
|
|
4
|
+
userInput: z.ZodString;
|
|
5
|
+
locale: z.ZodOptional<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>>;
|
|
7
6
|
}, z.core.$strip>;
|
|
8
7
|
type Request = z.infer<typeof RequestSchema>;
|
|
9
8
|
const ResponseDataSchema: z.ZodObject<{
|
|
10
|
-
|
|
9
|
+
text: z.ZodString;
|
|
11
10
|
}, z.core.$strip>;
|
|
12
|
-
type ResponseData = z.infer<typeof ResponseDataSchema>;
|
|
13
11
|
const ResponseSchema: z.ZodObject<{
|
|
14
12
|
isSuccess: z.ZodBoolean;
|
|
15
13
|
data: z.ZodOptional<z.ZodType<{
|
|
16
|
-
|
|
14
|
+
text: string;
|
|
17
15
|
}, unknown, z.core.$ZodTypeInternals<{
|
|
18
|
-
|
|
16
|
+
text: string;
|
|
19
17
|
}, unknown>>>;
|
|
20
18
|
code: z.ZodOptional<z.ZodString>;
|
|
21
19
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ImproveTTSTextCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const common_1 = require("../../common");
|
|
6
|
+
var ImproveTTSTextCommand;
|
|
7
|
+
(function (ImproveTTSTextCommand) {
|
|
8
|
+
ImproveTTSTextCommand.RequestSchema = zod_1.z.object({
|
|
9
|
+
userInput: zod_1.z.string(),
|
|
10
|
+
locale: common_1.LocaleSchema.optional(),
|
|
11
|
+
});
|
|
12
|
+
ImproveTTSTextCommand.ResponseDataSchema = zod_1.z.object({
|
|
13
|
+
text: zod_1.z.string(),
|
|
14
|
+
});
|
|
15
|
+
ImproveTTSTextCommand.ResponseSchema = (0, common_1.ICommandResponseSchema)(ImproveTTSTextCommand.ResponseDataSchema);
|
|
16
|
+
})(ImproveTTSTextCommand || (exports.ImproveTTSTextCommand = ImproveTTSTextCommand = {}));
|
|
@@ -6,3 +6,10 @@ export * from './tts.command';
|
|
|
6
6
|
export * from './get-tts-price.command';
|
|
7
7
|
export * from './update-tts-job-title.command';
|
|
8
8
|
export * from './update-tts-job-favorite.command';
|
|
9
|
+
export * from './create-voice-clone.command';
|
|
10
|
+
export * from './create-voice-design.command';
|
|
11
|
+
export * from './select-voice-design.command';
|
|
12
|
+
export * from './update-voice.command';
|
|
13
|
+
export * from './delete-voice.command';
|
|
14
|
+
export * from './improve-tts-text.command';
|
|
15
|
+
export * from './download-tts-job.command';
|
|
@@ -22,3 +22,10 @@ __exportStar(require("./tts.command"), exports);
|
|
|
22
22
|
__exportStar(require("./get-tts-price.command"), exports);
|
|
23
23
|
__exportStar(require("./update-tts-job-title.command"), exports);
|
|
24
24
|
__exportStar(require("./update-tts-job-favorite.command"), exports);
|
|
25
|
+
__exportStar(require("./create-voice-clone.command"), exports);
|
|
26
|
+
__exportStar(require("./create-voice-design.command"), exports);
|
|
27
|
+
__exportStar(require("./select-voice-design.command"), exports);
|
|
28
|
+
__exportStar(require("./update-voice.command"), exports);
|
|
29
|
+
__exportStar(require("./delete-voice.command"), exports);
|
|
30
|
+
__exportStar(require("./improve-tts-text.command"), exports);
|
|
31
|
+
__exportStar(require("./download-tts-job.command"), exports);
|
|
@@ -4,6 +4,7 @@ export declare namespace RetryTTSJobCommand {
|
|
|
4
4
|
uuid: z.ZodString;
|
|
5
5
|
userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6
6
|
unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
|
+
locale: z.ZodOptional<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>>;
|
|
7
8
|
tokenReservationId: z.ZodString;
|
|
8
9
|
precalculatedPrice: z.ZodNumber;
|
|
9
10
|
}, z.core.$strip>;
|
|
@@ -20,9 +21,22 @@ export declare namespace RetryTTSJobCommand {
|
|
|
20
21
|
status: import("../..").JOB_STATUS;
|
|
21
22
|
error: string | null;
|
|
22
23
|
modelId: string;
|
|
23
|
-
voiceId: string;
|
|
24
|
+
voiceId: string | null;
|
|
25
|
+
isDialog: boolean;
|
|
26
|
+
speakers: {
|
|
27
|
+
speaker: number;
|
|
28
|
+
voiceId: string;
|
|
29
|
+
}[];
|
|
30
|
+
voices: {
|
|
31
|
+
uuid: string;
|
|
32
|
+
title: string;
|
|
33
|
+
previewUrl: string;
|
|
34
|
+
isDeleted: boolean;
|
|
35
|
+
speaker: number | null;
|
|
36
|
+
}[];
|
|
24
37
|
price: number;
|
|
25
38
|
duration: number;
|
|
39
|
+
scope: import("../..").JOB_SCOPE;
|
|
26
40
|
userId: string | null;
|
|
27
41
|
unregisteredUserId: string | null;
|
|
28
42
|
tokenReservationId?: string | null | undefined;
|
|
@@ -51,9 +65,22 @@ export declare namespace RetryTTSJobCommand {
|
|
|
51
65
|
status: import("../..").JOB_STATUS;
|
|
52
66
|
error: string | null;
|
|
53
67
|
modelId: string;
|
|
54
|
-
voiceId: string;
|
|
68
|
+
voiceId: string | null;
|
|
69
|
+
isDialog: boolean;
|
|
70
|
+
speakers: {
|
|
71
|
+
speaker: number;
|
|
72
|
+
voiceId: string;
|
|
73
|
+
}[];
|
|
74
|
+
voices: {
|
|
75
|
+
uuid: string;
|
|
76
|
+
title: string;
|
|
77
|
+
previewUrl: string;
|
|
78
|
+
isDeleted: boolean;
|
|
79
|
+
speaker: number | null;
|
|
80
|
+
}[];
|
|
55
81
|
price: number;
|
|
56
82
|
duration: number;
|
|
83
|
+
scope: import("../..").JOB_SCOPE;
|
|
57
84
|
userId: string | null;
|
|
58
85
|
unregisteredUserId: string | null;
|
|
59
86
|
tokenReservationId?: string | null | undefined;
|
|
@@ -4,12 +4,14 @@ exports.RetryTTSJobCommand = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
6
6
|
const tts_job_schema_1 = require("../models/tts-job.schema");
|
|
7
|
+
const common_1 = require("../../common");
|
|
7
8
|
var RetryTTSJobCommand;
|
|
8
9
|
(function (RetryTTSJobCommand) {
|
|
9
10
|
RetryTTSJobCommand.RequestSchema = zod_1.z.object({
|
|
10
11
|
uuid: zod_1.z.string().uuid(),
|
|
11
12
|
userId: zod_1.z.string().uuid().nullable().optional(),
|
|
12
13
|
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
14
|
+
locale: common_1.LocaleSchema.optional(),
|
|
13
15
|
tokenReservationId: zod_1.z.string().uuid(),
|
|
14
16
|
precalculatedPrice: zod_1.z.number(),
|
|
15
17
|
});
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { JOB_SCOPE } from '../../common';
|
|
3
|
+
export declare namespace SelectVoiceDesignCommand {
|
|
4
|
+
const RequestSchema: z.ZodObject<{
|
|
5
|
+
designId: z.ZodString;
|
|
6
|
+
sampleId: z.ZodString;
|
|
7
|
+
userId: z.ZodString;
|
|
8
|
+
locale: z.ZodOptional<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>>;
|
|
9
|
+
scope: z.ZodDefault<z.ZodOptional<z.ZodEnum<typeof JOB_SCOPE>>>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
12
|
+
const ResponseSchema: z.ZodObject<{
|
|
13
|
+
isSuccess: z.ZodBoolean;
|
|
14
|
+
data: z.ZodOptional<z.ZodType<{
|
|
15
|
+
uuid: string;
|
|
16
|
+
scope: JOB_SCOPE;
|
|
17
|
+
source: {
|
|
18
|
+
id: import("..").VOICE_SOURCE;
|
|
19
|
+
label: string;
|
|
20
|
+
};
|
|
21
|
+
title: string;
|
|
22
|
+
description: string;
|
|
23
|
+
gender: {
|
|
24
|
+
id: import("..").VOICE_GENDER;
|
|
25
|
+
label: string;
|
|
26
|
+
} | null;
|
|
27
|
+
trait: string | null;
|
|
28
|
+
ageRange: string | null;
|
|
29
|
+
categories: {
|
|
30
|
+
id: import("..").VOICE_CATEGORY;
|
|
31
|
+
label: string;
|
|
32
|
+
}[];
|
|
33
|
+
previewUrl: string;
|
|
34
|
+
imageUrl: string | null;
|
|
35
|
+
status: import("..").VOICE_STATUS;
|
|
36
|
+
error: string | null;
|
|
37
|
+
order: number;
|
|
38
|
+
isDeleted: boolean;
|
|
39
|
+
userId: string | null;
|
|
40
|
+
unregisteredUserId: string | null;
|
|
41
|
+
createdAt: Date;
|
|
42
|
+
updatedAt: Date;
|
|
43
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
44
|
+
uuid: string;
|
|
45
|
+
scope: JOB_SCOPE;
|
|
46
|
+
source: {
|
|
47
|
+
id: import("..").VOICE_SOURCE;
|
|
48
|
+
label: string;
|
|
49
|
+
};
|
|
50
|
+
title: string;
|
|
51
|
+
description: string;
|
|
52
|
+
gender: {
|
|
53
|
+
id: import("..").VOICE_GENDER;
|
|
54
|
+
label: string;
|
|
55
|
+
} | null;
|
|
56
|
+
trait: string | null;
|
|
57
|
+
ageRange: string | null;
|
|
58
|
+
categories: {
|
|
59
|
+
id: import("..").VOICE_CATEGORY;
|
|
60
|
+
label: string;
|
|
61
|
+
}[];
|
|
62
|
+
previewUrl: string;
|
|
63
|
+
imageUrl: string | null;
|
|
64
|
+
status: import("..").VOICE_STATUS;
|
|
65
|
+
error: string | null;
|
|
66
|
+
order: number;
|
|
67
|
+
isDeleted: boolean;
|
|
68
|
+
userId: string | null;
|
|
69
|
+
unregisteredUserId: string | null;
|
|
70
|
+
createdAt: Date;
|
|
71
|
+
updatedAt: Date;
|
|
72
|
+
}, unknown>>>;
|
|
73
|
+
code: z.ZodOptional<z.ZodString>;
|
|
74
|
+
message: z.ZodOptional<z.ZodString>;
|
|
75
|
+
}, z.core.$strip>;
|
|
76
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
77
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SelectVoiceDesignCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const common_1 = require("../../common");
|
|
6
|
+
const models_1 = require("../models");
|
|
7
|
+
var SelectVoiceDesignCommand;
|
|
8
|
+
(function (SelectVoiceDesignCommand) {
|
|
9
|
+
SelectVoiceDesignCommand.RequestSchema = zod_1.z.object({
|
|
10
|
+
designId: zod_1.z.string().uuid(),
|
|
11
|
+
sampleId: zod_1.z.string().uuid(),
|
|
12
|
+
userId: zod_1.z.string().uuid(),
|
|
13
|
+
locale: common_1.LocaleSchema.optional(),
|
|
14
|
+
scope: zod_1.z.nativeEnum(common_1.JOB_SCOPE).optional().default(common_1.JOB_SCOPE.TOOL),
|
|
15
|
+
});
|
|
16
|
+
SelectVoiceDesignCommand.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.VoiceSchema);
|
|
17
|
+
})(SelectVoiceDesignCommand || (exports.SelectVoiceDesignCommand = SelectVoiceDesignCommand = {}));
|