@purpleschool/gptbot 0.9.96 → 0.10.0

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 (344) hide show
  1. package/api/controllers/http/auth.ts +1 -0
  2. package/api/controllers/http/b2b.ts +1 -0
  3. package/api/controllers/http/index.ts +4 -0
  4. package/api/controllers/http/interior-design.ts +14 -0
  5. package/api/controllers/http/marketplace-card.ts +14 -0
  6. package/api/controllers/http/page.ts +2 -0
  7. package/api/controllers/http/payment.ts +1 -0
  8. package/api/controllers/http/product.ts +1 -0
  9. package/api/controllers/http/solving-edu-task.ts +14 -0
  10. package/api/controllers/http/subscription.ts +2 -1
  11. package/api/controllers/http/team-account.ts +21 -0
  12. package/api/routes.ts +125 -2
  13. package/build/api/controllers/http/auth.js +1 -0
  14. package/build/api/controllers/http/b2b.js +1 -0
  15. package/build/api/controllers/http/index.js +4 -0
  16. package/build/api/controllers/http/interior-design.js +16 -0
  17. package/build/api/controllers/http/marketplace-card.js +16 -0
  18. package/build/api/controllers/http/page.js +2 -0
  19. package/build/api/controllers/http/payment.js +1 -0
  20. package/build/api/controllers/http/product.js +1 -0
  21. package/build/api/controllers/http/solving-edu-task.js +16 -0
  22. package/build/api/controllers/http/subscription.js +2 -1
  23. package/build/api/controllers/http/team-account.js +23 -0
  24. package/build/api/routes.js +93 -2
  25. package/build/commands/b2b/get-b2b-documentation.command.js +99 -0
  26. package/build/commands/b2b/index.js +2 -0
  27. package/build/commands/b2b/send-text-request.command.js +2 -5
  28. package/build/commands/b2b/upload-b2b-file.command.js +12 -0
  29. package/build/commands/cabinet/get-user-statistics-by-month.command.js +4 -0
  30. package/build/commands/chat/archive-all.command.js +1 -4
  31. package/build/commands/chat/check-limit.command.js +7 -0
  32. package/build/commands/chat/create-chat.command.js +0 -1
  33. package/build/commands/chat/find-chats.command.js +1 -1
  34. package/build/commands/chat/get-last-active-chat-command.js +0 -1
  35. package/build/commands/index.js +3 -0
  36. package/build/commands/message/create-text-message.command.js +1 -0
  37. package/build/commands/page/find-pages-by-criteria.command.js +36 -0
  38. package/build/commands/page/index.js +1 -0
  39. package/build/commands/payment/find-payments-by-criteria.command.js +53 -0
  40. package/build/commands/payment/index.js +1 -0
  41. package/build/commands/product/buy-product.command.js +25 -1
  42. package/build/commands/product/index.js +1 -0
  43. package/build/commands/product/refund-product.command.js +15 -0
  44. package/build/commands/subscription/buy-subscription.command.js +24 -1
  45. package/build/commands/subscription/index.js +1 -1
  46. package/build/commands/subscription/refund-subscription.command.js +15 -0
  47. package/build/commands/subscription/upgrade-subscription.command.js +25 -1
  48. package/build/commands/team-account/accept-team-account-invite.command.js +14 -0
  49. package/build/commands/team-account/create-manual-team-product.command.js +15 -0
  50. package/build/commands/team-account/create-manual-team-subscription.command.js +16 -0
  51. package/build/commands/team-account/create-team-account.command.js +16 -0
  52. package/build/commands/team-account/find-current-team-account-products.command.js +11 -0
  53. package/build/commands/team-account/find-current-team-account-subscriptions.command.js +11 -0
  54. package/build/commands/team-account/find-team-account-members.command.js +11 -0
  55. package/build/commands/team-account/find-team-account-operations.command.js +15 -0
  56. package/build/commands/team-account/find-team-account-products.command.js +11 -0
  57. package/build/commands/team-account/find-team-account-subscriptions.command.js +11 -0
  58. package/build/commands/team-account/find-team-accounts-by-name.command.js +18 -0
  59. package/build/commands/team-account/get-my-team-account.command.js +11 -0
  60. package/build/commands/team-account/get-team-account-balance.command.js +15 -0
  61. package/build/commands/team-account/index.js +33 -0
  62. package/build/commands/team-account/invite-team-account-member.command.js +17 -0
  63. package/build/commands/team-account/refund-team-account-balance.command.js +14 -0
  64. package/build/commands/team-account/remove-team-account-member.command.js +15 -0
  65. package/build/commands/team-account/update-team-account-member.command.js +23 -0
  66. package/build/commands/team-account/update-team-account.command.js +18 -0
  67. package/build/commands/team-to-product/add-team-to-product.command.js +16 -0
  68. package/build/commands/team-to-product/get-team-to-product-by-uuid.command.js +14 -0
  69. package/build/commands/team-to-product/get-team-to-products.command.js +14 -0
  70. package/build/commands/team-to-product/index.js +20 -0
  71. package/build/commands/team-to-product/update-team-to-product.command.js +21 -0
  72. package/build/commands/team-to-subscription/add-team-to-subscription.command.js +20 -0
  73. package/build/commands/team-to-subscription/get-team-to-subscription-by-uuid.command.js +14 -0
  74. package/build/commands/team-to-subscription/get-team-to-subscriptions.command.js +14 -0
  75. package/build/commands/team-to-subscription/index.js +20 -0
  76. package/build/commands/team-to-subscription/update-team-to-subscription.command.js +31 -0
  77. package/build/commands/tools/image-editor/image-editor.command.js +1 -0
  78. package/build/commands/tools/image-editor/retry-image-editor-job.command.js +1 -0
  79. package/build/commands/tools/index.js +3 -0
  80. package/build/commands/tools/interior-design/delete-all-interior-design-jobs.command.js +8 -0
  81. package/build/commands/tools/interior-design/delete-interior-design-job-by-uuid.command.js +11 -0
  82. package/build/commands/tools/interior-design/find-interior-design-job-by-uuid.command.js +14 -0
  83. package/build/commands/tools/interior-design/find-interior-design-jobs.command.js +18 -0
  84. package/build/commands/tools/interior-design/get-interior-design-tool-config.command.js +11 -0
  85. package/build/commands/tools/interior-design/index.js +25 -0
  86. package/build/commands/tools/interior-design/interior-design.command.js +20 -0
  87. package/build/commands/tools/interior-design/retry-interior-design-job.command.js +25 -0
  88. package/build/commands/tools/interior-design/set-reaction-to-interior-design-job.command.js +28 -0
  89. package/build/commands/tools/interior-design/update-interior-design-job-title.command.js +17 -0
  90. package/build/commands/tools/marketplace-card/delete-all-marketplace-card-jobs.command.js +10 -0
  91. package/build/commands/tools/marketplace-card/delete-marketplace-card-by-uuid.command.js +13 -0
  92. package/build/commands/tools/marketplace-card/execute-marketplace-card.command.js +48 -0
  93. package/build/commands/tools/marketplace-card/find-marketplace-card-job-by-uuid.command.js +14 -0
  94. package/build/commands/tools/marketplace-card/find-marketplace-card-jobs.command.js +18 -0
  95. package/build/commands/tools/marketplace-card/get-marketplace-card-config.command.js +11 -0
  96. package/build/commands/tools/marketplace-card/index.js +25 -0
  97. package/build/commands/tools/marketplace-card/retry-marketplace-card-job.command.js +51 -0
  98. package/build/commands/tools/marketplace-card/set-reaction-to-marketplace-card.command.js +28 -0
  99. package/build/commands/tools/marketplace-card/update-marketplace-card-job-title.command.js +17 -0
  100. package/build/commands/tools/solving-edu-task/delete-all-solving-edu-task-jobs.command.js +10 -0
  101. package/build/commands/tools/solving-edu-task/delete-solving-edu-task-job-by-uuid.command.js +13 -0
  102. package/build/commands/tools/solving-edu-task/find-solving-edu-task-job-by-uuid.command.js +14 -0
  103. package/build/commands/tools/solving-edu-task/find-solving-edu-task-jobs.command.js +18 -0
  104. package/build/commands/tools/solving-edu-task/get-solving-edu-task-tool-config.command.js +11 -0
  105. package/build/commands/tools/solving-edu-task/index.js +25 -0
  106. package/build/commands/tools/solving-edu-task/retry-solving-edu-task-job.command.js +23 -0
  107. package/build/commands/tools/solving-edu-task/set-reaction-to-solving-edu-task-job.command.js +28 -0
  108. package/build/commands/tools/solving-edu-task/solving-edu-task.command.js +30 -0
  109. package/build/commands/tools/solving-edu-task/update-solving-edu-task-job-title.command.js +17 -0
  110. package/build/commands/user/get-me.command.js +2 -1
  111. package/build/commands/user/get-user-payments.command.js +3 -1
  112. package/build/constants/ai-model/enums/index.js +0 -1
  113. package/build/constants/billing/enums/billing-scope.enum.js +8 -0
  114. package/build/constants/{errors → billing/enums}/index.js +1 -2
  115. package/build/constants/billing/index.js +17 -0
  116. package/build/constants/cabinet/enums/index.js +1 -0
  117. package/build/constants/cabinet/enums/statistics-metric-type.enum.js +8 -0
  118. package/build/constants/index.js +2 -1
  119. package/build/constants/model/enums/unified-model-content-type.enum.js +2 -1
  120. package/build/constants/page/enums/index.js +1 -0
  121. package/build/constants/page/enums/page-sort-by.enum.js +8 -0
  122. package/build/constants/payment/enums/index.js +1 -0
  123. package/build/constants/payment/enums/payment-provider.enum.js +8 -0
  124. package/build/constants/product/enums/product-status.enum.js +1 -0
  125. package/build/constants/subscription/enums/subscription-feature-type.enum.js +5 -1
  126. package/build/constants/subscription/enums/subscription-status.enum.js +1 -0
  127. package/build/constants/subscription/enums/user-to-subscription-marks.enum.js +1 -0
  128. package/build/constants/team-account/enums/index.js +20 -0
  129. package/build/constants/team-account/enums/team-account-invite-status.enum.js +10 -0
  130. package/build/constants/team-account/enums/team-account-member-role.enum.js +9 -0
  131. package/build/constants/team-account/enums/team-account-member-status.enum.js +11 -0
  132. package/build/constants/team-account/enums/team-account-operation-type.enum.js +10 -0
  133. package/build/constants/team-account/index.js +17 -0
  134. package/build/constants/tool/enums/index.js +0 -1
  135. package/build/constants/transaction/enums/user-balance-status.enum.js +3 -0
  136. package/build/constants/ui-notification/enums/ui-notification-type.enum.js +1 -0
  137. package/build/constants/user/enums/user-status.js +1 -0
  138. package/build/helpers/index.js +1 -0
  139. package/build/helpers/interior-design/calculate-interior-design-price.helper.js +13 -0
  140. package/build/helpers/interior-design/index.js +17 -0
  141. package/build/models/ai-model.schema.js +0 -1
  142. package/build/models/b2b/b2b-completions-stream-chunk.schema.js +10 -0
  143. package/build/models/b2b/b2b-file-upload-response.schema.js +11 -0
  144. package/build/models/b2b/index.js +18 -0
  145. package/build/models/chat.schema.js +1 -1
  146. package/build/models/community/community-post-media-data.schema.js +1 -0
  147. package/build/models/index.js +3 -0
  148. package/build/models/json-value.schema.js +13 -0
  149. package/build/models/message.schema.js +1 -0
  150. package/build/models/payment.schema.js +8 -3
  151. package/build/models/product.schema.js +2 -0
  152. package/build/models/prompt.schema.js +0 -2
  153. package/build/models/subscription-feature.schema.js +24 -3
  154. package/build/models/subscription.schema.js +1 -0
  155. package/build/models/team-account/index.js +22 -0
  156. package/build/models/team-account/team-account-invite.schema.js +20 -0
  157. package/build/models/team-account/team-account-member.schema.js +17 -0
  158. package/build/models/team-account/team-account-operation.schema.js +12 -0
  159. package/build/models/team-account/team-account.schema.js +14 -0
  160. package/build/models/team-account/team-to-product.schema.js +21 -0
  161. package/build/models/team-account/team-to-subscription.schema.js +31 -0
  162. package/build/models/tools/image-editor/image-editor-job.schema.js +1 -0
  163. package/build/models/tools/image-editor/image-editor-model.schema.js +6 -0
  164. package/build/models/tools/image-generation/image-generation-model.schema.js +8 -5
  165. package/build/models/tools/index.js +3 -0
  166. package/build/models/tools/interior-design/index.js +19 -0
  167. package/build/models/tools/interior-design/interior-design-config.schema.js +23 -0
  168. package/build/models/tools/interior-design/interior-design-job.schema.js +27 -0
  169. package/build/models/tools/interior-design/interior-design-model.schema.js +34 -0
  170. package/build/models/tools/marketplace-card/index.js +18 -0
  171. package/build/models/tools/marketplace-card/marketplace-card-config.schema.js +30 -0
  172. package/build/models/tools/marketplace-card/marketplace-card-job.schema.js +24 -0
  173. package/build/models/tools/solving-edu-task/index.js +19 -0
  174. package/build/models/tools/solving-edu-task/solving-edu-task-config.schema.js +8 -0
  175. package/build/models/tools/solving-edu-task/solving-edu-task-job.schema.js +25 -0
  176. package/build/models/tools/solving-edu-task/solving-edu-task-model.schema.js +22 -0
  177. package/build/models/tools/video-editor/video-editor-job.schema.js +14 -1
  178. package/build/models/user-profile.schema.js +1 -0
  179. package/commands/b2b/get-b2b-documentation.command.ts +121 -0
  180. package/commands/b2b/index.ts +2 -0
  181. package/commands/b2b/send-text-request.command.ts +2 -5
  182. package/commands/b2b/upload-b2b-file.command.ts +14 -0
  183. package/commands/cabinet/get-user-statistics-by-month.command.ts +5 -1
  184. package/commands/chat/archive-all.command.ts +2 -4
  185. package/commands/chat/check-limit.command.ts +7 -0
  186. package/commands/chat/create-chat.command.ts +0 -1
  187. package/commands/chat/find-chats.command.ts +2 -5
  188. package/commands/chat/get-last-active-chat-command.ts +0 -1
  189. package/commands/index.ts +3 -0
  190. package/commands/message/create-text-message.command.ts +1 -0
  191. package/commands/page/find-pages-by-criteria.command.ts +50 -0
  192. package/commands/page/index.ts +1 -0
  193. package/commands/payment/find-payments-by-criteria.command.ts +63 -0
  194. package/commands/payment/index.ts +1 -0
  195. package/commands/product/buy-product.command.ts +27 -1
  196. package/commands/product/index.ts +1 -0
  197. package/commands/product/refund-product.command.ts +17 -0
  198. package/commands/subscription/buy-subscription.command.ts +26 -1
  199. package/commands/subscription/index.ts +1 -1
  200. package/commands/subscription/refund-subscription.command.ts +17 -0
  201. package/commands/subscription/upgrade-subscription.command.ts +27 -1
  202. package/commands/team-account/accept-team-account-invite.command.ts +16 -0
  203. package/commands/team-account/create-manual-team-product.command.ts +17 -0
  204. package/commands/team-account/create-manual-team-subscription.command.ts +18 -0
  205. package/commands/team-account/create-team-account.command.ts +18 -0
  206. package/commands/team-account/find-current-team-account-products.command.ts +10 -0
  207. package/commands/team-account/find-current-team-account-subscriptions.command.ts +10 -0
  208. package/commands/team-account/find-team-account-members.command.ts +10 -0
  209. package/commands/team-account/find-team-account-operations.command.ts +17 -0
  210. package/commands/team-account/find-team-account-products.command.ts +10 -0
  211. package/commands/team-account/find-team-account-subscriptions.command.ts +10 -0
  212. package/commands/team-account/find-team-accounts-by-name.command.ts +20 -0
  213. package/commands/team-account/get-my-team-account.command.ts +10 -0
  214. package/commands/team-account/get-team-account-balance.command.ts +14 -0
  215. package/commands/team-account/index.ts +17 -0
  216. package/commands/team-account/invite-team-account-member.command.ts +19 -0
  217. package/commands/team-account/refund-team-account-balance.command.ts +16 -0
  218. package/commands/team-account/remove-team-account-member.command.ts +17 -0
  219. package/commands/team-account/update-team-account-member.command.ts +25 -0
  220. package/commands/team-account/update-team-account.command.ts +24 -0
  221. package/commands/team-to-product/add-team-to-product.command.ts +18 -0
  222. package/commands/team-to-product/get-team-to-product-by-uuid.command.ts +16 -0
  223. package/commands/team-to-product/get-team-to-products.command.ts +16 -0
  224. package/commands/team-to-product/index.ts +4 -0
  225. package/commands/team-to-product/update-team-to-product.command.ts +26 -0
  226. package/commands/team-to-subscription/add-team-to-subscription.command.ts +22 -0
  227. package/commands/team-to-subscription/get-team-to-subscription-by-uuid.command.ts +16 -0
  228. package/commands/team-to-subscription/get-team-to-subscriptions.command.ts +16 -0
  229. package/commands/team-to-subscription/index.ts +4 -0
  230. package/commands/team-to-subscription/update-team-to-subscription.command.ts +36 -0
  231. package/commands/tools/image-editor/image-editor.command.ts +1 -0
  232. package/commands/tools/image-editor/retry-image-editor-job.command.ts +1 -0
  233. package/commands/tools/index.ts +3 -0
  234. package/commands/tools/interior-design/delete-all-interior-design-jobs.command.ts +6 -0
  235. package/commands/tools/interior-design/delete-interior-design-job-by-uuid.command.ts +11 -0
  236. package/commands/tools/interior-design/find-interior-design-job-by-uuid.command.ts +16 -0
  237. package/commands/tools/interior-design/find-interior-design-jobs.command.ts +18 -0
  238. package/commands/tools/interior-design/get-interior-design-tool-config.command.ts +10 -0
  239. package/commands/tools/interior-design/index.ts +9 -0
  240. package/commands/tools/interior-design/interior-design.command.ts +21 -0
  241. package/commands/tools/interior-design/retry-interior-design-job.command.ts +27 -0
  242. package/commands/tools/interior-design/set-reaction-to-interior-design-job.command.ts +33 -0
  243. package/commands/tools/interior-design/update-interior-design-job-title.command.ts +19 -0
  244. package/commands/tools/marketplace-card/delete-all-marketplace-card-jobs.command.ts +8 -0
  245. package/commands/tools/marketplace-card/delete-marketplace-card-by-uuid.command.ts +13 -0
  246. package/commands/tools/marketplace-card/execute-marketplace-card.command.ts +53 -0
  247. package/commands/tools/marketplace-card/find-marketplace-card-job-by-uuid.command.ts +16 -0
  248. package/commands/tools/marketplace-card/find-marketplace-card-jobs.command.ts +18 -0
  249. package/commands/tools/marketplace-card/get-marketplace-card-config.command.ts +9 -0
  250. package/commands/tools/marketplace-card/index.ts +9 -0
  251. package/commands/tools/marketplace-card/retry-marketplace-card-job.command.ts +57 -0
  252. package/commands/tools/marketplace-card/set-reaction-to-marketplace-card.command.ts +33 -0
  253. package/commands/tools/marketplace-card/update-marketplace-card-job-title.command.ts +19 -0
  254. package/commands/tools/solving-edu-task/delete-all-solving-edu-task-jobs.command.ts +8 -0
  255. package/commands/tools/solving-edu-task/delete-solving-edu-task-job-by-uuid.command.ts +13 -0
  256. package/commands/tools/solving-edu-task/find-solving-edu-task-job-by-uuid.command.ts +16 -0
  257. package/commands/tools/solving-edu-task/find-solving-edu-task-jobs.command.ts +18 -0
  258. package/commands/tools/solving-edu-task/get-solving-edu-task-tool-config.command.ts +9 -0
  259. package/commands/tools/solving-edu-task/index.ts +9 -0
  260. package/commands/tools/solving-edu-task/retry-solving-edu-task-job.command.ts +25 -0
  261. package/commands/tools/solving-edu-task/set-reaction-to-solving-edu-task-job.command.ts +33 -0
  262. package/commands/tools/solving-edu-task/solving-edu-task.command.ts +31 -0
  263. package/commands/tools/solving-edu-task/update-solving-edu-task-job-title.command.ts +19 -0
  264. package/commands/user/get-me.command.ts +2 -1
  265. package/commands/user/get-user-payments.command.ts +4 -2
  266. package/constants/ai-model/enums/index.ts +0 -1
  267. package/constants/billing/enums/billing-scope.enum.ts +4 -0
  268. package/constants/billing/enums/index.ts +1 -0
  269. package/constants/billing/index.ts +1 -0
  270. package/constants/cabinet/enums/index.ts +1 -0
  271. package/constants/cabinet/enums/statistics-metric-type.enum.ts +4 -0
  272. package/constants/index.ts +2 -1
  273. package/constants/model/enums/unified-model-content-type.enum.ts +2 -1
  274. package/constants/page/enums/index.ts +1 -0
  275. package/constants/page/enums/page-sort-by.enum.ts +4 -0
  276. package/constants/payment/enums/index.ts +1 -0
  277. package/constants/payment/enums/payment-provider.enum.ts +4 -0
  278. package/constants/product/enums/product-status.enum.ts +1 -0
  279. package/constants/subscription/enums/subscription-feature-type.enum.ts +5 -1
  280. package/constants/subscription/enums/subscription-status.enum.ts +1 -0
  281. package/constants/subscription/enums/user-to-subscription-marks.enum.ts +1 -0
  282. package/constants/team-account/enums/index.ts +4 -0
  283. package/constants/team-account/enums/team-account-invite-status.enum.ts +6 -0
  284. package/constants/team-account/enums/team-account-member-role.enum.ts +5 -0
  285. package/constants/team-account/enums/team-account-member-status.enum.ts +7 -0
  286. package/constants/team-account/enums/team-account-operation-type.enum.ts +6 -0
  287. package/constants/team-account/index.ts +1 -0
  288. package/constants/tool/enums/index.ts +0 -1
  289. package/constants/transaction/enums/user-balance-status.enum.ts +3 -0
  290. package/constants/ui-notification/enums/ui-notification-type.enum.ts +1 -0
  291. package/constants/user/enums/user-status.ts +1 -0
  292. package/helpers/index.ts +1 -0
  293. package/helpers/interior-design/calculate-interior-design-price.helper.ts +23 -0
  294. package/helpers/interior-design/index.ts +1 -0
  295. package/models/ai-model.schema.ts +3 -7
  296. package/models/b2b/b2b-completions-stream-chunk.schema.ts +10 -0
  297. package/models/b2b/b2b-file-upload-response.schema.ts +14 -0
  298. package/models/b2b/index.ts +2 -0
  299. package/models/chat.schema.ts +1 -1
  300. package/models/community/community-post-media-data.schema.ts +1 -0
  301. package/models/index.ts +3 -0
  302. package/models/json-value.schema.ts +23 -0
  303. package/models/message.schema.ts +1 -0
  304. package/models/payment.schema.ts +7 -2
  305. package/models/product.schema.ts +2 -0
  306. package/models/prompt.schema.ts +0 -2
  307. package/models/subscription-feature.schema.ts +32 -7
  308. package/models/subscription.schema.ts +7 -1
  309. package/models/team-account/index.ts +6 -0
  310. package/models/team-account/team-account-invite.schema.ts +18 -0
  311. package/models/team-account/team-account-member.schema.ts +15 -0
  312. package/models/team-account/team-account-operation.schema.ts +10 -0
  313. package/models/team-account/team-account.schema.ts +12 -0
  314. package/models/team-account/team-to-product.schema.ts +20 -0
  315. package/models/team-account/team-to-subscription.schema.ts +33 -0
  316. package/models/tools/image-editor/image-editor-job.schema.ts +1 -0
  317. package/models/tools/image-editor/image-editor-model.schema.ts +9 -0
  318. package/models/tools/image-generation/image-generation-model.schema.ts +8 -5
  319. package/models/tools/index.ts +3 -0
  320. package/models/tools/interior-design/index.ts +3 -0
  321. package/models/tools/interior-design/interior-design-config.schema.ts +29 -0
  322. package/models/tools/interior-design/interior-design-job.schema.ts +32 -0
  323. package/models/tools/interior-design/interior-design-model.schema.ts +45 -0
  324. package/models/tools/marketplace-card/index.ts +2 -0
  325. package/models/tools/marketplace-card/marketplace-card-config.schema.ts +33 -0
  326. package/models/tools/marketplace-card/marketplace-card-job.schema.ts +25 -0
  327. package/models/tools/solving-edu-task/index.ts +3 -0
  328. package/models/tools/solving-edu-task/solving-edu-task-config.schema.ts +8 -0
  329. package/models/tools/solving-edu-task/solving-edu-task-job.schema.ts +28 -0
  330. package/models/tools/solving-edu-task/solving-edu-task-model.schema.ts +25 -0
  331. package/models/tools/video-editor/video-editor-job.schema.ts +14 -1
  332. package/models/user-profile.schema.ts +1 -0
  333. package/package.json +1 -1
  334. package/build/commands/subscription/create-custom-subscription-plan.command.js +0 -24
  335. package/build/constants/ai-model/enums/ai-model-content-type.enum.js +0 -7
  336. package/build/constants/errors/errors.js +0 -4351
  337. package/build/constants/errors/verbose.js +0 -9
  338. package/build/constants/tool/enums/tool-type.enum.js +0 -12
  339. package/commands/subscription/create-custom-subscription-plan.command.ts +0 -26
  340. package/constants/ai-model/enums/ai-model-content-type.enum.ts +0 -7
  341. package/constants/errors/errors.ts +0 -4391
  342. package/constants/errors/index.ts +0 -2
  343. package/constants/errors/verbose.ts +0 -7
  344. package/constants/tool/enums/tool-type.enum.ts +0 -8
@@ -16,7 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./buy-subscription.command"), exports);
18
18
  __exportStar(require("./cancel-subscription.command"), exports);
19
- __exportStar(require("./create-custom-subscription-plan.command"), exports);
20
19
  __exportStar(require("./create-subscription.command"), exports);
21
20
  __exportStar(require("./delete-subscription.command"), exports);
22
21
  __exportStar(require("./find-subscription.command"), exports);
@@ -28,3 +27,4 @@ __exportStar(require("./recover-subscription.command"), exports);
28
27
  __exportStar(require("./update-subscription.command"), exports);
29
28
  __exportStar(require("./upgrade-subscription.command"), exports);
30
29
  __exportStar(require("./downgrade-subscription.command"), exports);
30
+ __exportStar(require("./refund-subscription.command"), exports);
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RefundSubscriptionCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ var RefundSubscriptionCommand;
6
+ (function (RefundSubscriptionCommand) {
7
+ RefundSubscriptionCommand.RequestSchema = zod_1.z.object({
8
+ uuid: zod_1.z.string().uuid(),
9
+ });
10
+ RefundSubscriptionCommand.ResponseSchema = zod_1.z.object({
11
+ data: zod_1.z.object({
12
+ isSuccess: zod_1.z.boolean(),
13
+ }),
14
+ });
15
+ })(RefundSubscriptionCommand || (exports.RefundSubscriptionCommand = RefundSubscriptionCommand = {}));
@@ -3,11 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UpgradeSubscriptionCommand = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const models_1 = require("../../models");
6
+ const constants_1 = require("../../constants");
6
7
  var UpgradeSubscriptionCommand;
7
8
  (function (UpgradeSubscriptionCommand) {
8
9
  UpgradeSubscriptionCommand.RequestSchema = zod_1.z.object({
9
10
  upgradeSubscriptionId: zod_1.z.string().uuid(),
10
11
  promocode: zod_1.z.string().optional(),
12
+ provider: zod_1.z.nativeEnum(constants_1.PAYMENT_PROVIDER).optional().default(constants_1.PAYMENT_PROVIDER.CLOUDPAYMENTS),
11
13
  });
12
14
  UpgradeSubscriptionCommand.RequestParamSchema = models_1.UserToSubscriptionSchema.pick({
13
15
  uuid: true,
@@ -26,7 +28,7 @@ var UpgradeSubscriptionCommand;
26
28
  electronic: zod_1.z.number(),
27
29
  }),
28
30
  });
29
- UpgradeSubscriptionCommand.ResponseSchema = zod_1.z.object({
31
+ UpgradeSubscriptionCommand.CloudPaymentsResponseSchema = zod_1.z.object({
30
32
  publicId: zod_1.z.string(),
31
33
  amount: zod_1.z.number(),
32
34
  currency: zod_1.z.string(),
@@ -39,7 +41,29 @@ var UpgradeSubscriptionCommand;
39
41
  data: zod_1.z.object({
40
42
  CloudPayments: zod_1.z.object({
41
43
  CustomerReceipt: IReceiptOrderSchema,
44
+ recurrent: zod_1.z.object({
45
+ period: zod_1.z.number(),
46
+ interval: zod_1.z.string(),
47
+ amount: zod_1.z.number(),
48
+ customerReceipt: IReceiptOrderSchema,
49
+ }),
42
50
  }),
43
51
  }),
52
+ provider: zod_1.z.literal(constants_1.PAYMENT_PROVIDER.CLOUDPAYMENTS),
44
53
  });
54
+ UpgradeSubscriptionCommand.ZenpaymentsResponseSchema = zod_1.z.object({
55
+ provider: zod_1.z.literal(constants_1.PAYMENT_PROVIDER.ZENPAYMENTS),
56
+ checkoutUrl: zod_1.z.string(),
57
+ orderNumber: zod_1.z.string(),
58
+ orderIdClient: zod_1.z.string().nullable(),
59
+ paymentAmount: zod_1.z.number(),
60
+ currencyCode: zod_1.z.string(),
61
+ customerEmail: zod_1.z.string(),
62
+ isSubscription: zod_1.z.boolean(),
63
+ createdAt: zod_1.z.string(),
64
+ });
65
+ UpgradeSubscriptionCommand.ResponseSchema = zod_1.z.discriminatedUnion('provider', [
66
+ UpgradeSubscriptionCommand.CloudPaymentsResponseSchema,
67
+ UpgradeSubscriptionCommand.ZenpaymentsResponseSchema,
68
+ ]);
45
69
  })(UpgradeSubscriptionCommand || (exports.UpgradeSubscriptionCommand = UpgradeSubscriptionCommand = {}));
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AcceptTeamAccountInviteCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../models");
6
+ var AcceptTeamAccountInviteCommand;
7
+ (function (AcceptTeamAccountInviteCommand) {
8
+ AcceptTeamAccountInviteCommand.RequestSchema = zod_1.z.object({
9
+ token: zod_1.z.string().min(1),
10
+ });
11
+ AcceptTeamAccountInviteCommand.ResponseSchema = zod_1.z.object({
12
+ data: models_1.TeamAccountMemberSchema,
13
+ });
14
+ })(AcceptTeamAccountInviteCommand || (exports.AcceptTeamAccountInviteCommand = AcceptTeamAccountInviteCommand = {}));
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateManualTeamProductCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../models");
6
+ var CreateManualTeamProductCommand;
7
+ (function (CreateManualTeamProductCommand) {
8
+ CreateManualTeamProductCommand.RequestSchema = zod_1.z.object({
9
+ teamAccountId: zod_1.z.string().uuid(),
10
+ productId: zod_1.z.string().uuid(),
11
+ });
12
+ CreateManualTeamProductCommand.ResponseSchema = zod_1.z.object({
13
+ data: models_1.TeamToProductSchema,
14
+ });
15
+ })(CreateManualTeamProductCommand || (exports.CreateManualTeamProductCommand = CreateManualTeamProductCommand = {}));
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateManualTeamSubscriptionCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../models");
6
+ var CreateManualTeamSubscriptionCommand;
7
+ (function (CreateManualTeamSubscriptionCommand) {
8
+ CreateManualTeamSubscriptionCommand.RequestSchema = zod_1.z.object({
9
+ teamAccountId: zod_1.z.string().uuid(),
10
+ subscriptionId: zod_1.z.string().uuid(),
11
+ durationMonths: zod_1.z.number().int().min(1).max(36).optional(),
12
+ });
13
+ CreateManualTeamSubscriptionCommand.ResponseSchema = zod_1.z.object({
14
+ data: models_1.TeamToSubscriptionSchema,
15
+ });
16
+ })(CreateManualTeamSubscriptionCommand || (exports.CreateManualTeamSubscriptionCommand = CreateManualTeamSubscriptionCommand = {}));
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateTeamAccountCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../models");
6
+ var CreateTeamAccountCommand;
7
+ (function (CreateTeamAccountCommand) {
8
+ CreateTeamAccountCommand.RequestSchema = zod_1.z.object({
9
+ name: zod_1.z.string().trim().min(1).max(255),
10
+ email: zod_1.z.string().email().optional(),
11
+ logoUUID: zod_1.z.string().uuid().optional(),
12
+ });
13
+ CreateTeamAccountCommand.ResponseSchema = zod_1.z.object({
14
+ data: models_1.TeamAccountSchema,
15
+ });
16
+ })(CreateTeamAccountCommand || (exports.CreateTeamAccountCommand = CreateTeamAccountCommand = {}));
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FindCurrentTeamAccountProductsCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../models");
6
+ var FindCurrentTeamAccountProductsCommand;
7
+ (function (FindCurrentTeamAccountProductsCommand) {
8
+ FindCurrentTeamAccountProductsCommand.ResponseSchema = zod_1.z.object({
9
+ data: zod_1.z.array(models_1.TeamToProductWithProductSchema),
10
+ });
11
+ })(FindCurrentTeamAccountProductsCommand || (exports.FindCurrentTeamAccountProductsCommand = FindCurrentTeamAccountProductsCommand = {}));
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FindCurrentTeamAccountSubscriptionsCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../models");
6
+ var FindCurrentTeamAccountSubscriptionsCommand;
7
+ (function (FindCurrentTeamAccountSubscriptionsCommand) {
8
+ FindCurrentTeamAccountSubscriptionsCommand.ResponseSchema = zod_1.z.object({
9
+ data: zod_1.z.array(models_1.TeamToSubscriptionWithSubscriptionSchema),
10
+ });
11
+ })(FindCurrentTeamAccountSubscriptionsCommand || (exports.FindCurrentTeamAccountSubscriptionsCommand = FindCurrentTeamAccountSubscriptionsCommand = {}));
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FindTeamAccountMembersCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../models");
6
+ var FindTeamAccountMembersCommand;
7
+ (function (FindTeamAccountMembersCommand) {
8
+ FindTeamAccountMembersCommand.ResponseSchema = zod_1.z.object({
9
+ data: zod_1.z.array(models_1.TeamAccountMemberSchema),
10
+ });
11
+ })(FindTeamAccountMembersCommand || (exports.FindTeamAccountMembersCommand = FindTeamAccountMembersCommand = {}));
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FindTeamAccountOperationsCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../models");
6
+ var FindTeamAccountOperationsCommand;
7
+ (function (FindTeamAccountOperationsCommand) {
8
+ FindTeamAccountOperationsCommand.RequestSchema = zod_1.z.object({
9
+ limit: zod_1.z.number().int().min(1).max(200).optional(),
10
+ offset: zod_1.z.number().int().min(0).optional(),
11
+ });
12
+ FindTeamAccountOperationsCommand.ResponseSchema = zod_1.z.object({
13
+ data: zod_1.z.array(models_1.TeamAccountOperationSchema),
14
+ });
15
+ })(FindTeamAccountOperationsCommand || (exports.FindTeamAccountOperationsCommand = FindTeamAccountOperationsCommand = {}));
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FindTeamAccountProductsCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../models");
6
+ var FindTeamAccountProductsCommand;
7
+ (function (FindTeamAccountProductsCommand) {
8
+ FindTeamAccountProductsCommand.ResponseSchema = zod_1.z.object({
9
+ data: zod_1.z.array(models_1.ProductSchema),
10
+ });
11
+ })(FindTeamAccountProductsCommand || (exports.FindTeamAccountProductsCommand = FindTeamAccountProductsCommand = {}));
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FindTeamAccountSubscriptionsCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../models");
6
+ var FindTeamAccountSubscriptionsCommand;
7
+ (function (FindTeamAccountSubscriptionsCommand) {
8
+ FindTeamAccountSubscriptionsCommand.ResponseSchema = zod_1.z.object({
9
+ data: zod_1.z.array(models_1.SubscriptionWithSubTypesSchema),
10
+ });
11
+ })(FindTeamAccountSubscriptionsCommand || (exports.FindTeamAccountSubscriptionsCommand = FindTeamAccountSubscriptionsCommand = {}));
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FindTeamAccountsByNameCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../models");
6
+ var FindTeamAccountsByNameCommand;
7
+ (function (FindTeamAccountsByNameCommand) {
8
+ FindTeamAccountsByNameCommand.RequestSchema = zod_1.z.object({
9
+ name: zod_1.z.string().trim().min(1).optional(),
10
+ limit: zod_1.z.coerce.number().int().min(1).max(100).default(20).optional(),
11
+ offset: zod_1.z.coerce.number().int().min(0).default(0).optional(),
12
+ });
13
+ FindTeamAccountsByNameCommand.ResponseSchema = zod_1.z.object({
14
+ data: zod_1.z.array(models_1.TeamAccountSchema),
15
+ page: zod_1.z.number(),
16
+ totalPages: zod_1.z.number(),
17
+ });
18
+ })(FindTeamAccountsByNameCommand || (exports.FindTeamAccountsByNameCommand = FindTeamAccountsByNameCommand = {}));
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetMyTeamAccountCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../models");
6
+ var GetMyTeamAccountCommand;
7
+ (function (GetMyTeamAccountCommand) {
8
+ GetMyTeamAccountCommand.ResponseSchema = zod_1.z.object({
9
+ data: models_1.TeamAccountSchema.nullable(),
10
+ });
11
+ })(GetMyTeamAccountCommand || (exports.GetMyTeamAccountCommand = GetMyTeamAccountCommand = {}));
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetTeamAccountBalanceCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ var GetTeamAccountBalanceCommand;
6
+ (function (GetTeamAccountBalanceCommand) {
7
+ GetTeamAccountBalanceCommand.ResponseSchema = zod_1.z.object({
8
+ data: zod_1.z.object({
9
+ totalTokenBalance: zod_1.z.number(),
10
+ subscriptionBalance: zod_1.z.number(),
11
+ productBalance: zod_1.z.number(),
12
+ carriedOverBalance: zod_1.z.number(),
13
+ }),
14
+ });
15
+ })(GetTeamAccountBalanceCommand || (exports.GetTeamAccountBalanceCommand = GetTeamAccountBalanceCommand = {}));
@@ -0,0 +1,33 @@
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("./create-team-account.command"), exports);
18
+ __exportStar(require("./update-team-account.command"), exports);
19
+ __exportStar(require("./invite-team-account-member.command"), exports);
20
+ __exportStar(require("./accept-team-account-invite.command"), exports);
21
+ __exportStar(require("./remove-team-account-member.command"), exports);
22
+ __exportStar(require("./update-team-account-member.command"), exports);
23
+ __exportStar(require("./get-my-team-account.command"), exports);
24
+ __exportStar(require("./find-team-account-members.command"), exports);
25
+ __exportStar(require("./find-team-account-operations.command"), exports);
26
+ __exportStar(require("./find-team-account-products.command"), exports);
27
+ __exportStar(require("./find-team-account-subscriptions.command"), exports);
28
+ __exportStar(require("./find-current-team-account-products.command"), exports);
29
+ __exportStar(require("./find-current-team-account-subscriptions.command"), exports);
30
+ __exportStar(require("./get-team-account-balance.command"), exports);
31
+ __exportStar(require("./create-manual-team-subscription.command"), exports);
32
+ __exportStar(require("./create-manual-team-product.command"), exports);
33
+ __exportStar(require("./find-team-accounts-by-name.command"), exports);
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InviteTeamAccountMemberCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../models");
6
+ const constants_1 = require("../../constants");
7
+ var InviteTeamAccountMemberCommand;
8
+ (function (InviteTeamAccountMemberCommand) {
9
+ InviteTeamAccountMemberCommand.RequestSchema = zod_1.z.object({
10
+ email: zod_1.z.string().email(),
11
+ role: zod_1.z.enum([constants_1.TEAM_ACCOUNT_MEMBER_ROLE.ADMIN, constants_1.TEAM_ACCOUNT_MEMBER_ROLE.MEMBER]).optional(),
12
+ tokenLimit: zod_1.z.number().int().positive().optional(),
13
+ });
14
+ InviteTeamAccountMemberCommand.ResponseSchema = zod_1.z.object({
15
+ data: models_1.TeamAccountInviteSchema,
16
+ });
17
+ })(InviteTeamAccountMemberCommand || (exports.InviteTeamAccountMemberCommand = InviteTeamAccountMemberCommand = {}));
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RefundTeamAccountBalanceCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../models");
6
+ var RefundTeamAccountBalanceCommand;
7
+ (function (RefundTeamAccountBalanceCommand) {
8
+ RefundTeamAccountBalanceCommand.RequestSchema = zod_1.z.object({
9
+ amount: zod_1.z.number().int().positive(),
10
+ });
11
+ RefundTeamAccountBalanceCommand.ResponseSchema = zod_1.z.object({
12
+ data: models_1.TeamAccountSchema,
13
+ });
14
+ })(RefundTeamAccountBalanceCommand || (exports.RefundTeamAccountBalanceCommand = RefundTeamAccountBalanceCommand = {}));
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RemoveTeamAccountMemberCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ var RemoveTeamAccountMemberCommand;
6
+ (function (RemoveTeamAccountMemberCommand) {
7
+ RemoveTeamAccountMemberCommand.RequestSchema = zod_1.z.object({
8
+ memberUserId: zod_1.z.string().uuid(),
9
+ });
10
+ RemoveTeamAccountMemberCommand.ResponseSchema = zod_1.z.object({
11
+ data: zod_1.z.object({
12
+ removed: zod_1.z.boolean(),
13
+ }),
14
+ });
15
+ })(RemoveTeamAccountMemberCommand || (exports.RemoveTeamAccountMemberCommand = RemoveTeamAccountMemberCommand = {}));
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateTeamAccountMemberCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../models");
6
+ const constants_1 = require("../../constants");
7
+ var UpdateTeamAccountMemberCommand;
8
+ (function (UpdateTeamAccountMemberCommand) {
9
+ UpdateTeamAccountMemberCommand.RequestSchema = zod_1.z
10
+ .object({
11
+ memberUserId: zod_1.z.string().uuid(),
12
+ role: zod_1.z
13
+ .enum([constants_1.TEAM_ACCOUNT_MEMBER_ROLE.ADMIN, constants_1.TEAM_ACCOUNT_MEMBER_ROLE.MEMBER])
14
+ .optional(),
15
+ tokenLimit: zod_1.z.number().int().positive().nullable().optional(),
16
+ })
17
+ .refine((data) => data.role !== undefined || data.tokenLimit !== undefined, {
18
+ message: 'At least one field must be provided',
19
+ });
20
+ UpdateTeamAccountMemberCommand.ResponseSchema = zod_1.z.object({
21
+ data: models_1.TeamAccountMemberSchema,
22
+ });
23
+ })(UpdateTeamAccountMemberCommand || (exports.UpdateTeamAccountMemberCommand = UpdateTeamAccountMemberCommand = {}));
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateTeamAccountCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../models");
6
+ var UpdateTeamAccountCommand;
7
+ (function (UpdateTeamAccountCommand) {
8
+ UpdateTeamAccountCommand.RequestSchema = zod_1.z
9
+ .object({
10
+ name: zod_1.z.string().trim().min(1).max(255).optional(),
11
+ email: zod_1.z.string().email().optional(),
12
+ logoUUID: zod_1.z.string().uuid().optional(),
13
+ })
14
+ .refine((data) => data.name !== undefined || data.email !== undefined || data.logoUUID !== undefined, { message: 'At least one field must be provided' });
15
+ UpdateTeamAccountCommand.ResponseSchema = zod_1.z.object({
16
+ data: models_1.TeamAccountSchema,
17
+ });
18
+ })(UpdateTeamAccountCommand || (exports.UpdateTeamAccountCommand = UpdateTeamAccountCommand = {}));
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AddTeamToProductCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../models");
6
+ var AddTeamToProductCommand;
7
+ (function (AddTeamToProductCommand) {
8
+ AddTeamToProductCommand.RequestSchema = zod_1.z.object({
9
+ teamAccountId: zod_1.z.string().uuid(),
10
+ productId: zod_1.z.string().uuid(),
11
+ orderId: zod_1.z.string().uuid(),
12
+ });
13
+ AddTeamToProductCommand.ResponseSchema = zod_1.z.object({
14
+ data: models_1.TeamToProductSchema,
15
+ });
16
+ })(AddTeamToProductCommand || (exports.AddTeamToProductCommand = AddTeamToProductCommand = {}));
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetTeamToProductByUuidCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../models");
6
+ var GetTeamToProductByUuidCommand;
7
+ (function (GetTeamToProductByUuidCommand) {
8
+ GetTeamToProductByUuidCommand.RequestSchema = models_1.TeamToProductSchema.pick({
9
+ uuid: true,
10
+ });
11
+ GetTeamToProductByUuidCommand.ResponseSchema = zod_1.z.object({
12
+ data: models_1.TeamToProductSchema,
13
+ });
14
+ })(GetTeamToProductByUuidCommand || (exports.GetTeamToProductByUuidCommand = GetTeamToProductByUuidCommand = {}));
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetTeamToProductsCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../models");
6
+ var GetTeamToProductsCommand;
7
+ (function (GetTeamToProductsCommand) {
8
+ GetTeamToProductsCommand.RequestSchema = zod_1.z.object({
9
+ teamAccountId: zod_1.z.string().uuid(),
10
+ });
11
+ GetTeamToProductsCommand.ResponseSchema = zod_1.z.object({
12
+ data: zod_1.z.array(models_1.TeamToProductWithProductSchema),
13
+ });
14
+ })(GetTeamToProductsCommand || (exports.GetTeamToProductsCommand = GetTeamToProductsCommand = {}));
@@ -0,0 +1,20 @@
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("./add-team-to-product.command"), exports);
18
+ __exportStar(require("./update-team-to-product.command"), exports);
19
+ __exportStar(require("./get-team-to-product-by-uuid.command"), exports);
20
+ __exportStar(require("./get-team-to-products.command"), exports);
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateTeamToProductCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../models");
6
+ var UpdateTeamToProductCommand;
7
+ (function (UpdateTeamToProductCommand) {
8
+ UpdateTeamToProductCommand.RequestParamSchema = models_1.TeamToProductSchema.pick({
9
+ uuid: true,
10
+ });
11
+ UpdateTeamToProductCommand.RequestSchema = models_1.TeamToProductSchema.pick({
12
+ initTokenBalance: true,
13
+ tokenBalance: true,
14
+ status: true,
15
+ expiresAt: true,
16
+ orderId: true,
17
+ }).partial();
18
+ UpdateTeamToProductCommand.ResponseSchema = zod_1.z.object({
19
+ data: models_1.TeamToProductSchema,
20
+ });
21
+ })(UpdateTeamToProductCommand || (exports.UpdateTeamToProductCommand = UpdateTeamToProductCommand = {}));
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AddTeamToSubscriptionCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../models");
6
+ var AddTeamToSubscriptionCommand;
7
+ (function (AddTeamToSubscriptionCommand) {
8
+ AddTeamToSubscriptionCommand.RequestSchema = zod_1.z.object({
9
+ teamAccountId: zod_1.z.string().uuid(),
10
+ subscriptionId: zod_1.z.string().uuid(),
11
+ cloudPaymentsSubscriptionId: zod_1.z.string().optional(),
12
+ zenpaymentsInvoiceNumber: zod_1.z.string().optional(),
13
+ startDate: zod_1.z.coerce.date().optional(),
14
+ downgradedFromTeamSubscriptionId: zod_1.z.string().uuid().nullable().optional(),
15
+ orderId: zod_1.z.string().uuid(),
16
+ });
17
+ AddTeamToSubscriptionCommand.ResponseSchema = zod_1.z.object({
18
+ data: models_1.TeamToSubscriptionSchema,
19
+ });
20
+ })(AddTeamToSubscriptionCommand || (exports.AddTeamToSubscriptionCommand = AddTeamToSubscriptionCommand = {}));
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetTeamToSubscriptionByUuidCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../models");
6
+ var GetTeamToSubscriptionByUuidCommand;
7
+ (function (GetTeamToSubscriptionByUuidCommand) {
8
+ GetTeamToSubscriptionByUuidCommand.RequestSchema = models_1.TeamToSubscriptionSchema.pick({
9
+ uuid: true,
10
+ });
11
+ GetTeamToSubscriptionByUuidCommand.ResponseSchema = zod_1.z.object({
12
+ data: models_1.TeamToSubscriptionSchema,
13
+ });
14
+ })(GetTeamToSubscriptionByUuidCommand || (exports.GetTeamToSubscriptionByUuidCommand = GetTeamToSubscriptionByUuidCommand = {}));
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetTeamToSubscriptionsCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../models");
6
+ var GetTeamToSubscriptionsCommand;
7
+ (function (GetTeamToSubscriptionsCommand) {
8
+ GetTeamToSubscriptionsCommand.RequestSchema = zod_1.z.object({
9
+ teamAccountId: zod_1.z.string().uuid(),
10
+ });
11
+ GetTeamToSubscriptionsCommand.ResponseSchema = zod_1.z.object({
12
+ data: zod_1.z.array(models_1.TeamToSubscriptionWithSubscriptionSchema),
13
+ });
14
+ })(GetTeamToSubscriptionsCommand || (exports.GetTeamToSubscriptionsCommand = GetTeamToSubscriptionsCommand = {}));
@@ -0,0 +1,20 @@
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("./add-team-to-subscription.command"), exports);
18
+ __exportStar(require("./update-team-to-subscription.command"), exports);
19
+ __exportStar(require("./get-team-to-subscription-by-uuid.command"), exports);
20
+ __exportStar(require("./get-team-to-subscriptions.command"), exports);
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateTeamToSubscriptionCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../models");
6
+ var UpdateTeamToSubscriptionCommand;
7
+ (function (UpdateTeamToSubscriptionCommand) {
8
+ UpdateTeamToSubscriptionCommand.RequestParamSchema = models_1.TeamToSubscriptionSchema.pick({
9
+ uuid: true,
10
+ });
11
+ UpdateTeamToSubscriptionCommand.RequestSchema = models_1.TeamToSubscriptionSchema.pick({
12
+ cloudPaymentsSubscriptionId: true,
13
+ zenpaymentsInvoiceNumber: true,
14
+ initTokenBalance: true,
15
+ tokenBalance: true,
16
+ initCarriedOverTokenBalance: true,
17
+ carriedOverTokenBalance: true,
18
+ startDate: true,
19
+ endDate: true,
20
+ status: true,
21
+ active: true,
22
+ type: true,
23
+ intervalEndDate: true,
24
+ marks: true,
25
+ downgradedFromTeamSubscriptionId: true,
26
+ orderId: true,
27
+ }).partial();
28
+ UpdateTeamToSubscriptionCommand.ResponseSchema = zod_1.z.object({
29
+ data: models_1.TeamToSubscriptionSchema,
30
+ });
31
+ })(UpdateTeamToSubscriptionCommand || (exports.UpdateTeamToSubscriptionCommand = UpdateTeamToSubscriptionCommand = {}));
@@ -11,6 +11,7 @@ var ImageEditorCommand;
11
11
  params: zod_1.z.object({
12
12
  imageUrls: zod_1.z.array(zod_1.z.string()),
13
13
  systemPromptId: zod_1.z.string().optional(),
14
+ aspectRatio: zod_1.z.string().optional(),
14
15
  }),
15
16
  });
16
17
  ImageEditorCommand.ResponseSchema = zod_1.z.object({
@@ -15,6 +15,7 @@ var RetryImageEditorJobCommand;
15
15
  .object({
16
16
  attachedFiles: zod_1.z.string().array(),
17
17
  systemPromptId: zod_1.z.string().optional(),
18
+ aspectRatio: zod_1.z.string().optional(),
18
19
  })
19
20
  .optional(),
20
21
  });
@@ -25,3 +25,6 @@ __exportStar(require("./image-editor"), exports);
25
25
  __exportStar(require("./video-editor"), exports);
26
26
  __exportStar(require("./music"), exports);
27
27
  __exportStar(require("./image-generation"), exports);
28
+ __exportStar(require("./marketplace-card"), exports);
29
+ __exportStar(require("./interior-design"), exports);
30
+ __exportStar(require("./solving-edu-task"), exports);