@purpleschool/gptbot 0.14.65-stage2 → 0.15.56-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/api/controllers/http/index.d.ts +1 -0
- package/build/api/controllers/http/index.js +1 -0
- package/build/api/controllers/http/sound-generation.d.ts +14 -0
- package/build/api/controllers/http/sound-generation.js +17 -0
- package/build/api/routes.d.ts +24 -0
- package/build/api/routes.js +24 -0
- 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 -0
- 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 -0
- package/build/commands/tools/index.js +1 -0
- package/build/commands/tools/sound-generation/delete-all-sound-generation-jobs.command.d.ts +5 -0
- package/build/commands/tools/sound-generation/delete-all-sound-generation-jobs.command.js +8 -0
- package/build/commands/tools/sound-generation/delete-sound-generation-job-by-uuid.command.d.ts +9 -0
- 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/sound-generation/index.js +26 -0
- 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/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/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 -0
- 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 -0
- package/build/models/tools/index.js +1 -0
- package/build/models/tools/sound-generation/index.d.ts +5 -0
- package/build/models/tools/sound-generation/index.js +21 -0
- 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/package.json +1 -1
|
@@ -0,0 +1,21 @@
|
|
|
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-config.schema"), exports);
|
|
18
|
+
__exportStar(require("./sound-generation-job.schema"), exports);
|
|
19
|
+
__exportStar(require("./sound-generation-model.schema"), exports);
|
|
20
|
+
__exportStar(require("./sound-generation-params.schema"), exports);
|
|
21
|
+
__exportStar(require("./sound-generation-result.schema"), exports);
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const SoundGenerationConfigSchema: z.ZodObject<{
|
|
3
|
+
models: z.ZodArray<z.ZodObject<{
|
|
4
|
+
uuid: z.ZodString;
|
|
5
|
+
title: z.ZodString;
|
|
6
|
+
description: z.ZodString;
|
|
7
|
+
aiModel: z.ZodString;
|
|
8
|
+
pricePerSecond: z.ZodNumber;
|
|
9
|
+
order: z.ZodNumber;
|
|
10
|
+
status: z.ZodEnum<typeof import("../../..").TOOL_MODEL_STATUS>;
|
|
11
|
+
icons: z.ZodObject<{
|
|
12
|
+
light: z.ZodObject<{
|
|
13
|
+
svg: z.ZodString;
|
|
14
|
+
png: z.ZodString;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
dark: z.ZodObject<{
|
|
17
|
+
svg: z.ZodString;
|
|
18
|
+
png: z.ZodString;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
strategy: z.ZodEnum<typeof import("./sound-generation-model.schema").SOUND_GENERATION_STRATEGY>;
|
|
22
|
+
maxPromptLength: z.ZodNumber;
|
|
23
|
+
params: z.ZodObject<{
|
|
24
|
+
minDurationSeconds: z.ZodNumber;
|
|
25
|
+
maxDurationSeconds: z.ZodNumber;
|
|
26
|
+
durationStepSeconds: z.ZodNumber;
|
|
27
|
+
maxVariations: z.ZodNumber;
|
|
28
|
+
supportsLoop: z.ZodBoolean;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
createdAt: z.ZodDate;
|
|
31
|
+
updatedAt: z.ZodDate;
|
|
32
|
+
unlockedBy: z.ZodNullable<z.ZodObject<{
|
|
33
|
+
uuid: z.ZodString;
|
|
34
|
+
name: z.ZodString;
|
|
35
|
+
}, z.core.$strip>>;
|
|
36
|
+
canUse: z.ZodBoolean;
|
|
37
|
+
}, z.core.$strip>>;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
export type SoundGenerationConfig = z.infer<typeof SoundGenerationConfigSchema>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SoundGenerationConfigSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const sound_generation_model_schema_1 = require("./sound-generation-model.schema");
|
|
6
|
+
exports.SoundGenerationConfigSchema = zod_1.z.object({
|
|
7
|
+
models: zod_1.z.array(sound_generation_model_schema_1.SoundGenerationModelSchema),
|
|
8
|
+
});
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { USER_REACTION } from '../../../constants';
|
|
3
|
+
export declare const SoundGenerationJobSchema: z.ZodObject<{
|
|
4
|
+
uuid: z.ZodString;
|
|
5
|
+
status: z.ZodEnum<typeof import("../../..").TOOL_JOB_STATUS>;
|
|
6
|
+
error: z.ZodNullable<z.ZodString>;
|
|
7
|
+
isFavorite: z.ZodBoolean;
|
|
8
|
+
createdAt: z.ZodDate;
|
|
9
|
+
updatedAt: z.ZodDate;
|
|
10
|
+
prompt: z.ZodString;
|
|
11
|
+
title: z.ZodString;
|
|
12
|
+
modelId: z.ZodString;
|
|
13
|
+
price: z.ZodNumber;
|
|
14
|
+
params: z.ZodObject<{
|
|
15
|
+
durationInSeconds: z.ZodOptional<z.ZodNumber>;
|
|
16
|
+
variations: z.ZodDefault<z.ZodNumber>;
|
|
17
|
+
loop: z.ZodDefault<z.ZodBoolean>;
|
|
18
|
+
promptInfluence: z.ZodDefault<z.ZodNumber>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
results: z.ZodArray<z.ZodObject<{
|
|
21
|
+
uuid: z.ZodUUID;
|
|
22
|
+
audioUrl: z.ZodURL;
|
|
23
|
+
duration: z.ZodNumber;
|
|
24
|
+
}, z.core.$strip>>;
|
|
25
|
+
attempts: z.ZodArray<z.ZodUnknown>;
|
|
26
|
+
reaction: z.ZodNullable<z.ZodEnum<typeof USER_REACTION>>;
|
|
27
|
+
dislikeReason: z.ZodNullable<z.ZodString>;
|
|
28
|
+
completedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
export type SoundGenerationJob = z.infer<typeof SoundGenerationJobSchema>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SoundGenerationJobSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const constants_1 = require("../../../constants");
|
|
6
|
+
const tool_job_schema_1 = require("../../tool-job.schema");
|
|
7
|
+
const sound_generation_params_schema_1 = require("./sound-generation-params.schema");
|
|
8
|
+
const sound_generation_result_schema_1 = require("./sound-generation-result.schema");
|
|
9
|
+
exports.SoundGenerationJobSchema = tool_job_schema_1.ToolJobSchema.extend({
|
|
10
|
+
prompt: zod_1.z.string(),
|
|
11
|
+
title: zod_1.z.string(),
|
|
12
|
+
modelId: zod_1.z.string(),
|
|
13
|
+
price: zod_1.z.number(),
|
|
14
|
+
params: sound_generation_params_schema_1.SoundGenerationParamsSchema,
|
|
15
|
+
results: zod_1.z.array(sound_generation_result_schema_1.SoundGenerationResultSchema),
|
|
16
|
+
attempts: zod_1.z.array(zod_1.z.unknown()),
|
|
17
|
+
reaction: zod_1.z.enum(constants_1.USER_REACTION).nullable(),
|
|
18
|
+
dislikeReason: zod_1.z.string().nullable(),
|
|
19
|
+
completedAt: zod_1.z.date().nullable().optional(),
|
|
20
|
+
});
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { TOOL_MODEL_STATUS } from '../../../constants';
|
|
3
|
+
export declare enum SOUND_GENERATION_STRATEGY {
|
|
4
|
+
ELEVENLABS_SOUND_GENERATION = "ELEVENLABS_SOUND_GENERATION"
|
|
5
|
+
}
|
|
6
|
+
export declare const SoundGenerationModelParamsSchema: z.ZodObject<{
|
|
7
|
+
minDurationSeconds: z.ZodNumber;
|
|
8
|
+
maxDurationSeconds: z.ZodNumber;
|
|
9
|
+
durationStepSeconds: z.ZodNumber;
|
|
10
|
+
maxVariations: z.ZodNumber;
|
|
11
|
+
supportsLoop: z.ZodBoolean;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export type SoundGenerationModelParams = z.infer<typeof SoundGenerationModelParamsSchema>;
|
|
14
|
+
export declare const SoundGenerationModelSchema: z.ZodObject<{
|
|
15
|
+
uuid: z.ZodString;
|
|
16
|
+
title: z.ZodString;
|
|
17
|
+
description: z.ZodString;
|
|
18
|
+
aiModel: z.ZodString;
|
|
19
|
+
pricePerSecond: z.ZodNumber;
|
|
20
|
+
order: z.ZodNumber;
|
|
21
|
+
status: z.ZodEnum<typeof TOOL_MODEL_STATUS>;
|
|
22
|
+
icons: z.ZodObject<{
|
|
23
|
+
light: z.ZodObject<{
|
|
24
|
+
svg: z.ZodString;
|
|
25
|
+
png: z.ZodString;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
dark: z.ZodObject<{
|
|
28
|
+
svg: z.ZodString;
|
|
29
|
+
png: z.ZodString;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
strategy: z.ZodEnum<typeof SOUND_GENERATION_STRATEGY>;
|
|
33
|
+
maxPromptLength: z.ZodNumber;
|
|
34
|
+
params: z.ZodObject<{
|
|
35
|
+
minDurationSeconds: z.ZodNumber;
|
|
36
|
+
maxDurationSeconds: z.ZodNumber;
|
|
37
|
+
durationStepSeconds: z.ZodNumber;
|
|
38
|
+
maxVariations: z.ZodNumber;
|
|
39
|
+
supportsLoop: z.ZodBoolean;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
createdAt: z.ZodDate;
|
|
42
|
+
updatedAt: z.ZodDate;
|
|
43
|
+
unlockedBy: z.ZodNullable<z.ZodObject<{
|
|
44
|
+
uuid: z.ZodString;
|
|
45
|
+
name: z.ZodString;
|
|
46
|
+
}, z.core.$strip>>;
|
|
47
|
+
canUse: z.ZodBoolean;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
export type SoundGenerationModel = z.infer<typeof SoundGenerationModelSchema>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SoundGenerationModelSchema = exports.SoundGenerationModelParamsSchema = exports.SOUND_GENERATION_STRATEGY = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const constants_1 = require("../../../constants");
|
|
6
|
+
const icon_variants_schema_1 = require("../../icon-variants.schema");
|
|
7
|
+
const unlocked_by_subscription_schema_1 = require("../../unlocked-by-subscription.schema");
|
|
8
|
+
var SOUND_GENERATION_STRATEGY;
|
|
9
|
+
(function (SOUND_GENERATION_STRATEGY) {
|
|
10
|
+
SOUND_GENERATION_STRATEGY["ELEVENLABS_SOUND_GENERATION"] = "ELEVENLABS_SOUND_GENERATION";
|
|
11
|
+
})(SOUND_GENERATION_STRATEGY || (exports.SOUND_GENERATION_STRATEGY = SOUND_GENERATION_STRATEGY = {}));
|
|
12
|
+
exports.SoundGenerationModelParamsSchema = zod_1.z.object({
|
|
13
|
+
minDurationSeconds: zod_1.z.number(),
|
|
14
|
+
maxDurationSeconds: zod_1.z.number(),
|
|
15
|
+
durationStepSeconds: zod_1.z.number(),
|
|
16
|
+
maxVariations: zod_1.z.number().int(),
|
|
17
|
+
supportsLoop: zod_1.z.boolean(),
|
|
18
|
+
});
|
|
19
|
+
exports.SoundGenerationModelSchema = zod_1.z.object({
|
|
20
|
+
uuid: zod_1.z.string(),
|
|
21
|
+
title: zod_1.z.string(),
|
|
22
|
+
description: zod_1.z.string(),
|
|
23
|
+
aiModel: zod_1.z.string(),
|
|
24
|
+
pricePerSecond: zod_1.z.number(),
|
|
25
|
+
order: zod_1.z.number(),
|
|
26
|
+
status: zod_1.z.nativeEnum(constants_1.TOOL_MODEL_STATUS),
|
|
27
|
+
icons: icon_variants_schema_1.IconVariantsSchema,
|
|
28
|
+
strategy: zod_1.z.nativeEnum(SOUND_GENERATION_STRATEGY),
|
|
29
|
+
maxPromptLength: zod_1.z.number(),
|
|
30
|
+
params: exports.SoundGenerationModelParamsSchema,
|
|
31
|
+
createdAt: zod_1.z.date(),
|
|
32
|
+
updatedAt: zod_1.z.date(),
|
|
33
|
+
unlockedBy: unlocked_by_subscription_schema_1.UnlockedBySchema.nullable(),
|
|
34
|
+
canUse: zod_1.z.boolean(),
|
|
35
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const SoundGenerationParamsSchema: z.ZodObject<{
|
|
3
|
+
durationInSeconds: z.ZodOptional<z.ZodNumber>;
|
|
4
|
+
variations: z.ZodDefault<z.ZodNumber>;
|
|
5
|
+
loop: z.ZodDefault<z.ZodBoolean>;
|
|
6
|
+
promptInfluence: z.ZodDefault<z.ZodNumber>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
export type SoundGenerationParams = z.infer<typeof SoundGenerationParamsSchema>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SoundGenerationParamsSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.SoundGenerationParamsSchema = zod_1.z.object({
|
|
6
|
+
durationInSeconds: zod_1.z.number().min(0.5).max(30).multipleOf(0.5).optional(),
|
|
7
|
+
variations: zod_1.z.number().int().min(1).max(4).default(1),
|
|
8
|
+
loop: zod_1.z.boolean().default(false),
|
|
9
|
+
promptInfluence: zod_1.z.number().min(0).max(1).default(0.3),
|
|
10
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SoundGenerationResultSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.SoundGenerationResultSchema = zod_1.z.object({
|
|
6
|
+
uuid: zod_1.z.uuid(),
|
|
7
|
+
audioUrl: zod_1.z.url(),
|
|
8
|
+
duration: zod_1.z.number().nonnegative(),
|
|
9
|
+
});
|