@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.
Files changed (234) hide show
  1. package/api/controllers/http/cabinet.ts +3 -2
  2. package/api/controllers/http/index.ts +3 -0
  3. package/api/controllers/http/music.ts +16 -0
  4. package/api/controllers/http/tool.ts +1 -0
  5. package/api/controllers/http/video-editor.ts +14 -0
  6. package/api/controllers/http/webmaster.ts +10 -0
  7. package/api/controllers/http/writer.ts +1 -0
  8. package/api/routes.ts +8 -1
  9. package/build/api/controllers/http/cabinet.js +3 -2
  10. package/build/api/controllers/http/index.js +3 -0
  11. package/build/api/controllers/http/music.js +18 -0
  12. package/build/api/controllers/http/tool.js +1 -0
  13. package/build/api/controllers/http/video-editor.js +16 -0
  14. package/build/api/controllers/http/webmaster.js +12 -0
  15. package/build/api/controllers/http/writer.js +1 -0
  16. package/build/api/routes.js +7 -1
  17. package/build/commands/auth/register-user.command.js +2 -4
  18. package/build/commands/auth/vk-login.command.js +5 -2
  19. package/build/commands/auth/yandex-login.command.js +5 -2
  20. package/build/commands/cabinet/get-user-statistics-by-month.command.js +25 -0
  21. package/build/commands/cabinet/get-user-statistics-overview.command.js +26 -0
  22. package/build/commands/cabinet/index.js +2 -1
  23. package/build/commands/chat/check-limit.command.js +1 -0
  24. package/build/commands/index.js +1 -0
  25. package/build/commands/message/create-suggestions.command.js +1 -1
  26. package/build/commands/product/buy-product.command.js +4 -0
  27. package/build/commands/subscription/buy-subscription.command.js +4 -0
  28. package/build/commands/telegram-auth/create-telegram-auth-link.command.js +2 -0
  29. package/build/commands/telegram-profile/auth-with-telegram-web-app.command.js +4 -0
  30. package/build/commands/telegram-profile/bot-was-blocked-by-user.command.js +11 -0
  31. package/build/commands/telegram-profile/index.js +2 -0
  32. package/build/commands/telegram-profile/user-joined-telegram.command.js +11 -0
  33. package/build/commands/tools/index.js +2 -0
  34. package/build/commands/tools/music/convert-to-wav.command.js +16 -0
  35. package/build/commands/tools/music/delete-all-music-jobs.command.js +8 -0
  36. package/build/commands/tools/music/delete-music-job-by-uuid.command.js +11 -0
  37. package/build/commands/tools/music/find-music-job-by-uuid.command.js +14 -0
  38. package/build/commands/tools/music/find-music-jobs.command.js +18 -0
  39. package/build/commands/tools/music/generate-lyrics.command.js +16 -0
  40. package/build/commands/tools/music/generate-music.command.js +15 -0
  41. package/build/commands/tools/music/get-music-tool-config.command.js +11 -0
  42. package/build/commands/tools/music/index.js +27 -0
  43. package/build/commands/tools/music/retry-music-job.command.js +14 -0
  44. package/build/commands/tools/music/set-reaction-to-music-job.command.js +18 -0
  45. package/build/commands/tools/music/update-music-job-title.command.js +17 -0
  46. package/build/commands/tools/tool/find-formatted-tools.command.js +11 -0
  47. package/build/commands/tools/tool/index.js +1 -0
  48. package/build/commands/tools/video-editor/delete-all-video-editor-jobs.command.js +11 -0
  49. package/build/commands/tools/video-editor/delete-video-editor-job-by-uuid.command.js +14 -0
  50. package/build/commands/tools/video-editor/edit-video.command.js +16 -0
  51. package/build/commands/tools/video-editor/find-video-editor-job-by-id.command.js +14 -0
  52. package/build/commands/tools/video-editor/find-video-editor-jobs.command.js +18 -0
  53. package/build/commands/tools/video-editor/get-video-editor-config.command.js +14 -0
  54. package/build/commands/tools/video-editor/index.js +25 -0
  55. package/build/commands/tools/video-editor/retry-video-editor-job.command.js +14 -0
  56. package/build/commands/tools/video-editor/set-reaction-to-video-editor-job.command.js +18 -0
  57. package/build/commands/tools/video-editor/update-video-editor-job-title.command.js +17 -0
  58. package/build/commands/tools/writer/generate-writer-document-contents.command.js +3 -0
  59. package/build/commands/tools/writer/index.js +1 -0
  60. package/build/commands/tools/writer/set-reaction.writer-document.command.js +18 -0
  61. package/build/commands/user/get-aggregated-user-data.command.js +1 -1
  62. package/build/commands/user/get-me.command.js +1 -0
  63. package/build/commands/webmaster/confirm-withdrawal.command.js +14 -0
  64. package/build/commands/webmaster/create-webmaster.command.js +16 -0
  65. package/build/commands/webmaster/create-withdrawal-request.command.js +16 -0
  66. package/build/commands/webmaster/get-my-webmaster.command.js +11 -0
  67. package/build/commands/webmaster/get-webmaster-balance-overview.command.js +26 -0
  68. package/build/commands/webmaster/index.js +22 -0
  69. package/build/commands/webmaster/update-webmaster.command.js +13 -0
  70. package/build/constants/ai-model/enums/ai-model-config-selector-type.enum.js +1 -0
  71. package/build/constants/cabinet/enums/group-by.enum.js +9 -0
  72. package/build/constants/cabinet/enums/index.js +17 -0
  73. package/build/constants/cabinet/index.js +17 -0
  74. package/build/constants/errors/errors.js +280 -2
  75. package/build/constants/file/enums/file-type.enum.js +1 -0
  76. package/build/constants/file/file.constants.js +4 -1
  77. package/build/constants/index.js +5 -0
  78. package/build/constants/subscription/enums/subscription-feature-type.enum.js +3 -0
  79. package/build/constants/tool-music/enums/index.js +21 -0
  80. package/build/constants/tool-music/enums/music-pricing-rule-type.enum.js +7 -0
  81. package/build/constants/tool-music/enums/music-strategy.enum.js +7 -0
  82. package/build/constants/tool-music/enums/music-vocal-gender.enum.js +8 -0
  83. package/build/constants/tool-music/enums/suno-mode-type.enum.js +10 -0
  84. package/build/constants/tool-music/enums/suno-model-type.enum.js +10 -0
  85. package/build/constants/tool-music/index.js +17 -0
  86. package/build/constants/tool-video-editor/enums/index.js +17 -0
  87. package/build/constants/tool-video-editor/enums/video-editor-model-strategy.enum.js +7 -0
  88. package/build/constants/tool-video-editor/index.js +17 -0
  89. package/build/constants/transaction/enums/user-balance-status.enum.js +1 -0
  90. package/build/constants/webmaster/enums/index.js +17 -0
  91. package/build/constants/webmaster/enums/organization-type.enum.js +9 -0
  92. package/build/constants/webmaster/index.js +17 -0
  93. package/build/constants/webmaster-balance/enums/index.js +18 -0
  94. package/build/constants/webmaster-balance/enums/webmaster-balance-status.enum.js +10 -0
  95. package/build/constants/webmaster-balance/enums/webmaster-balance-type.enum.js +8 -0
  96. package/build/constants/webmaster-balance/index.js +17 -0
  97. package/build/constants/writer/enums/index.js +1 -0
  98. package/build/constants/writer/enums/tool-model-status.enum.js +8 -0
  99. package/build/helpers/index.js +1 -0
  100. package/build/helpers/video-editor/calculate-video-editing-price.helper.js +6 -0
  101. package/build/helpers/video-editor/index.js +17 -0
  102. package/build/helpers/writer/calculate-writer-content-generation-price.util.js +2 -2
  103. package/build/models/index.js +3 -0
  104. package/build/models/page.schema.js +2 -0
  105. package/build/models/subscription-feature.schema.js +26 -1
  106. package/build/models/subscription.schema.js +1 -0
  107. package/build/models/tool.schema.js +8 -1
  108. package/build/models/tools/index.js +2 -0
  109. package/build/models/tools/music/index.js +20 -0
  110. package/build/models/tools/music/music-config.schema.js +8 -0
  111. package/build/models/tools/music/music-job.schema.js +40 -0
  112. package/build/models/tools/music/music-model.schema.js +32 -0
  113. package/build/models/tools/music/music-track.schema.js +17 -0
  114. package/build/models/tools/video-editor/index.js +19 -0
  115. package/build/models/tools/video-editor/video-editor-config.schema.js +8 -0
  116. package/build/models/tools/video-editor/video-editor-job.schema.js +14 -0
  117. package/build/models/tools/video-editor/video-editor-model.schema.js +25 -0
  118. package/build/models/tools/writer/writer-config.schema.js +2 -0
  119. package/build/models/tools/writer/writer-document.schema.js +2 -0
  120. package/build/models/tools/writer/writer-model.schema.js +21 -0
  121. package/build/models/user-referrals.schema.js +15 -0
  122. package/build/models/user-to-subscription.schema.js +2 -0
  123. package/build/models/webmaster-balance.schema.js +19 -0
  124. package/build/models/webmaster.schema.js +21 -0
  125. package/commands/auth/register-user.command.ts +3 -5
  126. package/commands/auth/vk-login.command.ts +9 -6
  127. package/commands/auth/yandex-login.command.ts +7 -4
  128. package/commands/cabinet/get-user-statistics-by-month.command.ts +25 -0
  129. package/commands/cabinet/{get-user-statistics.command.ts → get-user-statistics-overview.command.ts} +5 -12
  130. package/commands/cabinet/index.ts +2 -1
  131. package/commands/chat/check-limit.command.ts +1 -0
  132. package/commands/index.ts +1 -0
  133. package/commands/message/create-suggestions.command.ts +1 -1
  134. package/commands/product/buy-product.command.ts +4 -0
  135. package/commands/subscription/buy-subscription.command.ts +4 -0
  136. package/commands/telegram-auth/create-telegram-auth-link.command.ts +5 -0
  137. package/commands/telegram-profile/auth-with-telegram-web-app.command.ts +4 -0
  138. package/commands/telegram-profile/bot-was-blocked-by-user.command.ts +13 -0
  139. package/commands/telegram-profile/index.ts +2 -0
  140. package/commands/telegram-profile/user-joined-telegram.command.ts +13 -0
  141. package/commands/tools/index.ts +2 -0
  142. package/commands/tools/music/convert-to-wav.command.ts +17 -0
  143. package/commands/tools/music/delete-all-music-jobs.command.ts +6 -0
  144. package/commands/tools/music/delete-music-job-by-uuid.command.ts +11 -0
  145. package/commands/tools/music/find-music-job-by-uuid.command.ts +16 -0
  146. package/commands/tools/music/find-music-jobs.command.ts +18 -0
  147. package/commands/tools/music/generate-lyrics.command.ts +17 -0
  148. package/commands/tools/music/generate-music.command.ts +16 -0
  149. package/commands/tools/music/get-music-tool-config.command.ts +10 -0
  150. package/commands/tools/music/index.ts +11 -0
  151. package/commands/tools/music/retry-music-job.command.ts +14 -0
  152. package/commands/tools/music/set-reaction-to-music-job.command.ts +20 -0
  153. package/commands/tools/music/update-music-job-title.command.ts +19 -0
  154. package/commands/tools/tool/find-formatted-tools.command.ts +11 -0
  155. package/commands/tools/tool/index.ts +1 -0
  156. package/commands/tools/video-editor/delete-all-video-editor-jobs.command.ts +13 -0
  157. package/commands/tools/video-editor/delete-video-editor-job-by-uuid.command.ts +16 -0
  158. package/commands/tools/video-editor/edit-video.command.ts +18 -0
  159. package/commands/tools/video-editor/find-video-editor-job-by-id.command.ts +16 -0
  160. package/commands/tools/video-editor/find-video-editor-jobs.command.ts +18 -0
  161. package/commands/tools/video-editor/get-video-editor-config.command.ts +16 -0
  162. package/commands/tools/video-editor/index.ts +9 -0
  163. package/commands/tools/video-editor/retry-video-editor-job.command.ts +16 -0
  164. package/commands/tools/video-editor/set-reaction-to-video-editor-job.command.ts +21 -0
  165. package/commands/tools/video-editor/update-video-editor-job-title.command.ts +20 -0
  166. package/commands/tools/writer/generate-writer-document-contents.command.ts +5 -0
  167. package/commands/tools/writer/index.ts +1 -0
  168. package/commands/tools/writer/set-reaction.writer-document.command.ts +21 -0
  169. package/commands/user/get-aggregated-user-data.command.ts +1 -1
  170. package/commands/user/get-me.command.ts +1 -0
  171. package/commands/webmaster/confirm-withdrawal.command.ts +16 -0
  172. package/commands/webmaster/create-webmaster.command.ts +18 -0
  173. package/commands/webmaster/create-withdrawal-request.command.ts +18 -0
  174. package/commands/webmaster/get-my-webmaster.command.ts +12 -0
  175. package/commands/webmaster/get-webmaster-balance-overview.command.ts +29 -0
  176. package/commands/webmaster/index.ts +6 -0
  177. package/commands/webmaster/update-webmaster.command.ts +18 -0
  178. package/constants/ai-model/enums/ai-model-config-selector-type.enum.ts +1 -0
  179. package/constants/cabinet/enums/group-by.enum.ts +5 -0
  180. package/constants/cabinet/enums/index.ts +1 -0
  181. package/constants/cabinet/index.ts +1 -0
  182. package/constants/errors/errors.ts +280 -2
  183. package/constants/file/enums/file-type.enum.ts +1 -0
  184. package/constants/file/file.constants.ts +4 -0
  185. package/constants/index.ts +5 -0
  186. package/constants/subscription/enums/subscription-feature-type.enum.ts +3 -0
  187. package/constants/tool-music/enums/index.ts +5 -0
  188. package/constants/tool-music/enums/music-pricing-rule-type.enum.ts +3 -0
  189. package/constants/tool-music/enums/music-strategy.enum.ts +3 -0
  190. package/constants/tool-music/enums/music-vocal-gender.enum.ts +4 -0
  191. package/constants/tool-music/enums/suno-mode-type.enum.ts +6 -0
  192. package/constants/tool-music/enums/suno-model-type.enum.ts +6 -0
  193. package/constants/tool-music/index.ts +1 -0
  194. package/constants/tool-video-editor/enums/index.ts +1 -0
  195. package/constants/tool-video-editor/enums/video-editor-model-strategy.enum.ts +3 -0
  196. package/constants/tool-video-editor/index.ts +1 -0
  197. package/constants/transaction/enums/user-balance-status.enum.ts +1 -0
  198. package/constants/webmaster/enums/index.ts +1 -0
  199. package/constants/webmaster/enums/organization-type.enum.ts +5 -0
  200. package/constants/webmaster/index.ts +1 -0
  201. package/constants/webmaster-balance/enums/index.ts +2 -0
  202. package/constants/webmaster-balance/enums/webmaster-balance-status.enum.ts +6 -0
  203. package/constants/webmaster-balance/enums/webmaster-balance-type.enum.ts +4 -0
  204. package/constants/webmaster-balance/index.ts +1 -0
  205. package/constants/writer/enums/index.ts +1 -0
  206. package/constants/writer/enums/tool-model-status.enum.ts +4 -0
  207. package/helpers/index.ts +1 -0
  208. package/helpers/video-editor/calculate-video-editing-price.helper.ts +9 -0
  209. package/helpers/video-editor/index.ts +1 -0
  210. package/helpers/writer/calculate-writer-content-generation-price.util.ts +4 -2
  211. package/models/index.ts +3 -0
  212. package/models/page.schema.ts +2 -0
  213. package/models/subscription-feature.schema.ts +30 -0
  214. package/models/subscription.schema.ts +1 -0
  215. package/models/tool.schema.ts +13 -0
  216. package/models/tools/index.ts +2 -0
  217. package/models/tools/music/index.ts +4 -0
  218. package/models/tools/music/music-config.schema.ts +6 -0
  219. package/models/tools/music/music-job.schema.ts +43 -0
  220. package/models/tools/music/music-model.schema.ts +33 -0
  221. package/models/tools/music/music-track.schema.ts +19 -0
  222. package/models/tools/video-editor/index.ts +3 -0
  223. package/models/tools/video-editor/video-editor-config.schema.ts +6 -0
  224. package/models/tools/video-editor/video-editor-job.schema.ts +14 -0
  225. package/models/tools/video-editor/video-editor-model.schema.ts +24 -0
  226. package/models/tools/writer/writer-config.schema.ts +2 -0
  227. package/models/tools/writer/writer-document.schema.ts +3 -1
  228. package/models/tools/writer/writer-model.schema.ts +21 -0
  229. package/models/user-referrals.schema.ts +10 -0
  230. package/models/user-to-subscription.schema.ts +2 -0
  231. package/models/webmaster-balance.schema.ts +15 -0
  232. package/models/webmaster.schema.ts +18 -0
  233. package/package.json +1 -1
  234. 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
- GET_USER_STATISTICS: 'statistics',
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;
@@ -2,4 +2,5 @@ export const TOOL_CONTROLLER = 'tools';
2
2
 
3
3
  export const TOOL_ROUTES = {
4
4
  FIND_ALL: 'all',
5
+ GET_FORMATTED: 'formatted',
5
6
  };
@@ -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
- GET_USER_STATISTICS: `${ROOT}/${CONTROLLERS.CABINET_CONTROLLER}/${CONTROLLERS.CABINET_ROUTES.GET_USER_STATISTICS}`,
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
- GET_USER_STATISTICS: 'statistics',
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
+ };
@@ -4,4 +4,5 @@ exports.TOOL_ROUTES = exports.TOOL_CONTROLLER = void 0;
4
4
  exports.TOOL_CONTROLLER = 'tools';
5
5
  exports.TOOL_ROUTES = {
6
6
  FIND_ALL: 'all',
7
+ GET_FORMATTED: 'formatted',
7
8
  };
@@ -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
  };
@@ -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
- GET_USER_STATISTICS: `${exports.ROOT}/${CONTROLLERS.CABINET_CONTROLLER}/${CONTROLLERS.CABINET_ROUTES.GET_USER_STATISTICS}`,
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.object({
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.object({
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);
@@ -11,6 +11,7 @@ var CheckLimitCommand;
11
11
  subscriptionBalance: zod_1.z.number(),
12
12
  productBalance: zod_1.z.number(),
13
13
  referralBonusBalance: zod_1.z.number(),
14
+ carriedOverBalance: zod_1.z.number(),
14
15
  }),
15
16
  });
16
17
  })(CheckLimitCommand || (exports.CheckLimitCommand = CheckLimitCommand = {}));
@@ -53,3 +53,4 @@ __exportStar(require("./folder"), exports);
53
53
  __exportStar(require("./user-to-product"), exports);
54
54
  __exportStar(require("./daily-streak"), exports);
55
55
  __exportStar(require("./cabinet"), exports);
56
+ __exportStar(require("./webmaster"), exports);
@@ -6,7 +6,7 @@ const zod_1 = require("zod");
6
6
  var CreateSuggestionsCommand;
7
7
  (function (CreateSuggestionsCommand) {
8
8
  CreateSuggestionsCommand.RequestSchema = zod_1.z.object({
9
- text: zod_1.z.string(),
9
+ text: zod_1.z.string().max(500),
10
10
  });
11
11
  CreateSuggestionsCommand.RequestParamSchema = models_1.ChatSchema.pick({
12
12
  uuid: true,
@@ -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 = {}));
@@ -0,0 +1,27 @@
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-music-jobs.command"), exports);
18
+ __exportStar(require("./delete-music-job-by-uuid.command"), exports);
19
+ __exportStar(require("./find-music-job-by-uuid.command"), exports);
20
+ __exportStar(require("./find-music-jobs.command"), exports);
21
+ __exportStar(require("./get-music-tool-config.command"), exports);
22
+ __exportStar(require("./retry-music-job.command"), exports);
23
+ __exportStar(require("./set-reaction-to-music-job.command"), exports);
24
+ __exportStar(require("./generate-music.command"), exports);
25
+ __exportStar(require("./update-music-job-title.command"), exports);
26
+ __exportStar(require("./convert-to-wav.command"), exports);
27
+ __exportStar(require("./generate-lyrics.command"), exports);
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RetryMusicJobCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../../models");
6
+ var RetryMusicJobCommand;
7
+ (function (RetryMusicJobCommand) {
8
+ RetryMusicJobCommand.RequestParamsSchema = zod_1.z.object({
9
+ uuid: zod_1.z.string().uuid(),
10
+ });
11
+ RetryMusicJobCommand.ResponseSchema = zod_1.z.object({
12
+ data: models_1.MusicJobSchema,
13
+ });
14
+ })(RetryMusicJobCommand || (exports.RetryMusicJobCommand = RetryMusicJobCommand = {}));
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SetReactionToMusicJobCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../../models");
6
+ const constants_1 = require("../../../constants");
7
+ var SetReactionToMusicJobCommand;
8
+ (function (SetReactionToMusicJobCommand) {
9
+ SetReactionToMusicJobCommand.RequestSchema = zod_1.z.object({
10
+ reaction: zod_1.z.nativeEnum(constants_1.USER_REACTION).nullable(),
11
+ });
12
+ SetReactionToMusicJobCommand.RequestParamsSchema = zod_1.z.object({
13
+ uuid: zod_1.z.string().uuid(),
14
+ });
15
+ SetReactionToMusicJobCommand.ResponseSchema = zod_1.z.object({
16
+ data: models_1.MusicJobSchema,
17
+ });
18
+ })(SetReactionToMusicJobCommand || (exports.SetReactionToMusicJobCommand = SetReactionToMusicJobCommand = {}));