@veruna/api-contracts 6.8.0 → 6.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 (414) hide show
  1. package/build/controllers/index.d.ts +3 -0
  2. package/build/controllers/index.js +10 -1
  3. package/build/controllers/index.js.map +1 -1
  4. package/build/controllers/payment.controllers.d.ts +2 -0
  5. package/build/controllers/payment.controllers.js +6 -0
  6. package/build/controllers/payment.controllers.js.map +1 -0
  7. package/build/controllers/plans.controllers.d.ts +3 -0
  8. package/build/controllers/plans.controllers.js +7 -0
  9. package/build/controllers/plans.controllers.js.map +1 -0
  10. package/build/controllers/subscription.controllers.d.ts +1 -0
  11. package/build/controllers/subscription.controllers.js +5 -0
  12. package/build/controllers/subscription.controllers.js.map +1 -0
  13. package/build/locales/en.d.ts +25 -0
  14. package/build/locales/en.js +25 -0
  15. package/build/locales/en.js.map +1 -1
  16. package/build/locales/index.d.ts +50 -0
  17. package/build/locales/ru.d.ts +25 -0
  18. package/build/locales/ru.js +25 -0
  19. package/build/locales/ru.js.map +1 -1
  20. package/build/locales/validation.d.ts +702 -0
  21. package/build/locales/validation.js +532 -2
  22. package/build/locales/validation.js.map +1 -1
  23. package/build/rest-api.d.ts +167 -90
  24. package/build/rest-api.js +167 -90
  25. package/build/rest-api.js.map +1 -1
  26. package/build/routes/index.d.ts +3 -0
  27. package/build/routes/index.js +9 -1
  28. package/build/routes/index.js.map +1 -1
  29. package/build/routes/payment.routes.d.ts +13 -0
  30. package/build/routes/payment.routes.js +17 -0
  31. package/build/routes/payment.routes.js.map +1 -0
  32. package/build/routes/plans.routes.d.ts +9 -0
  33. package/build/routes/plans.routes.js +13 -0
  34. package/build/routes/plans.routes.js.map +1 -0
  35. package/build/routes/subscription.routes.d.ts +8 -0
  36. package/build/routes/subscription.routes.js +12 -0
  37. package/build/routes/subscription.routes.js.map +1 -0
  38. package/build/tsconfig.tsbuildinfo +1 -1
  39. package/build/v1/admin-file/commands/admin-file-delete-by-key.command.js +1 -1
  40. package/build/v1/admin-file/commands/admin-file-delete-by-key.command.js.map +1 -1
  41. package/build/v1/admin-file/commands/admin-file-upload.command.js +1 -1
  42. package/build/v1/admin-file/commands/admin-file-upload.command.js.map +1 -1
  43. package/build/v1/admin-file/queries/admin-file-get-by-key.query.js +1 -1
  44. package/build/v1/admin-file/queries/admin-file-get-by-key.query.js.map +1 -1
  45. package/build/v1/admin-file/queries/admin-file-list.query.js +1 -1
  46. package/build/v1/admin-file/queries/admin-file-list.query.js.map +1 -1
  47. package/build/v1/analytics/queries/list-messages.query.js +1 -1
  48. package/build/v1/analytics/queries/list-messages.query.js.map +1 -1
  49. package/build/v1/analytics/queries/message-details.query.js +1 -1
  50. package/build/v1/analytics/queries/message-details.query.js.map +1 -1
  51. package/build/v1/analytics/queries/requests-chart.query.js +1 -1
  52. package/build/v1/analytics/queries/requests-chart.query.js.map +1 -1
  53. package/build/v1/analytics/queries/spend-chart.query.js +1 -1
  54. package/build/v1/analytics/queries/spend-chart.query.js.map +1 -1
  55. package/build/v1/antifraud/admin/commands/admin-set-preset.command.js +1 -1
  56. package/build/v1/antifraud/admin/commands/admin-set-preset.command.js.map +1 -1
  57. package/build/v1/antifraud/admin/queries/admin-get-preset-history.query.js +1 -1
  58. package/build/v1/antifraud/admin/queries/admin-get-preset-history.query.js.map +1 -1
  59. package/build/v1/antifraud/admin/queries/admin-get-settings.query.js +1 -1
  60. package/build/v1/antifraud/admin/queries/admin-get-settings.query.js.map +1 -1
  61. package/build/v1/assistants/catalog/queries/catalog-long-reg.query.js +1 -1
  62. package/build/v1/assistants/catalog/queries/catalog-long-reg.query.js.map +1 -1
  63. package/build/v1/assistants/catalog/queries/catalog-long-unreg.query.js +1 -1
  64. package/build/v1/assistants/catalog/queries/catalog-long-unreg.query.js.map +1 -1
  65. package/build/v1/assistants/catalog/queries/catalog-short-reg.query.js +1 -1
  66. package/build/v1/assistants/catalog/queries/catalog-short-reg.query.js.map +1 -1
  67. package/build/v1/assistants/catalog/queries/catalog-short-unreg.query.js +1 -1
  68. package/build/v1/assistants/catalog/queries/catalog-short-unreg.query.js.map +1 -1
  69. package/build/v1/avatar/commands/avatar-delete.command.js +1 -1
  70. package/build/v1/avatar/commands/avatar-delete.command.js.map +1 -1
  71. package/build/v1/avatar/commands/avatar-upload.command.js +1 -1
  72. package/build/v1/avatar/commands/avatar-upload.command.js.map +1 -1
  73. package/build/v1/billing/commands/admin-create-markup-tier.command.js +1 -1
  74. package/build/v1/billing/commands/admin-create-markup-tier.command.js.map +1 -1
  75. package/build/v1/billing/commands/admin-delete-markup-tier.command.js +1 -1
  76. package/build/v1/billing/commands/admin-delete-markup-tier.command.js.map +1 -1
  77. package/build/v1/billing/commands/admin-update-markup-tier.command.js +1 -1
  78. package/build/v1/billing/commands/admin-update-markup-tier.command.js.map +1 -1
  79. package/build/v1/billing/queries/admin-list-markup-tiers.query.js +1 -1
  80. package/build/v1/billing/queries/admin-list-markup-tiers.query.js.map +1 -1
  81. package/build/v1/chat/commands/delete-homeless-chats.command.js +1 -1
  82. package/build/v1/chat/commands/delete-homeless-chats.command.js.map +1 -1
  83. package/build/v1/chat/queries/get-chat-history.query.js +1 -1
  84. package/build/v1/chat/queries/get-chat-history.query.js.map +1 -1
  85. package/build/v1/chat/queries/get-generating-chats.query.js +1 -1
  86. package/build/v1/chat/queries/get-generating-chats.query.js.map +1 -1
  87. package/build/v1/chat/queries/search-chats.query.js +1 -1
  88. package/build/v1/chat/queries/search-chats.query.js.map +1 -1
  89. package/build/v1/chat-project/commands/create-project.command.js +1 -1
  90. package/build/v1/chat-project/commands/create-project.command.js.map +1 -1
  91. package/build/v1/chat-project/commands/delete-folder-chats.command.js +1 -1
  92. package/build/v1/chat-project/commands/delete-folder-chats.command.js.map +1 -1
  93. package/build/v1/chat-project/commands/delete-project.command.js +1 -1
  94. package/build/v1/chat-project/commands/delete-project.command.js.map +1 -1
  95. package/build/v1/chat-project/commands/organize.command.js +1 -1
  96. package/build/v1/chat-project/commands/organize.command.js.map +1 -1
  97. package/build/v1/chat-project/commands/update-project.command.js +1 -1
  98. package/build/v1/chat-project/commands/update-project.command.js.map +1 -1
  99. package/build/v1/chat-project/queries/get-project-chats.query.js +1 -1
  100. package/build/v1/chat-project/queries/get-project-chats.query.js.map +1 -1
  101. package/build/v1/chat-project/queries/get-project.query.js +1 -1
  102. package/build/v1/chat-project/queries/get-project.query.js.map +1 -1
  103. package/build/v1/chat-project/queries/get-projects.query.js +1 -1
  104. package/build/v1/chat-project/queries/get-projects.query.js.map +1 -1
  105. package/build/v1/client-file/commands/client-file-attach.command.js +1 -1
  106. package/build/v1/client-file/commands/client-file-attach.command.js.map +1 -1
  107. package/build/v1/client-file/commands/client-file-delete.command.js +1 -1
  108. package/build/v1/client-file/commands/client-file-delete.command.js.map +1 -1
  109. package/build/v1/client-file/commands/client-file-upload.command.js +1 -1
  110. package/build/v1/client-file/commands/client-file-upload.command.js.map +1 -1
  111. package/build/v1/client-file/commands/user-file-delete.command.js +1 -1
  112. package/build/v1/client-file/commands/user-file-delete.command.js.map +1 -1
  113. package/build/v1/client-file/queries/client-file-list.query.js +1 -1
  114. package/build/v1/client-file/queries/client-file-list.query.js.map +1 -1
  115. package/build/v1/client-file/queries/user-files-list.query.js +1 -1
  116. package/build/v1/client-file/queries/user-files-list.query.js.map +1 -1
  117. package/build/v1/client-file/queries/user-files-stats.query.js +1 -1
  118. package/build/v1/client-file/queries/user-files-stats.query.js.map +1 -1
  119. package/build/v1/daily-rewards/commands/admin-upsert-reward-config.command.js +1 -1
  120. package/build/v1/daily-rewards/commands/admin-upsert-reward-config.command.js.map +1 -1
  121. package/build/v1/daily-rewards/commands/claim-daily-reward.command.js +1 -1
  122. package/build/v1/daily-rewards/commands/claim-daily-reward.command.js.map +1 -1
  123. package/build/v1/daily-rewards/commands/restore-streak-with-grace.command.js +1 -1
  124. package/build/v1/daily-rewards/commands/restore-streak-with-grace.command.js.map +1 -1
  125. package/build/v1/daily-rewards/queries/admin-get-reward-configs.query.js +1 -1
  126. package/build/v1/daily-rewards/queries/admin-get-reward-configs.query.js.map +1 -1
  127. package/build/v1/daily-rewards/queries/get-claim-history.query.js +1 -1
  128. package/build/v1/daily-rewards/queries/get-claim-history.query.js.map +1 -1
  129. package/build/v1/daily-rewards/queries/get-reward-table.query.js +1 -1
  130. package/build/v1/daily-rewards/queries/get-reward-table.query.js.map +1 -1
  131. package/build/v1/daily-rewards/queries/get-streak-status.query.js +1 -1
  132. package/build/v1/daily-rewards/queries/get-streak-status.query.js.map +1 -1
  133. package/build/v1/index.d.ts +3 -0
  134. package/build/v1/index.js +3 -0
  135. package/build/v1/index.js.map +1 -1
  136. package/build/v1/model-route/admin/commands/create-model-route.command.js +1 -1
  137. package/build/v1/model-route/admin/commands/create-model-route.command.js.map +1 -1
  138. package/build/v1/notifications/commands/update-notification-settings.command.js +1 -1
  139. package/build/v1/notifications/commands/update-notification-settings.command.js.map +1 -1
  140. package/build/v1/notifications/queries/get-notification-settings.query.js +1 -1
  141. package/build/v1/notifications/queries/get-notification-settings.query.js.map +1 -1
  142. package/build/v1/payment/commands/charge-saved-method.command.d.ts +15 -0
  143. package/build/v1/payment/commands/charge-saved-method.command.js +25 -0
  144. package/build/v1/payment/commands/charge-saved-method.command.js.map +1 -0
  145. package/build/v1/payment/commands/check-webhook.command.d.ts +20 -0
  146. package/build/v1/payment/commands/check-webhook.command.js +14 -0
  147. package/build/v1/payment/commands/check-webhook.command.js.map +1 -0
  148. package/build/v1/payment/commands/confirm-webhook.command.d.ts +19 -0
  149. package/build/v1/payment/commands/confirm-webhook.command.js +14 -0
  150. package/build/v1/payment/commands/confirm-webhook.command.js.map +1 -0
  151. package/build/v1/payment/commands/create-order.command.d.ts +25 -0
  152. package/build/v1/payment/commands/create-order.command.js +43 -0
  153. package/build/v1/payment/commands/create-order.command.js.map +1 -0
  154. package/build/v1/payment/commands/fail-webhook.command.d.ts +21 -0
  155. package/build/v1/payment/commands/fail-webhook.command.js +14 -0
  156. package/build/v1/payment/commands/fail-webhook.command.js.map +1 -0
  157. package/build/v1/payment/commands/index.d.ts +10 -0
  158. package/build/v1/payment/commands/index.js +27 -0
  159. package/build/v1/payment/commands/index.js.map +1 -0
  160. package/build/v1/payment/commands/mark-order-fulfilled.command.d.ts +13 -0
  161. package/build/v1/payment/commands/mark-order-fulfilled.command.js +19 -0
  162. package/build/v1/payment/commands/mark-order-fulfilled.command.js.map +1 -0
  163. package/build/v1/payment/commands/pay-webhook.command.d.ts +25 -0
  164. package/build/v1/payment/commands/pay-webhook.command.js +14 -0
  165. package/build/v1/payment/commands/pay-webhook.command.js.map +1 -0
  166. package/build/v1/payment/commands/recurrent-webhook.command.d.ts +22 -0
  167. package/build/v1/payment/commands/recurrent-webhook.command.js +14 -0
  168. package/build/v1/payment/commands/recurrent-webhook.command.js.map +1 -0
  169. package/build/v1/payment/commands/refund-webhook.command.d.ts +18 -0
  170. package/build/v1/payment/commands/refund-webhook.command.js +14 -0
  171. package/build/v1/payment/commands/refund-webhook.command.js.map +1 -0
  172. package/build/v1/payment/commands/revoke-saved-method.command.d.ts +15 -0
  173. package/build/v1/payment/commands/revoke-saved-method.command.js +24 -0
  174. package/build/v1/payment/commands/revoke-saved-method.command.js.map +1 -0
  175. package/build/v1/payment/index.d.ts +6 -0
  176. package/build/v1/payment/index.js +28 -0
  177. package/build/v1/payment/index.js.map +1 -0
  178. package/build/v1/payment/payment.errors.d.ts +16 -0
  179. package/build/v1/payment/payment.errors.js +69 -0
  180. package/build/v1/payment/payment.errors.js.map +1 -0
  181. package/build/v1/payment/queries/get-checkout-config.query.d.ts +20 -0
  182. package/build/v1/payment/queries/get-checkout-config.query.js +23 -0
  183. package/build/v1/payment/queries/get-checkout-config.query.js.map +1 -0
  184. package/build/v1/payment/queries/get-order.query.d.ts +29 -0
  185. package/build/v1/payment/queries/get-order.query.js +18 -0
  186. package/build/v1/payment/queries/get-order.query.js.map +1 -0
  187. package/build/v1/payment/queries/get-paid-unfulfilled-orders.query.d.ts +29 -0
  188. package/build/v1/payment/queries/get-paid-unfulfilled-orders.query.js +15 -0
  189. package/build/v1/payment/queries/get-paid-unfulfilled-orders.query.js.map +1 -0
  190. package/build/v1/payment/queries/get-saved-methods.query.d.ts +33 -0
  191. package/build/v1/payment/queries/get-saved-methods.query.js +30 -0
  192. package/build/v1/payment/queries/get-saved-methods.query.js.map +1 -0
  193. package/build/v1/payment/queries/index.d.ts +4 -0
  194. package/build/v1/payment/queries/index.js +21 -0
  195. package/build/v1/payment/queries/index.js.map +1 -0
  196. package/build/v1/payment/schemas/charge-initiator.enum.d.ts +4 -0
  197. package/build/v1/payment/schemas/charge-initiator.enum.js +9 -0
  198. package/build/v1/payment/schemas/charge-initiator.enum.js.map +1 -0
  199. package/build/v1/payment/schemas/cloudpayments-webhook.schemas.d.ts +106 -0
  200. package/build/v1/payment/schemas/cloudpayments-webhook.schemas.js +134 -0
  201. package/build/v1/payment/schemas/cloudpayments-webhook.schemas.js.map +1 -0
  202. package/build/v1/payment/schemas/cp-decline-codes.d.ts +4 -0
  203. package/build/v1/payment/schemas/cp-decline-codes.js +45 -0
  204. package/build/v1/payment/schemas/cp-decline-codes.js.map +1 -0
  205. package/build/v1/payment/schemas/cp-transaction-status.enum.d.ts +10 -0
  206. package/build/v1/payment/schemas/cp-transaction-status.enum.js +16 -0
  207. package/build/v1/payment/schemas/cp-transaction-status.enum.js.map +1 -0
  208. package/build/v1/payment/schemas/currency.enum.d.ts +3 -0
  209. package/build/v1/payment/schemas/currency.enum.js +8 -0
  210. package/build/v1/payment/schemas/currency.enum.js.map +1 -0
  211. package/build/v1/payment/schemas/decline-kind.enum.d.ts +6 -0
  212. package/build/v1/payment/schemas/decline-kind.enum.js +11 -0
  213. package/build/v1/payment/schemas/decline-kind.enum.js.map +1 -0
  214. package/build/v1/payment/schemas/dunning-stopped-reason.enum.d.ts +8 -0
  215. package/build/v1/payment/schemas/dunning-stopped-reason.enum.js +13 -0
  216. package/build/v1/payment/schemas/dunning-stopped-reason.enum.js.map +1 -0
  217. package/build/v1/payment/schemas/index.d.ts +12 -0
  218. package/build/v1/payment/schemas/index.js +29 -0
  219. package/build/v1/payment/schemas/index.js.map +1 -0
  220. package/build/v1/payment/schemas/order-kind.enum.d.ts +6 -0
  221. package/build/v1/payment/schemas/order-kind.enum.js +11 -0
  222. package/build/v1/payment/schemas/order-kind.enum.js.map +1 -0
  223. package/build/v1/payment/schemas/order-status.enum.d.ts +7 -0
  224. package/build/v1/payment/schemas/order-status.enum.js +12 -0
  225. package/build/v1/payment/schemas/order-status.enum.js.map +1 -0
  226. package/build/v1/payment/schemas/payment-provider.enum.d.ts +3 -0
  227. package/build/v1/payment/schemas/payment-provider.enum.js +8 -0
  228. package/build/v1/payment/schemas/payment-provider.enum.js.map +1 -0
  229. package/build/v1/payment/schemas/payment-status.enum.d.ts +7 -0
  230. package/build/v1/payment/schemas/payment-status.enum.js +12 -0
  231. package/build/v1/payment/schemas/payment-status.enum.js.map +1 -0
  232. package/build/v1/payment/schemas/saved-method-status.enum.d.ts +5 -0
  233. package/build/v1/payment/schemas/saved-method-status.enum.js +10 -0
  234. package/build/v1/payment/schemas/saved-method-status.enum.js.map +1 -0
  235. package/build/v1/plans/commands/admin-create-plan.command.d.ts +60 -0
  236. package/build/v1/plans/commands/admin-create-plan.command.js +14 -0
  237. package/build/v1/plans/commands/admin-create-plan.command.js.map +1 -0
  238. package/build/v1/plans/commands/admin-delete-plan.command.d.ts +12 -0
  239. package/build/v1/plans/commands/admin-delete-plan.command.js +15 -0
  240. package/build/v1/plans/commands/admin-delete-plan.command.js.map +1 -0
  241. package/build/v1/plans/commands/admin-update-plan.command.d.ts +59 -0
  242. package/build/v1/plans/commands/admin-update-plan.command.js +14 -0
  243. package/build/v1/plans/commands/admin-update-plan.command.js.map +1 -0
  244. package/build/v1/plans/commands/index.d.ts +3 -0
  245. package/build/v1/plans/commands/index.js +20 -0
  246. package/build/v1/plans/commands/index.js.map +1 -0
  247. package/build/v1/plans/index.d.ts +6 -0
  248. package/build/v1/plans/index.js +28 -0
  249. package/build/v1/plans/index.js.map +1 -0
  250. package/build/v1/plans/plans.errors.d.ts +11 -0
  251. package/build/v1/plans/plans.errors.js +44 -0
  252. package/build/v1/plans/plans.errors.js.map +1 -0
  253. package/build/v1/plans/queries/admin-get-plan-by-id.query.d.ts +41 -0
  254. package/build/v1/plans/queries/admin-get-plan-by-id.query.js +15 -0
  255. package/build/v1/plans/queries/admin-get-plan-by-id.query.js.map +1 -0
  256. package/build/v1/plans/queries/index.d.ts +2 -0
  257. package/build/v1/plans/queries/index.js +19 -0
  258. package/build/v1/plans/queries/index.js.map +1 -0
  259. package/build/v1/plans/queries/list-plans.query.d.ts +115 -0
  260. package/build/v1/plans/queries/list-plans.query.js +22 -0
  261. package/build/v1/plans/queries/list-plans.query.js.map +1 -0
  262. package/build/v1/plans/schemas/admin-delete-plan.schema.d.ts +4 -0
  263. package/build/v1/plans/schemas/admin-delete-plan.schema.js +8 -0
  264. package/build/v1/plans/schemas/admin-delete-plan.schema.js.map +1 -0
  265. package/build/v1/plans/schemas/index.d.ts +5 -0
  266. package/build/v1/plans/schemas/index.js +22 -0
  267. package/build/v1/plans/schemas/index.js.map +1 -0
  268. package/build/v1/plans/schemas/plan-feature.enum.d.ts +5 -0
  269. package/build/v1/plans/schemas/plan-feature.enum.js +10 -0
  270. package/build/v1/plans/schemas/plan-feature.enum.js.map +1 -0
  271. package/build/v1/plans/schemas/plan-status.enum.d.ts +5 -0
  272. package/build/v1/plans/schemas/plan-status.enum.js +10 -0
  273. package/build/v1/plans/schemas/plan-status.enum.js.map +1 -0
  274. package/build/v1/plans/schemas/plan-type.enum.d.ts +5 -0
  275. package/build/v1/plans/schemas/plan-type.enum.js +10 -0
  276. package/build/v1/plans/schemas/plan-type.enum.js.map +1 -0
  277. package/build/v1/plans/schemas/plan.schema.d.ts +270 -0
  278. package/build/v1/plans/schemas/plan.schema.js +249 -0
  279. package/build/v1/plans/schemas/plan.schema.js.map +1 -0
  280. package/build/v1/seo-pages/admin/commands/create-page.command.d.ts +2 -0
  281. package/build/v1/seo-pages/admin/commands/update-page.command.d.ts +2 -0
  282. package/build/v1/seo-pages/admin/queries/get-page.query.d.ts +1 -0
  283. package/build/v1/seo-pages/public/queries/get-index-page.query.d.ts +1 -0
  284. package/build/v1/seo-pages/public/queries/get-page-by-alias.query.d.ts +1 -0
  285. package/build/v1/seo-pages/schemas/create-page-request.schema.d.ts +2 -0
  286. package/build/v1/seo-pages/schemas/create-page-request.schema.js +6 -1
  287. package/build/v1/seo-pages/schemas/create-page-request.schema.js.map +1 -1
  288. package/build/v1/seo-pages/schemas/index.d.ts +1 -0
  289. package/build/v1/seo-pages/schemas/index.js +3 -1
  290. package/build/v1/seo-pages/schemas/index.js.map +1 -1
  291. package/build/v1/seo-pages/schemas/page-block.enum.d.ts +10 -0
  292. package/build/v1/seo-pages/schemas/page-block.enum.js +15 -0
  293. package/build/v1/seo-pages/schemas/page-block.enum.js.map +1 -0
  294. package/build/v1/seo-pages/schemas/page-response.schema.d.ts +3 -0
  295. package/build/v1/seo-pages/schemas/page-response.schema.js +2 -0
  296. package/build/v1/seo-pages/schemas/page-response.schema.js.map +1 -1
  297. package/build/v1/seo-pages/schemas/update-page-request.schema.d.ts +2 -0
  298. package/build/v1/seo-pages/schemas/update-page-request.schema.js +5 -0
  299. package/build/v1/seo-pages/schemas/update-page-request.schema.js.map +1 -1
  300. package/build/v1/settings/commands/update-user-setting.command.js +1 -1
  301. package/build/v1/settings/commands/update-user-setting.command.js.map +1 -1
  302. package/build/v1/settings/queries/get-user-settings.query.js +1 -1
  303. package/build/v1/settings/queries/get-user-settings.query.js.map +1 -1
  304. package/build/v1/subscription/commands/buy-package.command.d.ts +19 -0
  305. package/build/v1/subscription/commands/buy-package.command.js +14 -0
  306. package/build/v1/subscription/commands/buy-package.command.js.map +1 -0
  307. package/build/v1/subscription/commands/cancel-subscription.command.d.ts +13 -0
  308. package/build/v1/subscription/commands/cancel-subscription.command.js +15 -0
  309. package/build/v1/subscription/commands/cancel-subscription.command.js.map +1 -0
  310. package/build/v1/subscription/commands/change-subscription.command.d.ts +18 -0
  311. package/build/v1/subscription/commands/change-subscription.command.js +14 -0
  312. package/build/v1/subscription/commands/change-subscription.command.js.map +1 -0
  313. package/build/v1/subscription/commands/checkout.command.d.ts +20 -0
  314. package/build/v1/subscription/commands/checkout.command.js +14 -0
  315. package/build/v1/subscription/commands/checkout.command.js.map +1 -0
  316. package/build/v1/subscription/commands/index.d.ts +5 -0
  317. package/build/v1/subscription/commands/index.js +22 -0
  318. package/build/v1/subscription/commands/index.js.map +1 -0
  319. package/build/v1/subscription/commands/uncancel-subscription.command.d.ts +12 -0
  320. package/build/v1/subscription/commands/uncancel-subscription.command.js +15 -0
  321. package/build/v1/subscription/commands/uncancel-subscription.command.js.map +1 -0
  322. package/build/v1/subscription/index.d.ts +6 -0
  323. package/build/v1/subscription/index.js +26 -0
  324. package/build/v1/subscription/index.js.map +1 -0
  325. package/build/v1/subscription/queries/get-my-subscription.query.d.ts +35 -0
  326. package/build/v1/subscription/queries/get-my-subscription.query.js +15 -0
  327. package/build/v1/subscription/queries/get-my-subscription.query.js.map +1 -0
  328. package/build/v1/subscription/queries/get-subscription-change-preview.query.d.ts +24 -0
  329. package/build/v1/subscription/queries/get-subscription-change-preview.query.js +35 -0
  330. package/build/v1/subscription/queries/get-subscription-change-preview.query.js.map +1 -0
  331. package/build/v1/subscription/queries/index.d.ts +2 -0
  332. package/build/v1/subscription/queries/index.js +19 -0
  333. package/build/v1/subscription/queries/index.js.map +1 -0
  334. package/build/v1/subscription/schemas/charge-status.enum.d.ts +5 -0
  335. package/build/v1/subscription/schemas/charge-status.enum.js +10 -0
  336. package/build/v1/subscription/schemas/charge-status.enum.js.map +1 -0
  337. package/build/v1/subscription/schemas/index.d.ts +6 -0
  338. package/build/v1/subscription/schemas/index.js +23 -0
  339. package/build/v1/subscription/schemas/index.js.map +1 -0
  340. package/build/v1/subscription/schemas/plan-transition-kind.enum.d.ts +6 -0
  341. package/build/v1/subscription/schemas/plan-transition-kind.enum.js +11 -0
  342. package/build/v1/subscription/schemas/plan-transition-kind.enum.js.map +1 -0
  343. package/build/v1/subscription/schemas/purchase-kind.enum.d.ts +6 -0
  344. package/build/v1/subscription/schemas/purchase-kind.enum.js +11 -0
  345. package/build/v1/subscription/schemas/purchase-kind.enum.js.map +1 -0
  346. package/build/v1/subscription/schemas/subscription-status.enum.d.ts +8 -0
  347. package/build/v1/subscription/schemas/subscription-status.enum.js +13 -0
  348. package/build/v1/subscription/schemas/subscription-status.enum.js.map +1 -0
  349. package/build/v1/subscription/schemas/subscription.schema.d.ts +110 -0
  350. package/build/v1/subscription/schemas/subscription.schema.js +113 -0
  351. package/build/v1/subscription/schemas/subscription.schema.js.map +1 -0
  352. package/build/v1/subscription/schemas/user-package-status.enum.d.ts +6 -0
  353. package/build/v1/subscription/schemas/user-package-status.enum.js +11 -0
  354. package/build/v1/subscription/schemas/user-package-status.enum.js.map +1 -0
  355. package/build/v1/subscription/subscription.errors.d.ts +17 -0
  356. package/build/v1/subscription/subscription.errors.js +74 -0
  357. package/build/v1/subscription/subscription.errors.js.map +1 -0
  358. package/build/v1/tasks/commands/admin-create-task-definition.command.js +1 -1
  359. package/build/v1/tasks/commands/admin-create-task-definition.command.js.map +1 -1
  360. package/build/v1/tasks/commands/admin-delete-task-definition.command.js +1 -1
  361. package/build/v1/tasks/commands/admin-delete-task-definition.command.js.map +1 -1
  362. package/build/v1/tasks/commands/admin-update-task-definition.command.js +1 -1
  363. package/build/v1/tasks/commands/admin-update-task-definition.command.js.map +1 -1
  364. package/build/v1/tasks/commands/claim-task.command.js +1 -1
  365. package/build/v1/tasks/commands/claim-task.command.js.map +1 -1
  366. package/build/v1/tasks/commands/verify-task.command.js +1 -1
  367. package/build/v1/tasks/commands/verify-task.command.js.map +1 -1
  368. package/build/v1/tasks/queries/get-admin-task-definitions.query.js +1 -1
  369. package/build/v1/tasks/queries/get-admin-task-definitions.query.js.map +1 -1
  370. package/build/v1/tasks/queries/get-user-tasks.query.js +1 -1
  371. package/build/v1/tasks/queries/get-user-tasks.query.js.map +1 -1
  372. package/build/v1/telegram-auth/commands/exchange-telegram-auth.command.js +1 -1
  373. package/build/v1/telegram-auth/commands/exchange-telegram-auth.command.js.map +1 -1
  374. package/build/v1/telegram-auth/commands/init-telegram-auth.command.js +1 -1
  375. package/build/v1/telegram-auth/commands/init-telegram-auth.command.js.map +1 -1
  376. package/build/v1/telegram-auth/queries/get-telegram-auth-status.query.js +1 -1
  377. package/build/v1/telegram-auth/queries/get-telegram-auth-status.query.js.map +1 -1
  378. package/build/v1/unregistered-users/commands/authenticate.command.js +1 -1
  379. package/build/v1/unregistered-users/commands/authenticate.command.js.map +1 -1
  380. package/build/v1/verification/commands/cancel-verification.command.js +1 -1
  381. package/build/v1/verification/commands/cancel-verification.command.js.map +1 -1
  382. package/build/v1/verification/commands/resend.command.js +1 -1
  383. package/build/v1/verification/commands/resend.command.js.map +1 -1
  384. package/build/v1/verification/queries/get-active-verifications.query.js +1 -1
  385. package/build/v1/verification/queries/get-active-verifications.query.js.map +1 -1
  386. package/build/v1/vk-auth/commands/exchange-vk-auth.command.js +1 -1
  387. package/build/v1/vk-auth/commands/exchange-vk-auth.command.js.map +1 -1
  388. package/build/v1/vk-auth/commands/init-vk-auth.command.js +1 -1
  389. package/build/v1/vk-auth/commands/init-vk-auth.command.js.map +1 -1
  390. package/build/v1/vk-auth/queries/get-vk-auth-status.query.js +1 -1
  391. package/build/v1/vk-auth/queries/get-vk-auth-status.query.js.map +1 -1
  392. package/build/v1/vk-auth/queries/handle-vk-auth-callback.query.js +1 -1
  393. package/build/v1/vk-auth/queries/handle-vk-auth-callback.query.js.map +1 -1
  394. package/build/v1/wallet/schemas/balance-type-code.enum.d.ts +5 -1
  395. package/build/v1/wallet/schemas/balance-type-code.enum.js +4 -0
  396. package/build/v1/wallet/schemas/balance-type-code.enum.js.map +1 -1
  397. package/build/v1/wallet/schemas/source-type.enum.d.ts +2 -1
  398. package/build/v1/wallet/schemas/source-type.enum.js +1 -0
  399. package/build/v1/wallet/schemas/source-type.enum.js.map +1 -1
  400. package/build/v1/web-notifications/commands/mark-web-notifications-read-up-to.command.js +1 -1
  401. package/build/v1/web-notifications/commands/mark-web-notifications-read-up-to.command.js.map +1 -1
  402. package/build/v1/web-notifications/queries/get-web-notifications.query.js +1 -1
  403. package/build/v1/web-notifications/queries/get-web-notifications.query.js.map +1 -1
  404. package/build/v1/web-notifications/queries/get-web-unread-count.query.js +1 -1
  405. package/build/v1/web-notifications/queries/get-web-unread-count.query.js.map +1 -1
  406. package/build/v1/yandex-auth/commands/exchange-yandex-auth.command.js +1 -1
  407. package/build/v1/yandex-auth/commands/exchange-yandex-auth.command.js.map +1 -1
  408. package/build/v1/yandex-auth/commands/init-yandex-auth.command.js +1 -1
  409. package/build/v1/yandex-auth/commands/init-yandex-auth.command.js.map +1 -1
  410. package/build/v1/yandex-auth/queries/get-yandex-auth-status.query.js +1 -1
  411. package/build/v1/yandex-auth/queries/get-yandex-auth-status.query.js.map +1 -1
  412. package/build/v1/yandex-auth/queries/handle-yandex-auth-callback.query.js +1 -1
  413. package/build/v1/yandex-auth/queries/handle-yandex-auth-callback.query.js.map +1 -1
  414. package/package.json +1 -1
@@ -0,0 +1,60 @@
1
+ import { z } from 'zod';
2
+ import { HttpMethod } from '../../../shared/http-method.enum';
3
+ export declare namespace AdminCreatePlanCommand {
4
+ const Request: z.ZodObject<{
5
+ type: z.ZodEnum<typeof import("../schemas").PlanType>;
6
+ code: z.ZodString;
7
+ status: z.ZodEnum<typeof import("../schemas").PlanStatus>;
8
+ isCustom: z.ZodBoolean;
9
+ displayOrder: z.ZodDefault<z.ZodNumber>;
10
+ isHighlighted: z.ZodDefault<z.ZodBoolean>;
11
+ badge: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
12
+ monthlyGrant: z.ZodString;
13
+ bonusPercent: z.ZodDefault<z.ZodNumber>;
14
+ rolloverPercent: z.ZodDefault<z.ZodNumber>;
15
+ maxCharsPerRequest: z.ZodNumber;
16
+ grantsAllModels: z.ZodDefault<z.ZodBoolean>;
17
+ modelIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
18
+ features: z.ZodDefault<z.ZodArray<z.ZodEnum<typeof import("../schemas").PlanFeature>>>;
19
+ prices: z.ZodDefault<z.ZodArray<z.ZodObject<{
20
+ periodMonths: z.ZodNullable<z.ZodNumber>;
21
+ price: z.ZodString;
22
+ }, z.core.$strip>>>;
23
+ }, z.core.$strip>;
24
+ const Response: z.ZodObject<{
25
+ id: z.ZodString;
26
+ type: z.ZodEnum<typeof import("../schemas").PlanType>;
27
+ code: z.ZodString;
28
+ status: z.ZodEnum<typeof import("../schemas").PlanStatus>;
29
+ isCustom: z.ZodBoolean;
30
+ displayOrder: z.ZodNumber;
31
+ isHighlighted: z.ZodBoolean;
32
+ badge: z.ZodNullable<z.ZodString>;
33
+ monthlyGrant: z.ZodString;
34
+ bonusPercent: z.ZodNumber;
35
+ rolloverPercent: z.ZodNumber;
36
+ maxCharsPerRequest: z.ZodNumber;
37
+ grantsAllModels: z.ZodBoolean;
38
+ features: z.ZodArray<z.ZodEnum<typeof import("../schemas").PlanFeature>>;
39
+ prices: z.ZodArray<z.ZodObject<{
40
+ periodMonths: z.ZodNullable<z.ZodNumber>;
41
+ price: z.ZodString;
42
+ }, z.core.$strip>>;
43
+ models: z.ZodObject<{
44
+ count: z.ZodNumber;
45
+ total: z.ZodNumber;
46
+ allModels: z.ZodBoolean;
47
+ availableModelIds: z.ZodArray<z.ZodString>;
48
+ }, z.core.$strip>;
49
+ generationEstimate: z.ZodArray<z.ZodObject<{
50
+ modality: z.ZodEnum<typeof import("../..").Modality>;
51
+ available: z.ZodBoolean;
52
+ min: z.ZodNullable<z.ZodNumber>;
53
+ max: z.ZodNullable<z.ZodNumber>;
54
+ }, z.core.$strip>>;
55
+ }, z.core.$strip>;
56
+ const URL: "/api/v1/admin/plans";
57
+ const METHOD = HttpMethod.POST;
58
+ type RequestType = z.infer<typeof Request>;
59
+ type ResponseType = z.infer<typeof Response>;
60
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AdminCreatePlanCommand = void 0;
4
+ const schemas_1 = require("../schemas");
5
+ const rest_api_1 = require("../../../rest-api");
6
+ const http_method_enum_1 = require("../../../shared/http-method.enum");
7
+ var AdminCreatePlanCommand;
8
+ (function (AdminCreatePlanCommand) {
9
+ AdminCreatePlanCommand.Request = schemas_1.AdminCreatePlanRequestSchema;
10
+ AdminCreatePlanCommand.Response = schemas_1.PlanSchema;
11
+ AdminCreatePlanCommand.URL = rest_api_1.REST_API.V1.PLANS.ADMIN.CREATE;
12
+ AdminCreatePlanCommand.METHOD = http_method_enum_1.HttpMethod.POST;
13
+ })(AdminCreatePlanCommand || (exports.AdminCreatePlanCommand = AdminCreatePlanCommand = {}));
14
+ //# sourceMappingURL=admin-create-plan.command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin-create-plan.command.js","sourceRoot":"","sources":["../../../../v1/plans/commands/admin-create-plan.command.ts"],"names":[],"mappings":";;;AACA,wCAAsE;AACtE,gDAA6C;AAC7C,uEAA8D;AAE9D,IAAiB,sBAAsB,CAStC;AATD,WAAiB,sBAAsB;IACtB,8BAAO,GAAG,sCAA4B,CAAC;IACvC,+BAAQ,GAAG,oBAAU,CAAC;IAEtB,0BAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC;IACrC,6BAAM,GAAG,6BAAU,CAAC,IAAI,CAAC;AAI1C,CAAC,EATgB,sBAAsB,sCAAtB,sBAAsB,QAStC"}
@@ -0,0 +1,12 @@
1
+ import { z } from 'zod';
2
+ import { HttpMethod } from '../../../shared/http-method.enum';
3
+ export declare namespace AdminDeletePlanCommand {
4
+ const Request: z.ZodObject<{}, z.core.$strip>;
5
+ const Response: z.ZodObject<{
6
+ success: z.ZodBoolean;
7
+ }, z.core.$strip>;
8
+ const URL: (id: string) => string;
9
+ const METHOD = HttpMethod.DELETE;
10
+ type RequestType = z.infer<typeof Request>;
11
+ type ResponseType = z.infer<typeof Response>;
12
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AdminDeletePlanCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const rest_api_1 = require("../../../rest-api");
6
+ const http_method_enum_1 = require("../../../shared/http-method.enum");
7
+ const admin_delete_plan_schema_1 = require("../schemas/admin-delete-plan.schema");
8
+ var AdminDeletePlanCommand;
9
+ (function (AdminDeletePlanCommand) {
10
+ AdminDeletePlanCommand.Request = zod_1.z.object({});
11
+ AdminDeletePlanCommand.Response = admin_delete_plan_schema_1.AdminDeletePlanResponseSchema;
12
+ AdminDeletePlanCommand.URL = rest_api_1.REST_API.V1.PLANS.ADMIN.DELETE;
13
+ AdminDeletePlanCommand.METHOD = http_method_enum_1.HttpMethod.DELETE;
14
+ })(AdminDeletePlanCommand || (exports.AdminDeletePlanCommand = AdminDeletePlanCommand = {}));
15
+ //# sourceMappingURL=admin-delete-plan.command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin-delete-plan.command.js","sourceRoot":"","sources":["../../../../v1/plans/commands/admin-delete-plan.command.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,gDAA6C;AAC7C,uEAA8D;AAC9D,kFAAoF;AAEpF,IAAiB,sBAAsB,CAUtC;AAVD,WAAiB,sBAAsB;IACtB,8BAAO,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACvB,+BAAQ,GAAG,wDAA6B,CAAC;IAGzC,0BAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC;IACrC,6BAAM,GAAG,6BAAU,CAAC,MAAM,CAAC;AAI5C,CAAC,EAVgB,sBAAsB,sCAAtB,sBAAsB,QAUtC"}
@@ -0,0 +1,59 @@
1
+ import { z } from 'zod';
2
+ import { HttpMethod } from '../../../shared/http-method.enum';
3
+ export declare namespace AdminUpdatePlanCommand {
4
+ const Request: z.ZodObject<{
5
+ code: z.ZodOptional<z.ZodString>;
6
+ status: z.ZodOptional<z.ZodEnum<typeof import("../schemas").PlanStatus>>;
7
+ isCustom: z.ZodOptional<z.ZodBoolean>;
8
+ displayOrder: z.ZodOptional<z.ZodNumber>;
9
+ isHighlighted: z.ZodOptional<z.ZodBoolean>;
10
+ badge: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ monthlyGrant: z.ZodOptional<z.ZodString>;
12
+ bonusPercent: z.ZodOptional<z.ZodNumber>;
13
+ rolloverPercent: z.ZodOptional<z.ZodNumber>;
14
+ maxCharsPerRequest: z.ZodOptional<z.ZodNumber>;
15
+ grantsAllModels: z.ZodOptional<z.ZodBoolean>;
16
+ modelIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
17
+ features: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof import("../schemas").PlanFeature>>>;
18
+ prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
19
+ periodMonths: z.ZodNullable<z.ZodNumber>;
20
+ price: z.ZodString;
21
+ }, z.core.$strip>>>;
22
+ }, z.core.$strip>;
23
+ const Response: z.ZodObject<{
24
+ id: z.ZodString;
25
+ type: z.ZodEnum<typeof import("../schemas").PlanType>;
26
+ code: z.ZodString;
27
+ status: z.ZodEnum<typeof import("../schemas").PlanStatus>;
28
+ isCustom: z.ZodBoolean;
29
+ displayOrder: z.ZodNumber;
30
+ isHighlighted: z.ZodBoolean;
31
+ badge: z.ZodNullable<z.ZodString>;
32
+ monthlyGrant: z.ZodString;
33
+ bonusPercent: z.ZodNumber;
34
+ rolloverPercent: z.ZodNumber;
35
+ maxCharsPerRequest: z.ZodNumber;
36
+ grantsAllModels: z.ZodBoolean;
37
+ features: z.ZodArray<z.ZodEnum<typeof import("../schemas").PlanFeature>>;
38
+ prices: z.ZodArray<z.ZodObject<{
39
+ periodMonths: z.ZodNullable<z.ZodNumber>;
40
+ price: z.ZodString;
41
+ }, z.core.$strip>>;
42
+ models: z.ZodObject<{
43
+ count: z.ZodNumber;
44
+ total: z.ZodNumber;
45
+ allModels: z.ZodBoolean;
46
+ availableModelIds: z.ZodArray<z.ZodString>;
47
+ }, z.core.$strip>;
48
+ generationEstimate: z.ZodArray<z.ZodObject<{
49
+ modality: z.ZodEnum<typeof import("../..").Modality>;
50
+ available: z.ZodBoolean;
51
+ min: z.ZodNullable<z.ZodNumber>;
52
+ max: z.ZodNullable<z.ZodNumber>;
53
+ }, z.core.$strip>>;
54
+ }, z.core.$strip>;
55
+ const URL: (id: string) => string;
56
+ const METHOD = HttpMethod.PATCH;
57
+ type RequestType = z.infer<typeof Request>;
58
+ type ResponseType = z.infer<typeof Response>;
59
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AdminUpdatePlanCommand = void 0;
4
+ const schemas_1 = require("../schemas");
5
+ const rest_api_1 = require("../../../rest-api");
6
+ const http_method_enum_1 = require("../../../shared/http-method.enum");
7
+ var AdminUpdatePlanCommand;
8
+ (function (AdminUpdatePlanCommand) {
9
+ AdminUpdatePlanCommand.Request = schemas_1.AdminUpdatePlanRequestSchema;
10
+ AdminUpdatePlanCommand.Response = schemas_1.PlanSchema;
11
+ AdminUpdatePlanCommand.URL = rest_api_1.REST_API.V1.PLANS.ADMIN.UPDATE;
12
+ AdminUpdatePlanCommand.METHOD = http_method_enum_1.HttpMethod.PATCH;
13
+ })(AdminUpdatePlanCommand || (exports.AdminUpdatePlanCommand = AdminUpdatePlanCommand = {}));
14
+ //# sourceMappingURL=admin-update-plan.command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin-update-plan.command.js","sourceRoot":"","sources":["../../../../v1/plans/commands/admin-update-plan.command.ts"],"names":[],"mappings":";;;AACA,wCAAsE;AACtE,gDAA6C;AAC7C,uEAA8D;AAE9D,IAAiB,sBAAsB,CAUtC;AAVD,WAAiB,sBAAsB;IACtB,8BAAO,GAAG,sCAA4B,CAAC;IACvC,+BAAQ,GAAG,oBAAU,CAAC;IAGtB,0BAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC;IACrC,6BAAM,GAAG,6BAAU,CAAC,KAAK,CAAC;AAI3C,CAAC,EAVgB,sBAAsB,sCAAtB,sBAAsB,QAUtC"}
@@ -0,0 +1,3 @@
1
+ export * from './admin-create-plan.command';
2
+ export * from './admin-update-plan.command';
3
+ export * from './admin-delete-plan.command';
@@ -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("./admin-create-plan.command"), exports);
18
+ __exportStar(require("./admin-update-plan.command"), exports);
19
+ __exportStar(require("./admin-delete-plan.command"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/plans/commands/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C;AAC5C,8DAA4C;AAC5C,8DAA4C"}
@@ -0,0 +1,6 @@
1
+ export * from './schemas';
2
+ export * from './plans.errors';
3
+ export * from './commands';
4
+ export * from './queries';
5
+ export { PLANS_CONTROLLER, PLANS_ADMIN_CONTROLLER } from '../../controllers';
6
+ export { PLANS_ROUTES, PLANS_ADMIN_ROUTES } from '../../routes';
@@ -0,0 +1,28 @@
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
+ exports.PLANS_ADMIN_ROUTES = exports.PLANS_ROUTES = exports.PLANS_ADMIN_CONTROLLER = exports.PLANS_CONTROLLER = void 0;
18
+ __exportStar(require("./schemas"), exports);
19
+ __exportStar(require("./plans.errors"), exports);
20
+ __exportStar(require("./commands"), exports);
21
+ __exportStar(require("./queries"), exports);
22
+ var controllers_1 = require("../../controllers");
23
+ Object.defineProperty(exports, "PLANS_CONTROLLER", { enumerable: true, get: function () { return controllers_1.PLANS_CONTROLLER; } });
24
+ Object.defineProperty(exports, "PLANS_ADMIN_CONTROLLER", { enumerable: true, get: function () { return controllers_1.PLANS_ADMIN_CONTROLLER; } });
25
+ var routes_1 = require("../../routes");
26
+ Object.defineProperty(exports, "PLANS_ROUTES", { enumerable: true, get: function () { return routes_1.PLANS_ROUTES; } });
27
+ Object.defineProperty(exports, "PLANS_ADMIN_ROUTES", { enumerable: true, get: function () { return routes_1.PLANS_ADMIN_ROUTES; } });
28
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../v1/plans/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,iDAA+B;AAC/B,6CAA2B;AAC3B,4CAA0B;AAE1B,iDAA6E;AAApE,+GAAA,gBAAgB,OAAA;AAAE,qHAAA,sBAAsB,OAAA;AACjD,uCAAgE;AAAvD,sGAAA,YAAY,OAAA;AAAE,4GAAA,kBAAkB,OAAA"}
@@ -0,0 +1,11 @@
1
+ import { ErrorMetadata } from '../../shared';
2
+ export declare enum PlanErrorCode {
3
+ PLAN_NOT_FOUND = "PLAN_NOT_FOUND",
4
+ PLAN_NOT_AVAILABLE = "PLAN_NOT_AVAILABLE",
5
+ INVALID_PLAN_TYPE = "INVALID_PLAN_TYPE",
6
+ INVALID_PLAN_CONFIG = "INVALID_PLAN_CONFIG",
7
+ INVALID_PERIOD = "INVALID_PERIOD",
8
+ CUSTOM_PRICE_OUT_OF_RANGE = "CUSTOM_PRICE_OUT_OF_RANGE",
9
+ INVALID_MODEL_IDS = "INVALID_MODEL_IDS"
10
+ }
11
+ export declare const PLAN_ERRORS: Record<PlanErrorCode, ErrorMetadata>;
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PLAN_ERRORS = exports.PlanErrorCode = void 0;
4
+ var PlanErrorCode;
5
+ (function (PlanErrorCode) {
6
+ PlanErrorCode["PLAN_NOT_FOUND"] = "PLAN_NOT_FOUND";
7
+ PlanErrorCode["PLAN_NOT_AVAILABLE"] = "PLAN_NOT_AVAILABLE";
8
+ PlanErrorCode["INVALID_PLAN_TYPE"] = "INVALID_PLAN_TYPE";
9
+ PlanErrorCode["INVALID_PLAN_CONFIG"] = "INVALID_PLAN_CONFIG";
10
+ PlanErrorCode["INVALID_PERIOD"] = "INVALID_PERIOD";
11
+ PlanErrorCode["CUSTOM_PRICE_OUT_OF_RANGE"] = "CUSTOM_PRICE_OUT_OF_RANGE";
12
+ PlanErrorCode["INVALID_MODEL_IDS"] = "INVALID_MODEL_IDS";
13
+ })(PlanErrorCode || (exports.PlanErrorCode = PlanErrorCode = {}));
14
+ exports.PLAN_ERRORS = {
15
+ [PlanErrorCode.PLAN_NOT_FOUND]: {
16
+ code: PlanErrorCode.PLAN_NOT_FOUND,
17
+ statusCode: 404,
18
+ },
19
+ [PlanErrorCode.PLAN_NOT_AVAILABLE]: {
20
+ code: PlanErrorCode.PLAN_NOT_AVAILABLE,
21
+ statusCode: 409,
22
+ },
23
+ [PlanErrorCode.INVALID_PLAN_TYPE]: {
24
+ code: PlanErrorCode.INVALID_PLAN_TYPE,
25
+ statusCode: 400,
26
+ },
27
+ [PlanErrorCode.INVALID_PLAN_CONFIG]: {
28
+ code: PlanErrorCode.INVALID_PLAN_CONFIG,
29
+ statusCode: 400,
30
+ },
31
+ [PlanErrorCode.INVALID_PERIOD]: {
32
+ code: PlanErrorCode.INVALID_PERIOD,
33
+ statusCode: 400,
34
+ },
35
+ [PlanErrorCode.CUSTOM_PRICE_OUT_OF_RANGE]: {
36
+ code: PlanErrorCode.CUSTOM_PRICE_OUT_OF_RANGE,
37
+ statusCode: 400,
38
+ },
39
+ [PlanErrorCode.INVALID_MODEL_IDS]: {
40
+ code: PlanErrorCode.INVALID_MODEL_IDS,
41
+ statusCode: 422,
42
+ },
43
+ };
44
+ //# sourceMappingURL=plans.errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plans.errors.js","sourceRoot":"","sources":["../../../v1/plans/plans.errors.ts"],"names":[],"mappings":";;;AAEA,IAAY,aAkBX;AAlBD,WAAY,aAAa;IACrB,kDAAiC,CAAA;IACjC,0DAAyC,CAAA;IACzC,wDAAuC,CAAA;IAMvC,4DAA2C,CAAA;IAC3C,kDAAiC,CAAA;IACjC,wEAAuD,CAAA;IAMvD,wDAAuC,CAAA;AAC3C,CAAC,EAlBW,aAAa,6BAAb,aAAa,QAkBxB;AAEY,QAAA,WAAW,GAAyC;IAC7D,CAAC,aAAa,CAAC,cAAc,CAAC,EAAE;QAC5B,IAAI,EAAE,aAAa,CAAC,cAAc;QAClC,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,aAAa,CAAC,kBAAkB,CAAC,EAAE;QAChC,IAAI,EAAE,aAAa,CAAC,kBAAkB;QACtC,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,aAAa,CAAC,iBAAiB,CAAC,EAAE;QAC/B,IAAI,EAAE,aAAa,CAAC,iBAAiB;QACrC,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,aAAa,CAAC,mBAAmB,CAAC,EAAE;QACjC,IAAI,EAAE,aAAa,CAAC,mBAAmB;QACvC,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,aAAa,CAAC,cAAc,CAAC,EAAE;QAC5B,IAAI,EAAE,aAAa,CAAC,cAAc;QAClC,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,aAAa,CAAC,yBAAyB,CAAC,EAAE;QACvC,IAAI,EAAE,aAAa,CAAC,yBAAyB;QAC7C,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,aAAa,CAAC,iBAAiB,CAAC,EAAE;QAC/B,IAAI,EAAE,aAAa,CAAC,iBAAiB;QACrC,UAAU,EAAE,GAAG;KAClB;CACK,CAAC"}
@@ -0,0 +1,41 @@
1
+ import { z } from 'zod';
2
+ import { HttpMethod } from '../../../shared/http-method.enum';
3
+ export declare namespace AdminGetPlanByIdQuery {
4
+ const Request: z.ZodObject<{}, z.core.$strip>;
5
+ const Response: z.ZodObject<{
6
+ id: z.ZodString;
7
+ type: z.ZodEnum<typeof import("../schemas").PlanType>;
8
+ code: z.ZodString;
9
+ status: z.ZodEnum<typeof import("../schemas").PlanStatus>;
10
+ isCustom: z.ZodBoolean;
11
+ displayOrder: z.ZodNumber;
12
+ isHighlighted: z.ZodBoolean;
13
+ badge: z.ZodNullable<z.ZodString>;
14
+ monthlyGrant: z.ZodString;
15
+ bonusPercent: z.ZodNumber;
16
+ rolloverPercent: z.ZodNumber;
17
+ maxCharsPerRequest: z.ZodNumber;
18
+ grantsAllModels: z.ZodBoolean;
19
+ features: z.ZodArray<z.ZodEnum<typeof import("../schemas").PlanFeature>>;
20
+ prices: z.ZodArray<z.ZodObject<{
21
+ periodMonths: z.ZodNullable<z.ZodNumber>;
22
+ price: z.ZodString;
23
+ }, z.core.$strip>>;
24
+ models: z.ZodObject<{
25
+ count: z.ZodNumber;
26
+ total: z.ZodNumber;
27
+ allModels: z.ZodBoolean;
28
+ availableModelIds: z.ZodArray<z.ZodString>;
29
+ }, z.core.$strip>;
30
+ generationEstimate: z.ZodArray<z.ZodObject<{
31
+ modality: z.ZodEnum<typeof import("../..").Modality>;
32
+ available: z.ZodBoolean;
33
+ min: z.ZodNullable<z.ZodNumber>;
34
+ max: z.ZodNullable<z.ZodNumber>;
35
+ }, z.core.$strip>>;
36
+ }, z.core.$strip>;
37
+ const URL: (id: string) => string;
38
+ const METHOD = HttpMethod.GET;
39
+ type RequestType = z.infer<typeof Request>;
40
+ type ResponseType = z.infer<typeof Response>;
41
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AdminGetPlanByIdQuery = void 0;
4
+ const zod_1 = require("zod");
5
+ const schemas_1 = require("../schemas");
6
+ const rest_api_1 = require("../../../rest-api");
7
+ const http_method_enum_1 = require("../../../shared/http-method.enum");
8
+ var AdminGetPlanByIdQuery;
9
+ (function (AdminGetPlanByIdQuery) {
10
+ AdminGetPlanByIdQuery.Request = zod_1.z.object({});
11
+ AdminGetPlanByIdQuery.Response = schemas_1.PlanSchema;
12
+ AdminGetPlanByIdQuery.URL = rest_api_1.REST_API.V1.PLANS.ADMIN.GET_BY_ID;
13
+ AdminGetPlanByIdQuery.METHOD = http_method_enum_1.HttpMethod.GET;
14
+ })(AdminGetPlanByIdQuery || (exports.AdminGetPlanByIdQuery = AdminGetPlanByIdQuery = {}));
15
+ //# sourceMappingURL=admin-get-plan-by-id.query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin-get-plan-by-id.query.js","sourceRoot":"","sources":["../../../../v1/plans/queries/admin-get-plan-by-id.query.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,wCAAwC;AACxC,gDAA6C;AAC7C,uEAA8D;AAM9D,IAAiB,qBAAqB,CAWrC;AAXD,WAAiB,qBAAqB;IAErB,6BAAO,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACvB,8BAAQ,GAAG,oBAAU,CAAC;IAGtB,yBAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC;IACxC,4BAAM,GAAG,6BAAU,CAAC,GAAG,CAAC;AAIzC,CAAC,EAXgB,qBAAqB,qCAArB,qBAAqB,QAWrC"}
@@ -0,0 +1,2 @@
1
+ export * from './list-plans.query';
2
+ export * from './admin-get-plan-by-id.query';
@@ -0,0 +1,19 @@
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("./list-plans.query"), exports);
18
+ __exportStar(require("./admin-get-plan-by-id.query"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/plans/queries/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,+DAA6C"}
@@ -0,0 +1,115 @@
1
+ import { z } from 'zod';
2
+ import { HttpMethod } from '../../../shared/http-method.enum';
3
+ export declare namespace ListPlansQuery {
4
+ const Request: z.ZodObject<{}, z.core.$strip>;
5
+ const Response: z.ZodObject<{
6
+ modelTree: z.ZodArray<z.ZodObject<{
7
+ uuid: z.ZodString;
8
+ title: z.ZodString;
9
+ icon: z.ZodString;
10
+ order: z.ZodNumber;
11
+ models: z.ZodArray<z.ZodObject<{
12
+ uuid: z.ZodString;
13
+ title: z.ZodString;
14
+ icon: z.ZodString;
15
+ order: z.ZodNumber;
16
+ inputModalities: z.ZodArray<z.ZodEnum<typeof import("../..").Modality>>;
17
+ outputModalities: z.ZodArray<z.ZodEnum<typeof import("../..").Modality>>;
18
+ }, z.core.$strip>>;
19
+ }, z.core.$strip>>;
20
+ items: z.ZodArray<z.ZodObject<{
21
+ id: z.ZodString;
22
+ type: z.ZodEnum<typeof import("../schemas").PlanType>;
23
+ code: z.ZodString;
24
+ status: z.ZodEnum<typeof import("../schemas").PlanStatus>;
25
+ isCustom: z.ZodBoolean;
26
+ displayOrder: z.ZodNumber;
27
+ isHighlighted: z.ZodBoolean;
28
+ badge: z.ZodNullable<z.ZodString>;
29
+ monthlyGrant: z.ZodString;
30
+ bonusPercent: z.ZodNumber;
31
+ rolloverPercent: z.ZodNumber;
32
+ maxCharsPerRequest: z.ZodNumber;
33
+ grantsAllModels: z.ZodBoolean;
34
+ features: z.ZodArray<z.ZodEnum<typeof import("../schemas").PlanFeature>>;
35
+ prices: z.ZodArray<z.ZodObject<{
36
+ periodMonths: z.ZodNullable<z.ZodNumber>;
37
+ price: z.ZodString;
38
+ }, z.core.$strip>>;
39
+ models: z.ZodObject<{
40
+ count: z.ZodNumber;
41
+ total: z.ZodNumber;
42
+ allModels: z.ZodBoolean;
43
+ availableModelIds: z.ZodArray<z.ZodString>;
44
+ }, z.core.$strip>;
45
+ generationEstimate: z.ZodArray<z.ZodObject<{
46
+ modality: z.ZodEnum<typeof import("../..").Modality>;
47
+ available: z.ZodBoolean;
48
+ min: z.ZodNullable<z.ZodNumber>;
49
+ max: z.ZodNullable<z.ZodNumber>;
50
+ }, z.core.$strip>>;
51
+ }, z.core.$strip>>;
52
+ }, z.core.$strip>;
53
+ const URL: "/api/v1/unreg/plans/list";
54
+ const METHOD = HttpMethod.GET;
55
+ type RequestType = z.infer<typeof Request>;
56
+ type ResponseType = z.infer<typeof Response>;
57
+ }
58
+ export declare namespace ListPlansRegQuery {
59
+ const Request: z.ZodObject<{}, z.core.$strip>;
60
+ const Response: z.ZodObject<{
61
+ modelTree: z.ZodArray<z.ZodObject<{
62
+ uuid: z.ZodString;
63
+ title: z.ZodString;
64
+ icon: z.ZodString;
65
+ order: z.ZodNumber;
66
+ models: z.ZodArray<z.ZodObject<{
67
+ uuid: z.ZodString;
68
+ title: z.ZodString;
69
+ icon: z.ZodString;
70
+ order: z.ZodNumber;
71
+ inputModalities: z.ZodArray<z.ZodEnum<typeof import("../..").Modality>>;
72
+ outputModalities: z.ZodArray<z.ZodEnum<typeof import("../..").Modality>>;
73
+ }, z.core.$strip>>;
74
+ }, z.core.$strip>>;
75
+ items: z.ZodArray<z.ZodObject<{
76
+ id: z.ZodString;
77
+ type: z.ZodEnum<typeof import("../schemas").PlanType>;
78
+ code: z.ZodString;
79
+ status: z.ZodEnum<typeof import("../schemas").PlanStatus>;
80
+ isCustom: z.ZodBoolean;
81
+ displayOrder: z.ZodNumber;
82
+ isHighlighted: z.ZodBoolean;
83
+ badge: z.ZodNullable<z.ZodString>;
84
+ monthlyGrant: z.ZodString;
85
+ bonusPercent: z.ZodNumber;
86
+ rolloverPercent: z.ZodNumber;
87
+ maxCharsPerRequest: z.ZodNumber;
88
+ grantsAllModels: z.ZodBoolean;
89
+ features: z.ZodArray<z.ZodEnum<typeof import("../schemas").PlanFeature>>;
90
+ prices: z.ZodArray<z.ZodObject<{
91
+ periodMonths: z.ZodNullable<z.ZodNumber>;
92
+ price: z.ZodString;
93
+ }, z.core.$strip>>;
94
+ models: z.ZodObject<{
95
+ count: z.ZodNumber;
96
+ total: z.ZodNumber;
97
+ allModels: z.ZodBoolean;
98
+ availableModelIds: z.ZodArray<z.ZodString>;
99
+ }, z.core.$strip>;
100
+ generationEstimate: z.ZodArray<z.ZodObject<{
101
+ modality: z.ZodEnum<typeof import("../..").Modality>;
102
+ available: z.ZodBoolean;
103
+ min: z.ZodNullable<z.ZodNumber>;
104
+ max: z.ZodNullable<z.ZodNumber>;
105
+ }, z.core.$strip>>;
106
+ currentPlanCode: z.ZodNullable<z.ZodString>;
107
+ transition: z.ZodNullable<z.ZodEnum<typeof import("../schemas").PlanTransition>>;
108
+ surcharge: z.ZodNullable<z.ZodString>;
109
+ }, z.core.$strip>>;
110
+ }, z.core.$strip>;
111
+ const URL: "/api/v1/plans/list";
112
+ const METHOD = HttpMethod.GET;
113
+ type RequestType = z.infer<typeof Request>;
114
+ type ResponseType = z.infer<typeof Response>;
115
+ }
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListPlansRegQuery = exports.ListPlansQuery = void 0;
4
+ const zod_1 = require("zod");
5
+ const schemas_1 = require("../schemas");
6
+ const rest_api_1 = require("../../../rest-api");
7
+ const http_method_enum_1 = require("../../../shared/http-method.enum");
8
+ var ListPlansQuery;
9
+ (function (ListPlansQuery) {
10
+ ListPlansQuery.Request = zod_1.z.object({});
11
+ ListPlansQuery.Response = schemas_1.PlanListResponseSchema;
12
+ ListPlansQuery.URL = rest_api_1.REST_API.V1.PLANS.UNREG.LIST;
13
+ ListPlansQuery.METHOD = http_method_enum_1.HttpMethod.GET;
14
+ })(ListPlansQuery || (exports.ListPlansQuery = ListPlansQuery = {}));
15
+ var ListPlansRegQuery;
16
+ (function (ListPlansRegQuery) {
17
+ ListPlansRegQuery.Request = zod_1.z.object({});
18
+ ListPlansRegQuery.Response = schemas_1.PlanCatalogResponseSchema;
19
+ ListPlansRegQuery.URL = rest_api_1.REST_API.V1.PLANS.REG.LIST;
20
+ ListPlansRegQuery.METHOD = http_method_enum_1.HttpMethod.GET;
21
+ })(ListPlansRegQuery || (exports.ListPlansRegQuery = ListPlansRegQuery = {}));
22
+ //# sourceMappingURL=list-plans.query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-plans.query.js","sourceRoot":"","sources":["../../../../v1/plans/queries/list-plans.query.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,wCAA+E;AAC/E,gDAA6C;AAC7C,uEAA8D;AAM9D,IAAiB,cAAc,CAS9B;AATD,WAAiB,cAAc;IACd,sBAAO,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACvB,uBAAQ,GAAG,gCAAsB,CAAC;IAElC,kBAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC;IACnC,qBAAM,GAAG,6BAAU,CAAC,GAAG,CAAC;AAIzC,CAAC,EATgB,cAAc,8BAAd,cAAc,QAS9B;AAOD,IAAiB,iBAAiB,CASjC;AATD,WAAiB,iBAAiB;IACjB,yBAAO,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACvB,0BAAQ,GAAG,mCAAyB,CAAC;IAErC,qBAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC;IACjC,wBAAM,GAAG,6BAAU,CAAC,GAAG,CAAC;AAIzC,CAAC,EATgB,iBAAiB,iCAAjB,iBAAiB,QASjC"}
@@ -0,0 +1,4 @@
1
+ import { z } from 'zod';
2
+ export declare const AdminDeletePlanResponseSchema: z.ZodObject<{
3
+ success: z.ZodBoolean;
4
+ }, z.core.$strip>;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AdminDeletePlanResponseSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.AdminDeletePlanResponseSchema = zod_1.z.object({
6
+ success: zod_1.z.boolean(),
7
+ });
8
+ //# sourceMappingURL=admin-delete-plan.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin-delete-plan.schema.js","sourceRoot":"","sources":["../../../../v1/plans/schemas/admin-delete-plan.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IAClD,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE;CACvB,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ export * from './plan-type.enum';
2
+ export * from './plan-status.enum';
3
+ export * from './plan-feature.enum';
4
+ export * from './plan.schema';
5
+ export * from './admin-delete-plan.schema';
@@ -0,0 +1,22 @@
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("./plan-type.enum"), exports);
18
+ __exportStar(require("./plan-status.enum"), exports);
19
+ __exportStar(require("./plan-feature.enum"), exports);
20
+ __exportStar(require("./plan.schema"), exports);
21
+ __exportStar(require("./admin-delete-plan.schema"), exports);
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/plans/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,qDAAmC;AACnC,sDAAoC;AACpC,gDAA8B;AAC9B,6DAA2C"}
@@ -0,0 +1,5 @@
1
+ export declare enum PlanFeature {
2
+ WEB_SEARCH = "WEB_SEARCH",
3
+ FILE_ATTACH = "FILE_ATTACH",
4
+ REASONING = "REASONING"
5
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PlanFeature = void 0;
4
+ var PlanFeature;
5
+ (function (PlanFeature) {
6
+ PlanFeature["WEB_SEARCH"] = "WEB_SEARCH";
7
+ PlanFeature["FILE_ATTACH"] = "FILE_ATTACH";
8
+ PlanFeature["REASONING"] = "REASONING";
9
+ })(PlanFeature || (exports.PlanFeature = PlanFeature = {}));
10
+ //# sourceMappingURL=plan-feature.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plan-feature.enum.js","sourceRoot":"","sources":["../../../../v1/plans/schemas/plan-feature.enum.ts"],"names":[],"mappings":";;;AAIA,IAAY,WAIX;AAJD,WAAY,WAAW;IACnB,wCAAyB,CAAA;IACzB,0CAA2B,CAAA;IAC3B,sCAAuB,CAAA;AAC3B,CAAC,EAJW,WAAW,2BAAX,WAAW,QAItB"}