@veruna/api-contracts 6.9.0 → 6.11.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 (421) hide show
  1. package/build/controllers/index.d.ts +4 -0
  2. package/build/controllers/index.js +13 -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-admin.controllers.d.ts +2 -0
  11. package/build/controllers/subscription-admin.controllers.js +6 -0
  12. package/build/controllers/subscription-admin.controllers.js.map +1 -0
  13. package/build/controllers/subscription.controllers.d.ts +1 -0
  14. package/build/controllers/subscription.controllers.js +5 -0
  15. package/build/controllers/subscription.controllers.js.map +1 -0
  16. package/build/locales/en.d.ts +25 -0
  17. package/build/locales/en.js +25 -0
  18. package/build/locales/en.js.map +1 -1
  19. package/build/locales/index.d.ts +50 -0
  20. package/build/locales/ru.d.ts +25 -0
  21. package/build/locales/ru.js +25 -0
  22. package/build/locales/ru.js.map +1 -1
  23. package/build/locales/validation.d.ts +732 -0
  24. package/build/locales/validation.js +546 -2
  25. package/build/locales/validation.js.map +1 -1
  26. package/build/rest-api.d.ts +175 -90
  27. package/build/rest-api.js +175 -90
  28. package/build/rest-api.js.map +1 -1
  29. package/build/routes/index.d.ts +4 -0
  30. package/build/routes/index.js +12 -1
  31. package/build/routes/index.js.map +1 -1
  32. package/build/routes/payment.routes.d.ts +13 -0
  33. package/build/routes/payment.routes.js +17 -0
  34. package/build/routes/payment.routes.js.map +1 -0
  35. package/build/routes/plans.routes.d.ts +9 -0
  36. package/build/routes/plans.routes.js +13 -0
  37. package/build/routes/plans.routes.js.map +1 -0
  38. package/build/routes/subscription-admin.routes.d.ts +6 -0
  39. package/build/routes/subscription-admin.routes.js +10 -0
  40. package/build/routes/subscription-admin.routes.js.map +1 -0
  41. package/build/routes/subscription.routes.d.ts +8 -0
  42. package/build/routes/subscription.routes.js +12 -0
  43. package/build/routes/subscription.routes.js.map +1 -0
  44. package/build/tsconfig.tsbuildinfo +1 -1
  45. package/build/v1/admin-file/commands/admin-file-delete-by-key.command.js +1 -1
  46. package/build/v1/admin-file/commands/admin-file-delete-by-key.command.js.map +1 -1
  47. package/build/v1/admin-file/commands/admin-file-upload.command.js +1 -1
  48. package/build/v1/admin-file/commands/admin-file-upload.command.js.map +1 -1
  49. package/build/v1/admin-file/queries/admin-file-get-by-key.query.js +1 -1
  50. package/build/v1/admin-file/queries/admin-file-get-by-key.query.js.map +1 -1
  51. package/build/v1/admin-file/queries/admin-file-list.query.js +1 -1
  52. package/build/v1/admin-file/queries/admin-file-list.query.js.map +1 -1
  53. package/build/v1/analytics/queries/list-messages.query.js +1 -1
  54. package/build/v1/analytics/queries/list-messages.query.js.map +1 -1
  55. package/build/v1/analytics/queries/message-details.query.js +1 -1
  56. package/build/v1/analytics/queries/message-details.query.js.map +1 -1
  57. package/build/v1/analytics/queries/requests-chart.query.js +1 -1
  58. package/build/v1/analytics/queries/requests-chart.query.js.map +1 -1
  59. package/build/v1/analytics/queries/spend-chart.query.js +1 -1
  60. package/build/v1/analytics/queries/spend-chart.query.js.map +1 -1
  61. package/build/v1/antifraud/admin/commands/admin-set-preset.command.js +1 -1
  62. package/build/v1/antifraud/admin/commands/admin-set-preset.command.js.map +1 -1
  63. package/build/v1/antifraud/admin/queries/admin-get-preset-history.query.js +1 -1
  64. package/build/v1/antifraud/admin/queries/admin-get-preset-history.query.js.map +1 -1
  65. package/build/v1/antifraud/admin/queries/admin-get-settings.query.js +1 -1
  66. package/build/v1/antifraud/admin/queries/admin-get-settings.query.js.map +1 -1
  67. package/build/v1/assistants/catalog/queries/catalog-long-reg.query.js +1 -1
  68. package/build/v1/assistants/catalog/queries/catalog-long-reg.query.js.map +1 -1
  69. package/build/v1/assistants/catalog/queries/catalog-long-unreg.query.js +1 -1
  70. package/build/v1/assistants/catalog/queries/catalog-long-unreg.query.js.map +1 -1
  71. package/build/v1/assistants/catalog/queries/catalog-short-reg.query.js +1 -1
  72. package/build/v1/assistants/catalog/queries/catalog-short-reg.query.js.map +1 -1
  73. package/build/v1/assistants/catalog/queries/catalog-short-unreg.query.js +1 -1
  74. package/build/v1/assistants/catalog/queries/catalog-short-unreg.query.js.map +1 -1
  75. package/build/v1/avatar/commands/avatar-delete.command.js +1 -1
  76. package/build/v1/avatar/commands/avatar-delete.command.js.map +1 -1
  77. package/build/v1/avatar/commands/avatar-upload.command.js +1 -1
  78. package/build/v1/avatar/commands/avatar-upload.command.js.map +1 -1
  79. package/build/v1/billing/commands/admin-create-markup-tier.command.js +1 -1
  80. package/build/v1/billing/commands/admin-create-markup-tier.command.js.map +1 -1
  81. package/build/v1/billing/commands/admin-delete-markup-tier.command.js +1 -1
  82. package/build/v1/billing/commands/admin-delete-markup-tier.command.js.map +1 -1
  83. package/build/v1/billing/commands/admin-update-markup-tier.command.js +1 -1
  84. package/build/v1/billing/commands/admin-update-markup-tier.command.js.map +1 -1
  85. package/build/v1/billing/queries/admin-list-markup-tiers.query.js +1 -1
  86. package/build/v1/billing/queries/admin-list-markup-tiers.query.js.map +1 -1
  87. package/build/v1/chat/commands/delete-homeless-chats.command.js +1 -1
  88. package/build/v1/chat/commands/delete-homeless-chats.command.js.map +1 -1
  89. package/build/v1/chat/queries/get-chat-history.query.js +1 -1
  90. package/build/v1/chat/queries/get-chat-history.query.js.map +1 -1
  91. package/build/v1/chat/queries/get-generating-chats.query.js +1 -1
  92. package/build/v1/chat/queries/get-generating-chats.query.js.map +1 -1
  93. package/build/v1/chat/queries/search-chats.query.js +1 -1
  94. package/build/v1/chat/queries/search-chats.query.js.map +1 -1
  95. package/build/v1/chat-project/commands/create-project.command.js +1 -1
  96. package/build/v1/chat-project/commands/create-project.command.js.map +1 -1
  97. package/build/v1/chat-project/commands/delete-folder-chats.command.js +1 -1
  98. package/build/v1/chat-project/commands/delete-folder-chats.command.js.map +1 -1
  99. package/build/v1/chat-project/commands/delete-project.command.js +1 -1
  100. package/build/v1/chat-project/commands/delete-project.command.js.map +1 -1
  101. package/build/v1/chat-project/commands/organize.command.js +1 -1
  102. package/build/v1/chat-project/commands/organize.command.js.map +1 -1
  103. package/build/v1/chat-project/commands/update-project.command.js +1 -1
  104. package/build/v1/chat-project/commands/update-project.command.js.map +1 -1
  105. package/build/v1/chat-project/queries/get-project-chats.query.js +1 -1
  106. package/build/v1/chat-project/queries/get-project-chats.query.js.map +1 -1
  107. package/build/v1/chat-project/queries/get-project.query.js +1 -1
  108. package/build/v1/chat-project/queries/get-project.query.js.map +1 -1
  109. package/build/v1/chat-project/queries/get-projects.query.js +1 -1
  110. package/build/v1/chat-project/queries/get-projects.query.js.map +1 -1
  111. package/build/v1/client-file/commands/client-file-attach.command.js +1 -1
  112. package/build/v1/client-file/commands/client-file-attach.command.js.map +1 -1
  113. package/build/v1/client-file/commands/client-file-delete.command.js +1 -1
  114. package/build/v1/client-file/commands/client-file-delete.command.js.map +1 -1
  115. package/build/v1/client-file/commands/client-file-upload.command.js +1 -1
  116. package/build/v1/client-file/commands/client-file-upload.command.js.map +1 -1
  117. package/build/v1/client-file/commands/user-file-delete.command.js +1 -1
  118. package/build/v1/client-file/commands/user-file-delete.command.js.map +1 -1
  119. package/build/v1/client-file/queries/client-file-list.query.js +1 -1
  120. package/build/v1/client-file/queries/client-file-list.query.js.map +1 -1
  121. package/build/v1/client-file/queries/user-files-list.query.js +1 -1
  122. package/build/v1/client-file/queries/user-files-list.query.js.map +1 -1
  123. package/build/v1/client-file/queries/user-files-stats.query.js +1 -1
  124. package/build/v1/client-file/queries/user-files-stats.query.js.map +1 -1
  125. package/build/v1/daily-rewards/commands/admin-upsert-reward-config.command.js +1 -1
  126. package/build/v1/daily-rewards/commands/admin-upsert-reward-config.command.js.map +1 -1
  127. package/build/v1/daily-rewards/commands/claim-daily-reward.command.js +1 -1
  128. package/build/v1/daily-rewards/commands/claim-daily-reward.command.js.map +1 -1
  129. package/build/v1/daily-rewards/commands/restore-streak-with-grace.command.js +1 -1
  130. package/build/v1/daily-rewards/commands/restore-streak-with-grace.command.js.map +1 -1
  131. package/build/v1/daily-rewards/queries/admin-get-reward-configs.query.js +1 -1
  132. package/build/v1/daily-rewards/queries/admin-get-reward-configs.query.js.map +1 -1
  133. package/build/v1/daily-rewards/queries/get-claim-history.query.js +1 -1
  134. package/build/v1/daily-rewards/queries/get-claim-history.query.js.map +1 -1
  135. package/build/v1/daily-rewards/queries/get-reward-table.query.js +1 -1
  136. package/build/v1/daily-rewards/queries/get-reward-table.query.js.map +1 -1
  137. package/build/v1/daily-rewards/queries/get-streak-status.query.js +1 -1
  138. package/build/v1/daily-rewards/queries/get-streak-status.query.js.map +1 -1
  139. package/build/v1/index.d.ts +3 -0
  140. package/build/v1/index.js +3 -0
  141. package/build/v1/index.js.map +1 -1
  142. package/build/v1/model-route/admin/commands/create-model-route.command.js +1 -1
  143. package/build/v1/model-route/admin/commands/create-model-route.command.js.map +1 -1
  144. package/build/v1/notifications/commands/update-notification-settings.command.js +1 -1
  145. package/build/v1/notifications/commands/update-notification-settings.command.js.map +1 -1
  146. package/build/v1/notifications/queries/get-notification-settings.query.js +1 -1
  147. package/build/v1/notifications/queries/get-notification-settings.query.js.map +1 -1
  148. package/build/v1/payment/commands/charge-saved-method.command.d.ts +15 -0
  149. package/build/v1/payment/commands/charge-saved-method.command.js +25 -0
  150. package/build/v1/payment/commands/charge-saved-method.command.js.map +1 -0
  151. package/build/v1/payment/commands/check-webhook.command.d.ts +20 -0
  152. package/build/v1/payment/commands/check-webhook.command.js +14 -0
  153. package/build/v1/payment/commands/check-webhook.command.js.map +1 -0
  154. package/build/v1/payment/commands/confirm-webhook.command.d.ts +19 -0
  155. package/build/v1/payment/commands/confirm-webhook.command.js +14 -0
  156. package/build/v1/payment/commands/confirm-webhook.command.js.map +1 -0
  157. package/build/v1/payment/commands/create-order.command.d.ts +25 -0
  158. package/build/v1/payment/commands/create-order.command.js +43 -0
  159. package/build/v1/payment/commands/create-order.command.js.map +1 -0
  160. package/build/v1/payment/commands/fail-webhook.command.d.ts +21 -0
  161. package/build/v1/payment/commands/fail-webhook.command.js +14 -0
  162. package/build/v1/payment/commands/fail-webhook.command.js.map +1 -0
  163. package/build/v1/payment/commands/index.d.ts +10 -0
  164. package/build/v1/payment/commands/index.js +27 -0
  165. package/build/v1/payment/commands/index.js.map +1 -0
  166. package/build/v1/payment/commands/mark-order-fulfilled.command.d.ts +13 -0
  167. package/build/v1/payment/commands/mark-order-fulfilled.command.js +19 -0
  168. package/build/v1/payment/commands/mark-order-fulfilled.command.js.map +1 -0
  169. package/build/v1/payment/commands/pay-webhook.command.d.ts +25 -0
  170. package/build/v1/payment/commands/pay-webhook.command.js +14 -0
  171. package/build/v1/payment/commands/pay-webhook.command.js.map +1 -0
  172. package/build/v1/payment/commands/recurrent-webhook.command.d.ts +22 -0
  173. package/build/v1/payment/commands/recurrent-webhook.command.js +14 -0
  174. package/build/v1/payment/commands/recurrent-webhook.command.js.map +1 -0
  175. package/build/v1/payment/commands/refund-webhook.command.d.ts +18 -0
  176. package/build/v1/payment/commands/refund-webhook.command.js +14 -0
  177. package/build/v1/payment/commands/refund-webhook.command.js.map +1 -0
  178. package/build/v1/payment/commands/revoke-saved-method.command.d.ts +15 -0
  179. package/build/v1/payment/commands/revoke-saved-method.command.js +24 -0
  180. package/build/v1/payment/commands/revoke-saved-method.command.js.map +1 -0
  181. package/build/v1/payment/index.d.ts +6 -0
  182. package/build/v1/payment/index.js +28 -0
  183. package/build/v1/payment/index.js.map +1 -0
  184. package/build/v1/payment/payment.errors.d.ts +16 -0
  185. package/build/v1/payment/payment.errors.js +69 -0
  186. package/build/v1/payment/payment.errors.js.map +1 -0
  187. package/build/v1/payment/queries/get-checkout-config.query.d.ts +20 -0
  188. package/build/v1/payment/queries/get-checkout-config.query.js +23 -0
  189. package/build/v1/payment/queries/get-checkout-config.query.js.map +1 -0
  190. package/build/v1/payment/queries/get-order.query.d.ts +29 -0
  191. package/build/v1/payment/queries/get-order.query.js +18 -0
  192. package/build/v1/payment/queries/get-order.query.js.map +1 -0
  193. package/build/v1/payment/queries/get-paid-unfulfilled-orders.query.d.ts +29 -0
  194. package/build/v1/payment/queries/get-paid-unfulfilled-orders.query.js +15 -0
  195. package/build/v1/payment/queries/get-paid-unfulfilled-orders.query.js.map +1 -0
  196. package/build/v1/payment/queries/get-saved-methods.query.d.ts +33 -0
  197. package/build/v1/payment/queries/get-saved-methods.query.js +30 -0
  198. package/build/v1/payment/queries/get-saved-methods.query.js.map +1 -0
  199. package/build/v1/payment/queries/index.d.ts +4 -0
  200. package/build/v1/payment/queries/index.js +21 -0
  201. package/build/v1/payment/queries/index.js.map +1 -0
  202. package/build/v1/payment/schemas/charge-initiator.enum.d.ts +4 -0
  203. package/build/v1/payment/schemas/charge-initiator.enum.js +9 -0
  204. package/build/v1/payment/schemas/charge-initiator.enum.js.map +1 -0
  205. package/build/v1/payment/schemas/cloudpayments-webhook.schemas.d.ts +106 -0
  206. package/build/v1/payment/schemas/cloudpayments-webhook.schemas.js +134 -0
  207. package/build/v1/payment/schemas/cloudpayments-webhook.schemas.js.map +1 -0
  208. package/build/v1/payment/schemas/cp-decline-codes.d.ts +4 -0
  209. package/build/v1/payment/schemas/cp-decline-codes.js +45 -0
  210. package/build/v1/payment/schemas/cp-decline-codes.js.map +1 -0
  211. package/build/v1/payment/schemas/cp-transaction-status.enum.d.ts +10 -0
  212. package/build/v1/payment/schemas/cp-transaction-status.enum.js +16 -0
  213. package/build/v1/payment/schemas/cp-transaction-status.enum.js.map +1 -0
  214. package/build/v1/payment/schemas/currency.enum.d.ts +3 -0
  215. package/build/v1/payment/schemas/currency.enum.js +8 -0
  216. package/build/v1/payment/schemas/currency.enum.js.map +1 -0
  217. package/build/v1/payment/schemas/decline-kind.enum.d.ts +6 -0
  218. package/build/v1/payment/schemas/decline-kind.enum.js +11 -0
  219. package/build/v1/payment/schemas/decline-kind.enum.js.map +1 -0
  220. package/build/v1/payment/schemas/dunning-stopped-reason.enum.d.ts +8 -0
  221. package/build/v1/payment/schemas/dunning-stopped-reason.enum.js +13 -0
  222. package/build/v1/payment/schemas/dunning-stopped-reason.enum.js.map +1 -0
  223. package/build/v1/payment/schemas/index.d.ts +12 -0
  224. package/build/v1/payment/schemas/index.js +29 -0
  225. package/build/v1/payment/schemas/index.js.map +1 -0
  226. package/build/v1/payment/schemas/order-kind.enum.d.ts +6 -0
  227. package/build/v1/payment/schemas/order-kind.enum.js +11 -0
  228. package/build/v1/payment/schemas/order-kind.enum.js.map +1 -0
  229. package/build/v1/payment/schemas/order-status.enum.d.ts +7 -0
  230. package/build/v1/payment/schemas/order-status.enum.js +12 -0
  231. package/build/v1/payment/schemas/order-status.enum.js.map +1 -0
  232. package/build/v1/payment/schemas/payment-provider.enum.d.ts +3 -0
  233. package/build/v1/payment/schemas/payment-provider.enum.js +8 -0
  234. package/build/v1/payment/schemas/payment-provider.enum.js.map +1 -0
  235. package/build/v1/payment/schemas/payment-status.enum.d.ts +7 -0
  236. package/build/v1/payment/schemas/payment-status.enum.js +12 -0
  237. package/build/v1/payment/schemas/payment-status.enum.js.map +1 -0
  238. package/build/v1/payment/schemas/saved-method-status.enum.d.ts +5 -0
  239. package/build/v1/payment/schemas/saved-method-status.enum.js +10 -0
  240. package/build/v1/payment/schemas/saved-method-status.enum.js.map +1 -0
  241. package/build/v1/plans/commands/admin-create-plan.command.d.ts +60 -0
  242. package/build/v1/plans/commands/admin-create-plan.command.js +14 -0
  243. package/build/v1/plans/commands/admin-create-plan.command.js.map +1 -0
  244. package/build/v1/plans/commands/admin-delete-plan.command.d.ts +12 -0
  245. package/build/v1/plans/commands/admin-delete-plan.command.js +15 -0
  246. package/build/v1/plans/commands/admin-delete-plan.command.js.map +1 -0
  247. package/build/v1/plans/commands/admin-update-plan.command.d.ts +59 -0
  248. package/build/v1/plans/commands/admin-update-plan.command.js +14 -0
  249. package/build/v1/plans/commands/admin-update-plan.command.js.map +1 -0
  250. package/build/v1/plans/commands/index.d.ts +3 -0
  251. package/build/v1/plans/commands/index.js +20 -0
  252. package/build/v1/plans/commands/index.js.map +1 -0
  253. package/build/v1/plans/index.d.ts +6 -0
  254. package/build/v1/plans/index.js +28 -0
  255. package/build/v1/plans/index.js.map +1 -0
  256. package/build/v1/plans/plans.errors.d.ts +11 -0
  257. package/build/v1/plans/plans.errors.js +44 -0
  258. package/build/v1/plans/plans.errors.js.map +1 -0
  259. package/build/v1/plans/queries/admin-get-plan-by-id.query.d.ts +41 -0
  260. package/build/v1/plans/queries/admin-get-plan-by-id.query.js +15 -0
  261. package/build/v1/plans/queries/admin-get-plan-by-id.query.js.map +1 -0
  262. package/build/v1/plans/queries/index.d.ts +2 -0
  263. package/build/v1/plans/queries/index.js +19 -0
  264. package/build/v1/plans/queries/index.js.map +1 -0
  265. package/build/v1/plans/queries/list-plans.query.d.ts +115 -0
  266. package/build/v1/plans/queries/list-plans.query.js +22 -0
  267. package/build/v1/plans/queries/list-plans.query.js.map +1 -0
  268. package/build/v1/plans/schemas/admin-delete-plan.schema.d.ts +4 -0
  269. package/build/v1/plans/schemas/admin-delete-plan.schema.js +8 -0
  270. package/build/v1/plans/schemas/admin-delete-plan.schema.js.map +1 -0
  271. package/build/v1/plans/schemas/index.d.ts +5 -0
  272. package/build/v1/plans/schemas/index.js +22 -0
  273. package/build/v1/plans/schemas/index.js.map +1 -0
  274. package/build/v1/plans/schemas/plan-feature.enum.d.ts +5 -0
  275. package/build/v1/plans/schemas/plan-feature.enum.js +10 -0
  276. package/build/v1/plans/schemas/plan-feature.enum.js.map +1 -0
  277. package/build/v1/plans/schemas/plan-status.enum.d.ts +5 -0
  278. package/build/v1/plans/schemas/plan-status.enum.js +10 -0
  279. package/build/v1/plans/schemas/plan-status.enum.js.map +1 -0
  280. package/build/v1/plans/schemas/plan-type.enum.d.ts +5 -0
  281. package/build/v1/plans/schemas/plan-type.enum.js +10 -0
  282. package/build/v1/plans/schemas/plan-type.enum.js.map +1 -0
  283. package/build/v1/plans/schemas/plan.schema.d.ts +270 -0
  284. package/build/v1/plans/schemas/plan.schema.js +249 -0
  285. package/build/v1/plans/schemas/plan.schema.js.map +1 -0
  286. package/build/v1/settings/commands/update-user-setting.command.js +1 -1
  287. package/build/v1/settings/commands/update-user-setting.command.js.map +1 -1
  288. package/build/v1/settings/queries/get-user-settings.query.js +1 -1
  289. package/build/v1/settings/queries/get-user-settings.query.js.map +1 -1
  290. package/build/v1/subscription/admin/commands/admin-grant-package.command.d.ts +18 -0
  291. package/build/v1/subscription/admin/commands/admin-grant-package.command.js +14 -0
  292. package/build/v1/subscription/admin/commands/admin-grant-package.command.js.map +1 -0
  293. package/build/v1/subscription/admin/commands/admin-grant-subscription.command.d.ts +19 -0
  294. package/build/v1/subscription/admin/commands/admin-grant-subscription.command.js +14 -0
  295. package/build/v1/subscription/admin/commands/admin-grant-subscription.command.js.map +1 -0
  296. package/build/v1/subscription/admin/commands/index.d.ts +2 -0
  297. package/build/v1/subscription/admin/commands/index.js +19 -0
  298. package/build/v1/subscription/admin/commands/index.js.map +1 -0
  299. package/build/v1/subscription/admin/index.d.ts +2 -0
  300. package/build/v1/subscription/admin/index.js +19 -0
  301. package/build/v1/subscription/admin/index.js.map +1 -0
  302. package/build/v1/subscription/admin/schemas/admin-grant-package.schema.d.ts +12 -0
  303. package/build/v1/subscription/admin/schemas/admin-grant-package.schema.js +30 -0
  304. package/build/v1/subscription/admin/schemas/admin-grant-package.schema.js.map +1 -0
  305. package/build/v1/subscription/admin/schemas/admin-grant-subscription.schema.d.ts +13 -0
  306. package/build/v1/subscription/admin/schemas/admin-grant-subscription.schema.js +36 -0
  307. package/build/v1/subscription/admin/schemas/admin-grant-subscription.schema.js.map +1 -0
  308. package/build/v1/subscription/admin/schemas/index.d.ts +2 -0
  309. package/build/v1/subscription/admin/schemas/index.js +19 -0
  310. package/build/v1/subscription/admin/schemas/index.js.map +1 -0
  311. package/build/v1/subscription/commands/buy-package.command.d.ts +19 -0
  312. package/build/v1/subscription/commands/buy-package.command.js +14 -0
  313. package/build/v1/subscription/commands/buy-package.command.js.map +1 -0
  314. package/build/v1/subscription/commands/cancel-subscription.command.d.ts +13 -0
  315. package/build/v1/subscription/commands/cancel-subscription.command.js +15 -0
  316. package/build/v1/subscription/commands/cancel-subscription.command.js.map +1 -0
  317. package/build/v1/subscription/commands/change-subscription.command.d.ts +18 -0
  318. package/build/v1/subscription/commands/change-subscription.command.js +14 -0
  319. package/build/v1/subscription/commands/change-subscription.command.js.map +1 -0
  320. package/build/v1/subscription/commands/checkout.command.d.ts +20 -0
  321. package/build/v1/subscription/commands/checkout.command.js +14 -0
  322. package/build/v1/subscription/commands/checkout.command.js.map +1 -0
  323. package/build/v1/subscription/commands/index.d.ts +5 -0
  324. package/build/v1/subscription/commands/index.js +22 -0
  325. package/build/v1/subscription/commands/index.js.map +1 -0
  326. package/build/v1/subscription/commands/uncancel-subscription.command.d.ts +12 -0
  327. package/build/v1/subscription/commands/uncancel-subscription.command.js +15 -0
  328. package/build/v1/subscription/commands/uncancel-subscription.command.js.map +1 -0
  329. package/build/v1/subscription/index.d.ts +9 -0
  330. package/build/v1/subscription/index.js +33 -0
  331. package/build/v1/subscription/index.js.map +1 -0
  332. package/build/v1/subscription/queries/get-my-subscription.query.d.ts +35 -0
  333. package/build/v1/subscription/queries/get-my-subscription.query.js +15 -0
  334. package/build/v1/subscription/queries/get-my-subscription.query.js.map +1 -0
  335. package/build/v1/subscription/queries/get-subscription-change-preview.query.d.ts +24 -0
  336. package/build/v1/subscription/queries/get-subscription-change-preview.query.js +35 -0
  337. package/build/v1/subscription/queries/get-subscription-change-preview.query.js.map +1 -0
  338. package/build/v1/subscription/queries/index.d.ts +2 -0
  339. package/build/v1/subscription/queries/index.js +19 -0
  340. package/build/v1/subscription/queries/index.js.map +1 -0
  341. package/build/v1/subscription/schemas/charge-status.enum.d.ts +5 -0
  342. package/build/v1/subscription/schemas/charge-status.enum.js +10 -0
  343. package/build/v1/subscription/schemas/charge-status.enum.js.map +1 -0
  344. package/build/v1/subscription/schemas/index.d.ts +6 -0
  345. package/build/v1/subscription/schemas/index.js +23 -0
  346. package/build/v1/subscription/schemas/index.js.map +1 -0
  347. package/build/v1/subscription/schemas/plan-transition-kind.enum.d.ts +6 -0
  348. package/build/v1/subscription/schemas/plan-transition-kind.enum.js +11 -0
  349. package/build/v1/subscription/schemas/plan-transition-kind.enum.js.map +1 -0
  350. package/build/v1/subscription/schemas/purchase-kind.enum.d.ts +6 -0
  351. package/build/v1/subscription/schemas/purchase-kind.enum.js +11 -0
  352. package/build/v1/subscription/schemas/purchase-kind.enum.js.map +1 -0
  353. package/build/v1/subscription/schemas/subscription-status.enum.d.ts +8 -0
  354. package/build/v1/subscription/schemas/subscription-status.enum.js +13 -0
  355. package/build/v1/subscription/schemas/subscription-status.enum.js.map +1 -0
  356. package/build/v1/subscription/schemas/subscription.schema.d.ts +110 -0
  357. package/build/v1/subscription/schemas/subscription.schema.js +113 -0
  358. package/build/v1/subscription/schemas/subscription.schema.js.map +1 -0
  359. package/build/v1/subscription/schemas/user-package-status.enum.d.ts +6 -0
  360. package/build/v1/subscription/schemas/user-package-status.enum.js +11 -0
  361. package/build/v1/subscription/schemas/user-package-status.enum.js.map +1 -0
  362. package/build/v1/subscription/subscription.errors.d.ts +17 -0
  363. package/build/v1/subscription/subscription.errors.js +74 -0
  364. package/build/v1/subscription/subscription.errors.js.map +1 -0
  365. package/build/v1/tasks/commands/admin-create-task-definition.command.js +1 -1
  366. package/build/v1/tasks/commands/admin-create-task-definition.command.js.map +1 -1
  367. package/build/v1/tasks/commands/admin-delete-task-definition.command.js +1 -1
  368. package/build/v1/tasks/commands/admin-delete-task-definition.command.js.map +1 -1
  369. package/build/v1/tasks/commands/admin-update-task-definition.command.js +1 -1
  370. package/build/v1/tasks/commands/admin-update-task-definition.command.js.map +1 -1
  371. package/build/v1/tasks/commands/claim-task.command.js +1 -1
  372. package/build/v1/tasks/commands/claim-task.command.js.map +1 -1
  373. package/build/v1/tasks/commands/verify-task.command.js +1 -1
  374. package/build/v1/tasks/commands/verify-task.command.js.map +1 -1
  375. package/build/v1/tasks/queries/get-admin-task-definitions.query.js +1 -1
  376. package/build/v1/tasks/queries/get-admin-task-definitions.query.js.map +1 -1
  377. package/build/v1/tasks/queries/get-user-tasks.query.js +1 -1
  378. package/build/v1/tasks/queries/get-user-tasks.query.js.map +1 -1
  379. package/build/v1/telegram-auth/commands/exchange-telegram-auth.command.js +1 -1
  380. package/build/v1/telegram-auth/commands/exchange-telegram-auth.command.js.map +1 -1
  381. package/build/v1/telegram-auth/commands/init-telegram-auth.command.js +1 -1
  382. package/build/v1/telegram-auth/commands/init-telegram-auth.command.js.map +1 -1
  383. package/build/v1/telegram-auth/queries/get-telegram-auth-status.query.js +1 -1
  384. package/build/v1/telegram-auth/queries/get-telegram-auth-status.query.js.map +1 -1
  385. package/build/v1/unregistered-users/commands/authenticate.command.js +1 -1
  386. package/build/v1/unregistered-users/commands/authenticate.command.js.map +1 -1
  387. package/build/v1/verification/commands/cancel-verification.command.js +1 -1
  388. package/build/v1/verification/commands/cancel-verification.command.js.map +1 -1
  389. package/build/v1/verification/commands/resend.command.js +1 -1
  390. package/build/v1/verification/commands/resend.command.js.map +1 -1
  391. package/build/v1/verification/queries/get-active-verifications.query.js +1 -1
  392. package/build/v1/verification/queries/get-active-verifications.query.js.map +1 -1
  393. package/build/v1/vk-auth/commands/exchange-vk-auth.command.js +1 -1
  394. package/build/v1/vk-auth/commands/exchange-vk-auth.command.js.map +1 -1
  395. package/build/v1/vk-auth/commands/init-vk-auth.command.js +1 -1
  396. package/build/v1/vk-auth/commands/init-vk-auth.command.js.map +1 -1
  397. package/build/v1/vk-auth/queries/get-vk-auth-status.query.js +1 -1
  398. package/build/v1/vk-auth/queries/get-vk-auth-status.query.js.map +1 -1
  399. package/build/v1/vk-auth/queries/handle-vk-auth-callback.query.js +1 -1
  400. package/build/v1/vk-auth/queries/handle-vk-auth-callback.query.js.map +1 -1
  401. package/build/v1/wallet/schemas/balance-type-code.enum.d.ts +5 -1
  402. package/build/v1/wallet/schemas/balance-type-code.enum.js +4 -0
  403. package/build/v1/wallet/schemas/balance-type-code.enum.js.map +1 -1
  404. package/build/v1/wallet/schemas/source-type.enum.d.ts +2 -1
  405. package/build/v1/wallet/schemas/source-type.enum.js +1 -0
  406. package/build/v1/wallet/schemas/source-type.enum.js.map +1 -1
  407. package/build/v1/web-notifications/commands/mark-web-notifications-read-up-to.command.js +1 -1
  408. package/build/v1/web-notifications/commands/mark-web-notifications-read-up-to.command.js.map +1 -1
  409. package/build/v1/web-notifications/queries/get-web-notifications.query.js +1 -1
  410. package/build/v1/web-notifications/queries/get-web-notifications.query.js.map +1 -1
  411. package/build/v1/web-notifications/queries/get-web-unread-count.query.js +1 -1
  412. package/build/v1/web-notifications/queries/get-web-unread-count.query.js.map +1 -1
  413. package/build/v1/yandex-auth/commands/exchange-yandex-auth.command.js +1 -1
  414. package/build/v1/yandex-auth/commands/exchange-yandex-auth.command.js.map +1 -1
  415. package/build/v1/yandex-auth/commands/init-yandex-auth.command.js +1 -1
  416. package/build/v1/yandex-auth/commands/init-yandex-auth.command.js.map +1 -1
  417. package/build/v1/yandex-auth/queries/get-yandex-auth-status.query.js +1 -1
  418. package/build/v1/yandex-auth/queries/get-yandex-auth-status.query.js.map +1 -1
  419. package/build/v1/yandex-auth/queries/handle-yandex-auth-callback.query.js +1 -1
  420. package/build/v1/yandex-auth/queries/handle-yandex-auth-callback.query.js.map +1 -1
  421. package/package.json +1 -1
@@ -71,22 +71,39 @@ export declare const REST_API: {
71
71
  };
72
72
  };
73
73
  };
74
+ readonly UNREG_USERS: {
75
+ readonly UNREG: {
76
+ readonly AUTHENTICATE: "/api/v1/unreg/";
77
+ };
78
+ };
74
79
  readonly NOTIFICATIONS: {
75
- readonly SETTINGS: "/api/v1/notifications/settings";
80
+ readonly REG: {
81
+ readonly SETTINGS: "/api/v1/notifications/settings";
82
+ };
76
83
  };
77
84
  readonly SETTINGS: {
78
- readonly ROOT: "/api/v1/settings";
85
+ readonly REG: {
86
+ readonly ROOT: "/api/v1/settings";
87
+ };
79
88
  };
80
89
  readonly WEB_NOTIFICATIONS: {
81
- readonly LIST: "/api/v1/web-notifications/";
82
- readonly READ_UP_TO: "/api/v1/web-notifications/read-up-to";
83
- readonly UNREAD_COUNT: "/api/v1/web-notifications/unread-count";
90
+ readonly REG: {
91
+ readonly LIST: "/api/v1/web-notifications/";
92
+ readonly READ_UP_TO: "/api/v1/web-notifications/read-up-to";
93
+ readonly UNREAD_COUNT: "/api/v1/web-notifications/unread-count";
94
+ };
84
95
  };
85
96
  readonly ATTRIBUTION: {
86
- readonly CLICK: (token: string) => string;
97
+ readonly PUBLIC: {
98
+ readonly CLICK: (token: string) => string;
99
+ };
87
100
  };
88
- readonly UNREG: {
89
- readonly AUTHENTICATE: "/api/v1/unreg/";
101
+ readonly VERIFICATION: {
102
+ readonly REG: {
103
+ readonly RESEND: "/api/v1/verification/resend";
104
+ readonly ACTIVE: "/api/v1/verification/active";
105
+ readonly CANCEL: (requestId: string) => string;
106
+ };
90
107
  };
91
108
  readonly BLOG: {
92
109
  readonly ADMIN: {
@@ -133,15 +150,13 @@ export declare const REST_API: {
133
150
  readonly DELETE: (uuid: string) => string;
134
151
  readonly TOGGLE_FAVORITE: (uuid: string) => string;
135
152
  };
136
- readonly CATALOG: {
137
- readonly REG: {
138
- readonly SHORT: "/api/v1/assistants/catalog/short";
139
- readonly LONG: "/api/v1/assistants/catalog/longislandicedtea";
140
- };
141
- readonly UNREG: {
142
- readonly SHORT: "/api/v1/unreg/assistants/catalog/short";
143
- readonly LONG: "/api/v1/unreg/assistants/catalog/longislandicedtea";
144
- };
153
+ readonly REG: {
154
+ readonly CATALOG_SHORT: "/api/v1/assistants/catalog/short";
155
+ readonly CATALOG_LONG: "/api/v1/assistants/catalog/longislandicedtea";
156
+ };
157
+ readonly UNREG: {
158
+ readonly CATALOG_SHORT: "/api/v1/unreg/assistants/catalog/short";
159
+ readonly CATALOG_LONG: "/api/v1/unreg/assistants/catalog/longislandicedtea";
145
160
  };
146
161
  };
147
162
  readonly ASSISTANT_CATEGORIES: {
@@ -242,16 +257,20 @@ export declare const REST_API: {
242
257
  readonly LIST_CLIENT_FILES: "/file-api/s2s/files/client-files/:chatId";
243
258
  };
244
259
  readonly ADMIN_FILE: {
245
- readonly UPLOAD: `/file-api/v1/admin/file/${string}`;
246
- readonly LIST: "/file-api/v1/admin/file";
247
- readonly GET_BY_KEY: "/file-api/v1/admin/file";
248
- readonly DELETE_BY_KEY: "/file-api/v1/admin/file";
260
+ readonly ADMIN: {
261
+ readonly UPLOAD: `/file-api/v1/admin/file/${string}`;
262
+ readonly LIST: "/file-api/v1/admin/file";
263
+ readonly GET_BY_KEY: "/file-api/v1/admin/file";
264
+ readonly DELETE_BY_KEY: "/file-api/v1/admin/file";
265
+ };
249
266
  };
250
267
  readonly CLIENT_FILE: {
251
- readonly UPLOAD: (chatId: string) => string;
252
- readonly LIST: (chatId: string) => string;
253
- readonly DELETE: (chatId: string, fileId: string) => string;
254
- readonly ATTACH: (chatId: string) => string;
268
+ readonly REG: {
269
+ readonly UPLOAD: (chatId: string) => string;
270
+ readonly LIST: (chatId: string) => string;
271
+ readonly DELETE: (chatId: string, fileId: string) => string;
272
+ readonly ATTACH: (chatId: string) => string;
273
+ };
255
274
  readonly UNREG: {
256
275
  readonly UPLOAD: (chatId: string) => string;
257
276
  readonly LIST: (chatId: string) => string;
@@ -259,13 +278,17 @@ export declare const REST_API: {
259
278
  };
260
279
  };
261
280
  readonly USER_FILES: {
262
- readonly LIST: "/file-api/v1/client/files";
263
- readonly STATS: "/file-api/v1/client/files/stats";
264
- readonly DELETE: (fileId: string) => string;
281
+ readonly REG: {
282
+ readonly LIST: "/file-api/v1/client/files";
283
+ readonly STATS: "/file-api/v1/client/files/stats";
284
+ readonly DELETE: (fileId: string) => string;
285
+ };
265
286
  };
266
287
  readonly AVATAR: {
267
- readonly UPLOAD: "/file-api/v1/avatar";
268
- readonly DELETE: (uuid: string) => string;
288
+ readonly REG: {
289
+ readonly UPLOAD: "/file-api/v1/avatar";
290
+ readonly DELETE: (uuid: string) => string;
291
+ };
269
292
  };
270
293
  readonly AVATAR_S2S: {
271
294
  readonly ATTACH: "/file-api/s2s/avatar/attach";
@@ -273,14 +296,16 @@ export declare const REST_API: {
273
296
  readonly RELEASE_BY_UUID: "/file-api/s2s/avatar/release-by-uuid";
274
297
  };
275
298
  readonly CHAT_PROJECT: {
276
- readonly CREATE: "/api/v1/projects/";
277
- readonly GET_ALL: "/api/v1/projects/";
278
- readonly GET_BY_UUID: (uuid: string) => string;
279
- readonly UPDATE: (uuid: string) => string;
280
- readonly DELETE: (uuid: string) => string;
281
- readonly GET_CHATS: (uuid: string) => string;
282
- readonly DELETE_CHATS: (uuid: string) => string;
283
- readonly ORGANIZE: "/api/v1/projects/organize";
299
+ readonly REG: {
300
+ readonly CREATE: "/api/v1/projects/";
301
+ readonly GET_ALL: "/api/v1/projects/";
302
+ readonly GET_BY_UUID: (uuid: string) => string;
303
+ readonly UPDATE: (uuid: string) => string;
304
+ readonly DELETE: (uuid: string) => string;
305
+ readonly GET_CHATS: (uuid: string) => string;
306
+ readonly DELETE_CHATS: (uuid: string) => string;
307
+ readonly ORGANIZE: "/api/v1/projects/organize";
308
+ };
284
309
  };
285
310
  readonly CHAT: {
286
311
  readonly UNREG: {
@@ -293,11 +318,11 @@ export declare const REST_API: {
293
318
  readonly GET_BY_ID: (chatId: string) => string;
294
319
  readonly DELETE: (chatId: string) => string;
295
320
  readonly UPDATE_TITLE: (chatId: string) => string;
321
+ readonly HISTORY: "/api/v1/chat/history";
322
+ readonly SEARCH: "/api/v1/chat/search";
323
+ readonly GENERATING: "/api/v1/chat/generating";
324
+ readonly DELETE_HOMELESS: "/api/v1/chat/homeless";
296
325
  };
297
- readonly HISTORY: "/api/v1/chat/history";
298
- readonly SEARCH: "/api/v1/chat/search";
299
- readonly GENERATING: "/api/v1/chat/generating";
300
- readonly DELETE_HOMELESS: "/api/v1/chat/homeless";
301
326
  };
302
327
  readonly MESSAGE: {
303
328
  readonly UNREG: {
@@ -331,11 +356,6 @@ export declare const REST_API: {
331
356
  readonly PREVIEW: "/api/v1/unreg/open-graph";
332
357
  };
333
358
  };
334
- readonly VERIFICATION: {
335
- readonly RESEND: "/api/v1/verification/resend";
336
- readonly ACTIVE: "/api/v1/verification/active";
337
- readonly CANCEL: (requestId: string) => string;
338
- };
339
359
  readonly WALLET: {
340
360
  readonly REG: {
341
361
  readonly BALANCE: "/api/v1/wallet/balance";
@@ -351,47 +371,57 @@ export declare const REST_API: {
351
371
  };
352
372
  };
353
373
  readonly ANALYTICS: {
354
- readonly SPEND_CHART: "/api/v1/analytics/spend-chart";
355
- readonly REQUESTS_CHART: "/api/v1/analytics/requests-chart";
356
- readonly MESSAGES: "/api/v1/analytics/messages";
357
- readonly MESSAGE_DETAILS: (messageId: string) => string;
374
+ readonly REG: {
375
+ readonly SPEND_CHART: "/api/v1/analytics/spend-chart";
376
+ readonly REQUESTS_CHART: "/api/v1/analytics/requests-chart";
377
+ readonly MESSAGES: "/api/v1/analytics/messages";
378
+ readonly MESSAGE_DETAILS: (messageId: string) => string;
379
+ };
358
380
  };
359
381
  readonly BILLING_ADMIN: {
360
- readonly MARKUP_TIERS: "/api/v1/admin/billing/markup-tiers";
361
- readonly MARKUP_TIER_BY_ID: (id: string) => string;
362
- readonly TRANSACTIONS: "/api/v1/admin/billing/transactions";
363
- readonly USER_BALANCE: (userId: string) => string;
382
+ readonly ADMIN: {
383
+ readonly MARKUP_TIERS: "/api/v1/admin/billing/markup-tiers";
384
+ readonly MARKUP_TIER_BY_ID: (id: string) => string;
385
+ readonly TRANSACTIONS: "/api/v1/admin/billing/transactions";
386
+ readonly USER_BALANCE: (userId: string) => string;
387
+ };
364
388
  };
365
389
  readonly DAILY_REWARDS: {
366
- readonly STATUS: "/api/v1/daily-rewards/status";
367
- readonly CLAIM: "/api/v1/daily-rewards/claim";
368
- readonly GRACE: "/api/v1/daily-rewards/grace";
369
- readonly HISTORY: "/api/v1/daily-rewards/history";
370
- readonly REWARD_TABLE: "/api/v1/daily-rewards/reward-table";
390
+ readonly REG: {
391
+ readonly STATUS: "/api/v1/daily-rewards/status";
392
+ readonly CLAIM: "/api/v1/daily-rewards/claim";
393
+ readonly GRACE: "/api/v1/daily-rewards/grace";
394
+ readonly HISTORY: "/api/v1/daily-rewards/history";
395
+ readonly REWARD_TABLE: "/api/v1/daily-rewards/reward-table";
396
+ };
371
397
  readonly UNREG: {
372
398
  readonly REWARD_TABLE: "/api/v1/unreg/daily-rewards/reward-table";
373
399
  };
374
- };
375
- readonly DAILY_REWARDS_ADMIN: {
376
- readonly REWARD_CONFIGS: "/api/v1/admin/daily-rewards/reward-configs";
377
- readonly REWARD_CONFIG_BY_ID: (id: string) => string;
400
+ readonly ADMIN: {
401
+ readonly REWARD_CONFIGS: "/api/v1/admin/daily-rewards/reward-configs";
402
+ readonly REWARD_CONFIG_BY_ID: (id: string) => string;
403
+ };
378
404
  };
379
405
  readonly TASKS: {
380
- readonly LIST: "/api/v1/tasks";
381
- readonly VERIFY: (taskDefinitionId: string) => string;
382
- readonly CLAIM: (taskDefinitionId: string) => string;
406
+ readonly REG: {
407
+ readonly LIST: "/api/v1/tasks";
408
+ readonly VERIFY: (taskDefinitionId: string) => string;
409
+ readonly CLAIM: (taskDefinitionId: string) => string;
410
+ };
383
411
  readonly UNREG: {
384
412
  readonly LIST: "/api/v1/unreg/tasks";
385
413
  };
386
- };
387
- readonly TASKS_ADMIN: {
388
- readonly TASKS: "/api/v1/admin/tasks";
389
- readonly TASK_BY_ID: (id: string) => string;
414
+ readonly ADMIN: {
415
+ readonly TASKS: "/api/v1/admin/tasks";
416
+ readonly TASK_BY_ID: (id: string) => string;
417
+ };
390
418
  };
391
419
  readonly TELEGRAM_AUTH: {
392
- readonly INIT: "/api/v1/auth/telegram/init";
393
- readonly STATUS: (uuid: string) => string;
394
- readonly EXCHANGE: "/api/v1/auth/telegram/exchange";
420
+ readonly PUBLIC: {
421
+ readonly INIT: "/api/v1/auth/telegram/init";
422
+ readonly STATUS: (uuid: string) => string;
423
+ readonly EXCHANGE: "/api/v1/auth/telegram/exchange";
424
+ };
395
425
  };
396
426
  readonly TELEGRAM_PROFILE: {
397
427
  readonly REG: {
@@ -405,10 +435,12 @@ export declare const REST_API: {
405
435
  };
406
436
  };
407
437
  readonly VK_AUTH: {
408
- readonly INIT: "/api/v1/auth/vk/init";
409
- readonly CALLBACK: "/api/v1/auth/vk/callback";
410
- readonly STATUS: (uuid: string) => string;
411
- readonly EXCHANGE: "/api/v1/auth/vk/exchange";
438
+ readonly PUBLIC: {
439
+ readonly INIT: "/api/v1/auth/vk/init";
440
+ readonly CALLBACK: "/api/v1/auth/vk/callback";
441
+ readonly STATUS: (uuid: string) => string;
442
+ readonly EXCHANGE: "/api/v1/auth/vk/exchange";
443
+ };
412
444
  };
413
445
  readonly VK_PROFILE: {
414
446
  readonly REG: {
@@ -422,10 +454,12 @@ export declare const REST_API: {
422
454
  };
423
455
  };
424
456
  readonly YANDEX_AUTH: {
425
- readonly INIT: "/api/v1/auth/yandex/init";
426
- readonly CALLBACK: "/api/v1/auth/yandex/callback";
427
- readonly STATUS: (uuid: string) => string;
428
- readonly EXCHANGE: "/api/v1/auth/yandex/exchange";
457
+ readonly PUBLIC: {
458
+ readonly INIT: "/api/v1/auth/yandex/init";
459
+ readonly CALLBACK: "/api/v1/auth/yandex/callback";
460
+ readonly STATUS: (uuid: string) => string;
461
+ readonly EXCHANGE: "/api/v1/auth/yandex/exchange";
462
+ };
429
463
  };
430
464
  readonly YANDEX_PROFILE: {
431
465
  readonly REG: {
@@ -439,16 +473,67 @@ export declare const REST_API: {
439
473
  };
440
474
  };
441
475
  readonly MODEL_ROUTES: {
442
- readonly CREATE: "/api/v1/admin/model-routes";
443
- readonly LIST_BY_MODEL: (modelUuid: string) => string;
444
- readonly GET_BY_UUID: (uuid: string) => string;
445
- readonly UPDATE: (uuid: string) => string;
446
- readonly DELETE: (uuid: string) => string;
476
+ readonly ADMIN: {
477
+ readonly CREATE: "/api/v1/admin/model-routes";
478
+ readonly LIST_BY_MODEL: (modelUuid: string) => string;
479
+ readonly GET_BY_UUID: (uuid: string) => string;
480
+ readonly UPDATE: (uuid: string) => string;
481
+ readonly DELETE: (uuid: string) => string;
482
+ };
447
483
  };
448
484
  readonly ANTIFRAUD_ADMIN: {
449
- readonly SETTINGS: "/api/v1/admin/antifraud/settings";
450
- readonly PRESET: "/api/v1/admin/antifraud/preset";
451
- readonly HISTORY: "/api/v1/admin/antifraud/history";
485
+ readonly ADMIN: {
486
+ readonly SETTINGS: "/api/v1/admin/antifraud/settings";
487
+ readonly PRESET: "/api/v1/admin/antifraud/preset";
488
+ readonly HISTORY: "/api/v1/admin/antifraud/history";
489
+ };
490
+ };
491
+ readonly PLANS: {
492
+ readonly REG: {
493
+ readonly LIST: "/api/v1/plans/list";
494
+ };
495
+ readonly UNREG: {
496
+ readonly LIST: "/api/v1/unreg/plans/list";
497
+ };
498
+ readonly ADMIN: {
499
+ readonly CREATE: "/api/v1/admin/plans";
500
+ readonly UPDATE: (id: string) => string;
501
+ readonly DELETE: (id: string) => string;
502
+ readonly GET_BY_ID: (id: string) => string;
503
+ };
504
+ };
505
+ readonly SUBSCRIPTION: {
506
+ readonly REG: {
507
+ readonly ME: "/api/v1/subscription/me";
508
+ readonly CHECKOUT: "/api/v1/subscription/checkout";
509
+ readonly CHANGE: "/api/v1/subscription/change";
510
+ readonly CANCEL: "/api/v1/subscription/cancel";
511
+ readonly UNCANCEL: "/api/v1/subscription/uncancel";
512
+ readonly PACKAGE: "/api/v1/subscription/package";
513
+ };
514
+ readonly ADMIN: {
515
+ readonly GRANT: (userId: string) => string;
516
+ };
517
+ };
518
+ readonly PACKAGE: {
519
+ readonly ADMIN: {
520
+ readonly GRANT: (userId: string) => string;
521
+ };
522
+ };
523
+ readonly PAYMENT: {
524
+ readonly REG: {
525
+ readonly CHECKOUT_CONFIG: "/api/v1/payment/checkout-config";
526
+ readonly SAVED_METHODS: "/api/v1/payment/saved-methods";
527
+ readonly REVOKE_SAVED_METHOD: (id: string) => string;
528
+ };
529
+ readonly WEBHOOKS: {
530
+ readonly CHECK: "/api/v1/payment/webhooks/check";
531
+ readonly PAY: "/api/v1/payment/webhooks/pay";
532
+ readonly FAIL: "/api/v1/payment/webhooks/fail";
533
+ readonly CONFIRM: "/api/v1/payment/webhooks/confirm";
534
+ readonly REFUND: "/api/v1/payment/webhooks/refund";
535
+ readonly RECURRENT: "/api/v1/payment/webhooks/recurrent";
536
+ };
452
537
  };
453
538
  };
454
539
  readonly S2S: {