@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
@@ -5,5 +5,6 @@ export const AI_MODEL_ROUTES = {
5
5
  FIND_BY_UUID: (uuid: string) => `by/uuid/${uuid}`,
6
6
  GET_ALL: 'all',
7
7
  GET_FORMATTED: 'formatted',
8
+ GET_FORMATTED_V2: 'formatted/v2',
8
9
  AVAILABLE: 'available',
9
10
  } as const;
@@ -9,7 +9,6 @@ export const CHAT_PRIVATE_ROUTES = {
9
9
  FIND_MANY: '',
10
10
  FIND_BY_UUID: (uuid: string) => `${uuid}`,
11
11
  SEND_TEXT_MESSAGE: (uuid: string) => `${uuid}/messages/text`,
12
- SEND_IMAGE_MESSAGE: (uuid: string) => `${uuid}/messages/image`,
13
12
  ARCHIVE: 'archive',
14
13
  DELETE: (uuid: string) => `${uuid}`,
15
14
  UPDATE: (uuid: string) => `${uuid}`,
@@ -0,0 +1,25 @@
1
+ export const COMMUNITY_CONTROLLER_PRIVATE = 'private/community/posts' as const;
2
+ export const COMMUNITY_CONTROLLER_PUBLIC = 'public/community/posts' as const;
3
+
4
+ export const COMMUNITY_ROUTES_PRIVATE = {
5
+ GET_ALL: '',
6
+ GET_MY: 'my',
7
+ GET_MY_LIKE: 'my/likes',
8
+ GET_MY_FAVORITE: 'my/favorites',
9
+ GET_BY_UUID: (uuid: string) => `by/uuid/${uuid}`,
10
+ GET_BY_USER_ID: (uuid: string) => `by/user/${uuid}`,
11
+ CREATE: '',
12
+ UPDATE: (uuid: string) => `${uuid}`,
13
+ DELETE: (uuid: string) => `${uuid}`,
14
+ ARCHIVE: (uuid: string) => `${uuid}/archive`,
15
+ LIKE: (uuid: string) => `${uuid}/like`,
16
+ FAVORITE: (uuid: string) => `${uuid}/favorite`,
17
+
18
+ REPORT: (uuid: string) => `report/${uuid}`,
19
+ LIKES_COUNT: 'my/count',
20
+ } as const;
21
+
22
+ export const COMMUNITY_ROUTES_PUBLIC = {
23
+ GET_ALL: '',
24
+ GET_BY_UUID: (uuid: string) => `by/uuid/${uuid}`,
25
+ } as const;
@@ -0,0 +1,14 @@
1
+ export const IMAGE_GENERATION_CONTROLLER_PRIVATE = 'private/tools/image-generation' as const;
2
+ export const IMAGE_GENERATION_CONTROLLER_PUBLIC = 'public/tools/image-generation' as const;
3
+
4
+ export const IMAGE_GENERATION_ROUTES = {
5
+ CONFIG: 'config',
6
+ EXECUTE: 'execute',
7
+ GET_JOBS: 'jobs',
8
+ GET_JOB: (uuid: string) => `jobs/${uuid}`,
9
+ UPDATE: (uuid: string) => `jobs/${uuid}`,
10
+ SET_REACTION: (uuid: string) => `jobs/${uuid}/reaction`,
11
+ DELETE: (uuid: string) => `jobs/${uuid}`,
12
+ DELETE_ALL: 'jobs',
13
+ RETRY: (uuid: string) => `jobs/${uuid}/retry`,
14
+ } as const;
@@ -14,7 +14,6 @@ export * from './form-submission';
14
14
  export * from './key-value';
15
15
  export * from './referral';
16
16
  export * from './message';
17
- export * from './ai-proxy';
18
17
  export * from './page';
19
18
  export * from './payment';
20
19
  export * from './presentation';
@@ -54,3 +53,6 @@ export * from './webmaster';
54
53
  export * from './music';
55
54
  export * from './webmaster-click';
56
55
  export * from './b2b';
56
+ export * from './community';
57
+ export * from './user-profile';
58
+ export * from './image-generation';
@@ -5,4 +5,5 @@ export const PAGE_ROUTES = {
5
5
  GET_ALL: 'all',
6
6
  FIND_BY_ALIAS: (alias: string) => `by/alias/${alias}`,
7
7
  GET_ALL_WITH_RELATIONS: 'by/all',
8
+ MODEL_PAGES: 'by/type/model',
8
9
  } as const;
@@ -4,5 +4,11 @@ export const PARAPHRASE_CONTROLLER_PUBLIC = 'public/tools/paraphrase' as const;
4
4
  export const PARAPHRASE_ROUTES = {
5
5
  CONFIG: 'config',
6
6
  EXECUTE: 'execute',
7
+ GET_JOBS: 'jobs',
7
8
  GET_JOB: (uuid: string) => `jobs/${uuid}`,
9
+ UPDATE: (uuid: string) => `jobs/${uuid}`,
10
+ SET_REACTION: (uuid: string) => `jobs/${uuid}/reaction`,
11
+ DELETE: (uuid: string) => `jobs/${uuid}`,
12
+ DELETE_ALL: 'jobs',
13
+ RETRY: (uuid: string) => `jobs/${uuid}/retry`,
8
14
  } as const;
@@ -2,4 +2,5 @@ export const PAYMENT_CONTROLLER = 'payment' as const;
2
2
 
3
3
  export const PAYMENT_ROUTES = {
4
4
  HISTORY: 'history',
5
+ REFUND: 'refund',
5
6
  } as const;
@@ -33,4 +33,5 @@ export const PRESENTATION_ROUTES = {
33
33
  CREATE_SLIDE_OUTLINE: (presentationId: string) => `${presentationId}/outline`,
34
34
  EXPORT_AS_PPTX: (uuid: string) => `${uuid}/export-as-pptx`,
35
35
  DELETE_ALL: '',
36
+ SET_REACTION: (uuid: string) => `${uuid}/reaction`,
36
37
  } as const;
@@ -5,7 +5,7 @@ export const PRODUCT_PUBLIC_CONTROLLER = 'product/public' as const;
5
5
  export const PRODUCT_ROUTES = {
6
6
  FIND_BY_UUID: 'by/uuid',
7
7
  GET_ALL: 'all',
8
- BUY: `buy`,
8
+ BUY: (uuid: string) => `${uuid}/buy`,
9
9
  FAST_BUY: `fast/buy`,
10
10
  MY: 'my',
11
11
  } as const;
@@ -3,5 +3,5 @@ export const REFERRAL_PUBLIC_CONTROLLER = 'public/referral' as const;
3
3
 
4
4
  export const REFERRAL_ROUTES = {
5
5
  GET_MY_BONUSES: 'bonuses/my',
6
- VALIDATE: 'validate/users',
6
+ VALIDATE: (partnerId: string) => `validate/users/${partnerId}`,
7
7
  } as const;
@@ -4,4 +4,5 @@ export const REVIEW_PRIVATE_CONTROLLER = 'private/review' as const;
4
4
  export const REVIEW_ROUTES = {
5
5
  CREATE: '',
6
6
  FIND: 'find',
7
+ COUNT: 'count',
7
8
  } as const;
@@ -5,7 +5,7 @@ export const SUBSCRIPTION_PUBLIC_CONTROLLER = 'subscription/public' as const;
5
5
  export const SUBSCRIPTION_ROUTES = {
6
6
  FIND_BY_UUID: 'by/uuid',
7
7
  GET_ALL: 'all',
8
- BUY: 'buy',
8
+ BUY: (uuid: string) => `${uuid}/buy`,
9
9
  FAST_BUY: 'fast/buy',
10
10
  GET_MY: 'my',
11
11
  CANCEL: 'cancel',
@@ -3,6 +3,6 @@ export const UI_NOTIFICATION_PUBLIC_CONTROLLER = 'public/ui-notification' as con
3
3
 
4
4
  export const UI_NOTIFICATION_ROUTES = {
5
5
  GET_BY_PAGE: 'by/page',
6
- COMPLETE: 'complete/:uuid',
7
- CANCEL: 'cancel/:uuid',
6
+ COMPLETE: (uuid: string) => `complete/${uuid}`,
7
+ CANCEL: (uuid: string) => `cancel/${uuid}`,
8
8
  } as const;
@@ -0,0 +1,8 @@
1
+ export const USER_PROFILE_CONTROLLER = 'user-profile' as const;
2
+
3
+ export const USER_PROFILE_ROUTES = {
4
+ GET_PROFILE_INFO: 'profile',
5
+ UPDATE_PROFILE: 'profile',
6
+ UPLOAD_AVATAR: 'upload-avatar',
7
+ DELETE_AVATAR: 'avatar',
8
+ } as const;
@@ -3,4 +3,5 @@ export const USER_TO_SUBSCRIPTION_CONTROLLER = 'user-to-subscription' as const;
3
3
  export const USER_TO_SUBSCRIPTION_ROUTES = {
4
4
  FIND_BY_UUID: (uuid: string) => `${uuid}`,
5
5
  UPDATE: (uuid: string) => `${uuid}`,
6
+ DELETE: (uuid: string) => `${uuid}`,
6
7
  } as const;
@@ -9,7 +9,9 @@ export const USER_ROUTES = {
9
9
  GET_BALANCE: (uuid: string) => `balance/${uuid}`,
10
10
  GET_ORDERS: (uuid: string) => `orders/${uuid}`,
11
11
  GET_SUBSCRIPTIONS: (uuid: string) => `subscriptions/${uuid}`,
12
+ CANCEL_SUBSCRIPTION: (uuid: string) => `subscriptions/${uuid}/cancel`,
12
13
  GET_PRODUCTS: (uuid: string) => `products/${uuid}`,
14
+ GET_PAYMENTS: (uuid: string) => `payments/${uuid}`,
13
15
  GET_COUNT_NOTIFICATION: 'broadcast/count',
14
16
  SEND_NOTIFICATION: 'broadcast',
15
17
  DELETE_ACCOUNT: 'delete-account',
package/api/routes.ts CHANGED
@@ -25,8 +25,12 @@ export const REST_API = {
25
25
  `${ROOT}/${CONTROLLERS.USER_CONTROLLER}/${CONTROLLERS.USER_ROUTES.GET_BALANCE(uuid)}`,
26
26
  GET_ORDERS: (uuid: string) =>
27
27
  `${ROOT}/${CONTROLLERS.USER_CONTROLLER}/${CONTROLLERS.USER_ROUTES.GET_ORDERS(uuid)}`,
28
+ GET_PAYMENTS: (uuid: string) =>
29
+ `${ROOT}/${CONTROLLERS.USER_CONTROLLER}/${CONTROLLERS.USER_ROUTES.GET_PAYMENTS(uuid)}`,
28
30
  GET_SUBSCRIPTIONS: (uuid: string) =>
29
31
  `${ROOT}/${CONTROLLERS.USER_CONTROLLER}/${CONTROLLERS.USER_ROUTES.GET_SUBSCRIPTIONS(uuid)}`,
32
+ CANCEL_SUBSCRIPTION: (uuid: string) =>
33
+ `${ROOT}/${CONTROLLERS.USER_CONTROLLER}/${CONTROLLERS.USER_ROUTES.CANCEL_SUBSCRIPTION(uuid)}`,
30
34
  GET_PRODUCTS: (uuid: string) =>
31
35
  `${ROOT}/${CONTROLLERS.USER_CONTROLLER}/${CONTROLLERS.USER_ROUTES.GET_PRODUCTS(uuid)}`,
32
36
  GET_COUNT_NOTIFICATION: `${ROOT}/${CONTROLLERS.USER_CONTROLLER}/${CONTROLLERS.USER_ROUTES.GET_COUNT_NOTIFICATION}`,
@@ -46,6 +50,7 @@ export const REST_API = {
46
50
  GET_BY_ALIAS: (alias: string): string =>
47
51
  `${ROOT}/${CONTROLLERS.PAGE_CONTROLLER}/${CONTROLLERS.PAGE_ROUTES.FIND_BY_ALIAS(alias)}`,
48
52
  GET_BY_ALL_WITH_RELATIONS: `${ROOT}/${CONTROLLERS.PAGE_CONTROLLER}/${CONTROLLERS.PAGE_ROUTES.GET_ALL_WITH_RELATIONS}`,
53
+ MODEL_PAGES: `${ROOT}/${CONTROLLERS.PAGE_CONTROLLER}/${CONTROLLERS.PAGE_ROUTES.MODEL_PAGES}`,
49
54
  },
50
55
  CATEGORY: {
51
56
  GET: `${ROOT}/${CONTROLLERS.CATEGORY_CONTROLLER}/${CONTROLLERS.CATEGORY_ROUTES.GET_ALL}`,
@@ -77,12 +82,14 @@ export const REST_API = {
77
82
  `${ROOT}/${CONTROLLERS.AI_MODEL_CONTROLLER_PRIVATE}/${CONTROLLERS.AI_MODEL_ROUTES.FIND_BY_UUID(uuid)}`,
78
83
  GET_AVAILABLE_MODELS: `${ROOT}/${CONTROLLERS.AI_MODEL_CONTROLLER_PRIVATE}/${CONTROLLERS.AI_MODEL_ROUTES.AVAILABLE}`,
79
84
  GET_FORMATTED: `${ROOT}/${CONTROLLERS.AI_MODEL_CONTROLLER_PRIVATE}/${CONTROLLERS.AI_MODEL_ROUTES.GET_FORMATTED}`,
85
+ GET_FORMATTED_V2: `${ROOT}/${CONTROLLERS.AI_MODEL_CONTROLLER_PRIVATE}/${CONTROLLERS.AI_MODEL_ROUTES.GET_FORMATTED_V2}`,
80
86
  },
81
87
  AI_MODULE_PUBLIC: {
82
88
  GET: `${ROOT}/${CONTROLLERS.AI_MODEL_CONTROLLER_PUBLIC}/${CONTROLLERS.AI_MODEL_ROUTES.GET_ALL}`,
83
89
  GET_BY_UUID: (uuid: string): string =>
84
90
  `${ROOT}/${CONTROLLERS.AI_MODEL_CONTROLLER_PUBLIC}/${CONTROLLERS.AI_MODEL_ROUTES.FIND_BY_UUID(uuid)}`,
85
91
  GET_FORMATTED: `${ROOT}/${CONTROLLERS.AI_MODEL_CONTROLLER_PUBLIC}/${CONTROLLERS.AI_MODEL_ROUTES.GET_FORMATTED}`,
92
+ GET_FORMATTED_V2: `${ROOT}/${CONTROLLERS.AI_MODEL_CONTROLLER_PUBLIC}/${CONTROLLERS.AI_MODEL_ROUTES.GET_FORMATTED_V2}`,
86
93
  GET_AVAILABLE_MODELS: `${ROOT}/${CONTROLLERS.AI_MODEL_CONTROLLER_PUBLIC}/${CONTROLLERS.AI_MODEL_ROUTES.AVAILABLE}`,
87
94
  },
88
95
  CHAT_PRIVATE: {
@@ -92,16 +99,16 @@ export const REST_API = {
92
99
  CREATE: `${ROOT}/${CONTROLLERS.CHAT_PRIVATE_CONTROLLER}/${CONTROLLERS.CHAT_PRIVATE_ROUTES.CREATE}`,
93
100
  FIND_MANY: `${ROOT}/${CONTROLLERS.CHAT_PRIVATE_CONTROLLER}/${CONTROLLERS.CHAT_PRIVATE_ROUTES.FIND_MANY}`,
94
101
  FIND_BY_UUID: (uuid: string): string =>
95
- `${ROOT}/${CONTROLLERS.CHAT_PRIVATE_CONTROLLER}/${CONTROLLERS.CHAT_PRIVATE_ROUTES.FIND_BY_UUID}/${uuid}`,
102
+ `${ROOT}/${CONTROLLERS.CHAT_PRIVATE_CONTROLLER}/${CONTROLLERS.CHAT_PRIVATE_ROUTES.FIND_BY_UUID(uuid)}`,
96
103
  SEND_TEXT_MESSAGE: (uuid: string) =>
97
- `${ROOT}/${CONTROLLERS.CHAT_PRIVATE_CONTROLLER}/${CONTROLLERS.CHAT_PRIVATE_ROUTES.SEND_TEXT_MESSAGE}/${uuid}`,
104
+ `${ROOT}/${CONTROLLERS.CHAT_PRIVATE_CONTROLLER}/${CONTROLLERS.CHAT_PRIVATE_ROUTES.SEND_TEXT_MESSAGE(uuid)}`,
98
105
  CREATE_SUGGESTIONS: (uuid: string) =>
99
- `${ROOT}/${CONTROLLERS.CHAT_PRIVATE_CONTROLLER}/${CONTROLLERS.CHAT_PRIVATE_ROUTES.CREATE_SUGGESTIONS}/${uuid}`,
100
- SEND_IMAGE_MESSAGE: (uuid: string) =>
101
- `${ROOT}/${CONTROLLERS.CHAT_PRIVATE_CONTROLLER}/${CONTROLLERS.CHAT_PRIVATE_ROUTES.SEND_IMAGE_MESSAGE}/${uuid}`,
106
+ `${ROOT}/${CONTROLLERS.CHAT_PRIVATE_CONTROLLER}/${CONTROLLERS.CHAT_PRIVATE_ROUTES.CREATE_SUGGESTIONS(uuid)}`,
102
107
  ARCHIVE: `${ROOT}/${CONTROLLERS.CHAT_PRIVATE_CONTROLLER}/${CONTROLLERS.CHAT_PRIVATE_ROUTES.ARCHIVE}`,
103
- DELETE: (uuid: string) => `${ROOT}/${CONTROLLERS.CHAT_PRIVATE_CONTROLLER}/${uuid}`,
104
- UPDATE: (uuid: string) => `${ROOT}/${CONTROLLERS.CHAT_PRIVATE_CONTROLLER}/${uuid}`,
108
+ DELETE: (uuid: string) =>
109
+ `${ROOT}/${CONTROLLERS.CHAT_PRIVATE_CONTROLLER}/${CONTROLLERS.CHAT_PRIVATE_ROUTES.DELETE(uuid)}`,
110
+ UPDATE: (uuid: string) =>
111
+ `${ROOT}/${CONTROLLERS.CHAT_PRIVATE_CONTROLLER}/${CONTROLLERS.CHAT_PRIVATE_ROUTES.UPDATE(uuid)}`,
105
112
  INPUT_LIMITS: `${ROOT}/${CONTROLLERS.CHAT_PRIVATE_CONTROLLER}/${CONTROLLERS.CHAT_PRIVATE_ROUTES.INPUT_LIMITS}`,
106
113
  },
107
114
  CHAT_PUBLIC: {
@@ -111,9 +118,9 @@ export const REST_API = {
111
118
  CREATE: `${ROOT}/${CONTROLLERS.CHAT_PUBLIC_CONTROLLER}/${CONTROLLERS.CHAT_PUBLIC_ROUTES.CREATE}`,
112
119
  FIND_MANY: `${ROOT}/${CONTROLLERS.CHAT_PUBLIC_CONTROLLER}/${CONTROLLERS.CHAT_PUBLIC_ROUTES.FIND_MANY}`,
113
120
  FIND_BY_UUID: (uuid: string): string =>
114
- `${ROOT}/${CONTROLLERS.CHAT_PUBLIC_CONTROLLER}/${CONTROLLERS.CHAT_PUBLIC_ROUTES.FIND_BY_UUID}/${uuid}`,
121
+ `${ROOT}/${CONTROLLERS.CHAT_PUBLIC_CONTROLLER}/${CONTROLLERS.CHAT_PUBLIC_ROUTES.FIND_BY_UUID(uuid)}`,
115
122
  CREATE_SUGGESTIONS: (uuid: string) =>
116
- `${ROOT}/${CONTROLLERS.CHAT_PUBLIC_CONTROLLER}/${CONTROLLERS.CHAT_PUBLIC_ROUTES.CREATE_SUGGESTIONS}/${uuid}`,
123
+ `${ROOT}/${CONTROLLERS.CHAT_PUBLIC_CONTROLLER}/${CONTROLLERS.CHAT_PUBLIC_ROUTES.CREATE_SUGGESTIONS(uuid)}`,
117
124
  SEND_TEXT_MESSAGE: (uuid: string) =>
118
125
  `${ROOT}/${CONTROLLERS.CHAT_PUBLIC_CONTROLLER}/${CONTROLLERS.CHAT_PUBLIC_ROUTES.SEND_TEXT_MESSAGE(uuid)}`,
119
126
  SEND_IMAGE_MESSAGE: (uuid: string) =>
@@ -133,7 +140,7 @@ export const REST_API = {
133
140
  DELETE: (uuid: string) => `${ROOT}/${CONTROLLERS.PRODUCT_PRIVATE_CONTROLLER}/${uuid}`,
134
141
  CREATE: `${ROOT}/${CONTROLLERS.PRODUCT_PRIVATE_CONTROLLER}`,
135
142
  BUY: (uuid: string) =>
136
- `${ROOT}/${CONTROLLERS.PRODUCT_PRIVATE_CONTROLLER}/${CONTROLLERS.PRODUCT_ROUTES.BUY}/${uuid}`,
143
+ `${ROOT}/${CONTROLLERS.PRODUCT_PRIVATE_CONTROLLER}/${CONTROLLERS.PRODUCT_ROUTES.BUY(uuid)}`,
137
144
  MY: `${ROOT}/${CONTROLLERS.PRODUCT_PRIVATE_CONTROLLER}/${CONTROLLERS.PRODUCT_ROUTES.MY}`,
138
145
  },
139
146
  SUBSCRIPTION_PUBLIC: {
@@ -143,11 +150,12 @@ export const REST_API = {
143
150
  FAST_BUY: (uuid: string) =>
144
151
  `${ROOT}/${CONTROLLERS.SUBSCRIPTION_PUBLIC_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.FAST_BUY}/${uuid}`,
145
152
  FREE: `${ROOT}/${CONTROLLERS.SUBSCRIPTION_PUBLIC_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.FREE}`,
153
+ CREATE_CUSTOM: `${ROOT}/${CONTROLLERS.SUBSCRIPTION_PUBLIC_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.CREATE_CUSTOM}`,
146
154
  },
147
155
  SUBSCRIPTION_PRIVATE: {
148
156
  GET: `${ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.GET_ALL}`,
149
157
  BUY: (uuid: string) =>
150
- `${ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.BUY}/${uuid}`,
158
+ `${ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.BUY(uuid)}`,
151
159
  GET_MY: `${ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.GET_MY}`,
152
160
  CANCEL: (uuid: string) =>
153
161
  `${ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${uuid}/${CONTROLLERS.SUBSCRIPTION_ROUTES.CANCEL}`,
@@ -183,7 +191,7 @@ export const REST_API = {
183
191
  `${ROOT}/${CONTROLLERS.FILE_PUBLIC_CONTROLLER}/${CONTROLLERS.FILE_ROUTES.DELETE(uuid)}`,
184
192
  },
185
193
  BLOG_ARTICLES: {
186
- CREATE: `${ROOT}/${CONTROLLERS.BLOG_CONTROLLER(POST_TYPE.ARTICLE)}`,
194
+ CREATE: `${ROOT}/${CONTROLLERS.BLOG_CONTROLLER(POST_TYPE.ARTICLE)}/${CONTROLLERS.BLOG_ROUTES.CREATE}`,
187
195
  PATCH: (uuid: string) =>
188
196
  `${ROOT}/${CONTROLLERS.BLOG_CONTROLLER(POST_TYPE.ARTICLE)}/${CONTROLLERS.BLOG_ROUTES.UPDATE(uuid)}`,
189
197
  DELETE: (uuid: string) =>
@@ -198,7 +206,7 @@ export const REST_API = {
198
206
  COUNT: `${ROOT}/${CONTROLLERS.BLOG_CONTROLLER(POST_TYPE.ARTICLE)}/${CONTROLLERS.BLOG_ROUTES.COUNT}`,
199
207
  },
200
208
  BLOG_UPDATES: {
201
- CREATE: `${ROOT}/${CONTROLLERS.BLOG_CONTROLLER(POST_TYPE.UPDATE)}`,
209
+ CREATE: `${ROOT}/${CONTROLLERS.BLOG_CONTROLLER(POST_TYPE.UPDATE)}/${CONTROLLERS.BLOG_ROUTES.CREATE}`,
202
210
  PATCH: (uuid: string) =>
203
211
  `${ROOT}/${CONTROLLERS.BLOG_CONTROLLER(POST_TYPE.UPDATE)}/${CONTROLLERS.BLOG_ROUTES.UPDATE(uuid)}`,
204
212
  DELETE: (uuid: string) =>
@@ -223,6 +231,8 @@ export const REST_API = {
223
231
  `${ROOT}/${CONTROLLERS.PROMOCODE_PRIVATE_CONTROLLER}/${CONTROLLERS.PROMOCODE_ROUTES.VALIDATE}/${code}`,
224
232
  VALIDATE_PUBLIC: (code: string) =>
225
233
  `${ROOT}/${CONTROLLERS.PROMOCODE_PUBLIC_CONTROLLER}/${CONTROLLERS.PROMOCODE_ROUTES.VALIDATE}/${code}`,
234
+ UPSELL_PRIVATE: `${ROOT}/${CONTROLLERS.PROMOCODE_PRIVATE_CONTROLLER}/${CONTROLLERS.PROMOCODE_ROUTES.UPSELL}`,
235
+ UPSELL_PUBLIC: `${ROOT}/${CONTROLLERS.PROMOCODE_PUBLIC_CONTROLLER}/${CONTROLLERS.PROMOCODE_ROUTES.UPSELL}`,
226
236
  },
227
237
  TELEGRAM_AUTH: {
228
238
  CREATE_SESSION: `${ROOT}/${CONTROLLERS.TELEGRAM_AUTH_CONTROLLER}`,
@@ -233,9 +243,12 @@ export const REST_API = {
233
243
  REVIEW_PUBLIC: {
234
244
  CREATE: `${ROOT}/${CONTROLLERS.REVIEW_PUBLIC_CONTROLLER}/${CONTROLLERS.REVIEW_ROUTES.CREATE}`,
235
245
  FIND: `${ROOT}/${CONTROLLERS.REVIEW_PUBLIC_CONTROLLER}/${CONTROLLERS.REVIEW_ROUTES.FIND}`,
246
+ COUNT: `${ROOT}/${CONTROLLERS.REVIEW_PUBLIC_CONTROLLER}/${CONTROLLERS.REVIEW_ROUTES.COUNT}`,
236
247
  },
237
248
  REVIEW_PRIVATE: {
238
249
  CREATE: `${ROOT}/${CONTROLLERS.REVIEW_PRIVATE_CONTROLLER}/${CONTROLLERS.REVIEW_ROUTES.CREATE}`,
250
+ FIND: `${ROOT}/${CONTROLLERS.REVIEW_PRIVATE_CONTROLLER}/${CONTROLLERS.REVIEW_ROUTES.FIND}`,
251
+ COUNT: `${ROOT}/${CONTROLLERS.REVIEW_PRIVATE_CONTROLLER}/${CONTROLLERS.REVIEW_ROUTES.COUNT}`,
239
252
  },
240
253
  PROMPT_CATEGORY_PRIVATE: {
241
254
  CREATE: `${ROOT}/${CONTROLLERS.PROMPT_CATEGORY_PRIVATE_CONTROLLER}/${CONTROLLERS.PROMPT_CATEGORY_ROUTES.CREATE}`,
@@ -308,11 +321,17 @@ export const REST_API = {
308
321
  `${ROOT}/${CONTROLLERS.USER_TO_SUBSCRIPTION_CONTROLLER}/${CONTROLLERS.USER_TO_SUBSCRIPTION_ROUTES.FIND_BY_UUID(uuid)}`,
309
322
  UPDATE: (uuid: string) =>
310
323
  `${ROOT}/${CONTROLLERS.USER_TO_SUBSCRIPTION_CONTROLLER}/${CONTROLLERS.USER_TO_SUBSCRIPTION_ROUTES.UPDATE(uuid)}`,
324
+ DELETE: (uuid: string) =>
325
+ `${ROOT}/${CONTROLLERS.USER_TO_SUBSCRIPTION_CONTROLLER}/${CONTROLLERS.USER_TO_SUBSCRIPTION_ROUTES.DELETE(uuid)}`,
311
326
  },
312
327
  FEEDBACK_PRIVATE: {
328
+ CREATE: `${ROOT}/${CONTROLLERS.FEEDBACK_CONTROLLER_PRIVATE}`,
329
+ UPDATE: (uuid: string) => `${ROOT}/${CONTROLLERS.FEEDBACK_CONTROLLER_PRIVATE}/${uuid}`,
313
330
  CHECK_IF_USER_READY_FOR_FEEDBACK: `${ROOT}/${CONTROLLERS.FEEDBACK_CONTROLLER_PRIVATE}/${CONTROLLERS.FEEDBACK_ROUTES.CHECK_IF_USER_READY_FOR_FEEDBACK}`,
314
331
  },
315
332
  FEEDBACK_PUBLIC: {
333
+ CREATE: `${ROOT}/${CONTROLLERS.FEEDBACK_CONTROLLER_PUBLIC}`,
334
+ UPDATE: (uuid: string) => `${ROOT}/${CONTROLLERS.FEEDBACK_CONTROLLER_PUBLIC}/${uuid}`,
316
335
  CHECK_IF_USER_READY_FOR_FEEDBACK: `${ROOT}/${CONTROLLERS.FEEDBACK_CONTROLLER_PUBLIC}/${CONTROLLERS.FEEDBACK_ROUTES.CHECK_IF_USER_READY_FOR_FEEDBACK}`,
317
336
  },
318
337
  DAILY_STREAK_PRIVATE: {
@@ -325,14 +344,22 @@ export const REST_API = {
325
344
  },
326
345
  WEBMASTER_PRIVATE: {
327
346
  GET_MY: `${ROOT}/${CONTROLLERS.WEBMASTER_CONTROLLER_PRIVATE}/${CONTROLLERS.WEBMASTER_ROUTES.GET_MY}`,
347
+ GET_BALANCE_OVERVIEW: `${ROOT}/${CONTROLLERS.WEBMASTER_CONTROLLER_PRIVATE}/${CONTROLLERS.WEBMASTER_ROUTES.GET_BALANCE_OVERVIEW}`,
328
348
  CREATE: `${ROOT}/${CONTROLLERS.WEBMASTER_CONTROLLER_PRIVATE}/${CONTROLLERS.WEBMASTER_ROUTES.CREATE}`,
349
+ CREATE_WITHDRAWAL_REQUEST: `${ROOT}/${CONTROLLERS.WEBMASTER_CONTROLLER_PRIVATE}/${CONTROLLERS.WEBMASTER_ROUTES.CREATE_WITHDRAWAL_REQUEST}`,
329
350
  UPDATE: (uuid: string) =>
330
351
  `${ROOT}/${CONTROLLERS.WEBMASTER_CONTROLLER_PRIVATE}/${CONTROLLERS.WEBMASTER_ROUTES.UPDATE(uuid)}`,
352
+ CONFIRM_WITHDRAWAL: (uuid: string) =>
353
+ `${ROOT}/${CONTROLLERS.WEBMASTER_CONTROLLER_PRIVATE}/${CONTROLLERS.WEBMASTER_ROUTES.CONFIRM_WITHDRAWAL(uuid)}`,
331
354
  },
332
355
  TOOL: {
333
356
  FIND_ALL: `${ROOT}/${CONTROLLERS.TOOL_CONTROLLER}/${CONTROLLERS.TOOL_ROUTES.FIND_ALL}`,
334
357
  GET_FORMATTED: `${ROOT}/${CONTROLLERS.TOOL_CONTROLLER}/${CONTROLLERS.TOOL_ROUTES.GET_FORMATTED}`,
335
358
  },
359
+ TOOL_JOB_PRIVATE: {
360
+ FIND_BY_UUID: (uuid: string) =>
361
+ `${ROOT}/${CONTROLLERS.TOOL_JOB_CONTROLLER_PRIVATE}/${CONTROLLERS.TOOL_JOB_ROUTES.FIND_BY_UUID(uuid)}`,
362
+ },
336
363
  MUSIC_PUBLIC: {
337
364
  CONFIG: `${ROOT}/${CONTROLLERS.MUSIC_CONTROLLER_PUBLIC}/${CONTROLLERS.MUSIC_ROUTES.CONFIG}`,
338
365
  EXECUTE: `${ROOT}/${CONTROLLERS.MUSIC_CONTROLLER_PUBLIC}/${CONTROLLERS.MUSIC_ROUTES.EXECUTE}`,
@@ -528,14 +555,34 @@ export const REST_API = {
528
555
  PARAPHRASE_PUBLIC: {
529
556
  CONFIG: `${ROOT}/${CONTROLLERS.PARAPHRASE_CONTROLLER_PUBLIC}/${CONTROLLERS.PARAPHRASE_ROUTES.CONFIG}`,
530
557
  EXECUTE: `${ROOT}/${CONTROLLERS.PARAPHRASE_CONTROLLER_PUBLIC}/${CONTROLLERS.PARAPHRASE_ROUTES.EXECUTE}`,
558
+ GET_JOBS: `${ROOT}/${CONTROLLERS.PARAPHRASE_CONTROLLER_PUBLIC}/${CONTROLLERS.PARAPHRASE_ROUTES.GET_JOBS}`,
531
559
  GET_JOB: (uuid: string) =>
532
560
  `${ROOT}/${CONTROLLERS.PARAPHRASE_CONTROLLER_PUBLIC}/${CONTROLLERS.PARAPHRASE_ROUTES.GET_JOB(uuid)}`,
561
+ UPDATE: (uuid: string) =>
562
+ `${ROOT}/${CONTROLLERS.PARAPHRASE_CONTROLLER_PUBLIC}/${CONTROLLERS.PARAPHRASE_ROUTES.UPDATE(uuid)}`,
563
+ SET_REACTION: (uuid: string) =>
564
+ `${ROOT}/${CONTROLLERS.PARAPHRASE_CONTROLLER_PUBLIC}/${CONTROLLERS.PARAPHRASE_ROUTES.SET_REACTION(uuid)}`,
565
+ DELETE: (uuid: string) =>
566
+ `${ROOT}/${CONTROLLERS.PARAPHRASE_CONTROLLER_PUBLIC}/${CONTROLLERS.PARAPHRASE_ROUTES.DELETE(uuid)}`,
567
+ DELETE_ALL: `${ROOT}/${CONTROLLERS.PARAPHRASE_CONTROLLER_PUBLIC}/${CONTROLLERS.PARAPHRASE_ROUTES.DELETE_ALL}`,
568
+ RETRY: (uuid: string) =>
569
+ `${ROOT}/${CONTROLLERS.PARAPHRASE_CONTROLLER_PUBLIC}/${CONTROLLERS.PARAPHRASE_ROUTES.RETRY(uuid)}`,
533
570
  },
534
571
  PARAPHRASE_PRIVATE: {
535
572
  CONFIG: `${ROOT}/${CONTROLLERS.PARAPHRASE_CONTROLLER_PRIVATE}/${CONTROLLERS.PARAPHRASE_ROUTES.CONFIG}`,
536
573
  EXECUTE: `${ROOT}/${CONTROLLERS.PARAPHRASE_CONTROLLER_PRIVATE}/${CONTROLLERS.PARAPHRASE_ROUTES.EXECUTE}`,
574
+ GET_JOBS: `${ROOT}/${CONTROLLERS.PARAPHRASE_CONTROLLER_PRIVATE}/${CONTROLLERS.PARAPHRASE_ROUTES.GET_JOBS}`,
537
575
  GET_JOB: (uuid: string) =>
538
576
  `${ROOT}/${CONTROLLERS.PARAPHRASE_CONTROLLER_PRIVATE}/${CONTROLLERS.PARAPHRASE_ROUTES.GET_JOB(uuid)}`,
577
+ UPDATE: (uuid: string) =>
578
+ `${ROOT}/${CONTROLLERS.PARAPHRASE_CONTROLLER_PRIVATE}/${CONTROLLERS.PARAPHRASE_ROUTES.UPDATE(uuid)}`,
579
+ SET_REACTION: (uuid: string) =>
580
+ `${ROOT}/${CONTROLLERS.PARAPHRASE_CONTROLLER_PRIVATE}/${CONTROLLERS.PARAPHRASE_ROUTES.SET_REACTION(uuid)}`,
581
+ DELETE: (uuid: string) =>
582
+ `${ROOT}/${CONTROLLERS.PARAPHRASE_CONTROLLER_PRIVATE}/${CONTROLLERS.PARAPHRASE_ROUTES.DELETE(uuid)}`,
583
+ DELETE_ALL: `${ROOT}/${CONTROLLERS.PARAPHRASE_CONTROLLER_PRIVATE}/${CONTROLLERS.PARAPHRASE_ROUTES.DELETE_ALL}`,
584
+ RETRY: (uuid: string) =>
585
+ `${ROOT}/${CONTROLLERS.PARAPHRASE_CONTROLLER_PRIVATE}/${CONTROLLERS.PARAPHRASE_ROUTES.RETRY(uuid)}`,
539
586
  },
540
587
  PRESENTATION_PUBLIC: {
541
588
  CONFIG: `${ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.CONFIG}`,
@@ -704,21 +751,27 @@ export const REST_API = {
704
751
  },
705
752
  UI_NOTIFICATION_PUBLIC: {
706
753
  GET_BY_PAGE: `${ROOT}/${CONTROLLERS.UI_NOTIFICATION_PUBLIC_CONTROLLER}/${CONTROLLERS.UI_NOTIFICATION_ROUTES.GET_BY_PAGE}`,
707
- COMPLETE: `${ROOT}/${CONTROLLERS.UI_NOTIFICATION_PUBLIC_CONTROLLER}/${CONTROLLERS.UI_NOTIFICATION_ROUTES.COMPLETE}`,
708
- CANCEL: `${ROOT}/${CONTROLLERS.UI_NOTIFICATION_PUBLIC_CONTROLLER}/${CONTROLLERS.UI_NOTIFICATION_ROUTES.CANCEL}`,
754
+ COMPLETE: (uuid: string) =>
755
+ `${ROOT}/${CONTROLLERS.UI_NOTIFICATION_PUBLIC_CONTROLLER}/${CONTROLLERS.UI_NOTIFICATION_ROUTES.COMPLETE(uuid)}`,
756
+ CANCEL: (uuid: string) =>
757
+ `${ROOT}/${CONTROLLERS.UI_NOTIFICATION_PUBLIC_CONTROLLER}/${CONTROLLERS.UI_NOTIFICATION_ROUTES.CANCEL(uuid)}`,
709
758
  },
710
759
  UI_NOTIFICATION_PRIVATE: {
711
760
  GET_BY_PAGE: `${ROOT}/${CONTROLLERS.UI_NOTIFICATION_PRIVATE_CONTROLLER}/${CONTROLLERS.UI_NOTIFICATION_ROUTES.GET_BY_PAGE}`,
712
- COMPLETE: `${ROOT}/${CONTROLLERS.UI_NOTIFICATION_PRIVATE_CONTROLLER}/${CONTROLLERS.UI_NOTIFICATION_ROUTES.COMPLETE}`,
713
- CANCEL: `${ROOT}/${CONTROLLERS.UI_NOTIFICATION_PRIVATE_CONTROLLER}/${CONTROLLERS.UI_NOTIFICATION_ROUTES.CANCEL}`,
761
+ COMPLETE: (uuid: string) =>
762
+ `${ROOT}/${CONTROLLERS.UI_NOTIFICATION_PRIVATE_CONTROLLER}/${CONTROLLERS.UI_NOTIFICATION_ROUTES.COMPLETE(uuid)}`,
763
+ CANCEL: (uuid: string) =>
764
+ `${ROOT}/${CONTROLLERS.UI_NOTIFICATION_PRIVATE_CONTROLLER}/${CONTROLLERS.UI_NOTIFICATION_ROUTES.CANCEL(uuid)}`,
714
765
  },
715
766
  REFERRAL_PUBLIC: {
716
767
  GET_MY_BONUSES: `${ROOT}/${CONTROLLERS.REFERRAL_PUBLIC_CONTROLLER}/${CONTROLLERS.REFERRAL_ROUTES.GET_MY_BONUSES}`,
717
- VALIDATE: `${ROOT}/${CONTROLLERS.REFERRAL_PUBLIC_CONTROLLER}/${CONTROLLERS.REFERRAL_ROUTES.VALIDATE}`,
768
+ VALIDATE: (partnerId: string) =>
769
+ `${ROOT}/${CONTROLLERS.REFERRAL_PUBLIC_CONTROLLER}/${CONTROLLERS.REFERRAL_ROUTES.VALIDATE(partnerId)}`,
718
770
  },
719
771
  REFERRAL_PRIVATE: {
720
772
  GET_MY_BONUSES: `${ROOT}/${CONTROLLERS.REFERRAL_PRIVATE_CONTROLLER}/${CONTROLLERS.REFERRAL_ROUTES.GET_MY_BONUSES}`,
721
- VALIDATE: `${ROOT}/${CONTROLLERS.REFERRAL_PRIVATE_CONTROLLER}/${CONTROLLERS.REFERRAL_ROUTES.VALIDATE}`,
773
+ VALIDATE: (partnerId: string) =>
774
+ `${ROOT}/${CONTROLLERS.REFERRAL_PRIVATE_CONTROLLER}/${CONTROLLERS.REFERRAL_ROUTES.VALIDATE(partnerId)}`,
722
775
  },
723
776
  FORM_SUBMISSION_PUBLIC: {
724
777
  CREATE: `${ROOT}/${CONTROLLERS.FORM_SUBMISSION_PUBLIC_CONTROLLER}/${CONTROLLERS.FORM_SUBMISSION_ROUTES.CREATE}`,
@@ -757,6 +810,7 @@ export const REST_API = {
757
810
  },
758
811
  PAYMENT: {
759
812
  HISTORY: `${ROOT}/${CONTROLLERS.PAYMENT_CONTROLLER}/${CONTROLLERS.PAYMENT_ROUTES.HISTORY}`,
813
+ REFUND: `${ROOT}/${CONTROLLERS.PAYMENT_CONTROLLER}/${CONTROLLERS.PAYMENT_ROUTES.REFUND}`,
760
814
  },
761
815
  COURSE: {
762
816
  FIND_BY_UUID: `${ROOT}/${CONTROLLERS.COURSE_CONTROLLER}/${CONTROLLERS.COURSE_ROUTES.FIND_BY_UUID}`,
@@ -788,9 +842,6 @@ export const REST_API = {
788
842
  DELETE_BY_KEY: (namespace: string, key: string) =>
789
843
  `${ROOT}/${CONTROLLERS.KEY_VALUE_NAMESPACE_CONTROLLER}/${CONTROLLERS.KEY_VALUE_NAMESPACE_ROUTES.DELETE_BY_KEY(namespace, key)}`,
790
844
  },
791
- AI_PROXY: {
792
- IMAGE_CALLBACK: `${ROOT}/${CONTROLLERS.AI_PROXY_CONTROLLER}/${CONTROLLERS.AI_PROXY_ROUTES.IMAGE_CALLBACK}`,
793
- },
794
845
  CLOUD_PAYMENTS: {
795
846
  CALLBACK: `${ROOT}/${CONTROLLERS.CLOUD_PAYMENTS_CONTROLLER}/${CONTROLLERS.CLOUD_PAYMENTS_ROUTES.CALLBACK}`,
796
847
  },
@@ -802,4 +853,70 @@ export const REST_API = {
802
853
  FILE_UPLOAD: `${ROOT}/${CONTROLLERS.B2B_CONTROLLER}/${CONTROLLERS.B2B_ROUTES.FILE_UPLOAD}`,
803
854
  BALANCE_TOP_UP: `${ROOT}/${CONTROLLERS.B2B_CONTROLLER}/${CONTROLLERS.B2B_ROUTES.BALANCE_TOP_UP}`,
804
855
  },
856
+ COMMUNITY_PRIVATE: {
857
+ GET_ALL: `${ROOT}/${CONTROLLERS.COMMUNITY_CONTROLLER_PRIVATE}/${CONTROLLERS.COMMUNITY_ROUTES_PRIVATE.GET_ALL}`,
858
+ GET_MY: `${ROOT}/${CONTROLLERS.COMMUNITY_CONTROLLER_PRIVATE}/${CONTROLLERS.COMMUNITY_ROUTES_PRIVATE.GET_MY}`,
859
+ GET_BY_UUID: (uuid: string) =>
860
+ `${ROOT}/${CONTROLLERS.COMMUNITY_CONTROLLER_PRIVATE}/${CONTROLLERS.COMMUNITY_ROUTES_PRIVATE.GET_BY_UUID(uuid)}`,
861
+ GET_BY_USER_ID: (uuid: string) =>
862
+ `${ROOT}/${CONTROLLERS.COMMUNITY_CONTROLLER_PRIVATE}/${CONTROLLERS.COMMUNITY_ROUTES_PRIVATE.GET_BY_USER_ID(uuid)}`,
863
+ CREATE: `${ROOT}/${CONTROLLERS.COMMUNITY_CONTROLLER_PRIVATE}/${CONTROLLERS.COMMUNITY_ROUTES_PRIVATE.CREATE}`,
864
+ UPDATE: (uuid: string) =>
865
+ `${ROOT}/${CONTROLLERS.COMMUNITY_CONTROLLER_PRIVATE}/${CONTROLLERS.COMMUNITY_ROUTES_PRIVATE.UPDATE(uuid)}`,
866
+ DELETE: (uuid: string) =>
867
+ `${ROOT}/${CONTROLLERS.COMMUNITY_CONTROLLER_PRIVATE}/${CONTROLLERS.COMMUNITY_ROUTES_PRIVATE.DELETE(uuid)}`,
868
+ ARCHIVE: (uuid: string) =>
869
+ `${ROOT}/${CONTROLLERS.COMMUNITY_CONTROLLER_PRIVATE}/${CONTROLLERS.COMMUNITY_ROUTES_PRIVATE.ARCHIVE(uuid)}`,
870
+ GET_MY_LIKE: `${ROOT}/${CONTROLLERS.COMMUNITY_CONTROLLER_PRIVATE}/${CONTROLLERS.COMMUNITY_ROUTES_PRIVATE.GET_MY_LIKE}`,
871
+ GET_MY_FAVORITE: `${ROOT}/${CONTROLLERS.COMMUNITY_CONTROLLER_PRIVATE}/${CONTROLLERS.COMMUNITY_ROUTES_PRIVATE.GET_MY_FAVORITE}`,
872
+ LIKE: (uuid: string) =>
873
+ `${ROOT}/${CONTROLLERS.COMMUNITY_CONTROLLER_PRIVATE}/${CONTROLLERS.COMMUNITY_ROUTES_PRIVATE.LIKE(uuid)}`,
874
+ FAVORITE: (uuid: string) =>
875
+ `${ROOT}/${CONTROLLERS.COMMUNITY_CONTROLLER_PRIVATE}/${CONTROLLERS.COMMUNITY_ROUTES_PRIVATE.FAVORITE(uuid)}`,
876
+ REPORT: (uuid: string) =>
877
+ `${ROOT}/${CONTROLLERS.COMMUNITY_CONTROLLER_PRIVATE}/${CONTROLLERS.COMMUNITY_ROUTES_PRIVATE.REPORT(uuid)}`,
878
+ },
879
+ COMMUNITY_PUBLIC: {
880
+ GET_ALL: `${ROOT}/${CONTROLLERS.COMMUNITY_CONTROLLER_PUBLIC}/${CONTROLLERS.COMMUNITY_ROUTES_PUBLIC.GET_ALL}`,
881
+ GET_BY_UUID: (uuid: string) =>
882
+ `${ROOT}/${CONTROLLERS.COMMUNITY_CONTROLLER_PUBLIC}/${CONTROLLERS.COMMUNITY_ROUTES_PUBLIC.GET_BY_UUID(uuid)}`,
883
+ },
884
+ USER_PROFILE: {
885
+ GET_PROFILE_INFO: `${ROOT}/${CONTROLLERS.USER_PROFILE_CONTROLLER}/${CONTROLLERS.USER_PROFILE_ROUTES.GET_PROFILE_INFO}`,
886
+ UPLOAD_AVATAR: `${ROOT}/${CONTROLLERS.USER_PROFILE_CONTROLLER}/${CONTROLLERS.USER_PROFILE_ROUTES.UPLOAD_AVATAR}`,
887
+ UPDATE_PROFILE: `${ROOT}/${CONTROLLERS.USER_PROFILE_CONTROLLER}/${CONTROLLERS.USER_PROFILE_ROUTES.UPDATE_PROFILE}`,
888
+ DELETE_AVATAR: `${ROOT}/${CONTROLLERS.USER_PROFILE_CONTROLLER}/${CONTROLLERS.USER_PROFILE_ROUTES.DELETE_AVATAR}`,
889
+ },
890
+ IMAGE_GENERATION_PUBLIC: {
891
+ CONFIG: `${ROOT}/${CONTROLLERS.IMAGE_GENERATION_CONTROLLER_PUBLIC}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.CONFIG}`,
892
+ EXECUTE: `${ROOT}/${CONTROLLERS.IMAGE_GENERATION_CONTROLLER_PUBLIC}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.EXECUTE}`,
893
+ GET_JOBS: `${ROOT}/${CONTROLLERS.IMAGE_GENERATION_CONTROLLER_PUBLIC}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.GET_JOBS}`,
894
+ GET_JOB: (uuid: string) =>
895
+ `${ROOT}/${CONTROLLERS.IMAGE_GENERATION_CONTROLLER_PUBLIC}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.GET_JOB(uuid)}`,
896
+ UPDATE: (uuid: string) =>
897
+ `${ROOT}/${CONTROLLERS.IMAGE_GENERATION_CONTROLLER_PUBLIC}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.UPDATE(uuid)}`,
898
+ SET_REACTION: (uuid: string) =>
899
+ `${ROOT}/${CONTROLLERS.IMAGE_GENERATION_CONTROLLER_PUBLIC}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.SET_REACTION(uuid)}`,
900
+ DELETE: (uuid: string) =>
901
+ `${ROOT}/${CONTROLLERS.IMAGE_GENERATION_CONTROLLER_PUBLIC}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.DELETE(uuid)}`,
902
+ DELETE_ALL: `${ROOT}/${CONTROLLERS.IMAGE_GENERATION_CONTROLLER_PUBLIC}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.DELETE_ALL}`,
903
+ RETRY: (uuid: string) =>
904
+ `${ROOT}/${CONTROLLERS.IMAGE_GENERATION_CONTROLLER_PUBLIC}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.RETRY(uuid)}`,
905
+ },
906
+ IMAGE_GENERATION_PRIVATE: {
907
+ CONFIG: `${ROOT}/${CONTROLLERS.IMAGE_GENERATION_CONTROLLER_PRIVATE}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.CONFIG}`,
908
+ EXECUTE: `${ROOT}/${CONTROLLERS.IMAGE_GENERATION_CONTROLLER_PRIVATE}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.EXECUTE}`,
909
+ GET_JOBS: `${ROOT}/${CONTROLLERS.IMAGE_GENERATION_CONTROLLER_PRIVATE}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.GET_JOBS}`,
910
+ GET_JOB: (uuid: string) =>
911
+ `${ROOT}/${CONTROLLERS.IMAGE_GENERATION_CONTROLLER_PRIVATE}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.GET_JOB(uuid)}`,
912
+ UPDATE: (uuid: string) =>
913
+ `${ROOT}/${CONTROLLERS.IMAGE_GENERATION_CONTROLLER_PRIVATE}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.UPDATE(uuid)}`,
914
+ SET_REACTION: (uuid: string) =>
915
+ `${ROOT}/${CONTROLLERS.IMAGE_GENERATION_CONTROLLER_PRIVATE}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.SET_REACTION(uuid)}`,
916
+ DELETE: (uuid: string) =>
917
+ `${ROOT}/${CONTROLLERS.IMAGE_GENERATION_CONTROLLER_PRIVATE}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.DELETE(uuid)}`,
918
+ DELETE_ALL: `${ROOT}/${CONTROLLERS.IMAGE_GENERATION_CONTROLLER_PRIVATE}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.DELETE_ALL}`,
919
+ RETRY: (uuid: string) =>
920
+ `${ROOT}/${CONTROLLERS.IMAGE_GENERATION_CONTROLLER_PRIVATE}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.RETRY(uuid)}`,
921
+ },
805
922
  } as const;
@@ -7,5 +7,6 @@ exports.AI_MODEL_ROUTES = {
7
7
  FIND_BY_UUID: (uuid) => `by/uuid/${uuid}`,
8
8
  GET_ALL: 'all',
9
9
  GET_FORMATTED: 'formatted',
10
+ GET_FORMATTED_V2: 'formatted/v2',
10
11
  AVAILABLE: 'available',
11
12
  };
@@ -11,7 +11,6 @@ exports.CHAT_PRIVATE_ROUTES = {
11
11
  FIND_MANY: '',
12
12
  FIND_BY_UUID: (uuid) => `${uuid}`,
13
13
  SEND_TEXT_MESSAGE: (uuid) => `${uuid}/messages/text`,
14
- SEND_IMAGE_MESSAGE: (uuid) => `${uuid}/messages/image`,
15
14
  ARCHIVE: 'archive',
16
15
  DELETE: (uuid) => `${uuid}`,
17
16
  UPDATE: (uuid) => `${uuid}`,
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.COMMUNITY_ROUTES_PUBLIC = exports.COMMUNITY_ROUTES_PRIVATE = exports.COMMUNITY_CONTROLLER_PUBLIC = exports.COMMUNITY_CONTROLLER_PRIVATE = void 0;
4
+ exports.COMMUNITY_CONTROLLER_PRIVATE = 'private/community/posts';
5
+ exports.COMMUNITY_CONTROLLER_PUBLIC = 'public/community/posts';
6
+ exports.COMMUNITY_ROUTES_PRIVATE = {
7
+ GET_ALL: '',
8
+ GET_MY: 'my',
9
+ GET_MY_LIKE: 'my/likes',
10
+ GET_MY_FAVORITE: 'my/favorites',
11
+ GET_BY_UUID: (uuid) => `by/uuid/${uuid}`,
12
+ GET_BY_USER_ID: (uuid) => `by/user/${uuid}`,
13
+ CREATE: '',
14
+ UPDATE: (uuid) => `${uuid}`,
15
+ DELETE: (uuid) => `${uuid}`,
16
+ ARCHIVE: (uuid) => `${uuid}/archive`,
17
+ LIKE: (uuid) => `${uuid}/like`,
18
+ FAVORITE: (uuid) => `${uuid}/favorite`,
19
+ REPORT: (uuid) => `report/${uuid}`,
20
+ LIKES_COUNT: 'my/count',
21
+ };
22
+ exports.COMMUNITY_ROUTES_PUBLIC = {
23
+ GET_ALL: '',
24
+ GET_BY_UUID: (uuid) => `by/uuid/${uuid}`,
25
+ };
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IMAGE_GENERATION_ROUTES = exports.IMAGE_GENERATION_CONTROLLER_PUBLIC = exports.IMAGE_GENERATION_CONTROLLER_PRIVATE = void 0;
4
+ exports.IMAGE_GENERATION_CONTROLLER_PRIVATE = 'private/tools/image-generation';
5
+ exports.IMAGE_GENERATION_CONTROLLER_PUBLIC = 'public/tools/image-generation';
6
+ exports.IMAGE_GENERATION_ROUTES = {
7
+ CONFIG: 'config',
8
+ EXECUTE: 'execute',
9
+ GET_JOBS: 'jobs',
10
+ GET_JOB: (uuid) => `jobs/${uuid}`,
11
+ UPDATE: (uuid) => `jobs/${uuid}`,
12
+ SET_REACTION: (uuid) => `jobs/${uuid}/reaction`,
13
+ DELETE: (uuid) => `jobs/${uuid}`,
14
+ DELETE_ALL: 'jobs',
15
+ RETRY: (uuid) => `jobs/${uuid}/retry`,
16
+ };
@@ -30,7 +30,6 @@ __exportStar(require("./form-submission"), exports);
30
30
  __exportStar(require("./key-value"), exports);
31
31
  __exportStar(require("./referral"), exports);
32
32
  __exportStar(require("./message"), exports);
33
- __exportStar(require("./ai-proxy"), exports);
34
33
  __exportStar(require("./page"), exports);
35
34
  __exportStar(require("./payment"), exports);
36
35
  __exportStar(require("./presentation"), exports);
@@ -70,3 +69,6 @@ __exportStar(require("./webmaster"), exports);
70
69
  __exportStar(require("./music"), exports);
71
70
  __exportStar(require("./webmaster-click"), exports);
72
71
  __exportStar(require("./b2b"), exports);
72
+ __exportStar(require("./community"), exports);
73
+ __exportStar(require("./user-profile"), exports);
74
+ __exportStar(require("./image-generation"), exports);
@@ -7,4 +7,5 @@ exports.PAGE_ROUTES = {
7
7
  GET_ALL: 'all',
8
8
  FIND_BY_ALIAS: (alias) => `by/alias/${alias}`,
9
9
  GET_ALL_WITH_RELATIONS: 'by/all',
10
+ MODEL_PAGES: 'by/type/model',
10
11
  };
@@ -6,5 +6,11 @@ exports.PARAPHRASE_CONTROLLER_PUBLIC = 'public/tools/paraphrase';
6
6
  exports.PARAPHRASE_ROUTES = {
7
7
  CONFIG: 'config',
8
8
  EXECUTE: 'execute',
9
+ GET_JOBS: 'jobs',
9
10
  GET_JOB: (uuid) => `jobs/${uuid}`,
11
+ UPDATE: (uuid) => `jobs/${uuid}`,
12
+ SET_REACTION: (uuid) => `jobs/${uuid}/reaction`,
13
+ DELETE: (uuid) => `jobs/${uuid}`,
14
+ DELETE_ALL: 'jobs',
15
+ RETRY: (uuid) => `jobs/${uuid}/retry`,
10
16
  };
@@ -4,4 +4,5 @@ exports.PAYMENT_ROUTES = exports.PAYMENT_CONTROLLER = void 0;
4
4
  exports.PAYMENT_CONTROLLER = 'payment';
5
5
  exports.PAYMENT_ROUTES = {
6
6
  HISTORY: 'history',
7
+ REFUND: 'refund',
7
8
  };
@@ -29,4 +29,5 @@ exports.PRESENTATION_ROUTES = {
29
29
  CREATE_SLIDE_OUTLINE: (presentationId) => `${presentationId}/outline`,
30
30
  EXPORT_AS_PPTX: (uuid) => `${uuid}/export-as-pptx`,
31
31
  DELETE_ALL: '',
32
+ SET_REACTION: (uuid) => `${uuid}/reaction`,
32
33
  };