@purpleschool/gptbot-tools 0.2.64-stage2 → 0.2.65-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/index.d.ts +3 -0
- package/build/index.js +3 -0
- package/build/sound-generation/commands/delete-all-sound-generation-jobs.command.d.ts +17 -0
- package/build/sound-generation/commands/delete-all-sound-generation-jobs.command.js +14 -0
- package/build/sound-generation/commands/delete-sound-generation-job-by-uuid.command.d.ts +16 -0
- package/build/sound-generation/commands/delete-sound-generation-job-by-uuid.command.js +14 -0
- package/build/sound-generation/commands/get-sound-generation-price.command.d.ts +24 -0
- 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 +94 -0
- package/build/sound-generation/commands/retry-sound-generation-job.command.js +20 -0
- package/build/sound-generation/commands/set-reaction-to-sound-generation-job.command.d.ts +87 -0
- package/build/sound-generation/commands/set-reaction-to-sound-generation-job.command.js +27 -0
- package/build/sound-generation/commands/sound-generation.command.d.ts +96 -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 +85 -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 +85 -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/sound-generation/enums/index.js +17 -0
- 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/index.d.ts +5 -0
- package/build/sound-generation/index.js +21 -0
- package/build/sound-generation/models/index.d.ts +5 -0
- package/build/sound-generation/models/index.js +21 -0
- 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 +39 -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 +7 -0
- package/build/sound-generation/models/sound-generation-result.schema.js +9 -0
- package/build/sound-generation/queries/find-sound-generation-job-by-id.query.d.ts +84 -0
- package/build/sound-generation/queries/find-sound-generation-job-by-id.query.js +15 -0
- package/build/sound-generation/queries/find-sound-generation-jobs.query.d.ts +102 -0
- package/build/sound-generation/queries/find-sound-generation-jobs.query.js +35 -0
- 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/sound-generation/queries/index.js +19 -0
- package/build/sound-generation/routes/index.d.ts +1 -0
- package/build/sound-generation/routes/index.js +17 -0
- 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 -1
- package/build/tools/enums/tool-content-type.enum.js +1 -0
- package/build/tools/enums/tool-type.enum.d.ts +2 -1
- package/build/tools/enums/tool-type.enum.js +1 -0
- package/build/tools/models/global-tools-config.schema.d.ts +32 -0
- package/build/tools/models/global-tools-config.schema.js +2 -0
- package/build/tools/models/tools-with-configs.schema.d.ts +88 -0
- package/build/tools/models/tools-with-configs.schema.js +5 -0
- package/build/tools/queries/get-global-tools-config.query.d.ts +64 -0
- package/build/tools/queries/get-tools-with-configs.query.d.ts +88 -0
- package/package.json +1 -1
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FindSoundGenerationJobsQuery = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const common_1 = require("../../common");
|
|
6
|
+
const tools_1 = require("../../tools");
|
|
7
|
+
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
8
|
+
const models_1 = require("../models");
|
|
9
|
+
var FindSoundGenerationJobsQuery;
|
|
10
|
+
(function (FindSoundGenerationJobsQuery) {
|
|
11
|
+
FindSoundGenerationJobsQuery.RequestSchema = zod_1.z
|
|
12
|
+
.object({
|
|
13
|
+
userId: zod_1.z.string().uuid().optional(),
|
|
14
|
+
unregisteredUserId: zod_1.z.string().uuid().optional(),
|
|
15
|
+
scope: zod_1.z.nativeEnum(common_1.JOB_SCOPE).optional().default(common_1.JOB_SCOPE.TOOL),
|
|
16
|
+
title: zod_1.z.string().optional(),
|
|
17
|
+
isFavorite: zod_1.z.coerce.boolean().optional(),
|
|
18
|
+
createdAtSortOrder: zod_1.z.nativeEnum(tools_1.JOB_SORT).optional().default(tools_1.JOB_SORT.DESC),
|
|
19
|
+
status: zod_1.z.nativeEnum(tools_1.JOB_STATUS).optional(),
|
|
20
|
+
limit: zod_1.z.coerce.number().int().min(1).max(100).default(20),
|
|
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'],
|
|
28
|
+
});
|
|
29
|
+
FindSoundGenerationJobsQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(zod_1.z.object({
|
|
30
|
+
data: zod_1.z.array(models_1.SoundGenerationJobSchema),
|
|
31
|
+
page: zod_1.z.number(),
|
|
32
|
+
totalPages: zod_1.z.number(),
|
|
33
|
+
total: zod_1.z.number(),
|
|
34
|
+
}));
|
|
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 = {}));
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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
|
+
};
|
|
@@ -17,5 +17,6 @@ export declare enum TOOL_CONTENT_TYPE {
|
|
|
17
17
|
DIAGRAMS = "DIAGRAMS",
|
|
18
18
|
HTML_PAGE_BUILDER = "HTML_PAGE_BUILDER",
|
|
19
19
|
PHOTO_SESSIONS = "PHOTO_SESSIONS",
|
|
20
|
-
IMAGE_RECOGNITION = "IMAGE_RECOGNITION"
|
|
20
|
+
IMAGE_RECOGNITION = "IMAGE_RECOGNITION",
|
|
21
|
+
SOUND_GENERATION = "SOUND_GENERATION"
|
|
21
22
|
}
|
|
@@ -22,4 +22,5 @@ var TOOL_CONTENT_TYPE;
|
|
|
22
22
|
TOOL_CONTENT_TYPE["HTML_PAGE_BUILDER"] = "HTML_PAGE_BUILDER";
|
|
23
23
|
TOOL_CONTENT_TYPE["PHOTO_SESSIONS"] = "PHOTO_SESSIONS";
|
|
24
24
|
TOOL_CONTENT_TYPE["IMAGE_RECOGNITION"] = "IMAGE_RECOGNITION";
|
|
25
|
+
TOOL_CONTENT_TYPE["SOUND_GENERATION"] = "SOUND_GENERATION";
|
|
25
26
|
})(TOOL_CONTENT_TYPE || (exports.TOOL_CONTENT_TYPE = TOOL_CONTENT_TYPE = {}));
|
|
@@ -19,5 +19,6 @@ export declare enum TOOL_TYPE {
|
|
|
19
19
|
DIAGRAMS = "DIAGRAMS",
|
|
20
20
|
HTML_PAGE_BUILDER = "HTML_PAGE_BUILDER",
|
|
21
21
|
PHOTO_SESSION = "PHOTO_SESSION",
|
|
22
|
-
IMAGE_RECOGNITION = "IMAGE_RECOGNITION"
|
|
22
|
+
IMAGE_RECOGNITION = "IMAGE_RECOGNITION",
|
|
23
|
+
SOUND_GENERATION = "SOUND_GENERATION"
|
|
23
24
|
}
|
|
@@ -24,4 +24,5 @@ var TOOL_TYPE;
|
|
|
24
24
|
TOOL_TYPE["HTML_PAGE_BUILDER"] = "HTML_PAGE_BUILDER";
|
|
25
25
|
TOOL_TYPE["PHOTO_SESSION"] = "PHOTO_SESSION";
|
|
26
26
|
TOOL_TYPE["IMAGE_RECOGNITION"] = "IMAGE_RECOGNITION";
|
|
27
|
+
TOOL_TYPE["SOUND_GENERATION"] = "SOUND_GENERATION";
|
|
27
28
|
})(TOOL_TYPE || (exports.TOOL_TYPE = TOOL_TYPE = {}));
|
|
@@ -1029,5 +1029,37 @@ export declare const GlobalToolsConfigSchema: z.ZodObject<{
|
|
|
1029
1029
|
updatedAt: z.ZodDate;
|
|
1030
1030
|
}, z.core.$strip>>;
|
|
1031
1031
|
}, z.core.$strip>;
|
|
1032
|
+
SOUND_GENERATION: z.ZodObject<{
|
|
1033
|
+
models: z.ZodArray<z.ZodObject<{
|
|
1034
|
+
uuid: z.ZodString;
|
|
1035
|
+
title: z.ZodString;
|
|
1036
|
+
description: z.ZodString;
|
|
1037
|
+
aiModel: z.ZodString;
|
|
1038
|
+
pricePerSecond: z.ZodNumber;
|
|
1039
|
+
order: z.ZodNumber;
|
|
1040
|
+
status: z.ZodEnum<typeof import("../..").TOOL_MODEL_STATUS>;
|
|
1041
|
+
icons: z.ZodObject<{
|
|
1042
|
+
light: z.ZodObject<{
|
|
1043
|
+
svg: z.ZodString;
|
|
1044
|
+
png: z.ZodString;
|
|
1045
|
+
}, z.core.$strip>;
|
|
1046
|
+
dark: z.ZodObject<{
|
|
1047
|
+
svg: z.ZodString;
|
|
1048
|
+
png: z.ZodString;
|
|
1049
|
+
}, z.core.$strip>;
|
|
1050
|
+
}, z.core.$strip>;
|
|
1051
|
+
strategy: z.ZodEnum<typeof import("../..").SOUND_GENERATION_STRATEGY>;
|
|
1052
|
+
maxPromptLength: z.ZodNumber;
|
|
1053
|
+
params: z.ZodObject<{
|
|
1054
|
+
minDurationSeconds: z.ZodNumber;
|
|
1055
|
+
maxDurationSeconds: z.ZodNumber;
|
|
1056
|
+
durationStepSeconds: z.ZodNumber;
|
|
1057
|
+
maxVariations: z.ZodNumber;
|
|
1058
|
+
supportsLoop: z.ZodBoolean;
|
|
1059
|
+
}, z.core.$strip>;
|
|
1060
|
+
createdAt: z.ZodDate;
|
|
1061
|
+
updatedAt: z.ZodDate;
|
|
1062
|
+
}, z.core.$strip>>;
|
|
1063
|
+
}, z.core.$strip>;
|
|
1032
1064
|
}, z.core.$strip>;
|
|
1033
1065
|
export type GlobalToolsConfig = z.infer<typeof GlobalToolsConfigSchema>;
|
|
@@ -21,6 +21,7 @@ const diagrams_1 = require("../../diagrams");
|
|
|
21
21
|
const models_2 = require("../../html-page-builder/models");
|
|
22
22
|
const photo_sessions_1 = require("../../photo-sessions");
|
|
23
23
|
const image_recognition_1 = require("../../image-recognition");
|
|
24
|
+
const sound_generation_1 = require("../../sound-generation");
|
|
24
25
|
exports.GlobalToolsConfigSchema = zod_1.z.object({
|
|
25
26
|
[enums_1.TOOL_CONTENT_TYPE.VIDEO]: video_1.VideoConfigSchema,
|
|
26
27
|
[enums_1.TOOL_CONTENT_TYPE.MUSIC]: music_1.MusicConfigSchema,
|
|
@@ -40,4 +41,5 @@ exports.GlobalToolsConfigSchema = zod_1.z.object({
|
|
|
40
41
|
[enums_1.TOOL_CONTENT_TYPE.HTML_PAGE_BUILDER]: models_2.HtmlPageBuilderConfigSchema,
|
|
41
42
|
[enums_1.TOOL_CONTENT_TYPE.PHOTO_SESSIONS]: photo_sessions_1.PhotoSessionConfigSchema,
|
|
42
43
|
[enums_1.TOOL_CONTENT_TYPE.IMAGE_RECOGNITION]: image_recognition_1.ImageRecognitionConfigSchema,
|
|
44
|
+
[enums_1.TOOL_CONTENT_TYPE.SOUND_GENERATION]: sound_generation_1.SoundGenerationConfigSchema,
|
|
43
45
|
});
|
|
@@ -1168,6 +1168,50 @@ export declare const ToolWithConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
1168
1168
|
updatedAt: z.ZodDate;
|
|
1169
1169
|
}, z.core.$strip>>;
|
|
1170
1170
|
}, z.core.$strip>;
|
|
1171
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1172
|
+
uuid: z.ZodString;
|
|
1173
|
+
title: z.ZodString;
|
|
1174
|
+
description: z.ZodString;
|
|
1175
|
+
icon: z.ZodString;
|
|
1176
|
+
alias: z.ZodString;
|
|
1177
|
+
bgColor: z.ZodString;
|
|
1178
|
+
iconColor: z.ZodString;
|
|
1179
|
+
order: z.ZodNumber;
|
|
1180
|
+
createdAt: z.ZodDate;
|
|
1181
|
+
updatedAt: z.ZodDate;
|
|
1182
|
+
contentType: z.ZodLiteral<TOOL_CONTENT_TYPE.SOUND_GENERATION>;
|
|
1183
|
+
config: z.ZodObject<{
|
|
1184
|
+
models: z.ZodArray<z.ZodObject<{
|
|
1185
|
+
uuid: z.ZodString;
|
|
1186
|
+
title: z.ZodString;
|
|
1187
|
+
description: z.ZodString;
|
|
1188
|
+
aiModel: z.ZodString;
|
|
1189
|
+
pricePerSecond: z.ZodNumber;
|
|
1190
|
+
order: z.ZodNumber;
|
|
1191
|
+
status: z.ZodEnum<typeof import("../..").TOOL_MODEL_STATUS>;
|
|
1192
|
+
icons: z.ZodObject<{
|
|
1193
|
+
light: z.ZodObject<{
|
|
1194
|
+
svg: z.ZodString;
|
|
1195
|
+
png: z.ZodString;
|
|
1196
|
+
}, z.core.$strip>;
|
|
1197
|
+
dark: z.ZodObject<{
|
|
1198
|
+
svg: z.ZodString;
|
|
1199
|
+
png: z.ZodString;
|
|
1200
|
+
}, z.core.$strip>;
|
|
1201
|
+
}, z.core.$strip>;
|
|
1202
|
+
strategy: z.ZodEnum<typeof import("../..").SOUND_GENERATION_STRATEGY>;
|
|
1203
|
+
maxPromptLength: z.ZodNumber;
|
|
1204
|
+
params: z.ZodObject<{
|
|
1205
|
+
minDurationSeconds: z.ZodNumber;
|
|
1206
|
+
maxDurationSeconds: z.ZodNumber;
|
|
1207
|
+
durationStepSeconds: z.ZodNumber;
|
|
1208
|
+
maxVariations: z.ZodNumber;
|
|
1209
|
+
supportsLoop: z.ZodBoolean;
|
|
1210
|
+
}, z.core.$strip>;
|
|
1211
|
+
createdAt: z.ZodDate;
|
|
1212
|
+
updatedAt: z.ZodDate;
|
|
1213
|
+
}, z.core.$strip>>;
|
|
1214
|
+
}, z.core.$strip>;
|
|
1171
1215
|
}, z.core.$strip>], "contentType">;
|
|
1172
1216
|
export type ToolWithConfig = z.infer<typeof ToolWithConfigSchema>;
|
|
1173
1217
|
export declare const ToolsWithConfigsSchema: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -2338,5 +2382,49 @@ export declare const ToolsWithConfigsSchema: z.ZodArray<z.ZodDiscriminatedUnion<
|
|
|
2338
2382
|
updatedAt: z.ZodDate;
|
|
2339
2383
|
}, z.core.$strip>>;
|
|
2340
2384
|
}, z.core.$strip>;
|
|
2385
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2386
|
+
uuid: z.ZodString;
|
|
2387
|
+
title: z.ZodString;
|
|
2388
|
+
description: z.ZodString;
|
|
2389
|
+
icon: z.ZodString;
|
|
2390
|
+
alias: z.ZodString;
|
|
2391
|
+
bgColor: z.ZodString;
|
|
2392
|
+
iconColor: z.ZodString;
|
|
2393
|
+
order: z.ZodNumber;
|
|
2394
|
+
createdAt: z.ZodDate;
|
|
2395
|
+
updatedAt: z.ZodDate;
|
|
2396
|
+
contentType: z.ZodLiteral<TOOL_CONTENT_TYPE.SOUND_GENERATION>;
|
|
2397
|
+
config: z.ZodObject<{
|
|
2398
|
+
models: z.ZodArray<z.ZodObject<{
|
|
2399
|
+
uuid: z.ZodString;
|
|
2400
|
+
title: z.ZodString;
|
|
2401
|
+
description: z.ZodString;
|
|
2402
|
+
aiModel: z.ZodString;
|
|
2403
|
+
pricePerSecond: z.ZodNumber;
|
|
2404
|
+
order: z.ZodNumber;
|
|
2405
|
+
status: z.ZodEnum<typeof import("../..").TOOL_MODEL_STATUS>;
|
|
2406
|
+
icons: z.ZodObject<{
|
|
2407
|
+
light: z.ZodObject<{
|
|
2408
|
+
svg: z.ZodString;
|
|
2409
|
+
png: z.ZodString;
|
|
2410
|
+
}, z.core.$strip>;
|
|
2411
|
+
dark: z.ZodObject<{
|
|
2412
|
+
svg: z.ZodString;
|
|
2413
|
+
png: z.ZodString;
|
|
2414
|
+
}, z.core.$strip>;
|
|
2415
|
+
}, z.core.$strip>;
|
|
2416
|
+
strategy: z.ZodEnum<typeof import("../..").SOUND_GENERATION_STRATEGY>;
|
|
2417
|
+
maxPromptLength: z.ZodNumber;
|
|
2418
|
+
params: z.ZodObject<{
|
|
2419
|
+
minDurationSeconds: z.ZodNumber;
|
|
2420
|
+
maxDurationSeconds: z.ZodNumber;
|
|
2421
|
+
durationStepSeconds: z.ZodNumber;
|
|
2422
|
+
maxVariations: z.ZodNumber;
|
|
2423
|
+
supportsLoop: z.ZodBoolean;
|
|
2424
|
+
}, z.core.$strip>;
|
|
2425
|
+
createdAt: z.ZodDate;
|
|
2426
|
+
updatedAt: z.ZodDate;
|
|
2427
|
+
}, z.core.$strip>>;
|
|
2428
|
+
}, z.core.$strip>;
|
|
2341
2429
|
}, z.core.$strip>], "contentType">>;
|
|
2342
2430
|
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);
|
|
@@ -1036,6 +1036,38 @@ export declare namespace GetGlobalToolsConfigQuery {
|
|
|
1036
1036
|
updatedAt: Date;
|
|
1037
1037
|
}[];
|
|
1038
1038
|
};
|
|
1039
|
+
SOUND_GENERATION: {
|
|
1040
|
+
models: {
|
|
1041
|
+
uuid: string;
|
|
1042
|
+
title: string;
|
|
1043
|
+
description: string;
|
|
1044
|
+
aiModel: string;
|
|
1045
|
+
pricePerSecond: number;
|
|
1046
|
+
order: number;
|
|
1047
|
+
status: import("../..").TOOL_MODEL_STATUS;
|
|
1048
|
+
icons: {
|
|
1049
|
+
light: {
|
|
1050
|
+
svg: string;
|
|
1051
|
+
png: string;
|
|
1052
|
+
};
|
|
1053
|
+
dark: {
|
|
1054
|
+
svg: string;
|
|
1055
|
+
png: string;
|
|
1056
|
+
};
|
|
1057
|
+
};
|
|
1058
|
+
strategy: import("../..").SOUND_GENERATION_STRATEGY.ELEVENLABS_SOUND_GENERATION;
|
|
1059
|
+
maxPromptLength: number;
|
|
1060
|
+
params: {
|
|
1061
|
+
minDurationSeconds: number;
|
|
1062
|
+
maxDurationSeconds: number;
|
|
1063
|
+
durationStepSeconds: number;
|
|
1064
|
+
maxVariations: number;
|
|
1065
|
+
supportsLoop: boolean;
|
|
1066
|
+
};
|
|
1067
|
+
createdAt: Date;
|
|
1068
|
+
updatedAt: Date;
|
|
1069
|
+
}[];
|
|
1070
|
+
};
|
|
1039
1071
|
}, unknown, z.core.$ZodTypeInternals<{
|
|
1040
1072
|
VIDEO: {
|
|
1041
1073
|
vendors: {
|
|
@@ -2066,6 +2098,38 @@ export declare namespace GetGlobalToolsConfigQuery {
|
|
|
2066
2098
|
updatedAt: Date;
|
|
2067
2099
|
}[];
|
|
2068
2100
|
};
|
|
2101
|
+
SOUND_GENERATION: {
|
|
2102
|
+
models: {
|
|
2103
|
+
uuid: string;
|
|
2104
|
+
title: string;
|
|
2105
|
+
description: string;
|
|
2106
|
+
aiModel: string;
|
|
2107
|
+
pricePerSecond: number;
|
|
2108
|
+
order: number;
|
|
2109
|
+
status: import("../..").TOOL_MODEL_STATUS;
|
|
2110
|
+
icons: {
|
|
2111
|
+
light: {
|
|
2112
|
+
svg: string;
|
|
2113
|
+
png: string;
|
|
2114
|
+
};
|
|
2115
|
+
dark: {
|
|
2116
|
+
svg: string;
|
|
2117
|
+
png: string;
|
|
2118
|
+
};
|
|
2119
|
+
};
|
|
2120
|
+
strategy: import("../..").SOUND_GENERATION_STRATEGY.ELEVENLABS_SOUND_GENERATION;
|
|
2121
|
+
maxPromptLength: number;
|
|
2122
|
+
params: {
|
|
2123
|
+
minDurationSeconds: number;
|
|
2124
|
+
maxDurationSeconds: number;
|
|
2125
|
+
durationStepSeconds: number;
|
|
2126
|
+
maxVariations: number;
|
|
2127
|
+
supportsLoop: boolean;
|
|
2128
|
+
};
|
|
2129
|
+
createdAt: Date;
|
|
2130
|
+
updatedAt: Date;
|
|
2131
|
+
}[];
|
|
2132
|
+
};
|
|
2069
2133
|
}, unknown>>>;
|
|
2070
2134
|
code: z.ZodOptional<z.ZodString>;
|
|
2071
2135
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -1174,6 +1174,50 @@ export declare namespace GetToolsWithConfigsQuery {
|
|
|
1174
1174
|
updatedAt: Date;
|
|
1175
1175
|
}[];
|
|
1176
1176
|
};
|
|
1177
|
+
} | {
|
|
1178
|
+
uuid: string;
|
|
1179
|
+
title: string;
|
|
1180
|
+
description: string;
|
|
1181
|
+
icon: string;
|
|
1182
|
+
alias: string;
|
|
1183
|
+
bgColor: string;
|
|
1184
|
+
iconColor: string;
|
|
1185
|
+
order: number;
|
|
1186
|
+
createdAt: Date;
|
|
1187
|
+
updatedAt: Date;
|
|
1188
|
+
contentType: import("..").TOOL_CONTENT_TYPE.SOUND_GENERATION;
|
|
1189
|
+
config: {
|
|
1190
|
+
models: {
|
|
1191
|
+
uuid: string;
|
|
1192
|
+
title: string;
|
|
1193
|
+
description: string;
|
|
1194
|
+
aiModel: string;
|
|
1195
|
+
pricePerSecond: number;
|
|
1196
|
+
order: number;
|
|
1197
|
+
status: import("../..").TOOL_MODEL_STATUS;
|
|
1198
|
+
icons: {
|
|
1199
|
+
light: {
|
|
1200
|
+
svg: string;
|
|
1201
|
+
png: string;
|
|
1202
|
+
};
|
|
1203
|
+
dark: {
|
|
1204
|
+
svg: string;
|
|
1205
|
+
png: string;
|
|
1206
|
+
};
|
|
1207
|
+
};
|
|
1208
|
+
strategy: import("../..").SOUND_GENERATION_STRATEGY.ELEVENLABS_SOUND_GENERATION;
|
|
1209
|
+
maxPromptLength: number;
|
|
1210
|
+
params: {
|
|
1211
|
+
minDurationSeconds: number;
|
|
1212
|
+
maxDurationSeconds: number;
|
|
1213
|
+
durationStepSeconds: number;
|
|
1214
|
+
maxVariations: number;
|
|
1215
|
+
supportsLoop: boolean;
|
|
1216
|
+
};
|
|
1217
|
+
createdAt: Date;
|
|
1218
|
+
updatedAt: Date;
|
|
1219
|
+
}[];
|
|
1220
|
+
};
|
|
1177
1221
|
})[], unknown, z.core.$ZodTypeInternals<({
|
|
1178
1222
|
uuid: string;
|
|
1179
1223
|
title: string;
|
|
@@ -2342,6 +2386,50 @@ export declare namespace GetToolsWithConfigsQuery {
|
|
|
2342
2386
|
updatedAt: Date;
|
|
2343
2387
|
}[];
|
|
2344
2388
|
};
|
|
2389
|
+
} | {
|
|
2390
|
+
uuid: string;
|
|
2391
|
+
title: string;
|
|
2392
|
+
description: string;
|
|
2393
|
+
icon: string;
|
|
2394
|
+
alias: string;
|
|
2395
|
+
bgColor: string;
|
|
2396
|
+
iconColor: string;
|
|
2397
|
+
order: number;
|
|
2398
|
+
createdAt: Date;
|
|
2399
|
+
updatedAt: Date;
|
|
2400
|
+
contentType: import("..").TOOL_CONTENT_TYPE.SOUND_GENERATION;
|
|
2401
|
+
config: {
|
|
2402
|
+
models: {
|
|
2403
|
+
uuid: string;
|
|
2404
|
+
title: string;
|
|
2405
|
+
description: string;
|
|
2406
|
+
aiModel: string;
|
|
2407
|
+
pricePerSecond: number;
|
|
2408
|
+
order: number;
|
|
2409
|
+
status: import("../..").TOOL_MODEL_STATUS;
|
|
2410
|
+
icons: {
|
|
2411
|
+
light: {
|
|
2412
|
+
svg: string;
|
|
2413
|
+
png: string;
|
|
2414
|
+
};
|
|
2415
|
+
dark: {
|
|
2416
|
+
svg: string;
|
|
2417
|
+
png: string;
|
|
2418
|
+
};
|
|
2419
|
+
};
|
|
2420
|
+
strategy: import("../..").SOUND_GENERATION_STRATEGY.ELEVENLABS_SOUND_GENERATION;
|
|
2421
|
+
maxPromptLength: number;
|
|
2422
|
+
params: {
|
|
2423
|
+
minDurationSeconds: number;
|
|
2424
|
+
maxDurationSeconds: number;
|
|
2425
|
+
durationStepSeconds: number;
|
|
2426
|
+
maxVariations: number;
|
|
2427
|
+
supportsLoop: boolean;
|
|
2428
|
+
};
|
|
2429
|
+
createdAt: Date;
|
|
2430
|
+
updatedAt: Date;
|
|
2431
|
+
}[];
|
|
2432
|
+
};
|
|
2345
2433
|
})[], unknown>>>;
|
|
2346
2434
|
code: z.ZodOptional<z.ZodString>;
|
|
2347
2435
|
message: z.ZodOptional<z.ZodString>;
|