@purpleschool/gptbot-tools 0.1.134 → 0.2.0-stage

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/account-merge/commands/index.ts +1 -0
  2. package/account-merge/commands/transfer-user-jobs.command.ts +13 -0
  3. package/account-merge/index.ts +2 -0
  4. package/account-merge/routes/account-merge.amqp.routes.ts +3 -0
  5. package/account-merge/routes/index.ts +1 -0
  6. package/analytics/index.ts +1 -0
  7. package/analytics/job-model-analytics/commands/get-job-model-analytics.command.ts +12 -0
  8. package/analytics/job-model-analytics/commands/index.ts +1 -0
  9. package/analytics/job-model-analytics/index.ts +2 -0
  10. package/analytics/job-model-analytics/routes/index.ts +1 -0
  11. package/analytics/job-model-analytics/routes/job-model-analytics.http.routes.ts +5 -0
  12. package/build/account-merge/commands/index.js +17 -0
  13. package/build/account-merge/commands/transfer-user-jobs.command.js +13 -0
  14. package/build/account-merge/index.js +18 -0
  15. package/build/account-merge/routes/account-merge.amqp.routes.js +6 -0
  16. package/build/account-merge/routes/index.js +17 -0
  17. package/build/analytics/index.js +17 -0
  18. package/build/analytics/job-model-analytics/commands/get-job-model-analytics.command.js +11 -0
  19. package/build/analytics/job-model-analytics/commands/index.js +17 -0
  20. package/build/analytics/job-model-analytics/index.js +18 -0
  21. package/build/analytics/job-model-analytics/routes/index.js +17 -0
  22. package/build/analytics/job-model-analytics/routes/job-model-analytics.http.routes.js +7 -0
  23. package/build/common/enums/file-type.enum.js +8 -0
  24. package/build/common/enums/index.js +1 -0
  25. package/build/common/enums/reasoning-effort.enum.js +6 -1
  26. package/build/image-editor/commands/image-editor.command.js +1 -0
  27. package/build/image-editor/models/image-editor-job.schema.js +2 -0
  28. package/build/image-editor/models/image-editor-model.schema.js +6 -0
  29. package/build/image-generation/models/image-generation-job.schema.js +1 -0
  30. package/build/image-generation/models/image-generation-model.schema.js +1 -0
  31. package/build/image-generation/queries/find-image-generation-jobs.query.js +2 -0
  32. package/build/index.js +15 -0
  33. package/build/marketplace-card/commands/execute-marketplace-card.command.js +7 -0
  34. package/build/marketplace-card/commands/index.js +2 -0
  35. package/build/marketplace-card/commands/soft-delete-all-marketplace-card-jobs.command.js +13 -0
  36. package/build/marketplace-card/commands/update-title-marketplace-card-job.command.js +16 -0
  37. package/build/marketplace-card/models/index.js +1 -0
  38. package/build/marketplace-card/models/marketplace-card-config.schema.js +2 -0
  39. package/build/marketplace-card/routes/marketplace-card.amqp.routes.js +2 -0
  40. package/build/presentation/commands/create-presentation.command.js +3 -0
  41. package/build/presentation/commands/generate-slides.command.js +1 -0
  42. package/build/presentation/commands/get-presentation-slides-generation-price.command.js +1 -0
  43. package/build/presentation/commands/index.js +1 -0
  44. package/build/presentation/commands/reposition-slide.command.js +16 -0
  45. package/build/presentation/enums/index.js +1 -0
  46. package/build/presentation/enums/presentation-target-audience.enum.js +10 -0
  47. package/build/presentation/models/index.js +1 -0
  48. package/build/presentation/models/presentation-template.schema.js +2 -0
  49. package/build/presentation/models/presentation-title-page.schema.js +9 -0
  50. package/build/presentation/models/presentation.schema.js +4 -0
  51. package/build/presentation/models/slide-content-edit.schema.js +24 -12
  52. package/build/presentation/models/slide-content.schema.js +215 -73
  53. package/build/presentation/routes/presentation.routes.js +4 -1
  54. package/build/solving-edu-task/commands/delete-all-solving-edu-task-jobs.command.js +13 -0
  55. package/build/solving-edu-task/commands/delete-solving-edu-task-job-by-uuid.command.js +14 -0
  56. package/build/solving-edu-task/commands/get-solving-edu-task-price.command.js +15 -0
  57. package/build/solving-edu-task/commands/index.js +23 -0
  58. package/build/solving-edu-task/commands/retry-solving-edu-task-job.command.js +25 -0
  59. package/build/solving-edu-task/commands/set-reaction-to-solving-edu-task-job.command.js +27 -0
  60. package/build/solving-edu-task/commands/solving-edu-task.command.js +22 -0
  61. package/build/solving-edu-task/commands/update-solving-edu-task-job-title.command.js +16 -0
  62. package/build/solving-edu-task/index.js +20 -0
  63. package/build/solving-edu-task/models/index.js +19 -0
  64. package/build/solving-edu-task/models/solving-edu-task-config.schema.js +8 -0
  65. package/build/solving-edu-task/models/solving-edu-task-job.schema.js +32 -0
  66. package/build/solving-edu-task/models/solving-edu-task-model.schema.js +27 -0
  67. package/build/solving-edu-task/queries/find-solving-edu-task-job-by-id.query.js +15 -0
  68. package/build/solving-edu-task/queries/find-solving-edu-task-jobs.query.js +28 -0
  69. package/build/solving-edu-task/queries/get-solving-edu-task-config.query.js +11 -0
  70. package/build/solving-edu-task/queries/index.js +19 -0
  71. package/build/solving-edu-task/routes/index.js +17 -0
  72. package/build/solving-edu-task/routes/solving-edu-task.amqp.routes.js +15 -0
  73. package/build/spell-corrector/commands/delete-all-spell-corrector-jobs.command.js +13 -0
  74. package/build/spell-corrector/commands/delete-spell-corrector-job-by-uuid.command.js +14 -0
  75. package/build/spell-corrector/commands/get-spell-corrector-price.command.js +15 -0
  76. package/build/spell-corrector/commands/index.js +23 -0
  77. package/build/spell-corrector/commands/retry-spell-corrector-job.command.js +17 -0
  78. package/build/spell-corrector/commands/set-reaction-to-spell-corrector-job.command.js +27 -0
  79. package/build/spell-corrector/commands/spell-corrector.command.js +18 -0
  80. package/build/spell-corrector/commands/update-spell-corrector-job-title.command.js +16 -0
  81. package/build/spell-corrector/index.js +20 -0
  82. package/build/spell-corrector/models/index.js +19 -0
  83. package/build/spell-corrector/models/spell-corrector-job.schema.js +25 -0
  84. package/build/spell-corrector/models/spell-corrector-model.schema.js +18 -0
  85. package/build/spell-corrector/models/spell-corrector-tool-config.schema.js +9 -0
  86. package/build/spell-corrector/queries/find-spell-corrector-job-by-uuid.query.js +10 -0
  87. package/build/spell-corrector/queries/find-spell-corrector-jobs.query.js +28 -0
  88. package/build/spell-corrector/queries/get-spell-corrector-tool-config.query.js +9 -0
  89. package/build/spell-corrector/queries/index.js +19 -0
  90. package/build/spell-corrector/routes/index.js +17 -0
  91. package/build/spell-corrector/routes/spell-corrector.amqp.routes.js +15 -0
  92. package/build/stt/models/stt-response.schema.js +2 -0
  93. package/build/tool-workspace/commands/index.js +18 -0
  94. package/build/tool-workspace/commands/soft-delete-tool-workspace.command.js +21 -0
  95. package/build/tool-workspace/commands/update-tool-workspace.command.js +26 -0
  96. package/build/tool-workspace/enums/index.js +18 -0
  97. package/build/tool-workspace/enums/tool-workspace-item-slot.enum.js +9 -0
  98. package/build/tool-workspace/enums/tool-workspace-status.enum.js +8 -0
  99. package/build/tool-workspace/index.js +21 -0
  100. package/build/tool-workspace/models/index.js +20 -0
  101. package/build/tool-workspace/models/tool-workspace-contents.schema.js +10 -0
  102. package/build/tool-workspace/models/tool-workspace-item.schema.js +17 -0
  103. package/build/tool-workspace/models/tool-workspace-job.schema.js +17 -0
  104. package/build/tool-workspace/models/tool-workspace.schema.js +17 -0
  105. package/build/tool-workspace/queries/find-tool-workspace-by-uuid.query.js +22 -0
  106. package/build/tool-workspace/queries/find-tool-workspaces.query.js +30 -0
  107. package/build/tool-workspace/queries/index.js +18 -0
  108. package/build/tool-workspace/routes/index.js +17 -0
  109. package/build/tool-workspace/routes/tool-workspace.amqp.routes.js +9 -0
  110. package/build/tools/enums/tool-content-type.enum.js +3 -1
  111. package/build/tools/enums/tool-type.enum.js +2 -0
  112. package/build/tools/models/global-tools-config.schema.js +4 -0
  113. package/build/tools/models/tools-with-configs.schema.js +10 -0
  114. package/build/video/commands/video.command.js +7 -0
  115. package/build/video/const/videoMaxDuration.js +1 -1
  116. package/build/video/enums/video-resolution.enum.js +1 -0
  117. package/build/video/enums/video-strategy.enum.js +1 -0
  118. package/build/video/models/video-config.schema.js +2 -0
  119. package/build/video/models/video-model.schema.js +1 -0
  120. package/build/video-editor/commands/edit-video.command.js +1 -0
  121. package/build/video-editor/commands/get-video-editor-price.command.js +2 -0
  122. package/build/video-editor/commands/retry-video-editor-job.command.js +1 -0
  123. package/build/video-editor/enums/index.js +1 -0
  124. package/build/video-editor/enums/video-editor-pricing-rule-type.enum.js +8 -0
  125. package/build/video-editor/models/video-editor-job.schema.js +7 -1
  126. package/build/video-editor/models/video-editor-model.schema.js +28 -1
  127. package/build/video-editor/utils/calculate-video-editing-price.js +24 -2
  128. package/build/writer/commands/collect-sources.command.js +15 -0
  129. package/build/writer/commands/confirm-source-citation-metadata.command.js +18 -0
  130. package/build/writer/commands/discard-writer-source.command.js +16 -0
  131. package/build/writer/commands/generate-document-outline.command.js +17 -0
  132. package/build/writer/commands/index.js +5 -0
  133. package/build/writer/commands/update-writer-document-outline.command.js +1 -0
  134. package/build/writer/commands/upload-writer-source.command.js +18 -0
  135. package/build/writer/enums/index.js +3 -0
  136. package/build/writer/enums/writer-document-stage.enum.js +6 -0
  137. package/build/writer/enums/writer-source-origin.enum.js +8 -0
  138. package/build/writer/enums/writer-source-status.enum.js +9 -0
  139. package/build/writer/enums/writer-source-type.enum.js +8 -0
  140. package/build/writer/models/index.js +2 -0
  141. package/build/writer/models/writer-document-type.schema.js +1 -1
  142. package/build/writer/models/writer-document.schema.js +3 -0
  143. package/build/writer/models/writer-source-bibliographic-metadata.schema.js +27 -0
  144. package/build/writer/models/writer-source.schema.js +22 -0
  145. package/build/writer/queries/get-writer-document-sources.query.js +15 -0
  146. package/build/writer/queries/index.js +1 -0
  147. package/build/writer/routes/writer.routes.js +6 -0
  148. package/common/enums/file-type.enum.ts +4 -0
  149. package/common/enums/index.ts +1 -0
  150. package/common/enums/reasoning-effort.enum.ts +5 -0
  151. package/image-editor/commands/image-editor.command.ts +1 -0
  152. package/image-editor/models/image-editor-job.schema.ts +2 -0
  153. package/image-editor/models/image-editor-model.schema.ts +9 -0
  154. package/image-generation/models/image-generation-job.schema.ts +2 -1
  155. package/image-generation/models/image-generation-model.schema.ts +1 -0
  156. package/image-generation/queries/find-image-generation-jobs.query.ts +2 -0
  157. package/index.ts +15 -0
  158. package/marketplace-card/commands/execute-marketplace-card.command.ts +7 -0
  159. package/marketplace-card/commands/index.ts +2 -0
  160. package/marketplace-card/commands/soft-delete-all-marketplace-card-jobs.command.ts +13 -0
  161. package/marketplace-card/commands/update-title-marketplace-card-job.command.ts +16 -0
  162. package/marketplace-card/models/index.ts +1 -0
  163. package/marketplace-card/models/marketplace-card-config.schema.ts +2 -0
  164. package/marketplace-card/models/marketplace-card-job.schema.ts +1 -1
  165. package/marketplace-card/routes/marketplace-card.amqp.routes.ts +2 -0
  166. package/package.json +1 -1
  167. package/presentation/commands/create-presentation.command.ts +3 -0
  168. package/presentation/commands/generate-slides.command.ts +2 -1
  169. package/presentation/commands/get-presentation-slides-generation-price.command.ts +1 -0
  170. package/presentation/commands/index.ts +1 -0
  171. package/presentation/commands/reposition-slide.command.ts +16 -0
  172. package/presentation/enums/index.ts +1 -0
  173. package/presentation/enums/presentation-target-audience.enum.ts +6 -0
  174. package/presentation/models/index.ts +1 -0
  175. package/presentation/models/presentation-template.schema.ts +2 -0
  176. package/presentation/models/presentation-title-page.schema.ts +9 -0
  177. package/presentation/models/presentation.schema.ts +5 -1
  178. package/presentation/models/slide-content-edit.schema.ts +36 -24
  179. package/presentation/models/slide-content.schema.ts +294 -90
  180. package/presentation/routes/presentation.routes.ts +4 -0
  181. package/solving-edu-task/commands/delete-all-solving-edu-task-jobs.command.ts +13 -0
  182. package/solving-edu-task/commands/delete-solving-edu-task-job-by-uuid.command.ts +14 -0
  183. package/solving-edu-task/commands/get-solving-edu-task-price.command.ts +17 -0
  184. package/solving-edu-task/commands/index.ts +7 -0
  185. package/solving-edu-task/commands/retry-solving-edu-task-job.command.ts +25 -0
  186. package/solving-edu-task/commands/set-reaction-to-solving-edu-task-job.command.ts +31 -0
  187. package/solving-edu-task/commands/solving-edu-task.command.ts +22 -0
  188. package/solving-edu-task/commands/update-solving-edu-task-job-title.command.ts +16 -0
  189. package/solving-edu-task/index.ts +4 -0
  190. package/solving-edu-task/models/index.ts +3 -0
  191. package/solving-edu-task/models/solving-edu-task-config.schema.ts +8 -0
  192. package/solving-edu-task/models/solving-edu-task-job.schema.ts +35 -0
  193. package/solving-edu-task/models/solving-edu-task-model.schema.ts +30 -0
  194. package/solving-edu-task/queries/find-solving-edu-task-job-by-id.query.ts +16 -0
  195. package/solving-edu-task/queries/find-solving-edu-task-jobs.query.ts +33 -0
  196. package/solving-edu-task/queries/get-solving-edu-task-config.query.ts +11 -0
  197. package/solving-edu-task/queries/index.ts +3 -0
  198. package/solving-edu-task/routes/index.ts +1 -0
  199. package/solving-edu-task/routes/solving-edu-task.amqp.routes.ts +12 -0
  200. package/spell-corrector/commands/delete-all-spell-corrector-jobs.command.ts +13 -0
  201. package/spell-corrector/commands/delete-spell-corrector-job-by-uuid.command.ts +14 -0
  202. package/spell-corrector/commands/get-spell-corrector-price.command.ts +16 -0
  203. package/spell-corrector/commands/index.ts +7 -0
  204. package/spell-corrector/commands/retry-spell-corrector-job.command.ts +17 -0
  205. package/spell-corrector/commands/set-reaction-to-spell-corrector-job.command.ts +30 -0
  206. package/spell-corrector/commands/spell-corrector.command.ts +18 -0
  207. package/spell-corrector/commands/update-spell-corrector-job-title.command.ts +16 -0
  208. package/spell-corrector/index.ts +4 -0
  209. package/spell-corrector/models/index.ts +3 -0
  210. package/spell-corrector/models/spell-corrector-job.schema.ts +25 -0
  211. package/spell-corrector/models/spell-corrector-model.schema.ts +18 -0
  212. package/spell-corrector/models/spell-corrector-tool-config.schema.ts +9 -0
  213. package/spell-corrector/queries/find-spell-corrector-job-by-uuid.query.ts +11 -0
  214. package/spell-corrector/queries/find-spell-corrector-jobs.query.ts +33 -0
  215. package/spell-corrector/queries/get-spell-corrector-tool-config.query.ts +8 -0
  216. package/spell-corrector/queries/index.ts +3 -0
  217. package/spell-corrector/routes/index.ts +1 -0
  218. package/spell-corrector/routes/spell-corrector.amqp.routes.ts +12 -0
  219. package/stt/models/stt-response.schema.ts +2 -0
  220. package/tool-workspace/commands/index.ts +2 -0
  221. package/tool-workspace/commands/soft-delete-tool-workspace.command.ts +25 -0
  222. package/tool-workspace/commands/update-tool-workspace.command.ts +30 -0
  223. package/tool-workspace/enums/index.ts +2 -0
  224. package/tool-workspace/enums/tool-workspace-item-slot.enum.ts +5 -0
  225. package/tool-workspace/enums/tool-workspace-status.enum.ts +4 -0
  226. package/tool-workspace/index.ts +5 -0
  227. package/tool-workspace/models/index.ts +4 -0
  228. package/tool-workspace/models/tool-workspace-contents.schema.ts +10 -0
  229. package/tool-workspace/models/tool-workspace-item.schema.ts +17 -0
  230. package/tool-workspace/models/tool-workspace-job.schema.ts +17 -0
  231. package/tool-workspace/models/tool-workspace.schema.ts +17 -0
  232. package/tool-workspace/queries/find-tool-workspace-by-uuid.query.ts +26 -0
  233. package/tool-workspace/queries/find-tool-workspaces.query.ts +37 -0
  234. package/tool-workspace/queries/index.ts +2 -0
  235. package/tool-workspace/routes/index.ts +1 -0
  236. package/tool-workspace/routes/tool-workspace.amqp.routes.ts +6 -0
  237. package/tools/enums/tool-content-type.enum.ts +3 -1
  238. package/tools/enums/tool-type.enum.ts +2 -0
  239. package/tools/models/global-tools-config.schema.ts +4 -0
  240. package/tools/models/tools-with-configs.schema.ts +14 -0
  241. package/video/commands/video.command.ts +7 -0
  242. package/video/const/videoMaxDuration.ts +1 -1
  243. package/video/enums/video-resolution.enum.ts +1 -0
  244. package/video/enums/video-strategy.enum.ts +1 -0
  245. package/video/models/video-config.schema.ts +2 -0
  246. package/video/models/video-model.schema.ts +1 -0
  247. package/video-editor/commands/edit-video.command.ts +2 -1
  248. package/video-editor/commands/get-video-editor-price.command.ts +2 -0
  249. package/video-editor/commands/retry-video-editor-job.command.ts +5 -1
  250. package/video-editor/enums/index.ts +1 -0
  251. package/video-editor/enums/video-editor-pricing-rule-type.enum.ts +4 -0
  252. package/video-editor/models/video-editor-job.schema.ts +9 -0
  253. package/video-editor/models/video-editor-model.schema.ts +45 -1
  254. package/video-editor/utils/calculate-video-editing-price.ts +45 -2
  255. package/writer/commands/collect-sources.command.ts +15 -0
  256. package/writer/commands/confirm-source-citation-metadata.command.ts +18 -0
  257. package/writer/commands/discard-writer-source.command.ts +18 -0
  258. package/writer/commands/generate-document-outline.command.ts +17 -0
  259. package/writer/commands/index.ts +5 -0
  260. package/writer/commands/update-writer-document-outline.command.ts +1 -0
  261. package/writer/commands/upload-writer-source.command.ts +18 -0
  262. package/writer/enums/index.ts +3 -0
  263. package/writer/enums/writer-document-stage.enum.ts +8 -0
  264. package/writer/enums/writer-source-origin.enum.ts +4 -0
  265. package/writer/enums/writer-source-status.enum.ts +5 -0
  266. package/writer/enums/writer-source-type.enum.ts +4 -0
  267. package/writer/models/index.ts +2 -0
  268. package/writer/models/writer-document-type.schema.ts +1 -1
  269. package/writer/models/writer-document.schema.ts +3 -0
  270. package/writer/models/writer-source-bibliographic-metadata.schema.ts +31 -0
  271. package/writer/models/writer-source.schema.ts +22 -0
  272. package/writer/queries/get-writer-document-sources.query.ts +15 -0
  273. package/writer/queries/index.ts +1 -0
  274. package/writer/routes/writer.routes.ts +6 -0
@@ -0,0 +1 @@
1
+ export * from './transfer-user-jobs.command';
@@ -0,0 +1,13 @@
1
+ import { z } from 'zod';
2
+ import { ICommandResponseSchema } from '../../common/models/command-response.schema';
3
+
4
+ export namespace TransferUserJobsCommand {
5
+ export const RequestSchema = z.object({
6
+ sourceUserId: z.string().uuid(),
7
+ targetUserId: z.string().uuid(),
8
+ });
9
+ export type Request = z.infer<typeof RequestSchema>;
10
+
11
+ export const ResponseSchema = ICommandResponseSchema(z.boolean());
12
+ export type Response = z.infer<typeof ResponseSchema>;
13
+ }
@@ -0,0 +1,2 @@
1
+ export * from './routes';
2
+ export * from './commands';
@@ -0,0 +1,3 @@
1
+ export const ACCOUNT_MERGE_AMQP_ROUTES = {
2
+ TRANSFER_USER_JOBS: 'tools.account-merge.transfer-user-jobs.rpc',
3
+ } as const;
@@ -0,0 +1 @@
1
+ export * from './account-merge.amqp.routes';
@@ -0,0 +1 @@
1
+ export * from './job-model-analytics';
@@ -0,0 +1,12 @@
1
+ import { z } from 'zod';
2
+
3
+ export namespace GetJobModelAnalyticsCommand {
4
+ export const RequestSchema = z.object({
5
+ periodInMinutes: z.number().int().positive(),
6
+ });
7
+
8
+ export type Request = z.infer<typeof RequestSchema>;
9
+
10
+ export const ResponseSchema = z.void();
11
+ export type Response = z.infer<typeof ResponseSchema>;
12
+ }
@@ -0,0 +1 @@
1
+ export * from './get-job-model-analytics.command';
@@ -0,0 +1,2 @@
1
+ export * from './commands';
2
+ export * from './routes';
@@ -0,0 +1 @@
1
+ export * from './job-model-analytics.http.routes';
@@ -0,0 +1,5 @@
1
+ export const JOB_MODEL_ANALYTICS_CONTROLLER = 'cron';
2
+
3
+ export const JOB_MODEL_ANALYTICS_ROUTES = {
4
+ GET_BY_ALL_JOBS: 'job-model-analytics',
5
+ } as const;
@@ -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("./transfer-user-jobs.command"), exports);
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TransferUserJobsCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const command_response_schema_1 = require("../../common/models/command-response.schema");
6
+ var TransferUserJobsCommand;
7
+ (function (TransferUserJobsCommand) {
8
+ TransferUserJobsCommand.RequestSchema = zod_1.z.object({
9
+ sourceUserId: zod_1.z.string().uuid(),
10
+ targetUserId: zod_1.z.string().uuid(),
11
+ });
12
+ TransferUserJobsCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(zod_1.z.boolean());
13
+ })(TransferUserJobsCommand || (exports.TransferUserJobsCommand = TransferUserJobsCommand = {}));
@@ -0,0 +1,18 @@
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("./routes"), exports);
18
+ __exportStar(require("./commands"), exports);
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ACCOUNT_MERGE_AMQP_ROUTES = void 0;
4
+ exports.ACCOUNT_MERGE_AMQP_ROUTES = {
5
+ TRANSFER_USER_JOBS: 'tools.account-merge.transfer-user-jobs.rpc',
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("./account-merge.amqp.routes"), exports);
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./job-model-analytics"), exports);
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetJobModelAnalyticsCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ var GetJobModelAnalyticsCommand;
6
+ (function (GetJobModelAnalyticsCommand) {
7
+ GetJobModelAnalyticsCommand.RequestSchema = zod_1.z.object({
8
+ periodInMinutes: zod_1.z.number().int().positive(),
9
+ });
10
+ GetJobModelAnalyticsCommand.ResponseSchema = zod_1.z.void();
11
+ })(GetJobModelAnalyticsCommand || (exports.GetJobModelAnalyticsCommand = GetJobModelAnalyticsCommand = {}));
@@ -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("./get-job-model-analytics.command"), exports);
@@ -0,0 +1,18 @@
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("./commands"), exports);
18
+ __exportStar(require("./routes"), exports);
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./job-model-analytics.http.routes"), exports);
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.JOB_MODEL_ANALYTICS_ROUTES = exports.JOB_MODEL_ANALYTICS_CONTROLLER = void 0;
4
+ exports.JOB_MODEL_ANALYTICS_CONTROLLER = 'cron';
5
+ exports.JOB_MODEL_ANALYTICS_ROUTES = {
6
+ GET_BY_ALL_JOBS: 'job-model-analytics',
7
+ };
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FILE_TYPE = void 0;
4
+ var FILE_TYPE;
5
+ (function (FILE_TYPE) {
6
+ FILE_TYPE["PDF"] = "PDF";
7
+ FILE_TYPE["DOCX"] = "DOCX";
8
+ })(FILE_TYPE || (exports.FILE_TYPE = FILE_TYPE = {}));
@@ -17,3 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./reasoning-effort.enum"), exports);
18
18
  __exportStar(require("./user-reaction.enum"), exports);
19
19
  __exportStar(require("./tool-model-status.enum"), exports);
20
+ __exportStar(require("./file-type.enum"), exports);
@@ -1,9 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.REASONING_EFFORT = void 0;
3
+ exports.IMAGE_DETAIL = exports.REASONING_EFFORT = void 0;
4
4
  var REASONING_EFFORT;
5
5
  (function (REASONING_EFFORT) {
6
6
  REASONING_EFFORT["LOW"] = "low";
7
7
  REASONING_EFFORT["MEDIUM"] = "medium";
8
8
  REASONING_EFFORT["HIGH"] = "high";
9
9
  })(REASONING_EFFORT || (exports.REASONING_EFFORT = REASONING_EFFORT = {}));
10
+ var IMAGE_DETAIL;
11
+ (function (IMAGE_DETAIL) {
12
+ IMAGE_DETAIL["LOW"] = "low";
13
+ IMAGE_DETAIL["HIGH"] = "high";
14
+ })(IMAGE_DETAIL || (exports.IMAGE_DETAIL = IMAGE_DETAIL = {}));
@@ -15,6 +15,7 @@ var ImageEditorCommand;
15
15
  params: zod_1.z.object({
16
16
  attachedFiles: zod_1.z.array(common_1.AttachedFileSchema),
17
17
  systemPromptId: zod_1.z.string().optional(),
18
+ aspectRatio: zod_1.z.string().optional(),
18
19
  }),
19
20
  userHasActiveSubscriptionOrProduct: zod_1.z.boolean(),
20
21
  tokenReservationId: zod_1.z.string().uuid(),
@@ -8,6 +8,8 @@ exports.ImageEditorJobParamsSchema = zod_1.z.object({
8
8
  attachedFiles: zod_1.z.array(common_1.AttachedFileSchema).optional(),
9
9
  imageUrls: zod_1.z.array(zod_1.z.string()).optional(),
10
10
  systemPromptId: zod_1.z.string().optional(),
11
+ aspectRatio: zod_1.z.string().optional(),
12
+ userHasActiveSubscriptionOrProduct: zod_1.z.boolean().optional(),
11
13
  });
12
14
  exports.ImageEditorJobSchema = zod_1.z.object({
13
15
  uuid: zod_1.z.string(),
@@ -10,6 +10,10 @@ exports.ImageEditorModelParamsSchema = zod_1.z.object({
10
10
  maxImages: zod_1.z.number(),
11
11
  acceptedTypes: zod_1.z.array(zod_1.z.string()),
12
12
  }),
13
+ aspectRatio: zod_1.z.record(zod_1.z.string(), zod_1.z.object({
14
+ width: zod_1.z.number(),
15
+ height: zod_1.z.number(),
16
+ })),
13
17
  });
14
18
  exports.ImageEditorModelPricingRuleConditionSchema = zod_1.z.object({
15
19
  withoutSub: zod_1.z.boolean().optional(),
@@ -23,6 +27,8 @@ exports.ImageEditorModelSchema = zod_1.z.object({
23
27
  title: zod_1.z.string(),
24
28
  description: zod_1.z.string(),
25
29
  aiModel: zod_1.z.string(),
30
+ isNew: zod_1.z.boolean(),
31
+ tierLabel: zod_1.z.string(),
26
32
  pricePerImage: zod_1.z.number(),
27
33
  order: zod_1.z.number(),
28
34
  status: zod_1.z.nativeEnum(common_1.TOOL_MODEL_STATUS),
@@ -29,6 +29,7 @@ exports.ImageGenerationJobSchema = zod_1.z.object({
29
29
  userId: zod_1.z.string().nullable().optional(),
30
30
  unregisteredUserId: zod_1.z.string().nullable().optional(),
31
31
  isPublished: zod_1.z.boolean(),
32
+ origin: zod_1.z.nativeEnum(tools_1.JOB_REQUEST_ORIGIN),
32
33
  postId: zod_1.z.string().nullable(),
33
34
  isDeleted: zod_1.z.boolean(),
34
35
  internalError: zod_1.z.string().nullable(),
@@ -35,6 +35,7 @@ exports.ImageGenerationModelSchema = zod_1.z.object({
35
35
  title: zod_1.z.string(),
36
36
  description: zod_1.z.string(),
37
37
  aiModel: zod_1.z.string(),
38
+ isNew: zod_1.z.boolean(),
38
39
  price: zod_1.z.number(),
39
40
  order: zod_1.z.number(),
40
41
  params: exports.ImageGenerationModelParamsSchema,
@@ -4,6 +4,7 @@ exports.FindImageGenerationJobsQuery = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const command_response_schema_1 = require("../../common/models/command-response.schema");
6
6
  const models_1 = require("../models");
7
+ const job_request_origin_enum_1 = require("../../tools/enums/job-request-origin.enum");
7
8
  var FindImageGenerationJobsQuery;
8
9
  (function (FindImageGenerationJobsQuery) {
9
10
  FindImageGenerationJobsQuery.RequestSchema = zod_1.z
@@ -13,6 +14,7 @@ var FindImageGenerationJobsQuery;
13
14
  title: zod_1.z.string().optional(),
14
15
  limit: zod_1.z.coerce.number().min(1).optional(),
15
16
  offset: zod_1.z.coerce.number().min(0).default(0).optional(),
17
+ origin: zod_1.z.nativeEnum(job_request_origin_enum_1.JOB_REQUEST_ORIGIN).optional(),
16
18
  })
17
19
  .refine((data) => {
18
20
  return Boolean(data.userId) !== Boolean(data.unregisteredUserId);
package/build/index.js CHANGED
@@ -38,6 +38,7 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.ToolService = void 0;
40
40
  __exportStar(require("./common"), exports);
41
+ __exportStar(require("./account-merge"), exports);
41
42
  __exportStar(require("./paraphrase"), exports);
42
43
  __exportStar(require("./tools"), exports);
43
44
  __exportStar(require("./stt"), exports);
@@ -53,6 +54,10 @@ __exportStar(require("./music"), exports);
53
54
  __exportStar(require("./ai-proxy"), exports);
54
55
  __exportStar(require("./ai-vendor"), exports);
55
56
  __exportStar(require("./marketplace-card"), exports);
57
+ __exportStar(require("./analytics"), exports);
58
+ __exportStar(require("./solving-edu-task"), exports);
59
+ __exportStar(require("./spell-corrector"), exports);
60
+ __exportStar(require("./tool-workspace"), exports);
56
61
  const common = __importStar(require("./common"));
57
62
  const paraphrase = __importStar(require("./paraphrase"));
58
63
  const tools = __importStar(require("./tools"));
@@ -69,6 +74,11 @@ const music = __importStar(require("./music"));
69
74
  const aiVendor = __importStar(require("./ai-vendor"));
70
75
  const interiorDesign = __importStar(require("./interior-design"));
71
76
  const marketplaceCard = __importStar(require("./marketplace-card"));
77
+ const analytics = __importStar(require("./analytics"));
78
+ const solvingEduTask = __importStar(require("./solving-edu-task"));
79
+ const spellCorrector = __importStar(require("./spell-corrector"));
80
+ const accountMerge = __importStar(require("./account-merge"));
81
+ const toolWorkspace = __importStar(require("./tool-workspace"));
72
82
  var ToolService;
73
83
  (function (ToolService) {
74
84
  ToolService.Common = common;
@@ -87,4 +97,9 @@ var ToolService;
87
97
  ToolService.AiVendor = aiVendor;
88
98
  ToolService.InteriorDesign = interiorDesign;
89
99
  ToolService.MarketplaceCard = marketplaceCard;
100
+ ToolService.Analytics = analytics;
101
+ ToolService.SolvingEduTask = solvingEduTask;
102
+ ToolService.SpellCorrector = spellCorrector;
103
+ ToolService.AccountMerge = accountMerge;
104
+ ToolService.ToolWorkspace = toolWorkspace;
90
105
  })(ToolService || (exports.ToolService = ToolService = {}));
@@ -4,11 +4,18 @@ exports.ExecuteMarketplaceCardCommand = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const command_response_schema_1 = require("../../common/models/command-response.schema");
6
6
  const models_1 = require("../models");
7
+ const tools_1 = require("../../tools");
8
+ const tool_workspace_1 = require("../../tool-workspace");
7
9
  var ExecuteMarketplaceCardCommand;
8
10
  (function (ExecuteMarketplaceCardCommand) {
9
11
  ExecuteMarketplaceCardCommand.RequestSchema = zod_1.z.object({
10
12
  userId: zod_1.z.string().uuid().nullable().optional(),
11
13
  unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
14
+ workspaceId: zod_1.z.string().uuid().nullable().optional(),
15
+ workspaceItemId: zod_1.z.string().uuid().nullable().optional(),
16
+ workspaceToolType: zod_1.z.nativeEnum(tools_1.TOOL_CONTENT_TYPE).nullable().optional(),
17
+ workspaceSlot: zod_1.z.nativeEnum(tool_workspace_1.TOOL_WORKSPACE_ITEM_SLOT).optional(),
18
+ workspaceOrder: zod_1.z.number().int().min(0).optional(),
12
19
  params: zod_1.z.object({
13
20
  title: zod_1.z.string(),
14
21
  subtitle: zod_1.z.string().nullable().optional(),
@@ -19,3 +19,5 @@ __exportStar(require("./set-reaction-to-marketplace-card-job.command"), exports)
19
19
  __exportStar(require("./soft-delete-marketplace-card-job-by-uuid.command"), exports);
20
20
  __exportStar(require("./retry-marketplace-card-job.command"), exports);
21
21
  __exportStar(require("./get-marketplace-card-price.command"), exports);
22
+ __exportStar(require("./soft-delete-all-marketplace-card-jobs.command"), exports);
23
+ __exportStar(require("./update-title-marketplace-card-job.command"), exports);
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SoftDeleteAllMarketplaceCardJobsCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const command_response_schema_1 = require("../../common/models/command-response.schema");
6
+ var SoftDeleteAllMarketplaceCardJobsCommand;
7
+ (function (SoftDeleteAllMarketplaceCardJobsCommand) {
8
+ SoftDeleteAllMarketplaceCardJobsCommand.RequestSchema = zod_1.z.object({
9
+ userId: zod_1.z.string().uuid().nullable().optional(),
10
+ unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
11
+ });
12
+ SoftDeleteAllMarketplaceCardJobsCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(zod_1.z.boolean());
13
+ })(SoftDeleteAllMarketplaceCardJobsCommand || (exports.SoftDeleteAllMarketplaceCardJobsCommand = SoftDeleteAllMarketplaceCardJobsCommand = {}));
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateTitleMarketplaceCardJobCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../models");
6
+ const common_1 = require("../../common");
7
+ var UpdateTitleMarketplaceCardJobCommand;
8
+ (function (UpdateTitleMarketplaceCardJobCommand) {
9
+ UpdateTitleMarketplaceCardJobCommand.RequestSchema = zod_1.z.object({
10
+ userId: zod_1.z.string().uuid().nullable().optional(),
11
+ unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
12
+ uuid: zod_1.z.string(),
13
+ title: zod_1.z.string(),
14
+ });
15
+ UpdateTitleMarketplaceCardJobCommand.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.MarketplaceCardJobSchema);
16
+ })(UpdateTitleMarketplaceCardJobCommand || (exports.UpdateTitleMarketplaceCardJobCommand = UpdateTitleMarketplaceCardJobCommand = {}));
@@ -17,3 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./marketplace-card-job.schema"), exports);
18
18
  __exportStar(require("./marketplace-card-config.schema"), exports);
19
19
  __exportStar(require("./marketplace-card-style-preset.schema"), exports);
20
+ __exportStar(require("./marketplace-card-model.schema"), exports);
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MarketplaceCardConfigSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const marketplace_card_style_preset_schema_1 = require("./marketplace-card-style-preset.schema");
6
+ const marketplace_card_model_schema_1 = require("./marketplace-card-model.schema");
6
7
  exports.MarketplaceCardConfigSchema = zod_1.z.object({
7
8
  styles: zod_1.z.array(marketplace_card_style_preset_schema_1.MarketplaceCardStylePresetSchema),
9
+ models: zod_1.z.array(marketplace_card_model_schema_1.MarketplaceCardModelSchema),
8
10
  });
@@ -10,4 +10,6 @@ exports.MARKETPLACE_CARD_AMQP_ROUTES = {
10
10
  SET_REACTION: 'tools.marketplace-card.jobs.set-reaction.rpc',
11
11
  SOFT_DELETE: 'tools.marketplace-card.soft-delete.rpc',
12
12
  RETRY: 'tools.marketplace-card.jobs.retry.rpc',
13
+ UPDATE_TITLE: 'tools.marketplace-card.jobs.update-title.rpc',
14
+ SOFT_DELETE_ALL: 'tools.marketplace-card.jobs.soft-delete-all.rpc',
13
15
  };
@@ -4,6 +4,7 @@ exports.CreatePresentationCommand = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const common_1 = require("../../common");
6
6
  const models_1 = require("../models");
7
+ const enums_1 = require("../enums");
7
8
  var CreatePresentationCommand;
8
9
  (function (CreatePresentationCommand) {
9
10
  CreatePresentationCommand.RequestSchema = zod_1.z.object({
@@ -13,6 +14,8 @@ var CreatePresentationCommand;
13
14
  languageId: zod_1.z.string(),
14
15
  prompt: zod_1.z.string(),
15
16
  slideCount: zod_1.z.number(),
17
+ targetAudience: zod_1.z.nativeEnum(enums_1.PRESENTATION_TARGET_AUDIENCE).optional(),
18
+ userHasActiveSubscriptionOrProduct: zod_1.z.boolean(),
16
19
  });
17
20
  CreatePresentationCommand.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.PresentationSchema);
18
21
  })(CreatePresentationCommand || (exports.CreatePresentationCommand = CreatePresentationCommand = {}));
@@ -12,6 +12,7 @@ var GenerateSlidesCommand;
12
12
  unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
13
13
  tokenReservationId: zod_1.z.string().uuid(),
14
14
  precalculatedPrice: zod_1.z.number(),
15
+ titlePage: models_1.PresentationTitlePageSchema.optional().nullable(),
15
16
  });
16
17
  GenerateSlidesCommand.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.PresentationSchema);
17
18
  })(GenerateSlidesCommand || (exports.GenerateSlidesCommand = GenerateSlidesCommand = {}));
@@ -7,6 +7,7 @@ var GetPresentationSlidesGenerationPriceCommand;
7
7
  (function (GetPresentationSlidesGenerationPriceCommand) {
8
8
  GetPresentationSlidesGenerationPriceCommand.RequestSchema = zod_1.z.object({
9
9
  slideCount: zod_1.z.number().int().min(1),
10
+ templateId: zod_1.z.string().uuid(),
10
11
  });
11
12
  GetPresentationSlidesGenerationPriceCommand.ResponseDataSchema = zod_1.z.object({
12
13
  price: zod_1.z.number(),
@@ -25,6 +25,7 @@ __exportStar(require("./export-as-pptx.command"), exports);
25
25
  __exportStar(require("./generate-slides.command"), exports);
26
26
  __exportStar(require("./get-presentation-slides-generation-price.command"), exports);
27
27
  __exportStar(require("./reposition-slide-outline.command"), exports);
28
+ __exportStar(require("./reposition-slide.command"), exports);
28
29
  __exportStar(require("./update-slide-outline.command"), exports);
29
30
  __exportStar(require("./update-presentation.command"), exports);
30
31
  __exportStar(require("./update-presentation-outline.command"), exports);
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RepositionSlideCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const common_1 = require("../../common");
6
+ var RepositionSlideCommand;
7
+ (function (RepositionSlideCommand) {
8
+ RepositionSlideCommand.RequestSchema = zod_1.z.object({
9
+ presentationId: zod_1.z.string().uuid(),
10
+ slideId: zod_1.z.string().uuid(),
11
+ userId: zod_1.z.string().uuid().nullable().optional(),
12
+ unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
13
+ newPosition: zod_1.z.number(),
14
+ });
15
+ RepositionSlideCommand.ResponseSchema = (0, common_1.ICommandResponseSchema)(zod_1.z.boolean());
16
+ })(RepositionSlideCommand || (exports.RepositionSlideCommand = RepositionSlideCommand = {}));
@@ -24,3 +24,4 @@ __exportStar(require("./slide-image-slot-action.enum"), exports);
24
24
  __exportStar(require("./presentation-ai-action-call-status.enum"), exports);
25
25
  __exportStar(require("./presentation-ai-action-type.enum"), exports);
26
26
  __exportStar(require("./presentation-ai-action-pricing-type.enum"), exports);
27
+ __exportStar(require("./presentation-target-audience.enum"), exports);
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PRESENTATION_TARGET_AUDIENCE = void 0;
4
+ var PRESENTATION_TARGET_AUDIENCE;
5
+ (function (PRESENTATION_TARGET_AUDIENCE) {
6
+ PRESENTATION_TARGET_AUDIENCE["NONE"] = "NONE";
7
+ PRESENTATION_TARGET_AUDIENCE["SCHOOL"] = "SCHOOL";
8
+ PRESENTATION_TARGET_AUDIENCE["UNIVERSITY"] = "UNIVERSITY";
9
+ PRESENTATION_TARGET_AUDIENCE["BUSINESS"] = "BUSINESS";
10
+ })(PRESENTATION_TARGET_AUDIENCE || (exports.PRESENTATION_TARGET_AUDIENCE = PRESENTATION_TARGET_AUDIENCE = {}));
@@ -24,3 +24,4 @@ __exportStar(require("./slide.schema"), exports);
24
24
  __exportStar(require("./slide-image-slot.schema"), exports);
25
25
  __exportStar(require("./slide-content.schema"), exports);
26
26
  __exportStar(require("./presentation-ai-action.schema"), exports);
27
+ __exportStar(require("./presentation-title-page.schema"), exports);
@@ -7,7 +7,9 @@ exports.PresentationTemplateSchema = zod_1.z.object({
7
7
  title: zod_1.z.string(),
8
8
  image: zod_1.z.string(),
9
9
  order: zod_1.z.number(),
10
+ price: zod_1.z.number(),
10
11
  imagePlaceholder: zod_1.z.string(),
12
+ isPremium: zod_1.z.boolean(),
11
13
  createdAt: zod_1.z.date(),
12
14
  updatedAt: zod_1.z.date(),
13
15
  });
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PresentationTitlePageSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.PresentationTitlePageSchema = zod_1.z.object({
6
+ author: zod_1.z.string().optional().nullable(),
7
+ createdAt: zod_1.z.date().optional().nullable(),
8
+ email: zod_1.z.string().email().optional().nullable(),
9
+ });
@@ -6,6 +6,7 @@ const enums_1 = require("../enums");
6
6
  const slide_outline_schema_1 = require("./slide-outline.schema");
7
7
  const slide_schema_1 = require("./slide.schema");
8
8
  const common_1 = require("../../common");
9
+ const presentation_title_page_schema_1 = require("./presentation-title-page.schema");
9
10
  exports.PresentationSchema = zod_1.z.object({
10
11
  uuid: zod_1.z.string().uuid(),
11
12
  prompt: zod_1.z.string(),
@@ -24,6 +25,8 @@ exports.PresentationSchema = zod_1.z.object({
24
25
  tokenReservationId: zod_1.z.string().nullable().optional(),
25
26
  lastContentUpdateAt: zod_1.z.date().nullable(),
26
27
  lastPptxExportedAt: zod_1.z.date().nullable(),
28
+ titlePage: presentation_title_page_schema_1.PresentationTitlePageSchema.nullable(),
29
+ targetAudience: zod_1.z.nativeEnum(enums_1.PRESENTATION_TARGET_AUDIENCE),
27
30
  createdAt: zod_1.z.date(),
28
31
  updatedAt: zod_1.z.date(),
29
32
  });
@@ -34,4 +37,5 @@ exports.PresentationWithSlidesSchema = exports.PresentationSchema.extend({
34
37
  exports.PresentationUpdateSchema = exports.PresentationSchema.pick({
35
38
  title: true,
36
39
  templateId: true,
40
+ titlePage: true,
37
41
  }).partial();