@purpleschool/gptbot 0.8.56 → 0.8.58

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 (352) hide show
  1. package/api/controllers/http/ai-model.ts +0 -1
  2. package/api/controllers/http/ai-proxy.ts +5 -0
  3. package/api/controllers/http/b2b.ts +10 -0
  4. package/api/controllers/http/index.ts +2 -4
  5. package/api/controllers/http/page.ts +0 -1
  6. package/api/controllers/http/paraphrase.ts +0 -6
  7. package/api/controllers/http/payment.ts +0 -1
  8. package/api/controllers/http/presentation.ts +0 -1
  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 +0 -1
  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-to-subscription.ts +0 -1
  15. package/api/controllers/http/user.ts +0 -2
  16. package/api/routes.ts +27 -141
  17. package/build/api/controllers/http/ai-model.js +0 -1
  18. package/build/api/controllers/http/ai-proxy.js +7 -0
  19. package/build/api/controllers/http/b2b.js +12 -0
  20. package/build/api/controllers/http/index.js +2 -4
  21. package/build/api/controllers/http/page.js +0 -1
  22. package/build/api/controllers/http/paraphrase.js +0 -6
  23. package/build/api/controllers/http/payment.js +0 -1
  24. package/build/api/controllers/http/presentation.js +0 -1
  25. package/build/api/controllers/http/product.js +1 -1
  26. package/build/api/controllers/http/referral.js +1 -1
  27. package/build/api/controllers/http/review.js +0 -1
  28. package/build/api/controllers/http/subscription.js +1 -1
  29. package/build/api/controllers/http/ui-notification.js +2 -2
  30. package/build/api/controllers/http/user-to-subscription.js +0 -1
  31. package/build/api/controllers/http/user.js +0 -2
  32. package/build/api/routes.js +27 -101
  33. package/build/commands/ai-model/index.js +0 -2
  34. package/build/commands/b2b/get-api-key.command.js +12 -0
  35. package/build/{constants/community/community-post-report/enums → commands/b2b}/index.js +5 -1
  36. package/build/commands/b2b/refresh-api-key.command.js +12 -0
  37. package/build/commands/b2b/send-image-request.command.js +24 -0
  38. package/build/commands/b2b/send-text-request.command.js +22 -0
  39. package/build/commands/b2b/submit-balance-top-up-form.command.js +21 -0
  40. package/build/commands/folder/find-folder-by-uuid-with-chats.command.js +0 -1
  41. package/build/commands/folder/find-folders-by-user.command.js +0 -1
  42. package/build/commands/index.js +1 -2
  43. package/build/commands/payment/check.command.js +1 -1
  44. package/build/commands/payment/index.js +0 -1
  45. package/build/commands/review/create-review.command.js +1 -1
  46. package/build/commands/review/find-reviews.command.js +1 -1
  47. package/build/commands/review/index.js +0 -2
  48. package/build/commands/subscription/create-custom-subscription-plan.command.js +1 -1
  49. package/build/commands/tools/image-editor/retry-image-editor-job.command.js +0 -10
  50. package/build/commands/tools/image-editor/set-reaction-to-image-editor-job.command.js +1 -11
  51. package/build/commands/tools/index.js +0 -1
  52. package/build/commands/tools/music/retry-music-job.command.js +0 -4
  53. package/build/commands/tools/music/set-reaction-to-music-job.command.js +1 -11
  54. package/build/commands/tools/paraphrase/index.js +1 -7
  55. package/build/commands/tools/presentation/index.js +0 -1
  56. package/build/commands/tools/stt/set-reaction-to-stt-job.command.js +1 -11
  57. package/build/commands/tools/tts/set-reaction-to-tts-job.command.js +1 -11
  58. package/build/commands/tools/video/retry-video-job.command.js +0 -5
  59. package/build/commands/tools/video/set-reaction-to-video-job.command.js +1 -11
  60. package/build/commands/tools/video-editor/retry-video-editor-job.command.js +0 -5
  61. package/build/commands/tools/video-editor/set-reaction-to-video-editor-job.command.js +1 -11
  62. package/build/commands/tools/writer/set-reaction.writer-document.command.js +1 -11
  63. package/build/commands/user/find-users-by-criteria.command.js +1 -1
  64. package/build/commands/user/get-me.command.js +0 -2
  65. package/build/commands/user/get-user-products.command.js +1 -1
  66. package/build/commands/user/get-user-subscriptions.command.js +1 -1
  67. package/build/commands/user/index.js +0 -2
  68. package/build/commands/user-to-subscription/index.js +0 -1
  69. package/build/commands/webmaster-click/get-webmaster-clicks-overview.command.js +6 -3
  70. package/build/constants/cloud-payments/index.js +1 -2
  71. package/build/constants/errors/errors.js +21 -257
  72. package/build/constants/form-submission/enums/form-type.enum.js +1 -0
  73. package/build/constants/index.js +0 -4
  74. package/build/constants/page/enums/page-type.enum.js +0 -1
  75. package/build/constants/payment/enums/index.js +0 -1
  76. package/build/constants/payment/enums/payment-status.enum.js +0 -1
  77. package/build/constants/presentation/enums/slide-content-type.enum.js +0 -1
  78. package/build/constants/presentation/maps/slide-layout-map.constant.js +0 -1
  79. package/build/constants/subscription/enums/subscription-feature-type.enum.js +0 -6
  80. package/build/constants/subscription/enums/subscription-status.enum.js +2 -2
  81. package/build/constants/tool/enums/index.js +0 -1
  82. package/build/constants/tool/enums/tool-job-status.enum.js +0 -1
  83. package/build/constants/tool-video/enums/video-pricing-rule-type.enum.js +0 -1
  84. package/build/helpers/index.js +0 -2
  85. package/build/helpers/video/calculate-video-price.helper.js +1 -5
  86. package/build/models/api-key.schema.js +15 -0
  87. package/build/models/index.js +1 -2
  88. package/build/models/order.schema.js +0 -1
  89. package/build/models/page.schema.js +1 -2
  90. package/build/models/payment.schema.js +2 -5
  91. package/build/models/review.schema.js +0 -2
  92. package/build/models/subscription-feature.schema.js +1 -27
  93. package/build/models/tool.schema.js +0 -3
  94. package/build/models/tools/image-editor/image-editor-config.schema.js +0 -1
  95. package/build/models/tools/image-editor/image-editor-job.schema.js +2 -11
  96. package/build/models/tools/image-editor/image-editor-model.schema.js +1 -9
  97. package/build/models/tools/index.js +0 -2
  98. package/build/models/tools/music/music-track.schema.js +0 -1
  99. package/build/models/tools/paraphrase/paraphrase-job.schema.js +0 -5
  100. package/build/models/tools/presentation/pptx-export-payload.schema.js +1 -34
  101. package/build/models/tools/presentation/slide-content-edit.schema.js +1 -18
  102. package/build/models/tools/presentation/slide-content.schema.js +1 -26
  103. package/build/models/tools/stt/stt-job.schema.js +0 -1
  104. package/build/models/tools/tts/tts-job.schema.js +0 -1
  105. package/build/models/tools/video/video-job.schema.js +0 -2
  106. package/build/models/tools/video/video-model.schema.js +1 -8
  107. package/build/models/tools/video-editor/video-editor-job.schema.js +0 -1
  108. package/build/models/tools/writer/writer-document-outline.schema.js +2 -1
  109. package/build/models/webmaster-click.schema.js +2 -2
  110. package/commands/ai-model/index.ts +0 -2
  111. package/commands/{community/get-count-of-likes-on-my-posts.command.ts → b2b/get-api-key.command.ts} +4 -2
  112. package/commands/b2b/index.ts +5 -0
  113. package/commands/{tools/image-generation/delete-all-image-generation-jobs.command.ts → b2b/refresh-api-key.command.ts} +5 -2
  114. package/commands/b2b/send-image-request.command.ts +28 -0
  115. package/commands/b2b/send-text-request.command.ts +26 -0
  116. package/commands/b2b/submit-balance-top-up-form.command.ts +22 -0
  117. package/commands/folder/find-folder-by-uuid-with-chats.command.ts +0 -1
  118. package/commands/folder/find-folders-by-user.command.ts +0 -1
  119. package/commands/index.ts +1 -2
  120. package/commands/payment/check.command.ts +1 -1
  121. package/commands/payment/index.ts +0 -1
  122. package/commands/review/create-review.command.ts +1 -1
  123. package/commands/review/find-reviews.command.ts +1 -1
  124. package/commands/review/index.ts +0 -2
  125. package/commands/subscription/create-custom-subscription-plan.command.ts +1 -1
  126. package/commands/tools/image-editor/retry-image-editor-job.command.ts +1 -13
  127. package/commands/tools/image-editor/set-reaction-to-image-editor-job.command.ts +3 -16
  128. package/commands/tools/index.ts +0 -1
  129. package/commands/tools/music/retry-music-job.command.ts +1 -7
  130. package/commands/tools/music/set-reaction-to-music-job.command.ts +3 -16
  131. package/commands/tools/paraphrase/index.ts +1 -7
  132. package/commands/tools/presentation/index.ts +0 -1
  133. package/commands/tools/stt/set-reaction-to-stt-job.command.ts +3 -16
  134. package/commands/tools/tts/set-reaction-to-tts-job.command.ts +3 -16
  135. package/commands/tools/video/retry-video-job.command.ts +1 -8
  136. package/commands/tools/video/set-reaction-to-video-job.command.ts +3 -16
  137. package/commands/tools/video-editor/retry-video-editor-job.command.ts +0 -7
  138. package/commands/tools/video-editor/set-reaction-to-video-editor-job.command.ts +3 -16
  139. package/commands/tools/writer/set-reaction.writer-document.command.ts +3 -16
  140. package/commands/user/find-users-by-criteria.command.ts +1 -1
  141. package/commands/user/get-me.command.ts +0 -2
  142. package/commands/user/get-user-products.command.ts +2 -2
  143. package/commands/user/get-user-subscriptions.command.ts +2 -2
  144. package/commands/user/index.ts +0 -2
  145. package/commands/user-to-subscription/index.ts +0 -1
  146. package/commands/webmaster-click/get-webmaster-clicks-overview.command.ts +8 -3
  147. package/constants/cloud-payments/index.ts +0 -2
  148. package/constants/errors/errors.ts +21 -258
  149. package/constants/form-submission/enums/form-type.enum.ts +1 -0
  150. package/constants/index.ts +0 -4
  151. package/constants/page/enums/page-type.enum.ts +0 -1
  152. package/constants/payment/enums/index.ts +0 -1
  153. package/constants/payment/enums/payment-status.enum.ts +0 -1
  154. package/constants/presentation/enums/slide-content-type.enum.ts +0 -1
  155. package/constants/presentation/maps/slide-layout-map.constant.ts +0 -1
  156. package/constants/subscription/enums/subscription-feature-type.enum.ts +0 -6
  157. package/constants/subscription/enums/subscription-status.enum.ts +2 -2
  158. package/constants/tool/enums/index.ts +0 -1
  159. package/constants/tool/enums/tool-job-status.enum.ts +0 -1
  160. package/constants/tool-video/enums/video-pricing-rule-type.enum.ts +0 -1
  161. package/helpers/index.ts +0 -2
  162. package/helpers/video/calculate-video-price.helper.ts +1 -7
  163. package/models/api-key.schema.ts +10 -0
  164. package/models/index.ts +1 -2
  165. package/models/order.schema.ts +0 -1
  166. package/models/page.schema.ts +1 -2
  167. package/models/payment.schema.ts +1 -5
  168. package/models/review.schema.ts +0 -2
  169. package/models/subscription-feature.schema.ts +0 -34
  170. package/models/tool.schema.ts +0 -3
  171. package/models/tools/image-editor/image-editor-config.schema.ts +0 -1
  172. package/models/tools/image-editor/image-editor-job.schema.ts +2 -13
  173. package/models/tools/image-editor/image-editor-model.schema.ts +0 -16
  174. package/models/tools/index.ts +0 -2
  175. package/models/tools/music/music-track.schema.ts +0 -1
  176. package/models/tools/paraphrase/paraphrase-job.schema.ts +0 -5
  177. package/models/tools/presentation/pptx-export-payload.schema.ts +0 -34
  178. package/models/tools/presentation/slide-content-edit.schema.ts +0 -21
  179. package/models/tools/presentation/slide-content.schema.ts +0 -45
  180. package/models/tools/stt/stt-job.schema.ts +0 -1
  181. package/models/tools/tts/tts-job.schema.ts +0 -1
  182. package/models/tools/video/video-job.schema.ts +0 -2
  183. package/models/tools/video/video-model.schema.ts +1 -8
  184. package/models/tools/video-editor/video-editor-job.schema.ts +0 -1
  185. package/models/tools/writer/writer-document-outline.schema.ts +2 -1
  186. package/models/webmaster-click.schema.ts +2 -2
  187. package/package.json +1 -1
  188. package/api/controllers/http/community.ts +0 -25
  189. package/api/controllers/http/image-generation.ts +0 -14
  190. package/api/controllers/http/kie.ts +0 -5
  191. package/api/controllers/http/user-profile.ts +0 -8
  192. package/build/api/controllers/http/community.js +0 -25
  193. package/build/api/controllers/http/image-generation.js +0 -16
  194. package/build/api/controllers/http/kie.js +0 -7
  195. package/build/api/controllers/http/user-profile.js +0 -10
  196. package/build/commands/ai-model/find-formatted-ai-model-v2.command.js +0 -23
  197. package/build/commands/ai-model/find-model-pages.command.js +0 -31
  198. package/build/commands/community/archive-community-post.command.js +0 -13
  199. package/build/commands/community/create-community-post.command.js +0 -34
  200. package/build/commands/community/delete-community-post.command.js +0 -13
  201. package/build/commands/community/get-all-community-posts-by-criteria.command.js +0 -25
  202. package/build/commands/community/get-community-post-by-uuid.command.js +0 -14
  203. package/build/commands/community/get-count-of-likes-on-my-posts.command.js +0 -10
  204. package/build/commands/community/get-my-community-posts-by-criteria.command.js +0 -32
  205. package/build/commands/community/get-my-favorite-community-posts.command.js +0 -19
  206. package/build/commands/community/get-my-likes-community-posts.command.js +0 -19
  207. package/build/commands/community/index.js +0 -29
  208. package/build/commands/community/send-report-to-community-post.command.js +0 -15
  209. package/build/commands/community/set-favorite-community-post.command.js +0 -13
  210. package/build/commands/community/set-like-community-post.command.js +0 -14
  211. package/build/commands/community/share-my-community-post.command.js +0 -13
  212. package/build/commands/payment/refund-payment.command.js +0 -15
  213. package/build/commands/review/find-all-reviews.command.js +0 -20
  214. package/build/commands/review/get-review-count.command.js +0 -15
  215. package/build/commands/tools/image-generation/delete-all-image-generation-jobs.command.js +0 -10
  216. package/build/commands/tools/image-generation/delete-image-generation-job-by-uuid.command.js +0 -13
  217. package/build/commands/tools/image-generation/find-image-generation-job-by-uuid.command.js +0 -14
  218. package/build/commands/tools/image-generation/find-image-generation-jobs.command.js +0 -18
  219. package/build/commands/tools/image-generation/get-image-generation-config.command.js +0 -11
  220. package/build/commands/tools/image-generation/image-generation.command.js +0 -23
  221. package/build/commands/tools/image-generation/index.js +0 -24
  222. package/build/commands/tools/image-generation/set-reaction-to-image-generation-job.command.js +0 -28
  223. package/build/commands/tools/image-generation/update-image-generation-job-title.command.js +0 -17
  224. package/build/commands/tools/paraphrase/delete-all-paraphrase-jobs.command.js +0 -8
  225. package/build/commands/tools/paraphrase/delete-paraphrase-job-by-uuid.command.js +0 -11
  226. package/build/commands/tools/paraphrase/find-paraphrase-jobs.command.js +0 -18
  227. package/build/commands/tools/paraphrase/retry-paraphrase-job.command.js +0 -14
  228. package/build/commands/tools/paraphrase/set-reaction-to-paraphrase-job.command.js +0 -28
  229. package/build/commands/tools/paraphrase/update-paraphrase-job-title.command.js +0 -17
  230. package/build/commands/tools/presentation/set-reaction-to-presentation.command.js +0 -28
  231. package/build/commands/user/cancel-user-subscription.command.js +0 -21
  232. package/build/commands/user/get-user-payments.command.js +0 -26
  233. package/build/commands/user-profile/delete-avatar.command.js +0 -12
  234. package/build/commands/user-profile/get-user-profile-by-user-id.command.js +0 -14
  235. package/build/commands/user-profile/index.js +0 -20
  236. package/build/commands/user-profile/update-profile.command.js +0 -14
  237. package/build/commands/user-profile/upload-avatar.command.js +0 -11
  238. package/build/commands/user-to-subscription/delete-user-to-subscription.command.js +0 -16
  239. package/build/constants/community/community-post-report/enums/community-post-report-reason.enum.js +0 -18
  240. package/build/constants/community/community-post-report/index.js +0 -17
  241. package/build/constants/community/default-pagination.constant.js +0 -6
  242. package/build/constants/community/enums/community-aspect-ratio.enum.js +0 -11
  243. package/build/constants/community/enums/community-post-visibility.enum.js +0 -8
  244. package/build/constants/community/enums/community-status.enum.js +0 -11
  245. package/build/constants/community/enums/community-tool-type.enum.js +0 -10
  246. package/build/constants/community/enums/community-type.enum.js +0 -11
  247. package/build/constants/community/enums/index.js +0 -21
  248. package/build/constants/community/index.js +0 -19
  249. package/build/constants/model/enums/index.js +0 -17
  250. package/build/constants/model/enums/unified-model-content-type.enum.js +0 -21
  251. package/build/constants/model/index.js +0 -17
  252. package/build/constants/payment/enums/payment-sort-by.enum.js +0 -10
  253. package/build/constants/tool/enums/tool-content-type.enum.js +0 -17
  254. package/build/constants/tool-image-generation/enums/image-generation-resolution.enum.js +0 -9
  255. package/build/constants/tool-image-generation/enums/index.js +0 -17
  256. package/build/constants/tool-image-generation/index.js +0 -17
  257. package/build/constants/user-profile/index.js +0 -17
  258. package/build/constants/user-profile/user-profile.constant.js +0 -10
  259. package/build/helpers/image-editor/calculate-image-editor-price.helper.js +0 -13
  260. package/build/helpers/image-editor/index.js +0 -17
  261. package/build/helpers/image-generation/calculate-image-generation-price.helper.js +0 -16
  262. package/build/helpers/image-generation/index.js +0 -17
  263. package/build/models/community/community-post-media-data.schema.js +0 -53
  264. package/build/models/community/community-post-report/community-post-report.schema.js +0 -13
  265. package/build/models/community/community-post-report/index.js +0 -17
  266. package/build/models/community/community-post.schema.js +0 -44
  267. package/build/models/community/index.js +0 -19
  268. package/build/models/tools/common/attached-tool-file.schema.js +0 -13
  269. package/build/models/tools/common/index.js +0 -17
  270. package/build/models/tools/image-generation/image-generation-config.schema.js +0 -23
  271. package/build/models/tools/image-generation/image-generation-job.schema.js +0 -35
  272. package/build/models/tools/image-generation/image-generation-model.schema.js +0 -41
  273. package/build/models/tools/image-generation/index.js +0 -19
  274. package/build/models/user-profile.schema.js +0 -16
  275. package/commands/ai-model/find-formatted-ai-model-v2.command.ts +0 -23
  276. package/commands/ai-model/find-model-pages.command.ts +0 -34
  277. package/commands/community/archive-community-post.command.ts +0 -13
  278. package/commands/community/create-community-post.command.ts +0 -40
  279. package/commands/community/delete-community-post.command.ts +0 -13
  280. package/commands/community/get-all-community-posts-by-criteria.command.ts +0 -29
  281. package/commands/community/get-community-post-by-uuid.command.ts +0 -16
  282. package/commands/community/get-my-community-posts-by-criteria.command.ts +0 -40
  283. package/commands/community/get-my-favorite-community-posts.command.ts +0 -19
  284. package/commands/community/get-my-likes-community-posts.command.ts +0 -19
  285. package/commands/community/index.ts +0 -13
  286. package/commands/community/send-report-to-community-post.command.ts +0 -17
  287. package/commands/community/set-favorite-community-post.command.ts +0 -13
  288. package/commands/community/set-like-community-post.command.ts +0 -14
  289. package/commands/community/share-my-community-post.command.ts +0 -13
  290. package/commands/payment/refund-payment.command.ts +0 -17
  291. package/commands/review/find-all-reviews.command.ts +0 -19
  292. package/commands/review/get-review-count.command.ts +0 -13
  293. package/commands/tools/image-generation/delete-image-generation-job-by-uuid.command.ts +0 -13
  294. package/commands/tools/image-generation/find-image-generation-job-by-uuid.command.ts +0 -16
  295. package/commands/tools/image-generation/find-image-generation-jobs.command.ts +0 -18
  296. package/commands/tools/image-generation/get-image-generation-config.command.ts +0 -9
  297. package/commands/tools/image-generation/image-generation.command.ts +0 -25
  298. package/commands/tools/image-generation/index.ts +0 -8
  299. package/commands/tools/image-generation/set-reaction-to-image-generation-job.command.ts +0 -33
  300. package/commands/tools/image-generation/update-image-generation-job-title.command.ts +0 -19
  301. package/commands/tools/paraphrase/delete-all-paraphrase-jobs.command.ts +0 -6
  302. package/commands/tools/paraphrase/delete-paraphrase-job-by-uuid.command.ts +0 -11
  303. package/commands/tools/paraphrase/find-paraphrase-jobs.command.ts +0 -18
  304. package/commands/tools/paraphrase/retry-paraphrase-job.command.ts +0 -14
  305. package/commands/tools/paraphrase/set-reaction-to-paraphrase-job.command.ts +0 -33
  306. package/commands/tools/paraphrase/update-paraphrase-job-title.command.ts +0 -19
  307. package/commands/tools/presentation/set-reaction-to-presentation.command.ts +0 -33
  308. package/commands/user/cancel-user-subscription.command.ts +0 -21
  309. package/commands/user/get-user-payments.command.ts +0 -27
  310. package/commands/user-profile/delete-avatar.command.ts +0 -14
  311. package/commands/user-profile/get-user-profile-by-user-id.command.ts +0 -16
  312. package/commands/user-profile/index.ts +0 -4
  313. package/commands/user-profile/update-profile.command.ts +0 -16
  314. package/commands/user-profile/upload-avatar.command.ts +0 -10
  315. package/commands/user-to-subscription/delete-user-to-subscription.command.ts +0 -18
  316. package/constants/community/community-post-report/enums/community-post-report-reason.enum.ts +0 -14
  317. package/constants/community/community-post-report/enums/index.ts +0 -1
  318. package/constants/community/community-post-report/index.ts +0 -1
  319. package/constants/community/default-pagination.constant.ts +0 -4
  320. package/constants/community/enums/community-aspect-ratio.enum.ts +0 -7
  321. package/constants/community/enums/community-post-visibility.enum.ts +0 -4
  322. package/constants/community/enums/community-status.enum.ts +0 -7
  323. package/constants/community/enums/community-tool-type.enum.ts +0 -6
  324. package/constants/community/enums/community-type.enum.ts +0 -7
  325. package/constants/community/enums/index.ts +0 -5
  326. package/constants/community/index.ts +0 -3
  327. package/constants/model/enums/index.ts +0 -1
  328. package/constants/model/enums/unified-model-content-type.enum.ts +0 -17
  329. package/constants/model/index.ts +0 -1
  330. package/constants/payment/enums/payment-sort-by.enum.ts +0 -6
  331. package/constants/tool/enums/tool-content-type.enum.ts +0 -13
  332. package/constants/tool-image-generation/enums/image-generation-resolution.enum.ts +0 -5
  333. package/constants/tool-image-generation/enums/index.ts +0 -1
  334. package/constants/tool-image-generation/index.ts +0 -1
  335. package/constants/user-profile/index.ts +0 -1
  336. package/constants/user-profile/user-profile.constant.ts +0 -14
  337. package/helpers/image-editor/calculate-image-editor-price.helper.ts +0 -23
  338. package/helpers/image-editor/index.ts +0 -1
  339. package/helpers/image-generation/calculate-image-generation-price.helper.ts +0 -29
  340. package/helpers/image-generation/index.ts +0 -1
  341. package/models/community/community-post-media-data.schema.ts +0 -65
  342. package/models/community/community-post-report/community-post-report.schema.ts +0 -11
  343. package/models/community/community-post-report/index.ts +0 -1
  344. package/models/community/community-post.schema.ts +0 -48
  345. package/models/community/index.ts +0 -3
  346. package/models/tools/common/attached-tool-file.schema.ts +0 -13
  347. package/models/tools/common/index.ts +0 -1
  348. package/models/tools/image-generation/image-generation-config.schema.ts +0 -29
  349. package/models/tools/image-generation/image-generation-job.schema.ts +0 -42
  350. package/models/tools/image-generation/image-generation-model.schema.ts +0 -52
  351. package/models/tools/image-generation/index.ts +0 -3
  352. package/models/user-profile.schema.ts +0 -15
@@ -1,41 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ImageGenerationModelSchema = exports.ImageModelPricingRulesSchema = exports.ImageModelPricingRuleConditionSchema = exports.ImageGenerationModelParamsSchema = void 0;
4
- const zod_1 = require("zod");
5
- const unlocked_by_subscription_schema_1 = require("../../unlocked-by-subscription.schema");
6
- const constants_1 = require("../../../constants");
7
- exports.ImageGenerationModelParamsSchema = zod_1.z.object({
8
- aspectRatio: zod_1.z.record(zod_1.z.string(), zod_1.z.object({
9
- width: zod_1.z.number(),
10
- height: zod_1.z.number(),
11
- })),
12
- quality: zod_1.z.string().optional(),
13
- resolution: zod_1.z
14
- .object({
15
- options: zod_1.z.array(zod_1.z.nativeEnum(constants_1.IMAGE_GENERATION_RESOLUTION)),
16
- })
17
- .optional(),
18
- });
19
- exports.ImageModelPricingRuleConditionSchema = zod_1.z.object({
20
- resolution: zod_1.z.string().optional(),
21
- withoutSub: zod_1.z.boolean().optional(),
22
- });
23
- exports.ImageModelPricingRulesSchema = zod_1.z.array(zod_1.z.object({
24
- condition: exports.ImageModelPricingRuleConditionSchema,
25
- value: zod_1.z.number(),
26
- }));
27
- exports.ImageGenerationModelSchema = zod_1.z.object({
28
- uuid: zod_1.z.string().uuid(),
29
- title: zod_1.z.string(),
30
- description: zod_1.z.string(),
31
- order: zod_1.z.number(),
32
- status: zod_1.z.string(),
33
- price: zod_1.z.number(),
34
- params: exports.ImageGenerationModelParamsSchema,
35
- supportsImageAttachment: zod_1.z.boolean(),
36
- maxAttachedImages: zod_1.z.number(),
37
- maxPromptLength: zod_1.z.number(),
38
- pricingRules: exports.ImageModelPricingRulesSchema,
39
- unlockedBy: unlocked_by_subscription_schema_1.UnlockedBySchema.nullable(),
40
- canUse: zod_1.z.boolean(),
41
- });
@@ -1,19 +0,0 @@
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-config.schema"), exports);
18
- __exportStar(require("./image-generation-job.schema"), exports);
19
- __exportStar(require("./image-generation-model.schema"), exports);
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UserProfileResponseSchema = exports.UserProfileSchema = void 0;
4
- const zod_1 = require("zod");
5
- exports.UserProfileSchema = zod_1.z.object({
6
- userId: zod_1.z.string().uuid(),
7
- name: zod_1.z.string().nullable(),
8
- avatarUrl: zod_1.z.string().url().nullable(),
9
- avatarKey: zod_1.z.string().nullable(),
10
- createdAt: zod_1.z.date(),
11
- updatedAt: zod_1.z.date(),
12
- });
13
- exports.UserProfileResponseSchema = exports.UserProfileSchema.omit({
14
- createdAt: true,
15
- updatedAt: true,
16
- });
@@ -1,23 +0,0 @@
1
- import { z } from 'zod';
2
- import { UNIFIED_MODEL_CONTENT_TYPE } from '../../constants/model/enums/unified-model-content-type.enum';
3
- import { IconVariantsSchema } from '../../models/icon-variants.schema';
4
-
5
- const FormattedModelSchema = z.object({
6
- uuid: z.string().uuid(),
7
- title: z.string(),
8
- description: z.string().nullable(),
9
- contentType: z.nativeEnum(UNIFIED_MODEL_CONTENT_TYPE),
10
- order: z.number(),
11
- icons: IconVariantsSchema,
12
- pageAlias: z.string().nullable().optional(),
13
- toolId: z.string().uuid().nullable().optional(),
14
- isToolModel: z.boolean(),
15
- });
16
-
17
- export namespace FindFormattedAIModelV2Command {
18
- export const ResponseSchema = z.object({
19
- data: z.array(FormattedModelSchema),
20
- });
21
-
22
- export type Response = z.infer<typeof ResponseSchema>;
23
- }
@@ -1,34 +0,0 @@
1
- import { z } from 'zod';
2
- import { IconVariantsSchema } from '../../models/icon-variants.schema';
3
- import { UNIFIED_MODEL_CONTENT_TYPE } from '../../constants/model/enums/unified-model-content-type.enum';
4
-
5
- const ModelSchema = z.object({
6
- uuid: z.string().uuid(),
7
- title: z.string(),
8
- description: z.string().nullable(),
9
- contentType: z.nativeEnum(UNIFIED_MODEL_CONTENT_TYPE),
10
- order: z.number(),
11
- icons: IconVariantsSchema,
12
- });
13
-
14
- export const PageWithModelSchema = z.object({
15
- uuid: z.string().uuid(),
16
- title: z.string(),
17
- alias: z.string(),
18
- type: z.string(),
19
- toolId: z.string().uuid().nullable(),
20
- toolModelId: z.string().uuid().nullable(),
21
- toolOptionId: z.string().uuid().nullable(),
22
- aIModelId: z.string().uuid().nullable(),
23
- model: ModelSchema,
24
- });
25
-
26
- export type PageWithModel = z.infer<typeof PageWithModelSchema>;
27
-
28
- export namespace FindModelPagesCommand {
29
- export const ResponseSchema = z.object({
30
- data: z.array(PageWithModelSchema),
31
- });
32
-
33
- export type Response = z.infer<typeof ResponseSchema>;
34
- }
@@ -1,13 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- export namespace ArchiveCommunityPostCommand {
4
- export const RequestParamsSchema = z.object({
5
- uuid: z.string().uuid(),
6
- });
7
- export type RequestParams = z.infer<typeof RequestParamsSchema>;
8
-
9
- export const ResponseSchema = z.object({
10
- data: z.boolean(),
11
- });
12
- export type Response = z.infer<typeof ResponseSchema>;
13
- }
@@ -1,40 +0,0 @@
1
- import { z } from 'zod';
2
- import { ResponseCommunityPostSchema } from '../../models';
3
- import { COMMUNITY_POST_VISIBILITY, COMMUNITY_TOOL_TYPE } from '../../constants';
4
-
5
- export namespace CreateCommunityPostCommand {
6
- export const RequestBodySchema = z
7
- .object({
8
- visibility: z.nativeEnum(COMMUNITY_POST_VISIBILITY),
9
- caption: z.string().max(500).nullable().optional(),
10
- messageId: z.string().uuid().nullable().optional(),
11
- toolJobId: z.string().uuid().nullable().optional(),
12
- toolType: z.nativeEnum(COMMUNITY_TOOL_TYPE).nullable().optional(),
13
- })
14
- .refine(
15
- (data) => {
16
- const hasMessageId = data.messageId != null;
17
- const hasToolJobId = data.toolJobId != null;
18
-
19
- if (!(hasMessageId !== hasToolJobId)) {
20
- return false;
21
- }
22
-
23
- if (hasToolJobId && data.toolType == null) {
24
- return false;
25
- }
26
-
27
- return true;
28
- },
29
- {
30
- message: 'Either messageId or toolJobId must be provided, but not both.',
31
- path: ['messageId'],
32
- },
33
- );
34
- export type RequestBody = z.infer<typeof RequestBodySchema>;
35
-
36
- export const ResponseSchema = z.object({
37
- data: ResponseCommunityPostSchema,
38
- });
39
- export type Response = z.infer<typeof ResponseSchema>;
40
- }
@@ -1,13 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- export namespace DeleteCommunityPostCommand {
4
- export const RequestParamsSchema = z.object({
5
- uuid: z.string().uuid(),
6
- });
7
- export type RequestParams = z.infer<typeof RequestParamsSchema>;
8
-
9
- export const ResponseSchema = z.object({
10
- data: z.boolean(),
11
- });
12
- export type Response = z.infer<typeof ResponseSchema>;
13
- }
@@ -1,29 +0,0 @@
1
- import { z } from 'zod';
2
- import { ResponseCommunityPostSchema } from '../../models';
3
- import { SORT_ORDER, COMMUNITY_POST_TYPE } from '../../constants';
4
-
5
- export namespace GetAllCommunityPostsCommand {
6
- export const RequestQuerySchema = z.object({
7
- // Pagination
8
- cursor: z.string().uuid().nullable().optional(),
9
- limit: z.coerce.number().int().positive().max(100).default(30).optional(),
10
-
11
- // Sorting
12
- sortBy: z.enum(['publishedAt', 'views', 'likesCount']).optional(),
13
- sortOrder: z.nativeEnum(SORT_ORDER).optional(),
14
-
15
- // Criteria
16
- userId: z.string().uuid().optional(),
17
- type: z.nativeEnum(COMMUNITY_POST_TYPE).optional(),
18
- });
19
-
20
- export type RequestQuery = z.infer<typeof RequestQuerySchema>;
21
-
22
- export const ResponseSchema = z.object({
23
- data: z.array(ResponseCommunityPostSchema),
24
- cursor: z.string().uuid().nullable(),
25
- hasNext: z.boolean(),
26
- });
27
-
28
- export type Response = z.infer<typeof ResponseSchema>;
29
- }
@@ -1,16 +0,0 @@
1
- import { z } from 'zod';
2
- import { ResponseCommunityPostSchema } from '../../models';
3
-
4
- export namespace GetCommunityPostByUuidCommand {
5
- export const RequestSchema = z.object({
6
- uuid: z.string().uuid(),
7
- });
8
-
9
- export type Request = z.infer<typeof RequestSchema>;
10
-
11
- export const ResponseSchema = z.object({
12
- data: ResponseCommunityPostSchema,
13
- });
14
-
15
- export type Response = z.infer<typeof ResponseSchema>;
16
- }
@@ -1,40 +0,0 @@
1
- import { z } from 'zod';
2
- import { ResponseCommunityPostSchema } from '../../models';
3
- import {
4
- COMMUNITY_POST_STATUS,
5
- COMMUNITY_POST_TYPE,
6
- COMMUNITY_POST_VISIBILITY,
7
- DEFAULT_PAGINATION_LIMIT,
8
- SORT_ORDER,
9
- } from '../../constants';
10
-
11
- export namespace GetMyCommunityPostsByCriteriaCommand {
12
- export const RequestQuerySchema = z.object({
13
- // Pagination
14
- cursor: z.string().uuid().nullable().optional(),
15
- limit: z.coerce
16
- .number()
17
- .int()
18
- .positive()
19
- .max(100)
20
- .default(DEFAULT_PAGINATION_LIMIT)
21
- .optional(),
22
-
23
- // Sorting
24
- sortBy: z.enum(['publishedAt', 'views', 'likesCount']).optional(),
25
- sortOrder: z.nativeEnum(SORT_ORDER).optional(),
26
-
27
- // Criteria
28
- visibility: z.nativeEnum(COMMUNITY_POST_VISIBILITY).optional(),
29
- type: z.nativeEnum(COMMUNITY_POST_TYPE).optional(),
30
- status: z.nativeEnum(COMMUNITY_POST_STATUS).optional(),
31
- });
32
- export type RequestQuery = z.infer<typeof RequestQuerySchema>;
33
-
34
- export const ResponseSchema = z.object({
35
- data: z.array(ResponseCommunityPostSchema),
36
- cursor: z.string().uuid().nullable(),
37
- hasNext: z.boolean(),
38
- });
39
- export type Response = z.infer<typeof ResponseSchema>;
40
- }
@@ -1,19 +0,0 @@
1
- import { z } from 'zod';
2
- import { DEFAULT_PAGINATION_LIMIT, SORT_ORDER } from '../../constants';
3
- import { ResponseCommunityPostSchema } from '../../models';
4
-
5
- export namespace GetMyFavoriteCommunityPostsCommand {
6
- export const RequestQuerySchema = z.object({
7
- offset: z.coerce.number().int().min(0).default(0).optional(),
8
- limit: z.coerce.number().int().min(1).max(100).default(DEFAULT_PAGINATION_LIMIT).optional(),
9
- sortOrder: z.nativeEnum(SORT_ORDER).optional(),
10
- });
11
- export type RequestQuery = z.infer<typeof RequestQuerySchema>;
12
-
13
- export const ResponseSchema = z.object({
14
- data: z.array(ResponseCommunityPostSchema),
15
- page: z.number(),
16
- totalPages: z.number(),
17
- });
18
- export type Response = z.infer<typeof ResponseSchema>;
19
- }
@@ -1,19 +0,0 @@
1
- import { z } from 'zod';
2
- import { DEFAULT_PAGINATION_LIMIT, SORT_ORDER } from '../../constants';
3
- import { ResponseCommunityPostSchema } from '../../models';
4
-
5
- export namespace GetMyLikesCommunityPostsCommand {
6
- export const RequestQuerySchema = z.object({
7
- offset: z.coerce.number().int().min(0).default(0).optional(),
8
- limit: z.coerce.number().int().min(1).max(100).default(DEFAULT_PAGINATION_LIMIT).optional(),
9
- sortOrder: z.nativeEnum(SORT_ORDER).optional(),
10
- });
11
- export type RequestQuery = z.infer<typeof RequestQuerySchema>;
12
-
13
- export const ResponseSchema = z.object({
14
- data: z.array(ResponseCommunityPostSchema),
15
- page: z.number(),
16
- totalPages: z.number(),
17
- });
18
- export type Response = z.infer<typeof ResponseSchema>;
19
- }
@@ -1,13 +0,0 @@
1
- export * from './get-all-community-posts-by-criteria.command';
2
- export * from './get-community-post-by-uuid.command';
3
- export * from './create-community-post.command';
4
- export * from './set-like-community-post.command';
5
- export * from './set-favorite-community-post.command';
6
- export * from './delete-community-post.command';
7
- export * from './archive-community-post.command';
8
- export * from './get-my-community-posts-by-criteria.command';
9
- export * from './share-my-community-post.command';
10
- export * from './get-my-likes-community-posts.command';
11
- export * from './get-my-favorite-community-posts.command';
12
- export * from './send-report-to-community-post.command';
13
- export * from './get-count-of-likes-on-my-posts.command';
@@ -1,17 +0,0 @@
1
- import { z } from 'zod';
2
- import { COMMUNITY_POST_REPORT_REASON } from '../../constants';
3
-
4
- export namespace SendReportToCommunityPostCommand {
5
- export const RequestSchema = z.object({
6
- uuid: z.string().uuid(),
7
- });
8
- export type Request = z.infer<typeof RequestSchema>;
9
-
10
- export const RequestBodySchema = z.object({
11
- reason: z.nativeEnum(COMMUNITY_POST_REPORT_REASON),
12
- });
13
- export type RequestBody = z.infer<typeof RequestBodySchema>;
14
-
15
- export const ResponseSchema = z.void();
16
- export type Response = z.infer<typeof ResponseSchema>;
17
- }
@@ -1,13 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- export namespace SetFavoriteCommunityPostCommand {
4
- export const RequestParamsSchema = z.object({
5
- uuid: z.string().uuid(),
6
- });
7
- export type RequestParams = z.infer<typeof RequestParamsSchema>;
8
-
9
- export const ResponseSchema = z.object({
10
- data: z.boolean(),
11
- });
12
- export type Response = z.infer<typeof ResponseSchema>;
13
- }
@@ -1,14 +0,0 @@
1
- import { z } from 'zod';
2
- import { ResponseCommunityPostSchema } from '../../models';
3
-
4
- export namespace SetLikeCommunityPostCommand {
5
- export const RequestParamsSchema = z.object({
6
- uuid: z.string().uuid(),
7
- });
8
- export type RequestParams = z.infer<typeof RequestParamsSchema>;
9
-
10
- export const ResponseSchema = z.object({
11
- data: ResponseCommunityPostSchema,
12
- });
13
- export type Response = z.infer<typeof ResponseSchema>;
14
- }
@@ -1,13 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- export namespace ShareMyCommunityPostCommand {
4
- export const RequestParamsSchema = z.object({
5
- uuid: z.string().uuid(),
6
- });
7
- export type RequestParams = z.infer<typeof RequestParamsSchema>;
8
-
9
- export const ResponseSchema = z.object({
10
- data: z.string().url(),
11
- });
12
- export type Response = z.infer<typeof ResponseSchema>;
13
- }
@@ -1,17 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- export namespace RefundPaymentCommand {
4
- export const RequestSchema = z.object({
5
- uuid: z.string().uuid(),
6
- });
7
-
8
- export type Request = z.infer<typeof RequestSchema>;
9
-
10
- export const ResponseSchema = z.object({
11
- data: z.object({
12
- isSuccess: z.boolean(),
13
- }),
14
- });
15
-
16
- export type Response = z.infer<typeof ResponseSchema>;
17
- }
@@ -1,19 +0,0 @@
1
- import z from 'zod';
2
- import { ReviewSchema } from '../../models';
3
-
4
- export namespace FindAllReviewsCommand {
5
- export const RequestSchema = z.object({
6
- limit: z.string().transform((val) => parseInt(val, 10)),
7
- offset: z.string().transform((val) => parseInt(val, 10)),
8
- });
9
-
10
- export type Request = z.infer<typeof RequestSchema>;
11
-
12
- export const ResponseSchema = z.object({
13
- data: z.array(ReviewSchema),
14
- totalPages: z.number(),
15
- page: z.number(),
16
- });
17
-
18
- export type Response = z.infer<typeof ResponseSchema>;
19
- }
@@ -1,13 +0,0 @@
1
- import z from 'zod';
2
-
3
- export namespace GetReviewCountCommand {
4
- export type Request = void;
5
-
6
- export const ResponseSchema = z.object({
7
- data: z.object({
8
- count: z.number(),
9
- }),
10
- });
11
-
12
- export type Response = z.infer<typeof ResponseSchema>;
13
- }
@@ -1,13 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- export namespace DeleteImageGenerationJobByUUIDCommand {
4
- export const RequestParamsSchema = z.object({
5
- uuid: z.string().uuid(),
6
- });
7
- export type RequestParams = z.infer<typeof RequestParamsSchema>;
8
-
9
- export const ResponseSchema = z.object({
10
- data: z.boolean(),
11
- });
12
- export type Response = z.infer<typeof ResponseSchema>;
13
- }
@@ -1,16 +0,0 @@
1
- import { z } from 'zod';
2
- import { ImageGenerationJobSchema, ToolJobSchema } from '../../../models';
3
-
4
- export namespace FindImageGenerationJobByUUIDCommand {
5
- export const RequestParamsSchema = ToolJobSchema.pick({
6
- uuid: true,
7
- });
8
-
9
- export type Request = z.infer<typeof RequestParamsSchema>;
10
-
11
- export const ResponseSchema = z.object({
12
- data: ImageGenerationJobSchema,
13
- });
14
-
15
- export type Response = z.infer<typeof ResponseSchema>;
16
- }
@@ -1,18 +0,0 @@
1
- import { z } from 'zod';
2
- import { ImageGenerationJobSchema } from '../../../models';
3
-
4
- export namespace FindImageGenerationJobsCommand {
5
- export const RequestQuerySchema = z.object({
6
- limit: z.coerce.number().min(1).optional(),
7
- offset: z.coerce.number().min(0).default(0).optional(),
8
- title: z.string().optional(),
9
- });
10
- export type RequestQuery = z.infer<typeof RequestQuerySchema>;
11
-
12
- export const ResponseSchema = z.object({
13
- data: z.array(ImageGenerationJobSchema),
14
- totalPages: z.number(),
15
- page: z.number(),
16
- });
17
- export type Response = z.infer<typeof ResponseSchema>;
18
- }
@@ -1,9 +0,0 @@
1
- import { z } from 'zod';
2
- import { ImageGenerationConfigSchema } from '../../../models';
3
-
4
- export namespace GetImageGenerationConfigCommand {
5
- export const ResponseSchema = z.object({
6
- data: ImageGenerationConfigSchema,
7
- });
8
- export type Response = z.infer<typeof ResponseSchema>;
9
- }
@@ -1,25 +0,0 @@
1
- import { z } from 'zod';
2
- import { ToolJobSchema } from '../../../models';
3
- import { IMAGE_GENERATION_RESOLUTION } from '../../../constants';
4
-
5
- export namespace ImageGenerationCommand {
6
- export const RequestSchema = z.object({
7
- modelId: z.string().uuid(),
8
- prompt: z.string(),
9
- params: z.object({
10
- aspectRatio: z.string(),
11
- attachedFiles: z.string().array(),
12
- enhancePrompt: z.boolean(),
13
- resolution: z.nativeEnum(IMAGE_GENERATION_RESOLUTION).optional(),
14
- }),
15
- presetId: z.string().uuid().nullable().optional(),
16
- });
17
-
18
- export type Request = z.infer<typeof RequestSchema>;
19
-
20
- export const ResponseSchema = z.object({
21
- data: ToolJobSchema,
22
- });
23
-
24
- export type Response = z.infer<typeof ResponseSchema>;
25
- }
@@ -1,8 +0,0 @@
1
- export * from './image-generation.command';
2
- export * from './find-image-generation-job-by-uuid.command';
3
- export * from './find-image-generation-jobs.command';
4
- export * from './set-reaction-to-image-generation-job.command';
5
- export * from './update-image-generation-job-title.command';
6
- export * from './delete-image-generation-job-by-uuid.command';
7
- export * from './delete-all-image-generation-jobs.command';
8
- export * from './get-image-generation-config.command';
@@ -1,33 +0,0 @@
1
- import { z } from 'zod';
2
- import { ImageGenerationJobSchema } from '../../../models';
3
- import { USER_REACTION } from '../../../constants';
4
-
5
- export namespace SetReactionToImageGenerationJobCommand {
6
- export const RequestSchema = z
7
- .object({
8
- reaction: z.nativeEnum(USER_REACTION).nullable(),
9
- dislikeReason: z.string().nullable().default(null),
10
- })
11
- .refine(
12
- (data) => {
13
- if (data.reaction !== USER_REACTION.DISLIKED && data.dislikeReason) {
14
- return false;
15
- }
16
- return true;
17
- },
18
- {
19
- message: 'Dislike reason is not allowed when reaction is not DISLIKED',
20
- },
21
- );
22
- export type Request = z.infer<typeof RequestSchema>;
23
-
24
- export const RequestParamsSchema = z.object({
25
- uuid: z.string().uuid(),
26
- });
27
- export type RequestParams = z.infer<typeof RequestParamsSchema>;
28
-
29
- export const ResponseSchema = z.object({
30
- data: ImageGenerationJobSchema,
31
- });
32
- export type Response = z.infer<typeof ResponseSchema>;
33
- }
@@ -1,19 +0,0 @@
1
- import { z } from 'zod';
2
- import { ImageGenerationJobSchema } from '../../../models';
3
-
4
- export namespace UpdateImageGenerationJobTitleCommand {
5
- export const RequestSchema = z.object({
6
- title: z.string(),
7
- });
8
- export type Request = z.infer<typeof RequestSchema>;
9
-
10
- export const RequestParamsSchema = z.object({
11
- uuid: z.string().uuid(),
12
- });
13
- export type RequestParams = z.infer<typeof RequestParamsSchema>;
14
-
15
- export const ResponseSchema = z.object({
16
- data: ImageGenerationJobSchema,
17
- });
18
- export type Response = z.infer<typeof ResponseSchema>;
19
- }
@@ -1,6 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- export namespace DeleteAllParaphraseJobsCommand {
4
- export const ResponseSchema = z.void();
5
- export type Response = z.infer<typeof ResponseSchema>;
6
- }
@@ -1,11 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- export namespace DeleteParaphraseJobByUUIDCommand {
4
- export const RequestParamsSchema = z.object({
5
- uuid: z.string().uuid(),
6
- });
7
- export type RequestParams = z.infer<typeof RequestParamsSchema>;
8
-
9
- export const ResponseSchema = z.void();
10
- export type Response = z.infer<typeof ResponseSchema>;
11
- }