@purpleschool/gptbot 0.14.60-stage2 → 0.15.56
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/api/controllers/http/index.d.ts +1 -1
- package/build/api/controllers/http/index.js +1 -1
- package/build/api/controllers/http/{photo-session.d.ts → sound-generation.d.ts} +3 -9
- package/build/api/controllers/http/sound-generation.js +17 -0
- package/build/api/controllers/http/tts.d.ts +0 -9
- package/build/api/controllers/http/tts.js +0 -9
- package/build/api/routes.d.ts +24 -44
- package/build/api/routes.js +24 -44
- package/build/commands/ai-model/create-ai-model.command.d.ts +6 -0
- package/build/commands/ai-model/find-ai-model.command.d.ts +6 -0
- package/build/commands/ai-model/find-ai-models-available-to-user.comand.d.ts +3 -0
- package/build/commands/ai-model/find-formatted-ai-model.command.d.ts +6 -0
- package/build/commands/ai-model/update-ai-model.command.d.ts +6 -0
- package/build/commands/ai-studio/canvas-node/find-canvas-node-definitions-with-configs.query.d.ts +3 -11
- package/build/commands/ai-studio/canvas-tool/text-gen/get-text-generation-config.command.d.ts +3 -0
- package/build/commands/ai-studio/canvas-tool/var-gen/get-var-gen-config.command.d.ts +3 -0
- package/build/commands/b2b/get-b2b-documentation.command.d.ts +6 -0
- package/build/commands/page/find-page-by-alias.command.d.ts +6 -0
- package/build/commands/page/find-page.command.d.ts +3 -0
- package/build/commands/page/find-pages-by-criteria.command.d.ts +6 -0
- package/build/commands/payment/receipt.command.d.ts +3 -3
- package/build/commands/subscription/buy-subscription.command.d.ts +4 -4
- package/build/commands/subscription/buy-subscription.command.js +1 -1
- package/build/commands/subscription/upgrade-subscription.command.d.ts +3 -3
- package/build/commands/subscription/upgrade-subscription.command.js +1 -1
- package/build/commands/tools/index.d.ts +1 -1
- package/build/commands/tools/index.js +1 -1
- package/build/commands/tools/{photo-session/delete-all-photo-session-jobs.command.d.ts → sound-generation/delete-all-sound-generation-jobs.command.d.ts} +1 -1
- package/build/commands/tools/sound-generation/delete-all-sound-generation-jobs.command.js +8 -0
- package/build/commands/tools/{photo-session/admin/delete-photo-session-style.command.d.ts → sound-generation/delete-sound-generation-job-by-uuid.command.d.ts} +2 -2
- package/build/commands/tools/sound-generation/delete-sound-generation-job-by-uuid.command.js +11 -0
- package/build/commands/tools/sound-generation/find-sound-generation-job-by-uuid.command.d.ts +37 -0
- package/build/commands/tools/sound-generation/find-sound-generation-job-by-uuid.command.js +14 -0
- package/build/commands/tools/sound-generation/find-sound-generation-jobs.command.d.ts +46 -0
- package/build/commands/tools/sound-generation/find-sound-generation-jobs.command.js +24 -0
- package/build/commands/tools/sound-generation/get-sound-generation-tool-config.command.d.ts +43 -0
- package/build/commands/tools/sound-generation/get-sound-generation-tool-config.command.js +11 -0
- package/build/commands/tools/sound-generation/index.d.ts +10 -0
- package/build/commands/tools/{photo-session/admin → sound-generation}/index.js +10 -3
- package/build/commands/tools/sound-generation/retry-sound-generation-job.command.d.ts +48 -0
- package/build/commands/tools/sound-generation/retry-sound-generation-job.command.js +19 -0
- package/build/commands/tools/sound-generation/set-reaction-to-sound-generation-job.command.d.ts +43 -0
- package/build/commands/tools/sound-generation/set-reaction-to-sound-generation-job.command.js +23 -0
- package/build/commands/tools/sound-generation/sound-generation.command.d.ts +44 -0
- package/build/commands/tools/sound-generation/sound-generation.command.js +16 -0
- package/build/commands/tools/sound-generation/update-sound-generation-job-favorite.command.d.ts +41 -0
- package/build/commands/tools/sound-generation/update-sound-generation-job-favorite.command.js +17 -0
- package/build/commands/tools/sound-generation/update-sound-generation-job-title.command.d.ts +41 -0
- package/build/commands/tools/sound-generation/update-sound-generation-job-title.command.js +17 -0
- package/build/commands/tools/tts/find-tts-job-by-uuid.command.d.ts +1 -13
- package/build/commands/tools/tts/find-tts-jobs.command.d.ts +1 -13
- package/build/commands/tools/tts/get-tts-tool-config.command.d.ts +0 -11
- package/build/commands/tools/tts/index.d.ts +0 -9
- package/build/commands/tools/tts/index.js +0 -9
- package/build/commands/tools/tts/retry-tts-job.command.d.ts +1 -13
- package/build/commands/tools/tts/set-reaction-to-tts-job.command.d.ts +1 -13
- package/build/commands/tools/tts/tts.command.d.ts +1 -6
- package/build/commands/tools/tts/tts.command.js +1 -7
- package/build/commands/tools/tts/update-tts-job-favorite.command.d.ts +1 -13
- package/build/commands/tools/tts/update-tts-job-title.command.d.ts +1 -13
- package/build/constants/ai-model/enums/ai-model-config-selector-type.enum.d.ts +2 -1
- package/build/constants/ai-model/enums/ai-model-config-selector-type.enum.js +1 -0
- package/build/constants/cabinet/enums/statistics-request-type.enum.d.ts +1 -0
- package/build/constants/cabinet/enums/statistics-request-type.enum.js +1 -0
- package/build/constants/cloud-payments/index.d.ts +5 -0
- package/build/constants/cloud-payments/index.js +7 -1
- package/build/constants/index.d.ts +0 -2
- package/build/constants/index.js +0 -2
- package/build/helpers/index.d.ts +0 -1
- package/build/helpers/index.js +0 -1
- package/build/models/ai-model-config.schema.d.ts +7 -0
- package/build/models/ai-model-config.schema.js +6 -1
- package/build/models/ai-model-formatted.schema.d.ts +3 -0
- package/build/models/ai-model.schema.d.ts +9 -0
- package/build/models/canvas-node-definition.schema.d.ts +12 -33
- package/build/models/cloud-payments-receipt.schema.d.ts +1 -1
- package/build/models/cloud-payments-receipt.schema.js +1 -1
- package/build/models/tools/index.d.ts +1 -1
- package/build/models/tools/index.js +1 -1
- package/build/models/tools/sound-generation/index.d.ts +5 -0
- package/build/{constants/tool-photo-session/enums → models/tools/sound-generation}/index.js +5 -3
- package/build/models/tools/sound-generation/sound-generation-config.schema.d.ts +39 -0
- package/build/models/tools/sound-generation/sound-generation-config.schema.js +8 -0
- package/build/models/tools/sound-generation/sound-generation-job.schema.d.ts +30 -0
- package/build/models/tools/sound-generation/sound-generation-job.schema.js +20 -0
- package/build/models/tools/sound-generation/sound-generation-model.schema.d.ts +49 -0
- package/build/models/tools/sound-generation/sound-generation-model.schema.js +35 -0
- package/build/models/tools/sound-generation/sound-generation-params.schema.d.ts +8 -0
- package/build/models/tools/sound-generation/sound-generation-params.schema.js +10 -0
- package/build/models/tools/sound-generation/sound-generation-result.schema.d.ts +7 -0
- package/build/models/tools/sound-generation/sound-generation-result.schema.js +9 -0
- package/build/models/tools/tts/index.d.ts +0 -3
- package/build/models/tools/tts/index.js +0 -3
- package/build/models/tools/tts/tts-config.schema.d.ts +0 -23
- package/build/models/tools/tts/tts-config.schema.js +1 -14
- package/build/models/tools/tts/tts-job.schema.d.ts +1 -26
- package/build/models/tools/tts/tts-job.schema.js +2 -16
- package/build/models/tools/tts/tts-model.schema.d.ts +0 -1
- package/build/models/tools/tts/tts-model.schema.js +0 -1
- package/package.json +1 -1
- package/build/api/controllers/http/photo-session.js +0 -23
- package/build/commands/tools/photo-session/admin/create-photo-session-style.command.d.ts +0 -39
- package/build/commands/tools/photo-session/admin/create-photo-session-style.command.js +0 -26
- package/build/commands/tools/photo-session/admin/delete-photo-session-style.command.js +0 -11
- package/build/commands/tools/photo-session/admin/index.d.ts +0 -3
- package/build/commands/tools/photo-session/admin/update-photo-session-style.command.d.ts +0 -45
- package/build/commands/tools/photo-session/admin/update-photo-session-style.command.js +0 -36
- package/build/commands/tools/photo-session/delete-all-photo-session-jobs.command.js +0 -8
- package/build/commands/tools/photo-session/delete-photo-session-job-by-uuid.command.d.ts +0 -9
- package/build/commands/tools/photo-session/delete-photo-session-job-by-uuid.command.js +0 -11
- package/build/commands/tools/photo-session/find-photo-session-job-by-uuid.command.d.ts +0 -63
- package/build/commands/tools/photo-session/find-photo-session-job-by-uuid.command.js +0 -14
- package/build/commands/tools/photo-session/find-photo-session-jobs.command.d.ts +0 -72
- package/build/commands/tools/photo-session/find-photo-session-jobs.command.js +0 -24
- package/build/commands/tools/photo-session/get-photo-session-config.command.d.ts +0 -76
- package/build/commands/tools/photo-session/get-photo-session-config.command.js +0 -11
- package/build/commands/tools/photo-session/get-photo-session-price.command.d.ts +0 -32
- package/build/commands/tools/photo-session/get-photo-session-price.command.js +0 -27
- package/build/commands/tools/photo-session/index.d.ts +0 -12
- package/build/commands/tools/photo-session/index.js +0 -28
- package/build/commands/tools/photo-session/photo-session.command.d.ts +0 -83
- package/build/commands/tools/photo-session/photo-session.command.js +0 -27
- package/build/commands/tools/photo-session/retry-photo-session-job.command.d.ts +0 -87
- package/build/commands/tools/photo-session/retry-photo-session-job.command.js +0 -32
- package/build/commands/tools/photo-session/set-reaction-to-photo-session-job.command.d.ts +0 -69
- package/build/commands/tools/photo-session/set-reaction-to-photo-session-job.command.js +0 -28
- package/build/commands/tools/photo-session/update-photo-session-job-favorite.command.d.ts +0 -67
- package/build/commands/tools/photo-session/update-photo-session-job-favorite.command.js +0 -17
- package/build/commands/tools/photo-session/update-photo-session-job-title.command.d.ts +0 -67
- package/build/commands/tools/photo-session/update-photo-session-job-title.command.js +0 -17
- package/build/commands/tools/tts/create-voice-clone.command.d.ts +0 -32
- package/build/commands/tools/tts/create-voice-clone.command.js +0 -17
- package/build/commands/tools/tts/create-voice-design.command.d.ts +0 -22
- package/build/commands/tools/tts/create-voice-design.command.js +0 -17
- package/build/commands/tools/tts/delete-voice.command.d.ts +0 -9
- package/build/commands/tools/tts/delete-voice.command.js +0 -11
- package/build/commands/tools/tts/download-tts-job.command.d.ts +0 -18
- package/build/commands/tools/tts/download-tts-job.command.js +0 -17
- package/build/commands/tools/tts/find-voice-by-uuid.query.d.ts +0 -29
- package/build/commands/tools/tts/find-voice-by-uuid.query.js +0 -14
- package/build/commands/tools/tts/find-voices.query.d.ts +0 -37
- package/build/commands/tools/tts/find-voices.query.js +0 -18
- package/build/commands/tools/tts/improve-tts-text.command.d.ts +0 -13
- package/build/commands/tools/tts/improve-tts-text.command.js +0 -13
- package/build/commands/tools/tts/select-voice-design.command.d.ts +0 -33
- package/build/commands/tools/tts/select-voice-design.command.js +0 -17
- package/build/commands/tools/tts/update-voice.command.d.ts +0 -33
- package/build/commands/tools/tts/update-voice.command.js +0 -17
- package/build/constants/tool-photo-session/enums/index.d.ts +0 -3
- package/build/constants/tool-photo-session/enums/photo-session-look-type.enum.d.ts +0 -5
- package/build/constants/tool-photo-session/enums/photo-session-look-type.enum.js +0 -9
- package/build/constants/tool-photo-session/enums/photo-session-model-type.enum.d.ts +0 -3
- package/build/constants/tool-photo-session/enums/photo-session-model-type.enum.js +0 -7
- package/build/constants/tool-photo-session/enums/photo-session-strategy.enum.d.ts +0 -4
- package/build/constants/tool-photo-session/enums/photo-session-strategy.enum.js +0 -8
- package/build/constants/tool-photo-session/index.d.ts +0 -1
- package/build/constants/tool-photo-session/index.js +0 -17
- package/build/constants/tool-tts/enums/index.d.ts +0 -7
- package/build/constants/tool-tts/enums/index.js +0 -23
- package/build/constants/tool-tts/enums/tts-download-format.enum.d.ts +0 -5
- package/build/constants/tool-tts/enums/tts-download-format.enum.js +0 -9
- package/build/constants/tool-tts/enums/voice-category.enum.d.ts +0 -14
- package/build/constants/tool-tts/enums/voice-category.enum.js +0 -18
- package/build/constants/tool-tts/enums/voice-gender.enum.d.ts +0 -4
- package/build/constants/tool-tts/enums/voice-gender.enum.js +0 -8
- package/build/constants/tool-tts/enums/voice-source.enum.d.ts +0 -5
- package/build/constants/tool-tts/enums/voice-source.enum.js +0 -9
- package/build/constants/tool-tts/enums/voice-status.enum.d.ts +0 -5
- package/build/constants/tool-tts/enums/voice-status.enum.js +0 -9
- package/build/constants/tool-tts/enums/voice-tag-group.enum.d.ts +0 -5
- package/build/constants/tool-tts/enums/voice-tag-group.enum.js +0 -9
- package/build/constants/tool-tts/enums/voice-tag.enum.d.ts +0 -20
- package/build/constants/tool-tts/enums/voice-tag.enum.js +0 -24
- package/build/constants/tool-tts/index.d.ts +0 -1
- package/build/constants/tool-tts/index.js +0 -17
- package/build/helpers/photo-session/calculate-photo-session-price.helper.d.ts +0 -6
- package/build/helpers/photo-session/calculate-photo-session-price.helper.js +0 -13
- package/build/helpers/photo-session/index.d.ts +0 -1
- package/build/helpers/photo-session/index.js +0 -17
- package/build/models/tools/photo-session/index.d.ts +0 -4
- package/build/models/tools/photo-session/index.js +0 -20
- package/build/models/tools/photo-session/photo-session-config.schema.d.ts +0 -77
- package/build/models/tools/photo-session/photo-session-config.schema.js +0 -16
- package/build/models/tools/photo-session/photo-session-job.schema.d.ts +0 -79
- package/build/models/tools/photo-session/photo-session-job.schema.js +0 -47
- package/build/models/tools/photo-session/photo-session-model.schema.d.ts +0 -73
- package/build/models/tools/photo-session/photo-session-model.schema.js +0 -45
- package/build/models/tools/photo-session/photo-session-style.schema.d.ts +0 -29
- package/build/models/tools/photo-session/photo-session-style.schema.js +0 -22
- package/build/models/tools/tts/voice-design-draft.schema.d.ts +0 -12
- package/build/models/tools/tts/voice-design-draft.schema.js +0 -12
- package/build/models/tools/tts/voice-design-sample.schema.d.ts +0 -6
- package/build/models/tools/tts/voice-design-sample.schema.js +0 -8
- package/build/models/tools/tts/voice.schema.d.ts +0 -22
- package/build/models/tools/tts/voice.schema.js +0 -24
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { BILLING_SCOPE, PAYMENT_PROVIDER } from '../../constants';
|
|
2
|
+
import { BILLING_SCOPE, CLOUD_PAYMENTS_RECURRENT_INTERVAL, PAYMENT_PROVIDER } from '../../constants';
|
|
3
3
|
export declare namespace UpgradeSubscriptionCommand {
|
|
4
4
|
const RequestSchema: z.ZodObject<{
|
|
5
5
|
upgradeSubscriptionId: z.ZodString;
|
|
@@ -39,7 +39,7 @@ export declare namespace UpgradeSubscriptionCommand {
|
|
|
39
39
|
}, z.core.$strip>;
|
|
40
40
|
recurrent: z.ZodObject<{
|
|
41
41
|
period: z.ZodNumber;
|
|
42
|
-
interval: z.
|
|
42
|
+
interval: z.ZodEnum<typeof CLOUD_PAYMENTS_RECURRENT_INTERVAL>;
|
|
43
43
|
amount: z.ZodNumber;
|
|
44
44
|
customerReceipt: z.ZodObject<{
|
|
45
45
|
items: z.ZodArray<z.ZodObject<{
|
|
@@ -99,7 +99,7 @@ export declare namespace UpgradeSubscriptionCommand {
|
|
|
99
99
|
}, z.core.$strip>;
|
|
100
100
|
recurrent: z.ZodObject<{
|
|
101
101
|
period: z.ZodNumber;
|
|
102
|
-
interval: z.
|
|
102
|
+
interval: z.ZodEnum<typeof CLOUD_PAYMENTS_RECURRENT_INTERVAL>;
|
|
103
103
|
amount: z.ZodNumber;
|
|
104
104
|
customerReceipt: z.ZodObject<{
|
|
105
105
|
items: z.ZodArray<z.ZodObject<{
|
|
@@ -44,7 +44,7 @@ var UpgradeSubscriptionCommand;
|
|
|
44
44
|
CustomerReceipt: IReceiptOrderSchema,
|
|
45
45
|
recurrent: zod_1.z.object({
|
|
46
46
|
period: zod_1.z.number(),
|
|
47
|
-
interval: zod_1.z.
|
|
47
|
+
interval: zod_1.z.nativeEnum(constants_1.CLOUD_PAYMENTS_RECURRENT_INTERVAL),
|
|
48
48
|
amount: zod_1.z.number(),
|
|
49
49
|
customerReceipt: IReceiptOrderSchema,
|
|
50
50
|
}),
|
|
@@ -32,5 +32,5 @@ __exportStar(require("./solving-edu-task"), exports);
|
|
|
32
32
|
__exportStar(require("./spell-corrector"), exports);
|
|
33
33
|
__exportStar(require("./html-page-builder"), exports);
|
|
34
34
|
__exportStar(require("./tool-workspace"), exports);
|
|
35
|
-
__exportStar(require("./photo-session"), exports);
|
|
36
35
|
__exportStar(require("./diagrams"), exports);
|
|
36
|
+
__exportStar(require("./sound-generation"), exports);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteAllSoundGenerationJobsCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var DeleteAllSoundGenerationJobsCommand;
|
|
6
|
+
(function (DeleteAllSoundGenerationJobsCommand) {
|
|
7
|
+
DeleteAllSoundGenerationJobsCommand.ResponseSchema = zod_1.z.void();
|
|
8
|
+
})(DeleteAllSoundGenerationJobsCommand || (exports.DeleteAllSoundGenerationJobsCommand = DeleteAllSoundGenerationJobsCommand = {}));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare namespace
|
|
2
|
+
export declare namespace DeleteSoundGenerationJobByUuidCommand {
|
|
3
3
|
const RequestParamsSchema: z.ZodObject<{
|
|
4
|
-
uuid: z.
|
|
4
|
+
uuid: z.ZodUUID;
|
|
5
5
|
}, z.core.$strip>;
|
|
6
6
|
type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
7
7
|
const ResponseSchema: z.ZodVoid;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteSoundGenerationJobByUuidCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var DeleteSoundGenerationJobByUuidCommand;
|
|
6
|
+
(function (DeleteSoundGenerationJobByUuidCommand) {
|
|
7
|
+
DeleteSoundGenerationJobByUuidCommand.RequestParamsSchema = zod_1.z.object({
|
|
8
|
+
uuid: zod_1.z.uuid(),
|
|
9
|
+
});
|
|
10
|
+
DeleteSoundGenerationJobByUuidCommand.ResponseSchema = zod_1.z.void();
|
|
11
|
+
})(DeleteSoundGenerationJobByUuidCommand || (exports.DeleteSoundGenerationJobByUuidCommand = DeleteSoundGenerationJobByUuidCommand = {}));
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace FindSoundGenerationJobByUUIDCommand {
|
|
3
|
+
const RequestParamsSchema: z.ZodObject<{
|
|
4
|
+
uuid: z.ZodString;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
7
|
+
const ResponseSchema: z.ZodObject<{
|
|
8
|
+
data: z.ZodObject<{
|
|
9
|
+
uuid: z.ZodString;
|
|
10
|
+
status: z.ZodEnum<typeof import("../../..").TOOL_JOB_STATUS>;
|
|
11
|
+
error: z.ZodNullable<z.ZodString>;
|
|
12
|
+
isFavorite: z.ZodBoolean;
|
|
13
|
+
createdAt: z.ZodDate;
|
|
14
|
+
updatedAt: z.ZodDate;
|
|
15
|
+
prompt: z.ZodString;
|
|
16
|
+
title: z.ZodString;
|
|
17
|
+
modelId: z.ZodString;
|
|
18
|
+
price: z.ZodNumber;
|
|
19
|
+
params: z.ZodObject<{
|
|
20
|
+
durationInSeconds: z.ZodOptional<z.ZodNumber>;
|
|
21
|
+
variations: z.ZodDefault<z.ZodNumber>;
|
|
22
|
+
loop: z.ZodDefault<z.ZodBoolean>;
|
|
23
|
+
promptInfluence: z.ZodDefault<z.ZodNumber>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
results: z.ZodArray<z.ZodObject<{
|
|
26
|
+
uuid: z.ZodUUID;
|
|
27
|
+
audioUrl: z.ZodURL;
|
|
28
|
+
duration: z.ZodNumber;
|
|
29
|
+
}, z.core.$strip>>;
|
|
30
|
+
attempts: z.ZodArray<z.ZodUnknown>;
|
|
31
|
+
reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
|
|
32
|
+
dislikeReason: z.ZodNullable<z.ZodString>;
|
|
33
|
+
completedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
37
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FindSoundGenerationJobByUUIDCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var FindSoundGenerationJobByUUIDCommand;
|
|
7
|
+
(function (FindSoundGenerationJobByUUIDCommand) {
|
|
8
|
+
FindSoundGenerationJobByUUIDCommand.RequestParamsSchema = models_1.ToolJobSchema.pick({
|
|
9
|
+
uuid: true,
|
|
10
|
+
});
|
|
11
|
+
FindSoundGenerationJobByUUIDCommand.ResponseSchema = zod_1.z.object({
|
|
12
|
+
data: models_1.SoundGenerationJobSchema,
|
|
13
|
+
});
|
|
14
|
+
})(FindSoundGenerationJobByUUIDCommand || (exports.FindSoundGenerationJobByUUIDCommand = FindSoundGenerationJobByUUIDCommand = {}));
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { JOB_SORT, TOOL_JOB_STATUS } from '../../../constants';
|
|
3
|
+
export declare namespace FindSoundGenerationJobsCommand {
|
|
4
|
+
const RequestQuerySchema: z.ZodObject<{
|
|
5
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
6
|
+
offset: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
7
|
+
title: z.ZodOptional<z.ZodString>;
|
|
8
|
+
isFavorite: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean>>;
|
|
9
|
+
createdAtSortOrder: z.ZodDefault<z.ZodOptional<z.ZodEnum<typeof JOB_SORT>>>;
|
|
10
|
+
status: z.ZodOptional<z.ZodEnum<typeof TOOL_JOB_STATUS>>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
type RequestQuery = z.infer<typeof RequestQuerySchema>;
|
|
13
|
+
const ResponseSchema: z.ZodObject<{
|
|
14
|
+
data: z.ZodArray<z.ZodObject<{
|
|
15
|
+
uuid: z.ZodString;
|
|
16
|
+
status: z.ZodEnum<typeof TOOL_JOB_STATUS>;
|
|
17
|
+
error: z.ZodNullable<z.ZodString>;
|
|
18
|
+
isFavorite: z.ZodBoolean;
|
|
19
|
+
createdAt: z.ZodDate;
|
|
20
|
+
updatedAt: z.ZodDate;
|
|
21
|
+
prompt: z.ZodString;
|
|
22
|
+
title: z.ZodString;
|
|
23
|
+
modelId: z.ZodString;
|
|
24
|
+
price: z.ZodNumber;
|
|
25
|
+
params: z.ZodObject<{
|
|
26
|
+
durationInSeconds: z.ZodOptional<z.ZodNumber>;
|
|
27
|
+
variations: z.ZodDefault<z.ZodNumber>;
|
|
28
|
+
loop: z.ZodDefault<z.ZodBoolean>;
|
|
29
|
+
promptInfluence: z.ZodDefault<z.ZodNumber>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
results: z.ZodArray<z.ZodObject<{
|
|
32
|
+
uuid: z.ZodUUID;
|
|
33
|
+
audioUrl: z.ZodURL;
|
|
34
|
+
duration: z.ZodNumber;
|
|
35
|
+
}, z.core.$strip>>;
|
|
36
|
+
attempts: z.ZodArray<z.ZodUnknown>;
|
|
37
|
+
reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
|
|
38
|
+
dislikeReason: z.ZodNullable<z.ZodString>;
|
|
39
|
+
completedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
40
|
+
}, z.core.$strip>>;
|
|
41
|
+
totalPages: z.ZodNumber;
|
|
42
|
+
total: z.ZodNumber;
|
|
43
|
+
page: z.ZodNumber;
|
|
44
|
+
}, z.core.$strip>;
|
|
45
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
46
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FindSoundGenerationJobsCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const constants_1 = require("../../../constants");
|
|
6
|
+
const helpers_1 = require("../../../helpers");
|
|
7
|
+
const models_1 = require("../../../models");
|
|
8
|
+
var FindSoundGenerationJobsCommand;
|
|
9
|
+
(function (FindSoundGenerationJobsCommand) {
|
|
10
|
+
FindSoundGenerationJobsCommand.RequestQuerySchema = zod_1.z.object({
|
|
11
|
+
limit: zod_1.z.coerce.number().int().min(1).max(100).default(20),
|
|
12
|
+
offset: zod_1.z.coerce.number().int().min(0).default(0).optional(),
|
|
13
|
+
title: zod_1.z.string().optional(),
|
|
14
|
+
isFavorite: helpers_1.QueryBooleanSchema.optional(),
|
|
15
|
+
createdAtSortOrder: zod_1.z.enum(constants_1.JOB_SORT).optional().default(constants_1.JOB_SORT.DESC),
|
|
16
|
+
status: zod_1.z.enum(constants_1.TOOL_JOB_STATUS).optional(),
|
|
17
|
+
});
|
|
18
|
+
FindSoundGenerationJobsCommand.ResponseSchema = zod_1.z.object({
|
|
19
|
+
data: zod_1.z.array(models_1.SoundGenerationJobSchema),
|
|
20
|
+
totalPages: zod_1.z.number(),
|
|
21
|
+
total: zod_1.z.number(),
|
|
22
|
+
page: zod_1.z.number(),
|
|
23
|
+
});
|
|
24
|
+
})(FindSoundGenerationJobsCommand || (exports.FindSoundGenerationJobsCommand = FindSoundGenerationJobsCommand = {}));
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace GetSoundGenerationToolConfigCommand {
|
|
3
|
+
const ResponseSchema: z.ZodObject<{
|
|
4
|
+
data: z.ZodObject<{
|
|
5
|
+
models: z.ZodArray<z.ZodObject<{
|
|
6
|
+
uuid: z.ZodString;
|
|
7
|
+
title: z.ZodString;
|
|
8
|
+
description: z.ZodString;
|
|
9
|
+
aiModel: z.ZodString;
|
|
10
|
+
pricePerSecond: z.ZodNumber;
|
|
11
|
+
order: z.ZodNumber;
|
|
12
|
+
status: z.ZodEnum<typeof import("../../..").TOOL_MODEL_STATUS>;
|
|
13
|
+
icons: z.ZodObject<{
|
|
14
|
+
light: z.ZodObject<{
|
|
15
|
+
svg: z.ZodString;
|
|
16
|
+
png: z.ZodString;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
dark: z.ZodObject<{
|
|
19
|
+
svg: z.ZodString;
|
|
20
|
+
png: z.ZodString;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
strategy: z.ZodEnum<typeof import("../../..").SOUND_GENERATION_STRATEGY>;
|
|
24
|
+
maxPromptLength: z.ZodNumber;
|
|
25
|
+
params: z.ZodObject<{
|
|
26
|
+
minDurationSeconds: z.ZodNumber;
|
|
27
|
+
maxDurationSeconds: z.ZodNumber;
|
|
28
|
+
durationStepSeconds: z.ZodNumber;
|
|
29
|
+
maxVariations: z.ZodNumber;
|
|
30
|
+
supportsLoop: z.ZodBoolean;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
createdAt: z.ZodDate;
|
|
33
|
+
updatedAt: z.ZodDate;
|
|
34
|
+
unlockedBy: z.ZodNullable<z.ZodObject<{
|
|
35
|
+
uuid: z.ZodString;
|
|
36
|
+
name: z.ZodString;
|
|
37
|
+
}, z.core.$strip>>;
|
|
38
|
+
canUse: z.ZodBoolean;
|
|
39
|
+
}, z.core.$strip>>;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
43
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetSoundGenerationToolConfigCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var GetSoundGenerationToolConfigCommand;
|
|
7
|
+
(function (GetSoundGenerationToolConfigCommand) {
|
|
8
|
+
GetSoundGenerationToolConfigCommand.ResponseSchema = zod_1.z.object({
|
|
9
|
+
data: models_1.SoundGenerationConfigSchema,
|
|
10
|
+
});
|
|
11
|
+
})(GetSoundGenerationToolConfigCommand || (exports.GetSoundGenerationToolConfigCommand = GetSoundGenerationToolConfigCommand = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './delete-all-sound-generation-jobs.command';
|
|
2
|
+
export * from './delete-sound-generation-job-by-uuid.command';
|
|
3
|
+
export * from './find-sound-generation-job-by-uuid.command';
|
|
4
|
+
export * from './find-sound-generation-jobs.command';
|
|
5
|
+
export * from './get-sound-generation-tool-config.command';
|
|
6
|
+
export * from './retry-sound-generation-job.command';
|
|
7
|
+
export * from './set-reaction-to-sound-generation-job.command';
|
|
8
|
+
export * from './sound-generation.command';
|
|
9
|
+
export * from './update-sound-generation-job-favorite.command';
|
|
10
|
+
export * from './update-sound-generation-job-title.command';
|
|
@@ -14,6 +14,13 @@ 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("./delete-all-sound-generation-jobs.command"), exports);
|
|
18
|
+
__exportStar(require("./delete-sound-generation-job-by-uuid.command"), exports);
|
|
19
|
+
__exportStar(require("./find-sound-generation-job-by-uuid.command"), exports);
|
|
20
|
+
__exportStar(require("./find-sound-generation-jobs.command"), exports);
|
|
21
|
+
__exportStar(require("./get-sound-generation-tool-config.command"), exports);
|
|
22
|
+
__exportStar(require("./retry-sound-generation-job.command"), exports);
|
|
23
|
+
__exportStar(require("./set-reaction-to-sound-generation-job.command"), exports);
|
|
24
|
+
__exportStar(require("./sound-generation.command"), exports);
|
|
25
|
+
__exportStar(require("./update-sound-generation-job-favorite.command"), exports);
|
|
26
|
+
__exportStar(require("./update-sound-generation-job-title.command"), exports);
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace RetrySoundGenerationJobCommand {
|
|
3
|
+
const RequestParamsSchema: z.ZodObject<{
|
|
4
|
+
uuid: z.ZodUUID;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
7
|
+
const RequestBodySchema: z.ZodObject<{
|
|
8
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
9
|
+
modelId: z.ZodOptional<z.ZodUUID>;
|
|
10
|
+
params: z.ZodOptional<z.ZodObject<{
|
|
11
|
+
durationInSeconds: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
variations: z.ZodDefault<z.ZodNumber>;
|
|
13
|
+
loop: z.ZodDefault<z.ZodBoolean>;
|
|
14
|
+
promptInfluence: z.ZodDefault<z.ZodNumber>;
|
|
15
|
+
}, z.core.$strip>>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
type RequestBody = z.infer<typeof RequestBodySchema>;
|
|
18
|
+
const ResponseSchema: z.ZodObject<{
|
|
19
|
+
data: z.ZodObject<{
|
|
20
|
+
uuid: z.ZodString;
|
|
21
|
+
status: z.ZodEnum<typeof import("../../..").TOOL_JOB_STATUS>;
|
|
22
|
+
error: z.ZodNullable<z.ZodString>;
|
|
23
|
+
isFavorite: z.ZodBoolean;
|
|
24
|
+
createdAt: z.ZodDate;
|
|
25
|
+
updatedAt: z.ZodDate;
|
|
26
|
+
prompt: z.ZodString;
|
|
27
|
+
title: z.ZodString;
|
|
28
|
+
modelId: z.ZodString;
|
|
29
|
+
price: z.ZodNumber;
|
|
30
|
+
params: z.ZodObject<{
|
|
31
|
+
durationInSeconds: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
variations: z.ZodDefault<z.ZodNumber>;
|
|
33
|
+
loop: z.ZodDefault<z.ZodBoolean>;
|
|
34
|
+
promptInfluence: z.ZodDefault<z.ZodNumber>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
results: z.ZodArray<z.ZodObject<{
|
|
37
|
+
uuid: z.ZodUUID;
|
|
38
|
+
audioUrl: z.ZodURL;
|
|
39
|
+
duration: z.ZodNumber;
|
|
40
|
+
}, z.core.$strip>>;
|
|
41
|
+
attempts: z.ZodArray<z.ZodUnknown>;
|
|
42
|
+
reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
|
|
43
|
+
dislikeReason: z.ZodNullable<z.ZodString>;
|
|
44
|
+
completedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
45
|
+
}, z.core.$strip>;
|
|
46
|
+
}, z.core.$strip>;
|
|
47
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
48
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RetrySoundGenerationJobCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var RetrySoundGenerationJobCommand;
|
|
7
|
+
(function (RetrySoundGenerationJobCommand) {
|
|
8
|
+
RetrySoundGenerationJobCommand.RequestParamsSchema = zod_1.z.object({
|
|
9
|
+
uuid: zod_1.z.uuid(),
|
|
10
|
+
});
|
|
11
|
+
RetrySoundGenerationJobCommand.RequestBodySchema = zod_1.z.object({
|
|
12
|
+
prompt: zod_1.z.string().optional(),
|
|
13
|
+
modelId: zod_1.z.uuid().optional(),
|
|
14
|
+
params: models_1.SoundGenerationParamsSchema.optional(),
|
|
15
|
+
});
|
|
16
|
+
RetrySoundGenerationJobCommand.ResponseSchema = zod_1.z.object({
|
|
17
|
+
data: models_1.SoundGenerationJobSchema,
|
|
18
|
+
});
|
|
19
|
+
})(RetrySoundGenerationJobCommand || (exports.RetrySoundGenerationJobCommand = RetrySoundGenerationJobCommand = {}));
|
package/build/commands/tools/sound-generation/set-reaction-to-sound-generation-job.command.d.ts
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { USER_REACTION } from '../../../constants';
|
|
3
|
+
export declare namespace SetReactionToSoundGenerationJobCommand {
|
|
4
|
+
const RequestSchema: z.ZodObject<{
|
|
5
|
+
reaction: z.ZodNullable<z.ZodEnum<typeof USER_REACTION>>;
|
|
6
|
+
dislikeReason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
9
|
+
const RequestParamsSchema: z.ZodObject<{
|
|
10
|
+
uuid: z.ZodUUID;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
13
|
+
const ResponseSchema: z.ZodObject<{
|
|
14
|
+
data: z.ZodObject<{
|
|
15
|
+
uuid: z.ZodString;
|
|
16
|
+
status: z.ZodEnum<typeof import("../../..").TOOL_JOB_STATUS>;
|
|
17
|
+
error: z.ZodNullable<z.ZodString>;
|
|
18
|
+
isFavorite: z.ZodBoolean;
|
|
19
|
+
createdAt: z.ZodDate;
|
|
20
|
+
updatedAt: z.ZodDate;
|
|
21
|
+
prompt: z.ZodString;
|
|
22
|
+
title: z.ZodString;
|
|
23
|
+
modelId: z.ZodString;
|
|
24
|
+
price: z.ZodNumber;
|
|
25
|
+
params: z.ZodObject<{
|
|
26
|
+
durationInSeconds: z.ZodOptional<z.ZodNumber>;
|
|
27
|
+
variations: z.ZodDefault<z.ZodNumber>;
|
|
28
|
+
loop: z.ZodDefault<z.ZodBoolean>;
|
|
29
|
+
promptInfluence: z.ZodDefault<z.ZodNumber>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
results: z.ZodArray<z.ZodObject<{
|
|
32
|
+
uuid: z.ZodUUID;
|
|
33
|
+
audioUrl: z.ZodURL;
|
|
34
|
+
duration: z.ZodNumber;
|
|
35
|
+
}, z.core.$strip>>;
|
|
36
|
+
attempts: z.ZodArray<z.ZodUnknown>;
|
|
37
|
+
reaction: z.ZodNullable<z.ZodEnum<typeof USER_REACTION>>;
|
|
38
|
+
dislikeReason: z.ZodNullable<z.ZodString>;
|
|
39
|
+
completedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
43
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SetReactionToSoundGenerationJobCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const constants_1 = require("../../../constants");
|
|
6
|
+
const models_1 = require("../../../models");
|
|
7
|
+
var SetReactionToSoundGenerationJobCommand;
|
|
8
|
+
(function (SetReactionToSoundGenerationJobCommand) {
|
|
9
|
+
SetReactionToSoundGenerationJobCommand.RequestSchema = zod_1.z
|
|
10
|
+
.object({
|
|
11
|
+
reaction: zod_1.z.enum(constants_1.USER_REACTION).nullable(),
|
|
12
|
+
dislikeReason: zod_1.z.string().nullable().default(null),
|
|
13
|
+
})
|
|
14
|
+
.refine((data) => data.reaction === constants_1.USER_REACTION.DISLIKED || !data.dislikeReason, {
|
|
15
|
+
message: 'Dislike reason is not allowed when reaction is not DISLIKED',
|
|
16
|
+
});
|
|
17
|
+
SetReactionToSoundGenerationJobCommand.RequestParamsSchema = zod_1.z.object({
|
|
18
|
+
uuid: zod_1.z.uuid(),
|
|
19
|
+
});
|
|
20
|
+
SetReactionToSoundGenerationJobCommand.ResponseSchema = zod_1.z.object({
|
|
21
|
+
data: models_1.SoundGenerationJobSchema,
|
|
22
|
+
});
|
|
23
|
+
})(SetReactionToSoundGenerationJobCommand || (exports.SetReactionToSoundGenerationJobCommand = SetReactionToSoundGenerationJobCommand = {}));
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace SoundGenerationCommand {
|
|
3
|
+
const RequestSchema: z.ZodObject<{
|
|
4
|
+
prompt: z.ZodString;
|
|
5
|
+
modelId: z.ZodUUID;
|
|
6
|
+
params: z.ZodObject<{
|
|
7
|
+
durationInSeconds: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
variations: z.ZodDefault<z.ZodNumber>;
|
|
9
|
+
loop: z.ZodDefault<z.ZodBoolean>;
|
|
10
|
+
promptInfluence: z.ZodDefault<z.ZodNumber>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
14
|
+
const ResponseSchema: z.ZodObject<{
|
|
15
|
+
data: z.ZodObject<{
|
|
16
|
+
uuid: z.ZodString;
|
|
17
|
+
status: z.ZodEnum<typeof import("../../..").TOOL_JOB_STATUS>;
|
|
18
|
+
error: z.ZodNullable<z.ZodString>;
|
|
19
|
+
isFavorite: z.ZodBoolean;
|
|
20
|
+
createdAt: z.ZodDate;
|
|
21
|
+
updatedAt: z.ZodDate;
|
|
22
|
+
prompt: z.ZodString;
|
|
23
|
+
title: z.ZodString;
|
|
24
|
+
modelId: z.ZodString;
|
|
25
|
+
price: z.ZodNumber;
|
|
26
|
+
params: z.ZodObject<{
|
|
27
|
+
durationInSeconds: z.ZodOptional<z.ZodNumber>;
|
|
28
|
+
variations: z.ZodDefault<z.ZodNumber>;
|
|
29
|
+
loop: z.ZodDefault<z.ZodBoolean>;
|
|
30
|
+
promptInfluence: z.ZodDefault<z.ZodNumber>;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
results: z.ZodArray<z.ZodObject<{
|
|
33
|
+
uuid: z.ZodUUID;
|
|
34
|
+
audioUrl: z.ZodURL;
|
|
35
|
+
duration: z.ZodNumber;
|
|
36
|
+
}, z.core.$strip>>;
|
|
37
|
+
attempts: z.ZodArray<z.ZodUnknown>;
|
|
38
|
+
reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
|
|
39
|
+
dislikeReason: z.ZodNullable<z.ZodString>;
|
|
40
|
+
completedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
44
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SoundGenerationCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var SoundGenerationCommand;
|
|
7
|
+
(function (SoundGenerationCommand) {
|
|
8
|
+
SoundGenerationCommand.RequestSchema = zod_1.z.object({
|
|
9
|
+
prompt: zod_1.z.string().min(1),
|
|
10
|
+
modelId: zod_1.z.uuid(),
|
|
11
|
+
params: models_1.SoundGenerationParamsSchema,
|
|
12
|
+
});
|
|
13
|
+
SoundGenerationCommand.ResponseSchema = zod_1.z.object({
|
|
14
|
+
data: models_1.SoundGenerationJobSchema,
|
|
15
|
+
});
|
|
16
|
+
})(SoundGenerationCommand || (exports.SoundGenerationCommand = SoundGenerationCommand = {}));
|
package/build/commands/tools/sound-generation/update-sound-generation-job-favorite.command.d.ts
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace UpdateSoundGenerationJobFavoriteCommand {
|
|
3
|
+
const RequestSchema: z.ZodObject<{
|
|
4
|
+
isFavorite: z.ZodBoolean;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
7
|
+
const RequestParamsSchema: z.ZodObject<{
|
|
8
|
+
uuid: z.ZodUUID;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
11
|
+
const ResponseSchema: z.ZodObject<{
|
|
12
|
+
data: z.ZodObject<{
|
|
13
|
+
uuid: z.ZodString;
|
|
14
|
+
status: z.ZodEnum<typeof import("../../..").TOOL_JOB_STATUS>;
|
|
15
|
+
error: z.ZodNullable<z.ZodString>;
|
|
16
|
+
isFavorite: z.ZodBoolean;
|
|
17
|
+
createdAt: z.ZodDate;
|
|
18
|
+
updatedAt: z.ZodDate;
|
|
19
|
+
prompt: z.ZodString;
|
|
20
|
+
title: z.ZodString;
|
|
21
|
+
modelId: z.ZodString;
|
|
22
|
+
price: z.ZodNumber;
|
|
23
|
+
params: z.ZodObject<{
|
|
24
|
+
durationInSeconds: z.ZodOptional<z.ZodNumber>;
|
|
25
|
+
variations: z.ZodDefault<z.ZodNumber>;
|
|
26
|
+
loop: z.ZodDefault<z.ZodBoolean>;
|
|
27
|
+
promptInfluence: z.ZodDefault<z.ZodNumber>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
results: z.ZodArray<z.ZodObject<{
|
|
30
|
+
uuid: z.ZodUUID;
|
|
31
|
+
audioUrl: z.ZodURL;
|
|
32
|
+
duration: z.ZodNumber;
|
|
33
|
+
}, z.core.$strip>>;
|
|
34
|
+
attempts: z.ZodArray<z.ZodUnknown>;
|
|
35
|
+
reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
|
|
36
|
+
dislikeReason: z.ZodNullable<z.ZodString>;
|
|
37
|
+
completedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
41
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateSoundGenerationJobFavoriteCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var UpdateSoundGenerationJobFavoriteCommand;
|
|
7
|
+
(function (UpdateSoundGenerationJobFavoriteCommand) {
|
|
8
|
+
UpdateSoundGenerationJobFavoriteCommand.RequestSchema = zod_1.z.object({
|
|
9
|
+
isFavorite: zod_1.z.boolean(),
|
|
10
|
+
});
|
|
11
|
+
UpdateSoundGenerationJobFavoriteCommand.RequestParamsSchema = zod_1.z.object({
|
|
12
|
+
uuid: zod_1.z.uuid(),
|
|
13
|
+
});
|
|
14
|
+
UpdateSoundGenerationJobFavoriteCommand.ResponseSchema = zod_1.z.object({
|
|
15
|
+
data: models_1.SoundGenerationJobSchema,
|
|
16
|
+
});
|
|
17
|
+
})(UpdateSoundGenerationJobFavoriteCommand || (exports.UpdateSoundGenerationJobFavoriteCommand = UpdateSoundGenerationJobFavoriteCommand = {}));
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace UpdateSoundGenerationJobTitleCommand {
|
|
3
|
+
const RequestSchema: z.ZodObject<{
|
|
4
|
+
title: z.ZodString;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
7
|
+
const RequestParamsSchema: z.ZodObject<{
|
|
8
|
+
uuid: z.ZodUUID;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
11
|
+
const ResponseSchema: z.ZodObject<{
|
|
12
|
+
data: z.ZodObject<{
|
|
13
|
+
uuid: z.ZodString;
|
|
14
|
+
status: z.ZodEnum<typeof import("../../..").TOOL_JOB_STATUS>;
|
|
15
|
+
error: z.ZodNullable<z.ZodString>;
|
|
16
|
+
isFavorite: z.ZodBoolean;
|
|
17
|
+
createdAt: z.ZodDate;
|
|
18
|
+
updatedAt: z.ZodDate;
|
|
19
|
+
prompt: z.ZodString;
|
|
20
|
+
title: z.ZodString;
|
|
21
|
+
modelId: z.ZodString;
|
|
22
|
+
price: z.ZodNumber;
|
|
23
|
+
params: z.ZodObject<{
|
|
24
|
+
durationInSeconds: z.ZodOptional<z.ZodNumber>;
|
|
25
|
+
variations: z.ZodDefault<z.ZodNumber>;
|
|
26
|
+
loop: z.ZodDefault<z.ZodBoolean>;
|
|
27
|
+
promptInfluence: z.ZodDefault<z.ZodNumber>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
results: z.ZodArray<z.ZodObject<{
|
|
30
|
+
uuid: z.ZodUUID;
|
|
31
|
+
audioUrl: z.ZodURL;
|
|
32
|
+
duration: z.ZodNumber;
|
|
33
|
+
}, z.core.$strip>>;
|
|
34
|
+
attempts: z.ZodArray<z.ZodUnknown>;
|
|
35
|
+
reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
|
|
36
|
+
dislikeReason: z.ZodNullable<z.ZodString>;
|
|
37
|
+
completedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
41
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateSoundGenerationJobTitleCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var UpdateSoundGenerationJobTitleCommand;
|
|
7
|
+
(function (UpdateSoundGenerationJobTitleCommand) {
|
|
8
|
+
UpdateSoundGenerationJobTitleCommand.RequestSchema = zod_1.z.object({
|
|
9
|
+
title: zod_1.z.string().min(1).max(40),
|
|
10
|
+
});
|
|
11
|
+
UpdateSoundGenerationJobTitleCommand.RequestParamsSchema = zod_1.z.object({
|
|
12
|
+
uuid: zod_1.z.uuid(),
|
|
13
|
+
});
|
|
14
|
+
UpdateSoundGenerationJobTitleCommand.ResponseSchema = zod_1.z.object({
|
|
15
|
+
data: models_1.SoundGenerationJobSchema,
|
|
16
|
+
});
|
|
17
|
+
})(UpdateSoundGenerationJobTitleCommand || (exports.UpdateSoundGenerationJobTitleCommand = UpdateSoundGenerationJobTitleCommand = {}));
|