@veruna/api-contracts 1.0.70 → 1.0.73

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 (261) hide show
  1. package/build/controllers/index.d.ts +4 -0
  2. package/build/controllers/index.js +9 -1
  3. package/build/controllers/index.js.map +1 -1
  4. package/build/controllers/vk-auth.controllers.d.ts +1 -0
  5. package/build/controllers/vk-auth.controllers.js +5 -0
  6. package/build/controllers/vk-auth.controllers.js.map +1 -0
  7. package/build/controllers/vk-profile.controllers.d.ts +1 -0
  8. package/build/controllers/vk-profile.controllers.js +5 -0
  9. package/build/controllers/vk-profile.controllers.js.map +1 -0
  10. package/build/controllers/yandex-auth.controllers.d.ts +1 -0
  11. package/build/controllers/yandex-auth.controllers.js +5 -0
  12. package/build/controllers/yandex-auth.controllers.js.map +1 -0
  13. package/build/controllers/yandex-profile.controllers.d.ts +1 -0
  14. package/build/controllers/yandex-profile.controllers.js +5 -0
  15. package/build/controllers/yandex-profile.controllers.js.map +1 -0
  16. package/build/locales/validation.d.ts +98 -0
  17. package/build/locales/validation.js +98 -0
  18. package/build/locales/validation.js.map +1 -1
  19. package/build/rest-api.d.ts +24 -0
  20. package/build/rest-api.js +24 -0
  21. package/build/rest-api.js.map +1 -1
  22. package/build/routes/index.d.ts +4 -0
  23. package/build/routes/index.js +9 -1
  24. package/build/routes/index.js.map +1 -1
  25. package/build/routes/vk-auth.routes.d.ts +6 -0
  26. package/build/routes/vk-auth.routes.js +10 -0
  27. package/build/routes/vk-auth.routes.js.map +1 -0
  28. package/build/routes/vk-profile.routes.d.ts +6 -0
  29. package/build/routes/vk-profile.routes.js +10 -0
  30. package/build/routes/vk-profile.routes.js.map +1 -0
  31. package/build/routes/yandex-auth.routes.d.ts +6 -0
  32. package/build/routes/yandex-auth.routes.js +10 -0
  33. package/build/routes/yandex-auth.routes.js.map +1 -0
  34. package/build/routes/yandex-profile.routes.d.ts +6 -0
  35. package/build/routes/yandex-profile.routes.js +10 -0
  36. package/build/routes/yandex-profile.routes.js.map +1 -0
  37. package/build/tsconfig.tsbuildinfo +1 -1
  38. package/build/v1/auth/commands/signin.command.d.ts +1 -1
  39. package/build/v1/auth/commands/signup.command.d.ts +1 -1
  40. package/build/v1/auth/schemas/auth-response.schema.d.ts +1 -1
  41. package/build/v1/index.d.ts +5 -0
  42. package/build/v1/index.js +5 -0
  43. package/build/v1/index.js.map +1 -1
  44. package/build/v1/oauth-common/index.d.ts +1 -0
  45. package/build/v1/oauth-common/index.js +18 -0
  46. package/build/v1/oauth-common/index.js.map +1 -0
  47. package/build/v1/oauth-common/schemas/index.d.ts +1 -0
  48. package/build/v1/oauth-common/schemas/index.js +18 -0
  49. package/build/v1/oauth-common/schemas/index.js.map +1 -0
  50. package/build/v1/oauth-common/schemas/oauth-auth-request-type.enum.d.ts +4 -0
  51. package/build/v1/oauth-common/schemas/oauth-auth-request-type.enum.js +9 -0
  52. package/build/v1/oauth-common/schemas/oauth-auth-request-type.enum.js.map +1 -0
  53. package/build/v1/telegram-auth/commands/exchange-telegram-auth.command.d.ts +1 -0
  54. package/build/v1/telegram-auth/commands/init-telegram-auth.command.d.ts +2 -0
  55. package/build/v1/telegram-auth/constants/telegram-auth.constants.d.ts +1 -0
  56. package/build/v1/telegram-auth/constants/telegram-auth.constants.js +2 -1
  57. package/build/v1/telegram-auth/constants/telegram-auth.constants.js.map +1 -1
  58. package/build/v1/telegram-auth/queries/get-telegram-auth-status.query.d.ts +1 -0
  59. package/build/v1/telegram-auth/schemas/telegram-auth-exchange-request.schema.d.ts +1 -0
  60. package/build/v1/telegram-auth/schemas/telegram-auth-exchange-request.schema.js +4 -0
  61. package/build/v1/telegram-auth/schemas/telegram-auth-exchange-request.schema.js.map +1 -1
  62. package/build/v1/telegram-auth/schemas/telegram-auth-init-response.schema.d.ts +2 -0
  63. package/build/v1/telegram-auth/schemas/telegram-auth-init-response.schema.js +2 -0
  64. package/build/v1/telegram-auth/schemas/telegram-auth-init-response.schema.js.map +1 -1
  65. package/build/v1/telegram-auth/schemas/telegram-auth-request-type.enum.d.ts +1 -4
  66. package/build/v1/telegram-auth/schemas/telegram-auth-request-type.enum.js +2 -5
  67. package/build/v1/telegram-auth/schemas/telegram-auth-request-type.enum.js.map +1 -1
  68. package/build/v1/telegram-auth/schemas/telegram-auth-status-response.schema.d.ts +1 -0
  69. package/build/v1/telegram-auth/schemas/telegram-auth-status-response.schema.js +1 -0
  70. package/build/v1/telegram-auth/schemas/telegram-auth-status-response.schema.js.map +1 -1
  71. package/build/v1/telegram-profile/commands/unlink-telegram.command.d.ts +1 -3
  72. package/build/v1/telegram-profile/commands/unlink-telegram.command.js +2 -2
  73. package/build/v1/telegram-profile/commands/unlink-telegram.command.js.map +1 -1
  74. package/build/v1/telegram-profile/schemas/index.d.ts +0 -1
  75. package/build/v1/telegram-profile/schemas/index.js +0 -1
  76. package/build/v1/telegram-profile/schemas/index.js.map +1 -1
  77. package/build/v1/telegram-profile/telegram-profile.errors.d.ts +2 -1
  78. package/build/v1/telegram-profile/telegram-profile.errors.js +5 -0
  79. package/build/v1/telegram-profile/telegram-profile.errors.js.map +1 -1
  80. package/build/v1/users/commands/toggle-marketing-consent.command.d.ts +1 -1
  81. package/build/v1/users/commands/update-profile.command.d.ts +1 -1
  82. package/build/v1/users/queries/get-current-user.query.d.ts +1 -1
  83. package/build/v1/users/schemas/register-type.enum.d.ts +3 -1
  84. package/build/v1/users/schemas/register-type.enum.js +2 -0
  85. package/build/v1/users/schemas/register-type.enum.js.map +1 -1
  86. package/build/v1/users/schemas/response-unions.schema.d.ts +3 -3
  87. package/build/v1/users/schemas/user-response.schema.d.ts +1 -1
  88. package/build/v1/users/schemas/user-response.schema.js +1 -1
  89. package/build/v1/users/schemas/user-response.schema.js.map +1 -1
  90. package/build/v1/vk-auth/commands/exchange-vk-auth.command.d.ts +15 -0
  91. package/build/v1/vk-auth/commands/exchange-vk-auth.command.js +14 -0
  92. package/build/v1/vk-auth/commands/exchange-vk-auth.command.js.map +1 -0
  93. package/build/v1/vk-auth/commands/index.d.ts +2 -0
  94. package/build/v1/vk-auth/commands/index.js +19 -0
  95. package/build/v1/vk-auth/commands/index.js.map +1 -0
  96. package/build/v1/vk-auth/commands/init-vk-auth.command.d.ts +14 -0
  97. package/build/v1/vk-auth/commands/init-vk-auth.command.js +15 -0
  98. package/build/v1/vk-auth/commands/init-vk-auth.command.js.map +1 -0
  99. package/build/v1/vk-auth/index.d.ts +6 -0
  100. package/build/v1/vk-auth/index.js +26 -0
  101. package/build/v1/vk-auth/index.js.map +1 -0
  102. package/build/v1/vk-auth/queries/get-vk-auth-status.query.d.ts +13 -0
  103. package/build/v1/vk-auth/queries/get-vk-auth-status.query.js +15 -0
  104. package/build/v1/vk-auth/queries/get-vk-auth-status.query.js.map +1 -0
  105. package/build/v1/vk-auth/queries/handle-vk-auth-callback.query.d.ts +14 -0
  106. package/build/v1/vk-auth/queries/handle-vk-auth-callback.query.js +15 -0
  107. package/build/v1/vk-auth/queries/handle-vk-auth-callback.query.js.map +1 -0
  108. package/build/v1/vk-auth/queries/index.d.ts +2 -0
  109. package/build/v1/vk-auth/queries/index.js +19 -0
  110. package/build/v1/vk-auth/queries/index.js.map +1 -0
  111. package/build/v1/vk-auth/schemas/index.d.ts +7 -0
  112. package/build/v1/vk-auth/schemas/index.js +24 -0
  113. package/build/v1/vk-auth/schemas/index.js.map +1 -0
  114. package/build/v1/vk-auth/schemas/vk-auth-callback-query.schema.d.ts +7 -0
  115. package/build/v1/vk-auth/schemas/vk-auth-callback-query.schema.js +10 -0
  116. package/build/v1/vk-auth/schemas/vk-auth-callback-query.schema.js.map +1 -0
  117. package/build/v1/vk-auth/schemas/vk-auth-exchange-request.schema.d.ts +6 -0
  118. package/build/v1/vk-auth/schemas/vk-auth-exchange-request.schema.js +14 -0
  119. package/build/v1/vk-auth/schemas/vk-auth-exchange-request.schema.js.map +1 -0
  120. package/build/v1/vk-auth/schemas/vk-auth-exchange-response.schema.d.ts +6 -0
  121. package/build/v1/vk-auth/schemas/vk-auth-exchange-response.schema.js +9 -0
  122. package/build/v1/vk-auth/schemas/vk-auth-exchange-response.schema.js.map +1 -0
  123. package/build/v1/vk-auth/schemas/vk-auth-init-response.schema.d.ts +7 -0
  124. package/build/v1/vk-auth/schemas/vk-auth-init-response.schema.js +10 -0
  125. package/build/v1/vk-auth/schemas/vk-auth-init-response.schema.js.map +1 -0
  126. package/build/v1/vk-auth/schemas/vk-auth-request-type.enum.d.ts +1 -0
  127. package/build/v1/vk-auth/schemas/vk-auth-request-type.enum.js +6 -0
  128. package/build/v1/vk-auth/schemas/vk-auth-request-type.enum.js.map +1 -0
  129. package/build/v1/vk-auth/schemas/vk-auth-status-response.schema.d.ts +7 -0
  130. package/build/v1/vk-auth/schemas/vk-auth-status-response.schema.js +10 -0
  131. package/build/v1/vk-auth/schemas/vk-auth-status-response.schema.js.map +1 -0
  132. package/build/v1/vk-auth/schemas/vk-auth-status.enum.d.ts +7 -0
  133. package/build/v1/vk-auth/schemas/vk-auth-status.enum.js +12 -0
  134. package/build/v1/vk-auth/schemas/vk-auth-status.enum.js.map +1 -0
  135. package/build/v1/vk-auth/vk-auth.errors.d.ts +14 -0
  136. package/build/v1/vk-auth/vk-auth.errors.js +29 -0
  137. package/build/v1/vk-auth/vk-auth.errors.js.map +1 -0
  138. package/build/v1/vk-profile/commands/index.d.ts +2 -0
  139. package/build/v1/vk-profile/commands/index.js +19 -0
  140. package/build/v1/vk-profile/commands/index.js.map +1 -0
  141. package/build/v1/vk-profile/commands/link-vk.command.d.ts +14 -0
  142. package/build/v1/vk-profile/commands/link-vk.command.js +15 -0
  143. package/build/v1/vk-profile/commands/link-vk.command.js.map +1 -0
  144. package/build/v1/vk-profile/commands/unlink-vk.command.d.ts +8 -0
  145. package/build/v1/vk-profile/commands/unlink-vk.command.js +13 -0
  146. package/build/v1/vk-profile/commands/unlink-vk.command.js.map +1 -0
  147. package/build/v1/vk-profile/index.d.ts +6 -0
  148. package/build/v1/vk-profile/index.js +26 -0
  149. package/build/v1/vk-profile/index.js.map +1 -0
  150. package/build/v1/vk-profile/queries/get-vk-link-status.query.d.ts +12 -0
  151. package/build/v1/vk-profile/queries/get-vk-link-status.query.js +13 -0
  152. package/build/v1/vk-profile/queries/get-vk-link-status.query.js.map +1 -0
  153. package/build/v1/vk-profile/queries/get-vk-profile.query.d.ts +20 -0
  154. package/build/v1/vk-profile/queries/get-vk-profile.query.js +13 -0
  155. package/build/v1/vk-profile/queries/get-vk-profile.query.js.map +1 -0
  156. package/build/v1/vk-profile/queries/index.d.ts +2 -0
  157. package/build/v1/vk-profile/queries/index.js +19 -0
  158. package/build/v1/vk-profile/queries/index.js.map +1 -0
  159. package/build/v1/vk-profile/schemas/index.d.ts +3 -0
  160. package/build/v1/vk-profile/schemas/index.js +20 -0
  161. package/build/v1/vk-profile/schemas/index.js.map +1 -0
  162. package/build/v1/vk-profile/schemas/vk-link-response.schema.d.ts +7 -0
  163. package/build/v1/vk-profile/schemas/vk-link-response.schema.js +10 -0
  164. package/build/v1/vk-profile/schemas/vk-link-response.schema.js.map +1 -0
  165. package/build/v1/vk-profile/schemas/vk-link-status-response.schema.d.ts +8 -0
  166. package/build/v1/vk-profile/schemas/vk-link-status-response.schema.js +11 -0
  167. package/build/v1/vk-profile/schemas/vk-link-status-response.schema.js.map +1 -0
  168. package/build/v1/vk-profile/schemas/vk-profile-response.schema.d.ts +15 -0
  169. package/build/v1/vk-profile/schemas/vk-profile-response.schema.js +18 -0
  170. package/build/v1/vk-profile/schemas/vk-profile-response.schema.js.map +1 -0
  171. package/build/v1/vk-profile/vk-profile.errors.d.ts +11 -0
  172. package/build/v1/vk-profile/vk-profile.errors.js +23 -0
  173. package/build/v1/vk-profile/vk-profile.errors.js.map +1 -0
  174. package/build/v1/yandex-auth/commands/exchange-yandex-auth.command.d.ts +16 -0
  175. package/build/v1/yandex-auth/commands/exchange-yandex-auth.command.js +14 -0
  176. package/build/v1/yandex-auth/commands/exchange-yandex-auth.command.js.map +1 -0
  177. package/build/v1/yandex-auth/commands/index.d.ts +2 -0
  178. package/build/v1/yandex-auth/commands/index.js +19 -0
  179. package/build/v1/yandex-auth/commands/index.js.map +1 -0
  180. package/build/v1/yandex-auth/commands/init-yandex-auth.command.d.ts +14 -0
  181. package/build/v1/yandex-auth/commands/init-yandex-auth.command.js +15 -0
  182. package/build/v1/yandex-auth/commands/init-yandex-auth.command.js.map +1 -0
  183. package/build/v1/yandex-auth/index.d.ts +6 -0
  184. package/build/v1/yandex-auth/index.js +26 -0
  185. package/build/v1/yandex-auth/index.js.map +1 -0
  186. package/build/v1/yandex-auth/queries/get-yandex-auth-status.query.d.ts +13 -0
  187. package/build/v1/yandex-auth/queries/get-yandex-auth-status.query.js +15 -0
  188. package/build/v1/yandex-auth/queries/get-yandex-auth-status.query.js.map +1 -0
  189. package/build/v1/yandex-auth/queries/handle-yandex-auth-callback.query.d.ts +13 -0
  190. package/build/v1/yandex-auth/queries/handle-yandex-auth-callback.query.js +15 -0
  191. package/build/v1/yandex-auth/queries/handle-yandex-auth-callback.query.js.map +1 -0
  192. package/build/v1/yandex-auth/queries/index.d.ts +2 -0
  193. package/build/v1/yandex-auth/queries/index.js +19 -0
  194. package/build/v1/yandex-auth/queries/index.js.map +1 -0
  195. package/build/v1/yandex-auth/schemas/index.d.ts +7 -0
  196. package/build/v1/yandex-auth/schemas/index.js +24 -0
  197. package/build/v1/yandex-auth/schemas/index.js.map +1 -0
  198. package/build/v1/yandex-auth/schemas/yandex-auth-callback-query.schema.d.ts +6 -0
  199. package/build/v1/yandex-auth/schemas/yandex-auth-callback-query.schema.js +9 -0
  200. package/build/v1/yandex-auth/schemas/yandex-auth-callback-query.schema.js.map +1 -0
  201. package/build/v1/yandex-auth/schemas/yandex-auth-exchange-request.schema.d.ts +6 -0
  202. package/build/v1/yandex-auth/schemas/yandex-auth-exchange-request.schema.js +14 -0
  203. package/build/v1/yandex-auth/schemas/yandex-auth-exchange-request.schema.js.map +1 -0
  204. package/build/v1/yandex-auth/schemas/yandex-auth-exchange-response.schema.d.ts +6 -0
  205. package/build/v1/yandex-auth/schemas/yandex-auth-exchange-response.schema.js +9 -0
  206. package/build/v1/yandex-auth/schemas/yandex-auth-exchange-response.schema.js.map +1 -0
  207. package/build/v1/yandex-auth/schemas/yandex-auth-init-response.schema.d.ts +7 -0
  208. package/build/v1/yandex-auth/schemas/yandex-auth-init-response.schema.js +10 -0
  209. package/build/v1/yandex-auth/schemas/yandex-auth-init-response.schema.js.map +1 -0
  210. package/build/v1/yandex-auth/schemas/yandex-auth-request-type.enum.d.ts +1 -0
  211. package/build/v1/yandex-auth/schemas/yandex-auth-request-type.enum.js +6 -0
  212. package/build/v1/yandex-auth/schemas/yandex-auth-request-type.enum.js.map +1 -0
  213. package/build/v1/yandex-auth/schemas/yandex-auth-status-response.schema.d.ts +7 -0
  214. package/build/v1/yandex-auth/schemas/yandex-auth-status-response.schema.js +10 -0
  215. package/build/v1/yandex-auth/schemas/yandex-auth-status-response.schema.js.map +1 -0
  216. package/build/v1/yandex-auth/schemas/yandex-auth-status.enum.d.ts +7 -0
  217. package/build/v1/yandex-auth/schemas/yandex-auth-status.enum.js +12 -0
  218. package/build/v1/yandex-auth/schemas/yandex-auth-status.enum.js.map +1 -0
  219. package/build/v1/yandex-auth/yandex-auth.errors.d.ts +14 -0
  220. package/build/v1/yandex-auth/yandex-auth.errors.js +59 -0
  221. package/build/v1/yandex-auth/yandex-auth.errors.js.map +1 -0
  222. package/build/v1/yandex-profile/commands/index.d.ts +2 -0
  223. package/build/v1/yandex-profile/commands/index.js +19 -0
  224. package/build/v1/yandex-profile/commands/index.js.map +1 -0
  225. package/build/v1/yandex-profile/commands/link-yandex.command.d.ts +14 -0
  226. package/build/v1/yandex-profile/commands/link-yandex.command.js +15 -0
  227. package/build/v1/yandex-profile/commands/link-yandex.command.js.map +1 -0
  228. package/build/v1/yandex-profile/commands/unlink-yandex.command.d.ts +8 -0
  229. package/build/v1/yandex-profile/commands/unlink-yandex.command.js +13 -0
  230. package/build/v1/yandex-profile/commands/unlink-yandex.command.js.map +1 -0
  231. package/build/v1/yandex-profile/index.d.ts +6 -0
  232. package/build/v1/yandex-profile/index.js +26 -0
  233. package/build/v1/yandex-profile/index.js.map +1 -0
  234. package/build/v1/yandex-profile/queries/get-yandex-link-status.query.d.ts +12 -0
  235. package/build/v1/yandex-profile/queries/get-yandex-link-status.query.js +13 -0
  236. package/build/v1/yandex-profile/queries/get-yandex-link-status.query.js.map +1 -0
  237. package/build/v1/yandex-profile/queries/get-yandex-profile.query.d.ts +29 -0
  238. package/build/v1/yandex-profile/queries/get-yandex-profile.query.js +13 -0
  239. package/build/v1/yandex-profile/queries/get-yandex-profile.query.js.map +1 -0
  240. package/build/v1/yandex-profile/queries/index.d.ts +2 -0
  241. package/build/v1/yandex-profile/queries/index.js +19 -0
  242. package/build/v1/yandex-profile/queries/index.js.map +1 -0
  243. package/build/v1/yandex-profile/schemas/index.d.ts +3 -0
  244. package/build/v1/yandex-profile/schemas/index.js +20 -0
  245. package/build/v1/yandex-profile/schemas/index.js.map +1 -0
  246. package/build/v1/yandex-profile/schemas/yandex-link-response.schema.d.ts +7 -0
  247. package/build/v1/yandex-profile/schemas/yandex-link-response.schema.js +10 -0
  248. package/build/v1/yandex-profile/schemas/yandex-link-response.schema.js.map +1 -0
  249. package/build/v1/yandex-profile/schemas/yandex-link-status-response.schema.d.ts +8 -0
  250. package/build/v1/yandex-profile/schemas/yandex-link-status-response.schema.js +11 -0
  251. package/build/v1/yandex-profile/schemas/yandex-link-status-response.schema.js.map +1 -0
  252. package/build/v1/yandex-profile/schemas/yandex-profile-response.schema.d.ts +24 -0
  253. package/build/v1/yandex-profile/schemas/yandex-profile-response.schema.js +27 -0
  254. package/build/v1/yandex-profile/schemas/yandex-profile-response.schema.js.map +1 -0
  255. package/build/v1/yandex-profile/yandex-profile.errors.d.ts +11 -0
  256. package/build/v1/yandex-profile/yandex-profile.errors.js +44 -0
  257. package/build/v1/yandex-profile/yandex-profile.errors.js.map +1 -0
  258. package/package.json +1 -1
  259. package/build/v1/telegram-profile/schemas/telegram-unlink-response.schema.d.ts +0 -5
  260. package/build/v1/telegram-profile/schemas/telegram-unlink-response.schema.js +0 -8
  261. package/build/v1/telegram-profile/schemas/telegram-unlink-response.schema.js.map +0 -1
@@ -0,0 +1,7 @@
1
+ export declare enum YandexAuthStatus {
2
+ PENDING = "pending",
3
+ CONFIRMED = "confirmed",
4
+ EXCHANGED = "exchanged",
5
+ EXPIRED = "expired",
6
+ FAILED = "failed"
7
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.YandexAuthStatus = void 0;
4
+ var YandexAuthStatus;
5
+ (function (YandexAuthStatus) {
6
+ YandexAuthStatus["PENDING"] = "pending";
7
+ YandexAuthStatus["CONFIRMED"] = "confirmed";
8
+ YandexAuthStatus["EXCHANGED"] = "exchanged";
9
+ YandexAuthStatus["EXPIRED"] = "expired";
10
+ YandexAuthStatus["FAILED"] = "failed";
11
+ })(YandexAuthStatus || (exports.YandexAuthStatus = YandexAuthStatus = {}));
12
+ //# sourceMappingURL=yandex-auth-status.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"yandex-auth-status.enum.js","sourceRoot":"","sources":["../../../../v1/yandex-auth/schemas/yandex-auth-status.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAMX;AAND,WAAY,gBAAgB;IACxB,uCAAmB,CAAA;IACnB,2CAAuB,CAAA;IACvB,2CAAuB,CAAA;IACvB,uCAAmB,CAAA;IACnB,qCAAiB,CAAA;AACrB,CAAC,EANW,gBAAgB,gCAAhB,gBAAgB,QAM3B"}
@@ -0,0 +1,14 @@
1
+ import { ErrorMetadata } from '../../shared';
2
+ export declare enum YandexAuthErrorCode {
3
+ AUTH_REQUEST_NOT_FOUND = "YANDEX_AUTH_REQUEST_NOT_FOUND",
4
+ AUTH_REQUEST_EXPIRED = "YANDEX_AUTH_REQUEST_EXPIRED",
5
+ AUTH_REQUEST_ALREADY_CONFIRMED = "YANDEX_AUTH_ALREADY_CONFIRMED",
6
+ AUTH_REQUEST_ALREADY_EXCHANGED = "YANDEX_AUTH_ALREADY_EXCHANGED",
7
+ AUTH_REQUEST_NOT_CONFIRMED = "YANDEX_AUTH_NOT_CONFIRMED",
8
+ TOO_MANY_PENDING_REQUESTS = "YANDEX_TOO_MANY_PENDING_REQUESTS",
9
+ STATE_ERROR = "YANDEX_STATE_ERROR",
10
+ GET_ACCESS_TOKEN_ERROR = "YANDEX_GET_ACCESS_TOKEN_ERROR",
11
+ GET_USER_INFO_ERROR = "YANDEX_GET_USER_INFO_ERROR",
12
+ REGISTER_CONFLICT = "YANDEX_REGISTER_CONFLICT"
13
+ }
14
+ export declare const YANDEX_AUTH_ERRORS: Record<YandexAuthErrorCode, ErrorMetadata>;
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.YANDEX_AUTH_ERRORS = exports.YandexAuthErrorCode = void 0;
4
+ var YandexAuthErrorCode;
5
+ (function (YandexAuthErrorCode) {
6
+ YandexAuthErrorCode["AUTH_REQUEST_NOT_FOUND"] = "YANDEX_AUTH_REQUEST_NOT_FOUND";
7
+ YandexAuthErrorCode["AUTH_REQUEST_EXPIRED"] = "YANDEX_AUTH_REQUEST_EXPIRED";
8
+ YandexAuthErrorCode["AUTH_REQUEST_ALREADY_CONFIRMED"] = "YANDEX_AUTH_ALREADY_CONFIRMED";
9
+ YandexAuthErrorCode["AUTH_REQUEST_ALREADY_EXCHANGED"] = "YANDEX_AUTH_ALREADY_EXCHANGED";
10
+ YandexAuthErrorCode["AUTH_REQUEST_NOT_CONFIRMED"] = "YANDEX_AUTH_NOT_CONFIRMED";
11
+ YandexAuthErrorCode["TOO_MANY_PENDING_REQUESTS"] = "YANDEX_TOO_MANY_PENDING_REQUESTS";
12
+ YandexAuthErrorCode["STATE_ERROR"] = "YANDEX_STATE_ERROR";
13
+ YandexAuthErrorCode["GET_ACCESS_TOKEN_ERROR"] = "YANDEX_GET_ACCESS_TOKEN_ERROR";
14
+ YandexAuthErrorCode["GET_USER_INFO_ERROR"] = "YANDEX_GET_USER_INFO_ERROR";
15
+ YandexAuthErrorCode["REGISTER_CONFLICT"] = "YANDEX_REGISTER_CONFLICT";
16
+ })(YandexAuthErrorCode || (exports.YandexAuthErrorCode = YandexAuthErrorCode = {}));
17
+ exports.YANDEX_AUTH_ERRORS = {
18
+ [YandexAuthErrorCode.AUTH_REQUEST_NOT_FOUND]: {
19
+ code: YandexAuthErrorCode.AUTH_REQUEST_NOT_FOUND,
20
+ statusCode: 404,
21
+ },
22
+ [YandexAuthErrorCode.AUTH_REQUEST_EXPIRED]: {
23
+ code: YandexAuthErrorCode.AUTH_REQUEST_EXPIRED,
24
+ statusCode: 410,
25
+ },
26
+ [YandexAuthErrorCode.AUTH_REQUEST_ALREADY_CONFIRMED]: {
27
+ code: YandexAuthErrorCode.AUTH_REQUEST_ALREADY_CONFIRMED,
28
+ statusCode: 409,
29
+ },
30
+ [YandexAuthErrorCode.AUTH_REQUEST_ALREADY_EXCHANGED]: {
31
+ code: YandexAuthErrorCode.AUTH_REQUEST_ALREADY_EXCHANGED,
32
+ statusCode: 409,
33
+ },
34
+ [YandexAuthErrorCode.AUTH_REQUEST_NOT_CONFIRMED]: {
35
+ code: YandexAuthErrorCode.AUTH_REQUEST_NOT_CONFIRMED,
36
+ statusCode: 400,
37
+ },
38
+ [YandexAuthErrorCode.TOO_MANY_PENDING_REQUESTS]: {
39
+ code: YandexAuthErrorCode.TOO_MANY_PENDING_REQUESTS,
40
+ statusCode: 429,
41
+ },
42
+ [YandexAuthErrorCode.STATE_ERROR]: {
43
+ code: YandexAuthErrorCode.STATE_ERROR,
44
+ statusCode: 400,
45
+ },
46
+ [YandexAuthErrorCode.GET_ACCESS_TOKEN_ERROR]: {
47
+ code: YandexAuthErrorCode.GET_ACCESS_TOKEN_ERROR,
48
+ statusCode: 500,
49
+ },
50
+ [YandexAuthErrorCode.GET_USER_INFO_ERROR]: {
51
+ code: YandexAuthErrorCode.GET_USER_INFO_ERROR,
52
+ statusCode: 500,
53
+ },
54
+ [YandexAuthErrorCode.REGISTER_CONFLICT]: {
55
+ code: YandexAuthErrorCode.REGISTER_CONFLICT,
56
+ statusCode: 409,
57
+ },
58
+ };
59
+ //# sourceMappingURL=yandex-auth.errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"yandex-auth.errors.js","sourceRoot":"","sources":["../../../v1/yandex-auth/yandex-auth.errors.ts"],"names":[],"mappings":";;;AAEA,IAAY,mBAWX;AAXD,WAAY,mBAAmB;IAC3B,+EAAwD,CAAA;IACxD,2EAAoD,CAAA;IACpD,uFAAgE,CAAA;IAChE,uFAAgE,CAAA;IAChE,+EAAwD,CAAA;IACxD,qFAA8D,CAAA;IAC9D,yDAAkC,CAAA;IAClC,+EAAwD,CAAA;IACxD,yEAAkD,CAAA;IAClD,qEAA8C,CAAA;AAClD,CAAC,EAXW,mBAAmB,mCAAnB,mBAAmB,QAW9B;AAEY,QAAA,kBAAkB,GAA+C;IAC1E,CAAC,mBAAmB,CAAC,sBAAsB,CAAC,EAAE;QAC1C,IAAI,EAAE,mBAAmB,CAAC,sBAAsB;QAChD,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,mBAAmB,CAAC,oBAAoB,CAAC,EAAE;QACxC,IAAI,EAAE,mBAAmB,CAAC,oBAAoB;QAC9C,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,mBAAmB,CAAC,8BAA8B,CAAC,EAAE;QAClD,IAAI,EAAE,mBAAmB,CAAC,8BAA8B;QACxD,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,mBAAmB,CAAC,8BAA8B,CAAC,EAAE;QAClD,IAAI,EAAE,mBAAmB,CAAC,8BAA8B;QACxD,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,mBAAmB,CAAC,0BAA0B,CAAC,EAAE;QAC9C,IAAI,EAAE,mBAAmB,CAAC,0BAA0B;QACpD,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,mBAAmB,CAAC,yBAAyB,CAAC,EAAE;QAC7C,IAAI,EAAE,mBAAmB,CAAC,yBAAyB;QACnD,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,mBAAmB,CAAC,WAAW,CAAC,EAAE;QAC/B,IAAI,EAAE,mBAAmB,CAAC,WAAW;QACrC,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,mBAAmB,CAAC,sBAAsB,CAAC,EAAE;QAC1C,IAAI,EAAE,mBAAmB,CAAC,sBAAsB;QAChD,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,mBAAmB,CAAC,mBAAmB,CAAC,EAAE;QACvC,IAAI,EAAE,mBAAmB,CAAC,mBAAmB;QAC7C,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,mBAAmB,CAAC,iBAAiB,CAAC,EAAE;QACrC,IAAI,EAAE,mBAAmB,CAAC,iBAAiB;QAC3C,UAAU,EAAE,GAAG;KAClB;CACK,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './link-yandex.command';
2
+ export * from './unlink-yandex.command';
@@ -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("./link-yandex.command"), exports);
18
+ __exportStar(require("./unlink-yandex.command"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/yandex-profile/commands/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,0DAAwC"}
@@ -0,0 +1,14 @@
1
+ import { z } from 'zod';
2
+ import { HttpMethod } from '../../../shared/http-method';
3
+ export declare namespace LinkYandexCommand {
4
+ const Request: z.ZodObject<{}, z.core.$strip>;
5
+ const Response: z.ZodObject<{
6
+ uuid: z.ZodString;
7
+ link: z.ZodString;
8
+ expiresAt: z.ZodString;
9
+ }, z.core.$strip>;
10
+ const URL: "/api/v1/profiles/yandex/link";
11
+ const METHOD = HttpMethod.POST;
12
+ type RequestType = z.infer<typeof Request>;
13
+ type ResponseType = z.infer<typeof Response>;
14
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LinkYandexCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const schemas_1 = require("../schemas");
6
+ const http_method_1 = require("../../../shared/http-method");
7
+ const rest_api_1 = require("../../../rest-api");
8
+ var LinkYandexCommand;
9
+ (function (LinkYandexCommand) {
10
+ LinkYandexCommand.Request = zod_1.z.object({});
11
+ LinkYandexCommand.Response = schemas_1.YandexLinkResponseSchema;
12
+ LinkYandexCommand.URL = rest_api_1.REST_API.V1.YANDEX_PROFILE.LINK;
13
+ LinkYandexCommand.METHOD = http_method_1.HttpMethod.POST;
14
+ })(LinkYandexCommand || (exports.LinkYandexCommand = LinkYandexCommand = {}));
15
+ //# sourceMappingURL=link-yandex.command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"link-yandex.command.js","sourceRoot":"","sources":["../../../../v1/yandex-profile/commands/link-yandex.command.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,wCAAsD;AACtD,6DAAyD;AACzD,gDAA6C;AAM7C,IAAiB,iBAAiB,CASjC;AATD,WAAiB,iBAAiB;IACjB,yBAAO,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACvB,0BAAQ,GAAG,kCAAwB,CAAC;IAEpC,qBAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,cAAc,CAAC,IAAI,CAAC;IACtC,wBAAM,GAAG,wBAAU,CAAC,IAAI,CAAC;AAI1C,CAAC,EATgB,iBAAiB,iCAAjB,iBAAiB,QASjC"}
@@ -0,0 +1,8 @@
1
+ import { z } from 'zod';
2
+ import { HttpMethod } from '../../../shared/http-method';
3
+ export declare namespace UnlinkYandexCommand {
4
+ const Response: z.ZodVoid;
5
+ const URL: "/api/v1/profiles/yandex/unlink";
6
+ const METHOD = HttpMethod.DELETE;
7
+ type ResponseType = z.infer<typeof Response>;
8
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UnlinkYandexCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const http_method_1 = require("../../../shared/http-method");
6
+ const rest_api_1 = require("../../../rest-api");
7
+ var UnlinkYandexCommand;
8
+ (function (UnlinkYandexCommand) {
9
+ UnlinkYandexCommand.Response = zod_1.z.void();
10
+ UnlinkYandexCommand.URL = rest_api_1.REST_API.V1.YANDEX_PROFILE.UNLINK;
11
+ UnlinkYandexCommand.METHOD = http_method_1.HttpMethod.DELETE;
12
+ })(UnlinkYandexCommand || (exports.UnlinkYandexCommand = UnlinkYandexCommand = {}));
13
+ //# sourceMappingURL=unlink-yandex.command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unlink-yandex.command.js","sourceRoot":"","sources":["../../../../v1/yandex-profile/commands/unlink-yandex.command.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,6DAAyD;AACzD,gDAA6C;AAM7C,IAAiB,mBAAmB,CAOnC;AAPD,WAAiB,mBAAmB;IACnB,4BAAQ,GAAG,OAAC,CAAC,IAAI,EAAE,CAAC;IAEpB,uBAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,cAAc,CAAC,MAAM,CAAC;IACxC,0BAAM,GAAG,wBAAU,CAAC,MAAM,CAAC;AAG5C,CAAC,EAPgB,mBAAmB,mCAAnB,mBAAmB,QAOnC"}
@@ -0,0 +1,6 @@
1
+ export * from './yandex-profile.errors';
2
+ export * from './schemas';
3
+ export * from './commands';
4
+ export * from './queries';
5
+ export { YANDEX_PROFILE_CONTROLLER } from '../../controllers';
6
+ export { YANDEX_PROFILE_ROUTES } from '../../routes';
@@ -0,0 +1,26 @@
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.YANDEX_PROFILE_ROUTES = exports.YANDEX_PROFILE_CONTROLLER = void 0;
18
+ __exportStar(require("./yandex-profile.errors"), exports);
19
+ __exportStar(require("./schemas"), exports);
20
+ __exportStar(require("./commands"), exports);
21
+ __exportStar(require("./queries"), exports);
22
+ var controllers_1 = require("../../controllers");
23
+ Object.defineProperty(exports, "YANDEX_PROFILE_CONTROLLER", { enumerable: true, get: function () { return controllers_1.YANDEX_PROFILE_CONTROLLER; } });
24
+ var routes_1 = require("../../routes");
25
+ Object.defineProperty(exports, "YANDEX_PROFILE_ROUTES", { enumerable: true, get: function () { return routes_1.YANDEX_PROFILE_ROUTES; } });
26
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../v1/yandex-profile/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,4CAA0B;AAC1B,6CAA2B;AAC3B,4CAA0B;AAC1B,iDAA8D;AAArD,wHAAA,yBAAyB,OAAA;AAClC,uCAAqD;AAA5C,+GAAA,qBAAqB,OAAA"}
@@ -0,0 +1,12 @@
1
+ import { z } from 'zod';
2
+ import { HttpMethod } from '../../../shared/http-method';
3
+ export declare namespace GetYandexLinkStatusQuery {
4
+ const Response: z.ZodObject<{
5
+ status: z.ZodEnum<typeof import("../..").YandexAuthStatus>;
6
+ yandexId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ errorCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
+ }, z.core.$strip>;
9
+ const URL: (uuid: string) => string;
10
+ const METHOD = HttpMethod.GET;
11
+ type ResponseType = z.infer<typeof Response>;
12
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetYandexLinkStatusQuery = void 0;
4
+ const schemas_1 = require("../schemas");
5
+ const http_method_1 = require("../../../shared/http-method");
6
+ const rest_api_1 = require("../../../rest-api");
7
+ var GetYandexLinkStatusQuery;
8
+ (function (GetYandexLinkStatusQuery) {
9
+ GetYandexLinkStatusQuery.Response = schemas_1.YandexLinkStatusResponseSchema;
10
+ GetYandexLinkStatusQuery.URL = (uuid) => rest_api_1.REST_API.V1.YANDEX_PROFILE.LINK_STATUS(uuid);
11
+ GetYandexLinkStatusQuery.METHOD = http_method_1.HttpMethod.GET;
12
+ })(GetYandexLinkStatusQuery || (exports.GetYandexLinkStatusQuery = GetYandexLinkStatusQuery = {}));
13
+ //# sourceMappingURL=get-yandex-link-status.query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-yandex-link-status.query.js","sourceRoot":"","sources":["../../../../v1/yandex-profile/queries/get-yandex-link-status.query.ts"],"names":[],"mappings":";;;AACA,wCAA4D;AAC5D,6DAAyD;AACzD,gDAA6C;AAM7C,IAAiB,wBAAwB,CAOxC;AAPD,WAAiB,wBAAwB;IACxB,iCAAQ,GAAG,wCAA8B,CAAC;IAE1C,4BAAG,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,mBAAQ,CAAC,EAAE,CAAC,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IACrE,+BAAM,GAAG,wBAAU,CAAC,GAAG,CAAC;AAGzC,CAAC,EAPgB,wBAAwB,wCAAxB,wBAAwB,QAOxC"}
@@ -0,0 +1,29 @@
1
+ import { z } from 'zod';
2
+ import { HttpMethod } from '../../../shared/http-method';
3
+ export declare namespace GetYandexProfileQuery {
4
+ const Response: z.ZodObject<{
5
+ yandexId: z.ZodString;
6
+ login: z.ZodNullable<z.ZodString>;
7
+ clientId: z.ZodNullable<z.ZodString>;
8
+ psuid: z.ZodNullable<z.ZodString>;
9
+ defaultEmail: z.ZodNullable<z.ZodString>;
10
+ emails: z.ZodArray<z.ZodString>;
11
+ oldSocialLogin: z.ZodNullable<z.ZodString>;
12
+ firstName: z.ZodNullable<z.ZodString>;
13
+ lastName: z.ZodNullable<z.ZodString>;
14
+ displayName: z.ZodNullable<z.ZodString>;
15
+ realName: z.ZodNullable<z.ZodString>;
16
+ sex: z.ZodNullable<z.ZodString>;
17
+ birthday: z.ZodNullable<z.ZodString>;
18
+ isAvatarEmpty: z.ZodNullable<z.ZodBoolean>;
19
+ defaultAvatarId: z.ZodNullable<z.ZodString>;
20
+ avatarUrl: z.ZodNullable<z.ZodString>;
21
+ defaultPhoneId: z.ZodNullable<z.ZodString>;
22
+ defaultPhoneNumber: z.ZodNullable<z.ZodString>;
23
+ createdAt: z.ZodString;
24
+ updatedAt: z.ZodString;
25
+ }, z.core.$strip>;
26
+ const URL: "/api/v1/profiles/yandex";
27
+ const METHOD = HttpMethod.GET;
28
+ type ResponseType = z.infer<typeof Response>;
29
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetYandexProfileQuery = void 0;
4
+ const schemas_1 = require("../schemas");
5
+ const http_method_1 = require("../../../shared/http-method");
6
+ const rest_api_1 = require("../../../rest-api");
7
+ var GetYandexProfileQuery;
8
+ (function (GetYandexProfileQuery) {
9
+ GetYandexProfileQuery.Response = schemas_1.YandexProfileResponseSchema;
10
+ GetYandexProfileQuery.URL = rest_api_1.REST_API.V1.YANDEX_PROFILE.GET_PROFILE;
11
+ GetYandexProfileQuery.METHOD = http_method_1.HttpMethod.GET;
12
+ })(GetYandexProfileQuery || (exports.GetYandexProfileQuery = GetYandexProfileQuery = {}));
13
+ //# sourceMappingURL=get-yandex-profile.query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-yandex-profile.query.js","sourceRoot":"","sources":["../../../../v1/yandex-profile/queries/get-yandex-profile.query.ts"],"names":[],"mappings":";;;AACA,wCAAyD;AACzD,6DAAyD;AACzD,gDAA6C;AAM7C,IAAiB,qBAAqB,CAOrC;AAPD,WAAiB,qBAAqB;IACrB,8BAAQ,GAAG,qCAA2B,CAAC;IAEvC,yBAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,cAAc,CAAC,WAAW,CAAC;IAC7C,4BAAM,GAAG,wBAAU,CAAC,GAAG,CAAC;AAGzC,CAAC,EAPgB,qBAAqB,qCAArB,qBAAqB,QAOrC"}
@@ -0,0 +1,2 @@
1
+ export * from './get-yandex-profile.query';
2
+ export * from './get-yandex-link-status.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("./get-yandex-profile.query"), exports);
18
+ __exportStar(require("./get-yandex-link-status.query"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/yandex-profile/queries/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,iEAA+C"}
@@ -0,0 +1,3 @@
1
+ export * from './yandex-profile-response.schema';
2
+ export * from './yandex-link-response.schema';
3
+ export * from './yandex-link-status-response.schema';
@@ -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("./yandex-profile-response.schema"), exports);
18
+ __exportStar(require("./yandex-link-response.schema"), exports);
19
+ __exportStar(require("./yandex-link-status-response.schema"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/yandex-profile/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mEAAiD;AACjD,gEAA8C;AAC9C,uEAAqD"}
@@ -0,0 +1,7 @@
1
+ import { z } from 'zod';
2
+ export declare const YandexLinkResponseSchema: z.ZodObject<{
3
+ uuid: z.ZodString;
4
+ link: z.ZodString;
5
+ expiresAt: z.ZodString;
6
+ }, z.core.$strip>;
7
+ export type YandexLinkResponseDto = z.infer<typeof YandexLinkResponseSchema>;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.YandexLinkResponseSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.YandexLinkResponseSchema = zod_1.z.object({
6
+ uuid: zod_1.z.string().uuid(),
7
+ link: zod_1.z.string().url(),
8
+ expiresAt: zod_1.z.string().datetime(),
9
+ });
10
+ //# sourceMappingURL=yandex-link-response.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"yandex-link-response.schema.js","sourceRoot":"","sources":["../../../../v1/yandex-profile/schemas/yandex-link-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACvB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACtB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { z } from 'zod';
2
+ import { YandexAuthStatus } from '../../yandex-auth';
3
+ export declare const YandexLinkStatusResponseSchema: z.ZodObject<{
4
+ status: z.ZodEnum<typeof YandexAuthStatus>;
5
+ yandexId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
+ errorCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ }, z.core.$strip>;
8
+ export type YandexLinkStatusResponseDto = z.infer<typeof YandexLinkStatusResponseSchema>;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.YandexLinkStatusResponseSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const yandex_auth_1 = require("../../yandex-auth");
6
+ exports.YandexLinkStatusResponseSchema = zod_1.z.object({
7
+ status: zod_1.z.nativeEnum(yandex_auth_1.YandexAuthStatus),
8
+ yandexId: zod_1.z.string().nullable().optional(),
9
+ errorCode: zod_1.z.string().nullable().optional(),
10
+ });
11
+ //# sourceMappingURL=yandex-link-status-response.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"yandex-link-status-response.schema.js","sourceRoot":"","sources":["../../../../v1/yandex-profile/schemas/yandex-link-status-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,mDAAqD;AAExC,QAAA,8BAA8B,GAAG,OAAC,CAAC,MAAM,CAAC;IACnD,MAAM,EAAE,OAAC,CAAC,UAAU,CAAC,8BAAgB,CAAC;IACtC,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC1C,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CAC9C,CAAC,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { z } from 'zod';
2
+ export declare const YandexProfileResponseSchema: z.ZodObject<{
3
+ yandexId: z.ZodString;
4
+ login: z.ZodNullable<z.ZodString>;
5
+ clientId: z.ZodNullable<z.ZodString>;
6
+ psuid: z.ZodNullable<z.ZodString>;
7
+ defaultEmail: z.ZodNullable<z.ZodString>;
8
+ emails: z.ZodArray<z.ZodString>;
9
+ oldSocialLogin: z.ZodNullable<z.ZodString>;
10
+ firstName: z.ZodNullable<z.ZodString>;
11
+ lastName: z.ZodNullable<z.ZodString>;
12
+ displayName: z.ZodNullable<z.ZodString>;
13
+ realName: z.ZodNullable<z.ZodString>;
14
+ sex: z.ZodNullable<z.ZodString>;
15
+ birthday: z.ZodNullable<z.ZodString>;
16
+ isAvatarEmpty: z.ZodNullable<z.ZodBoolean>;
17
+ defaultAvatarId: z.ZodNullable<z.ZodString>;
18
+ avatarUrl: z.ZodNullable<z.ZodString>;
19
+ defaultPhoneId: z.ZodNullable<z.ZodString>;
20
+ defaultPhoneNumber: z.ZodNullable<z.ZodString>;
21
+ createdAt: z.ZodString;
22
+ updatedAt: z.ZodString;
23
+ }, z.core.$strip>;
24
+ export type YandexProfileResponseDto = z.infer<typeof YandexProfileResponseSchema>;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.YandexProfileResponseSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.YandexProfileResponseSchema = zod_1.z.object({
6
+ yandexId: zod_1.z.string(),
7
+ login: zod_1.z.string().nullable(),
8
+ clientId: zod_1.z.string().nullable(),
9
+ psuid: zod_1.z.string().nullable(),
10
+ defaultEmail: zod_1.z.string().nullable(),
11
+ emails: zod_1.z.array(zod_1.z.string()),
12
+ oldSocialLogin: zod_1.z.string().nullable(),
13
+ firstName: zod_1.z.string().nullable(),
14
+ lastName: zod_1.z.string().nullable(),
15
+ displayName: zod_1.z.string().nullable(),
16
+ realName: zod_1.z.string().nullable(),
17
+ sex: zod_1.z.string().nullable(),
18
+ birthday: zod_1.z.string().nullable(),
19
+ isAvatarEmpty: zod_1.z.boolean().nullable(),
20
+ defaultAvatarId: zod_1.z.string().nullable(),
21
+ avatarUrl: zod_1.z.string().url().nullable(),
22
+ defaultPhoneId: zod_1.z.string().nullable(),
23
+ defaultPhoneNumber: zod_1.z.string().nullable(),
24
+ createdAt: zod_1.z.string().datetime(),
25
+ updatedAt: zod_1.z.string().datetime(),
26
+ });
27
+ //# sourceMappingURL=yandex-profile-response.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"yandex-profile-response.schema.js","sourceRoot":"","sources":["../../../../v1/yandex-profile/schemas/yandex-profile-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,MAAM,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;IAC3B,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,aAAa,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACrC,eAAe,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACtC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACtC,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,kBAAkB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { ErrorMetadata } from '../../shared';
2
+ export declare enum YandexProfileErrorCode {
3
+ PROFILE_NOT_FOUND = "YANDEX_PROFILE_NOT_FOUND",
4
+ USER_ALREADY_HAS_YANDEX = "YANDEX_USER_ALREADY_HAS_YANDEX",
5
+ YANDEX_ALREADY_LINKED = "YANDEX_ALREADY_LINKED_TO_OTHER_USER",
6
+ USER_HAS_NO_YANDEX = "YANDEX_USER_HAS_NO_YANDEX",
7
+ LINK_REQUEST_NOT_FOUND = "YANDEX_LINK_REQUEST_NOT_FOUND",
8
+ LINK_REQUEST_ACCESS_DENIED = "YANDEX_LINK_REQUEST_ACCESS_DENIED",
9
+ LAST_AUTH_METHOD = "YANDEX_LAST_AUTH_METHOD"
10
+ }
11
+ export declare const YANDEX_PROFILE_ERRORS: Record<YandexProfileErrorCode, ErrorMetadata>;
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.YANDEX_PROFILE_ERRORS = exports.YandexProfileErrorCode = void 0;
4
+ var YandexProfileErrorCode;
5
+ (function (YandexProfileErrorCode) {
6
+ YandexProfileErrorCode["PROFILE_NOT_FOUND"] = "YANDEX_PROFILE_NOT_FOUND";
7
+ YandexProfileErrorCode["USER_ALREADY_HAS_YANDEX"] = "YANDEX_USER_ALREADY_HAS_YANDEX";
8
+ YandexProfileErrorCode["YANDEX_ALREADY_LINKED"] = "YANDEX_ALREADY_LINKED_TO_OTHER_USER";
9
+ YandexProfileErrorCode["USER_HAS_NO_YANDEX"] = "YANDEX_USER_HAS_NO_YANDEX";
10
+ YandexProfileErrorCode["LINK_REQUEST_NOT_FOUND"] = "YANDEX_LINK_REQUEST_NOT_FOUND";
11
+ YandexProfileErrorCode["LINK_REQUEST_ACCESS_DENIED"] = "YANDEX_LINK_REQUEST_ACCESS_DENIED";
12
+ YandexProfileErrorCode["LAST_AUTH_METHOD"] = "YANDEX_LAST_AUTH_METHOD";
13
+ })(YandexProfileErrorCode || (exports.YandexProfileErrorCode = YandexProfileErrorCode = {}));
14
+ exports.YANDEX_PROFILE_ERRORS = {
15
+ [YandexProfileErrorCode.PROFILE_NOT_FOUND]: {
16
+ code: YandexProfileErrorCode.PROFILE_NOT_FOUND,
17
+ statusCode: 404,
18
+ },
19
+ [YandexProfileErrorCode.USER_ALREADY_HAS_YANDEX]: {
20
+ code: YandexProfileErrorCode.USER_ALREADY_HAS_YANDEX,
21
+ statusCode: 409,
22
+ },
23
+ [YandexProfileErrorCode.YANDEX_ALREADY_LINKED]: {
24
+ code: YandexProfileErrorCode.YANDEX_ALREADY_LINKED,
25
+ statusCode: 409,
26
+ },
27
+ [YandexProfileErrorCode.USER_HAS_NO_YANDEX]: {
28
+ code: YandexProfileErrorCode.USER_HAS_NO_YANDEX,
29
+ statusCode: 404,
30
+ },
31
+ [YandexProfileErrorCode.LINK_REQUEST_NOT_FOUND]: {
32
+ code: YandexProfileErrorCode.LINK_REQUEST_NOT_FOUND,
33
+ statusCode: 404,
34
+ },
35
+ [YandexProfileErrorCode.LINK_REQUEST_ACCESS_DENIED]: {
36
+ code: YandexProfileErrorCode.LINK_REQUEST_ACCESS_DENIED,
37
+ statusCode: 403,
38
+ },
39
+ [YandexProfileErrorCode.LAST_AUTH_METHOD]: {
40
+ code: YandexProfileErrorCode.LAST_AUTH_METHOD,
41
+ statusCode: 409,
42
+ },
43
+ };
44
+ //# sourceMappingURL=yandex-profile.errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"yandex-profile.errors.js","sourceRoot":"","sources":["../../../v1/yandex-profile/yandex-profile.errors.ts"],"names":[],"mappings":";;;AAEA,IAAY,sBAQX;AARD,WAAY,sBAAsB;IAC9B,wEAA8C,CAAA;IAC9C,oFAA0D,CAAA;IAC1D,uFAA6D,CAAA;IAC7D,0EAAgD,CAAA;IAChD,kFAAwD,CAAA;IACxD,0FAAgE,CAAA;IAChE,sEAA4C,CAAA;AAChD,CAAC,EARW,sBAAsB,sCAAtB,sBAAsB,QAQjC;AAEY,QAAA,qBAAqB,GAAkD;IAChF,CAAC,sBAAsB,CAAC,iBAAiB,CAAC,EAAE;QACxC,IAAI,EAAE,sBAAsB,CAAC,iBAAiB;QAC9C,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,sBAAsB,CAAC,uBAAuB,CAAC,EAAE;QAC9C,IAAI,EAAE,sBAAsB,CAAC,uBAAuB;QACpD,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,sBAAsB,CAAC,qBAAqB,CAAC,EAAE;QAC5C,IAAI,EAAE,sBAAsB,CAAC,qBAAqB;QAClD,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,sBAAsB,CAAC,kBAAkB,CAAC,EAAE;QACzC,IAAI,EAAE,sBAAsB,CAAC,kBAAkB;QAC/C,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,sBAAsB,CAAC,sBAAsB,CAAC,EAAE;QAC7C,IAAI,EAAE,sBAAsB,CAAC,sBAAsB;QACnD,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,sBAAsB,CAAC,0BAA0B,CAAC,EAAE;QACjD,IAAI,EAAE,sBAAsB,CAAC,0BAA0B;QACvD,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,sBAAsB,CAAC,gBAAgB,CAAC,EAAE;QACvC,IAAI,EAAE,sBAAsB,CAAC,gBAAgB;QAC7C,UAAU,EAAE,GAAG;KAClB;CACK,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veruna/api-contracts",
3
- "version": "1.0.70",
3
+ "version": "1.0.73",
4
4
  "description": "API contracts for Veruna project - Zod schemas, types, and paths",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -1,5 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const TelegramUnlinkResponseSchema: z.ZodObject<{
3
- success: z.ZodLiteral<true>;
4
- }, z.core.$strip>;
5
- export type TelegramUnlinkResponseDto = z.infer<typeof TelegramUnlinkResponseSchema>;
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TelegramUnlinkResponseSchema = void 0;
4
- const zod_1 = require("zod");
5
- exports.TelegramUnlinkResponseSchema = zod_1.z.object({
6
- success: zod_1.z.literal(true),
7
- });
8
- //# sourceMappingURL=telegram-unlink-response.schema.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"telegram-unlink-response.schema.js","sourceRoot":"","sources":["../../../../v1/telegram-profile/schemas/telegram-unlink-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,4BAA4B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,OAAO,EAAE,OAAC,CAAC,OAAO,CAAC,IAAI,CAAC;CAC3B,CAAC,CAAC"}