@veruna/api-contracts 1.0.69 → 1.0.71

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 (274) 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 +26 -0
  20. package/build/rest-api.js +26 -0
  21. package/build/rest-api.js.map +1 -1
  22. package/build/routes/chat-project.routes.d.ts +1 -0
  23. package/build/routes/chat-project.routes.js +1 -0
  24. package/build/routes/chat-project.routes.js.map +1 -1
  25. package/build/routes/chat.routes.d.ts +1 -0
  26. package/build/routes/chat.routes.js +1 -0
  27. package/build/routes/chat.routes.js.map +1 -1
  28. package/build/routes/index.d.ts +4 -0
  29. package/build/routes/index.js +9 -1
  30. package/build/routes/index.js.map +1 -1
  31. package/build/routes/vk-auth.routes.d.ts +6 -0
  32. package/build/routes/vk-auth.routes.js +10 -0
  33. package/build/routes/vk-auth.routes.js.map +1 -0
  34. package/build/routes/vk-profile.routes.d.ts +6 -0
  35. package/build/routes/vk-profile.routes.js +10 -0
  36. package/build/routes/vk-profile.routes.js.map +1 -0
  37. package/build/routes/yandex-auth.routes.d.ts +6 -0
  38. package/build/routes/yandex-auth.routes.js +10 -0
  39. package/build/routes/yandex-auth.routes.js.map +1 -0
  40. package/build/routes/yandex-profile.routes.d.ts +6 -0
  41. package/build/routes/yandex-profile.routes.js +10 -0
  42. package/build/routes/yandex-profile.routes.js.map +1 -0
  43. package/build/tsconfig.tsbuildinfo +1 -1
  44. package/build/v1/auth/commands/signin.command.d.ts +1 -1
  45. package/build/v1/auth/commands/signup.command.d.ts +1 -1
  46. package/build/v1/auth/schemas/auth-response.schema.d.ts +1 -1
  47. package/build/v1/chat/commands/delete-homeless-chats.command.d.ts +12 -0
  48. package/build/v1/chat/commands/delete-homeless-chats.command.js +15 -0
  49. package/build/v1/chat/commands/delete-homeless-chats.command.js.map +1 -0
  50. package/build/v1/chat/commands/index.d.ts +1 -0
  51. package/build/v1/chat/commands/index.js +3 -1
  52. package/build/v1/chat/commands/index.js.map +1 -1
  53. package/build/v1/chat/schemas/bulk-delete-chats-response.schema.d.ts +5 -0
  54. package/build/v1/chat/schemas/bulk-delete-chats-response.schema.js +8 -0
  55. package/build/v1/chat/schemas/bulk-delete-chats-response.schema.js.map +1 -0
  56. package/build/v1/chat/schemas/index.d.ts +2 -0
  57. package/build/v1/chat/schemas/index.js +3 -1
  58. package/build/v1/chat/schemas/index.js.map +1 -1
  59. package/build/v1/chat-project/commands/delete-folder-chats.command.d.ts +12 -0
  60. package/build/v1/chat-project/commands/delete-folder-chats.command.js +15 -0
  61. package/build/v1/chat-project/commands/delete-folder-chats.command.js.map +1 -0
  62. package/build/v1/chat-project/commands/index.d.ts +1 -0
  63. package/build/v1/chat-project/commands/index.js +1 -0
  64. package/build/v1/chat-project/commands/index.js.map +1 -1
  65. package/build/v1/index.d.ts +5 -0
  66. package/build/v1/index.js +5 -0
  67. package/build/v1/index.js.map +1 -1
  68. package/build/v1/oauth-common/index.d.ts +1 -0
  69. package/build/v1/oauth-common/index.js +18 -0
  70. package/build/v1/oauth-common/index.js.map +1 -0
  71. package/build/v1/oauth-common/schemas/index.d.ts +1 -0
  72. package/build/v1/oauth-common/schemas/index.js +18 -0
  73. package/build/v1/oauth-common/schemas/index.js.map +1 -0
  74. package/build/v1/oauth-common/schemas/oauth-auth-request-type.enum.d.ts +4 -0
  75. package/build/v1/oauth-common/schemas/oauth-auth-request-type.enum.js +9 -0
  76. package/build/v1/oauth-common/schemas/oauth-auth-request-type.enum.js.map +1 -0
  77. package/build/v1/telegram-auth/commands/exchange-telegram-auth.command.d.ts +1 -0
  78. package/build/v1/telegram-auth/schemas/telegram-auth-exchange-request.schema.d.ts +1 -0
  79. package/build/v1/telegram-auth/schemas/telegram-auth-exchange-request.schema.js +4 -0
  80. package/build/v1/telegram-auth/schemas/telegram-auth-exchange-request.schema.js.map +1 -1
  81. package/build/v1/telegram-auth/schemas/telegram-auth-request-type.enum.d.ts +1 -4
  82. package/build/v1/telegram-auth/schemas/telegram-auth-request-type.enum.js +2 -5
  83. package/build/v1/telegram-auth/schemas/telegram-auth-request-type.enum.js.map +1 -1
  84. package/build/v1/telegram-profile/commands/unlink-telegram.command.d.ts +1 -3
  85. package/build/v1/telegram-profile/commands/unlink-telegram.command.js +2 -2
  86. package/build/v1/telegram-profile/commands/unlink-telegram.command.js.map +1 -1
  87. package/build/v1/telegram-profile/schemas/index.d.ts +0 -1
  88. package/build/v1/telegram-profile/schemas/index.js +0 -1
  89. package/build/v1/telegram-profile/schemas/index.js.map +1 -1
  90. package/build/v1/telegram-profile/telegram-profile.errors.d.ts +2 -1
  91. package/build/v1/telegram-profile/telegram-profile.errors.js +5 -0
  92. package/build/v1/telegram-profile/telegram-profile.errors.js.map +1 -1
  93. package/build/v1/users/commands/toggle-marketing-consent.command.d.ts +1 -1
  94. package/build/v1/users/commands/update-profile.command.d.ts +1 -1
  95. package/build/v1/users/queries/get-current-user.query.d.ts +1 -1
  96. package/build/v1/users/schemas/register-type.enum.d.ts +3 -1
  97. package/build/v1/users/schemas/register-type.enum.js +2 -0
  98. package/build/v1/users/schemas/register-type.enum.js.map +1 -1
  99. package/build/v1/users/schemas/response-unions.schema.d.ts +3 -3
  100. package/build/v1/users/schemas/user-response.schema.d.ts +1 -1
  101. package/build/v1/users/schemas/user-response.schema.js +1 -1
  102. package/build/v1/users/schemas/user-response.schema.js.map +1 -1
  103. package/build/v1/vk-auth/commands/exchange-vk-auth.command.d.ts +15 -0
  104. package/build/v1/vk-auth/commands/exchange-vk-auth.command.js +14 -0
  105. package/build/v1/vk-auth/commands/exchange-vk-auth.command.js.map +1 -0
  106. package/build/v1/vk-auth/commands/index.d.ts +2 -0
  107. package/build/v1/vk-auth/commands/index.js +19 -0
  108. package/build/v1/vk-auth/commands/index.js.map +1 -0
  109. package/build/v1/vk-auth/commands/init-vk-auth.command.d.ts +14 -0
  110. package/build/v1/vk-auth/commands/init-vk-auth.command.js +15 -0
  111. package/build/v1/vk-auth/commands/init-vk-auth.command.js.map +1 -0
  112. package/build/v1/vk-auth/index.d.ts +6 -0
  113. package/build/v1/vk-auth/index.js +26 -0
  114. package/build/v1/vk-auth/index.js.map +1 -0
  115. package/build/v1/vk-auth/queries/get-vk-auth-status.query.d.ts +13 -0
  116. package/build/v1/vk-auth/queries/get-vk-auth-status.query.js +15 -0
  117. package/build/v1/vk-auth/queries/get-vk-auth-status.query.js.map +1 -0
  118. package/build/v1/vk-auth/queries/handle-vk-auth-callback.query.d.ts +14 -0
  119. package/build/v1/vk-auth/queries/handle-vk-auth-callback.query.js +15 -0
  120. package/build/v1/vk-auth/queries/handle-vk-auth-callback.query.js.map +1 -0
  121. package/build/v1/vk-auth/queries/index.d.ts +2 -0
  122. package/build/v1/vk-auth/queries/index.js +19 -0
  123. package/build/v1/vk-auth/queries/index.js.map +1 -0
  124. package/build/v1/vk-auth/schemas/index.d.ts +7 -0
  125. package/build/v1/vk-auth/schemas/index.js +24 -0
  126. package/build/v1/vk-auth/schemas/index.js.map +1 -0
  127. package/build/v1/vk-auth/schemas/vk-auth-callback-query.schema.d.ts +7 -0
  128. package/build/v1/vk-auth/schemas/vk-auth-callback-query.schema.js +10 -0
  129. package/build/v1/vk-auth/schemas/vk-auth-callback-query.schema.js.map +1 -0
  130. package/build/v1/vk-auth/schemas/vk-auth-exchange-request.schema.d.ts +6 -0
  131. package/build/v1/vk-auth/schemas/vk-auth-exchange-request.schema.js +14 -0
  132. package/build/v1/vk-auth/schemas/vk-auth-exchange-request.schema.js.map +1 -0
  133. package/build/v1/vk-auth/schemas/vk-auth-exchange-response.schema.d.ts +6 -0
  134. package/build/v1/vk-auth/schemas/vk-auth-exchange-response.schema.js +9 -0
  135. package/build/v1/vk-auth/schemas/vk-auth-exchange-response.schema.js.map +1 -0
  136. package/build/v1/vk-auth/schemas/vk-auth-init-response.schema.d.ts +7 -0
  137. package/build/v1/vk-auth/schemas/vk-auth-init-response.schema.js +10 -0
  138. package/build/v1/vk-auth/schemas/vk-auth-init-response.schema.js.map +1 -0
  139. package/build/v1/vk-auth/schemas/vk-auth-request-type.enum.d.ts +1 -0
  140. package/build/v1/vk-auth/schemas/vk-auth-request-type.enum.js +6 -0
  141. package/build/v1/vk-auth/schemas/vk-auth-request-type.enum.js.map +1 -0
  142. package/build/v1/vk-auth/schemas/vk-auth-status-response.schema.d.ts +7 -0
  143. package/build/v1/vk-auth/schemas/vk-auth-status-response.schema.js +10 -0
  144. package/build/v1/vk-auth/schemas/vk-auth-status-response.schema.js.map +1 -0
  145. package/build/v1/vk-auth/schemas/vk-auth-status.enum.d.ts +7 -0
  146. package/build/v1/vk-auth/schemas/vk-auth-status.enum.js +12 -0
  147. package/build/v1/vk-auth/schemas/vk-auth-status.enum.js.map +1 -0
  148. package/build/v1/vk-auth/vk-auth.errors.d.ts +14 -0
  149. package/build/v1/vk-auth/vk-auth.errors.js +29 -0
  150. package/build/v1/vk-auth/vk-auth.errors.js.map +1 -0
  151. package/build/v1/vk-profile/commands/index.d.ts +2 -0
  152. package/build/v1/vk-profile/commands/index.js +19 -0
  153. package/build/v1/vk-profile/commands/index.js.map +1 -0
  154. package/build/v1/vk-profile/commands/link-vk.command.d.ts +14 -0
  155. package/build/v1/vk-profile/commands/link-vk.command.js +15 -0
  156. package/build/v1/vk-profile/commands/link-vk.command.js.map +1 -0
  157. package/build/v1/vk-profile/commands/unlink-vk.command.d.ts +8 -0
  158. package/build/v1/vk-profile/commands/unlink-vk.command.js +13 -0
  159. package/build/v1/vk-profile/commands/unlink-vk.command.js.map +1 -0
  160. package/build/v1/vk-profile/index.d.ts +6 -0
  161. package/build/v1/vk-profile/index.js +26 -0
  162. package/build/v1/vk-profile/index.js.map +1 -0
  163. package/build/v1/vk-profile/queries/get-vk-link-status.query.d.ts +12 -0
  164. package/build/v1/vk-profile/queries/get-vk-link-status.query.js +13 -0
  165. package/build/v1/vk-profile/queries/get-vk-link-status.query.js.map +1 -0
  166. package/build/v1/vk-profile/queries/get-vk-profile.query.d.ts +20 -0
  167. package/build/v1/vk-profile/queries/get-vk-profile.query.js +13 -0
  168. package/build/v1/vk-profile/queries/get-vk-profile.query.js.map +1 -0
  169. package/build/v1/vk-profile/queries/index.d.ts +2 -0
  170. package/build/v1/vk-profile/queries/index.js +19 -0
  171. package/build/v1/vk-profile/queries/index.js.map +1 -0
  172. package/build/v1/vk-profile/schemas/index.d.ts +3 -0
  173. package/build/v1/vk-profile/schemas/index.js +20 -0
  174. package/build/v1/vk-profile/schemas/index.js.map +1 -0
  175. package/build/v1/vk-profile/schemas/vk-link-response.schema.d.ts +7 -0
  176. package/build/v1/vk-profile/schemas/vk-link-response.schema.js +10 -0
  177. package/build/v1/vk-profile/schemas/vk-link-response.schema.js.map +1 -0
  178. package/build/v1/vk-profile/schemas/vk-link-status-response.schema.d.ts +8 -0
  179. package/build/v1/vk-profile/schemas/vk-link-status-response.schema.js +11 -0
  180. package/build/v1/vk-profile/schemas/vk-link-status-response.schema.js.map +1 -0
  181. package/build/v1/vk-profile/schemas/vk-profile-response.schema.d.ts +15 -0
  182. package/build/v1/vk-profile/schemas/vk-profile-response.schema.js +18 -0
  183. package/build/v1/vk-profile/schemas/vk-profile-response.schema.js.map +1 -0
  184. package/build/v1/vk-profile/vk-profile.errors.d.ts +11 -0
  185. package/build/v1/vk-profile/vk-profile.errors.js +23 -0
  186. package/build/v1/vk-profile/vk-profile.errors.js.map +1 -0
  187. package/build/v1/yandex-auth/commands/exchange-yandex-auth.command.d.ts +16 -0
  188. package/build/v1/yandex-auth/commands/exchange-yandex-auth.command.js +14 -0
  189. package/build/v1/yandex-auth/commands/exchange-yandex-auth.command.js.map +1 -0
  190. package/build/v1/yandex-auth/commands/index.d.ts +2 -0
  191. package/build/v1/yandex-auth/commands/index.js +19 -0
  192. package/build/v1/yandex-auth/commands/index.js.map +1 -0
  193. package/build/v1/yandex-auth/commands/init-yandex-auth.command.d.ts +14 -0
  194. package/build/v1/yandex-auth/commands/init-yandex-auth.command.js +15 -0
  195. package/build/v1/yandex-auth/commands/init-yandex-auth.command.js.map +1 -0
  196. package/build/v1/yandex-auth/index.d.ts +6 -0
  197. package/build/v1/yandex-auth/index.js +26 -0
  198. package/build/v1/yandex-auth/index.js.map +1 -0
  199. package/build/v1/yandex-auth/queries/get-yandex-auth-status.query.d.ts +13 -0
  200. package/build/v1/yandex-auth/queries/get-yandex-auth-status.query.js +15 -0
  201. package/build/v1/yandex-auth/queries/get-yandex-auth-status.query.js.map +1 -0
  202. package/build/v1/yandex-auth/queries/handle-yandex-auth-callback.query.d.ts +13 -0
  203. package/build/v1/yandex-auth/queries/handle-yandex-auth-callback.query.js +15 -0
  204. package/build/v1/yandex-auth/queries/handle-yandex-auth-callback.query.js.map +1 -0
  205. package/build/v1/yandex-auth/queries/index.d.ts +2 -0
  206. package/build/v1/yandex-auth/queries/index.js +19 -0
  207. package/build/v1/yandex-auth/queries/index.js.map +1 -0
  208. package/build/v1/yandex-auth/schemas/index.d.ts +7 -0
  209. package/build/v1/yandex-auth/schemas/index.js +24 -0
  210. package/build/v1/yandex-auth/schemas/index.js.map +1 -0
  211. package/build/v1/yandex-auth/schemas/yandex-auth-callback-query.schema.d.ts +6 -0
  212. package/build/v1/yandex-auth/schemas/yandex-auth-callback-query.schema.js +9 -0
  213. package/build/v1/yandex-auth/schemas/yandex-auth-callback-query.schema.js.map +1 -0
  214. package/build/v1/yandex-auth/schemas/yandex-auth-exchange-request.schema.d.ts +6 -0
  215. package/build/v1/yandex-auth/schemas/yandex-auth-exchange-request.schema.js +14 -0
  216. package/build/v1/yandex-auth/schemas/yandex-auth-exchange-request.schema.js.map +1 -0
  217. package/build/v1/yandex-auth/schemas/yandex-auth-exchange-response.schema.d.ts +6 -0
  218. package/build/v1/yandex-auth/schemas/yandex-auth-exchange-response.schema.js +9 -0
  219. package/build/v1/yandex-auth/schemas/yandex-auth-exchange-response.schema.js.map +1 -0
  220. package/build/v1/yandex-auth/schemas/yandex-auth-init-response.schema.d.ts +7 -0
  221. package/build/v1/yandex-auth/schemas/yandex-auth-init-response.schema.js +10 -0
  222. package/build/v1/yandex-auth/schemas/yandex-auth-init-response.schema.js.map +1 -0
  223. package/build/v1/yandex-auth/schemas/yandex-auth-request-type.enum.d.ts +1 -0
  224. package/build/v1/yandex-auth/schemas/yandex-auth-request-type.enum.js +6 -0
  225. package/build/v1/yandex-auth/schemas/yandex-auth-request-type.enum.js.map +1 -0
  226. package/build/v1/yandex-auth/schemas/yandex-auth-status-response.schema.d.ts +7 -0
  227. package/build/v1/yandex-auth/schemas/yandex-auth-status-response.schema.js +10 -0
  228. package/build/v1/yandex-auth/schemas/yandex-auth-status-response.schema.js.map +1 -0
  229. package/build/v1/yandex-auth/schemas/yandex-auth-status.enum.d.ts +7 -0
  230. package/build/v1/yandex-auth/schemas/yandex-auth-status.enum.js +12 -0
  231. package/build/v1/yandex-auth/schemas/yandex-auth-status.enum.js.map +1 -0
  232. package/build/v1/yandex-auth/yandex-auth.errors.d.ts +14 -0
  233. package/build/v1/yandex-auth/yandex-auth.errors.js +59 -0
  234. package/build/v1/yandex-auth/yandex-auth.errors.js.map +1 -0
  235. package/build/v1/yandex-profile/commands/index.d.ts +2 -0
  236. package/build/v1/yandex-profile/commands/index.js +19 -0
  237. package/build/v1/yandex-profile/commands/index.js.map +1 -0
  238. package/build/v1/yandex-profile/commands/link-yandex.command.d.ts +14 -0
  239. package/build/v1/yandex-profile/commands/link-yandex.command.js +15 -0
  240. package/build/v1/yandex-profile/commands/link-yandex.command.js.map +1 -0
  241. package/build/v1/yandex-profile/commands/unlink-yandex.command.d.ts +8 -0
  242. package/build/v1/yandex-profile/commands/unlink-yandex.command.js +13 -0
  243. package/build/v1/yandex-profile/commands/unlink-yandex.command.js.map +1 -0
  244. package/build/v1/yandex-profile/index.d.ts +6 -0
  245. package/build/v1/yandex-profile/index.js +26 -0
  246. package/build/v1/yandex-profile/index.js.map +1 -0
  247. package/build/v1/yandex-profile/queries/get-yandex-link-status.query.d.ts +12 -0
  248. package/build/v1/yandex-profile/queries/get-yandex-link-status.query.js +13 -0
  249. package/build/v1/yandex-profile/queries/get-yandex-link-status.query.js.map +1 -0
  250. package/build/v1/yandex-profile/queries/get-yandex-profile.query.d.ts +29 -0
  251. package/build/v1/yandex-profile/queries/get-yandex-profile.query.js +13 -0
  252. package/build/v1/yandex-profile/queries/get-yandex-profile.query.js.map +1 -0
  253. package/build/v1/yandex-profile/queries/index.d.ts +2 -0
  254. package/build/v1/yandex-profile/queries/index.js +19 -0
  255. package/build/v1/yandex-profile/queries/index.js.map +1 -0
  256. package/build/v1/yandex-profile/schemas/index.d.ts +3 -0
  257. package/build/v1/yandex-profile/schemas/index.js +20 -0
  258. package/build/v1/yandex-profile/schemas/index.js.map +1 -0
  259. package/build/v1/yandex-profile/schemas/yandex-link-response.schema.d.ts +7 -0
  260. package/build/v1/yandex-profile/schemas/yandex-link-response.schema.js +10 -0
  261. package/build/v1/yandex-profile/schemas/yandex-link-response.schema.js.map +1 -0
  262. package/build/v1/yandex-profile/schemas/yandex-link-status-response.schema.d.ts +8 -0
  263. package/build/v1/yandex-profile/schemas/yandex-link-status-response.schema.js +11 -0
  264. package/build/v1/yandex-profile/schemas/yandex-link-status-response.schema.js.map +1 -0
  265. package/build/v1/yandex-profile/schemas/yandex-profile-response.schema.d.ts +24 -0
  266. package/build/v1/yandex-profile/schemas/yandex-profile-response.schema.js +27 -0
  267. package/build/v1/yandex-profile/schemas/yandex-profile-response.schema.js.map +1 -0
  268. package/build/v1/yandex-profile/yandex-profile.errors.d.ts +11 -0
  269. package/build/v1/yandex-profile/yandex-profile.errors.js +44 -0
  270. package/build/v1/yandex-profile/yandex-profile.errors.js.map +1 -0
  271. package/package.json +1 -1
  272. package/build/v1/telegram-profile/schemas/telegram-unlink-response.schema.d.ts +0 -5
  273. package/build/v1/telegram-profile/schemas/telegram-unlink-response.schema.js +0 -8
  274. package/build/v1/telegram-profile/schemas/telegram-unlink-response.schema.js.map +0 -1
@@ -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.69",
3
+ "version": "1.0.71",
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"}