@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.
Files changed (274) 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/presentation.ts +10 -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/presentation.js +7 -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/create-chat.command.js +1 -3
  24. package/build/commands/chat/find-chat-by-uuid.command.js +1 -1
  25. package/build/commands/chat/find-chats.command.js +1 -3
  26. package/build/commands/chat/get-last-active-chat-command.js +1 -1
  27. package/build/commands/folder/find-folder-by-uuid-with-chats.command.js +1 -3
  28. package/build/commands/index.js +1 -0
  29. package/build/commands/product/buy-product.command.js +4 -0
  30. package/build/commands/subscription/buy-subscription.command.js +4 -0
  31. package/build/commands/telegram-auth/create-telegram-auth-link.command.js +2 -0
  32. package/build/commands/telegram-profile/auth-with-telegram-web-app.command.js +4 -0
  33. package/build/commands/telegram-profile/bot-was-blocked-by-user.command.js +11 -0
  34. package/build/commands/telegram-profile/index.js +2 -0
  35. package/build/commands/telegram-profile/user-joined-telegram.command.js +11 -0
  36. package/build/commands/tools/index.js +2 -0
  37. package/build/commands/tools/music/convert-to-wav.command.js +16 -0
  38. package/build/commands/tools/music/delete-all-music-jobs.command.js +8 -0
  39. package/build/commands/tools/music/delete-music-job-by-uuid.command.js +11 -0
  40. package/build/commands/tools/music/find-music-job-by-uuid.command.js +14 -0
  41. package/build/commands/tools/music/find-music-jobs.command.js +18 -0
  42. package/build/commands/tools/music/generate-lyrics.command.js +16 -0
  43. package/build/commands/tools/music/generate-music.command.js +15 -0
  44. package/build/commands/tools/music/get-music-tool-config.command.js +11 -0
  45. package/build/commands/tools/music/index.js +27 -0
  46. package/build/commands/tools/music/retry-music-job.command.js +14 -0
  47. package/build/commands/tools/music/set-reaction-to-music-job.command.js +18 -0
  48. package/build/commands/tools/music/update-music-job-title.command.js +17 -0
  49. package/build/commands/tools/presentation/build-blank-slide.command.js +21 -0
  50. package/build/commands/tools/presentation/generate-and-insert-slide.command.js +22 -0
  51. package/build/commands/tools/presentation/index.js +7 -0
  52. package/build/commands/tools/presentation/presentation-generate-report.command.js +17 -0
  53. package/build/commands/tools/presentation/presentation-paraphrase.command.js +20 -0
  54. package/build/commands/tools/presentation/update-presentation-slides.command.js +25 -0
  55. package/build/commands/tools/presentation/update-presentation.command.js +4 -3
  56. package/build/commands/tools/presentation/update-slide-image-slot.command.js +34 -0
  57. package/build/commands/tools/presentation/update-slide.command.js +19 -0
  58. package/build/commands/tools/video-editor/delete-all-video-editor-jobs.command.js +11 -0
  59. package/build/commands/tools/video-editor/delete-video-editor-job-by-uuid.command.js +14 -0
  60. package/build/commands/tools/video-editor/edit-video.command.js +16 -0
  61. package/build/commands/tools/video-editor/find-video-editor-job-by-id.command.js +14 -0
  62. package/build/commands/tools/video-editor/find-video-editor-jobs.command.js +18 -0
  63. package/build/commands/tools/video-editor/get-video-editor-config.command.js +14 -0
  64. package/build/commands/tools/video-editor/index.js +25 -0
  65. package/build/commands/tools/video-editor/retry-video-editor-job.command.js +14 -0
  66. package/build/commands/tools/video-editor/set-reaction-to-video-editor-job.command.js +18 -0
  67. package/build/commands/tools/video-editor/update-video-editor-job-title.command.js +17 -0
  68. package/build/commands/tools/writer/generate-writer-document-contents.command.js +3 -0
  69. package/build/commands/tools/writer/index.js +1 -0
  70. package/build/commands/tools/writer/set-reaction.writer-document.command.js +18 -0
  71. package/build/commands/user/get-aggregated-user-data.command.js +1 -1
  72. package/build/commands/user/get-me.command.js +1 -0
  73. package/build/commands/webmaster/confirm-withdrawal.command.js +14 -0
  74. package/build/commands/webmaster/create-webmaster.command.js +16 -0
  75. package/build/commands/webmaster/create-withdrawal-request.command.js +16 -0
  76. package/build/commands/webmaster/get-my-webmaster.command.js +11 -0
  77. package/build/commands/webmaster/get-webmaster-balance-overview.command.js +26 -0
  78. package/build/commands/webmaster/index.js +22 -0
  79. package/build/commands/webmaster/update-webmaster.command.js +13 -0
  80. package/build/constants/ai-model/enums/ai-model-config-selector-type.enum.js +1 -0
  81. package/build/constants/cabinet/enums/group-by.enum.js +9 -0
  82. package/build/constants/cabinet/enums/index.js +17 -0
  83. package/build/constants/cabinet/index.js +17 -0
  84. package/build/constants/errors/errors.js +278 -0
  85. package/build/constants/file/enums/file-type.enum.js +1 -0
  86. package/build/constants/file/file.constants.js +4 -1
  87. package/build/constants/index.js +5 -0
  88. package/build/constants/presentation/enums/index.js +4 -0
  89. package/build/constants/presentation/enums/presentation-ai-action-call-status.enum.js +9 -0
  90. package/build/constants/presentation/enums/presentation-ai-action-pricing-type.enum.js +8 -0
  91. package/build/constants/presentation/enums/presentation-ai-action-type.enum.js +8 -0
  92. package/build/constants/presentation/enums/slide-image-slot-action.enum.js +8 -0
  93. package/build/constants/tool-music/enums/index.js +21 -0
  94. package/build/constants/tool-music/enums/music-pricing-rule-type.enum.js +7 -0
  95. package/build/constants/tool-music/enums/music-strategy.enum.js +7 -0
  96. package/build/constants/tool-music/enums/music-vocal-gender.enum.js +8 -0
  97. package/build/constants/tool-music/enums/suno-mode-type.enum.js +10 -0
  98. package/build/constants/tool-music/enums/suno-model-type.enum.js +10 -0
  99. package/build/constants/tool-music/index.js +17 -0
  100. package/build/constants/tool-video-editor/enums/index.js +17 -0
  101. package/build/constants/tool-video-editor/enums/video-editor-model-strategy.enum.js +7 -0
  102. package/build/constants/tool-video-editor/index.js +17 -0
  103. package/build/constants/webmaster/enums/index.js +17 -0
  104. package/build/constants/webmaster/enums/organization-type.enum.js +9 -0
  105. package/build/constants/webmaster/index.js +17 -0
  106. package/build/constants/webmaster-balance/enums/index.js +18 -0
  107. package/build/constants/webmaster-balance/enums/webmaster-balance-status.enum.js +10 -0
  108. package/build/constants/webmaster-balance/enums/webmaster-balance-type.enum.js +8 -0
  109. package/build/constants/webmaster-balance/index.js +17 -0
  110. package/build/constants/writer/enums/index.js +1 -0
  111. package/build/constants/writer/enums/tool-model-status.enum.js +8 -0
  112. package/build/helpers/index.js +2 -0
  113. package/build/helpers/presentation/calculate-presentation-ai-action-price.util.js +16 -0
  114. package/build/helpers/presentation/index.js +17 -0
  115. package/build/helpers/video-editor/calculate-video-editing-price.helper.js +6 -0
  116. package/build/helpers/video-editor/index.js +17 -0
  117. package/build/helpers/writer/calculate-writer-content-generation-price.util.js +2 -2
  118. package/build/models/chat-with-messages.schema.js +9 -0
  119. package/build/models/chat.schema.js +0 -2
  120. package/build/models/index.js +4 -0
  121. package/build/models/tools/index.js +3 -0
  122. package/build/models/tools/music/index.js +20 -0
  123. package/build/models/tools/music/music-config.schema.js +8 -0
  124. package/build/models/tools/music/music-job.schema.js +40 -0
  125. package/build/models/tools/music/music-model.schema.js +32 -0
  126. package/build/models/tools/music/music-track.schema.js +17 -0
  127. package/build/models/tools/presentation/index.js +1 -0
  128. package/build/models/tools/presentation/presentation-ai-action.schema.js +27 -0
  129. package/build/models/tools/presentation/presentation-config.schema.js +3 -0
  130. package/build/models/tools/presentation/presentation.schema.js +2 -0
  131. package/build/models/tools/presentation/slide-content-edit.schema.js +129 -0
  132. package/build/models/tools/presentation/slide-content.schema.js +22 -20
  133. package/build/models/tools/presentation/slide.schema.js +39 -1
  134. package/build/models/tools/video-editor/index.js +19 -0
  135. package/build/models/tools/video-editor/video-editor-config.schema.js +8 -0
  136. package/build/models/tools/video-editor/video-editor-job.schema.js +14 -0
  137. package/build/models/tools/video-editor/video-editor-model.schema.js +25 -0
  138. package/build/models/tools/writer/writer-config.schema.js +2 -0
  139. package/build/models/tools/writer/writer-document.schema.js +2 -0
  140. package/build/models/tools/writer/writer-model.schema.js +21 -0
  141. package/build/models/user-referrals.schema.js +15 -0
  142. package/build/models/user-to-subscription.schema.js +1 -0
  143. package/build/models/webmaster-balance.schema.js +19 -0
  144. package/build/models/webmaster.schema.js +21 -0
  145. package/commands/auth/register-user.command.ts +3 -5
  146. package/commands/auth/vk-login.command.ts +9 -6
  147. package/commands/auth/yandex-login.command.ts +7 -4
  148. package/commands/cabinet/get-user-statistics-by-month.command.ts +25 -0
  149. package/commands/cabinet/{get-user-statistics.command.ts → get-user-statistics-overview.command.ts} +5 -12
  150. package/commands/cabinet/index.ts +2 -1
  151. package/commands/chat/create-chat.command.ts +2 -4
  152. package/commands/chat/find-chat-by-uuid.command.ts +2 -2
  153. package/commands/chat/find-chats.command.ts +2 -6
  154. package/commands/chat/get-last-active-chat-command.ts +2 -2
  155. package/commands/folder/find-folder-by-uuid-with-chats.command.ts +2 -6
  156. package/commands/index.ts +1 -0
  157. package/commands/product/buy-product.command.ts +4 -0
  158. package/commands/subscription/buy-subscription.command.ts +4 -0
  159. package/commands/telegram-auth/create-telegram-auth-link.command.ts +5 -0
  160. package/commands/telegram-profile/auth-with-telegram-web-app.command.ts +4 -0
  161. package/commands/telegram-profile/bot-was-blocked-by-user.command.ts +13 -0
  162. package/commands/telegram-profile/index.ts +2 -0
  163. package/commands/telegram-profile/user-joined-telegram.command.ts +13 -0
  164. package/commands/tools/index.ts +2 -0
  165. package/commands/tools/music/convert-to-wav.command.ts +17 -0
  166. package/commands/tools/music/delete-all-music-jobs.command.ts +6 -0
  167. package/commands/tools/music/delete-music-job-by-uuid.command.ts +11 -0
  168. package/commands/tools/music/find-music-job-by-uuid.command.ts +16 -0
  169. package/commands/tools/music/find-music-jobs.command.ts +18 -0
  170. package/commands/tools/music/generate-lyrics.command.ts +17 -0
  171. package/commands/tools/music/generate-music.command.ts +16 -0
  172. package/commands/tools/music/get-music-tool-config.command.ts +10 -0
  173. package/commands/tools/music/index.ts +11 -0
  174. package/commands/tools/music/retry-music-job.command.ts +14 -0
  175. package/commands/tools/music/set-reaction-to-music-job.command.ts +20 -0
  176. package/commands/tools/music/update-music-job-title.command.ts +19 -0
  177. package/commands/tools/presentation/build-blank-slide.command.ts +23 -0
  178. package/commands/tools/presentation/generate-and-insert-slide.command.ts +27 -0
  179. package/commands/tools/presentation/index.ts +7 -0
  180. package/commands/tools/presentation/presentation-generate-report.command.ts +21 -0
  181. package/commands/tools/presentation/presentation-paraphrase.command.ts +26 -0
  182. package/commands/tools/presentation/update-presentation-slides.command.ts +32 -0
  183. package/commands/tools/presentation/update-presentation.command.ts +5 -4
  184. package/commands/tools/presentation/update-slide-image-slot.command.ts +40 -0
  185. package/commands/tools/presentation/update-slide.command.ts +25 -0
  186. package/commands/tools/video-editor/delete-all-video-editor-jobs.command.ts +13 -0
  187. package/commands/tools/video-editor/delete-video-editor-job-by-uuid.command.ts +16 -0
  188. package/commands/tools/video-editor/edit-video.command.ts +18 -0
  189. package/commands/tools/video-editor/find-video-editor-job-by-id.command.ts +16 -0
  190. package/commands/tools/video-editor/find-video-editor-jobs.command.ts +18 -0
  191. package/commands/tools/video-editor/get-video-editor-config.command.ts +16 -0
  192. package/commands/tools/video-editor/index.ts +9 -0
  193. package/commands/tools/video-editor/retry-video-editor-job.command.ts +16 -0
  194. package/commands/tools/video-editor/set-reaction-to-video-editor-job.command.ts +21 -0
  195. package/commands/tools/video-editor/update-video-editor-job-title.command.ts +20 -0
  196. package/commands/tools/writer/generate-writer-document-contents.command.ts +5 -0
  197. package/commands/tools/writer/index.ts +1 -0
  198. package/commands/tools/writer/set-reaction.writer-document.command.ts +21 -0
  199. package/commands/user/get-aggregated-user-data.command.ts +1 -1
  200. package/commands/user/get-me.command.ts +1 -0
  201. package/commands/webmaster/confirm-withdrawal.command.ts +16 -0
  202. package/commands/webmaster/create-webmaster.command.ts +18 -0
  203. package/commands/webmaster/create-withdrawal-request.command.ts +18 -0
  204. package/commands/webmaster/get-my-webmaster.command.ts +12 -0
  205. package/commands/webmaster/get-webmaster-balance-overview.command.ts +29 -0
  206. package/commands/webmaster/index.ts +6 -0
  207. package/commands/webmaster/update-webmaster.command.ts +18 -0
  208. package/constants/ai-model/enums/ai-model-config-selector-type.enum.ts +1 -0
  209. package/constants/cabinet/enums/group-by.enum.ts +5 -0
  210. package/constants/cabinet/enums/index.ts +1 -0
  211. package/constants/cabinet/index.ts +1 -0
  212. package/constants/errors/errors.ts +278 -0
  213. package/constants/file/enums/file-type.enum.ts +1 -0
  214. package/constants/file/file.constants.ts +4 -0
  215. package/constants/index.ts +5 -0
  216. package/constants/presentation/enums/index.ts +4 -0
  217. package/constants/presentation/enums/presentation-ai-action-call-status.enum.ts +5 -0
  218. package/constants/presentation/enums/presentation-ai-action-pricing-type.enum.ts +4 -0
  219. package/constants/presentation/enums/presentation-ai-action-type.enum.ts +4 -0
  220. package/constants/presentation/enums/slide-image-slot-action.enum.ts +4 -0
  221. package/constants/tool-music/enums/index.ts +5 -0
  222. package/constants/tool-music/enums/music-pricing-rule-type.enum.ts +3 -0
  223. package/constants/tool-music/enums/music-strategy.enum.ts +3 -0
  224. package/constants/tool-music/enums/music-vocal-gender.enum.ts +4 -0
  225. package/constants/tool-music/enums/suno-mode-type.enum.ts +6 -0
  226. package/constants/tool-music/enums/suno-model-type.enum.ts +6 -0
  227. package/constants/tool-music/index.ts +1 -0
  228. package/constants/tool-video-editor/enums/index.ts +1 -0
  229. package/constants/tool-video-editor/enums/video-editor-model-strategy.enum.ts +3 -0
  230. package/constants/tool-video-editor/index.ts +1 -0
  231. package/constants/webmaster/enums/index.ts +1 -0
  232. package/constants/webmaster/enums/organization-type.enum.ts +5 -0
  233. package/constants/webmaster/index.ts +1 -0
  234. package/constants/webmaster-balance/enums/index.ts +2 -0
  235. package/constants/webmaster-balance/enums/webmaster-balance-status.enum.ts +6 -0
  236. package/constants/webmaster-balance/enums/webmaster-balance-type.enum.ts +4 -0
  237. package/constants/webmaster-balance/index.ts +1 -0
  238. package/constants/writer/enums/index.ts +1 -0
  239. package/constants/writer/enums/tool-model-status.enum.ts +4 -0
  240. package/helpers/index.ts +2 -0
  241. package/helpers/presentation/calculate-presentation-ai-action-price.util.ts +20 -0
  242. package/helpers/presentation/index.ts +1 -0
  243. package/helpers/video-editor/calculate-video-editing-price.helper.ts +9 -0
  244. package/helpers/video-editor/index.ts +1 -0
  245. package/helpers/writer/calculate-writer-content-generation-price.util.ts +4 -2
  246. package/models/chat-with-messages.schema.ts +7 -0
  247. package/models/chat.schema.ts +0 -2
  248. package/models/index.ts +4 -0
  249. package/models/tools/index.ts +3 -0
  250. package/models/tools/music/index.ts +4 -0
  251. package/models/tools/music/music-config.schema.ts +6 -0
  252. package/models/tools/music/music-job.schema.ts +43 -0
  253. package/models/tools/music/music-model.schema.ts +33 -0
  254. package/models/tools/music/music-track.schema.ts +19 -0
  255. package/models/tools/presentation/index.ts +1 -0
  256. package/models/tools/presentation/presentation-ai-action.schema.ts +33 -0
  257. package/models/tools/presentation/presentation-config.schema.ts +3 -0
  258. package/models/tools/presentation/presentation.schema.ts +2 -0
  259. package/models/tools/presentation/slide-content-edit.schema.ts +154 -0
  260. package/models/tools/presentation/slide-content.schema.ts +119 -32
  261. package/models/tools/presentation/slide.schema.ts +47 -0
  262. package/models/tools/video-editor/index.ts +3 -0
  263. package/models/tools/video-editor/video-editor-config.schema.ts +6 -0
  264. package/models/tools/video-editor/video-editor-job.schema.ts +14 -0
  265. package/models/tools/video-editor/video-editor-model.schema.ts +24 -0
  266. package/models/tools/writer/writer-config.schema.ts +2 -0
  267. package/models/tools/writer/writer-document.schema.ts +3 -1
  268. package/models/tools/writer/writer-model.schema.ts +21 -0
  269. package/models/user-referrals.schema.ts +10 -0
  270. package/models/user-to-subscription.schema.ts +1 -0
  271. package/models/webmaster-balance.schema.ts +15 -0
  272. package/models/webmaster.schema.ts +18 -0
  273. package/package.json +1 -1
  274. package/build/commands/cabinet/get-user-statistics.command.js +0 -30
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WEBMASTER_BALANCE_STATUS = void 0;
4
+ var WEBMASTER_BALANCE_STATUS;
5
+ (function (WEBMASTER_BALANCE_STATUS) {
6
+ WEBMASTER_BALANCE_STATUS["SUCCESS"] = "success";
7
+ WEBMASTER_BALANCE_STATUS["AWAITING_CONFIRMATION"] = "awaiting_confirmation";
8
+ WEBMASTER_BALANCE_STATUS["CANCELLED"] = "cancelled";
9
+ WEBMASTER_BALANCE_STATUS["TELEGRAM_ERROR"] = "telegram_error";
10
+ })(WEBMASTER_BALANCE_STATUS || (exports.WEBMASTER_BALANCE_STATUS = WEBMASTER_BALANCE_STATUS = {}));
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WEBMASTER_BALANCE_TYPE = void 0;
4
+ var WEBMASTER_BALANCE_TYPE;
5
+ (function (WEBMASTER_BALANCE_TYPE) {
6
+ WEBMASTER_BALANCE_TYPE["DEPOSIT"] = "deposit";
7
+ WEBMASTER_BALANCE_TYPE["WITHDRAWAL"] = "withdrawal";
8
+ })(WEBMASTER_BALANCE_TYPE || (exports.WEBMASTER_BALANCE_TYPE = WEBMASTER_BALANCE_TYPE = {}));
@@ -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);
@@ -18,3 +18,4 @@ __exportStar(require("./writer-document-section-type.enum"), exports);
18
18
  __exportStar(require("./writer-document-stage.enum"), exports);
19
19
  __exportStar(require("./writer-ai-action-pricing-type.enum"), exports);
20
20
  __exportStar(require("./writer-ai-action-type.enum"), exports);
21
+ __exportStar(require("./tool-model-status.enum"), exports);
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TOOL_MODEL_STATUS = void 0;
4
+ var TOOL_MODEL_STATUS;
5
+ (function (TOOL_MODEL_STATUS) {
6
+ TOOL_MODEL_STATUS["ACTIVE"] = "active";
7
+ TOOL_MODEL_STATUS["INACTIVE"] = "inactive";
8
+ })(TOOL_MODEL_STATUS || (exports.TOOL_MODEL_STATUS = TOOL_MODEL_STATUS = {}));
@@ -15,8 +15,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./ai-model"), exports);
18
+ __exportStar(require("./presentation"), exports);
18
19
  __exportStar(require("./stt"), exports);
19
20
  __exportStar(require("./subscription"), exports);
20
21
  __exportStar(require("./tts"), exports);
21
22
  __exportStar(require("./video"), exports);
23
+ __exportStar(require("./video-editor"), exports);
22
24
  __exportStar(require("./writer"), exports);
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.calculatePresentationAiActionPrice = calculatePresentationAiActionPrice;
4
+ const constants_1 = require("../../constants");
5
+ function calculatePresentationAiActionPrice(pricingRules, selectionText) {
6
+ switch (pricingRules.type) {
7
+ case constants_1.PRESENTATION_AI_ACTION_PRICING_TYPE.PER_CHARACTER:
8
+ const characterCount = selectionText.length;
9
+ const price = characterCount * pricingRules.price;
10
+ return Math.max(1, Math.ceil(price));
11
+ case constants_1.PRESENTATION_AI_ACTION_PRICING_TYPE.FLAT:
12
+ return Math.max(1, Math.ceil(pricingRules.price));
13
+ default:
14
+ throw new Error(`Unknown pricing type`);
15
+ }
16
+ }
@@ -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("./calculate-presentation-ai-action-price.util"), exports);
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.calculateVideoEditingPrice = calculateVideoEditingPrice;
4
+ function calculateVideoEditingPrice({ duration, pricePerSecond, }) {
5
+ return Math.ceil(duration * pricePerSecond);
6
+ }
@@ -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("./calculate-video-editing-price.helper"), exports);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.calculateWriterContentGenerationPrice = calculateWriterContentGenerationPrice;
4
- function calculateWriterContentGenerationPrice(pages) {
5
- return Math.max(1, pages);
4
+ function calculateWriterContentGenerationPrice(pages, aiModel) {
5
+ return Math.max(1, pages * aiModel.pricePerPage);
6
6
  }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ChatWithMessagesSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const chat_schema_1 = require("./chat.schema");
6
+ const message_schema_1 = require("./message.schema");
7
+ exports.ChatWithMessagesSchema = chat_schema_1.ChatSchema.extend({
8
+ messages: zod_1.z.array(message_schema_1.MessageSchema),
9
+ });
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ChatSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const constants_1 = require("../constants");
6
- const message_schema_1 = require("./message.schema");
7
6
  exports.ChatSchema = zod_1.z.object({
8
7
  uuid: zod_1.z.string().uuid(),
9
8
  userId: zod_1.z.nullable(zod_1.z.string().uuid()),
@@ -12,7 +11,6 @@ exports.ChatSchema = zod_1.z.object({
12
11
  aIModelId: zod_1.z.string().uuid(),
13
12
  title: zod_1.z.string(),
14
13
  chatStatus: zod_1.z.enum(Object.values(constants_1.CHAT_STATUS_ENUM)),
15
- messages: zod_1.z.array(message_schema_1.MessageSchema),
16
14
  folderId: zod_1.z.string().nullable(),
17
15
  createdAt: zod_1.z.date(),
18
16
  updatedAt: zod_1.z.date(),
@@ -20,6 +20,7 @@ __exportStar(require("./ai-model-formatted.schema"), exports);
20
20
  __exportStar(require("./ai-model.schema"), exports);
21
21
  __exportStar(require("./ai-vendor.schema"), exports);
22
22
  __exportStar(require("./category.schema"), exports);
23
+ __exportStar(require("./chat-with-messages.schema"), exports);
23
24
  __exportStar(require("./chat.schema"), exports);
24
25
  __exportStar(require("./cloud-payments-receipt.schema"), exports);
25
26
  __exportStar(require("./course-author.schema"), exports);
@@ -65,3 +66,6 @@ __exportStar(require("./folder.schema"), exports);
65
66
  __exportStar(require("./filters.schema"), exports);
66
67
  __exportStar(require("./users-filter-notification.schema"), exports);
67
68
  __exportStar(require("./daily-streak"), exports);
69
+ __exportStar(require("./webmaster.schema"), exports);
70
+ __exportStar(require("./webmaster-balance.schema"), exports);
71
+ __exportStar(require("./user-referrals.schema"), exports);
@@ -16,8 +16,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./language"), exports);
18
18
  __exportStar(require("./paraphrase"), exports);
19
+ __exportStar(require("./presentation"), exports);
19
20
  __exportStar(require("./stt"), exports);
20
21
  __exportStar(require("./tts"), exports);
21
22
  __exportStar(require("./video"), exports);
22
23
  __exportStar(require("./writer"), exports);
23
24
  __exportStar(require("./image-editor"), exports);
25
+ __exportStar(require("./video-editor"), exports);
26
+ __exportStar(require("./music"), exports);
@@ -0,0 +1,20 @@
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("./music-config.schema"), exports);
18
+ __exportStar(require("./music-job.schema"), exports);
19
+ __exportStar(require("./music-model.schema"), exports);
20
+ __exportStar(require("./music-track.schema"), exports);
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MusicConfigSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const music_model_schema_1 = require("./music-model.schema");
6
+ exports.MusicConfigSchema = zod_1.z.object({
7
+ models: zod_1.z.array(music_model_schema_1.MusicModelSchema),
8
+ });
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MusicJobSchema = exports.MusicJobParamsSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const tool_job_schema_1 = require("../../tool-job.schema");
6
+ const constants_1 = require("../../../constants");
7
+ const music_track_schema_1 = require("./music-track.schema");
8
+ exports.MusicJobParamsSchema = zod_1.z.discriminatedUnion('mode', [
9
+ zod_1.z.object({
10
+ mode: zod_1.z.literal(constants_1.SUNO_MODE_TYPE.SIMPLE),
11
+ prompt: zod_1.z.string().min(1).max(450),
12
+ style: zod_1.z.string(),
13
+ vocalGender: zod_1.z.nativeEnum(constants_1.MUSIC_VOCAL_GENDER),
14
+ }),
15
+ zod_1.z.object({
16
+ mode: zod_1.z.literal(constants_1.SUNO_MODE_TYPE.SIMPLE_INSTRUMENTAL),
17
+ prompt: zod_1.z.string().min(1).max(450),
18
+ style: zod_1.z.string(),
19
+ }),
20
+ zod_1.z.object({
21
+ mode: zod_1.z.literal(constants_1.SUNO_MODE_TYPE.CUSTOM),
22
+ prompt: zod_1.z.string().min(1).max(5000),
23
+ title: zod_1.z.string().min(1).max(80),
24
+ style: zod_1.z.string().min(1).max(1000),
25
+ vocalGender: zod_1.z.nativeEnum(constants_1.MUSIC_VOCAL_GENDER),
26
+ }),
27
+ zod_1.z.object({
28
+ mode: zod_1.z.literal(constants_1.SUNO_MODE_TYPE.CUSTOM_INSTRUMENTAL),
29
+ title: zod_1.z.string().min(1).max(80),
30
+ style: zod_1.z.string().min(1).max(1000),
31
+ }),
32
+ ]);
33
+ exports.MusicJobSchema = tool_job_schema_1.ToolJobSchema.extend({
34
+ title: zod_1.z.string(),
35
+ prompt: zod_1.z.string(),
36
+ reaction: zod_1.z.nativeEnum(constants_1.USER_REACTION).nullable(),
37
+ tracks: zod_1.z.array(music_track_schema_1.MusicTrackSchema),
38
+ params: exports.MusicJobParamsSchema,
39
+ modelId: zod_1.z.string(),
40
+ });
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MusicModelSchema = exports.MusicModelParamsSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const icon_variants_schema_1 = require("../../icon-variants.schema");
6
+ const unlocked_by_subscription_schema_1 = require("../../unlocked-by-subscription.schema");
7
+ const constants_1 = require("../../../constants");
8
+ exports.MusicModelParamsSchema = zod_1.z.object({
9
+ vocalGender: zod_1.z.object({
10
+ options: zod_1.z.array(zod_1.z.nativeEnum(constants_1.MUSIC_VOCAL_GENDER)),
11
+ }),
12
+ styles: zod_1.z.object({
13
+ maxStyles: zod_1.z.number(),
14
+ options: zod_1.z.array(zod_1.z.object({
15
+ title: zod_1.z.string(),
16
+ style: zod_1.z.string(),
17
+ })),
18
+ }),
19
+ });
20
+ exports.MusicModelSchema = zod_1.z.object({
21
+ uuid: zod_1.z.string(),
22
+ title: zod_1.z.string(),
23
+ description: zod_1.z.string(),
24
+ pricePerTrack: zod_1.z.number(),
25
+ order: zod_1.z.number(),
26
+ icons: icon_variants_schema_1.IconVariantsSchema,
27
+ maxPromptLength: zod_1.z.number(),
28
+ maxLyricsLength: zod_1.z.number(),
29
+ params: exports.MusicModelParamsSchema,
30
+ unlockedBy: unlocked_by_subscription_schema_1.UnlockedBySchema.nullable(),
31
+ canUse: zod_1.z.boolean(),
32
+ });
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MusicTrackSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.MusicTrackSchema = zod_1.z.object({
6
+ uuid: zod_1.z.string(),
7
+ title: zod_1.z.string(),
8
+ audioId: zod_1.z.string(),
9
+ audioUrl: zod_1.z.string(),
10
+ coverUrl: zod_1.z.string(),
11
+ tags: zod_1.z.string(),
12
+ duration: zod_1.z.number(),
13
+ genJobId: zod_1.z.string().nullable().optional(),
14
+ editorJobId: zod_1.z.string().nullable().optional(),
15
+ createdAt: zod_1.z.date(),
16
+ updatedAt: zod_1.z.date(),
17
+ });
@@ -21,3 +21,4 @@ __exportStar(require("./slide-outline.schema"), exports);
21
21
  __exportStar(require("./slide.schema"), exports);
22
22
  __exportStar(require("./slide-content.schema"), exports);
23
23
  __exportStar(require("./presentation-config.schema"), exports);
24
+ __exportStar(require("./presentation-ai-action.schema"), exports);
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PresentationAiActionSchema = exports.PresentationAiActionPricingRulesSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const constants_1 = require("../../../constants");
6
+ exports.PresentationAiActionPricingRulesSchema = zod_1.z.discriminatedUnion('type', [
7
+ zod_1.z.object({
8
+ type: zod_1.z.literal(constants_1.PRESENTATION_AI_ACTION_PRICING_TYPE.PER_CHARACTER),
9
+ price: zod_1.z.number(),
10
+ }),
11
+ zod_1.z.object({
12
+ type: zod_1.z.literal(constants_1.PRESENTATION_AI_ACTION_PRICING_TYPE.FLAT),
13
+ price: zod_1.z.number(),
14
+ }),
15
+ ]);
16
+ exports.PresentationAiActionSchema = zod_1.z.object({
17
+ uuid: zod_1.z.string(),
18
+ type: zod_1.z.nativeEnum(constants_1.PRESENTATION_AI_ACTION_TYPE),
19
+ pricingRules: exports.PresentationAiActionPricingRulesSchema,
20
+ maxPromptLength: zod_1.z.number(),
21
+ aiModel: zod_1.z.string(),
22
+ title: zod_1.z.string(),
23
+ icon: zod_1.z.string(),
24
+ order: zod_1.z.number(),
25
+ createdAt: zod_1.z.date(),
26
+ updatedAt: zod_1.z.date(),
27
+ });
@@ -5,14 +5,17 @@ const zod_1 = require("zod");
5
5
  const slide_content_type_schema_1 = require("./slide-content-type.schema");
6
6
  const language_1 = require("../language");
7
7
  const presentation_template_schema_1 = require("./presentation-template.schema");
8
+ const presentation_ai_action_schema_1 = require("./presentation-ai-action.schema");
8
9
  exports.PresentationConfigSchema = zod_1.z.object({
9
10
  slideContentTypes: zod_1.z.array(slide_content_type_schema_1.SlideContentTypeSchema),
10
11
  languages: zod_1.z.array(language_1.LanguageSchema),
11
12
  templates: zod_1.z.array(presentation_template_schema_1.PresentationTemplateSchema),
13
+ aiActions: zod_1.z.array(presentation_ai_action_schema_1.PresentationAiActionSchema),
12
14
  slideGenerationPrice: zod_1.z.number(),
13
15
  maxSlides: zod_1.z.number(),
14
16
  minSlides: zod_1.z.number(),
15
17
  maxSlideTitleLength: zod_1.z.number(),
16
18
  maxSlideOutlineLength: zod_1.z.number(),
17
19
  maxPromptLength: zod_1.z.number(),
20
+ imageGenerationPrice: zod_1.z.number(),
18
21
  });
@@ -15,6 +15,8 @@ exports.PresentationSchema = zod_1.z.object({
15
15
  templateId: zod_1.z.string(),
16
16
  downloadUrl: zod_1.z.string().nullable(),
17
17
  slideCount: zod_1.z.number(),
18
+ lastContentUpdateAt: zod_1.z.date().nullable(),
19
+ lastPptxExportedAt: zod_1.z.date().nullable(),
18
20
  createdAt: zod_1.z.date(),
19
21
  updatedAt: zod_1.z.date(),
20
22
  });
@@ -0,0 +1,129 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.SlideContentUserEditSchema = exports.ChartSlideDataUserEditSchema = exports.BarChartSlideDataUserEditSchema = exports.TableSlideDataUserEditSchema = exports.SectionBreakSlideDataUserEditSchema = exports.ImageSlideDataUserEditSchema = exports.ContentsSlideDataUserEditSchema = exports.StructuredListSlideDataUserEditSchema = exports.TextSlideDataUserEditSchema = exports.ThankYouSlideDataUserEditSchema = exports.CoverSlideDataUserEditSchema = void 0;
7
+ const zod_1 = __importDefault(require("zod"));
8
+ const slide_content_schema_1 = require("./slide-content.schema");
9
+ const constants_1 = require("../../../constants");
10
+ exports.CoverSlideDataUserEditSchema = zod_1.default.object({
11
+ contentType: zod_1.default.literal(constants_1.SLIDE_CONTENT_TYPE.COVER),
12
+ title: zod_1.default.string().max(1000),
13
+ author: zod_1.default.object({
14
+ label: zod_1.default.string().max(200),
15
+ value: zod_1.default.string().max(500),
16
+ }),
17
+ date: zod_1.default.object({
18
+ label: zod_1.default.string().max(200),
19
+ value: zod_1.default.string().max(500),
20
+ }),
21
+ email: zod_1.default.object({
22
+ label: zod_1.default.string().max(200),
23
+ value: zod_1.default.string().max(500),
24
+ }),
25
+ version: zod_1.default.literal(1),
26
+ });
27
+ exports.ThankYouSlideDataUserEditSchema = zod_1.default.object({
28
+ contentType: zod_1.default.literal(constants_1.SLIDE_CONTENT_TYPE.THANK_YOU),
29
+ title: zod_1.default.string().max(1000),
30
+ author: zod_1.default.object({
31
+ label: zod_1.default.string().max(200),
32
+ value: zod_1.default.string().max(500),
33
+ }),
34
+ date: zod_1.default.object({
35
+ label: zod_1.default.string().max(200),
36
+ value: zod_1.default.string().max(500),
37
+ }),
38
+ email: zod_1.default.object({
39
+ label: zod_1.default.string().max(200),
40
+ value: zod_1.default.string().max(500),
41
+ }),
42
+ version: zod_1.default.literal(1),
43
+ });
44
+ exports.TextSlideDataUserEditSchema = zod_1.default.object({
45
+ contentType: zod_1.default.literal(constants_1.SLIDE_CONTENT_TYPE.TEXT),
46
+ title: zod_1.default.string().max(1000),
47
+ description: zod_1.default.string().max(5000),
48
+ version: zod_1.default.literal(1),
49
+ });
50
+ exports.StructuredListSlideDataUserEditSchema = zod_1.default.object({
51
+ contentType: zod_1.default.literal(constants_1.SLIDE_CONTENT_TYPE.STRUCTURED_LIST),
52
+ title: zod_1.default.string().max(1000),
53
+ description: zod_1.default.string().max(2000),
54
+ list: zod_1.default
55
+ .array(zod_1.default.object({
56
+ title: zod_1.default.string().max(500),
57
+ description: zod_1.default.string().max(1000),
58
+ }))
59
+ .max(15),
60
+ version: zod_1.default.literal(1),
61
+ });
62
+ exports.ContentsSlideDataUserEditSchema = zod_1.default.object({
63
+ contentType: zod_1.default.literal(constants_1.SLIDE_CONTENT_TYPE.CONTENTS),
64
+ title: zod_1.default.string().max(1000),
65
+ items: zod_1.default
66
+ .array(zod_1.default.object({
67
+ pageNumber: zod_1.default.number(),
68
+ title: zod_1.default.string().max(1000),
69
+ }))
70
+ .max(100),
71
+ version: zod_1.default.literal(1),
72
+ });
73
+ exports.ImageSlideDataUserEditSchema = zod_1.default.object({
74
+ contentType: zod_1.default.literal(constants_1.SLIDE_CONTENT_TYPE.TEXT_WITH_IMAGE),
75
+ title: zod_1.default.string().max(1000),
76
+ description: zod_1.default.string().max(4000),
77
+ imageSlot: slide_content_schema_1.ImageSlotSchema,
78
+ version: zod_1.default.literal(1),
79
+ });
80
+ exports.SectionBreakSlideDataUserEditSchema = zod_1.default.object({
81
+ contentType: zod_1.default.literal(constants_1.SLIDE_CONTENT_TYPE.SECTION_BREAK),
82
+ title: zod_1.default.string().max(1000),
83
+ description: zod_1.default.string().max(1000),
84
+ version: zod_1.default.literal(1),
85
+ });
86
+ exports.TableSlideDataUserEditSchema = zod_1.default.object({
87
+ contentType: zod_1.default.literal(constants_1.SLIDE_CONTENT_TYPE.TABLE),
88
+ title: zod_1.default.string().max(1000),
89
+ description: zod_1.default.string().max(2000),
90
+ table: zod_1.default.object({
91
+ columnHeaders: zod_1.default.array(zod_1.default.string().max(500)).max(30),
92
+ rows: zod_1.default.array(zod_1.default.array(zod_1.default.string().max(1000))).max(50),
93
+ hasRowHeaders: zod_1.default.boolean(),
94
+ hasSummaryRow: zod_1.default.boolean(),
95
+ }),
96
+ version: zod_1.default.literal(1),
97
+ });
98
+ exports.BarChartSlideDataUserEditSchema = zod_1.default.object({
99
+ type: zod_1.default.literal(slide_content_schema_1.SLIDE_CHART_TYPE.BAR),
100
+ categories: zod_1.default.array(zod_1.default.string().max(500)).max(100),
101
+ series: zod_1.default
102
+ .array(zod_1.default.object({
103
+ name: zod_1.default.string().max(500),
104
+ data: zod_1.default.array(zod_1.default.number()),
105
+ type: zod_1.default.number().min(0).max(11),
106
+ }))
107
+ .max(10),
108
+ yAxisLabel: zod_1.default.string().max(500).optional(),
109
+ unit: zod_1.default.string().max(100).optional(),
110
+ version: zod_1.default.literal(1),
111
+ });
112
+ exports.ChartSlideDataUserEditSchema = zod_1.default.object({
113
+ contentType: zod_1.default.literal(constants_1.SLIDE_CONTENT_TYPE.CHART),
114
+ title: zod_1.default.string().max(1000),
115
+ description: zod_1.default.string().max(4000),
116
+ chart: zod_1.default.discriminatedUnion('type', [exports.BarChartSlideDataUserEditSchema]),
117
+ version: zod_1.default.literal(1),
118
+ });
119
+ exports.SlideContentUserEditSchema = zod_1.default.discriminatedUnion('contentType', [
120
+ exports.CoverSlideDataUserEditSchema,
121
+ exports.StructuredListSlideDataUserEditSchema,
122
+ exports.TextSlideDataUserEditSchema,
123
+ exports.ContentsSlideDataUserEditSchema,
124
+ exports.SectionBreakSlideDataUserEditSchema,
125
+ exports.ImageSlideDataUserEditSchema,
126
+ exports.ThankYouSlideDataUserEditSchema,
127
+ exports.TableSlideDataUserEditSchema,
128
+ exports.ChartSlideDataUserEditSchema,
129
+ ]);
@@ -19,9 +19,7 @@ exports.IconSlotSchema = zod_1.z.object({
19
19
  .string()
20
20
  .uuid()
21
21
  .describe('Generate a valid uuid for icon slot, that will be used for future lookups'),
22
- prompt: zod_1.z
23
- .string()
24
- .describe('Icons are stored locally. Provide a search query for a fitting icon. MUST BE IN ENGLISH'),
22
+ prompt: zod_1.z.string().describe('Provide a search query for an fitting icon. MUST BE IN ENGLISH'),
25
23
  });
26
24
  exports.CoverSlideDataSchema = zod_1.z.object({
27
25
  contentType: zod_1.z.literal(constants_1.SLIDE_CONTENT_TYPE.COVER),
@@ -46,15 +44,17 @@ exports.CoverSlideDataSchema = zod_1.z.object({
46
44
  });
47
45
  exports.ThankYouSlideDataSchema = zod_1.z.object({
48
46
  contentType: zod_1.z.literal(constants_1.SLIDE_CONTENT_TYPE.THANK_YOU),
49
- title: zod_1.z.string().describe('Slide title in about 6 words').min(10).max(150),
47
+ title: zod_1.z
48
+ .string()
49
+ .describe('"Thank you for your attention" in presentation\'s language')
50
+ .min(10)
51
+ .max(150),
50
52
  author: zod_1.z.object({
51
- label: zod_1.z.string().describe('Literal "Author" in presentation\'s language'),
52
- value: zod_1.z
53
- .string()
54
- .describe('Literal "Author of the presentation" in presentation\'s language'),
53
+ label: zod_1.z.string().describe('"Author" in presentation\'s language'),
54
+ value: zod_1.z.string().describe('"Author of the presentation" in presentation\'s language'),
55
55
  }),
56
56
  date: zod_1.z.object({
57
- label: zod_1.z.string().describe('Literal "Date" in presentation\'s language'),
57
+ label: zod_1.z.string().describe('"Date" in presentation\'s language'),
58
58
  value: zod_1.z
59
59
  .string()
60
60
  .describe('Date of the presentation in the "dd month yyyy" format in presentation\'s locale'),
@@ -82,9 +82,9 @@ exports.TextSlideDataSchema = zod_1.z.object({
82
82
  title: zod_1.z.string().describe('Slide title in about 6 words').min(10).max(150),
83
83
  description: zod_1.z
84
84
  .string()
85
- .describe('Fairly long textual description of the point presented in the title. A couple of paragraphs.')
85
+ .describe("Fairly long textual description of the point presented in the title. A couple of paragraphs. Consider maximum amount of text to be 600 characters. Don't cut the text short.")
86
86
  .min(300)
87
- .max(500),
87
+ .max(600),
88
88
  version: zod_1.z.literal(1),
89
89
  });
90
90
  exports.ContentsSlideDataSchema = zod_1.z.object({
@@ -137,9 +137,9 @@ exports.TableSlideDataSchema = zod_1.z.object({
137
137
  .max(10)
138
138
  .describe('Array of column header labels'),
139
139
  rows: zod_1.z
140
- .array(zod_1.z.array(zod_1.z.string().min(1).max(150)))
141
- .min(2)
142
- .max(10)
140
+ .array(zod_1.z.array(zod_1.z.string().min(1).max(75)))
141
+ .min(3)
142
+ .max(4)
143
143
  .describe('Table rows; each row must have exactly the same number of cells as columnHeaders'),
144
144
  hasRowHeaders: zod_1.z.boolean().describe('If table needs special row headers, set this to true'),
145
145
  hasSummaryRow: zod_1.z.boolean().describe('If table needs a summary row, set this to true'),
@@ -150,13 +150,15 @@ exports.TableSlideDataSchema = zod_1.z.object({
150
150
  exports.BarChartSlideDataSchema = zod_1.z.object({
151
151
  type: zod_1.z.literal(SLIDE_CHART_TYPE.BAR),
152
152
  categories: zod_1.z
153
- .array(zod_1.z.string().min(1).max(12))
153
+ .array(zod_1.z.string())
154
154
  .min(1)
155
155
  .max(12)
156
156
  .describe('Category labels (e.g., months, products, regions)'),
157
157
  series: zod_1.z
158
158
  .array(zod_1.z.object({
159
- name: zod_1.z.string().min(1).max(12).describe('Series name for legend'),
159
+ name: zod_1.z
160
+ .string()
161
+ .describe('Series name for legend. Try to include measurements if needed'),
160
162
  data: zod_1.z.array(zod_1.z.number()).describe('Values corresponding to categories'),
161
163
  type: zod_1.z
162
164
  .number()
@@ -165,16 +167,16 @@ exports.BarChartSlideDataSchema = zod_1.z.object({
165
167
  .describe('Series type. Used to discriminate colors when applying theme'),
166
168
  }))
167
169
  .min(1)
168
- .max(12)
169
- .describe('Data series for the chart'),
170
+ .max(1)
171
+ .describe('Data series for the chart. Only one series is supported'),
170
172
  yAxisLabel: zod_1.z.string().max(40).optional().describe('Y-axis label'),
171
173
  unit: zod_1.z.string().max(10).optional().describe('Unit symbol (%, $, etc.)'),
172
174
  version: zod_1.z.literal(1),
173
175
  });
174
176
  exports.ChartSlideDataSchema = zod_1.z.object({
175
177
  contentType: zod_1.z.literal(constants_1.SLIDE_CONTENT_TYPE.CHART),
176
- title: zod_1.z.string().describe('Slide title in about 6 words').min(10).max(200),
177
- description: zod_1.z.string().describe("Information on slide's topic").min(10).max(400),
178
+ title: zod_1.z.string().describe('Slide title in about 2-6 words').max(100),
179
+ description: zod_1.z.string().describe("Information on slide's topic").max(600),
178
180
  chart: zod_1.z.discriminatedUnion('type', [exports.BarChartSlideDataSchema]),
179
181
  version: zod_1.z.literal(1),
180
182
  });