@purpleschool/gptbot 0.8.58 → 0.8.59

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 (333) hide show
  1. package/api/controllers/http/ai-model.ts +1 -0
  2. package/api/controllers/http/community.ts +25 -0
  3. package/api/controllers/http/image-generation.ts +14 -0
  4. package/api/controllers/http/index.ts +3 -0
  5. package/api/controllers/http/page.ts +1 -0
  6. package/api/controllers/http/paraphrase.ts +6 -0
  7. package/api/controllers/http/payment.ts +1 -0
  8. package/api/controllers/http/presentation.ts +1 -0
  9. package/api/controllers/http/product.ts +1 -1
  10. package/api/controllers/http/referral.ts +1 -1
  11. package/api/controllers/http/review.ts +1 -0
  12. package/api/controllers/http/subscription.ts +1 -1
  13. package/api/controllers/http/ui-notification.ts +2 -2
  14. package/api/controllers/http/user-profile.ts +8 -0
  15. package/api/controllers/http/user-to-subscription.ts +1 -0
  16. package/api/controllers/http/user.ts +2 -0
  17. package/api/routes.ts +140 -18
  18. package/build/api/controllers/http/ai-model.js +1 -0
  19. package/build/api/controllers/http/community.js +25 -0
  20. package/build/api/controllers/http/image-generation.js +16 -0
  21. package/build/api/controllers/http/index.js +3 -0
  22. package/build/api/controllers/http/page.js +1 -0
  23. package/build/api/controllers/http/paraphrase.js +6 -0
  24. package/build/api/controllers/http/payment.js +1 -0
  25. package/build/api/controllers/http/presentation.js +1 -0
  26. package/build/api/controllers/http/product.js +1 -1
  27. package/build/api/controllers/http/referral.js +1 -1
  28. package/build/api/controllers/http/review.js +1 -0
  29. package/build/api/controllers/http/subscription.js +1 -1
  30. package/build/api/controllers/http/ui-notification.js +2 -2
  31. package/build/api/controllers/http/user-profile.js +10 -0
  32. package/build/api/controllers/http/user-to-subscription.js +1 -0
  33. package/build/api/controllers/http/user.js +2 -0
  34. package/build/api/routes.js +100 -18
  35. package/build/commands/ai-model/find-formatted-ai-model-v2.command.js +23 -0
  36. package/build/commands/ai-model/find-model-pages.command.js +31 -0
  37. package/build/commands/ai-model/index.js +2 -0
  38. package/build/commands/community/archive-community-post.command.js +13 -0
  39. package/build/commands/community/create-community-post.command.js +34 -0
  40. package/build/commands/community/delete-community-post.command.js +13 -0
  41. package/build/commands/community/get-all-community-posts-by-criteria.command.js +25 -0
  42. package/build/commands/community/get-community-post-by-uuid.command.js +14 -0
  43. package/build/commands/community/get-count-of-likes-on-my-posts.command.js +10 -0
  44. package/build/commands/community/get-my-community-posts-by-criteria.command.js +32 -0
  45. package/build/commands/community/get-my-favorite-community-posts.command.js +19 -0
  46. package/build/commands/community/get-my-likes-community-posts.command.js +19 -0
  47. package/build/commands/community/index.js +29 -0
  48. package/build/commands/community/send-report-to-community-post.command.js +15 -0
  49. package/build/commands/community/set-favorite-community-post.command.js +13 -0
  50. package/build/commands/community/set-like-community-post.command.js +14 -0
  51. package/build/commands/community/share-my-community-post.command.js +13 -0
  52. package/build/commands/folder/find-folder-by-uuid-with-chats.command.js +1 -0
  53. package/build/commands/folder/find-folders-by-user.command.js +1 -0
  54. package/build/commands/index.js +2 -0
  55. package/build/commands/payment/check.command.js +1 -1
  56. package/build/commands/payment/index.js +1 -0
  57. package/build/commands/payment/refund-payment.command.js +15 -0
  58. package/build/commands/review/create-review.command.js +1 -1
  59. package/build/commands/review/find-all-reviews.command.js +20 -0
  60. package/build/commands/review/find-reviews.command.js +1 -1
  61. package/build/commands/review/get-review-count.command.js +15 -0
  62. package/build/commands/review/index.js +2 -0
  63. package/build/commands/subscription/create-custom-subscription-plan.command.js +1 -1
  64. package/build/commands/tools/image-editor/retry-image-editor-job.command.js +10 -0
  65. package/build/commands/tools/image-editor/set-reaction-to-image-editor-job.command.js +11 -1
  66. package/build/commands/tools/image-generation/delete-all-image-generation-jobs.command.js +10 -0
  67. package/build/commands/tools/image-generation/delete-image-generation-job-by-uuid.command.js +13 -0
  68. package/build/commands/tools/image-generation/find-image-generation-job-by-uuid.command.js +14 -0
  69. package/build/commands/tools/image-generation/find-image-generation-jobs.command.js +18 -0
  70. package/build/commands/tools/image-generation/get-image-generation-config.command.js +11 -0
  71. package/build/commands/tools/image-generation/image-generation.command.js +23 -0
  72. package/build/commands/tools/image-generation/index.js +24 -0
  73. package/build/commands/tools/image-generation/set-reaction-to-image-generation-job.command.js +28 -0
  74. package/build/commands/tools/image-generation/update-image-generation-job-title.command.js +17 -0
  75. package/build/commands/tools/index.js +1 -0
  76. package/build/commands/tools/music/retry-music-job.command.js +4 -0
  77. package/build/commands/tools/music/set-reaction-to-music-job.command.js +11 -1
  78. package/build/commands/tools/paraphrase/delete-all-paraphrase-jobs.command.js +8 -0
  79. package/build/commands/tools/paraphrase/delete-paraphrase-job-by-uuid.command.js +11 -0
  80. package/build/commands/tools/paraphrase/find-paraphrase-jobs.command.js +18 -0
  81. package/build/commands/tools/paraphrase/index.js +7 -1
  82. package/build/commands/tools/paraphrase/retry-paraphrase-job.command.js +14 -0
  83. package/build/commands/tools/paraphrase/set-reaction-to-paraphrase-job.command.js +28 -0
  84. package/build/commands/tools/paraphrase/update-paraphrase-job-title.command.js +17 -0
  85. package/build/commands/tools/presentation/index.js +1 -0
  86. package/build/commands/tools/presentation/set-reaction-to-presentation.command.js +28 -0
  87. package/build/commands/tools/stt/set-reaction-to-stt-job.command.js +11 -1
  88. package/build/commands/tools/tts/set-reaction-to-tts-job.command.js +11 -1
  89. package/build/commands/tools/video/retry-video-job.command.js +5 -0
  90. package/build/commands/tools/video/set-reaction-to-video-job.command.js +11 -1
  91. package/build/commands/tools/video-editor/retry-video-editor-job.command.js +5 -0
  92. package/build/commands/tools/video-editor/set-reaction-to-video-editor-job.command.js +11 -1
  93. package/build/commands/tools/writer/set-reaction.writer-document.command.js +11 -1
  94. package/build/commands/user/cancel-user-subscription.command.js +21 -0
  95. package/build/commands/user/find-users-by-criteria.command.js +1 -1
  96. package/build/commands/user/get-me.command.js +2 -0
  97. package/build/commands/user/get-user-payments.command.js +26 -0
  98. package/build/commands/user/get-user-products.command.js +1 -1
  99. package/build/commands/user/get-user-subscriptions.command.js +1 -1
  100. package/build/commands/user/index.js +2 -0
  101. package/build/commands/user-profile/delete-avatar.command.js +12 -0
  102. package/build/commands/user-profile/get-user-profile-by-user-id.command.js +14 -0
  103. package/build/commands/user-profile/index.js +20 -0
  104. package/build/commands/user-profile/update-profile.command.js +14 -0
  105. package/build/commands/user-profile/upload-avatar.command.js +11 -0
  106. package/build/commands/user-to-subscription/delete-user-to-subscription.command.js +16 -0
  107. package/build/commands/user-to-subscription/index.js +1 -0
  108. package/build/commands/webmaster-click/get-webmaster-clicks-overview.command.js +3 -6
  109. package/build/constants/cloud-payments/index.js +2 -1
  110. package/build/constants/community/community-post-report/enums/community-post-report-reason.enum.js +18 -0
  111. package/build/constants/community/community-post-report/enums/index.js +17 -0
  112. package/build/constants/community/community-post-report/index.js +17 -0
  113. package/build/constants/community/default-pagination.constant.js +6 -0
  114. package/build/constants/community/enums/community-aspect-ratio.enum.js +11 -0
  115. package/build/constants/community/enums/community-post-visibility.enum.js +8 -0
  116. package/build/constants/community/enums/community-status.enum.js +11 -0
  117. package/build/constants/community/enums/community-tool-type.enum.js +10 -0
  118. package/build/constants/community/enums/community-type.enum.js +11 -0
  119. package/build/constants/community/enums/index.js +21 -0
  120. package/build/constants/community/index.js +19 -0
  121. package/build/constants/errors/errors.js +275 -14
  122. package/build/constants/index.js +4 -0
  123. package/build/constants/model/enums/index.js +17 -0
  124. package/build/constants/model/enums/unified-model-content-type.enum.js +21 -0
  125. package/build/constants/model/index.js +17 -0
  126. package/build/constants/page/enums/page-type.enum.js +1 -0
  127. package/build/constants/payment/enums/index.js +1 -0
  128. package/build/constants/payment/enums/payment-sort-by.enum.js +10 -0
  129. package/build/constants/payment/enums/payment-status.enum.js +1 -0
  130. package/build/constants/presentation/enums/slide-content-type.enum.js +1 -0
  131. package/build/constants/presentation/maps/slide-layout-map.constant.js +1 -0
  132. package/build/constants/subscription/enums/subscription-feature-type.enum.js +6 -0
  133. package/build/constants/subscription/enums/subscription-status.enum.js +2 -2
  134. package/build/constants/tool/enums/index.js +1 -0
  135. package/build/constants/tool/enums/tool-content-type.enum.js +17 -0
  136. package/build/constants/tool/enums/tool-job-status.enum.js +1 -0
  137. package/build/constants/tool-image-generation/enums/image-generation-resolution.enum.js +9 -0
  138. package/build/constants/tool-image-generation/enums/index.js +17 -0
  139. package/build/constants/tool-image-generation/index.js +17 -0
  140. package/build/constants/tool-video/enums/video-pricing-rule-type.enum.js +1 -0
  141. package/build/constants/user-profile/index.js +17 -0
  142. package/build/constants/user-profile/user-profile.constant.js +10 -0
  143. package/build/helpers/image-editor/calculate-image-editor-price.helper.js +13 -0
  144. package/build/helpers/image-editor/index.js +17 -0
  145. package/build/helpers/image-generation/calculate-image-generation-price.helper.js +16 -0
  146. package/build/helpers/image-generation/index.js +17 -0
  147. package/build/helpers/index.js +2 -0
  148. package/build/helpers/video/calculate-video-price.helper.js +5 -1
  149. package/build/models/community/community-post-media-data.schema.js +53 -0
  150. package/build/models/community/community-post-report/community-post-report.schema.js +13 -0
  151. package/build/models/community/community-post-report/index.js +17 -0
  152. package/build/models/community/community-post.schema.js +44 -0
  153. package/build/models/community/index.js +19 -0
  154. package/build/models/index.js +2 -0
  155. package/build/models/order.schema.js +1 -0
  156. package/build/models/page.schema.js +2 -1
  157. package/build/models/payment.schema.js +5 -2
  158. package/build/models/review.schema.js +2 -0
  159. package/build/models/subscription-feature.schema.js +27 -1
  160. package/build/models/tool.schema.js +3 -0
  161. package/build/models/tools/common/attached-tool-file.schema.js +13 -0
  162. package/build/models/tools/common/index.js +17 -0
  163. package/build/models/tools/image-editor/image-editor-config.schema.js +1 -0
  164. package/build/models/tools/image-editor/image-editor-job.schema.js +11 -2
  165. package/build/models/tools/image-editor/image-editor-model.schema.js +9 -1
  166. package/build/models/tools/image-generation/image-generation-config.schema.js +23 -0
  167. package/build/models/tools/image-generation/image-generation-job.schema.js +35 -0
  168. package/build/models/tools/image-generation/image-generation-model.schema.js +41 -0
  169. package/build/models/tools/image-generation/index.js +19 -0
  170. package/build/models/tools/index.js +2 -0
  171. package/build/models/tools/music/music-track.schema.js +1 -0
  172. package/build/models/tools/paraphrase/paraphrase-job.schema.js +5 -0
  173. package/build/models/tools/presentation/pptx-export-payload.schema.js +34 -1
  174. package/build/models/tools/presentation/slide-content-edit.schema.js +18 -1
  175. package/build/models/tools/presentation/slide-content.schema.js +26 -1
  176. package/build/models/tools/stt/stt-job.schema.js +1 -0
  177. package/build/models/tools/tts/tts-job.schema.js +1 -0
  178. package/build/models/tools/video/video-job.schema.js +2 -0
  179. package/build/models/tools/video/video-model.schema.js +8 -1
  180. package/build/models/tools/video-editor/video-editor-job.schema.js +1 -0
  181. package/build/models/tools/writer/writer-document-outline.schema.js +1 -2
  182. package/build/models/user-profile.schema.js +16 -0
  183. package/build/models/webmaster-click.schema.js +2 -2
  184. package/commands/ai-model/find-formatted-ai-model-v2.command.ts +23 -0
  185. package/commands/ai-model/find-model-pages.command.ts +34 -0
  186. package/commands/ai-model/index.ts +2 -0
  187. package/commands/community/archive-community-post.command.ts +13 -0
  188. package/commands/community/create-community-post.command.ts +40 -0
  189. package/commands/community/delete-community-post.command.ts +13 -0
  190. package/commands/community/get-all-community-posts-by-criteria.command.ts +29 -0
  191. package/commands/community/get-community-post-by-uuid.command.ts +16 -0
  192. package/commands/community/get-count-of-likes-on-my-posts.command.ts +9 -0
  193. package/commands/community/get-my-community-posts-by-criteria.command.ts +40 -0
  194. package/commands/community/get-my-favorite-community-posts.command.ts +19 -0
  195. package/commands/community/get-my-likes-community-posts.command.ts +19 -0
  196. package/commands/community/index.ts +13 -0
  197. package/commands/community/send-report-to-community-post.command.ts +17 -0
  198. package/commands/community/set-favorite-community-post.command.ts +13 -0
  199. package/commands/community/set-like-community-post.command.ts +14 -0
  200. package/commands/community/share-my-community-post.command.ts +13 -0
  201. package/commands/folder/find-folder-by-uuid-with-chats.command.ts +1 -0
  202. package/commands/folder/find-folders-by-user.command.ts +1 -0
  203. package/commands/index.ts +2 -0
  204. package/commands/payment/check.command.ts +1 -1
  205. package/commands/payment/index.ts +1 -0
  206. package/commands/payment/refund-payment.command.ts +17 -0
  207. package/commands/review/create-review.command.ts +1 -1
  208. package/commands/review/find-all-reviews.command.ts +19 -0
  209. package/commands/review/find-reviews.command.ts +1 -1
  210. package/commands/review/get-review-count.command.ts +13 -0
  211. package/commands/review/index.ts +2 -0
  212. package/commands/subscription/create-custom-subscription-plan.command.ts +1 -1
  213. package/commands/tools/image-editor/retry-image-editor-job.command.ts +13 -1
  214. package/commands/tools/image-editor/set-reaction-to-image-editor-job.command.ts +16 -3
  215. package/commands/tools/image-generation/delete-all-image-generation-jobs.command.ts +8 -0
  216. package/commands/tools/image-generation/delete-image-generation-job-by-uuid.command.ts +13 -0
  217. package/commands/tools/image-generation/find-image-generation-job-by-uuid.command.ts +16 -0
  218. package/commands/tools/image-generation/find-image-generation-jobs.command.ts +18 -0
  219. package/commands/tools/image-generation/get-image-generation-config.command.ts +9 -0
  220. package/commands/tools/image-generation/image-generation.command.ts +25 -0
  221. package/commands/tools/image-generation/index.ts +8 -0
  222. package/commands/tools/image-generation/set-reaction-to-image-generation-job.command.ts +33 -0
  223. package/commands/tools/image-generation/update-image-generation-job-title.command.ts +19 -0
  224. package/commands/tools/index.ts +1 -0
  225. package/commands/tools/music/retry-music-job.command.ts +7 -1
  226. package/commands/tools/music/set-reaction-to-music-job.command.ts +16 -3
  227. package/commands/tools/paraphrase/delete-all-paraphrase-jobs.command.ts +6 -0
  228. package/commands/tools/paraphrase/delete-paraphrase-job-by-uuid.command.ts +11 -0
  229. package/commands/tools/paraphrase/find-paraphrase-jobs.command.ts +18 -0
  230. package/commands/tools/paraphrase/index.ts +7 -1
  231. package/commands/tools/paraphrase/retry-paraphrase-job.command.ts +14 -0
  232. package/commands/tools/paraphrase/set-reaction-to-paraphrase-job.command.ts +33 -0
  233. package/commands/tools/paraphrase/update-paraphrase-job-title.command.ts +19 -0
  234. package/commands/tools/presentation/index.ts +1 -0
  235. package/commands/tools/presentation/set-reaction-to-presentation.command.ts +33 -0
  236. package/commands/tools/stt/set-reaction-to-stt-job.command.ts +16 -3
  237. package/commands/tools/tts/set-reaction-to-tts-job.command.ts +16 -3
  238. package/commands/tools/video/retry-video-job.command.ts +8 -1
  239. package/commands/tools/video/set-reaction-to-video-job.command.ts +16 -3
  240. package/commands/tools/video-editor/retry-video-editor-job.command.ts +7 -0
  241. package/commands/tools/video-editor/set-reaction-to-video-editor-job.command.ts +16 -3
  242. package/commands/tools/writer/set-reaction.writer-document.command.ts +16 -3
  243. package/commands/user/cancel-user-subscription.command.ts +21 -0
  244. package/commands/user/find-users-by-criteria.command.ts +1 -1
  245. package/commands/user/get-me.command.ts +2 -0
  246. package/commands/user/get-user-payments.command.ts +27 -0
  247. package/commands/user/get-user-products.command.ts +2 -2
  248. package/commands/user/get-user-subscriptions.command.ts +2 -2
  249. package/commands/user/index.ts +2 -0
  250. package/commands/user-profile/delete-avatar.command.ts +14 -0
  251. package/commands/user-profile/get-user-profile-by-user-id.command.ts +16 -0
  252. package/commands/user-profile/index.ts +4 -0
  253. package/commands/user-profile/update-profile.command.ts +16 -0
  254. package/commands/user-profile/upload-avatar.command.ts +10 -0
  255. package/commands/user-to-subscription/delete-user-to-subscription.command.ts +18 -0
  256. package/commands/user-to-subscription/index.ts +1 -0
  257. package/commands/webmaster-click/get-webmaster-clicks-overview.command.ts +3 -8
  258. package/constants/cloud-payments/index.ts +2 -0
  259. package/constants/community/community-post-report/enums/community-post-report-reason.enum.ts +14 -0
  260. package/constants/community/community-post-report/enums/index.ts +1 -0
  261. package/constants/community/community-post-report/index.ts +1 -0
  262. package/constants/community/default-pagination.constant.ts +4 -0
  263. package/constants/community/enums/community-aspect-ratio.enum.ts +7 -0
  264. package/constants/community/enums/community-post-visibility.enum.ts +4 -0
  265. package/constants/community/enums/community-status.enum.ts +7 -0
  266. package/constants/community/enums/community-tool-type.enum.ts +6 -0
  267. package/constants/community/enums/community-type.enum.ts +7 -0
  268. package/constants/community/enums/index.ts +5 -0
  269. package/constants/community/index.ts +3 -0
  270. package/constants/errors/errors.ts +276 -14
  271. package/constants/index.ts +4 -0
  272. package/constants/model/enums/index.ts +1 -0
  273. package/constants/model/enums/unified-model-content-type.enum.ts +17 -0
  274. package/constants/model/index.ts +1 -0
  275. package/constants/page/enums/page-type.enum.ts +1 -0
  276. package/constants/payment/enums/index.ts +1 -0
  277. package/constants/payment/enums/payment-sort-by.enum.ts +6 -0
  278. package/constants/payment/enums/payment-status.enum.ts +1 -0
  279. package/constants/presentation/enums/slide-content-type.enum.ts +1 -0
  280. package/constants/presentation/maps/slide-layout-map.constant.ts +1 -0
  281. package/constants/subscription/enums/subscription-feature-type.enum.ts +6 -0
  282. package/constants/subscription/enums/subscription-status.enum.ts +2 -2
  283. package/constants/tool/enums/index.ts +1 -0
  284. package/constants/tool/enums/tool-content-type.enum.ts +13 -0
  285. package/constants/tool/enums/tool-job-status.enum.ts +1 -0
  286. package/constants/tool-image-generation/enums/image-generation-resolution.enum.ts +5 -0
  287. package/constants/tool-image-generation/enums/index.ts +1 -0
  288. package/constants/tool-image-generation/index.ts +1 -0
  289. package/constants/tool-video/enums/video-pricing-rule-type.enum.ts +1 -0
  290. package/constants/user-profile/index.ts +1 -0
  291. package/constants/user-profile/user-profile.constant.ts +14 -0
  292. package/helpers/image-editor/calculate-image-editor-price.helper.ts +23 -0
  293. package/helpers/image-editor/index.ts +1 -0
  294. package/helpers/image-generation/calculate-image-generation-price.helper.ts +29 -0
  295. package/helpers/image-generation/index.ts +1 -0
  296. package/helpers/index.ts +2 -0
  297. package/helpers/video/calculate-video-price.helper.ts +7 -1
  298. package/models/community/community-post-media-data.schema.ts +65 -0
  299. package/models/community/community-post-report/community-post-report.schema.ts +11 -0
  300. package/models/community/community-post-report/index.ts +1 -0
  301. package/models/community/community-post.schema.ts +48 -0
  302. package/models/community/index.ts +3 -0
  303. package/models/index.ts +2 -0
  304. package/models/order.schema.ts +1 -0
  305. package/models/page.schema.ts +2 -1
  306. package/models/payment.schema.ts +5 -1
  307. package/models/review.schema.ts +2 -0
  308. package/models/subscription-feature.schema.ts +34 -0
  309. package/models/tool.schema.ts +3 -0
  310. package/models/tools/common/attached-tool-file.schema.ts +13 -0
  311. package/models/tools/common/index.ts +1 -0
  312. package/models/tools/image-editor/image-editor-config.schema.ts +1 -0
  313. package/models/tools/image-editor/image-editor-job.schema.ts +13 -2
  314. package/models/tools/image-editor/image-editor-model.schema.ts +16 -0
  315. package/models/tools/image-generation/image-generation-config.schema.ts +29 -0
  316. package/models/tools/image-generation/image-generation-job.schema.ts +42 -0
  317. package/models/tools/image-generation/image-generation-model.schema.ts +52 -0
  318. package/models/tools/image-generation/index.ts +3 -0
  319. package/models/tools/index.ts +2 -0
  320. package/models/tools/music/music-track.schema.ts +1 -0
  321. package/models/tools/paraphrase/paraphrase-job.schema.ts +5 -0
  322. package/models/tools/presentation/pptx-export-payload.schema.ts +34 -0
  323. package/models/tools/presentation/slide-content-edit.schema.ts +21 -0
  324. package/models/tools/presentation/slide-content.schema.ts +45 -0
  325. package/models/tools/stt/stt-job.schema.ts +1 -0
  326. package/models/tools/tts/tts-job.schema.ts +1 -0
  327. package/models/tools/video/video-job.schema.ts +2 -0
  328. package/models/tools/video/video-model.schema.ts +8 -1
  329. package/models/tools/video-editor/video-editor-job.schema.ts +1 -0
  330. package/models/tools/writer/writer-document-outline.schema.ts +1 -2
  331. package/models/user-profile.schema.ts +15 -0
  332. package/models/webmaster-click.schema.ts +2 -2
  333. package/package.json +1 -1
@@ -10,6 +10,7 @@ export const STTJobSchema = ToolJobSchema.extend({
10
10
  fileUrl: z.string(),
11
11
  fileId: z.string(),
12
12
  fileKey: z.string(),
13
+ duration: z.string(),
13
14
  aiResponse: STTResponseSchema.nullable(),
14
15
  });
15
16
 
@@ -15,6 +15,7 @@ export const TTSJobSchema = ToolJobSchema.extend({
15
15
  title: z.string(),
16
16
  reaction: z.nativeEnum(USER_REACTION).nullable(),
17
17
  aiResponse: z.string().nullable(),
18
+ duration: z.string(),
18
19
  params: TTSJobParamsSchema,
19
20
  modelId: z.string(),
20
21
  voiceId: z.string(),
@@ -6,6 +6,8 @@ export const VideoJobParamsSchema = z.object({
6
6
  imageUrls: z.string().array().optional(),
7
7
  duration: z.number().optional(),
8
8
  aspectRatio: z.string().optional(),
9
+ imageIds: z.array(z.string()).optional(),
10
+ resolution: z.string().optional(),
9
11
  });
10
12
 
11
13
  export type VideoJobParams = z.infer<typeof VideoJobParamsSchema>;
@@ -18,6 +18,11 @@ export const VideoModelParamsSchema = z.object({
18
18
  })
19
19
  .optional(),
20
20
  quality: z.string().optional(),
21
+ resolution: z
22
+ .object({
23
+ options: z.array(z.string()),
24
+ })
25
+ .optional(),
21
26
  });
22
27
 
23
28
  export const VideoGenerationRequestParamsSchema = z.object({
@@ -25,11 +30,13 @@ export const VideoGenerationRequestParamsSchema = z.object({
25
30
  duration: z.number(),
26
31
  aspectRatio: z.string().optional(),
27
32
  quality: z.string().optional(),
33
+ resolution: z.string().optional(),
28
34
  });
29
35
  export type VideoGenerationRequestParams = z.infer<typeof VideoGenerationRequestParamsSchema>;
30
36
 
31
37
  export const VideoModelPricingRuleConditionSchema = z.object({
32
- aspectRatio: z.string(),
38
+ aspectRatio: z.string().optional(),
39
+ resolution: z.string().optional(),
33
40
  });
34
41
  export type VideoModelPricingRuleCondition = z.infer<typeof VideoModelPricingRuleConditionSchema>;
35
42
 
@@ -6,6 +6,7 @@ export const VideoEditorJobSchema = ToolJobSchema.extend({
6
6
  title: z.string(),
7
7
  prompt: z.string(),
8
8
  reaction: z.nativeEnum(USER_REACTION).nullable(),
9
+ inputVideoId: z.string().nullable(),
9
10
  inputVideoUrl: z.string(),
10
11
  outputVideoUrl: z.string().nullable(),
11
12
  modelId: z.string(),
@@ -5,7 +5,6 @@ export const WriterDocumentOutlineSubsectionSchema = z.object({
5
5
  title: z
6
6
  .string()
7
7
  .min(3)
8
- .max(120)
9
8
  .describe(
10
9
  `Concise title of the subsection. Meant to elaborate on its parent section's title.`,
11
10
  ),
@@ -13,7 +12,7 @@ export const WriterDocumentOutlineSubsectionSchema = z.object({
13
12
  export type WriterDocumentOutlineSubsection = z.infer<typeof WriterDocumentOutlineSubsectionSchema>;
14
13
 
15
14
  export const WriterDocumentOutlineSectionSchema = z.object({
16
- title: z.string().min(3).max(120).describe(`Concise title of the paper section.`),
15
+ title: z.string().min(3).describe(`Concise title of the paper section.`),
17
16
  type: z.nativeEnum(WRITER_DOCUMENT_SECTION_TYPE),
18
17
  subsections: z
19
18
  .array(WriterDocumentOutlineSubsectionSchema)
@@ -0,0 +1,15 @@
1
+ import { z } from 'zod';
2
+
3
+ export const UserProfileSchema = z.object({
4
+ userId: z.string().uuid(),
5
+ name: z.string().nullable(),
6
+ avatarUrl: z.string().url().nullable(),
7
+ avatarKey: z.string().nullable(),
8
+ createdAt: z.date(),
9
+ updatedAt: z.date(),
10
+ });
11
+
12
+ export const UserProfileResponseSchema = UserProfileSchema.omit({
13
+ createdAt: true,
14
+ updatedAt: true,
15
+ });
@@ -2,9 +2,9 @@ import z from 'zod';
2
2
 
3
3
  export const WebmasterClickSchema = z.object({
4
4
  uuid: z.string().uuid(),
5
- aliasUsed: z.string(),
6
5
  webmasterId: z.string().uuid(),
7
- unregisteredUserId: z.string().uuid().nullable(),
6
+ counter: z.number(),
7
+ day: z.date().nullable(),
8
8
 
9
9
  createdAt: z.date(),
10
10
  updatedAt: z.date(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot",
3
- "version": "0.8.58",
3
+ "version": "0.8.59",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",