@purpleschool/gptbot 0.7.58 → 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/presentation.ts +10 -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/presentation.js +7 -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/create-chat.command.js +1 -3
- package/build/commands/chat/find-chat-by-uuid.command.js +1 -1
- package/build/commands/chat/find-chats.command.js +1 -3
- package/build/commands/chat/get-last-active-chat-command.js +1 -1
- package/build/commands/folder/find-folder-by-uuid-with-chats.command.js +1 -3
- package/build/commands/index.js +1 -0
- 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/presentation/build-blank-slide.command.js +21 -0
- package/build/commands/tools/presentation/generate-and-insert-slide.command.js +22 -0
- package/build/commands/tools/presentation/index.js +7 -0
- package/build/commands/tools/presentation/presentation-generate-report.command.js +17 -0
- package/build/commands/tools/presentation/presentation-paraphrase.command.js +20 -0
- package/build/commands/tools/presentation/update-presentation-slides.command.js +25 -0
- package/build/commands/tools/presentation/update-presentation.command.js +4 -3
- package/build/commands/tools/presentation/update-slide-image-slot.command.js +34 -0
- package/build/commands/tools/presentation/update-slide.command.js +19 -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 +278 -0
- 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/presentation/enums/index.js +4 -0
- package/build/constants/presentation/enums/presentation-ai-action-call-status.enum.js +9 -0
- package/build/constants/presentation/enums/presentation-ai-action-pricing-type.enum.js +8 -0
- package/build/constants/presentation/enums/presentation-ai-action-type.enum.js +8 -0
- package/build/constants/presentation/enums/slide-image-slot-action.enum.js +8 -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/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 +2 -0
- package/build/helpers/presentation/calculate-presentation-ai-action-price.util.js +16 -0
- package/build/helpers/presentation/index.js +17 -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/chat-with-messages.schema.js +9 -0
- package/build/models/chat.schema.js +0 -2
- package/build/models/index.js +4 -0
- package/build/models/tools/index.js +3 -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/presentation/index.js +1 -0
- package/build/models/tools/presentation/presentation-ai-action.schema.js +27 -0
- package/build/models/tools/presentation/presentation-config.schema.js +3 -0
- package/build/models/tools/presentation/presentation.schema.js +2 -0
- package/build/models/tools/presentation/slide-content-edit.schema.js +129 -0
- package/build/models/tools/presentation/slide-content.schema.js +22 -20
- package/build/models/tools/presentation/slide.schema.js +39 -1
- 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 +1 -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/create-chat.command.ts +2 -4
- package/commands/chat/find-chat-by-uuid.command.ts +2 -2
- package/commands/chat/find-chats.command.ts +2 -6
- package/commands/chat/get-last-active-chat-command.ts +2 -2
- package/commands/folder/find-folder-by-uuid-with-chats.command.ts +2 -6
- package/commands/index.ts +1 -0
- 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/presentation/build-blank-slide.command.ts +23 -0
- package/commands/tools/presentation/generate-and-insert-slide.command.ts +27 -0
- package/commands/tools/presentation/index.ts +7 -0
- package/commands/tools/presentation/presentation-generate-report.command.ts +21 -0
- package/commands/tools/presentation/presentation-paraphrase.command.ts +26 -0
- package/commands/tools/presentation/update-presentation-slides.command.ts +32 -0
- package/commands/tools/presentation/update-presentation.command.ts +5 -4
- package/commands/tools/presentation/update-slide-image-slot.command.ts +40 -0
- package/commands/tools/presentation/update-slide.command.ts +25 -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 +278 -0
- 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/presentation/enums/index.ts +4 -0
- package/constants/presentation/enums/presentation-ai-action-call-status.enum.ts +5 -0
- package/constants/presentation/enums/presentation-ai-action-pricing-type.enum.ts +4 -0
- package/constants/presentation/enums/presentation-ai-action-type.enum.ts +4 -0
- package/constants/presentation/enums/slide-image-slot-action.enum.ts +4 -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/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 +2 -0
- package/helpers/presentation/calculate-presentation-ai-action-price.util.ts +20 -0
- package/helpers/presentation/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/chat-with-messages.schema.ts +7 -0
- package/models/chat.schema.ts +0 -2
- package/models/index.ts +4 -0
- package/models/tools/index.ts +3 -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/presentation/index.ts +1 -0
- package/models/tools/presentation/presentation-ai-action.schema.ts +33 -0
- package/models/tools/presentation/presentation-config.schema.ts +3 -0
- package/models/tools/presentation/presentation.schema.ts +2 -0
- package/models/tools/presentation/slide-content-edit.schema.ts +154 -0
- package/models/tools/presentation/slide-content.schema.ts +119 -32
- package/models/tools/presentation/slide.schema.ts +47 -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 +1 -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
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export const CABINET_CONTROLLER = 'cabinet' as const;
|
|
1
|
+
export const CABINET_CONTROLLER = 'private/cabinet' as const;
|
|
2
2
|
|
|
3
3
|
export const CABINET_ROUTES = {
|
|
4
|
-
|
|
4
|
+
GET_USER_STATISTICS_OVERVIEW: 'statistics/overview',
|
|
5
|
+
GET_USER_STATISTICS_BY_MONTH: 'statistics/by-month',
|
|
5
6
|
} as const;
|
|
@@ -45,7 +45,10 @@ export * from './folder';
|
|
|
45
45
|
export * from './user-to-product';
|
|
46
46
|
export * from './user-to-subscription';
|
|
47
47
|
export * from './video';
|
|
48
|
+
export * from './video-editor';
|
|
48
49
|
export * from './writer';
|
|
49
50
|
export * from './image-editor';
|
|
50
51
|
export * from './daily-streak';
|
|
51
52
|
export * from './cabinet';
|
|
53
|
+
export * from './webmaster';
|
|
54
|
+
export * from './music';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export const MUSIC_CONTROLLER_PRIVATE = 'private/tools/music' as const;
|
|
2
|
+
export const MUSIC_CONTROLLER_PUBLIC = 'public/tools/music' as const;
|
|
3
|
+
|
|
4
|
+
export const MUSIC_ROUTES = {
|
|
5
|
+
CONFIG: 'config',
|
|
6
|
+
EXECUTE: 'execute',
|
|
7
|
+
GENERATE_LYRICS: 'lyrics',
|
|
8
|
+
CONVERT_TO_WAV: 'convert-to-wav',
|
|
9
|
+
GET_JOBS: 'jobs',
|
|
10
|
+
GET_JOB: (uuid: string) => `jobs/${uuid}`,
|
|
11
|
+
UPDATE: (uuid: string) => `jobs/${uuid}`,
|
|
12
|
+
SET_REACTION: (uuid: string) => `jobs/${uuid}/reaction`,
|
|
13
|
+
DELETE: (uuid: string) => `jobs/${uuid}`,
|
|
14
|
+
DELETE_ALL: 'jobs',
|
|
15
|
+
RETRY: (uuid: string) => `jobs/${uuid}/retry`,
|
|
16
|
+
} as const;
|
|
@@ -16,6 +16,16 @@ export const PRESENTATION_ROUTES = {
|
|
|
16
16
|
UPDATE_PRESENTATION_OUTLINE: (uuid: string) => `${uuid}/outline`,
|
|
17
17
|
UPDATE_SLIDE_OUTLINE: (presentationId: string, slideOutlineId: string) =>
|
|
18
18
|
`${presentationId}/outline/${slideOutlineId}`,
|
|
19
|
+
UPDATE_PRESENTATION_SLIDES: (uuid: string) => `${uuid}/slides`,
|
|
20
|
+
GENERATE_AND_INSERT_SLIDE: (uuid: string) => `${uuid}/slides/generate-and-insert`,
|
|
21
|
+
BUILD_BLANK_SLIDE: 'slides/blank',
|
|
22
|
+
UPDATE_SLIDE_IMAGE_SLOT: (presentationId: string, slideId: string, slotId: string) =>
|
|
23
|
+
`${presentationId}/slides/${slideId}/image-slots/${slotId}`,
|
|
24
|
+
UPDATE_SLIDE: (presentationId: string, slideId: string) =>
|
|
25
|
+
`${presentationId}/slides/${slideId}`,
|
|
26
|
+
PARAPHRASE: (presentationId: string, slideId: string) =>
|
|
27
|
+
`${presentationId}/slides/${slideId}/paraphrase`,
|
|
28
|
+
GENERATE_REPORT: (presentationId: string) => `${presentationId}/generate-report`,
|
|
19
29
|
REPOSITION_SLIDE_OUTLINE: (presentationId: string, slideOutlineId: string) =>
|
|
20
30
|
`${presentationId}/outline/${slideOutlineId}/move`,
|
|
21
31
|
DELETE_SLIDE_OUTLINE: (presentationId: string, slideOutlineId: string) =>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export const VIDEO_EDITOR_CONTROLLER_PRIVATE = 'private/tools/video-editor' as const;
|
|
2
|
+
export const VIDEO_EDITOR_CONTROLLER_PUBLIC = 'public/tools/video-editor' as const;
|
|
3
|
+
|
|
4
|
+
export const VIDEO_EDITOR_ROUTES = {
|
|
5
|
+
CONFIG: 'config',
|
|
6
|
+
EXECUTE: 'execute',
|
|
7
|
+
GET_JOBS: 'jobs',
|
|
8
|
+
GET_JOB: (uuid: string) => `jobs/${uuid}`,
|
|
9
|
+
UPDATE: (uuid: string) => `jobs/${uuid}`,
|
|
10
|
+
SET_REACTION: (uuid: string) => `jobs/${uuid}/reaction`,
|
|
11
|
+
DELETE: (uuid: string) => `jobs/${uuid}`,
|
|
12
|
+
DELETE_ALL: 'jobs',
|
|
13
|
+
RETRY: (uuid: string) => `jobs/${uuid}/retry`,
|
|
14
|
+
} as const;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export const WEBMASTER_CONTROLLER_PRIVATE = 'private/webmaster' as const;
|
|
2
|
+
|
|
3
|
+
export const WEBMASTER_ROUTES = {
|
|
4
|
+
GET_MY: 'my',
|
|
5
|
+
GET_BALANCE_OVERVIEW: 'overview',
|
|
6
|
+
CREATE: '',
|
|
7
|
+
CREATE_WITHDRAWAL_REQUEST: 'withdraw',
|
|
8
|
+
CONFIRM_WITHDRAWAL: (uuid: string) => `withdraw/${uuid}`,
|
|
9
|
+
UPDATE: (uuid: string) => `${uuid}`,
|
|
10
|
+
} as const;
|
|
@@ -17,4 +17,5 @@ export const WRITER_ROUTES = {
|
|
|
17
17
|
FIX_ERRORS: (uuid: string) => `documents/${uuid}/actions/fix-errors`,
|
|
18
18
|
GENERATE_TEXT: (uuid: string) => `documents/${uuid}/actions/generate-text`,
|
|
19
19
|
EXPORT_AS_DOCX: (uuid: string) => `documents/${uuid}/export/docx`,
|
|
20
|
+
SET_REACTION: (uuid: string) => `documents/${uuid}/reaction`,
|
|
20
21
|
} as const;
|
package/api/routes.ts
CHANGED
|
@@ -302,6 +302,13 @@ export const REST_API = {
|
|
|
302
302
|
COLLECT: `${ROOT}/${CONTROLLERS.DAILY_STREAK_PRIVATE_CONTROLLER}/${CONTROLLERS.DAILY_STREAK_ROUTES.COLLECT}`,
|
|
303
303
|
},
|
|
304
304
|
CABINET: {
|
|
305
|
-
|
|
305
|
+
GET_USER_STATISTICS_OVERVIEW: `${ROOT}/${CONTROLLERS.CABINET_CONTROLLER}/${CONTROLLERS.CABINET_ROUTES.GET_USER_STATISTICS_OVERVIEW}`,
|
|
306
|
+
GET_USER_STATISTICS_BY_MONTH: `${ROOT}/${CONTROLLERS.CABINET_CONTROLLER}/${CONTROLLERS.CABINET_ROUTES.GET_USER_STATISTICS_BY_MONTH}`,
|
|
307
|
+
},
|
|
308
|
+
WEBMASTER_PRIVATE: {
|
|
309
|
+
GET_MY: `${ROOT}/${CONTROLLERS.WEBMASTER_CONTROLLER_PRIVATE}/${CONTROLLERS.WEBMASTER_ROUTES.GET_MY}`,
|
|
310
|
+
CREATE: `${ROOT}/${CONTROLLERS.WEBMASTER_CONTROLLER_PRIVATE}/${CONTROLLERS.WEBMASTER_ROUTES.CREATE}`,
|
|
311
|
+
UPDATE: (uuid: string) =>
|
|
312
|
+
`${ROOT}/${CONTROLLERS.WEBMASTER_CONTROLLER_PRIVATE}/${CONTROLLERS.WEBMASTER_ROUTES.UPDATE(uuid)}`,
|
|
306
313
|
},
|
|
307
314
|
} as const;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CABINET_ROUTES = exports.CABINET_CONTROLLER = void 0;
|
|
4
|
-
exports.CABINET_CONTROLLER = 'cabinet';
|
|
4
|
+
exports.CABINET_CONTROLLER = 'private/cabinet';
|
|
5
5
|
exports.CABINET_ROUTES = {
|
|
6
|
-
|
|
6
|
+
GET_USER_STATISTICS_OVERVIEW: 'statistics/overview',
|
|
7
|
+
GET_USER_STATISTICS_BY_MONTH: 'statistics/by-month',
|
|
7
8
|
};
|
|
@@ -61,7 +61,10 @@ __exportStar(require("./folder"), exports);
|
|
|
61
61
|
__exportStar(require("./user-to-product"), exports);
|
|
62
62
|
__exportStar(require("./user-to-subscription"), exports);
|
|
63
63
|
__exportStar(require("./video"), exports);
|
|
64
|
+
__exportStar(require("./video-editor"), exports);
|
|
64
65
|
__exportStar(require("./writer"), exports);
|
|
65
66
|
__exportStar(require("./image-editor"), exports);
|
|
66
67
|
__exportStar(require("./daily-streak"), exports);
|
|
67
68
|
__exportStar(require("./cabinet"), exports);
|
|
69
|
+
__exportStar(require("./webmaster"), exports);
|
|
70
|
+
__exportStar(require("./music"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MUSIC_ROUTES = exports.MUSIC_CONTROLLER_PUBLIC = exports.MUSIC_CONTROLLER_PRIVATE = void 0;
|
|
4
|
+
exports.MUSIC_CONTROLLER_PRIVATE = 'private/tools/music';
|
|
5
|
+
exports.MUSIC_CONTROLLER_PUBLIC = 'public/tools/music';
|
|
6
|
+
exports.MUSIC_ROUTES = {
|
|
7
|
+
CONFIG: 'config',
|
|
8
|
+
EXECUTE: 'execute',
|
|
9
|
+
GENERATE_LYRICS: 'lyrics',
|
|
10
|
+
CONVERT_TO_WAV: 'convert-to-wav',
|
|
11
|
+
GET_JOBS: 'jobs',
|
|
12
|
+
GET_JOB: (uuid) => `jobs/${uuid}`,
|
|
13
|
+
UPDATE: (uuid) => `jobs/${uuid}`,
|
|
14
|
+
SET_REACTION: (uuid) => `jobs/${uuid}/reaction`,
|
|
15
|
+
DELETE: (uuid) => `jobs/${uuid}`,
|
|
16
|
+
DELETE_ALL: 'jobs',
|
|
17
|
+
RETRY: (uuid) => `jobs/${uuid}/retry`,
|
|
18
|
+
};
|
|
@@ -17,6 +17,13 @@ exports.PRESENTATION_ROUTES = {
|
|
|
17
17
|
GENERATE_SLIDES: (uuid) => `${uuid}/slides/generate`,
|
|
18
18
|
UPDATE_PRESENTATION_OUTLINE: (uuid) => `${uuid}/outline`,
|
|
19
19
|
UPDATE_SLIDE_OUTLINE: (presentationId, slideOutlineId) => `${presentationId}/outline/${slideOutlineId}`,
|
|
20
|
+
UPDATE_PRESENTATION_SLIDES: (uuid) => `${uuid}/slides`,
|
|
21
|
+
GENERATE_AND_INSERT_SLIDE: (uuid) => `${uuid}/slides/generate-and-insert`,
|
|
22
|
+
BUILD_BLANK_SLIDE: 'slides/blank',
|
|
23
|
+
UPDATE_SLIDE_IMAGE_SLOT: (presentationId, slideId, slotId) => `${presentationId}/slides/${slideId}/image-slots/${slotId}`,
|
|
24
|
+
UPDATE_SLIDE: (presentationId, slideId) => `${presentationId}/slides/${slideId}`,
|
|
25
|
+
PARAPHRASE: (presentationId, slideId) => `${presentationId}/slides/${slideId}/paraphrase`,
|
|
26
|
+
GENERATE_REPORT: (presentationId) => `${presentationId}/generate-report`,
|
|
20
27
|
REPOSITION_SLIDE_OUTLINE: (presentationId, slideOutlineId) => `${presentationId}/outline/${slideOutlineId}/move`,
|
|
21
28
|
DELETE_SLIDE_OUTLINE: (presentationId, slideOutlineId) => `${presentationId}/outline/${slideOutlineId}`,
|
|
22
29
|
CREATE_SLIDE_OUTLINE: (presentationId) => `${presentationId}/outline`,
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VIDEO_EDITOR_ROUTES = exports.VIDEO_EDITOR_CONTROLLER_PUBLIC = exports.VIDEO_EDITOR_CONTROLLER_PRIVATE = void 0;
|
|
4
|
+
exports.VIDEO_EDITOR_CONTROLLER_PRIVATE = 'private/tools/video-editor';
|
|
5
|
+
exports.VIDEO_EDITOR_CONTROLLER_PUBLIC = 'public/tools/video-editor';
|
|
6
|
+
exports.VIDEO_EDITOR_ROUTES = {
|
|
7
|
+
CONFIG: 'config',
|
|
8
|
+
EXECUTE: 'execute',
|
|
9
|
+
GET_JOBS: 'jobs',
|
|
10
|
+
GET_JOB: (uuid) => `jobs/${uuid}`,
|
|
11
|
+
UPDATE: (uuid) => `jobs/${uuid}`,
|
|
12
|
+
SET_REACTION: (uuid) => `jobs/${uuid}/reaction`,
|
|
13
|
+
DELETE: (uuid) => `jobs/${uuid}`,
|
|
14
|
+
DELETE_ALL: 'jobs',
|
|
15
|
+
RETRY: (uuid) => `jobs/${uuid}/retry`,
|
|
16
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WEBMASTER_ROUTES = exports.WEBMASTER_CONTROLLER_PRIVATE = void 0;
|
|
4
|
+
exports.WEBMASTER_CONTROLLER_PRIVATE = 'private/webmaster';
|
|
5
|
+
exports.WEBMASTER_ROUTES = {
|
|
6
|
+
GET_MY: 'my',
|
|
7
|
+
GET_BALANCE_OVERVIEW: 'overview',
|
|
8
|
+
CREATE: '',
|
|
9
|
+
CREATE_WITHDRAWAL_REQUEST: 'withdraw',
|
|
10
|
+
CONFIRM_WITHDRAWAL: (uuid) => `withdraw/${uuid}`,
|
|
11
|
+
UPDATE: (uuid) => `${uuid}`,
|
|
12
|
+
};
|
|
@@ -19,4 +19,5 @@ exports.WRITER_ROUTES = {
|
|
|
19
19
|
FIX_ERRORS: (uuid) => `documents/${uuid}/actions/fix-errors`,
|
|
20
20
|
GENERATE_TEXT: (uuid) => `documents/${uuid}/actions/generate-text`,
|
|
21
21
|
EXPORT_AS_DOCX: (uuid) => `documents/${uuid}/export/docx`,
|
|
22
|
+
SET_REACTION: (uuid) => `documents/${uuid}/reaction`,
|
|
22
23
|
};
|
package/build/api/routes.js
CHANGED
|
@@ -271,6 +271,12 @@ exports.REST_API = {
|
|
|
271
271
|
COLLECT: `${exports.ROOT}/${CONTROLLERS.DAILY_STREAK_PRIVATE_CONTROLLER}/${CONTROLLERS.DAILY_STREAK_ROUTES.COLLECT}`,
|
|
272
272
|
},
|
|
273
273
|
CABINET: {
|
|
274
|
-
|
|
274
|
+
GET_USER_STATISTICS_OVERVIEW: `${exports.ROOT}/${CONTROLLERS.CABINET_CONTROLLER}/${CONTROLLERS.CABINET_ROUTES.GET_USER_STATISTICS_OVERVIEW}`,
|
|
275
|
+
GET_USER_STATISTICS_BY_MONTH: `${exports.ROOT}/${CONTROLLERS.CABINET_CONTROLLER}/${CONTROLLERS.CABINET_ROUTES.GET_USER_STATISTICS_BY_MONTH}`,
|
|
276
|
+
},
|
|
277
|
+
WEBMASTER_PRIVATE: {
|
|
278
|
+
GET_MY: `${exports.ROOT}/${CONTROLLERS.WEBMASTER_CONTROLLER_PRIVATE}/${CONTROLLERS.WEBMASTER_ROUTES.GET_MY}`,
|
|
279
|
+
CREATE: `${exports.ROOT}/${CONTROLLERS.WEBMASTER_CONTROLLER_PRIVATE}/${CONTROLLERS.WEBMASTER_ROUTES.CREATE}`,
|
|
280
|
+
UPDATE: (uuid) => `${exports.ROOT}/${CONTROLLERS.WEBMASTER_CONTROLLER_PRIVATE}/${CONTROLLERS.WEBMASTER_ROUTES.UPDATE(uuid)}`,
|
|
275
281
|
},
|
|
276
282
|
};
|
|
@@ -6,12 +6,10 @@ const zod_1 = require("zod");
|
|
|
6
6
|
var RegisterUserCommand;
|
|
7
7
|
(function (RegisterUserCommand) {
|
|
8
8
|
RegisterUserCommand.RequestSchema = models_1.UserSchema.pick({ email: true, password: true })
|
|
9
|
-
.extend({
|
|
10
|
-
partnerId: zod_1.z.string().optional(),
|
|
11
|
-
})
|
|
12
9
|
.extend({
|
|
13
10
|
utm: models_1.UtmSchema.optional(),
|
|
14
|
-
})
|
|
11
|
+
})
|
|
12
|
+
.merge(models_1.UserReferralsSchema);
|
|
15
13
|
RegisterUserCommand.ResponseSchema = zod_1.z.object({
|
|
16
14
|
data: zod_1.z.object({
|
|
17
15
|
accessToken: zod_1.z.string(),
|
|
@@ -2,14 +2,17 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VKLoginCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
5
6
|
var VKLoginCommand;
|
|
6
7
|
(function (VKLoginCommand) {
|
|
7
|
-
VKLoginCommand.RequestSchema = zod_1.z
|
|
8
|
+
VKLoginCommand.RequestSchema = zod_1.z
|
|
9
|
+
.object({
|
|
8
10
|
code: zod_1.z.string(),
|
|
9
11
|
code_verifier: zod_1.z.string(),
|
|
10
12
|
device_id: zod_1.z.string(),
|
|
11
13
|
state: zod_1.z.string(),
|
|
12
|
-
})
|
|
14
|
+
})
|
|
15
|
+
.merge(models_1.UserReferralsSchema);
|
|
13
16
|
VKLoginCommand.ResponseSchema = zod_1.z.object({
|
|
14
17
|
data: zod_1.z.object({
|
|
15
18
|
accessToken: zod_1.z.string(),
|
|
@@ -2,12 +2,15 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.YandexLoginCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
5
6
|
var YandexLoginCommand;
|
|
6
7
|
(function (YandexLoginCommand) {
|
|
7
|
-
YandexLoginCommand.RequestSchema = zod_1.z
|
|
8
|
+
YandexLoginCommand.RequestSchema = zod_1.z
|
|
9
|
+
.object({
|
|
8
10
|
code: zod_1.z.string(),
|
|
9
11
|
code_verifier: zod_1.z.string(),
|
|
10
|
-
})
|
|
12
|
+
})
|
|
13
|
+
.merge(models_1.UserReferralsSchema);
|
|
11
14
|
YandexLoginCommand.ResponseSchema = zod_1.z.object({
|
|
12
15
|
data: zod_1.z.object({
|
|
13
16
|
accessToken: zod_1.z.string(),
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetUserStatisticsByMonthCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var GetUserStatisticsByMonthCommand;
|
|
6
|
+
(function (GetUserStatisticsByMonthCommand) {
|
|
7
|
+
GetUserStatisticsByMonthCommand.UserStatisticsByMonthResponseSchema = zod_1.z.object({
|
|
8
|
+
month: zod_1.z.string(),
|
|
9
|
+
total_texts: zod_1.z.number(),
|
|
10
|
+
total_audios: zod_1.z.number(),
|
|
11
|
+
total_images: zod_1.z.number(),
|
|
12
|
+
total_videos: zod_1.z.number(),
|
|
13
|
+
total_presentations: zod_1.z.number(),
|
|
14
|
+
total_paraphrases: zod_1.z.number(),
|
|
15
|
+
writers: zod_1.z.object({
|
|
16
|
+
total_writers: zod_1.z.number(),
|
|
17
|
+
total_writer_actions: zod_1.z.number(),
|
|
18
|
+
}),
|
|
19
|
+
total_video_edits: zod_1.z.number(),
|
|
20
|
+
total_musics: zod_1.z.number(),
|
|
21
|
+
});
|
|
22
|
+
GetUserStatisticsByMonthCommand.ResponseSchema = zod_1.z.object({
|
|
23
|
+
data: zod_1.z.array(GetUserStatisticsByMonthCommand.UserStatisticsByMonthResponseSchema),
|
|
24
|
+
});
|
|
25
|
+
})(GetUserStatisticsByMonthCommand || (exports.GetUserStatisticsByMonthCommand = GetUserStatisticsByMonthCommand = {}));
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetUserStatisticsOverviewCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const constants_1 = require("../../constants");
|
|
6
|
+
var GetUserStatisticsOverviewCommand;
|
|
7
|
+
(function (GetUserStatisticsOverviewCommand) {
|
|
8
|
+
GetUserStatisticsOverviewCommand.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
|
+
GetUserStatisticsOverviewCommand.UserStatisticsOverviewResponseSchema = zod_1.z.object({
|
|
18
|
+
startDate: zod_1.z.string(),
|
|
19
|
+
endDate: zod_1.z.string(),
|
|
20
|
+
total_tokens: zod_1.z.number(),
|
|
21
|
+
total_messages: zod_1.z.number(),
|
|
22
|
+
});
|
|
23
|
+
GetUserStatisticsOverviewCommand.ResponseSchema = zod_1.z.object({
|
|
24
|
+
data: zod_1.z.array(GetUserStatisticsOverviewCommand.UserStatisticsOverviewResponseSchema),
|
|
25
|
+
});
|
|
26
|
+
})(GetUserStatisticsOverviewCommand || (exports.GetUserStatisticsOverviewCommand = GetUserStatisticsOverviewCommand = {}));
|
|
@@ -14,4 +14,5 @@ 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("./get-user-statistics.command"), exports);
|
|
17
|
+
__exportStar(require("./get-user-statistics-overview.command"), exports);
|
|
18
|
+
__exportStar(require("./get-user-statistics-by-month.command"), exports);
|
|
@@ -12,8 +12,6 @@ var CreateChatCommand;
|
|
|
12
12
|
folderId: zod_1.z.string().uuid().optional(),
|
|
13
13
|
});
|
|
14
14
|
CreateChatCommand.ResponseSchema = zod_1.z.object({
|
|
15
|
-
data: models_1.
|
|
16
|
-
messages: zod_1.z.array(models_1.MessageSchema),
|
|
17
|
-
}),
|
|
15
|
+
data: models_1.ChatWithMessagesSchema,
|
|
18
16
|
});
|
|
19
17
|
})(CreateChatCommand || (exports.CreateChatCommand = CreateChatCommand = {}));
|
|
@@ -9,6 +9,6 @@ var FindChatByUUIDCommand;
|
|
|
9
9
|
uuid: true,
|
|
10
10
|
});
|
|
11
11
|
FindChatByUUIDCommand.ResponseSchema = zod_1.z.object({
|
|
12
|
-
data: models_1.
|
|
12
|
+
data: models_1.ChatWithMessagesSchema,
|
|
13
13
|
});
|
|
14
14
|
})(FindChatByUUIDCommand || (exports.FindChatByUUIDCommand = FindChatByUUIDCommand = {}));
|
|
@@ -13,9 +13,7 @@ var FindChatsCommand;
|
|
|
13
13
|
const QuerySchema = zod_1.z.intersection(models_1.ChatSchema.pick({ categoryId: true, aIModelId: true }).partial(), models_1.AiModelSchema.pick({ contentType: true }).partial());
|
|
14
14
|
FindChatsCommand.RequestQuerySchema = zod_1.z.intersection(QuerySchema, PaginationQuerySchema);
|
|
15
15
|
FindChatsCommand.ResponseSchema = zod_1.z.object({
|
|
16
|
-
data: zod_1.z.array(models_1.ChatSchema
|
|
17
|
-
messages: zod_1.z.array(models_1.MessageSchema),
|
|
18
|
-
})),
|
|
16
|
+
data: zod_1.z.array(models_1.ChatSchema),
|
|
19
17
|
page: zod_1.z.number(),
|
|
20
18
|
totalPages: zod_1.z.number(),
|
|
21
19
|
});
|
|
@@ -10,6 +10,6 @@ var GetLastActiveChatCommand;
|
|
|
10
10
|
aIModelId: true,
|
|
11
11
|
});
|
|
12
12
|
GetLastActiveChatCommand.Response = zod_1.z.object({
|
|
13
|
-
data: models_1.
|
|
13
|
+
data: models_1.ChatWithMessagesSchema,
|
|
14
14
|
});
|
|
15
15
|
})(GetLastActiveChatCommand || (exports.GetLastActiveChatCommand = GetLastActiveChatCommand = {}));
|
|
@@ -17,9 +17,7 @@ var FindFolderByUuidWithChatsCommand;
|
|
|
17
17
|
});
|
|
18
18
|
FindFolderByUuidWithChatsCommand.ResponseSchema = zod_1.default.object({
|
|
19
19
|
data: models_1.FolderSchema.extend({
|
|
20
|
-
chats: zod_1.default.array(models_1.ChatSchema
|
|
21
|
-
messages: zod_1.default.array(models_1.MessageSchema),
|
|
22
|
-
})),
|
|
20
|
+
chats: zod_1.default.array(models_1.ChatSchema),
|
|
23
21
|
}),
|
|
24
22
|
page: zod_1.default.number(),
|
|
25
23
|
totalPages: zod_1.default.number(),
|
package/build/commands/index.js
CHANGED
|
@@ -30,6 +30,10 @@ var BuyProductCommand;
|
|
|
30
30
|
email: zod_1.z.string().email(),
|
|
31
31
|
partnerId: zod_1.z.string().uuid().optional(),
|
|
32
32
|
promocode: zod_1.z.string().optional(),
|
|
33
|
+
webmasterAlias: zod_1.z.string().optional(),
|
|
34
|
+
webmasterReferralProvidedAt: zod_1.z
|
|
35
|
+
.preprocess((val) => (typeof val === 'string' ? new Date(val) : val), zod_1.z.date())
|
|
36
|
+
.optional(),
|
|
33
37
|
});
|
|
34
38
|
BuyProductCommand.ResponseSchema = zod_1.z.object({
|
|
35
39
|
publicId: zod_1.z.string(),
|
|
@@ -16,6 +16,10 @@ var BuySubscriptionCommand;
|
|
|
16
16
|
email: zod_1.z.string().email(),
|
|
17
17
|
partnerId: zod_1.z.string().uuid().optional(),
|
|
18
18
|
promocode: zod_1.z.string().optional(),
|
|
19
|
+
webmasterAlias: zod_1.z.string().optional(),
|
|
20
|
+
webmasterReferralProvidedAt: zod_1.z
|
|
21
|
+
.preprocess((val) => (typeof val === 'string' ? new Date(val) : val), zod_1.z.date())
|
|
22
|
+
.optional(),
|
|
19
23
|
});
|
|
20
24
|
const IReceiptOrderSchema = zod_1.z.object({
|
|
21
25
|
items: zod_1.z.array(zod_1.z.object({
|
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CreateTelegramAuthLinkCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
5
6
|
var CreateTelegramAuthLinkCommand;
|
|
6
7
|
(function (CreateTelegramAuthLinkCommand) {
|
|
8
|
+
CreateTelegramAuthLinkCommand.RequestSchema = models_1.UserReferralsSchema;
|
|
7
9
|
CreateTelegramAuthLinkCommand.ResponseSchema = zod_1.z.object({
|
|
8
10
|
data: zod_1.z.object({
|
|
9
11
|
uuid: zod_1.z.string().uuid(),
|
|
@@ -9,6 +9,10 @@ var AuthWithTelegramWebAppCommand;
|
|
|
9
9
|
initData: zod_1.z.string(),
|
|
10
10
|
platform: zod_1.z.string().nullable(),
|
|
11
11
|
partnerId: zod_1.z.string().optional(),
|
|
12
|
+
webmasterAlias: zod_1.z.string().optional(),
|
|
13
|
+
webmasterReferralProvidedAt: zod_1.z
|
|
14
|
+
.preprocess((val) => (typeof val === 'string' ? new Date(val) : val), zod_1.z.date())
|
|
15
|
+
.optional(),
|
|
12
16
|
utm: models_1.UtmSchema.optional(),
|
|
13
17
|
});
|
|
14
18
|
AuthWithTelegramWebAppCommand.ResponseSchema = zod_1.z.object({
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BotWasBlockedByUserCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var BotWasBlockedByUserCommand;
|
|
6
|
+
(function (BotWasBlockedByUserCommand) {
|
|
7
|
+
BotWasBlockedByUserCommand.RequestBodySchema = zod_1.z.object({
|
|
8
|
+
telegramId: zod_1.z.number(),
|
|
9
|
+
});
|
|
10
|
+
BotWasBlockedByUserCommand.ResponseSchema = zod_1.z.void();
|
|
11
|
+
})(BotWasBlockedByUserCommand || (exports.BotWasBlockedByUserCommand = BotWasBlockedByUserCommand = {}));
|
|
@@ -17,3 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./auth-with-telegram-web-app.command"), exports);
|
|
18
18
|
__exportStar(require("./check-telegram-profile-exists.command"), exports);
|
|
19
19
|
__exportStar(require("./create-telegram-profile-connection-link.command"), exports);
|
|
20
|
+
__exportStar(require("./bot-was-blocked-by-user.command"), exports);
|
|
21
|
+
__exportStar(require("./user-joined-telegram.command"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserJoinedTelegramCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var UserJoinedTelegramCommand;
|
|
6
|
+
(function (UserJoinedTelegramCommand) {
|
|
7
|
+
UserJoinedTelegramCommand.RequestBodySchema = zod_1.z.object({
|
|
8
|
+
telegramId: zod_1.z.number(),
|
|
9
|
+
});
|
|
10
|
+
UserJoinedTelegramCommand.ResponseSchema = zod_1.z.void();
|
|
11
|
+
})(UserJoinedTelegramCommand || (exports.UserJoinedTelegramCommand = UserJoinedTelegramCommand = {}));
|
|
@@ -22,3 +22,5 @@ __exportStar(require("./tts"), exports);
|
|
|
22
22
|
__exportStar(require("./video"), exports);
|
|
23
23
|
__exportStar(require("./writer"), exports);
|
|
24
24
|
__exportStar(require("./image-editor"), exports);
|
|
25
|
+
__exportStar(require("./video-editor"), exports);
|
|
26
|
+
__exportStar(require("./music"), exports);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConvertToWavCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var ConvertToWavCommand;
|
|
6
|
+
(function (ConvertToWavCommand) {
|
|
7
|
+
ConvertToWavCommand.RequestSchema = zod_1.z.object({
|
|
8
|
+
taskId: zod_1.z.string(),
|
|
9
|
+
audioId: zod_1.z.string(),
|
|
10
|
+
});
|
|
11
|
+
ConvertToWavCommand.ResponseSchema = zod_1.z.object({
|
|
12
|
+
data: zod_1.z.object({
|
|
13
|
+
url: zod_1.z.string().url(),
|
|
14
|
+
}),
|
|
15
|
+
});
|
|
16
|
+
})(ConvertToWavCommand || (exports.ConvertToWavCommand = ConvertToWavCommand = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteAllMusicJobsCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var DeleteAllMusicJobsCommand;
|
|
6
|
+
(function (DeleteAllMusicJobsCommand) {
|
|
7
|
+
DeleteAllMusicJobsCommand.ResponseSchema = zod_1.z.void();
|
|
8
|
+
})(DeleteAllMusicJobsCommand || (exports.DeleteAllMusicJobsCommand = DeleteAllMusicJobsCommand = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteMusicJobByUUIDCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var DeleteMusicJobByUUIDCommand;
|
|
6
|
+
(function (DeleteMusicJobByUUIDCommand) {
|
|
7
|
+
DeleteMusicJobByUUIDCommand.RequestParamsSchema = zod_1.z.object({
|
|
8
|
+
uuid: zod_1.z.string().uuid(),
|
|
9
|
+
});
|
|
10
|
+
DeleteMusicJobByUUIDCommand.ResponseSchema = zod_1.z.void();
|
|
11
|
+
})(DeleteMusicJobByUUIDCommand || (exports.DeleteMusicJobByUUIDCommand = DeleteMusicJobByUUIDCommand = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FindMusicJobByUUIDCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var FindMusicJobByUUIDCommand;
|
|
7
|
+
(function (FindMusicJobByUUIDCommand) {
|
|
8
|
+
FindMusicJobByUUIDCommand.RequestParamsSchema = models_1.ToolJobSchema.pick({
|
|
9
|
+
uuid: true,
|
|
10
|
+
});
|
|
11
|
+
FindMusicJobByUUIDCommand.ResponseSchema = zod_1.z.object({
|
|
12
|
+
data: models_1.MusicJobSchema,
|
|
13
|
+
});
|
|
14
|
+
})(FindMusicJobByUUIDCommand || (exports.FindMusicJobByUUIDCommand = FindMusicJobByUUIDCommand = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FindMusicJobsCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var FindMusicJobsCommand;
|
|
7
|
+
(function (FindMusicJobsCommand) {
|
|
8
|
+
FindMusicJobsCommand.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
|
+
FindMusicJobsCommand.ResponseSchema = zod_1.z.object({
|
|
14
|
+
data: zod_1.z.array(models_1.MusicJobSchema),
|
|
15
|
+
totalPages: zod_1.z.number(),
|
|
16
|
+
page: zod_1.z.number(),
|
|
17
|
+
});
|
|
18
|
+
})(FindMusicJobsCommand || (exports.FindMusicJobsCommand = FindMusicJobsCommand = {}));
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GenerateLyricsCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var GenerateLyricsCommand;
|
|
6
|
+
(function (GenerateLyricsCommand) {
|
|
7
|
+
GenerateLyricsCommand.RequestSchema = zod_1.z.object({
|
|
8
|
+
prompt: zod_1.z.string(),
|
|
9
|
+
});
|
|
10
|
+
GenerateLyricsCommand.ResponseSchema = zod_1.z.object({
|
|
11
|
+
data: zod_1.z.object({
|
|
12
|
+
title: zod_1.z.string(),
|
|
13
|
+
lyrics: zod_1.z.string(),
|
|
14
|
+
}),
|
|
15
|
+
});
|
|
16
|
+
})(GenerateLyricsCommand || (exports.GenerateLyricsCommand = GenerateLyricsCommand = {}));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MusicCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var MusicCommand;
|
|
7
|
+
(function (MusicCommand) {
|
|
8
|
+
MusicCommand.RequestSchema = zod_1.z.object({
|
|
9
|
+
modelId: zod_1.z.string().uuid(),
|
|
10
|
+
params: models_1.MusicJobParamsSchema,
|
|
11
|
+
});
|
|
12
|
+
MusicCommand.ResponseSchema = zod_1.z.object({
|
|
13
|
+
data: models_1.ToolJobSchema,
|
|
14
|
+
});
|
|
15
|
+
})(MusicCommand || (exports.MusicCommand = MusicCommand = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetMusicToolConfigCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var GetMusicToolConfigCommand;
|
|
7
|
+
(function (GetMusicToolConfigCommand) {
|
|
8
|
+
GetMusicToolConfigCommand.ResponseSchema = zod_1.z.object({
|
|
9
|
+
data: models_1.MusicConfigSchema,
|
|
10
|
+
});
|
|
11
|
+
})(GetMusicToolConfigCommand || (exports.GetMusicToolConfigCommand = GetMusicToolConfigCommand = {}));
|