@purpleschool/gptbot-tools 0.2.63-stage2 → 0.2.64
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/image-generation/enums/image-generation-model-strategy.enum.d.ts +2 -1
- package/build/image-generation/enums/image-generation-model-strategy.enum.js +2 -0
- 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} +2 -2
- 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 +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/{photo-sessions/commands/set-reaction-to-photo-sessions-job.command.js → sound-generation/commands/set-reaction-to-sound-generation-job.command.js} +8 -8
- 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/{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 -5
- 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/{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 -3
- 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/events/tool-job-complete.event.d.ts +0 -1
- package/build/tools/events/tool-job-failed.event.d.ts +0 -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/tool-group.schema.d.ts +1 -0
- package/build/tools/models/tool-group.schema.js +1 -0
- package/build/tools/models/tool-job.schema.d.ts +0 -1
- package/build/tools/models/tool-job.schema.js +0 -1
- 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/find-grouped-tools.query.d.ts +2 -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 -7
- package/build/tts/models/index.js +0 -7
- 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/build/video/enums/video-strategy.enum.d.ts +2 -1
- package/build/video/enums/video-strategy.enum.js +1 -0
- 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 -54
- package/build/photo-sessions/commands/admin/update-photo-session-style.command.js +0 -18
- package/build/photo-sessions/commands/delete-all-photo-sessions-jobs.command.js +0 -19
- 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 -85
- package/build/photo-sessions/commands/get-photo-sessions-price.command.js +0 -29
- 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 -305
- package/build/photo-sessions/commands/photo-sessions.command.js +0 -38
- package/build/photo-sessions/commands/retry-photo-sessions-job.command.d.ts +0 -266
- package/build/photo-sessions/commands/retry-photo-sessions-job.command.js +0 -20
- package/build/photo-sessions/commands/set-reaction-to-photo-sessions-job.command.d.ts +0 -203
- package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.d.ts +0 -201
- 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 -239
- 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 -206
- package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.js +0 -26
- package/build/photo-sessions/enums/index.d.ts +0 -3
- package/build/photo-sessions/enums/photo-session-group-status.enum.d.ts +0 -7
- package/build/photo-sessions/enums/photo-session-group-status.enum.js +0 -11
- 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 -5
- 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-group.schema.d.ts +0 -116
- package/build/photo-sessions/models/photo-session-group.schema.js +0 -27
- package/build/photo-sessions/models/photo-session-job.schema.d.ts +0 -169
- package/build/photo-sessions/models/photo-session-job.schema.js +0 -51
- 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 -238
- package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.js +0 -18
- package/build/photo-sessions/queries/find-photo-sessions-jobs.query.d.ts +0 -257
- package/build/photo-sessions/queries/find-photo-sessions-jobs.query.js +0 -33
- 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 -81
- package/build/tts/commands/create-voice-clone.command.js +0 -21
- package/build/tts/commands/create-voice-design.command.d.ts +0 -40
- package/build/tts/commands/create-voice-design.command.js +0 -20
- 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 -77
- package/build/tts/commands/select-voice-design.command.js +0 -17
- package/build/tts/commands/update-voice.command.d.ts +0 -78
- package/build/tts/commands/update-voice.command.js +0 -18
- 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 -13
- package/build/tts/models/voice-design-draft.schema.js +0 -13
- 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-gender.schema.d.ts +0 -7
- package/build/tts/models/voice-gender.schema.js +0 -9
- package/build/tts/models/voice-source.schema.d.ts +0 -7
- package/build/tts/models/voice-source.schema.js +0 -9
- 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 -34
- package/build/tts/models/voice.schema.js +0 -30
- package/build/tts/queries/find-voice-by-id.query.d.ts +0 -77
- package/build/tts/queries/find-voice-by-id.query.js +0 -17
- package/build/tts/queries/find-voices.query.d.ts +0 -122
- 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
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { JOB_SCOPE } from '../../common';
|
|
3
|
+
import { JOB_SORT, JOB_STATUS } from '../../tools';
|
|
4
|
+
export declare namespace FindSoundGenerationJobsQuery {
|
|
5
|
+
const RequestSchema: z.ZodObject<{
|
|
6
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
7
|
+
unregisteredUserId: z.ZodOptional<z.ZodString>;
|
|
8
|
+
scope: z.ZodDefault<z.ZodOptional<z.ZodEnum<typeof JOB_SCOPE>>>;
|
|
9
|
+
title: z.ZodOptional<z.ZodString>;
|
|
10
|
+
isFavorite: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
11
|
+
createdAtSortOrder: z.ZodDefault<z.ZodOptional<z.ZodEnum<typeof JOB_SORT>>>;
|
|
12
|
+
status: z.ZodOptional<z.ZodEnum<typeof JOB_STATUS>>;
|
|
13
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
14
|
+
offset: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
17
|
+
const ResponseSchema: z.ZodObject<{
|
|
18
|
+
isSuccess: z.ZodBoolean;
|
|
19
|
+
data: z.ZodOptional<z.ZodType<{
|
|
20
|
+
data: {
|
|
21
|
+
uuid: string;
|
|
22
|
+
prompt: string;
|
|
23
|
+
title: string;
|
|
24
|
+
status: JOB_STATUS;
|
|
25
|
+
error: string | null;
|
|
26
|
+
internalError?: string | null | undefined;
|
|
27
|
+
modelId: string;
|
|
28
|
+
price: number;
|
|
29
|
+
params: {
|
|
30
|
+
durationInSeconds?: number | undefined;
|
|
31
|
+
variations: number;
|
|
32
|
+
loop: boolean;
|
|
33
|
+
promptInfluence: number;
|
|
34
|
+
};
|
|
35
|
+
results: {
|
|
36
|
+
uuid: string;
|
|
37
|
+
audioUrl: string;
|
|
38
|
+
duration: number;
|
|
39
|
+
}[];
|
|
40
|
+
attempts: unknown[];
|
|
41
|
+
reaction: import("../..").USER_REACTION | null;
|
|
42
|
+
dislikeReason: string | null;
|
|
43
|
+
scope: JOB_SCOPE;
|
|
44
|
+
locale: string;
|
|
45
|
+
processingAttemptId?: string | null | undefined;
|
|
46
|
+
userId?: string | null | undefined;
|
|
47
|
+
unregisteredUserId?: string | null | undefined;
|
|
48
|
+
tokenReservationId?: string | null | undefined;
|
|
49
|
+
isDeleted: boolean;
|
|
50
|
+
isFavorite: boolean;
|
|
51
|
+
createdAt: Date;
|
|
52
|
+
completedAt?: Date | null | undefined;
|
|
53
|
+
updatedAt: Date;
|
|
54
|
+
}[];
|
|
55
|
+
page: number;
|
|
56
|
+
totalPages: number;
|
|
57
|
+
total: number;
|
|
58
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
59
|
+
data: {
|
|
60
|
+
uuid: string;
|
|
61
|
+
prompt: string;
|
|
62
|
+
title: string;
|
|
63
|
+
status: JOB_STATUS;
|
|
64
|
+
error: string | null;
|
|
65
|
+
internalError?: string | null | undefined;
|
|
66
|
+
modelId: string;
|
|
67
|
+
price: number;
|
|
68
|
+
params: {
|
|
69
|
+
durationInSeconds?: number | undefined;
|
|
70
|
+
variations: number;
|
|
71
|
+
loop: boolean;
|
|
72
|
+
promptInfluence: number;
|
|
73
|
+
};
|
|
74
|
+
results: {
|
|
75
|
+
uuid: string;
|
|
76
|
+
audioUrl: string;
|
|
77
|
+
duration: number;
|
|
78
|
+
}[];
|
|
79
|
+
attempts: unknown[];
|
|
80
|
+
reaction: import("../..").USER_REACTION | null;
|
|
81
|
+
dislikeReason: string | null;
|
|
82
|
+
scope: JOB_SCOPE;
|
|
83
|
+
locale: string;
|
|
84
|
+
processingAttemptId?: string | null | undefined;
|
|
85
|
+
userId?: string | null | undefined;
|
|
86
|
+
unregisteredUserId?: string | null | undefined;
|
|
87
|
+
tokenReservationId?: string | null | undefined;
|
|
88
|
+
isDeleted: boolean;
|
|
89
|
+
isFavorite: boolean;
|
|
90
|
+
createdAt: Date;
|
|
91
|
+
completedAt?: Date | null | undefined;
|
|
92
|
+
updatedAt: Date;
|
|
93
|
+
}[];
|
|
94
|
+
page: number;
|
|
95
|
+
totalPages: number;
|
|
96
|
+
total: number;
|
|
97
|
+
}, unknown>>>;
|
|
98
|
+
code: z.ZodOptional<z.ZodString>;
|
|
99
|
+
message: z.ZodOptional<z.ZodString>;
|
|
100
|
+
}, z.core.$strip>;
|
|
101
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
102
|
+
}
|
|
@@ -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 = {}));
|
|
@@ -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,6 +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);
|
|
19
|
-
__exportStar(require("./photo-session-group-status.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 = {}));
|
|
@@ -9,7 +9,6 @@ export declare namespace ToolJobCompleteEvent {
|
|
|
9
9
|
unregisteredUserId: z.ZodNullable<z.ZodString>;
|
|
10
10
|
price: z.ZodNumber;
|
|
11
11
|
tokenReservationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
-
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
13
12
|
createdAt: z.ZodDate;
|
|
14
13
|
updatedAt: z.ZodDate;
|
|
15
14
|
toolType: z.ZodEnum<typeof TOOL_TYPE>;
|
|
@@ -8,7 +8,6 @@ export declare namespace ToolJobFailedEvent {
|
|
|
8
8
|
unregisteredUserId: z.ZodNullable<z.ZodString>;
|
|
9
9
|
price: z.ZodNumber;
|
|
10
10
|
tokenReservationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
-
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
12
11
|
createdAt: z.ZodDate;
|
|
13
12
|
updatedAt: z.ZodDate;
|
|
14
13
|
toolType: z.ZodEnum<typeof 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
|
});
|
|
@@ -5,7 +5,6 @@ export declare const ToolJobSchema: z.ZodObject<{
|
|
|
5
5
|
unregisteredUserId: z.ZodNullable<z.ZodString>;
|
|
6
6
|
price: z.ZodNumber;
|
|
7
7
|
tokenReservationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
-
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
9
8
|
createdAt: z.ZodDate;
|
|
10
9
|
updatedAt: z.ZodDate;
|
|
11
10
|
}, z.core.$strip>;
|
|
@@ -8,7 +8,6 @@ exports.ToolJobSchema = zod_1.z.object({
|
|
|
8
8
|
unregisteredUserId: zod_1.z.string().nullable(),
|
|
9
9
|
price: zod_1.z.number(),
|
|
10
10
|
tokenReservationId: zod_1.z.string().nullable().optional(),
|
|
11
|
-
idempotencyKey: zod_1.z.string().optional(),
|
|
12
11
|
createdAt: zod_1.z.date(),
|
|
13
12
|
updatedAt: zod_1.z.date(),
|
|
14
13
|
});
|