@purpleschool/gptbot-tools 0.2.73 → 0.2.75
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/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 +47 -2
- package/build/tts/commands/retry-tts-job.command.js +16 -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/tts/enums/index.js
CHANGED
|
@@ -16,3 +16,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./tts-model-type.enum"), exports);
|
|
18
18
|
__exportStar(require("./tts-strategy.enum"), exports);
|
|
19
|
+
__exportStar(require("./voice-source.enum"), exports);
|
|
20
|
+
__exportStar(require("./voice-status.enum"), exports);
|
|
21
|
+
__exportStar(require("./voice-gender.enum"), exports);
|
|
22
|
+
__exportStar(require("./voice-category.enum"), exports);
|
|
23
|
+
__exportStar(require("./voice-tag.enum"), exports);
|
|
24
|
+
__exportStar(require("./voice-tag-group.enum"), exports);
|
|
25
|
+
__exportStar(require("./tts-download-format.enum"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TTS_DOWNLOAD_FORMAT = void 0;
|
|
4
|
+
var TTS_DOWNLOAD_FORMAT;
|
|
5
|
+
(function (TTS_DOWNLOAD_FORMAT) {
|
|
6
|
+
TTS_DOWNLOAD_FORMAT["MP3"] = "mp3";
|
|
7
|
+
TTS_DOWNLOAD_FORMAT["WAV"] = "wav";
|
|
8
|
+
TTS_DOWNLOAD_FORMAT["OPUS"] = "opus";
|
|
9
|
+
})(TTS_DOWNLOAD_FORMAT || (exports.TTS_DOWNLOAD_FORMAT = TTS_DOWNLOAD_FORMAT = {}));
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare enum VOICE_CATEGORY {
|
|
2
|
+
GAMES = "GAMES",
|
|
3
|
+
AUDIOBOOKS = "AUDIOBOOKS",
|
|
4
|
+
YOUTUBE = "YOUTUBE",
|
|
5
|
+
PODCASTS = "PODCASTS",
|
|
6
|
+
NEWS = "NEWS",
|
|
7
|
+
EDUCATION = "EDUCATION",
|
|
8
|
+
ADVERTISING = "ADVERTISING",
|
|
9
|
+
IVR = "IVR",
|
|
10
|
+
FAIRY_TALES = "FAIRY_TALES",
|
|
11
|
+
HORROR = "HORROR",
|
|
12
|
+
WHISPER = "WHISPER",
|
|
13
|
+
ROMANCE = "ROMANCE",
|
|
14
|
+
BUSINESS = "BUSINESS",
|
|
15
|
+
WELLNESS = "WELLNESS",
|
|
16
|
+
SPORTS = "SPORTS",
|
|
17
|
+
AMBIENCE = "AMBIENCE",
|
|
18
|
+
TRAVEL = "TRAVEL"
|
|
19
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VOICE_CATEGORY = void 0;
|
|
4
|
+
var VOICE_CATEGORY;
|
|
5
|
+
(function (VOICE_CATEGORY) {
|
|
6
|
+
VOICE_CATEGORY["GAMES"] = "GAMES";
|
|
7
|
+
VOICE_CATEGORY["AUDIOBOOKS"] = "AUDIOBOOKS";
|
|
8
|
+
VOICE_CATEGORY["YOUTUBE"] = "YOUTUBE";
|
|
9
|
+
VOICE_CATEGORY["PODCASTS"] = "PODCASTS";
|
|
10
|
+
VOICE_CATEGORY["NEWS"] = "NEWS";
|
|
11
|
+
VOICE_CATEGORY["EDUCATION"] = "EDUCATION";
|
|
12
|
+
VOICE_CATEGORY["ADVERTISING"] = "ADVERTISING";
|
|
13
|
+
VOICE_CATEGORY["IVR"] = "IVR";
|
|
14
|
+
VOICE_CATEGORY["FAIRY_TALES"] = "FAIRY_TALES";
|
|
15
|
+
VOICE_CATEGORY["HORROR"] = "HORROR";
|
|
16
|
+
VOICE_CATEGORY["WHISPER"] = "WHISPER";
|
|
17
|
+
VOICE_CATEGORY["ROMANCE"] = "ROMANCE";
|
|
18
|
+
VOICE_CATEGORY["BUSINESS"] = "BUSINESS";
|
|
19
|
+
VOICE_CATEGORY["WELLNESS"] = "WELLNESS";
|
|
20
|
+
VOICE_CATEGORY["SPORTS"] = "SPORTS";
|
|
21
|
+
VOICE_CATEGORY["AMBIENCE"] = "AMBIENCE";
|
|
22
|
+
VOICE_CATEGORY["TRAVEL"] = "TRAVEL";
|
|
23
|
+
})(VOICE_CATEGORY || (exports.VOICE_CATEGORY = VOICE_CATEGORY = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VOICE_GENDER = void 0;
|
|
4
|
+
var VOICE_GENDER;
|
|
5
|
+
(function (VOICE_GENDER) {
|
|
6
|
+
VOICE_GENDER["M"] = "M";
|
|
7
|
+
VOICE_GENDER["F"] = "F";
|
|
8
|
+
})(VOICE_GENDER || (exports.VOICE_GENDER = VOICE_GENDER = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VOICE_SOURCE = void 0;
|
|
4
|
+
var VOICE_SOURCE;
|
|
5
|
+
(function (VOICE_SOURCE) {
|
|
6
|
+
VOICE_SOURCE["LIBRARY"] = "LIBRARY";
|
|
7
|
+
VOICE_SOURCE["CLONE"] = "CLONE";
|
|
8
|
+
VOICE_SOURCE["DESIGN"] = "DESIGN";
|
|
9
|
+
})(VOICE_SOURCE || (exports.VOICE_SOURCE = VOICE_SOURCE = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VOICE_STATUS = void 0;
|
|
4
|
+
var VOICE_STATUS;
|
|
5
|
+
(function (VOICE_STATUS) {
|
|
6
|
+
VOICE_STATUS["PENDING"] = "PENDING";
|
|
7
|
+
VOICE_STATUS["READY"] = "READY";
|
|
8
|
+
VOICE_STATUS["FAILED"] = "FAILED";
|
|
9
|
+
})(VOICE_STATUS || (exports.VOICE_STATUS = VOICE_STATUS = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VOICE_TAG_GROUP = void 0;
|
|
4
|
+
var VOICE_TAG_GROUP;
|
|
5
|
+
(function (VOICE_TAG_GROUP) {
|
|
6
|
+
VOICE_TAG_GROUP["EMOTION"] = "EMOTION";
|
|
7
|
+
VOICE_TAG_GROUP["DELIVERY"] = "DELIVERY";
|
|
8
|
+
VOICE_TAG_GROUP["SOUND"] = "SOUND";
|
|
9
|
+
})(VOICE_TAG_GROUP || (exports.VOICE_TAG_GROUP = VOICE_TAG_GROUP = {}));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare enum VOICE_TAG {
|
|
2
|
+
JOYFUL = "JOYFUL",
|
|
3
|
+
SAD = "SAD",
|
|
4
|
+
ANGRY = "ANGRY",
|
|
5
|
+
SURPRISED = "SURPRISED",
|
|
6
|
+
TENDER = "TENDER",
|
|
7
|
+
IRONIC = "IRONIC",
|
|
8
|
+
CONVERSATIONAL = "CONVERSATIONAL",
|
|
9
|
+
PROFESSIONAL = "PROFESSIONAL",
|
|
10
|
+
WHISPER = "WHISPER",
|
|
11
|
+
LOUDER = "LOUDER",
|
|
12
|
+
QUIETER = "QUIETER",
|
|
13
|
+
FASTER = "FASTER",
|
|
14
|
+
PAUSE = "PAUSE",
|
|
15
|
+
SHORT_PAUSE = "SHORT_PAUSE",
|
|
16
|
+
LAUGH = "LAUGH",
|
|
17
|
+
SIGH = "SIGH",
|
|
18
|
+
COUGH = "COUGH",
|
|
19
|
+
BREATH = "BREATH"
|
|
20
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VOICE_TAG = void 0;
|
|
4
|
+
var VOICE_TAG;
|
|
5
|
+
(function (VOICE_TAG) {
|
|
6
|
+
VOICE_TAG["JOYFUL"] = "JOYFUL";
|
|
7
|
+
VOICE_TAG["SAD"] = "SAD";
|
|
8
|
+
VOICE_TAG["ANGRY"] = "ANGRY";
|
|
9
|
+
VOICE_TAG["SURPRISED"] = "SURPRISED";
|
|
10
|
+
VOICE_TAG["TENDER"] = "TENDER";
|
|
11
|
+
VOICE_TAG["IRONIC"] = "IRONIC";
|
|
12
|
+
VOICE_TAG["CONVERSATIONAL"] = "CONVERSATIONAL";
|
|
13
|
+
VOICE_TAG["PROFESSIONAL"] = "PROFESSIONAL";
|
|
14
|
+
VOICE_TAG["WHISPER"] = "WHISPER";
|
|
15
|
+
VOICE_TAG["LOUDER"] = "LOUDER";
|
|
16
|
+
VOICE_TAG["QUIETER"] = "QUIETER";
|
|
17
|
+
VOICE_TAG["FASTER"] = "FASTER";
|
|
18
|
+
VOICE_TAG["PAUSE"] = "PAUSE";
|
|
19
|
+
VOICE_TAG["SHORT_PAUSE"] = "SHORT_PAUSE";
|
|
20
|
+
VOICE_TAG["LAUGH"] = "LAUGH";
|
|
21
|
+
VOICE_TAG["SIGH"] = "SIGH";
|
|
22
|
+
VOICE_TAG["COUGH"] = "COUGH";
|
|
23
|
+
VOICE_TAG["BREATH"] = "BREATH";
|
|
24
|
+
})(VOICE_TAG || (exports.VOICE_TAG = VOICE_TAG = {}));
|
|
@@ -3,3 +3,10 @@ export * from './tts-config-with-vendors.schema';
|
|
|
3
3
|
export * from './tts-job.schema';
|
|
4
4
|
export * from './tts-model.schema';
|
|
5
5
|
export * from './tts-model-with-vendor.schema';
|
|
6
|
+
export * from './voice.schema';
|
|
7
|
+
export * from './voice-source.schema';
|
|
8
|
+
export * from './voice-gender.schema';
|
|
9
|
+
export * from './voice-tag.schema';
|
|
10
|
+
export * from './voice-category.schema';
|
|
11
|
+
export * from './voice-design-sample.schema';
|
|
12
|
+
export * from './voice-design-draft.schema';
|
|
@@ -19,3 +19,10 @@ __exportStar(require("./tts-config-with-vendors.schema"), exports);
|
|
|
19
19
|
__exportStar(require("./tts-job.schema"), exports);
|
|
20
20
|
__exportStar(require("./tts-model.schema"), exports);
|
|
21
21
|
__exportStar(require("./tts-model-with-vendor.schema"), exports);
|
|
22
|
+
__exportStar(require("./voice.schema"), exports);
|
|
23
|
+
__exportStar(require("./voice-source.schema"), exports);
|
|
24
|
+
__exportStar(require("./voice-gender.schema"), exports);
|
|
25
|
+
__exportStar(require("./voice-tag.schema"), exports);
|
|
26
|
+
__exportStar(require("./voice-category.schema"), exports);
|
|
27
|
+
__exportStar(require("./voice-design-sample.schema"), exports);
|
|
28
|
+
__exportStar(require("./voice-design-draft.schema"), exports);
|
|
@@ -38,6 +38,7 @@ export declare const TTSConfigWithVendorsSchema: z.ZodObject<{
|
|
|
38
38
|
}, z.core.$strip>;
|
|
39
39
|
strategy: z.ZodOptional<z.ZodString>;
|
|
40
40
|
maxInputLength: z.ZodNumber;
|
|
41
|
+
maxSpeakers: z.ZodNumber;
|
|
41
42
|
voices: z.ZodArray<z.ZodObject<{
|
|
42
43
|
id: z.ZodString;
|
|
43
44
|
externalId: z.ZodString;
|
|
@@ -21,6 +21,7 @@ export declare const TTSConfigSchema: z.ZodObject<{
|
|
|
21
21
|
}, z.core.$strip>;
|
|
22
22
|
strategy: z.ZodOptional<z.ZodString>;
|
|
23
23
|
maxInputLength: z.ZodNumber;
|
|
24
|
+
maxSpeakers: z.ZodNumber;
|
|
24
25
|
voices: z.ZodArray<z.ZodObject<{
|
|
25
26
|
id: z.ZodString;
|
|
26
27
|
externalId: z.ZodString;
|
|
@@ -121,5 +122,15 @@ export declare const TTSConfigSchema: z.ZodObject<{
|
|
|
121
122
|
createdAt: z.ZodDate;
|
|
122
123
|
updatedAt: z.ZodDate;
|
|
123
124
|
}, z.core.$strip>>;
|
|
125
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
126
|
+
id: z.ZodEnum<typeof import("..").VOICE_TAG>;
|
|
127
|
+
group: z.ZodEnum<typeof import("..").VOICE_TAG_GROUP>;
|
|
128
|
+
label: z.ZodString;
|
|
129
|
+
}, z.core.$strip>>;
|
|
130
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
131
|
+
id: z.ZodEnum<typeof import("..").VOICE_CATEGORY>;
|
|
132
|
+
label: z.ZodString;
|
|
133
|
+
}, z.core.$strip>>;
|
|
134
|
+
speakerMarkerLabel: z.ZodString;
|
|
124
135
|
}, z.core.$strip>;
|
|
125
136
|
export type TTSConfig = z.infer<typeof TTSConfigSchema>;
|
|
@@ -3,6 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.TTSConfigSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const tts_model_schema_1 = require("./tts-model.schema");
|
|
6
|
+
const voice_tag_schema_1 = require("./voice-tag.schema");
|
|
7
|
+
const voice_category_schema_1 = require("./voice-category.schema");
|
|
6
8
|
exports.TTSConfigSchema = zod_1.z.object({
|
|
7
9
|
models: zod_1.z.array(tts_model_schema_1.TTSModelSchema),
|
|
10
|
+
tags: zod_1.z.array(voice_tag_schema_1.VoiceTagSchema),
|
|
11
|
+
categories: zod_1.z.array(voice_category_schema_1.VoiceCategorySchema),
|
|
12
|
+
speakerMarkerLabel: zod_1.z.string(),
|
|
8
13
|
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { JOB_STATUS } from '../../tools';
|
|
3
|
-
import { USER_REACTION } from '../../common';
|
|
3
|
+
import { JOB_SCOPE, USER_REACTION } from '../../common';
|
|
4
|
+
import { TTS_DOWNLOAD_FORMAT } from '../enums/tts-download-format.enum';
|
|
4
5
|
export declare const TTSJobParamsSchema: z.ZodObject<{
|
|
5
6
|
speed: z.ZodOptional<z.ZodNumber>;
|
|
6
7
|
similarity: z.ZodOptional<z.ZodNumber>;
|
|
@@ -13,6 +14,24 @@ export declare const TTSReferenceSchema: z.ZodObject<{
|
|
|
13
14
|
text: z.ZodString;
|
|
14
15
|
}, z.core.$strip>;
|
|
15
16
|
export type TTSReference = z.infer<typeof TTSReferenceSchema>;
|
|
17
|
+
export declare const TTSJobSpeakerSchema: z.ZodObject<{
|
|
18
|
+
speaker: z.ZodNumber;
|
|
19
|
+
voiceId: z.ZodString;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
export type TTSJobSpeaker = z.infer<typeof TTSJobSpeakerSchema>;
|
|
22
|
+
export declare const TTSJobVoiceSchema: z.ZodObject<{
|
|
23
|
+
uuid: z.ZodString;
|
|
24
|
+
title: z.ZodString;
|
|
25
|
+
previewUrl: z.ZodString;
|
|
26
|
+
isDeleted: z.ZodBoolean;
|
|
27
|
+
speaker: z.ZodNullable<z.ZodNumber>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
export type TTSJobVoice = z.infer<typeof TTSJobVoiceSchema>;
|
|
30
|
+
export declare const TTSJobDownloadSchema: z.ZodObject<{
|
|
31
|
+
format: z.ZodEnum<typeof TTS_DOWNLOAD_FORMAT>;
|
|
32
|
+
url: z.ZodString;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
export type TTSJobDownload = z.infer<typeof TTSJobDownloadSchema>;
|
|
16
35
|
export declare const TTSJobSchema: z.ZodObject<{
|
|
17
36
|
uuid: z.ZodString;
|
|
18
37
|
userInput: z.ZodString;
|
|
@@ -23,9 +42,22 @@ export declare const TTSJobSchema: z.ZodObject<{
|
|
|
23
42
|
status: z.ZodEnum<typeof JOB_STATUS>;
|
|
24
43
|
error: z.ZodNullable<z.ZodString>;
|
|
25
44
|
modelId: z.ZodString;
|
|
26
|
-
voiceId: z.ZodString
|
|
45
|
+
voiceId: z.ZodNullable<z.ZodString>;
|
|
46
|
+
isDialog: z.ZodBoolean;
|
|
47
|
+
speakers: z.ZodArray<z.ZodObject<{
|
|
48
|
+
speaker: z.ZodNumber;
|
|
49
|
+
voiceId: z.ZodString;
|
|
50
|
+
}, z.core.$strip>>;
|
|
51
|
+
voices: z.ZodArray<z.ZodObject<{
|
|
52
|
+
uuid: z.ZodString;
|
|
53
|
+
title: z.ZodString;
|
|
54
|
+
previewUrl: z.ZodString;
|
|
55
|
+
isDeleted: z.ZodBoolean;
|
|
56
|
+
speaker: z.ZodNullable<z.ZodNumber>;
|
|
57
|
+
}, z.core.$strip>>;
|
|
27
58
|
price: z.ZodNumber;
|
|
28
59
|
duration: z.ZodNumber;
|
|
60
|
+
scope: z.ZodEnum<typeof JOB_SCOPE>;
|
|
29
61
|
userId: z.ZodNullable<z.ZodString>;
|
|
30
62
|
unregisteredUserId: z.ZodNullable<z.ZodString>;
|
|
31
63
|
tokenReservationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TTSJobSchema = exports.TTSReferenceSchema = exports.TTSJobParamsSchema = void 0;
|
|
3
|
+
exports.TTSJobSchema = exports.TTSJobDownloadSchema = exports.TTSJobVoiceSchema = exports.TTSJobSpeakerSchema = exports.TTSReferenceSchema = exports.TTSJobParamsSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const tools_1 = require("../../tools");
|
|
6
6
|
const common_1 = require("../../common");
|
|
7
|
+
const tts_download_format_enum_1 = require("../enums/tts-download-format.enum");
|
|
7
8
|
exports.TTSJobParamsSchema = zod_1.z.object({
|
|
8
9
|
speed: zod_1.z.number().optional(),
|
|
9
10
|
similarity: zod_1.z.number().optional(),
|
|
@@ -14,6 +15,21 @@ exports.TTSReferenceSchema = zod_1.z.object({
|
|
|
14
15
|
audioUrl: zod_1.z.string().url(),
|
|
15
16
|
text: zod_1.z.string(),
|
|
16
17
|
});
|
|
18
|
+
exports.TTSJobSpeakerSchema = zod_1.z.object({
|
|
19
|
+
speaker: zod_1.z.number().int().positive(),
|
|
20
|
+
voiceId: zod_1.z.string().uuid(),
|
|
21
|
+
});
|
|
22
|
+
exports.TTSJobVoiceSchema = zod_1.z.object({
|
|
23
|
+
uuid: zod_1.z.string().uuid(),
|
|
24
|
+
title: zod_1.z.string(),
|
|
25
|
+
previewUrl: zod_1.z.string(),
|
|
26
|
+
isDeleted: zod_1.z.boolean(),
|
|
27
|
+
speaker: zod_1.z.number().int().positive().nullable(),
|
|
28
|
+
});
|
|
29
|
+
exports.TTSJobDownloadSchema = zod_1.z.object({
|
|
30
|
+
format: zod_1.z.nativeEnum(tts_download_format_enum_1.TTS_DOWNLOAD_FORMAT),
|
|
31
|
+
url: zod_1.z.string(),
|
|
32
|
+
});
|
|
17
33
|
exports.TTSJobSchema = zod_1.z.object({
|
|
18
34
|
uuid: zod_1.z.string(),
|
|
19
35
|
userInput: zod_1.z.string(),
|
|
@@ -24,9 +40,13 @@ exports.TTSJobSchema = zod_1.z.object({
|
|
|
24
40
|
status: zod_1.z.nativeEnum(tools_1.JOB_STATUS),
|
|
25
41
|
error: zod_1.z.string().nullable(),
|
|
26
42
|
modelId: zod_1.z.string(),
|
|
27
|
-
voiceId: zod_1.z.string(),
|
|
43
|
+
voiceId: zod_1.z.string().nullable(),
|
|
44
|
+
isDialog: zod_1.z.boolean(),
|
|
45
|
+
speakers: zod_1.z.array(exports.TTSJobSpeakerSchema),
|
|
46
|
+
voices: zod_1.z.array(exports.TTSJobVoiceSchema),
|
|
28
47
|
price: zod_1.z.number(),
|
|
29
48
|
duration: zod_1.z.number(),
|
|
49
|
+
scope: zod_1.z.nativeEnum(common_1.JOB_SCOPE),
|
|
30
50
|
userId: zod_1.z.string().nullable(),
|
|
31
51
|
unregisteredUserId: zod_1.z.string().nullable(),
|
|
32
52
|
tokenReservationId: zod_1.z.string().nullable().optional(),
|
|
@@ -20,6 +20,7 @@ export declare const TTSModelWithVendorSchema: z.ZodObject<{
|
|
|
20
20
|
}, z.core.$strip>;
|
|
21
21
|
strategy: z.ZodOptional<z.ZodString>;
|
|
22
22
|
maxInputLength: z.ZodNumber;
|
|
23
|
+
maxSpeakers: z.ZodNumber;
|
|
23
24
|
voices: z.ZodArray<z.ZodObject<{
|
|
24
25
|
id: z.ZodString;
|
|
25
26
|
externalId: z.ZodString;
|
|
@@ -141,6 +141,7 @@ export declare const TTSModelSchema: z.ZodObject<{
|
|
|
141
141
|
}, z.core.$strip>;
|
|
142
142
|
strategy: z.ZodOptional<z.ZodString>;
|
|
143
143
|
maxInputLength: z.ZodNumber;
|
|
144
|
+
maxSpeakers: z.ZodNumber;
|
|
144
145
|
voices: z.ZodArray<z.ZodObject<{
|
|
145
146
|
id: z.ZodString;
|
|
146
147
|
externalId: z.ZodString;
|
|
@@ -49,6 +49,7 @@ exports.TTSModelSchema = zod_1.z.object({
|
|
|
49
49
|
icons: common_1.IconVariantsSchema,
|
|
50
50
|
strategy: zod_1.z.string().optional(),
|
|
51
51
|
maxInputLength: zod_1.z.number(),
|
|
52
|
+
maxSpeakers: zod_1.z.number(),
|
|
52
53
|
voices: zod_1.z.array(exports.TTSVoiceSchema),
|
|
53
54
|
params: exports.TTSModelParams,
|
|
54
55
|
createdAt: zod_1.z.date(),
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { VOICE_CATEGORY } from '../enums/voice-category.enum';
|
|
3
|
+
export declare const VoiceCategorySchema: z.ZodObject<{
|
|
4
|
+
id: z.ZodEnum<typeof VOICE_CATEGORY>;
|
|
5
|
+
label: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export type VoiceCategory = z.infer<typeof VoiceCategorySchema>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VoiceCategorySchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const voice_category_enum_1 = require("../enums/voice-category.enum");
|
|
6
|
+
exports.VoiceCategorySchema = zod_1.z.object({
|
|
7
|
+
id: zod_1.z.nativeEnum(voice_category_enum_1.VOICE_CATEGORY),
|
|
8
|
+
label: zod_1.z.string(),
|
|
9
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { VOICE_GENDER } from '../enums/voice-gender.enum';
|
|
3
|
+
export declare const VoiceDesignDraftSchema: z.ZodObject<{
|
|
4
|
+
designId: z.ZodString;
|
|
5
|
+
title: z.ZodString;
|
|
6
|
+
gender: z.ZodEnum<typeof VOICE_GENDER>;
|
|
7
|
+
imageUrl: z.ZodNullable<z.ZodString>;
|
|
8
|
+
samples: z.ZodArray<z.ZodObject<{
|
|
9
|
+
sampleId: z.ZodString;
|
|
10
|
+
previewUrl: z.ZodString;
|
|
11
|
+
}, z.core.$strip>>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export type VoiceDesignDraft = z.infer<typeof VoiceDesignDraftSchema>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VoiceDesignDraftSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const voice_gender_enum_1 = require("../enums/voice-gender.enum");
|
|
6
|
+
const voice_design_sample_schema_1 = require("./voice-design-sample.schema");
|
|
7
|
+
exports.VoiceDesignDraftSchema = zod_1.z.object({
|
|
8
|
+
designId: zod_1.z.string().uuid(),
|
|
9
|
+
title: zod_1.z.string(),
|
|
10
|
+
gender: zod_1.z.nativeEnum(voice_gender_enum_1.VOICE_GENDER),
|
|
11
|
+
imageUrl: zod_1.z.string().nullable(),
|
|
12
|
+
samples: zod_1.z.array(voice_design_sample_schema_1.VoiceDesignSampleSchema),
|
|
13
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VoiceDesignSampleSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.VoiceDesignSampleSchema = zod_1.z.object({
|
|
6
|
+
sampleId: zod_1.z.string().uuid(),
|
|
7
|
+
previewUrl: zod_1.z.string(),
|
|
8
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { VOICE_GENDER } from '../enums/voice-gender.enum';
|
|
3
|
+
export declare const VoiceGenderSchema: z.ZodObject<{
|
|
4
|
+
id: z.ZodEnum<typeof VOICE_GENDER>;
|
|
5
|
+
label: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export type VoiceGender = z.infer<typeof VoiceGenderSchema>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VoiceGenderSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const voice_gender_enum_1 = require("../enums/voice-gender.enum");
|
|
6
|
+
exports.VoiceGenderSchema = zod_1.z.object({
|
|
7
|
+
id: zod_1.z.nativeEnum(voice_gender_enum_1.VOICE_GENDER),
|
|
8
|
+
label: zod_1.z.string(),
|
|
9
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { VOICE_SOURCE } from '../enums/voice-source.enum';
|
|
3
|
+
export declare const VoiceSourceSchema: z.ZodObject<{
|
|
4
|
+
id: z.ZodEnum<typeof VOICE_SOURCE>;
|
|
5
|
+
label: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export type VoiceSource = z.infer<typeof VoiceSourceSchema>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VoiceSourceSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const voice_source_enum_1 = require("../enums/voice-source.enum");
|
|
6
|
+
exports.VoiceSourceSchema = zod_1.z.object({
|
|
7
|
+
id: zod_1.z.nativeEnum(voice_source_enum_1.VOICE_SOURCE),
|
|
8
|
+
label: zod_1.z.string(),
|
|
9
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { VOICE_TAG } from '../enums/voice-tag.enum';
|
|
3
|
+
import { VOICE_TAG_GROUP } from '../enums/voice-tag-group.enum';
|
|
4
|
+
export declare const VoiceTagSchema: z.ZodObject<{
|
|
5
|
+
id: z.ZodEnum<typeof VOICE_TAG>;
|
|
6
|
+
group: z.ZodEnum<typeof VOICE_TAG_GROUP>;
|
|
7
|
+
label: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
export type VoiceTag = z.infer<typeof VoiceTagSchema>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VoiceTagSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const voice_tag_enum_1 = require("../enums/voice-tag.enum");
|
|
6
|
+
const voice_tag_group_enum_1 = require("../enums/voice-tag-group.enum");
|
|
7
|
+
exports.VoiceTagSchema = zod_1.z.object({
|
|
8
|
+
id: zod_1.z.nativeEnum(voice_tag_enum_1.VOICE_TAG),
|
|
9
|
+
group: zod_1.z.nativeEnum(voice_tag_group_enum_1.VOICE_TAG_GROUP),
|
|
10
|
+
label: zod_1.z.string(),
|
|
11
|
+
});
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { JOB_SCOPE } from '../../common';
|
|
3
|
+
import { VOICE_STATUS } from '../enums/voice-status.enum';
|
|
4
|
+
export declare const VoiceSchema: z.ZodObject<{
|
|
5
|
+
uuid: z.ZodString;
|
|
6
|
+
scope: z.ZodEnum<typeof JOB_SCOPE>;
|
|
7
|
+
source: z.ZodObject<{
|
|
8
|
+
id: z.ZodEnum<typeof import("..").VOICE_SOURCE>;
|
|
9
|
+
label: z.ZodString;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
title: z.ZodString;
|
|
12
|
+
description: z.ZodString;
|
|
13
|
+
gender: z.ZodNullable<z.ZodObject<{
|
|
14
|
+
id: z.ZodEnum<typeof import("..").VOICE_GENDER>;
|
|
15
|
+
label: z.ZodString;
|
|
16
|
+
}, z.core.$strip>>;
|
|
17
|
+
trait: z.ZodNullable<z.ZodString>;
|
|
18
|
+
ageRange: z.ZodNullable<z.ZodString>;
|
|
19
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
20
|
+
id: z.ZodEnum<typeof import("..").VOICE_CATEGORY>;
|
|
21
|
+
label: z.ZodString;
|
|
22
|
+
}, z.core.$strip>>;
|
|
23
|
+
previewUrl: z.ZodString;
|
|
24
|
+
imageUrl: z.ZodNullable<z.ZodString>;
|
|
25
|
+
status: z.ZodEnum<typeof VOICE_STATUS>;
|
|
26
|
+
error: z.ZodNullable<z.ZodString>;
|
|
27
|
+
order: z.ZodNumber;
|
|
28
|
+
isDeleted: z.ZodBoolean;
|
|
29
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
30
|
+
unregisteredUserId: z.ZodNullable<z.ZodString>;
|
|
31
|
+
createdAt: z.ZodDate;
|
|
32
|
+
updatedAt: z.ZodDate;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
export type Voice = z.infer<typeof VoiceSchema>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VoiceSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const common_1 = require("../../common");
|
|
6
|
+
const voice_status_enum_1 = require("../enums/voice-status.enum");
|
|
7
|
+
const voice_source_schema_1 = require("./voice-source.schema");
|
|
8
|
+
const voice_gender_schema_1 = require("./voice-gender.schema");
|
|
9
|
+
const voice_category_schema_1 = require("./voice-category.schema");
|
|
10
|
+
exports.VoiceSchema = zod_1.z.object({
|
|
11
|
+
uuid: zod_1.z.string().uuid(),
|
|
12
|
+
scope: zod_1.z.nativeEnum(common_1.JOB_SCOPE),
|
|
13
|
+
source: voice_source_schema_1.VoiceSourceSchema,
|
|
14
|
+
title: zod_1.z.string(),
|
|
15
|
+
description: zod_1.z.string(),
|
|
16
|
+
gender: voice_gender_schema_1.VoiceGenderSchema.nullable(),
|
|
17
|
+
trait: zod_1.z.string().nullable(),
|
|
18
|
+
ageRange: zod_1.z.string().nullable(),
|
|
19
|
+
categories: zod_1.z.array(voice_category_schema_1.VoiceCategorySchema),
|
|
20
|
+
previewUrl: zod_1.z.string(),
|
|
21
|
+
imageUrl: zod_1.z.string().nullable(),
|
|
22
|
+
status: zod_1.z.nativeEnum(voice_status_enum_1.VOICE_STATUS),
|
|
23
|
+
error: zod_1.z.string().nullable(),
|
|
24
|
+
order: zod_1.z.number(),
|
|
25
|
+
isDeleted: zod_1.z.boolean(),
|
|
26
|
+
userId: zod_1.z.string().uuid().nullable(),
|
|
27
|
+
unregisteredUserId: zod_1.z.string().uuid().nullable(),
|
|
28
|
+
createdAt: zod_1.z.date(),
|
|
29
|
+
updatedAt: zod_1.z.date(),
|
|
30
|
+
});
|
|
@@ -4,6 +4,7 @@ export declare namespace FindTTSJobByIdQuery {
|
|
|
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
|
}, z.core.$strip>;
|
|
8
9
|
type Request = z.infer<typeof RequestSchema>;
|
|
9
10
|
const ResponseSchema: z.ZodObject<{
|
|
@@ -18,9 +19,22 @@ export declare namespace FindTTSJobByIdQuery {
|
|
|
18
19
|
status: import("../..").JOB_STATUS;
|
|
19
20
|
error: string | null;
|
|
20
21
|
modelId: string;
|
|
21
|
-
voiceId: string;
|
|
22
|
+
voiceId: string | null;
|
|
23
|
+
isDialog: boolean;
|
|
24
|
+
speakers: {
|
|
25
|
+
speaker: number;
|
|
26
|
+
voiceId: string;
|
|
27
|
+
}[];
|
|
28
|
+
voices: {
|
|
29
|
+
uuid: string;
|
|
30
|
+
title: string;
|
|
31
|
+
previewUrl: string;
|
|
32
|
+
isDeleted: boolean;
|
|
33
|
+
speaker: number | null;
|
|
34
|
+
}[];
|
|
22
35
|
price: number;
|
|
23
36
|
duration: number;
|
|
37
|
+
scope: import("../..").JOB_SCOPE;
|
|
24
38
|
userId: string | null;
|
|
25
39
|
unregisteredUserId: string | null;
|
|
26
40
|
tokenReservationId?: string | null | undefined;
|
|
@@ -49,9 +63,22 @@ export declare namespace FindTTSJobByIdQuery {
|
|
|
49
63
|
status: import("../..").JOB_STATUS;
|
|
50
64
|
error: string | null;
|
|
51
65
|
modelId: string;
|
|
52
|
-
voiceId: string;
|
|
66
|
+
voiceId: string | null;
|
|
67
|
+
isDialog: boolean;
|
|
68
|
+
speakers: {
|
|
69
|
+
speaker: number;
|
|
70
|
+
voiceId: string;
|
|
71
|
+
}[];
|
|
72
|
+
voices: {
|
|
73
|
+
uuid: string;
|
|
74
|
+
title: string;
|
|
75
|
+
previewUrl: string;
|
|
76
|
+
isDeleted: boolean;
|
|
77
|
+
speaker: number | null;
|
|
78
|
+
}[];
|
|
53
79
|
price: number;
|
|
54
80
|
duration: number;
|
|
81
|
+
scope: import("../..").JOB_SCOPE;
|
|
55
82
|
userId: string | null;
|
|
56
83
|
unregisteredUserId: string | null;
|
|
57
84
|
tokenReservationId?: string | null | undefined;
|