@purpleschool/gptbot 0.8.58 → 0.8.60

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 (341) hide show
  1. package/api/controllers/http/ai-model.ts +1 -0
  2. package/api/controllers/http/chat-private.ts +0 -1
  3. package/api/controllers/http/community.ts +25 -0
  4. package/api/controllers/http/image-generation.ts +14 -0
  5. package/api/controllers/http/index.ts +3 -1
  6. package/api/controllers/http/page.ts +1 -0
  7. package/api/controllers/http/paraphrase.ts +6 -0
  8. package/api/controllers/http/payment.ts +1 -0
  9. package/api/controllers/http/presentation.ts +1 -0
  10. package/api/controllers/http/product.ts +1 -1
  11. package/api/controllers/http/referral.ts +1 -1
  12. package/api/controllers/http/review.ts +1 -0
  13. package/api/controllers/http/subscription.ts +1 -1
  14. package/api/controllers/http/ui-notification.ts +2 -2
  15. package/api/controllers/http/user-profile.ts +8 -0
  16. package/api/controllers/http/user-to-subscription.ts +1 -0
  17. package/api/controllers/http/user.ts +2 -0
  18. package/api/routes.ts +139 -22
  19. package/build/api/controllers/http/ai-model.js +1 -0
  20. package/build/api/controllers/http/chat-private.js +0 -1
  21. package/build/api/controllers/http/community.js +25 -0
  22. package/build/api/controllers/http/image-generation.js +16 -0
  23. package/build/api/controllers/http/index.js +3 -1
  24. package/build/api/controllers/http/page.js +1 -0
  25. package/build/api/controllers/http/paraphrase.js +6 -0
  26. package/build/api/controllers/http/payment.js +1 -0
  27. package/build/api/controllers/http/presentation.js +1 -0
  28. package/build/api/controllers/http/product.js +1 -1
  29. package/build/api/controllers/http/referral.js +1 -1
  30. package/build/api/controllers/http/review.js +1 -0
  31. package/build/api/controllers/http/subscription.js +1 -1
  32. package/build/api/controllers/http/ui-notification.js +2 -2
  33. package/build/api/controllers/http/user-profile.js +10 -0
  34. package/build/api/controllers/http/user-to-subscription.js +1 -0
  35. package/build/api/controllers/http/user.js +2 -0
  36. package/build/api/routes.js +99 -21
  37. package/build/commands/ai-model/find-formatted-ai-model-v2.command.js +23 -0
  38. package/build/commands/ai-model/find-model-pages.command.js +31 -0
  39. package/build/commands/ai-model/index.js +2 -0
  40. package/build/commands/community/archive-community-post.command.js +13 -0
  41. package/build/commands/community/create-community-post.command.js +34 -0
  42. package/build/commands/community/delete-community-post.command.js +13 -0
  43. package/build/commands/community/get-all-community-posts-by-criteria.command.js +25 -0
  44. package/build/commands/community/get-community-post-by-uuid.command.js +14 -0
  45. package/build/commands/community/get-count-of-likes-on-my-posts.command.js +10 -0
  46. package/build/commands/community/get-my-community-posts-by-criteria.command.js +32 -0
  47. package/build/commands/community/get-my-favorite-community-posts.command.js +19 -0
  48. package/build/commands/community/get-my-likes-community-posts.command.js +19 -0
  49. package/build/commands/community/index.js +29 -0
  50. package/build/commands/community/send-report-to-community-post.command.js +15 -0
  51. package/build/commands/community/set-favorite-community-post.command.js +13 -0
  52. package/build/commands/community/set-like-community-post.command.js +14 -0
  53. package/build/commands/community/share-my-community-post.command.js +13 -0
  54. package/build/commands/folder/find-folder-by-uuid-with-chats.command.js +1 -0
  55. package/build/commands/folder/find-folders-by-user.command.js +1 -0
  56. package/build/commands/index.js +2 -0
  57. package/build/commands/message/index.js +0 -1
  58. package/build/commands/payment/check.command.js +1 -1
  59. package/build/commands/payment/index.js +1 -0
  60. package/build/commands/payment/refund-payment.command.js +15 -0
  61. package/build/commands/review/create-review.command.js +1 -1
  62. package/build/commands/review/find-all-reviews.command.js +20 -0
  63. package/build/commands/review/find-reviews.command.js +1 -1
  64. package/build/commands/review/get-review-count.command.js +15 -0
  65. package/build/commands/review/index.js +2 -0
  66. package/build/commands/subscription/create-custom-subscription-plan.command.js +1 -1
  67. package/build/commands/tools/image-editor/retry-image-editor-job.command.js +10 -0
  68. package/build/commands/tools/image-editor/set-reaction-to-image-editor-job.command.js +11 -1
  69. package/build/commands/tools/image-generation/delete-all-image-generation-jobs.command.js +10 -0
  70. package/build/commands/tools/image-generation/delete-image-generation-job-by-uuid.command.js +13 -0
  71. package/build/commands/tools/image-generation/find-image-generation-job-by-uuid.command.js +14 -0
  72. package/build/commands/tools/image-generation/find-image-generation-jobs.command.js +18 -0
  73. package/build/commands/tools/image-generation/get-image-generation-config.command.js +11 -0
  74. package/build/commands/tools/image-generation/image-generation.command.js +23 -0
  75. package/build/commands/tools/image-generation/index.js +24 -0
  76. package/build/commands/tools/image-generation/set-reaction-to-image-generation-job.command.js +28 -0
  77. package/build/commands/tools/image-generation/update-image-generation-job-title.command.js +17 -0
  78. package/build/commands/tools/index.js +1 -0
  79. package/build/commands/tools/music/retry-music-job.command.js +4 -0
  80. package/build/commands/tools/music/set-reaction-to-music-job.command.js +11 -1
  81. package/build/commands/tools/paraphrase/delete-all-paraphrase-jobs.command.js +8 -0
  82. package/build/commands/tools/paraphrase/delete-paraphrase-job-by-uuid.command.js +11 -0
  83. package/build/commands/tools/paraphrase/find-paraphrase-jobs.command.js +18 -0
  84. package/build/commands/tools/paraphrase/index.js +7 -1
  85. package/build/commands/tools/paraphrase/retry-paraphrase-job.command.js +14 -0
  86. package/build/commands/tools/paraphrase/set-reaction-to-paraphrase-job.command.js +28 -0
  87. package/build/commands/tools/paraphrase/update-paraphrase-job-title.command.js +17 -0
  88. package/build/commands/tools/presentation/index.js +1 -0
  89. package/build/commands/tools/presentation/set-reaction-to-presentation.command.js +28 -0
  90. package/build/commands/tools/stt/set-reaction-to-stt-job.command.js +11 -1
  91. package/build/commands/tools/tts/set-reaction-to-tts-job.command.js +11 -1
  92. package/build/commands/tools/video/retry-video-job.command.js +5 -0
  93. package/build/commands/tools/video/set-reaction-to-video-job.command.js +11 -1
  94. package/build/commands/tools/video-editor/retry-video-editor-job.command.js +5 -0
  95. package/build/commands/tools/video-editor/set-reaction-to-video-editor-job.command.js +11 -1
  96. package/build/commands/tools/writer/set-reaction.writer-document.command.js +11 -1
  97. package/build/commands/user/cancel-user-subscription.command.js +21 -0
  98. package/build/commands/user/find-users-by-criteria.command.js +1 -1
  99. package/build/commands/user/get-me.command.js +2 -0
  100. package/build/commands/user/get-user-payments.command.js +26 -0
  101. package/build/commands/user/get-user-products.command.js +1 -1
  102. package/build/commands/user/get-user-subscriptions.command.js +1 -1
  103. package/build/commands/user/index.js +2 -0
  104. package/build/commands/user-profile/delete-avatar.command.js +12 -0
  105. package/build/commands/user-profile/get-user-profile-by-user-id.command.js +14 -0
  106. package/build/commands/user-profile/index.js +20 -0
  107. package/build/commands/user-profile/update-profile.command.js +14 -0
  108. package/build/commands/user-profile/upload-avatar.command.js +11 -0
  109. package/build/commands/user-to-subscription/delete-user-to-subscription.command.js +16 -0
  110. package/build/commands/user-to-subscription/index.js +1 -0
  111. package/build/commands/webmaster-click/get-webmaster-clicks-overview.command.js +3 -6
  112. package/build/constants/cloud-payments/index.js +2 -1
  113. package/build/constants/community/community-post-report/enums/community-post-report-reason.enum.js +18 -0
  114. package/build/constants/community/community-post-report/enums/index.js +17 -0
  115. package/build/constants/community/community-post-report/index.js +17 -0
  116. package/build/constants/community/default-pagination.constant.js +6 -0
  117. package/build/constants/community/enums/community-aspect-ratio.enum.js +11 -0
  118. package/build/constants/community/enums/community-post-visibility.enum.js +8 -0
  119. package/build/constants/community/enums/community-status.enum.js +11 -0
  120. package/build/constants/community/enums/community-tool-type.enum.js +10 -0
  121. package/build/constants/community/enums/community-type.enum.js +11 -0
  122. package/build/constants/community/enums/index.js +21 -0
  123. package/build/constants/community/index.js +19 -0
  124. package/build/constants/errors/errors.js +275 -14
  125. package/build/constants/index.js +4 -0
  126. package/build/constants/model/enums/index.js +17 -0
  127. package/build/constants/model/enums/unified-model-content-type.enum.js +21 -0
  128. package/build/constants/model/index.js +17 -0
  129. package/build/constants/page/enums/page-type.enum.js +1 -0
  130. package/build/constants/payment/enums/index.js +1 -0
  131. package/build/constants/payment/enums/payment-sort-by.enum.js +10 -0
  132. package/build/constants/payment/enums/payment-status.enum.js +1 -0
  133. package/build/constants/presentation/enums/slide-content-type.enum.js +1 -0
  134. package/build/constants/presentation/maps/slide-layout-map.constant.js +1 -0
  135. package/build/constants/subscription/enums/subscription-feature-type.enum.js +6 -0
  136. package/build/constants/subscription/enums/subscription-status.enum.js +2 -2
  137. package/build/constants/tool/enums/index.js +1 -0
  138. package/build/constants/tool/enums/tool-content-type.enum.js +17 -0
  139. package/build/constants/tool/enums/tool-job-status.enum.js +1 -0
  140. package/build/constants/tool-image-generation/enums/image-generation-resolution.enum.js +9 -0
  141. package/build/constants/tool-image-generation/enums/index.js +17 -0
  142. package/build/constants/tool-image-generation/index.js +17 -0
  143. package/build/constants/tool-video/enums/video-pricing-rule-type.enum.js +1 -0
  144. package/build/constants/user-profile/index.js +17 -0
  145. package/build/constants/user-profile/user-profile.constant.js +10 -0
  146. package/build/helpers/image-editor/calculate-image-editor-price.helper.js +13 -0
  147. package/build/helpers/image-editor/index.js +17 -0
  148. package/build/helpers/image-generation/calculate-image-generation-price.helper.js +16 -0
  149. package/build/helpers/image-generation/index.js +17 -0
  150. package/build/helpers/index.js +2 -0
  151. package/build/helpers/video/calculate-video-price.helper.js +5 -1
  152. package/build/models/community/community-post-media-data.schema.js +53 -0
  153. package/build/models/community/community-post-report/community-post-report.schema.js +13 -0
  154. package/build/models/community/community-post-report/index.js +17 -0
  155. package/build/models/community/community-post.schema.js +44 -0
  156. package/build/models/community/index.js +19 -0
  157. package/build/models/index.js +2 -0
  158. package/build/models/order.schema.js +1 -0
  159. package/build/models/page.schema.js +2 -1
  160. package/build/models/payment.schema.js +5 -2
  161. package/build/models/review.schema.js +2 -0
  162. package/build/models/subscription-feature.schema.js +27 -1
  163. package/build/models/tool.schema.js +3 -0
  164. package/build/models/tools/common/attached-tool-file.schema.js +13 -0
  165. package/build/models/tools/common/index.js +17 -0
  166. package/build/models/tools/image-editor/image-editor-config.schema.js +1 -0
  167. package/build/models/tools/image-editor/image-editor-job.schema.js +11 -2
  168. package/build/models/tools/image-editor/image-editor-model.schema.js +9 -1
  169. package/build/models/tools/image-generation/image-generation-config.schema.js +23 -0
  170. package/build/models/tools/image-generation/image-generation-job.schema.js +35 -0
  171. package/build/models/tools/image-generation/image-generation-model.schema.js +41 -0
  172. package/build/models/tools/image-generation/index.js +19 -0
  173. package/build/models/tools/index.js +2 -0
  174. package/build/models/tools/music/music-track.schema.js +1 -0
  175. package/build/models/tools/paraphrase/paraphrase-job.schema.js +5 -0
  176. package/build/models/tools/presentation/pptx-export-payload.schema.js +34 -1
  177. package/build/models/tools/presentation/slide-content-edit.schema.js +18 -1
  178. package/build/models/tools/presentation/slide-content.schema.js +26 -1
  179. package/build/models/tools/stt/stt-job.schema.js +1 -0
  180. package/build/models/tools/tts/tts-job.schema.js +1 -0
  181. package/build/models/tools/video/video-job.schema.js +2 -0
  182. package/build/models/tools/video/video-model.schema.js +8 -1
  183. package/build/models/tools/video-editor/video-editor-job.schema.js +1 -0
  184. package/build/models/tools/writer/writer-document-outline.schema.js +1 -2
  185. package/build/models/user-profile.schema.js +16 -0
  186. package/build/models/webmaster-click.schema.js +2 -2
  187. package/commands/ai-model/find-formatted-ai-model-v2.command.ts +23 -0
  188. package/commands/ai-model/find-model-pages.command.ts +34 -0
  189. package/commands/ai-model/index.ts +2 -0
  190. package/commands/community/archive-community-post.command.ts +13 -0
  191. package/commands/community/create-community-post.command.ts +40 -0
  192. package/commands/community/delete-community-post.command.ts +13 -0
  193. package/commands/community/get-all-community-posts-by-criteria.command.ts +29 -0
  194. package/commands/community/get-community-post-by-uuid.command.ts +16 -0
  195. package/commands/community/get-count-of-likes-on-my-posts.command.ts +9 -0
  196. package/commands/community/get-my-community-posts-by-criteria.command.ts +40 -0
  197. package/commands/community/get-my-favorite-community-posts.command.ts +19 -0
  198. package/commands/community/get-my-likes-community-posts.command.ts +19 -0
  199. package/commands/community/index.ts +13 -0
  200. package/commands/community/send-report-to-community-post.command.ts +17 -0
  201. package/commands/community/set-favorite-community-post.command.ts +13 -0
  202. package/commands/community/set-like-community-post.command.ts +14 -0
  203. package/commands/community/share-my-community-post.command.ts +13 -0
  204. package/commands/folder/find-folder-by-uuid-with-chats.command.ts +1 -0
  205. package/commands/folder/find-folders-by-user.command.ts +1 -0
  206. package/commands/index.ts +2 -0
  207. package/commands/message/index.ts +0 -1
  208. package/commands/payment/check.command.ts +1 -1
  209. package/commands/payment/index.ts +1 -0
  210. package/commands/payment/refund-payment.command.ts +17 -0
  211. package/commands/review/create-review.command.ts +1 -1
  212. package/commands/review/find-all-reviews.command.ts +19 -0
  213. package/commands/review/find-reviews.command.ts +1 -1
  214. package/commands/review/get-review-count.command.ts +13 -0
  215. package/commands/review/index.ts +2 -0
  216. package/commands/subscription/create-custom-subscription-plan.command.ts +1 -1
  217. package/commands/tools/image-editor/retry-image-editor-job.command.ts +13 -1
  218. package/commands/tools/image-editor/set-reaction-to-image-editor-job.command.ts +16 -3
  219. package/commands/tools/image-generation/delete-all-image-generation-jobs.command.ts +8 -0
  220. package/commands/tools/image-generation/delete-image-generation-job-by-uuid.command.ts +13 -0
  221. package/commands/tools/image-generation/find-image-generation-job-by-uuid.command.ts +16 -0
  222. package/commands/tools/image-generation/find-image-generation-jobs.command.ts +18 -0
  223. package/commands/tools/image-generation/get-image-generation-config.command.ts +9 -0
  224. package/commands/tools/image-generation/image-generation.command.ts +25 -0
  225. package/commands/tools/image-generation/index.ts +8 -0
  226. package/commands/tools/image-generation/set-reaction-to-image-generation-job.command.ts +33 -0
  227. package/commands/tools/image-generation/update-image-generation-job-title.command.ts +19 -0
  228. package/commands/tools/index.ts +1 -0
  229. package/commands/tools/music/retry-music-job.command.ts +7 -1
  230. package/commands/tools/music/set-reaction-to-music-job.command.ts +16 -3
  231. package/commands/tools/paraphrase/delete-all-paraphrase-jobs.command.ts +6 -0
  232. package/commands/tools/paraphrase/delete-paraphrase-job-by-uuid.command.ts +11 -0
  233. package/commands/tools/paraphrase/find-paraphrase-jobs.command.ts +18 -0
  234. package/commands/tools/paraphrase/index.ts +7 -1
  235. package/commands/tools/paraphrase/retry-paraphrase-job.command.ts +14 -0
  236. package/commands/tools/paraphrase/set-reaction-to-paraphrase-job.command.ts +33 -0
  237. package/commands/tools/paraphrase/update-paraphrase-job-title.command.ts +19 -0
  238. package/commands/tools/presentation/index.ts +1 -0
  239. package/commands/tools/presentation/set-reaction-to-presentation.command.ts +33 -0
  240. package/commands/tools/stt/set-reaction-to-stt-job.command.ts +16 -3
  241. package/commands/tools/tts/set-reaction-to-tts-job.command.ts +16 -3
  242. package/commands/tools/video/retry-video-job.command.ts +8 -1
  243. package/commands/tools/video/set-reaction-to-video-job.command.ts +16 -3
  244. package/commands/tools/video-editor/retry-video-editor-job.command.ts +7 -0
  245. package/commands/tools/video-editor/set-reaction-to-video-editor-job.command.ts +16 -3
  246. package/commands/tools/writer/set-reaction.writer-document.command.ts +16 -3
  247. package/commands/user/cancel-user-subscription.command.ts +21 -0
  248. package/commands/user/find-users-by-criteria.command.ts +1 -1
  249. package/commands/user/get-me.command.ts +2 -0
  250. package/commands/user/get-user-payments.command.ts +27 -0
  251. package/commands/user/get-user-products.command.ts +2 -2
  252. package/commands/user/get-user-subscriptions.command.ts +2 -2
  253. package/commands/user/index.ts +2 -0
  254. package/commands/user-profile/delete-avatar.command.ts +14 -0
  255. package/commands/user-profile/get-user-profile-by-user-id.command.ts +16 -0
  256. package/commands/user-profile/index.ts +4 -0
  257. package/commands/user-profile/update-profile.command.ts +16 -0
  258. package/commands/user-profile/upload-avatar.command.ts +10 -0
  259. package/commands/user-to-subscription/delete-user-to-subscription.command.ts +18 -0
  260. package/commands/user-to-subscription/index.ts +1 -0
  261. package/commands/webmaster-click/get-webmaster-clicks-overview.command.ts +3 -8
  262. package/constants/cloud-payments/index.ts +2 -0
  263. package/constants/community/community-post-report/enums/community-post-report-reason.enum.ts +14 -0
  264. package/constants/community/community-post-report/enums/index.ts +1 -0
  265. package/constants/community/community-post-report/index.ts +1 -0
  266. package/constants/community/default-pagination.constant.ts +4 -0
  267. package/constants/community/enums/community-aspect-ratio.enum.ts +7 -0
  268. package/constants/community/enums/community-post-visibility.enum.ts +4 -0
  269. package/constants/community/enums/community-status.enum.ts +7 -0
  270. package/constants/community/enums/community-tool-type.enum.ts +6 -0
  271. package/constants/community/enums/community-type.enum.ts +7 -0
  272. package/constants/community/enums/index.ts +5 -0
  273. package/constants/community/index.ts +3 -0
  274. package/constants/errors/errors.ts +276 -14
  275. package/constants/index.ts +4 -0
  276. package/constants/model/enums/index.ts +1 -0
  277. package/constants/model/enums/unified-model-content-type.enum.ts +17 -0
  278. package/constants/model/index.ts +1 -0
  279. package/constants/page/enums/page-type.enum.ts +1 -0
  280. package/constants/payment/enums/index.ts +1 -0
  281. package/constants/payment/enums/payment-sort-by.enum.ts +6 -0
  282. package/constants/payment/enums/payment-status.enum.ts +1 -0
  283. package/constants/presentation/enums/slide-content-type.enum.ts +1 -0
  284. package/constants/presentation/maps/slide-layout-map.constant.ts +1 -0
  285. package/constants/subscription/enums/subscription-feature-type.enum.ts +6 -0
  286. package/constants/subscription/enums/subscription-status.enum.ts +2 -2
  287. package/constants/tool/enums/index.ts +1 -0
  288. package/constants/tool/enums/tool-content-type.enum.ts +13 -0
  289. package/constants/tool/enums/tool-job-status.enum.ts +1 -0
  290. package/constants/tool-image-generation/enums/image-generation-resolution.enum.ts +5 -0
  291. package/constants/tool-image-generation/enums/index.ts +1 -0
  292. package/constants/tool-image-generation/index.ts +1 -0
  293. package/constants/tool-video/enums/video-pricing-rule-type.enum.ts +1 -0
  294. package/constants/user-profile/index.ts +1 -0
  295. package/constants/user-profile/user-profile.constant.ts +14 -0
  296. package/helpers/image-editor/calculate-image-editor-price.helper.ts +23 -0
  297. package/helpers/image-editor/index.ts +1 -0
  298. package/helpers/image-generation/calculate-image-generation-price.helper.ts +29 -0
  299. package/helpers/image-generation/index.ts +1 -0
  300. package/helpers/index.ts +2 -0
  301. package/helpers/video/calculate-video-price.helper.ts +7 -1
  302. package/models/community/community-post-media-data.schema.ts +65 -0
  303. package/models/community/community-post-report/community-post-report.schema.ts +11 -0
  304. package/models/community/community-post-report/index.ts +1 -0
  305. package/models/community/community-post.schema.ts +48 -0
  306. package/models/community/index.ts +3 -0
  307. package/models/index.ts +2 -0
  308. package/models/order.schema.ts +1 -0
  309. package/models/page.schema.ts +2 -1
  310. package/models/payment.schema.ts +5 -1
  311. package/models/review.schema.ts +2 -0
  312. package/models/subscription-feature.schema.ts +34 -0
  313. package/models/tool.schema.ts +3 -0
  314. package/models/tools/common/attached-tool-file.schema.ts +13 -0
  315. package/models/tools/common/index.ts +1 -0
  316. package/models/tools/image-editor/image-editor-config.schema.ts +1 -0
  317. package/models/tools/image-editor/image-editor-job.schema.ts +13 -2
  318. package/models/tools/image-editor/image-editor-model.schema.ts +16 -0
  319. package/models/tools/image-generation/image-generation-config.schema.ts +29 -0
  320. package/models/tools/image-generation/image-generation-job.schema.ts +42 -0
  321. package/models/tools/image-generation/image-generation-model.schema.ts +52 -0
  322. package/models/tools/image-generation/index.ts +3 -0
  323. package/models/tools/index.ts +2 -0
  324. package/models/tools/music/music-track.schema.ts +1 -0
  325. package/models/tools/paraphrase/paraphrase-job.schema.ts +5 -0
  326. package/models/tools/presentation/pptx-export-payload.schema.ts +34 -0
  327. package/models/tools/presentation/slide-content-edit.schema.ts +21 -0
  328. package/models/tools/presentation/slide-content.schema.ts +45 -0
  329. package/models/tools/stt/stt-job.schema.ts +1 -0
  330. package/models/tools/tts/tts-job.schema.ts +1 -0
  331. package/models/tools/video/video-job.schema.ts +2 -0
  332. package/models/tools/video/video-model.schema.ts +8 -1
  333. package/models/tools/video-editor/video-editor-job.schema.ts +1 -0
  334. package/models/tools/writer/writer-document-outline.schema.ts +1 -2
  335. package/models/user-profile.schema.ts +15 -0
  336. package/models/webmaster-click.schema.ts +2 -2
  337. package/package.json +1 -1
  338. package/api/controllers/http/ai-proxy.ts +0 -5
  339. package/build/api/controllers/http/ai-proxy.js +0 -7
  340. package/build/commands/message/create-image-message.command.js +0 -25
  341. package/commands/message/create-image-message.command.ts +0 -30
@@ -0,0 +1,29 @@
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-all-community-posts-by-criteria.command"), exports);
18
+ __exportStar(require("./get-community-post-by-uuid.command"), exports);
19
+ __exportStar(require("./create-community-post.command"), exports);
20
+ __exportStar(require("./set-like-community-post.command"), exports);
21
+ __exportStar(require("./set-favorite-community-post.command"), exports);
22
+ __exportStar(require("./delete-community-post.command"), exports);
23
+ __exportStar(require("./archive-community-post.command"), exports);
24
+ __exportStar(require("./get-my-community-posts-by-criteria.command"), exports);
25
+ __exportStar(require("./share-my-community-post.command"), exports);
26
+ __exportStar(require("./get-my-likes-community-posts.command"), exports);
27
+ __exportStar(require("./get-my-favorite-community-posts.command"), exports);
28
+ __exportStar(require("./send-report-to-community-post.command"), exports);
29
+ __exportStar(require("./get-count-of-likes-on-my-posts.command"), exports);
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SendReportToCommunityPostCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const constants_1 = require("../../constants");
6
+ var SendReportToCommunityPostCommand;
7
+ (function (SendReportToCommunityPostCommand) {
8
+ SendReportToCommunityPostCommand.RequestSchema = zod_1.z.object({
9
+ uuid: zod_1.z.string().uuid(),
10
+ });
11
+ SendReportToCommunityPostCommand.RequestBodySchema = zod_1.z.object({
12
+ reason: zod_1.z.nativeEnum(constants_1.COMMUNITY_POST_REPORT_REASON),
13
+ });
14
+ SendReportToCommunityPostCommand.ResponseSchema = zod_1.z.void();
15
+ })(SendReportToCommunityPostCommand || (exports.SendReportToCommunityPostCommand = SendReportToCommunityPostCommand = {}));
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SetFavoriteCommunityPostCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ var SetFavoriteCommunityPostCommand;
6
+ (function (SetFavoriteCommunityPostCommand) {
7
+ SetFavoriteCommunityPostCommand.RequestParamsSchema = zod_1.z.object({
8
+ uuid: zod_1.z.string().uuid(),
9
+ });
10
+ SetFavoriteCommunityPostCommand.ResponseSchema = zod_1.z.object({
11
+ data: zod_1.z.boolean(),
12
+ });
13
+ })(SetFavoriteCommunityPostCommand || (exports.SetFavoriteCommunityPostCommand = SetFavoriteCommunityPostCommand = {}));
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SetLikeCommunityPostCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../models");
6
+ var SetLikeCommunityPostCommand;
7
+ (function (SetLikeCommunityPostCommand) {
8
+ SetLikeCommunityPostCommand.RequestParamsSchema = zod_1.z.object({
9
+ uuid: zod_1.z.string().uuid(),
10
+ });
11
+ SetLikeCommunityPostCommand.ResponseSchema = zod_1.z.object({
12
+ data: models_1.ResponseCommunityPostSchema,
13
+ });
14
+ })(SetLikeCommunityPostCommand || (exports.SetLikeCommunityPostCommand = SetLikeCommunityPostCommand = {}));
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ShareMyCommunityPostCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ var ShareMyCommunityPostCommand;
6
+ (function (ShareMyCommunityPostCommand) {
7
+ ShareMyCommunityPostCommand.RequestParamsSchema = zod_1.z.object({
8
+ uuid: zod_1.z.string().uuid(),
9
+ });
10
+ ShareMyCommunityPostCommand.ResponseSchema = zod_1.z.object({
11
+ data: zod_1.z.string().url(),
12
+ });
13
+ })(ShareMyCommunityPostCommand || (exports.ShareMyCommunityPostCommand = ShareMyCommunityPostCommand = {}));
@@ -14,6 +14,7 @@ var FindFolderByUuidWithChatsCommand;
14
14
  FindFolderByUuidWithChatsCommand.RequestSchema = zod_1.default.object({
15
15
  limit: zod_1.default.coerce.number().min(1),
16
16
  offset: zod_1.default.coerce.number().min(0).default(0),
17
+ title: zod_1.default.string().optional(),
17
18
  });
18
19
  FindFolderByUuidWithChatsCommand.ResponseSchema = zod_1.default.object({
19
20
  data: models_1.FolderSchema.extend({
@@ -11,6 +11,7 @@ var FindFoldersByUserCommand;
11
11
  FindFoldersByUserCommand.RequestSchema = zod_1.default.object({
12
12
  limit: zod_1.default.coerce.number().min(1),
13
13
  offset: zod_1.default.coerce.number().min(0).default(0),
14
+ title: zod_1.default.string().optional(),
14
15
  });
15
16
  FindFoldersByUserCommand.ResponseSchema = zod_1.default.object({
16
17
  data: zod_1.default.array(models_1.FolderSchema),
@@ -56,3 +56,5 @@ __exportStar(require("./cabinet"), exports);
56
56
  __exportStar(require("./webmaster"), exports);
57
57
  __exportStar(require("./webmaster-click"), exports);
58
58
  __exportStar(require("./b2b"), exports);
59
+ __exportStar(require("./community"), exports);
60
+ __exportStar(require("./user-profile"), exports);
@@ -14,7 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./create-image-message.command"), exports);
18
17
  __exportStar(require("./create-text-message.command"), exports);
19
18
  __exportStar(require("./find-message-by-uuid.command"), exports);
20
19
  __exportStar(require("./rate-message.command"), exports);
@@ -23,7 +23,7 @@ var CheckCommand;
23
23
  InvoiceId: zod_1.z.string().optional(),
24
24
  AccountId: zod_1.z.string(),
25
25
  // Data: CloudPaymentsDataSchema,
26
- Data: zod_1.z.string(),
26
+ Data: zod_1.z.string().optional(),
27
27
  })
28
28
  .transform((data) => ({
29
29
  transactionId: data.TransactionId,
@@ -19,3 +19,4 @@ __exportStar(require("./get-payment-history.command"), exports);
19
19
  __exportStar(require("./pay.command"), exports);
20
20
  __exportStar(require("./receipt.command"), exports);
21
21
  __exportStar(require("./recurrent.command"), exports);
22
+ __exportStar(require("./refund-payment.command"), exports);
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RefundPaymentCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ var RefundPaymentCommand;
6
+ (function (RefundPaymentCommand) {
7
+ RefundPaymentCommand.RequestSchema = zod_1.z.object({
8
+ uuid: zod_1.z.string().uuid(),
9
+ });
10
+ RefundPaymentCommand.ResponseSchema = zod_1.z.object({
11
+ data: zod_1.z.object({
12
+ isSuccess: zod_1.z.boolean(),
13
+ }),
14
+ });
15
+ })(RefundPaymentCommand || (exports.RefundPaymentCommand = RefundPaymentCommand = {}));
@@ -12,6 +12,6 @@ var CreateReviewCommand;
12
12
  rating: true,
13
13
  });
14
14
  CreateReviewCommand.ResponseSchema = zod_1.z.object({
15
- data: models_1.ReviewSchema,
15
+ data: models_1.ReviewSchema.omit({ status: true }),
16
16
  });
17
17
  })(CreateReviewCommand || (exports.CreateReviewCommand = CreateReviewCommand = {}));
@@ -0,0 +1,20 @@
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.FindAllReviewsCommand = void 0;
7
+ const zod_1 = __importDefault(require("zod"));
8
+ const models_1 = require("../../models");
9
+ var FindAllReviewsCommand;
10
+ (function (FindAllReviewsCommand) {
11
+ FindAllReviewsCommand.RequestSchema = zod_1.default.object({
12
+ limit: zod_1.default.string().transform((val) => parseInt(val, 10)),
13
+ offset: zod_1.default.string().transform((val) => parseInt(val, 10)),
14
+ });
15
+ FindAllReviewsCommand.ResponseSchema = zod_1.default.object({
16
+ data: zod_1.default.array(models_1.ReviewSchema),
17
+ totalPages: zod_1.default.number(),
18
+ page: zod_1.default.number(),
19
+ });
20
+ })(FindAllReviewsCommand || (exports.FindAllReviewsCommand = FindAllReviewsCommand = {}));
@@ -13,7 +13,7 @@ var FindReviewsCommand;
13
13
  offset: zod_1.default.string().transform((val) => parseInt(val, 10)),
14
14
  });
15
15
  FindReviewsCommand.ResponseSchema = zod_1.default.object({
16
- data: zod_1.default.array(models_1.ReviewSchema),
16
+ data: zod_1.default.array(models_1.ReviewSchema.omit({ status: true })),
17
17
  totalPages: zod_1.default.number(),
18
18
  page: zod_1.default.number(),
19
19
  });
@@ -0,0 +1,15 @@
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.GetReviewCountCommand = void 0;
7
+ const zod_1 = __importDefault(require("zod"));
8
+ var GetReviewCountCommand;
9
+ (function (GetReviewCountCommand) {
10
+ GetReviewCountCommand.ResponseSchema = zod_1.default.object({
11
+ data: zod_1.default.object({
12
+ count: zod_1.default.number(),
13
+ }),
14
+ });
15
+ })(GetReviewCountCommand || (exports.GetReviewCountCommand = GetReviewCountCommand = {}));
@@ -16,3 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./create-review.command"), exports);
18
18
  __exportStar(require("./find-reviews.command"), exports);
19
+ __exportStar(require("./get-review-count.command"), exports);
20
+ __exportStar(require("./find-all-reviews.command"), exports);
@@ -19,6 +19,6 @@ var CreateCustomSubscriptionPlanCommand;
19
19
  }),
20
20
  });
21
21
  CreateCustomSubscriptionPlanCommand.ResponseSchema = zod_1.z.object({
22
- data: models_1.SubscriptionSchema,
22
+ data: zod_1.z.array(models_1.SubscriptionSchema),
23
23
  });
24
24
  })(CreateCustomSubscriptionPlanCommand || (exports.CreateCustomSubscriptionPlanCommand = CreateCustomSubscriptionPlanCommand = {}));
@@ -8,6 +8,16 @@ var RetryImageEditorJobCommand;
8
8
  RetryImageEditorJobCommand.RequestParamsSchema = zod_1.z.object({
9
9
  uuid: zod_1.z.string().uuid(),
10
10
  });
11
+ RetryImageEditorJobCommand.RequestBodySchema = zod_1.z.object({
12
+ modelId: zod_1.z.string().uuid().optional(),
13
+ prompt: zod_1.z.string().optional(),
14
+ params: zod_1.z
15
+ .object({
16
+ attachedFiles: zod_1.z.array(models_1.AttachedToolFileSchema).default([]),
17
+ systemPromptId: zod_1.z.string().optional(),
18
+ })
19
+ .optional(),
20
+ });
11
21
  RetryImageEditorJobCommand.ResponseSchema = zod_1.z.object({
12
22
  data: models_1.ImageEditorJobSchema,
13
23
  });
@@ -6,8 +6,18 @@ const models_1 = require("../../../models");
6
6
  const constants_1 = require("../../../constants");
7
7
  var SetReactionToImageEditorJobCommand;
8
8
  (function (SetReactionToImageEditorJobCommand) {
9
- SetReactionToImageEditorJobCommand.RequestSchema = zod_1.z.object({
9
+ SetReactionToImageEditorJobCommand.RequestSchema = zod_1.z
10
+ .object({
10
11
  reaction: zod_1.z.nativeEnum(constants_1.USER_REACTION).nullable(),
12
+ dislikeReason: zod_1.z.string().nullable().default(null),
13
+ })
14
+ .refine((data) => {
15
+ if (data.reaction !== constants_1.USER_REACTION.DISLIKED && data.dislikeReason) {
16
+ return false;
17
+ }
18
+ return true;
19
+ }, {
20
+ message: 'Dislike reason is not allowed when reaction is not DISLIKED',
11
21
  });
12
22
  SetReactionToImageEditorJobCommand.RequestParamsSchema = zod_1.z.object({
13
23
  uuid: zod_1.z.string().uuid(),
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteAllImageGenerationJobsCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ var DeleteAllImageGenerationJobsCommand;
6
+ (function (DeleteAllImageGenerationJobsCommand) {
7
+ DeleteAllImageGenerationJobsCommand.ResponseSchema = zod_1.z.object({
8
+ data: zod_1.z.boolean(),
9
+ });
10
+ })(DeleteAllImageGenerationJobsCommand || (exports.DeleteAllImageGenerationJobsCommand = DeleteAllImageGenerationJobsCommand = {}));
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteImageGenerationJobByUUIDCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ var DeleteImageGenerationJobByUUIDCommand;
6
+ (function (DeleteImageGenerationJobByUUIDCommand) {
7
+ DeleteImageGenerationJobByUUIDCommand.RequestParamsSchema = zod_1.z.object({
8
+ uuid: zod_1.z.string().uuid(),
9
+ });
10
+ DeleteImageGenerationJobByUUIDCommand.ResponseSchema = zod_1.z.object({
11
+ data: zod_1.z.boolean(),
12
+ });
13
+ })(DeleteImageGenerationJobByUUIDCommand || (exports.DeleteImageGenerationJobByUUIDCommand = DeleteImageGenerationJobByUUIDCommand = {}));
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FindImageGenerationJobByUUIDCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../../models");
6
+ var FindImageGenerationJobByUUIDCommand;
7
+ (function (FindImageGenerationJobByUUIDCommand) {
8
+ FindImageGenerationJobByUUIDCommand.RequestParamsSchema = models_1.ToolJobSchema.pick({
9
+ uuid: true,
10
+ });
11
+ FindImageGenerationJobByUUIDCommand.ResponseSchema = zod_1.z.object({
12
+ data: models_1.ImageGenerationJobSchema,
13
+ });
14
+ })(FindImageGenerationJobByUUIDCommand || (exports.FindImageGenerationJobByUUIDCommand = FindImageGenerationJobByUUIDCommand = {}));
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FindImageGenerationJobsCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../../models");
6
+ var FindImageGenerationJobsCommand;
7
+ (function (FindImageGenerationJobsCommand) {
8
+ FindImageGenerationJobsCommand.RequestQuerySchema = zod_1.z.object({
9
+ limit: zod_1.z.coerce.number().min(1).optional(),
10
+ offset: zod_1.z.coerce.number().min(0).default(0).optional(),
11
+ title: zod_1.z.string().optional(),
12
+ });
13
+ FindImageGenerationJobsCommand.ResponseSchema = zod_1.z.object({
14
+ data: zod_1.z.array(models_1.ImageGenerationJobSchema),
15
+ totalPages: zod_1.z.number(),
16
+ page: zod_1.z.number(),
17
+ });
18
+ })(FindImageGenerationJobsCommand || (exports.FindImageGenerationJobsCommand = FindImageGenerationJobsCommand = {}));
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetImageGenerationConfigCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../../models");
6
+ var GetImageGenerationConfigCommand;
7
+ (function (GetImageGenerationConfigCommand) {
8
+ GetImageGenerationConfigCommand.ResponseSchema = zod_1.z.object({
9
+ data: models_1.ImageGenerationConfigSchema,
10
+ });
11
+ })(GetImageGenerationConfigCommand || (exports.GetImageGenerationConfigCommand = GetImageGenerationConfigCommand = {}));
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ImageGenerationCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../../models");
6
+ const constants_1 = require("../../../constants");
7
+ var ImageGenerationCommand;
8
+ (function (ImageGenerationCommand) {
9
+ ImageGenerationCommand.RequestSchema = zod_1.z.object({
10
+ modelId: zod_1.z.string().uuid(),
11
+ prompt: zod_1.z.string(),
12
+ params: zod_1.z.object({
13
+ aspectRatio: zod_1.z.string(),
14
+ attachedFiles: zod_1.z.string().array(),
15
+ enhancePrompt: zod_1.z.boolean(),
16
+ resolution: zod_1.z.nativeEnum(constants_1.IMAGE_GENERATION_RESOLUTION).optional(),
17
+ }),
18
+ presetId: zod_1.z.string().uuid().nullable().optional(),
19
+ });
20
+ ImageGenerationCommand.ResponseSchema = zod_1.z.object({
21
+ data: models_1.ToolJobSchema,
22
+ });
23
+ })(ImageGenerationCommand || (exports.ImageGenerationCommand = ImageGenerationCommand = {}));
@@ -0,0 +1,24 @@
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("./image-generation.command"), exports);
18
+ __exportStar(require("./find-image-generation-job-by-uuid.command"), exports);
19
+ __exportStar(require("./find-image-generation-jobs.command"), exports);
20
+ __exportStar(require("./set-reaction-to-image-generation-job.command"), exports);
21
+ __exportStar(require("./update-image-generation-job-title.command"), exports);
22
+ __exportStar(require("./delete-image-generation-job-by-uuid.command"), exports);
23
+ __exportStar(require("./delete-all-image-generation-jobs.command"), exports);
24
+ __exportStar(require("./get-image-generation-config.command"), exports);
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SetReactionToImageGenerationJobCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../../models");
6
+ const constants_1 = require("../../../constants");
7
+ var SetReactionToImageGenerationJobCommand;
8
+ (function (SetReactionToImageGenerationJobCommand) {
9
+ SetReactionToImageGenerationJobCommand.RequestSchema = zod_1.z
10
+ .object({
11
+ reaction: zod_1.z.nativeEnum(constants_1.USER_REACTION).nullable(),
12
+ dislikeReason: zod_1.z.string().nullable().default(null),
13
+ })
14
+ .refine((data) => {
15
+ if (data.reaction !== constants_1.USER_REACTION.DISLIKED && data.dislikeReason) {
16
+ return false;
17
+ }
18
+ return true;
19
+ }, {
20
+ message: 'Dislike reason is not allowed when reaction is not DISLIKED',
21
+ });
22
+ SetReactionToImageGenerationJobCommand.RequestParamsSchema = zod_1.z.object({
23
+ uuid: zod_1.z.string().uuid(),
24
+ });
25
+ SetReactionToImageGenerationJobCommand.ResponseSchema = zod_1.z.object({
26
+ data: models_1.ImageGenerationJobSchema,
27
+ });
28
+ })(SetReactionToImageGenerationJobCommand || (exports.SetReactionToImageGenerationJobCommand = SetReactionToImageGenerationJobCommand = {}));
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateImageGenerationJobTitleCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../../models");
6
+ var UpdateImageGenerationJobTitleCommand;
7
+ (function (UpdateImageGenerationJobTitleCommand) {
8
+ UpdateImageGenerationJobTitleCommand.RequestSchema = zod_1.z.object({
9
+ title: zod_1.z.string(),
10
+ });
11
+ UpdateImageGenerationJobTitleCommand.RequestParamsSchema = zod_1.z.object({
12
+ uuid: zod_1.z.string().uuid(),
13
+ });
14
+ UpdateImageGenerationJobTitleCommand.ResponseSchema = zod_1.z.object({
15
+ data: models_1.ImageGenerationJobSchema,
16
+ });
17
+ })(UpdateImageGenerationJobTitleCommand || (exports.UpdateImageGenerationJobTitleCommand = UpdateImageGenerationJobTitleCommand = {}));
@@ -24,3 +24,4 @@ __exportStar(require("./writer"), exports);
24
24
  __exportStar(require("./image-editor"), exports);
25
25
  __exportStar(require("./video-editor"), exports);
26
26
  __exportStar(require("./music"), exports);
27
+ __exportStar(require("./image-generation"), exports);
@@ -8,6 +8,10 @@ var RetryMusicJobCommand;
8
8
  RetryMusicJobCommand.RequestParamsSchema = zod_1.z.object({
9
9
  uuid: zod_1.z.string().uuid(),
10
10
  });
11
+ RetryMusicJobCommand.RequestBodySchema = zod_1.z.object({
12
+ modelId: zod_1.z.string().uuid().optional(),
13
+ params: models_1.MusicJobParamsSchema.optional(),
14
+ });
11
15
  RetryMusicJobCommand.ResponseSchema = zod_1.z.object({
12
16
  data: models_1.MusicJobSchema,
13
17
  });
@@ -6,8 +6,18 @@ const models_1 = require("../../../models");
6
6
  const constants_1 = require("../../../constants");
7
7
  var SetReactionToMusicJobCommand;
8
8
  (function (SetReactionToMusicJobCommand) {
9
- SetReactionToMusicJobCommand.RequestSchema = zod_1.z.object({
9
+ SetReactionToMusicJobCommand.RequestSchema = zod_1.z
10
+ .object({
10
11
  reaction: zod_1.z.nativeEnum(constants_1.USER_REACTION).nullable(),
12
+ dislikeReason: zod_1.z.string().nullable().default(null),
13
+ })
14
+ .refine((data) => {
15
+ if (data.reaction !== constants_1.USER_REACTION.DISLIKED && data.dislikeReason) {
16
+ return false;
17
+ }
18
+ return true;
19
+ }, {
20
+ message: 'Dislike reason is not allowed when reaction is not DISLIKED',
11
21
  });
12
22
  SetReactionToMusicJobCommand.RequestParamsSchema = zod_1.z.object({
13
23
  uuid: zod_1.z.string().uuid(),
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteAllParaphraseJobsCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ var DeleteAllParaphraseJobsCommand;
6
+ (function (DeleteAllParaphraseJobsCommand) {
7
+ DeleteAllParaphraseJobsCommand.ResponseSchema = zod_1.z.void();
8
+ })(DeleteAllParaphraseJobsCommand || (exports.DeleteAllParaphraseJobsCommand = DeleteAllParaphraseJobsCommand = {}));
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteParaphraseJobByUUIDCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ var DeleteParaphraseJobByUUIDCommand;
6
+ (function (DeleteParaphraseJobByUUIDCommand) {
7
+ DeleteParaphraseJobByUUIDCommand.RequestParamsSchema = zod_1.z.object({
8
+ uuid: zod_1.z.string().uuid(),
9
+ });
10
+ DeleteParaphraseJobByUUIDCommand.ResponseSchema = zod_1.z.void();
11
+ })(DeleteParaphraseJobByUUIDCommand || (exports.DeleteParaphraseJobByUUIDCommand = DeleteParaphraseJobByUUIDCommand = {}));
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FindParaphraseJobsCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../../models");
6
+ var FindParaphraseJobsCommand;
7
+ (function (FindParaphraseJobsCommand) {
8
+ FindParaphraseJobsCommand.RequestQuerySchema = zod_1.z.object({
9
+ limit: zod_1.z.coerce.number().min(1).optional(),
10
+ offset: zod_1.z.coerce.number().min(0).default(0).optional(),
11
+ title: zod_1.z.string().optional(),
12
+ });
13
+ FindParaphraseJobsCommand.ResponseSchema = zod_1.z.object({
14
+ data: zod_1.z.array(models_1.ParaphraseToolJobSchema),
15
+ totalPages: zod_1.z.number(),
16
+ page: zod_1.z.number(),
17
+ });
18
+ })(FindParaphraseJobsCommand || (exports.FindParaphraseJobsCommand = FindParaphraseJobsCommand = {}));
@@ -14,6 +14,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./paraphrase.command"), exports);
18
+ __exportStar(require("./delete-paraphrase-job-by-uuid.command"), exports);
19
+ __exportStar(require("./delete-all-paraphrase-jobs.command"), exports);
20
+ __exportStar(require("./set-reaction-to-paraphrase-job.command"), exports);
21
+ __exportStar(require("./update-paraphrase-job-title.command"), exports);
22
+ __exportStar(require("./retry-paraphrase-job.command"), exports);
17
23
  __exportStar(require("./find-paraphrase-job-by-uuid.command"), exports);
24
+ __exportStar(require("./find-paraphrase-jobs.command"), exports);
18
25
  __exportStar(require("./get-paraphrase-tool-config.command"), exports);
19
- __exportStar(require("./paraphrase.command"), exports);
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RetryParaphraseJobCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../../models");
6
+ var RetryParaphraseJobCommand;
7
+ (function (RetryParaphraseJobCommand) {
8
+ RetryParaphraseJobCommand.RequestParamsSchema = zod_1.z.object({
9
+ uuid: zod_1.z.string().uuid(),
10
+ });
11
+ RetryParaphraseJobCommand.ResponseSchema = zod_1.z.object({
12
+ data: models_1.ParaphraseToolJobSchema,
13
+ });
14
+ })(RetryParaphraseJobCommand || (exports.RetryParaphraseJobCommand = RetryParaphraseJobCommand = {}));
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SetReactionToParaphraseJobCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../../models");
6
+ const constants_1 = require("../../../constants");
7
+ var SetReactionToParaphraseJobCommand;
8
+ (function (SetReactionToParaphraseJobCommand) {
9
+ SetReactionToParaphraseJobCommand.RequestSchema = zod_1.z
10
+ .object({
11
+ reaction: zod_1.z.nativeEnum(constants_1.USER_REACTION).nullable(),
12
+ dislikeReason: zod_1.z.string().nullable().default(null),
13
+ })
14
+ .refine((data) => {
15
+ if (data.reaction !== constants_1.USER_REACTION.DISLIKED && data.dislikeReason) {
16
+ return false;
17
+ }
18
+ return true;
19
+ }, {
20
+ message: 'Dislike reason is not allowed when reaction is not DISLIKED',
21
+ });
22
+ SetReactionToParaphraseJobCommand.RequestParamsSchema = zod_1.z.object({
23
+ uuid: zod_1.z.string().uuid(),
24
+ });
25
+ SetReactionToParaphraseJobCommand.ResponseSchema = zod_1.z.object({
26
+ data: models_1.ParaphraseToolJobSchema,
27
+ });
28
+ })(SetReactionToParaphraseJobCommand || (exports.SetReactionToParaphraseJobCommand = SetReactionToParaphraseJobCommand = {}));
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateParaphraseJobTitleCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../../models");
6
+ var UpdateParaphraseJobTitleCommand;
7
+ (function (UpdateParaphraseJobTitleCommand) {
8
+ UpdateParaphraseJobTitleCommand.RequestSchema = zod_1.z.object({
9
+ title: zod_1.z.string().min(1).max(40).trim(),
10
+ });
11
+ UpdateParaphraseJobTitleCommand.RequestParamsSchema = zod_1.z.object({
12
+ uuid: zod_1.z.string().uuid(),
13
+ });
14
+ UpdateParaphraseJobTitleCommand.ResponseSchema = zod_1.z.object({
15
+ data: models_1.ParaphraseToolJobSchema,
16
+ });
17
+ })(UpdateParaphraseJobTitleCommand || (exports.UpdateParaphraseJobTitleCommand = UpdateParaphraseJobTitleCommand = {}));
@@ -36,3 +36,4 @@ __exportStar(require("./update-slide-outline.command"), exports);
36
36
  __exportStar(require("./presentation-paraphrase.command"), exports);
37
37
  __exportStar(require("./presentation-generate-report.command"), exports);
38
38
  __exportStar(require("./update-slide.command"), exports);
39
+ __exportStar(require("./set-reaction-to-presentation.command"), exports);