@purpleschool/gptbot-tools 0.2.60-stage2 → 0.2.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai-proxy/routes/ai-proxy.routes.d.ts +0 -1
- package/build/ai-proxy/routes/ai-proxy.routes.js +0 -1
- package/build/index.d.ts +3 -3
- package/build/index.js +3 -3
- package/build/{photo-sessions/commands/delete-all-photo-sessions-jobs.command.d.ts → sound-generation/commands/delete-all-sound-generation-jobs.command.d.ts} +1 -1
- package/build/sound-generation/commands/delete-all-sound-generation-jobs.command.js +14 -0
- package/build/{photo-sessions/commands/delete-photo-sessions-job-by-uuid.command.d.ts → sound-generation/commands/delete-sound-generation-job-by-uuid.command.d.ts} +2 -2
- package/build/sound-generation/commands/delete-sound-generation-job-by-uuid.command.js +14 -0
- package/build/{tts/commands/improve-tts-text.command.d.ts → sound-generation/commands/get-sound-generation-price.command.d.ts} +8 -6
- package/build/sound-generation/commands/get-sound-generation-price.command.js +17 -0
- package/build/sound-generation/commands/index.d.ts +8 -0
- package/build/sound-generation/commands/index.js +24 -0
- package/build/sound-generation/commands/retry-sound-generation-job.command.d.ts +84 -0
- package/build/sound-generation/commands/retry-sound-generation-job.command.js +17 -0
- package/build/sound-generation/commands/set-reaction-to-sound-generation-job.command.d.ts +85 -0
- package/build/{photo-sessions/commands/set-reaction-to-photo-sessions-job.command.js → sound-generation/commands/set-reaction-to-sound-generation-job.command.js} +7 -7
- package/build/sound-generation/commands/sound-generation.command.d.ts +94 -0
- package/build/sound-generation/commands/sound-generation.command.js +27 -0
- package/build/sound-generation/commands/update-sound-generation-job-favorite.command.d.ts +83 -0
- package/build/sound-generation/commands/update-sound-generation-job-favorite.command.js +16 -0
- package/build/sound-generation/commands/update-sound-generation-job-title.command.d.ts +83 -0
- package/build/sound-generation/commands/update-sound-generation-job-title.command.js +16 -0
- package/build/sound-generation/enums/index.d.ts +1 -0
- package/build/{photo-sessions/routes → sound-generation/enums}/index.js +1 -2
- package/build/sound-generation/enums/sound-generation-strategy.enum.d.ts +3 -0
- package/build/sound-generation/enums/sound-generation-strategy.enum.js +7 -0
- package/build/sound-generation/models/index.d.ts +5 -0
- package/build/{photo-sessions → sound-generation}/models/index.js +5 -4
- package/build/sound-generation/models/sound-generation-config.schema.d.ts +34 -0
- package/build/sound-generation/models/sound-generation-config.schema.js +8 -0
- package/build/sound-generation/models/sound-generation-job.schema.d.ts +38 -0
- package/build/sound-generation/models/sound-generation-job.schema.js +34 -0
- package/build/sound-generation/models/sound-generation-model.schema.d.ts +42 -0
- package/build/sound-generation/models/sound-generation-model.schema.js +28 -0
- package/build/sound-generation/models/sound-generation-params.schema.d.ts +8 -0
- package/build/sound-generation/models/sound-generation-params.schema.js +10 -0
- package/build/sound-generation/models/sound-generation-result.schema.d.ts +6 -0
- package/build/sound-generation/models/sound-generation-result.schema.js +8 -0
- package/build/sound-generation/queries/find-sound-generation-job-by-id.query.d.ts +82 -0
- package/build/sound-generation/queries/find-sound-generation-job-by-id.query.js +15 -0
- package/build/{photo-sessions/queries/find-photo-sessions-jobs.query.d.ts → sound-generation/queries/find-sound-generation-jobs.query.d.ts} +33 -63
- package/build/{photo-sessions/queries/find-photo-sessions-jobs.query.js → sound-generation/queries/find-sound-generation-jobs.query.js} +17 -10
- package/build/sound-generation/queries/get-sound-generation-config.query.d.ts +76 -0
- package/build/sound-generation/queries/get-sound-generation-config.query.js +10 -0
- package/build/sound-generation/queries/index.d.ts +3 -0
- package/build/{photo-sessions/commands/admin → sound-generation/queries}/index.js +3 -3
- package/build/sound-generation/routes/index.d.ts +1 -0
- package/build/{photo-sessions/enums → sound-generation/routes}/index.js +1 -2
- package/build/sound-generation/routes/sound-generation.amqp.routes.d.ts +13 -0
- package/build/sound-generation/routes/sound-generation.amqp.routes.js +16 -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 +25 -69
- package/build/tools/models/global-tools-config.schema.js +2 -2
- package/build/tools/models/tools-with-configs.schema.d.ts +88 -22
- package/build/tools/models/tools-with-configs.schema.js +5 -0
- package/build/tools/queries/get-global-tools-config.query.d.ts +46 -134
- package/build/tools/queries/get-tools-with-configs.query.d.ts +88 -22
- package/build/tts/commands/index.d.ts +0 -7
- package/build/tts/commands/index.js +0 -7
- package/build/tts/commands/retry-tts-job.command.d.ts +2 -29
- package/build/tts/commands/retry-tts-job.command.js +0 -2
- package/build/tts/commands/set-reaction-to-tts-job.command.d.ts +2 -29
- package/build/tts/commands/set-reaction-to-tts-job.command.js +0 -1
- package/build/tts/commands/tts.command.d.ts +3 -35
- package/build/tts/commands/tts.command.js +1 -4
- package/build/tts/commands/update-tts-job-favorite.command.d.ts +2 -29
- package/build/tts/commands/update-tts-job-favorite.command.js +0 -2
- package/build/tts/commands/update-tts-job-title.command.d.ts +2 -29
- package/build/tts/commands/update-tts-job-title.command.js +0 -2
- package/build/tts/enums/index.d.ts +0 -7
- package/build/tts/enums/index.js +0 -7
- package/build/tts/models/index.d.ts +0 -5
- package/build/tts/models/index.js +0 -5
- package/build/tts/models/tts-config-with-vendors.schema.d.ts +0 -1
- package/build/tts/models/tts-config.schema.d.ts +0 -11
- package/build/tts/models/tts-config.schema.js +0 -5
- package/build/tts/models/tts-job.schema.d.ts +2 -34
- package/build/tts/models/tts-job.schema.js +2 -22
- package/build/tts/models/tts-model-with-vendor.schema.d.ts +0 -1
- package/build/tts/models/tts-model.schema.d.ts +0 -1
- package/build/tts/models/tts-model.schema.js +0 -1
- package/build/tts/queries/find-tts-job-by-id.query.d.ts +2 -29
- package/build/tts/queries/find-tts-job-by-id.query.js +0 -2
- package/build/tts/queries/find-tts-jobs.query.d.ts +2 -29
- package/build/tts/queries/find-tts-jobs.query.js +0 -1
- package/build/tts/queries/get-tts-config-with-vendors.query.d.ts +0 -2
- package/build/tts/queries/get-tts-config.query.d.ts +0 -22
- package/build/tts/queries/index.d.ts +0 -2
- package/build/tts/queries/index.js +0 -2
- package/build/tts/routes/tts.amqp.routes.d.ts +0 -9
- package/build/tts/routes/tts.amqp.routes.js +0 -9
- package/package.json +1 -1
- package/build/photo-sessions/commands/admin/create-photo-session-style.command.d.ts +0 -58
- package/build/photo-sessions/commands/admin/create-photo-session-style.command.js +0 -21
- package/build/photo-sessions/commands/admin/delete-photo-session-style.command.d.ts +0 -14
- package/build/photo-sessions/commands/admin/delete-photo-session-style.command.js +0 -12
- package/build/photo-sessions/commands/admin/index.d.ts +0 -3
- package/build/photo-sessions/commands/admin/update-photo-session-style.command.d.ts +0 -55
- package/build/photo-sessions/commands/admin/update-photo-session-style.command.js +0 -28
- package/build/photo-sessions/commands/delete-all-photo-sessions-jobs.command.js +0 -15
- package/build/photo-sessions/commands/delete-photo-sessions-job-by-uuid.command.js +0 -14
- package/build/photo-sessions/commands/get-photo-sessions-price.command.d.ts +0 -46
- package/build/photo-sessions/commands/get-photo-sessions-price.command.js +0 -30
- package/build/photo-sessions/commands/index.d.ts +0 -10
- package/build/photo-sessions/commands/index.js +0 -26
- package/build/photo-sessions/commands/photo-sessions.command.d.ts +0 -147
- package/build/photo-sessions/commands/photo-sessions.command.js +0 -41
- package/build/photo-sessions/commands/retry-photo-sessions-job.command.d.ts +0 -142
- package/build/photo-sessions/commands/retry-photo-sessions-job.command.js +0 -23
- package/build/photo-sessions/commands/set-reaction-to-photo-sessions-job.command.d.ts +0 -115
- package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.d.ts +0 -113
- package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.js +0 -16
- package/build/photo-sessions/commands/update-photo-sessions-job-title.command.d.ts +0 -113
- package/build/photo-sessions/commands/update-photo-sessions-job-title.command.js +0 -16
- package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.d.ts +0 -118
- package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.js +0 -26
- package/build/photo-sessions/enums/index.d.ts +0 -2
- package/build/photo-sessions/enums/photo-session-look-type.enum.d.ts +0 -5
- package/build/photo-sessions/enums/photo-session-look-type.enum.js +0 -9
- package/build/photo-sessions/enums/photo-session-strategy.enum.d.ts +0 -4
- package/build/photo-sessions/enums/photo-session-strategy.enum.js +0 -8
- package/build/photo-sessions/models/index.d.ts +0 -4
- package/build/photo-sessions/models/photo-session-config.schema.d.ts +0 -72
- package/build/photo-sessions/models/photo-session-config.schema.js +0 -16
- package/build/photo-sessions/models/photo-session-job.schema.d.ts +0 -78
- package/build/photo-sessions/models/photo-session-job.schema.js +0 -46
- package/build/photo-sessions/models/photo-session-model.schema.d.ts +0 -69
- package/build/photo-sessions/models/photo-session-model.schema.js +0 -42
- package/build/photo-sessions/models/photo-session-style.schema.d.ts +0 -29
- package/build/photo-sessions/models/photo-session-style.schema.js +0 -22
- package/build/photo-sessions/queries/find-photo-session-style-by-id.query.d.ts +0 -46
- package/build/photo-sessions/queries/find-photo-session-style-by-id.query.js +0 -10
- package/build/photo-sessions/queries/find-photo-session-styles.query.d.ts +0 -57
- package/build/photo-sessions/queries/find-photo-session-styles.query.js +0 -19
- package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.d.ts +0 -110
- package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.js +0 -10
- package/build/photo-sessions/queries/get-photo-sessions-config.query.d.ts +0 -142
- package/build/photo-sessions/queries/get-photo-sessions-config.query.js +0 -10
- package/build/photo-sessions/queries/index.d.ts +0 -5
- package/build/photo-sessions/queries/index.js +0 -21
- package/build/photo-sessions/routes/index.d.ts +0 -2
- package/build/photo-sessions/routes/photo-sessions.amqp.routes.d.ts +0 -19
- package/build/photo-sessions/routes/photo-sessions.amqp.routes.js +0 -22
- package/build/photo-sessions/routes/photo-sessions.http.routes.d.ts +0 -1
- package/build/photo-sessions/routes/photo-sessions.http.routes.js +0 -4
- package/build/tts/commands/create-voice-clone.command.d.ts +0 -60
- package/build/tts/commands/create-voice-clone.command.js +0 -20
- package/build/tts/commands/create-voice-design.command.d.ts +0 -37
- package/build/tts/commands/create-voice-design.command.js +0 -19
- package/build/tts/commands/delete-voice.command.d.ts +0 -17
- package/build/tts/commands/delete-voice.command.js +0 -14
- package/build/tts/commands/download-tts-job.command.d.ts +0 -25
- package/build/tts/commands/download-tts-job.command.js +0 -19
- package/build/tts/commands/improve-tts-text.command.js +0 -16
- package/build/tts/commands/select-voice-design.command.d.ts +0 -57
- package/build/tts/commands/select-voice-design.command.js +0 -17
- package/build/tts/commands/update-voice.command.d.ts +0 -57
- package/build/tts/commands/update-voice.command.js +0 -17
- package/build/tts/enums/tts-download-format.enum.d.ts +0 -5
- package/build/tts/enums/tts-download-format.enum.js +0 -9
- package/build/tts/enums/voice-category.enum.d.ts +0 -19
- package/build/tts/enums/voice-category.enum.js +0 -23
- package/build/tts/enums/voice-gender.enum.d.ts +0 -4
- package/build/tts/enums/voice-gender.enum.js +0 -8
- package/build/tts/enums/voice-source.enum.d.ts +0 -5
- package/build/tts/enums/voice-source.enum.js +0 -9
- package/build/tts/enums/voice-status.enum.d.ts +0 -5
- package/build/tts/enums/voice-status.enum.js +0 -9
- package/build/tts/enums/voice-tag-group.enum.d.ts +0 -5
- package/build/tts/enums/voice-tag-group.enum.js +0 -9
- package/build/tts/enums/voice-tag.enum.d.ts +0 -20
- package/build/tts/enums/voice-tag.enum.js +0 -24
- package/build/tts/models/voice-category.schema.d.ts +0 -7
- package/build/tts/models/voice-category.schema.js +0 -9
- package/build/tts/models/voice-design-draft.schema.d.ts +0 -12
- package/build/tts/models/voice-design-draft.schema.js +0 -12
- package/build/tts/models/voice-design-sample.schema.d.ts +0 -6
- package/build/tts/models/voice-design-sample.schema.js +0 -8
- package/build/tts/models/voice-tag.schema.d.ts +0 -9
- package/build/tts/models/voice-tag.schema.js +0 -11
- package/build/tts/models/voice.schema.d.ts +0 -27
- package/build/tts/models/voice.schema.js +0 -29
- package/build/tts/queries/find-voice-by-id.query.d.ts +0 -57
- package/build/tts/queries/find-voice-by-id.query.js +0 -17
- package/build/tts/queries/find-voices.query.d.ts +0 -92
- package/build/tts/queries/find-voices.query.js +0 -25
- /package/build/{photo-sessions → sound-generation}/index.d.ts +0 -0
- /package/build/{photo-sessions → sound-generation}/index.js +0 -0
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.FindSoundGenerationJobsQuery = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const common_1 = require("../../common");
|
|
6
|
+
const tools_1 = require("../../tools");
|
|
6
7
|
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
7
8
|
const models_1 = require("../models");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
var FindSoundGenerationJobsQuery;
|
|
10
|
+
(function (FindSoundGenerationJobsQuery) {
|
|
11
|
+
FindSoundGenerationJobsQuery.RequestSchema = zod_1.z
|
|
12
|
+
.object({
|
|
12
13
|
userId: zod_1.z.string().uuid().optional(),
|
|
13
14
|
unregisteredUserId: zod_1.z.string().uuid().optional(),
|
|
14
15
|
scope: zod_1.z.nativeEnum(common_1.JOB_SCOPE).optional().default(common_1.JOB_SCOPE.TOOL),
|
|
@@ -16,13 +17,19 @@ var FindPhotoSessionsJobsQuery;
|
|
|
16
17
|
isFavorite: zod_1.z.coerce.boolean().optional(),
|
|
17
18
|
createdAtSortOrder: zod_1.z.nativeEnum(tools_1.JOB_SORT).optional().default(tools_1.JOB_SORT.DESC),
|
|
18
19
|
status: zod_1.z.nativeEnum(tools_1.JOB_STATUS).optional(),
|
|
19
|
-
limit: zod_1.z.coerce.number().min(1).optional(),
|
|
20
|
-
offset: zod_1.z.coerce.number().min(0).default(0).optional(),
|
|
20
|
+
limit: zod_1.z.coerce.number().int().min(1).optional(),
|
|
21
|
+
offset: zod_1.z.coerce.number().int().min(0).default(0).optional(),
|
|
22
|
+
})
|
|
23
|
+
.refine((data) => {
|
|
24
|
+
return Boolean(data.userId) !== Boolean(data.unregisteredUserId);
|
|
25
|
+
}, {
|
|
26
|
+
message: 'Exactly one of userId or unregisteredUserId is required',
|
|
27
|
+
path: ['userId', 'unregisteredUserId'],
|
|
21
28
|
});
|
|
22
|
-
|
|
23
|
-
data: zod_1.z.array(models_1.
|
|
29
|
+
FindSoundGenerationJobsQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(zod_1.z.object({
|
|
30
|
+
data: zod_1.z.array(models_1.SoundGenerationJobSchema),
|
|
24
31
|
page: zod_1.z.number(),
|
|
25
32
|
totalPages: zod_1.z.number(),
|
|
26
33
|
total: zod_1.z.number(),
|
|
27
34
|
}));
|
|
28
|
-
})(
|
|
35
|
+
})(FindSoundGenerationJobsQuery || (exports.FindSoundGenerationJobsQuery = FindSoundGenerationJobsQuery = {}));
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace GetSoundGenerationConfigQuery {
|
|
3
|
+
const RequestSchema: z.ZodObject<{
|
|
4
|
+
locale: z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
7
|
+
const ResponseSchema: z.ZodObject<{
|
|
8
|
+
isSuccess: z.ZodBoolean;
|
|
9
|
+
data: z.ZodOptional<z.ZodType<{
|
|
10
|
+
models: {
|
|
11
|
+
uuid: string;
|
|
12
|
+
title: string;
|
|
13
|
+
description: string;
|
|
14
|
+
aiModel: string;
|
|
15
|
+
pricePerSecond: number;
|
|
16
|
+
order: number;
|
|
17
|
+
status: import("../..").TOOL_MODEL_STATUS;
|
|
18
|
+
icons: {
|
|
19
|
+
light: {
|
|
20
|
+
svg: string;
|
|
21
|
+
png: string;
|
|
22
|
+
};
|
|
23
|
+
dark: {
|
|
24
|
+
svg: string;
|
|
25
|
+
png: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
strategy: import("..").SOUND_GENERATION_STRATEGY.ELEVENLABS_SOUND_GENERATION;
|
|
29
|
+
maxPromptLength: number;
|
|
30
|
+
params: {
|
|
31
|
+
minDurationSeconds: number;
|
|
32
|
+
maxDurationSeconds: number;
|
|
33
|
+
durationStepSeconds: number;
|
|
34
|
+
maxVariations: number;
|
|
35
|
+
supportsLoop: boolean;
|
|
36
|
+
};
|
|
37
|
+
createdAt: Date;
|
|
38
|
+
updatedAt: Date;
|
|
39
|
+
}[];
|
|
40
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
41
|
+
models: {
|
|
42
|
+
uuid: string;
|
|
43
|
+
title: string;
|
|
44
|
+
description: string;
|
|
45
|
+
aiModel: string;
|
|
46
|
+
pricePerSecond: number;
|
|
47
|
+
order: number;
|
|
48
|
+
status: import("../..").TOOL_MODEL_STATUS;
|
|
49
|
+
icons: {
|
|
50
|
+
light: {
|
|
51
|
+
svg: string;
|
|
52
|
+
png: string;
|
|
53
|
+
};
|
|
54
|
+
dark: {
|
|
55
|
+
svg: string;
|
|
56
|
+
png: string;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
strategy: import("..").SOUND_GENERATION_STRATEGY.ELEVENLABS_SOUND_GENERATION;
|
|
60
|
+
maxPromptLength: number;
|
|
61
|
+
params: {
|
|
62
|
+
minDurationSeconds: number;
|
|
63
|
+
maxDurationSeconds: number;
|
|
64
|
+
durationStepSeconds: number;
|
|
65
|
+
maxVariations: number;
|
|
66
|
+
supportsLoop: boolean;
|
|
67
|
+
};
|
|
68
|
+
createdAt: Date;
|
|
69
|
+
updatedAt: Date;
|
|
70
|
+
}[];
|
|
71
|
+
}, unknown>>>;
|
|
72
|
+
code: z.ZodOptional<z.ZodString>;
|
|
73
|
+
message: z.ZodOptional<z.ZodString>;
|
|
74
|
+
}, z.core.$strip>;
|
|
75
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
76
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetSoundGenerationConfigQuery = void 0;
|
|
4
|
+
const common_1 = require("../../common");
|
|
5
|
+
const models_1 = require("../models");
|
|
6
|
+
var GetSoundGenerationConfigQuery;
|
|
7
|
+
(function (GetSoundGenerationConfigQuery) {
|
|
8
|
+
GetSoundGenerationConfigQuery.RequestSchema = common_1.LocaleRequestSchema;
|
|
9
|
+
GetSoundGenerationConfigQuery.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.SoundGenerationConfigSchema);
|
|
10
|
+
})(GetSoundGenerationConfigQuery || (exports.GetSoundGenerationConfigQuery = GetSoundGenerationConfigQuery = {}));
|
|
@@ -14,6 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
18
|
-
__exportStar(require("./
|
|
19
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./find-sound-generation-job-by-id.query"), exports);
|
|
18
|
+
__exportStar(require("./find-sound-generation-jobs.query"), exports);
|
|
19
|
+
__exportStar(require("./get-sound-generation-config.query"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './sound-generation.amqp.routes';
|
|
@@ -14,5 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
18
|
-
__exportStar(require("./photo-session-look-type.enum"), exports);
|
|
17
|
+
__exportStar(require("./sound-generation.amqp.routes"), exports);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const SOUND_GENERATION_AMQP_ROUTES: {
|
|
2
|
+
readonly EXECUTE: 'tools.sound-generation.execute.rpc';
|
|
3
|
+
readonly GET_PRICE: 'tools.sound-generation.get-price.rpc';
|
|
4
|
+
readonly CONFIG: 'tools.sound-generation.config.rpc';
|
|
5
|
+
readonly GET_JOB: 'tools.sound-generation.jobs.get.rpc';
|
|
6
|
+
readonly LIST_JOBS: 'tools.sound-generation.jobs.list.rpc';
|
|
7
|
+
readonly SET_REACTION: 'tools.sound-generation.jobs.set-reaction.rpc';
|
|
8
|
+
readonly UPDATE_TITLE: 'tools.sound-generation.jobs.update-title.rpc';
|
|
9
|
+
readonly UPDATE_FAVORITE: 'tools.sound-generation.jobs.update-favorite.rpc';
|
|
10
|
+
readonly SOFT_DELETE: 'tools.sound-generation.jobs.soft-delete.rpc';
|
|
11
|
+
readonly SOFT_DELETE_ALL: 'tools.sound-generation.jobs.soft-delete-all.rpc';
|
|
12
|
+
readonly RETRY: 'tools.sound-generation.jobs.retry.rpc';
|
|
13
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SOUND_GENERATION_AMQP_ROUTES = void 0;
|
|
4
|
+
exports.SOUND_GENERATION_AMQP_ROUTES = {
|
|
5
|
+
EXECUTE: 'tools.sound-generation.execute.rpc',
|
|
6
|
+
GET_PRICE: 'tools.sound-generation.get-price.rpc',
|
|
7
|
+
CONFIG: 'tools.sound-generation.config.rpc',
|
|
8
|
+
GET_JOB: 'tools.sound-generation.jobs.get.rpc',
|
|
9
|
+
LIST_JOBS: 'tools.sound-generation.jobs.list.rpc',
|
|
10
|
+
SET_REACTION: 'tools.sound-generation.jobs.set-reaction.rpc',
|
|
11
|
+
UPDATE_TITLE: 'tools.sound-generation.jobs.update-title.rpc',
|
|
12
|
+
UPDATE_FAVORITE: 'tools.sound-generation.jobs.update-favorite.rpc',
|
|
13
|
+
SOFT_DELETE: 'tools.sound-generation.jobs.soft-delete.rpc',
|
|
14
|
+
SOFT_DELETE_ALL: 'tools.sound-generation.jobs.soft-delete-all.rpc',
|
|
15
|
+
RETRY: 'tools.sound-generation.jobs.retry.rpc',
|
|
16
|
+
};
|
|
@@ -16,6 +16,6 @@ export declare enum TOOL_CONTENT_TYPE {
|
|
|
16
16
|
SPELL_CORRECTOR = "SPELL_CORRECTOR",
|
|
17
17
|
DIAGRAMS = "DIAGRAMS",
|
|
18
18
|
HTML_PAGE_BUILDER = "HTML_PAGE_BUILDER",
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
IMAGE_RECOGNITION = "IMAGE_RECOGNITION",
|
|
20
|
+
SOUND_GENERATION = "SOUND_GENERATION"
|
|
21
21
|
}
|
|
@@ -20,6 +20,6 @@ var TOOL_CONTENT_TYPE;
|
|
|
20
20
|
TOOL_CONTENT_TYPE["SPELL_CORRECTOR"] = "SPELL_CORRECTOR";
|
|
21
21
|
TOOL_CONTENT_TYPE["DIAGRAMS"] = "DIAGRAMS";
|
|
22
22
|
TOOL_CONTENT_TYPE["HTML_PAGE_BUILDER"] = "HTML_PAGE_BUILDER";
|
|
23
|
-
TOOL_CONTENT_TYPE["PHOTO_SESSIONS"] = "PHOTO_SESSIONS";
|
|
24
23
|
TOOL_CONTENT_TYPE["IMAGE_RECOGNITION"] = "IMAGE_RECOGNITION";
|
|
24
|
+
TOOL_CONTENT_TYPE["SOUND_GENERATION"] = "SOUND_GENERATION";
|
|
25
25
|
})(TOOL_CONTENT_TYPE || (exports.TOOL_CONTENT_TYPE = TOOL_CONTENT_TYPE = {}));
|
|
@@ -18,6 +18,6 @@ export declare enum TOOL_TYPE {
|
|
|
18
18
|
SOLVING_EDU_TASK = "SOLVING_EDU_TASK",
|
|
19
19
|
DIAGRAMS = "DIAGRAMS",
|
|
20
20
|
HTML_PAGE_BUILDER = "HTML_PAGE_BUILDER",
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
IMAGE_RECOGNITION = "IMAGE_RECOGNITION",
|
|
22
|
+
SOUND_GENERATION = "SOUND_GENERATION"
|
|
23
23
|
}
|
|
@@ -22,6 +22,6 @@ var TOOL_TYPE;
|
|
|
22
22
|
TOOL_TYPE["SOLVING_EDU_TASK"] = "SOLVING_EDU_TASK";
|
|
23
23
|
TOOL_TYPE["DIAGRAMS"] = "DIAGRAMS";
|
|
24
24
|
TOOL_TYPE["HTML_PAGE_BUILDER"] = "HTML_PAGE_BUILDER";
|
|
25
|
-
TOOL_TYPE["PHOTO_SESSION"] = "PHOTO_SESSION";
|
|
26
25
|
TOOL_TYPE["IMAGE_RECOGNITION"] = "IMAGE_RECOGNITION";
|
|
26
|
+
TOOL_TYPE["SOUND_GENERATION"] = "SOUND_GENERATION";
|
|
27
27
|
})(TOOL_TYPE || (exports.TOOL_TYPE = TOOL_TYPE = {}));
|
|
@@ -543,7 +543,6 @@ 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;
|
|
547
546
|
voices: z.ZodArray<z.ZodObject<{
|
|
548
547
|
id: z.ZodString;
|
|
549
548
|
externalId: z.ZodString;
|
|
@@ -644,16 +643,6 @@ export declare const GlobalToolsConfigSchema: z.ZodObject<{
|
|
|
644
643
|
createdAt: z.ZodDate;
|
|
645
644
|
updatedAt: z.ZodDate;
|
|
646
645
|
}, 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;
|
|
657
646
|
}, z.core.$strip>;
|
|
658
647
|
SPEECH_TO_TEXT: z.ZodObject<{
|
|
659
648
|
models: z.ZodArray<z.ZodObject<{
|
|
@@ -913,15 +902,13 @@ export declare const GlobalToolsConfigSchema: z.ZodObject<{
|
|
|
913
902
|
}, z.core.$strip>>;
|
|
914
903
|
maxAttachmentsCount: z.ZodNumber;
|
|
915
904
|
}, z.core.$strip>;
|
|
916
|
-
|
|
905
|
+
IMAGE_RECOGNITION: z.ZodObject<{
|
|
917
906
|
models: z.ZodArray<z.ZodObject<{
|
|
918
907
|
uuid: z.ZodString;
|
|
919
908
|
title: z.ZodString;
|
|
920
909
|
description: z.ZodString;
|
|
921
910
|
aiModel: z.ZodString;
|
|
922
|
-
|
|
923
|
-
tierLabel: z.ZodString;
|
|
924
|
-
pricePerImage: z.ZodNumber;
|
|
911
|
+
price: z.ZodNumber;
|
|
925
912
|
order: z.ZodNumber;
|
|
926
913
|
status: z.ZodEnum<typeof import("../..").TOOL_MODEL_STATUS>;
|
|
927
914
|
icons: z.ZodObject<{
|
|
@@ -934,60 +921,25 @@ export declare const GlobalToolsConfigSchema: z.ZodObject<{
|
|
|
934
921
|
png: z.ZodString;
|
|
935
922
|
}, z.core.$strip>;
|
|
936
923
|
}, z.core.$strip>;
|
|
937
|
-
|
|
938
|
-
maxInputLength: z.ZodNumber;
|
|
924
|
+
maxPromptLength: z.ZodNumber;
|
|
939
925
|
params: z.ZodObject<{
|
|
940
926
|
imageAttachment: z.ZodObject<{
|
|
941
927
|
supported: z.ZodBoolean;
|
|
942
928
|
maxImages: z.ZodNumber;
|
|
943
929
|
acceptedTypes: z.ZodArray<z.ZodString>;
|
|
944
930
|
}, z.core.$strip>;
|
|
945
|
-
aspectRatio: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
946
|
-
width: z.ZodNumber;
|
|
947
|
-
height: z.ZodNumber;
|
|
948
|
-
}, z.core.$strip>>;
|
|
949
931
|
}, 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.ZodDate;
|
|
957
|
-
updatedAt: z.ZodDate;
|
|
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.ZodDate;
|
|
971
|
-
updatedAt: z.ZodDate;
|
|
972
|
-
}, z.core.$strip>>;
|
|
973
932
|
createdAt: z.ZodDate;
|
|
974
933
|
updatedAt: z.ZodDate;
|
|
975
934
|
}, z.core.$strip>>;
|
|
976
|
-
|
|
977
|
-
type: z.ZodEnum<typeof import("../..").PHOTO_SESSION_LOOK_TYPE>;
|
|
978
|
-
maxPhotos: z.ZodNumber;
|
|
979
|
-
}, z.core.$strip>>;
|
|
980
|
-
}, z.core.$strip>;
|
|
981
|
-
IMAGE_RECOGNITION: z.ZodObject<{
|
|
982
|
-
models: z.ZodArray<z.ZodObject<{
|
|
935
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
983
936
|
uuid: z.ZodString;
|
|
937
|
+
parentId: z.ZodNullable<z.ZodString>;
|
|
984
938
|
title: z.ZodString;
|
|
985
|
-
|
|
986
|
-
aiModel: z.ZodString;
|
|
987
|
-
price: z.ZodNumber;
|
|
939
|
+
systemPrompt: z.ZodString;
|
|
988
940
|
order: z.ZodNumber;
|
|
989
941
|
status: z.ZodEnum<typeof import("../..").TOOL_MODEL_STATUS>;
|
|
990
|
-
icons: z.ZodObject<{
|
|
942
|
+
icons: z.ZodNullable<z.ZodObject<{
|
|
991
943
|
light: z.ZodObject<{
|
|
992
944
|
svg: z.ZodString;
|
|
993
945
|
png: z.ZodString;
|
|
@@ -996,26 +948,21 @@ export declare const GlobalToolsConfigSchema: z.ZodObject<{
|
|
|
996
948
|
svg: z.ZodString;
|
|
997
949
|
png: z.ZodString;
|
|
998
950
|
}, z.core.$strip>;
|
|
999
|
-
}, z.core.$strip
|
|
1000
|
-
maxPromptLength: z.ZodNumber;
|
|
1001
|
-
params: z.ZodObject<{
|
|
1002
|
-
imageAttachment: z.ZodObject<{
|
|
1003
|
-
supported: z.ZodBoolean;
|
|
1004
|
-
maxImages: z.ZodNumber;
|
|
1005
|
-
acceptedTypes: z.ZodArray<z.ZodString>;
|
|
1006
|
-
}, z.core.$strip>;
|
|
1007
|
-
}, z.core.$strip>;
|
|
951
|
+
}, z.core.$strip>>;
|
|
1008
952
|
createdAt: z.ZodDate;
|
|
1009
953
|
updatedAt: z.ZodDate;
|
|
1010
954
|
}, z.core.$strip>>;
|
|
1011
|
-
|
|
955
|
+
}, z.core.$strip>;
|
|
956
|
+
SOUND_GENERATION: z.ZodObject<{
|
|
957
|
+
models: z.ZodArray<z.ZodObject<{
|
|
1012
958
|
uuid: z.ZodString;
|
|
1013
|
-
parentId: z.ZodNullable<z.ZodString>;
|
|
1014
959
|
title: z.ZodString;
|
|
1015
|
-
|
|
960
|
+
description: z.ZodString;
|
|
961
|
+
aiModel: z.ZodString;
|
|
962
|
+
pricePerSecond: z.ZodNumber;
|
|
1016
963
|
order: z.ZodNumber;
|
|
1017
964
|
status: z.ZodEnum<typeof import("../..").TOOL_MODEL_STATUS>;
|
|
1018
|
-
icons: z.
|
|
965
|
+
icons: z.ZodObject<{
|
|
1019
966
|
light: z.ZodObject<{
|
|
1020
967
|
svg: z.ZodString;
|
|
1021
968
|
png: z.ZodString;
|
|
@@ -1024,7 +971,16 @@ export declare const GlobalToolsConfigSchema: z.ZodObject<{
|
|
|
1024
971
|
svg: z.ZodString;
|
|
1025
972
|
png: z.ZodString;
|
|
1026
973
|
}, z.core.$strip>;
|
|
1027
|
-
}, z.core.$strip
|
|
974
|
+
}, z.core.$strip>;
|
|
975
|
+
strategy: z.ZodEnum<typeof import("../..").SOUND_GENERATION_STRATEGY>;
|
|
976
|
+
maxPromptLength: z.ZodNumber;
|
|
977
|
+
params: z.ZodObject<{
|
|
978
|
+
minDurationSeconds: z.ZodNumber;
|
|
979
|
+
maxDurationSeconds: z.ZodNumber;
|
|
980
|
+
durationStepSeconds: z.ZodNumber;
|
|
981
|
+
maxVariations: z.ZodNumber;
|
|
982
|
+
supportsLoop: z.ZodBoolean;
|
|
983
|
+
}, z.core.$strip>;
|
|
1028
984
|
createdAt: z.ZodDate;
|
|
1029
985
|
updatedAt: z.ZodDate;
|
|
1030
986
|
}, z.core.$strip>>;
|
|
@@ -19,8 +19,8 @@ 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");
|
|
23
22
|
const image_recognition_1 = require("../../image-recognition");
|
|
23
|
+
const sound_generation_1 = require("../../sound-generation");
|
|
24
24
|
exports.GlobalToolsConfigSchema = zod_1.z.object({
|
|
25
25
|
[enums_1.TOOL_CONTENT_TYPE.VIDEO]: video_1.VideoConfigSchema,
|
|
26
26
|
[enums_1.TOOL_CONTENT_TYPE.MUSIC]: music_1.MusicConfigSchema,
|
|
@@ -38,6 +38,6 @@ exports.GlobalToolsConfigSchema = zod_1.z.object({
|
|
|
38
38
|
[enums_1.TOOL_CONTENT_TYPE.SPELL_CORRECTOR]: spell_corrector_1.SpellCorrectorToolConfigSchema,
|
|
39
39
|
[enums_1.TOOL_CONTENT_TYPE.DIAGRAMS]: diagrams_1.DiagramsConfigSchema,
|
|
40
40
|
[enums_1.TOOL_CONTENT_TYPE.HTML_PAGE_BUILDER]: models_2.HtmlPageBuilderConfigSchema,
|
|
41
|
-
[enums_1.TOOL_CONTENT_TYPE.PHOTO_SESSIONS]: photo_sessions_1.PhotoSessionConfigSchema,
|
|
42
41
|
[enums_1.TOOL_CONTENT_TYPE.IMAGE_RECOGNITION]: image_recognition_1.ImageRecognitionConfigSchema,
|
|
42
|
+
[enums_1.TOOL_CONTENT_TYPE.SOUND_GENERATION]: sound_generation_1.SoundGenerationConfigSchema,
|
|
43
43
|
});
|
|
@@ -651,7 +651,6 @@ 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;
|
|
655
654
|
voices: z.ZodArray<z.ZodObject<{
|
|
656
655
|
id: z.ZodString;
|
|
657
656
|
externalId: z.ZodString;
|
|
@@ -752,16 +751,6 @@ export declare const ToolWithConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
752
751
|
createdAt: z.ZodDate;
|
|
753
752
|
updatedAt: z.ZodDate;
|
|
754
753
|
}, 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;
|
|
765
754
|
}, z.core.$strip>;
|
|
766
755
|
}, z.core.$strip>, z.ZodObject<{
|
|
767
756
|
uuid: z.ZodString;
|
|
@@ -1168,6 +1157,50 @@ export declare const ToolWithConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
1168
1157
|
updatedAt: z.ZodDate;
|
|
1169
1158
|
}, z.core.$strip>>;
|
|
1170
1159
|
}, z.core.$strip>;
|
|
1160
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1161
|
+
uuid: z.ZodString;
|
|
1162
|
+
title: z.ZodString;
|
|
1163
|
+
description: z.ZodString;
|
|
1164
|
+
icon: z.ZodString;
|
|
1165
|
+
alias: z.ZodString;
|
|
1166
|
+
bgColor: z.ZodString;
|
|
1167
|
+
iconColor: z.ZodString;
|
|
1168
|
+
order: z.ZodNumber;
|
|
1169
|
+
createdAt: z.ZodDate;
|
|
1170
|
+
updatedAt: z.ZodDate;
|
|
1171
|
+
contentType: z.ZodLiteral<TOOL_CONTENT_TYPE.SOUND_GENERATION>;
|
|
1172
|
+
config: z.ZodObject<{
|
|
1173
|
+
models: z.ZodArray<z.ZodObject<{
|
|
1174
|
+
uuid: z.ZodString;
|
|
1175
|
+
title: z.ZodString;
|
|
1176
|
+
description: z.ZodString;
|
|
1177
|
+
aiModel: z.ZodString;
|
|
1178
|
+
pricePerSecond: z.ZodNumber;
|
|
1179
|
+
order: z.ZodNumber;
|
|
1180
|
+
status: z.ZodEnum<typeof import("../..").TOOL_MODEL_STATUS>;
|
|
1181
|
+
icons: z.ZodObject<{
|
|
1182
|
+
light: z.ZodObject<{
|
|
1183
|
+
svg: z.ZodString;
|
|
1184
|
+
png: z.ZodString;
|
|
1185
|
+
}, z.core.$strip>;
|
|
1186
|
+
dark: z.ZodObject<{
|
|
1187
|
+
svg: z.ZodString;
|
|
1188
|
+
png: z.ZodString;
|
|
1189
|
+
}, z.core.$strip>;
|
|
1190
|
+
}, z.core.$strip>;
|
|
1191
|
+
strategy: z.ZodEnum<typeof import("../..").SOUND_GENERATION_STRATEGY>;
|
|
1192
|
+
maxPromptLength: z.ZodNumber;
|
|
1193
|
+
params: z.ZodObject<{
|
|
1194
|
+
minDurationSeconds: z.ZodNumber;
|
|
1195
|
+
maxDurationSeconds: z.ZodNumber;
|
|
1196
|
+
durationStepSeconds: z.ZodNumber;
|
|
1197
|
+
maxVariations: z.ZodNumber;
|
|
1198
|
+
supportsLoop: z.ZodBoolean;
|
|
1199
|
+
}, z.core.$strip>;
|
|
1200
|
+
createdAt: z.ZodDate;
|
|
1201
|
+
updatedAt: z.ZodDate;
|
|
1202
|
+
}, z.core.$strip>>;
|
|
1203
|
+
}, z.core.$strip>;
|
|
1171
1204
|
}, z.core.$strip>], "contentType">;
|
|
1172
1205
|
export type ToolWithConfig = z.infer<typeof ToolWithConfigSchema>;
|
|
1173
1206
|
export declare const ToolsWithConfigsSchema: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -1821,7 +1854,6 @@ export declare const ToolsWithConfigsSchema: z.ZodArray<z.ZodDiscriminatedUnion<
|
|
|
1821
1854
|
}, z.core.$strip>;
|
|
1822
1855
|
strategy: z.ZodOptional<z.ZodString>;
|
|
1823
1856
|
maxInputLength: z.ZodNumber;
|
|
1824
|
-
maxSpeakers: z.ZodNumber;
|
|
1825
1857
|
voices: z.ZodArray<z.ZodObject<{
|
|
1826
1858
|
id: z.ZodString;
|
|
1827
1859
|
externalId: z.ZodString;
|
|
@@ -1922,16 +1954,6 @@ export declare const ToolsWithConfigsSchema: z.ZodArray<z.ZodDiscriminatedUnion<
|
|
|
1922
1954
|
createdAt: z.ZodDate;
|
|
1923
1955
|
updatedAt: z.ZodDate;
|
|
1924
1956
|
}, z.core.$strip>>;
|
|
1925
|
-
tags: z.ZodArray<z.ZodObject<{
|
|
1926
|
-
id: z.ZodEnum<typeof import("../..").VOICE_TAG>;
|
|
1927
|
-
group: z.ZodEnum<typeof import("../..").VOICE_TAG_GROUP>;
|
|
1928
|
-
label: z.ZodString;
|
|
1929
|
-
}, z.core.$strip>>;
|
|
1930
|
-
categories: z.ZodArray<z.ZodObject<{
|
|
1931
|
-
id: z.ZodEnum<typeof import("../..").VOICE_CATEGORY>;
|
|
1932
|
-
label: z.ZodString;
|
|
1933
|
-
}, z.core.$strip>>;
|
|
1934
|
-
speakerMarkerLabel: z.ZodString;
|
|
1935
1957
|
}, z.core.$strip>;
|
|
1936
1958
|
}, z.core.$strip>, z.ZodObject<{
|
|
1937
1959
|
uuid: z.ZodString;
|
|
@@ -2338,5 +2360,49 @@ export declare const ToolsWithConfigsSchema: z.ZodArray<z.ZodDiscriminatedUnion<
|
|
|
2338
2360
|
updatedAt: z.ZodDate;
|
|
2339
2361
|
}, z.core.$strip>>;
|
|
2340
2362
|
}, z.core.$strip>;
|
|
2363
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2364
|
+
uuid: z.ZodString;
|
|
2365
|
+
title: z.ZodString;
|
|
2366
|
+
description: z.ZodString;
|
|
2367
|
+
icon: z.ZodString;
|
|
2368
|
+
alias: z.ZodString;
|
|
2369
|
+
bgColor: z.ZodString;
|
|
2370
|
+
iconColor: z.ZodString;
|
|
2371
|
+
order: z.ZodNumber;
|
|
2372
|
+
createdAt: z.ZodDate;
|
|
2373
|
+
updatedAt: z.ZodDate;
|
|
2374
|
+
contentType: z.ZodLiteral<TOOL_CONTENT_TYPE.SOUND_GENERATION>;
|
|
2375
|
+
config: z.ZodObject<{
|
|
2376
|
+
models: z.ZodArray<z.ZodObject<{
|
|
2377
|
+
uuid: z.ZodString;
|
|
2378
|
+
title: z.ZodString;
|
|
2379
|
+
description: z.ZodString;
|
|
2380
|
+
aiModel: z.ZodString;
|
|
2381
|
+
pricePerSecond: z.ZodNumber;
|
|
2382
|
+
order: z.ZodNumber;
|
|
2383
|
+
status: z.ZodEnum<typeof import("../..").TOOL_MODEL_STATUS>;
|
|
2384
|
+
icons: z.ZodObject<{
|
|
2385
|
+
light: z.ZodObject<{
|
|
2386
|
+
svg: z.ZodString;
|
|
2387
|
+
png: z.ZodString;
|
|
2388
|
+
}, z.core.$strip>;
|
|
2389
|
+
dark: z.ZodObject<{
|
|
2390
|
+
svg: z.ZodString;
|
|
2391
|
+
png: z.ZodString;
|
|
2392
|
+
}, z.core.$strip>;
|
|
2393
|
+
}, z.core.$strip>;
|
|
2394
|
+
strategy: z.ZodEnum<typeof import("../..").SOUND_GENERATION_STRATEGY>;
|
|
2395
|
+
maxPromptLength: z.ZodNumber;
|
|
2396
|
+
params: z.ZodObject<{
|
|
2397
|
+
minDurationSeconds: z.ZodNumber;
|
|
2398
|
+
maxDurationSeconds: z.ZodNumber;
|
|
2399
|
+
durationStepSeconds: z.ZodNumber;
|
|
2400
|
+
maxVariations: z.ZodNumber;
|
|
2401
|
+
supportsLoop: z.ZodBoolean;
|
|
2402
|
+
}, z.core.$strip>;
|
|
2403
|
+
createdAt: z.ZodDate;
|
|
2404
|
+
updatedAt: z.ZodDate;
|
|
2405
|
+
}, z.core.$strip>>;
|
|
2406
|
+
}, z.core.$strip>;
|
|
2341
2407
|
}, z.core.$strip>], "contentType">>;
|
|
2342
2408
|
export type ToolsWithConfigs = z.infer<typeof ToolsWithConfigsSchema>;
|
|
@@ -21,6 +21,7 @@ const spell_corrector_1 = require("../../spell-corrector");
|
|
|
21
21
|
const diagrams_1 = require("../../diagrams");
|
|
22
22
|
const models_2 = require("../../html-page-builder/models");
|
|
23
23
|
const image_recognition_1 = require("../../image-recognition");
|
|
24
|
+
const sound_generation_1 = require("../../sound-generation");
|
|
24
25
|
// Discriminated union array: Tools with their configs
|
|
25
26
|
exports.ToolWithConfigSchema = zod_1.z.discriminatedUnion('contentType', [
|
|
26
27
|
tool_schema_1.ToolSchema.merge(zod_1.z.object({
|
|
@@ -91,5 +92,9 @@ exports.ToolWithConfigSchema = zod_1.z.discriminatedUnion('contentType', [
|
|
|
91
92
|
contentType: zod_1.z.literal(enums_1.TOOL_CONTENT_TYPE.IMAGE_RECOGNITION),
|
|
92
93
|
config: image_recognition_1.ImageRecognitionConfigSchema,
|
|
93
94
|
})),
|
|
95
|
+
tool_schema_1.ToolSchema.merge(zod_1.z.object({
|
|
96
|
+
contentType: zod_1.z.literal(enums_1.TOOL_CONTENT_TYPE.SOUND_GENERATION),
|
|
97
|
+
config: sound_generation_1.SoundGenerationConfigSchema,
|
|
98
|
+
})),
|
|
94
99
|
]);
|
|
95
100
|
exports.ToolsWithConfigsSchema = zod_1.z.array(exports.ToolWithConfigSchema);
|