@purpleschool/gptbot 0.7.58-presentations → 0.7.59-presentations
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/api/controllers/http/cabinet.ts +3 -2
- package/api/controllers/http/index.ts +3 -0
- package/api/controllers/http/music.ts +16 -0
- package/api/controllers/http/tool.ts +1 -0
- package/api/controllers/http/video-editor.ts +14 -0
- package/api/controllers/http/webmaster.ts +10 -0
- package/api/controllers/http/writer.ts +1 -0
- package/api/routes.ts +8 -1
- package/build/api/controllers/http/cabinet.js +3 -2
- package/build/api/controllers/http/index.js +3 -0
- package/build/api/controllers/http/music.js +18 -0
- package/build/api/controllers/http/tool.js +1 -0
- package/build/api/controllers/http/video-editor.js +16 -0
- package/build/api/controllers/http/webmaster.js +12 -0
- package/build/api/controllers/http/writer.js +1 -0
- package/build/api/routes.js +7 -1
- package/build/commands/auth/register-user.command.js +2 -4
- package/build/commands/auth/vk-login.command.js +5 -2
- package/build/commands/auth/yandex-login.command.js +5 -2
- package/build/commands/cabinet/get-user-statistics-by-month.command.js +25 -0
- package/build/commands/cabinet/get-user-statistics-overview.command.js +26 -0
- package/build/commands/cabinet/index.js +2 -1
- package/build/commands/chat/check-limit.command.js +1 -0
- package/build/commands/index.js +1 -0
- package/build/commands/message/create-suggestions.command.js +1 -1
- package/build/commands/product/buy-product.command.js +4 -0
- package/build/commands/subscription/buy-subscription.command.js +4 -0
- package/build/commands/telegram-auth/create-telegram-auth-link.command.js +2 -0
- package/build/commands/telegram-profile/auth-with-telegram-web-app.command.js +4 -0
- package/build/commands/telegram-profile/bot-was-blocked-by-user.command.js +11 -0
- package/build/commands/telegram-profile/index.js +2 -0
- package/build/commands/telegram-profile/user-joined-telegram.command.js +11 -0
- package/build/commands/tools/index.js +2 -0
- package/build/commands/tools/music/convert-to-wav.command.js +16 -0
- package/build/commands/tools/music/delete-all-music-jobs.command.js +8 -0
- package/build/commands/tools/music/delete-music-job-by-uuid.command.js +11 -0
- package/build/commands/tools/music/find-music-job-by-uuid.command.js +14 -0
- package/build/commands/tools/music/find-music-jobs.command.js +18 -0
- package/build/commands/tools/music/generate-lyrics.command.js +16 -0
- package/build/commands/tools/music/generate-music.command.js +15 -0
- package/build/commands/tools/music/get-music-tool-config.command.js +11 -0
- package/build/commands/tools/music/index.js +27 -0
- package/build/commands/tools/music/retry-music-job.command.js +14 -0
- package/build/commands/tools/music/set-reaction-to-music-job.command.js +18 -0
- package/build/commands/tools/music/update-music-job-title.command.js +17 -0
- package/build/commands/tools/tool/find-formatted-tools.command.js +11 -0
- package/build/commands/tools/tool/index.js +1 -0
- package/build/commands/tools/video-editor/delete-all-video-editor-jobs.command.js +11 -0
- package/build/commands/tools/video-editor/delete-video-editor-job-by-uuid.command.js +14 -0
- package/build/commands/tools/video-editor/edit-video.command.js +16 -0
- package/build/commands/tools/video-editor/find-video-editor-job-by-id.command.js +14 -0
- package/build/commands/tools/video-editor/find-video-editor-jobs.command.js +18 -0
- package/build/commands/tools/video-editor/get-video-editor-config.command.js +14 -0
- package/build/commands/tools/video-editor/index.js +25 -0
- package/build/commands/tools/video-editor/retry-video-editor-job.command.js +14 -0
- package/build/commands/tools/video-editor/set-reaction-to-video-editor-job.command.js +18 -0
- package/build/commands/tools/video-editor/update-video-editor-job-title.command.js +17 -0
- package/build/commands/tools/writer/generate-writer-document-contents.command.js +3 -0
- package/build/commands/tools/writer/index.js +1 -0
- package/build/commands/tools/writer/set-reaction.writer-document.command.js +18 -0
- package/build/commands/user/get-aggregated-user-data.command.js +1 -1
- package/build/commands/user/get-me.command.js +1 -0
- package/build/commands/webmaster/confirm-withdrawal.command.js +14 -0
- package/build/commands/webmaster/create-webmaster.command.js +16 -0
- package/build/commands/webmaster/create-withdrawal-request.command.js +16 -0
- package/build/commands/webmaster/get-my-webmaster.command.js +11 -0
- package/build/commands/webmaster/get-webmaster-balance-overview.command.js +26 -0
- package/build/commands/webmaster/index.js +22 -0
- package/build/commands/webmaster/update-webmaster.command.js +13 -0
- package/build/constants/ai-model/enums/ai-model-config-selector-type.enum.js +1 -0
- package/build/constants/cabinet/enums/group-by.enum.js +9 -0
- package/build/constants/cabinet/enums/index.js +17 -0
- package/build/constants/cabinet/index.js +17 -0
- package/build/constants/errors/errors.js +280 -2
- package/build/constants/file/enums/file-type.enum.js +1 -0
- package/build/constants/file/file.constants.js +4 -1
- package/build/constants/index.js +5 -0
- package/build/constants/subscription/enums/subscription-feature-type.enum.js +3 -0
- package/build/constants/tool-music/enums/index.js +21 -0
- package/build/constants/tool-music/enums/music-pricing-rule-type.enum.js +7 -0
- package/build/constants/tool-music/enums/music-strategy.enum.js +7 -0
- package/build/constants/tool-music/enums/music-vocal-gender.enum.js +8 -0
- package/build/constants/tool-music/enums/suno-mode-type.enum.js +10 -0
- package/build/constants/tool-music/enums/suno-model-type.enum.js +10 -0
- package/build/constants/tool-music/index.js +17 -0
- package/build/constants/tool-video-editor/enums/index.js +17 -0
- package/build/constants/tool-video-editor/enums/video-editor-model-strategy.enum.js +7 -0
- package/build/constants/tool-video-editor/index.js +17 -0
- package/build/constants/transaction/enums/user-balance-status.enum.js +1 -0
- package/build/constants/webmaster/enums/index.js +17 -0
- package/build/constants/webmaster/enums/organization-type.enum.js +9 -0
- package/build/constants/webmaster/index.js +17 -0
- package/build/constants/webmaster-balance/enums/index.js +18 -0
- package/build/constants/webmaster-balance/enums/webmaster-balance-status.enum.js +10 -0
- package/build/constants/webmaster-balance/enums/webmaster-balance-type.enum.js +8 -0
- package/build/constants/webmaster-balance/index.js +17 -0
- package/build/constants/writer/enums/index.js +1 -0
- package/build/constants/writer/enums/tool-model-status.enum.js +8 -0
- package/build/helpers/index.js +1 -0
- package/build/helpers/video-editor/calculate-video-editing-price.helper.js +6 -0
- package/build/helpers/video-editor/index.js +17 -0
- package/build/helpers/writer/calculate-writer-content-generation-price.util.js +2 -2
- package/build/models/index.js +3 -0
- package/build/models/page.schema.js +2 -0
- package/build/models/subscription-feature.schema.js +26 -1
- package/build/models/subscription.schema.js +1 -0
- package/build/models/tool.schema.js +8 -1
- package/build/models/tools/index.js +2 -0
- package/build/models/tools/music/index.js +20 -0
- package/build/models/tools/music/music-config.schema.js +8 -0
- package/build/models/tools/music/music-job.schema.js +40 -0
- package/build/models/tools/music/music-model.schema.js +32 -0
- package/build/models/tools/music/music-track.schema.js +17 -0
- package/build/models/tools/video-editor/index.js +19 -0
- package/build/models/tools/video-editor/video-editor-config.schema.js +8 -0
- package/build/models/tools/video-editor/video-editor-job.schema.js +14 -0
- package/build/models/tools/video-editor/video-editor-model.schema.js +25 -0
- package/build/models/tools/writer/writer-config.schema.js +2 -0
- package/build/models/tools/writer/writer-document.schema.js +2 -0
- package/build/models/tools/writer/writer-model.schema.js +21 -0
- package/build/models/user-referrals.schema.js +15 -0
- package/build/models/user-to-subscription.schema.js +2 -0
- package/build/models/webmaster-balance.schema.js +19 -0
- package/build/models/webmaster.schema.js +21 -0
- package/commands/auth/register-user.command.ts +3 -5
- package/commands/auth/vk-login.command.ts +9 -6
- package/commands/auth/yandex-login.command.ts +7 -4
- package/commands/cabinet/get-user-statistics-by-month.command.ts +25 -0
- package/commands/cabinet/{get-user-statistics.command.ts → get-user-statistics-overview.command.ts} +5 -12
- package/commands/cabinet/index.ts +2 -1
- package/commands/chat/check-limit.command.ts +1 -0
- package/commands/index.ts +1 -0
- package/commands/message/create-suggestions.command.ts +1 -1
- package/commands/product/buy-product.command.ts +4 -0
- package/commands/subscription/buy-subscription.command.ts +4 -0
- package/commands/telegram-auth/create-telegram-auth-link.command.ts +5 -0
- package/commands/telegram-profile/auth-with-telegram-web-app.command.ts +4 -0
- package/commands/telegram-profile/bot-was-blocked-by-user.command.ts +13 -0
- package/commands/telegram-profile/index.ts +2 -0
- package/commands/telegram-profile/user-joined-telegram.command.ts +13 -0
- package/commands/tools/index.ts +2 -0
- package/commands/tools/music/convert-to-wav.command.ts +17 -0
- package/commands/tools/music/delete-all-music-jobs.command.ts +6 -0
- package/commands/tools/music/delete-music-job-by-uuid.command.ts +11 -0
- package/commands/tools/music/find-music-job-by-uuid.command.ts +16 -0
- package/commands/tools/music/find-music-jobs.command.ts +18 -0
- package/commands/tools/music/generate-lyrics.command.ts +17 -0
- package/commands/tools/music/generate-music.command.ts +16 -0
- package/commands/tools/music/get-music-tool-config.command.ts +10 -0
- package/commands/tools/music/index.ts +11 -0
- package/commands/tools/music/retry-music-job.command.ts +14 -0
- package/commands/tools/music/set-reaction-to-music-job.command.ts +20 -0
- package/commands/tools/music/update-music-job-title.command.ts +19 -0
- package/commands/tools/tool/find-formatted-tools.command.ts +11 -0
- package/commands/tools/tool/index.ts +1 -0
- package/commands/tools/video-editor/delete-all-video-editor-jobs.command.ts +13 -0
- package/commands/tools/video-editor/delete-video-editor-job-by-uuid.command.ts +16 -0
- package/commands/tools/video-editor/edit-video.command.ts +18 -0
- package/commands/tools/video-editor/find-video-editor-job-by-id.command.ts +16 -0
- package/commands/tools/video-editor/find-video-editor-jobs.command.ts +18 -0
- package/commands/tools/video-editor/get-video-editor-config.command.ts +16 -0
- package/commands/tools/video-editor/index.ts +9 -0
- package/commands/tools/video-editor/retry-video-editor-job.command.ts +16 -0
- package/commands/tools/video-editor/set-reaction-to-video-editor-job.command.ts +21 -0
- package/commands/tools/video-editor/update-video-editor-job-title.command.ts +20 -0
- package/commands/tools/writer/generate-writer-document-contents.command.ts +5 -0
- package/commands/tools/writer/index.ts +1 -0
- package/commands/tools/writer/set-reaction.writer-document.command.ts +21 -0
- package/commands/user/get-aggregated-user-data.command.ts +1 -1
- package/commands/user/get-me.command.ts +1 -0
- package/commands/webmaster/confirm-withdrawal.command.ts +16 -0
- package/commands/webmaster/create-webmaster.command.ts +18 -0
- package/commands/webmaster/create-withdrawal-request.command.ts +18 -0
- package/commands/webmaster/get-my-webmaster.command.ts +12 -0
- package/commands/webmaster/get-webmaster-balance-overview.command.ts +29 -0
- package/commands/webmaster/index.ts +6 -0
- package/commands/webmaster/update-webmaster.command.ts +18 -0
- package/constants/ai-model/enums/ai-model-config-selector-type.enum.ts +1 -0
- package/constants/cabinet/enums/group-by.enum.ts +5 -0
- package/constants/cabinet/enums/index.ts +1 -0
- package/constants/cabinet/index.ts +1 -0
- package/constants/errors/errors.ts +280 -2
- package/constants/file/enums/file-type.enum.ts +1 -0
- package/constants/file/file.constants.ts +4 -0
- package/constants/index.ts +5 -0
- package/constants/subscription/enums/subscription-feature-type.enum.ts +3 -0
- package/constants/tool-music/enums/index.ts +5 -0
- package/constants/tool-music/enums/music-pricing-rule-type.enum.ts +3 -0
- package/constants/tool-music/enums/music-strategy.enum.ts +3 -0
- package/constants/tool-music/enums/music-vocal-gender.enum.ts +4 -0
- package/constants/tool-music/enums/suno-mode-type.enum.ts +6 -0
- package/constants/tool-music/enums/suno-model-type.enum.ts +6 -0
- package/constants/tool-music/index.ts +1 -0
- package/constants/tool-video-editor/enums/index.ts +1 -0
- package/constants/tool-video-editor/enums/video-editor-model-strategy.enum.ts +3 -0
- package/constants/tool-video-editor/index.ts +1 -0
- package/constants/transaction/enums/user-balance-status.enum.ts +1 -0
- package/constants/webmaster/enums/index.ts +1 -0
- package/constants/webmaster/enums/organization-type.enum.ts +5 -0
- package/constants/webmaster/index.ts +1 -0
- package/constants/webmaster-balance/enums/index.ts +2 -0
- package/constants/webmaster-balance/enums/webmaster-balance-status.enum.ts +6 -0
- package/constants/webmaster-balance/enums/webmaster-balance-type.enum.ts +4 -0
- package/constants/webmaster-balance/index.ts +1 -0
- package/constants/writer/enums/index.ts +1 -0
- package/constants/writer/enums/tool-model-status.enum.ts +4 -0
- package/helpers/index.ts +1 -0
- package/helpers/video-editor/calculate-video-editing-price.helper.ts +9 -0
- package/helpers/video-editor/index.ts +1 -0
- package/helpers/writer/calculate-writer-content-generation-price.util.ts +4 -2
- package/models/index.ts +3 -0
- package/models/page.schema.ts +2 -0
- package/models/subscription-feature.schema.ts +30 -0
- package/models/subscription.schema.ts +1 -0
- package/models/tool.schema.ts +13 -0
- package/models/tools/index.ts +2 -0
- package/models/tools/music/index.ts +4 -0
- package/models/tools/music/music-config.schema.ts +6 -0
- package/models/tools/music/music-job.schema.ts +43 -0
- package/models/tools/music/music-model.schema.ts +33 -0
- package/models/tools/music/music-track.schema.ts +19 -0
- package/models/tools/video-editor/index.ts +3 -0
- package/models/tools/video-editor/video-editor-config.schema.ts +6 -0
- package/models/tools/video-editor/video-editor-job.schema.ts +14 -0
- package/models/tools/video-editor/video-editor-model.schema.ts +24 -0
- package/models/tools/writer/writer-config.schema.ts +2 -0
- package/models/tools/writer/writer-document.schema.ts +3 -1
- package/models/tools/writer/writer-model.schema.ts +21 -0
- package/models/user-referrals.schema.ts +10 -0
- package/models/user-to-subscription.schema.ts +2 -0
- package/models/webmaster-balance.schema.ts +15 -0
- package/models/webmaster.schema.ts +18 -0
- package/package.json +1 -1
- package/build/commands/cabinet/get-user-statistics.command.js +0 -30
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateMusicJobTitleCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var UpdateMusicJobTitleCommand;
|
|
7
|
+
(function (UpdateMusicJobTitleCommand) {
|
|
8
|
+
UpdateMusicJobTitleCommand.RequestSchema = zod_1.z.object({
|
|
9
|
+
title: zod_1.z.string().min(1).max(40).trim(),
|
|
10
|
+
});
|
|
11
|
+
UpdateMusicJobTitleCommand.RequestParamsSchema = zod_1.z.object({
|
|
12
|
+
uuid: zod_1.z.string().uuid(),
|
|
13
|
+
});
|
|
14
|
+
UpdateMusicJobTitleCommand.ResponseSchema = zod_1.z.object({
|
|
15
|
+
data: models_1.MusicJobSchema,
|
|
16
|
+
});
|
|
17
|
+
})(UpdateMusicJobTitleCommand || (exports.UpdateMusicJobTitleCommand = UpdateMusicJobTitleCommand = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FindFormattedToolsCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var FindFormattedToolsCommand;
|
|
7
|
+
(function (FindFormattedToolsCommand) {
|
|
8
|
+
FindFormattedToolsCommand.ResponseSchema = zod_1.z.object({
|
|
9
|
+
data: zod_1.z.array(models_1.ToolFormattedSchema),
|
|
10
|
+
});
|
|
11
|
+
})(FindFormattedToolsCommand || (exports.FindFormattedToolsCommand = FindFormattedToolsCommand = {}));
|
|
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./find-all-tools.command"), exports);
|
|
18
|
+
__exportStar(require("./find-formatted-tools.command"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteAllVideoEditorJobsCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var DeleteAllVideoEditorJobsCommand;
|
|
6
|
+
(function (DeleteAllVideoEditorJobsCommand) {
|
|
7
|
+
DeleteAllVideoEditorJobsCommand.RequestSchema = zod_1.z.object({});
|
|
8
|
+
DeleteAllVideoEditorJobsCommand.ResponseSchema = zod_1.z.object({
|
|
9
|
+
data: zod_1.z.boolean(),
|
|
10
|
+
});
|
|
11
|
+
})(DeleteAllVideoEditorJobsCommand || (exports.DeleteAllVideoEditorJobsCommand = DeleteAllVideoEditorJobsCommand = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteVideoEditorJobByUUIDCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var DeleteVideoEditorJobByUUIDCommand;
|
|
7
|
+
(function (DeleteVideoEditorJobByUUIDCommand) {
|
|
8
|
+
DeleteVideoEditorJobByUUIDCommand.RequestParamsSchema = models_1.ToolJobSchema.pick({
|
|
9
|
+
uuid: true,
|
|
10
|
+
});
|
|
11
|
+
DeleteVideoEditorJobByUUIDCommand.ResponseSchema = zod_1.z.object({
|
|
12
|
+
data: zod_1.z.boolean(),
|
|
13
|
+
});
|
|
14
|
+
})(DeleteVideoEditorJobByUUIDCommand || (exports.DeleteVideoEditorJobByUUIDCommand = DeleteVideoEditorJobByUUIDCommand = {}));
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EditVideoCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var EditVideoCommand;
|
|
7
|
+
(function (EditVideoCommand) {
|
|
8
|
+
EditVideoCommand.RequestSchema = zod_1.z.object({
|
|
9
|
+
modelId: zod_1.z.string().uuid(),
|
|
10
|
+
prompt: zod_1.z.string(),
|
|
11
|
+
fileId: zod_1.z.string().uuid(),
|
|
12
|
+
});
|
|
13
|
+
EditVideoCommand.ResponseSchema = zod_1.z.object({
|
|
14
|
+
data: models_1.VideoEditorJobSchema,
|
|
15
|
+
});
|
|
16
|
+
})(EditVideoCommand || (exports.EditVideoCommand = EditVideoCommand = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FindVideoEditorJobByIdCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var FindVideoEditorJobByIdCommand;
|
|
7
|
+
(function (FindVideoEditorJobByIdCommand) {
|
|
8
|
+
FindVideoEditorJobByIdCommand.RequestParamsSchema = models_1.ToolJobSchema.pick({
|
|
9
|
+
uuid: true,
|
|
10
|
+
});
|
|
11
|
+
FindVideoEditorJobByIdCommand.ResponseSchema = zod_1.z.object({
|
|
12
|
+
data: models_1.VideoEditorJobSchema,
|
|
13
|
+
});
|
|
14
|
+
})(FindVideoEditorJobByIdCommand || (exports.FindVideoEditorJobByIdCommand = FindVideoEditorJobByIdCommand = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FindVideoEditorJobsCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var FindVideoEditorJobsCommand;
|
|
7
|
+
(function (FindVideoEditorJobsCommand) {
|
|
8
|
+
FindVideoEditorJobsCommand.RequestQuerySchema = zod_1.z.object({
|
|
9
|
+
limit: zod_1.z.coerce.number().min(1).optional(),
|
|
10
|
+
offset: zod_1.z.coerce.number().min(0).default(0).optional(),
|
|
11
|
+
title: zod_1.z.string().optional(),
|
|
12
|
+
});
|
|
13
|
+
FindVideoEditorJobsCommand.ResponseSchema = zod_1.z.object({
|
|
14
|
+
data: zod_1.z.array(models_1.VideoEditorJobSchema),
|
|
15
|
+
totalPages: zod_1.z.number(),
|
|
16
|
+
page: zod_1.z.number(),
|
|
17
|
+
});
|
|
18
|
+
})(FindVideoEditorJobsCommand || (exports.FindVideoEditorJobsCommand = FindVideoEditorJobsCommand = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetVideoEditorConfigCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var GetVideoEditorConfigCommand;
|
|
7
|
+
(function (GetVideoEditorConfigCommand) {
|
|
8
|
+
GetVideoEditorConfigCommand.RequestSchema = zod_1.z.object({});
|
|
9
|
+
GetVideoEditorConfigCommand.ResponseSchema = zod_1.z.object({
|
|
10
|
+
data: zod_1.z.object({
|
|
11
|
+
models: zod_1.z.array(models_1.VideoEditorModelSchema),
|
|
12
|
+
}),
|
|
13
|
+
});
|
|
14
|
+
})(GetVideoEditorConfigCommand || (exports.GetVideoEditorConfigCommand = GetVideoEditorConfigCommand = {}));
|
|
@@ -0,0 +1,25 @@
|
|
|
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("./delete-all-video-editor-jobs.command"), exports);
|
|
18
|
+
__exportStar(require("./delete-video-editor-job-by-uuid.command"), exports);
|
|
19
|
+
__exportStar(require("./edit-video.command"), exports);
|
|
20
|
+
__exportStar(require("./find-video-editor-job-by-id.command"), exports);
|
|
21
|
+
__exportStar(require("./find-video-editor-jobs.command"), exports);
|
|
22
|
+
__exportStar(require("./get-video-editor-config.command"), exports);
|
|
23
|
+
__exportStar(require("./retry-video-editor-job.command"), exports);
|
|
24
|
+
__exportStar(require("./set-reaction-to-video-editor-job.command"), exports);
|
|
25
|
+
__exportStar(require("./update-video-editor-job-title.command"), exports);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RetryVideoEditorJobCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var RetryVideoEditorJobCommand;
|
|
7
|
+
(function (RetryVideoEditorJobCommand) {
|
|
8
|
+
RetryVideoEditorJobCommand.RequestParamsSchema = models_1.ToolJobSchema.pick({
|
|
9
|
+
uuid: true,
|
|
10
|
+
});
|
|
11
|
+
RetryVideoEditorJobCommand.ResponseSchema = zod_1.z.object({
|
|
12
|
+
data: models_1.VideoEditorJobSchema,
|
|
13
|
+
});
|
|
14
|
+
})(RetryVideoEditorJobCommand || (exports.RetryVideoEditorJobCommand = RetryVideoEditorJobCommand = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SetReactionToVideoEditorJobCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
const constants_1 = require("../../../constants");
|
|
7
|
+
var SetReactionToVideoEditorJobCommand;
|
|
8
|
+
(function (SetReactionToVideoEditorJobCommand) {
|
|
9
|
+
SetReactionToVideoEditorJobCommand.RequestSchema = zod_1.z.object({
|
|
10
|
+
reaction: zod_1.z.nativeEnum(constants_1.USER_REACTION).nullable(),
|
|
11
|
+
});
|
|
12
|
+
SetReactionToVideoEditorJobCommand.RequestParamsSchema = zod_1.z.object({
|
|
13
|
+
uuid: zod_1.z.string().uuid(),
|
|
14
|
+
});
|
|
15
|
+
SetReactionToVideoEditorJobCommand.ResponseSchema = zod_1.z.object({
|
|
16
|
+
data: models_1.VideoEditorJobSchema,
|
|
17
|
+
});
|
|
18
|
+
})(SetReactionToVideoEditorJobCommand || (exports.SetReactionToVideoEditorJobCommand = SetReactionToVideoEditorJobCommand = {}));
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateVideoEditorJobTitleCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var UpdateVideoEditorJobTitleCommand;
|
|
7
|
+
(function (UpdateVideoEditorJobTitleCommand) {
|
|
8
|
+
UpdateVideoEditorJobTitleCommand.RequestSchema = zod_1.z.object({
|
|
9
|
+
title: zod_1.z.string(),
|
|
10
|
+
});
|
|
11
|
+
UpdateVideoEditorJobTitleCommand.RequestParamsSchema = zod_1.z.object({
|
|
12
|
+
uuid: zod_1.z.string().uuid(),
|
|
13
|
+
});
|
|
14
|
+
UpdateVideoEditorJobTitleCommand.ResponseSchema = zod_1.z.object({
|
|
15
|
+
data: models_1.VideoEditorJobSchema,
|
|
16
|
+
});
|
|
17
|
+
})(UpdateVideoEditorJobTitleCommand || (exports.UpdateVideoEditorJobTitleCommand = UpdateVideoEditorJobTitleCommand = {}));
|
|
@@ -8,6 +8,9 @@ var GenerateWriterDocumentContentsCommand;
|
|
|
8
8
|
GenerateWriterDocumentContentsCommand.RequestParamsSchema = zod_1.z.object({
|
|
9
9
|
uuid: zod_1.z.string().uuid(),
|
|
10
10
|
});
|
|
11
|
+
GenerateWriterDocumentContentsCommand.RequestBodySchema = zod_1.z.object({
|
|
12
|
+
modelId: zod_1.z.string().uuid(),
|
|
13
|
+
});
|
|
11
14
|
GenerateWriterDocumentContentsCommand.ResponseSchema = zod_1.z.object({
|
|
12
15
|
data: models_1.WriterDocumentSchema,
|
|
13
16
|
});
|
|
@@ -29,3 +29,4 @@ __exportStar(require("./writer-shorten-text.command"), exports);
|
|
|
29
29
|
__exportStar(require("./writer-fix-errors.command"), exports);
|
|
30
30
|
__exportStar(require("./writer-generate-text.command"), exports);
|
|
31
31
|
__exportStar(require("./export-writer-document-as-docx.command"), exports);
|
|
32
|
+
__exportStar(require("./set-reaction.writer-document.command"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SetReactionWriterDocumentCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const constants_1 = require("../../../constants");
|
|
6
|
+
const models_1 = require("../../../models");
|
|
7
|
+
var SetReactionWriterDocumentCommand;
|
|
8
|
+
(function (SetReactionWriterDocumentCommand) {
|
|
9
|
+
SetReactionWriterDocumentCommand.RequestParamsSchema = zod_1.z.object({
|
|
10
|
+
uuid: zod_1.z.string().uuid(),
|
|
11
|
+
});
|
|
12
|
+
SetReactionWriterDocumentCommand.RequestBodySchema = zod_1.z.object({
|
|
13
|
+
reaction: zod_1.z.nativeEnum(constants_1.USER_REACTION),
|
|
14
|
+
});
|
|
15
|
+
SetReactionWriterDocumentCommand.ResponseSchema = zod_1.z.object({
|
|
16
|
+
data: models_1.WriterDocumentSchema,
|
|
17
|
+
});
|
|
18
|
+
})(SetReactionWriterDocumentCommand || (exports.SetReactionWriterDocumentCommand = SetReactionWriterDocumentCommand = {}));
|
|
@@ -8,7 +8,7 @@ var GetAggregatedUserData;
|
|
|
8
8
|
uuids: zod_1.z.array(zod_1.z.string().uuid()).min(1),
|
|
9
9
|
});
|
|
10
10
|
GetAggregatedUserData.AggregatedUserSchema = zod_1.z.object({
|
|
11
|
-
|
|
11
|
+
userId: zod_1.z.string().uuid(),
|
|
12
12
|
email: zod_1.z.string().email().nullable(),
|
|
13
13
|
telegramId: zod_1.z.number().nullable(),
|
|
14
14
|
lastActivityAt: zod_1.z.string().datetime(),
|
|
@@ -14,6 +14,7 @@ var GetMeCommand;
|
|
|
14
14
|
role: zod_1.z.nativeEnum(constants_1.ROLE),
|
|
15
15
|
signupMethod: zod_1.z.nativeEnum(constants_1.SIGNUP_METHOD),
|
|
16
16
|
telegramId: zod_1.z.number().nullable(),
|
|
17
|
+
webmasterId: zod_1.z.string().uuid().nullable(),
|
|
17
18
|
}),
|
|
18
19
|
});
|
|
19
20
|
})(GetMeCommand || (exports.GetMeCommand = GetMeCommand = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConfirmWithdrawalCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
var ConfirmWithdrawalCommand;
|
|
7
|
+
(function (ConfirmWithdrawalCommand) {
|
|
8
|
+
ConfirmWithdrawalCommand.RequestSchema = zod_1.z.object({
|
|
9
|
+
uuid: zod_1.z.string().uuid(),
|
|
10
|
+
});
|
|
11
|
+
ConfirmWithdrawalCommand.ResponseSchema = zod_1.z.object({
|
|
12
|
+
data: models_1.WebmasterBalanceSchema,
|
|
13
|
+
});
|
|
14
|
+
})(ConfirmWithdrawalCommand || (exports.ConfirmWithdrawalCommand = ConfirmWithdrawalCommand = {}));
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateWebmasterCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
var CreateWebmasterCommand;
|
|
7
|
+
(function (CreateWebmasterCommand) {
|
|
8
|
+
CreateWebmasterCommand.RequestSchema = models_1.WebmasterSchema.pick({
|
|
9
|
+
organization: true,
|
|
10
|
+
organizationType: true,
|
|
11
|
+
tin: true,
|
|
12
|
+
});
|
|
13
|
+
CreateWebmasterCommand.ResponseSchema = zod_1.z.object({
|
|
14
|
+
data: models_1.WebmasterSchema,
|
|
15
|
+
});
|
|
16
|
+
})(CreateWebmasterCommand || (exports.CreateWebmasterCommand = CreateWebmasterCommand = {}));
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateWithdrawalRequestCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var CreateWithdrawalRequestCommand;
|
|
6
|
+
(function (CreateWithdrawalRequestCommand) {
|
|
7
|
+
CreateWithdrawalRequestCommand.RequestSchema = zod_1.z.object({
|
|
8
|
+
amount: zod_1.z.number().positive(),
|
|
9
|
+
tgProfile: zod_1.z.string(),
|
|
10
|
+
});
|
|
11
|
+
CreateWithdrawalRequestCommand.ResponseSchema = zod_1.z.object({
|
|
12
|
+
data: zod_1.z.object({
|
|
13
|
+
isSuccess: zod_1.z.boolean(),
|
|
14
|
+
}),
|
|
15
|
+
});
|
|
16
|
+
})(CreateWithdrawalRequestCommand || (exports.CreateWithdrawalRequestCommand = CreateWithdrawalRequestCommand = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetMyWebmasterCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
var GetMyWebmasterCommand;
|
|
7
|
+
(function (GetMyWebmasterCommand) {
|
|
8
|
+
GetMyWebmasterCommand.ResponseSchema = zod_1.z.object({
|
|
9
|
+
data: models_1.WebmasterWithBalanceSchema,
|
|
10
|
+
});
|
|
11
|
+
})(GetMyWebmasterCommand || (exports.GetMyWebmasterCommand = GetMyWebmasterCommand = {}));
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetWebmasterBalanceOverviewCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const constants_1 = require("../../constants");
|
|
6
|
+
var GetWebmasterBalanceOverviewCommand;
|
|
7
|
+
(function (GetWebmasterBalanceOverviewCommand) {
|
|
8
|
+
GetWebmasterBalanceOverviewCommand.RequestSchema = zod_1.z.object({
|
|
9
|
+
startDate: zod_1.z.string().refine((v) => !isNaN(Date.parse(v)), {
|
|
10
|
+
message: 'from must be a valid date string',
|
|
11
|
+
}),
|
|
12
|
+
endDate: zod_1.z.string().refine((v) => !isNaN(Date.parse(v)), {
|
|
13
|
+
message: 'to must be a valid date string',
|
|
14
|
+
}),
|
|
15
|
+
groupBy: zod_1.z.nativeEnum(constants_1.GROUP_BY).default(constants_1.GROUP_BY.DAY),
|
|
16
|
+
});
|
|
17
|
+
GetWebmasterBalanceOverviewCommand.WebmasterBalanceOverviewResponseSchema = zod_1.z.object({
|
|
18
|
+
startDate: zod_1.z.string(),
|
|
19
|
+
endDate: zod_1.z.string(),
|
|
20
|
+
total_deposited: zod_1.z.number(),
|
|
21
|
+
total_withdrawn: zod_1.z.number(),
|
|
22
|
+
});
|
|
23
|
+
GetWebmasterBalanceOverviewCommand.ResponseSchema = zod_1.z.object({
|
|
24
|
+
data: zod_1.z.array(GetWebmasterBalanceOverviewCommand.WebmasterBalanceOverviewResponseSchema),
|
|
25
|
+
});
|
|
26
|
+
})(GetWebmasterBalanceOverviewCommand || (exports.GetWebmasterBalanceOverviewCommand = GetWebmasterBalanceOverviewCommand = {}));
|
|
@@ -0,0 +1,22 @@
|
|
|
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("./create-webmaster.command"), exports);
|
|
18
|
+
__exportStar(require("./update-webmaster.command"), exports);
|
|
19
|
+
__exportStar(require("./get-my-webmaster.command"), exports);
|
|
20
|
+
__exportStar(require("./get-webmaster-balance-overview.command"), exports);
|
|
21
|
+
__exportStar(require("./create-withdrawal-request.command"), exports);
|
|
22
|
+
__exportStar(require("./confirm-withdrawal.command"), exports);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateWebmasterCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
var UpdateWebmasterCommand;
|
|
7
|
+
(function (UpdateWebmasterCommand) {
|
|
8
|
+
UpdateWebmasterCommand.RequestParamSchema = models_1.WebmasterSchema.pick({ uuid: true });
|
|
9
|
+
UpdateWebmasterCommand.RequestSchema = models_1.WebmasterSchema.partial();
|
|
10
|
+
UpdateWebmasterCommand.ResponseSchema = zod_1.z.object({
|
|
11
|
+
data: models_1.WebmasterSchema,
|
|
12
|
+
});
|
|
13
|
+
})(UpdateWebmasterCommand || (exports.UpdateWebmasterCommand = UpdateWebmasterCommand = {}));
|
|
@@ -7,4 +7,5 @@ var AI_MODEL_CONFIG_PARAM;
|
|
|
7
7
|
AI_MODEL_CONFIG_PARAM["IMAGE_STYLE"] = "image-style";
|
|
8
8
|
AI_MODEL_CONFIG_PARAM["WEB_SEARCH"] = "web-search";
|
|
9
9
|
AI_MODEL_CONFIG_PARAM["EXTRA_SYMBOLS_PRICING"] = "extra-symbols-pricing";
|
|
10
|
+
AI_MODEL_CONFIG_PARAM["REASONING"] = "reasoning";
|
|
10
11
|
})(AI_MODEL_CONFIG_PARAM || (exports.AI_MODEL_CONFIG_PARAM = AI_MODEL_CONFIG_PARAM = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GROUP_BY = void 0;
|
|
4
|
+
var GROUP_BY;
|
|
5
|
+
(function (GROUP_BY) {
|
|
6
|
+
GROUP_BY["DAY"] = "day";
|
|
7
|
+
GROUP_BY["WEEK"] = "week";
|
|
8
|
+
GROUP_BY["MONTH"] = "month";
|
|
9
|
+
})(GROUP_BY || (exports.GROUP_BY = GROUP_BY = {}));
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./group-by.enum"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./enums"), exports);
|