@sinch/verification 0.0.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 (290) hide show
  1. package/README.md +126 -0
  2. package/dist/index.d.ts +2 -0
  3. package/dist/index.js +19 -0
  4. package/dist/index.js.map +1 -0
  5. package/dist/models/index.d.ts +1 -0
  6. package/dist/models/index.js +18 -0
  7. package/dist/models/index.js.map +1 -0
  8. package/dist/models/v1/callout-initiate-verification-response/callout-initiate-verification-response.d.ts +16 -0
  9. package/dist/models/v1/callout-initiate-verification-response/callout-initiate-verification-response.js +9 -0
  10. package/dist/models/v1/callout-initiate-verification-response/callout-initiate-verification-response.js.map +1 -0
  11. package/dist/models/v1/callout-initiate-verification-response/index.d.ts +1 -0
  12. package/dist/models/v1/callout-initiate-verification-response/index.js +3 -0
  13. package/dist/models/v1/callout-initiate-verification-response/index.js.map +1 -0
  14. package/dist/models/v1/callout-request-event-response/callout-request-event-response.d.ts +14 -0
  15. package/dist/models/v1/callout-request-event-response/callout-request-event-response.js +9 -0
  16. package/dist/models/v1/callout-request-event-response/callout-request-event-response.js.map +1 -0
  17. package/dist/models/v1/callout-request-event-response/index.d.ts +1 -0
  18. package/dist/models/v1/callout-request-event-response/index.js +3 -0
  19. package/dist/models/v1/callout-request-event-response/index.js.map +1 -0
  20. package/dist/models/v1/callout-request-event-response-callout/callout-request-event-response-callout.d.ts +13 -0
  21. package/dist/models/v1/callout-request-event-response-callout/callout-request-event-response-callout.js +9 -0
  22. package/dist/models/v1/callout-request-event-response-callout/callout-request-event-response-callout.js.map +1 -0
  23. package/dist/models/v1/callout-request-event-response-callout/index.d.ts +1 -0
  24. package/dist/models/v1/callout-request-event-response-callout/index.js +3 -0
  25. package/dist/models/v1/callout-request-event-response-callout/index.js.map +1 -0
  26. package/dist/models/v1/callout-request-event-response-callout-speech/callout-request-event-response-callout-speech.d.ts +13 -0
  27. package/dist/models/v1/callout-request-event-response-callout-speech/callout-request-event-response-callout-speech.js +9 -0
  28. package/dist/models/v1/callout-request-event-response-callout-speech/callout-request-event-response-callout-speech.js.map +1 -0
  29. package/dist/models/v1/callout-request-event-response-callout-speech/index.d.ts +1 -0
  30. package/dist/models/v1/callout-request-event-response-callout-speech/index.js +3 -0
  31. package/dist/models/v1/callout-request-event-response-callout-speech/index.js.map +1 -0
  32. package/dist/models/v1/callout-verification-report-request/callout-verification-report-request.d.ts +14 -0
  33. package/dist/models/v1/callout-verification-report-request/callout-verification-report-request.js +9 -0
  34. package/dist/models/v1/callout-verification-report-request/callout-verification-report-request.js.map +1 -0
  35. package/dist/models/v1/callout-verification-report-request/index.d.ts +1 -0
  36. package/dist/models/v1/callout-verification-report-request/index.js +3 -0
  37. package/dist/models/v1/callout-verification-report-request/index.js.map +1 -0
  38. package/dist/models/v1/callout-verification-report-request-callout/callout-verification-report-request-callout.d.ts +13 -0
  39. package/dist/models/v1/callout-verification-report-request-callout/callout-verification-report-request-callout.js +9 -0
  40. package/dist/models/v1/callout-verification-report-request-callout/callout-verification-report-request-callout.js.map +1 -0
  41. package/dist/models/v1/callout-verification-report-request-callout/index.d.ts +1 -0
  42. package/dist/models/v1/callout-verification-report-request-callout/index.js +3 -0
  43. package/dist/models/v1/callout-verification-report-request-callout/index.js.map +1 -0
  44. package/dist/models/v1/callout-verification-report-response/callout-verification-report-response.d.ts +35 -0
  45. package/dist/models/v1/callout-verification-report-response/callout-verification-report-response.js +9 -0
  46. package/dist/models/v1/callout-verification-report-response/callout-verification-report-response.js.map +1 -0
  47. package/dist/models/v1/callout-verification-report-response/index.d.ts +1 -0
  48. package/dist/models/v1/callout-verification-report-response/index.js +3 -0
  49. package/dist/models/v1/callout-verification-report-response/index.js.map +1 -0
  50. package/dist/models/v1/data-initiate-verification-response/data-initiate-verification-response.d.ts +19 -0
  51. package/dist/models/v1/data-initiate-verification-response/data-initiate-verification-response.js +9 -0
  52. package/dist/models/v1/data-initiate-verification-response/data-initiate-verification-response.js.map +1 -0
  53. package/dist/models/v1/data-initiate-verification-response/index.d.ts +1 -0
  54. package/dist/models/v1/data-initiate-verification-response/index.js +3 -0
  55. package/dist/models/v1/data-initiate-verification-response/index.js.map +1 -0
  56. package/dist/models/v1/data-initiate-verification-response-seamless/data-initiate-verification-response-seamless.d.ts +13 -0
  57. package/dist/models/v1/data-initiate-verification-response-seamless/data-initiate-verification-response-seamless.js +9 -0
  58. package/dist/models/v1/data-initiate-verification-response-seamless/data-initiate-verification-response-seamless.js.map +1 -0
  59. package/dist/models/v1/data-initiate-verification-response-seamless/index.d.ts +1 -0
  60. package/dist/models/v1/data-initiate-verification-response-seamless/index.js +3 -0
  61. package/dist/models/v1/data-initiate-verification-response-seamless/index.js.map +1 -0
  62. package/dist/models/v1/enums.d.ts +18 -0
  63. package/dist/models/v1/enums.js +3 -0
  64. package/dist/models/v1/enums.js.map +1 -0
  65. package/dist/models/v1/error/error.d.ts +16 -0
  66. package/dist/models/v1/error/error.js +9 -0
  67. package/dist/models/v1/error/error.js.map +1 -0
  68. package/dist/models/v1/error/index.d.ts +1 -0
  69. package/dist/models/v1/error/index.js +3 -0
  70. package/dist/models/v1/error/index.js.map +1 -0
  71. package/dist/models/v1/flash-call-initiate-verification-response/flash-call-initiate-verification-response.d.ts +19 -0
  72. package/dist/models/v1/flash-call-initiate-verification-response/flash-call-initiate-verification-response.js +9 -0
  73. package/dist/models/v1/flash-call-initiate-verification-response/flash-call-initiate-verification-response.js.map +1 -0
  74. package/dist/models/v1/flash-call-initiate-verification-response/index.d.ts +1 -0
  75. package/dist/models/v1/flash-call-initiate-verification-response/index.js +3 -0
  76. package/dist/models/v1/flash-call-initiate-verification-response/index.js.map +1 -0
  77. package/dist/models/v1/flash-call-initiate-verification-response-flash-call/flash-call-initiate-verification-response-flash-call.d.ts +19 -0
  78. package/dist/models/v1/flash-call-initiate-verification-response-flash-call/flash-call-initiate-verification-response-flash-call.js +9 -0
  79. package/dist/models/v1/flash-call-initiate-verification-response-flash-call/flash-call-initiate-verification-response-flash-call.js.map +1 -0
  80. package/dist/models/v1/flash-call-initiate-verification-response-flash-call/index.d.ts +1 -0
  81. package/dist/models/v1/flash-call-initiate-verification-response-flash-call/index.js +3 -0
  82. package/dist/models/v1/flash-call-initiate-verification-response-flash-call/index.js.map +1 -0
  83. package/dist/models/v1/flash-call-request-event-response/flash-call-request-event-response.d.ts +14 -0
  84. package/dist/models/v1/flash-call-request-event-response/flash-call-request-event-response.js +9 -0
  85. package/dist/models/v1/flash-call-request-event-response/flash-call-request-event-response.js.map +1 -0
  86. package/dist/models/v1/flash-call-request-event-response/index.d.ts +1 -0
  87. package/dist/models/v1/flash-call-request-event-response/index.js +3 -0
  88. package/dist/models/v1/flash-call-request-event-response/index.js.map +1 -0
  89. package/dist/models/v1/flash-call-request-event-response-flash-call/flash-call-request-event-response-flash-call.d.ts +12 -0
  90. package/dist/models/v1/flash-call-request-event-response-flash-call/flash-call-request-event-response-flash-call.js +9 -0
  91. package/dist/models/v1/flash-call-request-event-response-flash-call/flash-call-request-event-response-flash-call.js.map +1 -0
  92. package/dist/models/v1/flash-call-request-event-response-flash-call/index.d.ts +1 -0
  93. package/dist/models/v1/flash-call-request-event-response-flash-call/index.js +3 -0
  94. package/dist/models/v1/flash-call-request-event-response-flash-call/index.js.map +1 -0
  95. package/dist/models/v1/flashcall-verification-report-request/flashcall-verification-report-request.d.ts +14 -0
  96. package/dist/models/v1/flashcall-verification-report-request/flashcall-verification-report-request.js +9 -0
  97. package/dist/models/v1/flashcall-verification-report-request/flashcall-verification-report-request.js.map +1 -0
  98. package/dist/models/v1/flashcall-verification-report-request/index.d.ts +1 -0
  99. package/dist/models/v1/flashcall-verification-report-request/index.js +3 -0
  100. package/dist/models/v1/flashcall-verification-report-request/index.js.map +1 -0
  101. package/dist/models/v1/flashcall-verification-report-request-flash-call/flashcall-verification-report-request-flash-call.d.ts +13 -0
  102. package/dist/models/v1/flashcall-verification-report-request-flash-call/flashcall-verification-report-request-flash-call.js +9 -0
  103. package/dist/models/v1/flashcall-verification-report-request-flash-call/flashcall-verification-report-request-flash-call.js.map +1 -0
  104. package/dist/models/v1/flashcall-verification-report-request-flash-call/index.d.ts +1 -0
  105. package/dist/models/v1/flashcall-verification-report-request-flash-call/index.js +3 -0
  106. package/dist/models/v1/flashcall-verification-report-request-flash-call/index.js.map +1 -0
  107. package/dist/models/v1/flashcall-verification-report-response/flashcall-verification-report-response.d.ts +38 -0
  108. package/dist/models/v1/flashcall-verification-report-response/flashcall-verification-report-response.js +9 -0
  109. package/dist/models/v1/flashcall-verification-report-response/flashcall-verification-report-response.js.map +1 -0
  110. package/dist/models/v1/flashcall-verification-report-response/index.d.ts +1 -0
  111. package/dist/models/v1/flashcall-verification-report-response/index.js +3 -0
  112. package/dist/models/v1/flashcall-verification-report-response/index.js.map +1 -0
  113. package/dist/models/v1/flashcall-verification-report-response-price/flashcall-verification-report-response-price.d.ts +18 -0
  114. package/dist/models/v1/flashcall-verification-report-response-price/flashcall-verification-report-response-price.js +9 -0
  115. package/dist/models/v1/flashcall-verification-report-response-price/flashcall-verification-report-response-price.js.map +1 -0
  116. package/dist/models/v1/flashcall-verification-report-response-price/index.d.ts +1 -0
  117. package/dist/models/v1/flashcall-verification-report-response-price/index.js +3 -0
  118. package/dist/models/v1/flashcall-verification-report-response-price/index.js.map +1 -0
  119. package/dist/models/v1/identity/identity.d.ts +16 -0
  120. package/dist/models/v1/identity/identity.js +9 -0
  121. package/dist/models/v1/identity/identity.js.map +1 -0
  122. package/dist/models/v1/identity/index.d.ts +1 -0
  123. package/dist/models/v1/identity/index.js +3 -0
  124. package/dist/models/v1/identity/index.js.map +1 -0
  125. package/dist/models/v1/index.d.ts +41 -0
  126. package/dist/models/v1/index.js +58 -0
  127. package/dist/models/v1/index.js.map +1 -0
  128. package/dist/models/v1/initiate-verification-resource/index.d.ts +1 -0
  129. package/dist/models/v1/initiate-verification-resource/index.js +3 -0
  130. package/dist/models/v1/initiate-verification-resource/index.js.map +1 -0
  131. package/dist/models/v1/initiate-verification-resource/initiate-verification-resource.d.ts +21 -0
  132. package/dist/models/v1/initiate-verification-resource/initiate-verification-resource.js +9 -0
  133. package/dist/models/v1/initiate-verification-resource/initiate-verification-resource.js.map +1 -0
  134. package/dist/models/v1/initiate-verification-resource-flash-call-options/index.d.ts +1 -0
  135. package/dist/models/v1/initiate-verification-resource-flash-call-options/index.js +3 -0
  136. package/dist/models/v1/initiate-verification-resource-flash-call-options/index.js.map +1 -0
  137. package/dist/models/v1/initiate-verification-resource-flash-call-options/initiate-verification-resource-flash-call-options.d.ts +13 -0
  138. package/dist/models/v1/initiate-verification-resource-flash-call-options/initiate-verification-resource-flash-call-options.js +9 -0
  139. package/dist/models/v1/initiate-verification-resource-flash-call-options/initiate-verification-resource-flash-call-options.js.map +1 -0
  140. package/dist/models/v1/initiate-verification-response/index.d.ts +1 -0
  141. package/dist/models/v1/initiate-verification-response/index.js +3 -0
  142. package/dist/models/v1/initiate-verification-response/index.js.map +1 -0
  143. package/dist/models/v1/initiate-verification-response/initiate-verification-response.d.ts +11 -0
  144. package/dist/models/v1/initiate-verification-response/initiate-verification-response.js +9 -0
  145. package/dist/models/v1/initiate-verification-response/initiate-verification-response.js.map +1 -0
  146. package/dist/models/v1/links-object/index.d.ts +1 -0
  147. package/dist/models/v1/links-object/index.js +3 -0
  148. package/dist/models/v1/links-object/index.js.map +1 -0
  149. package/dist/models/v1/links-object/links-object.d.ts +17 -0
  150. package/dist/models/v1/links-object/links-object.js +9 -0
  151. package/dist/models/v1/links-object/links-object.js.map +1 -0
  152. package/dist/models/v1/price/index.d.ts +1 -0
  153. package/dist/models/v1/price/index.js +3 -0
  154. package/dist/models/v1/price/index.js.map +1 -0
  155. package/dist/models/v1/price/price.d.ts +11 -0
  156. package/dist/models/v1/price/price.js +9 -0
  157. package/dist/models/v1/price/price.js.map +1 -0
  158. package/dist/models/v1/sms-initiate-verification-response/index.d.ts +1 -0
  159. package/dist/models/v1/sms-initiate-verification-response/index.js +3 -0
  160. package/dist/models/v1/sms-initiate-verification-response/index.js.map +1 -0
  161. package/dist/models/v1/sms-initiate-verification-response/sms-initiate-verification-response.d.ts +19 -0
  162. package/dist/models/v1/sms-initiate-verification-response/sms-initiate-verification-response.js +9 -0
  163. package/dist/models/v1/sms-initiate-verification-response/sms-initiate-verification-response.js.map +1 -0
  164. package/dist/models/v1/sms-initiate-verification-response-sms/index.d.ts +1 -0
  165. package/dist/models/v1/sms-initiate-verification-response-sms/index.js +3 -0
  166. package/dist/models/v1/sms-initiate-verification-response-sms/index.js.map +1 -0
  167. package/dist/models/v1/sms-initiate-verification-response-sms/sms-initiate-verification-response-sms.d.ts +15 -0
  168. package/dist/models/v1/sms-initiate-verification-response-sms/sms-initiate-verification-response-sms.js +9 -0
  169. package/dist/models/v1/sms-initiate-verification-response-sms/sms-initiate-verification-response-sms.js.map +1 -0
  170. package/dist/models/v1/sms-request-event-response/index.d.ts +1 -0
  171. package/dist/models/v1/sms-request-event-response/index.js +3 -0
  172. package/dist/models/v1/sms-request-event-response/index.js.map +1 -0
  173. package/dist/models/v1/sms-request-event-response/sms-request-event-response.d.ts +14 -0
  174. package/dist/models/v1/sms-request-event-response/sms-request-event-response.js +9 -0
  175. package/dist/models/v1/sms-request-event-response/sms-request-event-response.js.map +1 -0
  176. package/dist/models/v1/sms-request-event-response-sms/index.d.ts +1 -0
  177. package/dist/models/v1/sms-request-event-response-sms/index.js +3 -0
  178. package/dist/models/v1/sms-request-event-response-sms/index.js.map +1 -0
  179. package/dist/models/v1/sms-request-event-response-sms/sms-request-event-response-sms.d.ts +12 -0
  180. package/dist/models/v1/sms-request-event-response-sms/sms-request-event-response-sms.js +9 -0
  181. package/dist/models/v1/sms-request-event-response-sms/sms-request-event-response-sms.js.map +1 -0
  182. package/dist/models/v1/sms-verification-report-request/index.d.ts +1 -0
  183. package/dist/models/v1/sms-verification-report-request/index.js +3 -0
  184. package/dist/models/v1/sms-verification-report-request/index.js.map +1 -0
  185. package/dist/models/v1/sms-verification-report-request/sms-verification-report-request.d.ts +14 -0
  186. package/dist/models/v1/sms-verification-report-request/sms-verification-report-request.js +9 -0
  187. package/dist/models/v1/sms-verification-report-request/sms-verification-report-request.js.map +1 -0
  188. package/dist/models/v1/sms-verification-report-request-sms/index.d.ts +1 -0
  189. package/dist/models/v1/sms-verification-report-request-sms/index.js +3 -0
  190. package/dist/models/v1/sms-verification-report-request-sms/index.js.map +1 -0
  191. package/dist/models/v1/sms-verification-report-request-sms/sms-verification-report-request-sms.d.ts +15 -0
  192. package/dist/models/v1/sms-verification-report-request-sms/sms-verification-report-request-sms.js +9 -0
  193. package/dist/models/v1/sms-verification-report-request-sms/sms-verification-report-request-sms.js.map +1 -0
  194. package/dist/models/v1/sms-verification-report-response/index.d.ts +1 -0
  195. package/dist/models/v1/sms-verification-report-response/index.js +3 -0
  196. package/dist/models/v1/sms-verification-report-response/index.js.map +1 -0
  197. package/dist/models/v1/sms-verification-report-response/sms-verification-report-response.d.ts +34 -0
  198. package/dist/models/v1/sms-verification-report-response/sms-verification-report-response.js +9 -0
  199. package/dist/models/v1/sms-verification-report-response/sms-verification-report-response.js.map +1 -0
  200. package/dist/models/v1/sms-verification-report-response-price/index.d.ts +1 -0
  201. package/dist/models/v1/sms-verification-report-response-price/index.js +3 -0
  202. package/dist/models/v1/sms-verification-report-response-price/index.js.map +1 -0
  203. package/dist/models/v1/sms-verification-report-response-price/sms-verification-report-response-price.d.ts +14 -0
  204. package/dist/models/v1/sms-verification-report-response-price/sms-verification-report-response-price.js +9 -0
  205. package/dist/models/v1/sms-verification-report-response-price/sms-verification-report-response-price.js.map +1 -0
  206. package/dist/models/v1/verification-report-request/index.d.ts +1 -0
  207. package/dist/models/v1/verification-report-request/index.js +3 -0
  208. package/dist/models/v1/verification-report-request/index.js.map +1 -0
  209. package/dist/models/v1/verification-report-request/verification-report-request.d.ts +10 -0
  210. package/dist/models/v1/verification-report-request/verification-report-request.js +9 -0
  211. package/dist/models/v1/verification-report-request/verification-report-request.js.map +1 -0
  212. package/dist/models/v1/verification-report-response/index.d.ts +1 -0
  213. package/dist/models/v1/verification-report-response/index.js +3 -0
  214. package/dist/models/v1/verification-report-response/index.js.map +1 -0
  215. package/dist/models/v1/verification-report-response/verification-report-response.d.ts +10 -0
  216. package/dist/models/v1/verification-report-response/verification-report-response.js +9 -0
  217. package/dist/models/v1/verification-report-response/verification-report-response.js.map +1 -0
  218. package/dist/models/v1/verification-request-event/index.d.ts +1 -0
  219. package/dist/models/v1/verification-request-event/index.js +3 -0
  220. package/dist/models/v1/verification-request-event/index.js.map +1 -0
  221. package/dist/models/v1/verification-request-event/verification-request-event.d.ts +27 -0
  222. package/dist/models/v1/verification-request-event/verification-request-event.js +9 -0
  223. package/dist/models/v1/verification-request-event/verification-request-event.js.map +1 -0
  224. package/dist/models/v1/verification-request-event-price/index.d.ts +1 -0
  225. package/dist/models/v1/verification-request-event-price/index.js +3 -0
  226. package/dist/models/v1/verification-request-event-price/index.js.map +1 -0
  227. package/dist/models/v1/verification-request-event-price/verification-request-event-price.d.ts +15 -0
  228. package/dist/models/v1/verification-request-event-price/verification-request-event-price.js +9 -0
  229. package/dist/models/v1/verification-request-event-price/verification-request-event-price.js.map +1 -0
  230. package/dist/models/v1/verification-request-event-response/index.d.ts +1 -0
  231. package/dist/models/v1/verification-request-event-response/index.js +3 -0
  232. package/dist/models/v1/verification-request-event-response/index.js.map +1 -0
  233. package/dist/models/v1/verification-request-event-response/verification-request-event-response.d.ts +10 -0
  234. package/dist/models/v1/verification-request-event-response/verification-request-event-response.js +9 -0
  235. package/dist/models/v1/verification-request-event-response/verification-request-event-response.js.map +1 -0
  236. package/dist/models/v1/verification-response/index.d.ts +1 -0
  237. package/dist/models/v1/verification-response/index.js +3 -0
  238. package/dist/models/v1/verification-response/index.js.map +1 -0
  239. package/dist/models/v1/verification-response/verification-response.d.ts +10 -0
  240. package/dist/models/v1/verification-response/verification-response.js +9 -0
  241. package/dist/models/v1/verification-response/verification-response.js.map +1 -0
  242. package/dist/models/v1/verification-result-event/index.d.ts +1 -0
  243. package/dist/models/v1/verification-result-event/index.js +3 -0
  244. package/dist/models/v1/verification-result-event/index.js.map +1 -0
  245. package/dist/models/v1/verification-result-event/verification-result-event.d.ts +30 -0
  246. package/dist/models/v1/verification-result-event/verification-result-event.js +9 -0
  247. package/dist/models/v1/verification-result-event/verification-result-event.js.map +1 -0
  248. package/dist/models/v1/verification-result-event-response/index.d.ts +1 -0
  249. package/dist/models/v1/verification-result-event-response/index.js +3 -0
  250. package/dist/models/v1/verification-result-event-response/index.js.map +1 -0
  251. package/dist/models/v1/verification-result-event-response/verification-result-event-response.d.ts +10 -0
  252. package/dist/models/v1/verification-result-event-response/verification-result-event-response.js +9 -0
  253. package/dist/models/v1/verification-result-event-response/verification-result-event-response.js.map +1 -0
  254. package/dist/rest/index.d.ts +1 -0
  255. package/dist/rest/index.js +18 -0
  256. package/dist/rest/index.js.map +1 -0
  257. package/dist/rest/v1/enums.d.ts +1 -0
  258. package/dist/rest/v1/enums.js +3 -0
  259. package/dist/rest/v1/enums.js.map +1 -0
  260. package/dist/rest/v1/fixtures.jest.d.ts +2 -0
  261. package/dist/rest/v1/fixtures.jest.js +8 -0
  262. package/dist/rest/v1/fixtures.jest.js.map +1 -0
  263. package/dist/rest/v1/index.d.ts +4 -0
  264. package/dist/rest/v1/index.js +21 -0
  265. package/dist/rest/v1/index.js.map +1 -0
  266. package/dist/rest/v1/verification-api.d.ts +25 -0
  267. package/dist/rest/v1/verification-api.js +66 -0
  268. package/dist/rest/v1/verification-api.js.map +1 -0
  269. package/dist/rest/v1/verification-status/index.d.ts +2 -0
  270. package/dist/rest/v1/verification-status/index.js +19 -0
  271. package/dist/rest/v1/verification-status/index.js.map +1 -0
  272. package/dist/rest/v1/verification-status/verification-status-api.d.ts +43 -0
  273. package/dist/rest/v1/verification-status/verification-status-api.jest.fixture.d.ts +17 -0
  274. package/dist/rest/v1/verification-status/verification-status-api.jest.fixture.js +21 -0
  275. package/dist/rest/v1/verification-status/verification-status-api.jest.fixture.js.map +1 -0
  276. package/dist/rest/v1/verification-status/verification-status-api.js +88 -0
  277. package/dist/rest/v1/verification-status/verification-status-api.js.map +1 -0
  278. package/dist/rest/v1/verification.d.ts +20 -0
  279. package/dist/rest/v1/verification.js +22 -0
  280. package/dist/rest/v1/verification.js.map +1 -0
  281. package/dist/rest/v1/verifications/index.d.ts +2 -0
  282. package/dist/rest/v1/verifications/index.js +19 -0
  283. package/dist/rest/v1/verifications/index.js.map +1 -0
  284. package/dist/rest/v1/verifications/verifications-api.d.ts +45 -0
  285. package/dist/rest/v1/verifications/verifications-api.jest.fixture.d.ts +17 -0
  286. package/dist/rest/v1/verifications/verifications-api.jest.fixture.js +21 -0
  287. package/dist/rest/v1/verifications/verifications-api.jest.fixture.js.map +1 -0
  288. package/dist/rest/v1/verifications/verifications-api.js +88 -0
  289. package/dist/rest/v1/verifications/verifications-api.js.map +1 -0
  290. package/package.json +37 -0
@@ -0,0 +1,88 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VerificationStatusApi = void 0;
4
+ const verification_api_1 = require("../verification-api");
5
+ class VerificationStatusApi extends verification_api_1.VerificationApi {
6
+ /**
7
+ * Initialize your interface
8
+ *
9
+ * @param {SinchClientParameters} sinchClientParameters - The parameters used to initialize the API Client.
10
+ */
11
+ constructor(sinchClientParameters) {
12
+ super(sinchClientParameters, 'VerificationStatusApi');
13
+ }
14
+ /**
15
+ * Get verification by ID
16
+ * Queries the verification result by sending the verification ID. With this query you can get the result of a verification.
17
+ * @param { VerificationStatusByIdRequestData } data - The data to provide to the API call.
18
+ */
19
+ async getById(data) {
20
+ this.client = this.getSinchClient();
21
+ const getParams = this.client.extractQueryParams(data, []);
22
+ const headers = {
23
+ 'Content-Type': 'application/json',
24
+ 'Accept': 'application/json',
25
+ };
26
+ const body = '';
27
+ const path = `/verification/v1/verifications/id/${data['id']}`;
28
+ const basePathUrl = this.client.apiClientOptions.basePath + path;
29
+ const requestOptions = await this.client.prepareOptions(basePathUrl, 'GET', getParams, headers, body || undefined, path);
30
+ const url = this.client.prepareUrl(requestOptions.basePath, requestOptions.queryParams);
31
+ return this.client.processCall({
32
+ url,
33
+ requestOptions,
34
+ apiName: this.apiName,
35
+ operationId: 'VerificationStatusById',
36
+ });
37
+ }
38
+ /**
39
+ * Get verification by Identity
40
+ * Queries the verification result by sending the verification Identity (usually a phone number) and its method. With this query you can get the result of a verification.
41
+ * @param { VerificationStatusByIdentityRequestData } data - The data to provide to the API call.
42
+ */
43
+ async getByIdentity(data) {
44
+ this.client = this.getSinchClient();
45
+ const getParams = this.client.extractQueryParams(data, []);
46
+ const headers = {
47
+ 'Content-Type': 'application/json',
48
+ 'Accept': 'application/json',
49
+ };
50
+ const body = '';
51
+ const path = `/verification/v1/verifications/${data['method']}/number/${data['endpoint']}`;
52
+ const basePathUrl = this.client.apiClientOptions.basePath + path;
53
+ const requestOptions = await this.client.prepareOptions(basePathUrl, 'GET', getParams, headers, body || undefined, path);
54
+ const url = this.client.prepareUrl(requestOptions.basePath, requestOptions.queryParams);
55
+ return this.client.processCall({
56
+ url,
57
+ requestOptions,
58
+ apiName: this.apiName,
59
+ operationId: 'VerificationStatusByIdentity',
60
+ });
61
+ }
62
+ /**
63
+ * Get verification by Reference
64
+ * Queries the verification result by sending the verification Reference. With this query you can get the result of a verification.
65
+ * @param { VerificationStatusByReferenceRequestData } data - The data to provide to the API call.
66
+ */
67
+ async getByReference(data) {
68
+ this.client = this.getSinchClient();
69
+ const getParams = this.client.extractQueryParams(data, []);
70
+ const headers = {
71
+ 'Content-Type': 'application/json',
72
+ 'Accept': 'application/json',
73
+ };
74
+ const body = '';
75
+ const path = `/verification/v1/verifications/reference/${data['reference']}`;
76
+ const basePathUrl = this.client.apiClientOptions.basePath + path;
77
+ const requestOptions = await this.client.prepareOptions(basePathUrl, 'GET', getParams, headers, body || undefined, path);
78
+ const url = this.client.prepareUrl(requestOptions.basePath, requestOptions.queryParams);
79
+ return this.client.processCall({
80
+ url,
81
+ requestOptions,
82
+ apiName: this.apiName,
83
+ operationId: 'VerificationStatusByReference',
84
+ });
85
+ }
86
+ }
87
+ exports.VerificationStatusApi = VerificationStatusApi;
88
+ //# sourceMappingURL=verification-status-api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verification-status-api.js","sourceRoot":"","sources":["../../../../src/rest/v1/verification-status/verification-status-api.ts"],"names":[],"mappings":";;;AAKA,0DAAsD;AAiBtD,MAAa,qBAAsB,SAAQ,kCAAe;IAExD;;;;OAIG;IACH,YAAY,qBAA4C;QACtD,KAAK,CAAC,qBAAqB,EAAE,uBAAuB,CAAC,CAAC;IACxD,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,OAAO,CAAC,IAAuC;QAC1D,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;QACpC,MAAM,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAoC,IAAI,EAAE,EAAa,CAAC,CAAC;QACzG,MAAM,OAAO,GAA0C;YACrD,cAAc,EAAE,kBAAkB;YAClC,QAAQ,EAAE,kBAAkB;SAC7B,CAAC;QAEF,MAAM,IAAI,GAAgB,EAAE,CAAC;QAC7B,MAAM,IAAI,GAAG,qCAAqC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;QAC/D,MAAM,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,QAAQ,GAAG,IAAI,CAAC;QAEjE,MAAM,cAAc,GAChB,MAAM,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,WAAW,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,IAAI,SAAS,EAAE,IAAI,CAAC,CAAC;QACtG,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,cAAc,CAAC,QAAQ,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC;QAExF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAA6B;YACzD,GAA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,CAA2C,IAAI,EAAE,EAAa,CAAC,CAAC;QAChH,MAAM,OAAO,GAA0C;YACrD,cAAc,EAAE,kBAAkB;YAClC,QAAQ,EAAE,kBAAkB;SAC7B,CAAC;QAEF,MAAM,IAAI,GAAgB,EAAE,CAAC;QAC7B,MAAM,IAAI,GAAG,4CAA4C,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC;QAC7E,MAAM,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,QAAQ,GAAG,IAAI,CAAC;QAEjE,MAAM,cAAc,GAChB,MAAM,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,WAAW,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,IAAI,SAAS,EAAE,IAAI,CAAC,CAAC;QACtG,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,cAAc,CAAC,QAAQ,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC;QAExF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAA6B;YACzD,GAAG;YACH,cAAc;YACd,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,WAAW,EAAE,+BAA+B;SAC7C,CAAC,CAAC;IACL,CAAC;CAEF;AAlGD,sDAkGC"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Domain: verification
3
+ *
4
+ * THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
5
+ *
6
+ */
7
+ import { SinchClientParameters } from '@sinch/sdk-client';
8
+ import { VerificationStatusApi } from './verification-status';
9
+ import { VerificationsApi } from './verifications';
10
+ export declare class Verification {
11
+ readonly verificationStatus: VerificationStatusApi;
12
+ readonly verifications: VerificationsApi;
13
+ constructor(params: SinchClientParameters);
14
+ /**
15
+ * Update the default basePath for each API
16
+ *
17
+ * @param {string} basePath - The new base path to use for all the APIs.
18
+ */
19
+ setBasePath(basePath: string): void;
20
+ }
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Verification = void 0;
4
+ const verification_status_1 = require("./verification-status");
5
+ const verifications_1 = require("./verifications");
6
+ class Verification {
7
+ constructor(params) {
8
+ this.verificationStatus = new verification_status_1.VerificationStatusApi(params);
9
+ this.verifications = new verifications_1.VerificationsApi(params);
10
+ }
11
+ /**
12
+ * Update the default basePath for each API
13
+ *
14
+ * @param {string} basePath - The new base path to use for all the APIs.
15
+ */
16
+ setBasePath(basePath) {
17
+ this.verificationStatus.setBasePath(basePath);
18
+ this.verifications.setBasePath(basePath);
19
+ }
20
+ }
21
+ exports.Verification = Verification;
22
+ //# sourceMappingURL=verification.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verification.js","sourceRoot":"","sources":["../../../src/rest/v1/verification.ts"],"names":[],"mappings":";;;AAOA,+DAA8D;AAC9D,mDAAmD;AAEnD,MAAa,YAAY;IAIvB,YAAY,MAA6B;QACvC,IAAI,CAAC,kBAAkB,GAAG,IAAI,2CAAqB,CAAC,MAAM,CAAC,CAAC;QAC5D,IAAI,CAAC,aAAa,GAAG,IAAI,gCAAgB,CAAC,MAAM,CAAC,CAAC;IACpD,CAAC;IAED;;;;OAIG;IACI,WAAW,CAAC,QAAgB;QACjC,IAAI,CAAC,kBAAkB,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;QAC9C,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;IAC3C,CAAC;CACF;AAlBD,oCAkBC"}
@@ -0,0 +1,2 @@
1
+ export * from './verifications-api';
2
+ export * from './verifications-api.jest.fixture';
@@ -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("./verifications-api"), exports);
18
+ __exportStar(require("./verifications-api.jest.fixture"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/rest/v1/verifications/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,mEAAiD"}
@@ -0,0 +1,45 @@
1
+ import { InitiateVerificationResource, InitiateVerificationResponse, VerificationReportRequest, VerificationResponse } from '../../../models';
2
+ import { SinchClientParameters } from '@sinch/sdk-client';
3
+ import { VerificationApi } from '../verification-api';
4
+ export interface ReportVerificationByIdRequestData {
5
+ /** The ID of the verification. */
6
+ 'id': string;
7
+ /** */
8
+ 'verificationReportRequestBody': VerificationReportRequest;
9
+ }
10
+ export interface ReportVerificationByIdentityRequestData {
11
+ /** For type `number` use a [E.164](https://community.sinch.com/t5/Glossary/E-164/ta-p/7537)-compatible phone number. */
12
+ 'endpoint': string;
13
+ /** */
14
+ 'verificationReportRequestBody': VerificationReportRequest;
15
+ }
16
+ export interface StartVerificationRequestData {
17
+ /** */
18
+ 'initiateVerificationRequestBody': InitiateVerificationResource;
19
+ }
20
+ export declare class VerificationsApi extends VerificationApi {
21
+ /**
22
+ * Initialize your interface
23
+ *
24
+ * @param {SinchClientParameters} sinchClientParameters - The parameters used to initialize the API Client.
25
+ */
26
+ constructor(sinchClientParameters: SinchClientParameters);
27
+ /**
28
+ * Report a verification with ID
29
+ * Report the received verification code to verify it, using the Verification ID of the Verification request.
30
+ * @param { ReportVerificationByIdRequestData } data - The data to provide to the API call.
31
+ */
32
+ reportById(data: ReportVerificationByIdRequestData): Promise<VerificationResponse>;
33
+ /**
34
+ * Report a verification using Identity
35
+ * Report the received verification code to verify it, using the identity of the user (in most cases, the phone number). For an SMS PIN verification or Phone Call verification, this is the OTP code. For flashcalls, this is the CLI.
36
+ * @param { ReportVerificationByIdentityRequestData } data - The data to provide to the API call.
37
+ */
38
+ reportByIdentity(data: ReportVerificationByIdentityRequestData): Promise<VerificationResponse>;
39
+ /**
40
+ * Start verification
41
+ * This method is used by the mobile and web Verification SDKs to start a verification. It can also be used to request a verification from your backend, by making a request.
42
+ * @param { StartVerificationRequestData } data - The data to provide to the API call.
43
+ */
44
+ start(data: StartVerificationRequestData): Promise<InitiateVerificationResponse>;
45
+ }
@@ -0,0 +1,17 @@
1
+ /// <reference types="jest" />
2
+ import { VerificationsApi, ReportVerificationByIdRequestData, ReportVerificationByIdentityRequestData, StartVerificationRequestData } from './verifications-api';
3
+ import { InitiateVerificationResponse, VerificationResponse } from '../../../models';
4
+ export declare class VerificationsApiFixture implements Partial<Readonly<VerificationsApi>> {
5
+ /**
6
+ * Fixture associated to function reportVerificationById
7
+ */
8
+ reportById: jest.Mock<Promise<VerificationResponse>, [ReportVerificationByIdRequestData]>;
9
+ /**
10
+ * Fixture associated to function reportVerificationByIdentity
11
+ */
12
+ reportByIdentity: jest.Mock<Promise<VerificationResponse>, [ReportVerificationByIdentityRequestData]>;
13
+ /**
14
+ * Fixture associated to function startVerification
15
+ */
16
+ start: jest.Mock<Promise<InitiateVerificationResponse>, [StartVerificationRequestData]>;
17
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VerificationsApiFixture = void 0;
4
+ class VerificationsApiFixture {
5
+ constructor() {
6
+ /**
7
+ * Fixture associated to function reportVerificationById
8
+ */
9
+ this.reportById = jest.fn();
10
+ /**
11
+ * Fixture associated to function reportVerificationByIdentity
12
+ */
13
+ this.reportByIdentity = jest.fn();
14
+ /**
15
+ * Fixture associated to function startVerification
16
+ */
17
+ this.start = jest.fn();
18
+ }
19
+ }
20
+ exports.VerificationsApiFixture = VerificationsApiFixture;
21
+ //# sourceMappingURL=verifications-api.jest.fixture.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verifications-api.jest.fixture.js","sourceRoot":"","sources":["../../../../src/rest/v1/verifications/verifications-api.jest.fixture.ts"],"names":[],"mappings":";;;AAGA,MAAa,uBAAuB;IAApC;QAEE;;WAEG;QACI,eAAU,GACb,IAAI,CAAC,EAAE,EAAE,CAAC;QACd;;WAEG;QACI,qBAAgB,GACiE,IAAI,CAAC,EAAE,EAAE,CAAC;QAClG;;WAEG;QACI,UAAK,GACR,IAAI,CAAC,EAAE,EAAE,CAAC;IAChB,CAAC;CAAA;AAjBD,0DAiBC"}
@@ -0,0 +1,88 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VerificationsApi = void 0;
4
+ const verification_api_1 = require("../verification-api");
5
+ class VerificationsApi extends verification_api_1.VerificationApi {
6
+ /**
7
+ * Initialize your interface
8
+ *
9
+ * @param {SinchClientParameters} sinchClientParameters - The parameters used to initialize the API Client.
10
+ */
11
+ constructor(sinchClientParameters) {
12
+ super(sinchClientParameters, 'VerificationsApi');
13
+ }
14
+ /**
15
+ * Report a verification with ID
16
+ * Report the received verification code to verify it, using the Verification ID of the Verification request.
17
+ * @param { ReportVerificationByIdRequestData } data - The data to provide to the API call.
18
+ */
19
+ async reportById(data) {
20
+ this.client = this.getSinchClient();
21
+ const getParams = this.client.extractQueryParams(data, []);
22
+ const headers = {
23
+ 'Content-Type': 'application/json; charset=UTF-8',
24
+ 'Accept': 'application/json',
25
+ };
26
+ const body = data['verificationReportRequestBody'] ? JSON.stringify(data['verificationReportRequestBody']) : '{}';
27
+ const path = `/verification/v1/verifications/id/${data['id']}`;
28
+ const basePathUrl = this.client.apiClientOptions.basePath + path;
29
+ const requestOptions = await this.client.prepareOptions(basePathUrl, 'PUT', getParams, headers, body || undefined, path);
30
+ const url = this.client.prepareUrl(requestOptions.basePath, requestOptions.queryParams);
31
+ return this.client.processCall({
32
+ url,
33
+ requestOptions,
34
+ apiName: this.apiName,
35
+ operationId: 'ReportVerificationById',
36
+ });
37
+ }
38
+ /**
39
+ * Report a verification using Identity
40
+ * Report the received verification code to verify it, using the identity of the user (in most cases, the phone number). For an SMS PIN verification or Phone Call verification, this is the OTP code. For flashcalls, this is the CLI.
41
+ * @param { ReportVerificationByIdentityRequestData } data - The data to provide to the API call.
42
+ */
43
+ async reportByIdentity(data) {
44
+ this.client = this.getSinchClient();
45
+ const getParams = this.client.extractQueryParams(data, []);
46
+ const headers = {
47
+ 'Content-Type': 'application/json; charset=UTF-8',
48
+ 'Accept': 'application/json',
49
+ };
50
+ const body = data['verificationReportRequestBody'] ? JSON.stringify(data['verificationReportRequestBody']) : '{}';
51
+ const path = `/verification/v1/verifications/number/${data['endpoint']}`;
52
+ const basePathUrl = this.client.apiClientOptions.basePath + path;
53
+ const requestOptions = await this.client.prepareOptions(basePathUrl, 'PUT', getParams, headers, body || undefined, path);
54
+ const url = this.client.prepareUrl(requestOptions.basePath, requestOptions.queryParams);
55
+ return this.client.processCall({
56
+ url,
57
+ requestOptions,
58
+ apiName: this.apiName,
59
+ operationId: 'ReportVerificationByIdentity',
60
+ });
61
+ }
62
+ /**
63
+ * Start verification
64
+ * This method is used by the mobile and web Verification SDKs to start a verification. It can also be used to request a verification from your backend, by making a request.
65
+ * @param { StartVerificationRequestData } data - The data to provide to the API call.
66
+ */
67
+ async start(data) {
68
+ this.client = this.getSinchClient();
69
+ const getParams = this.client.extractQueryParams(data, []);
70
+ const headers = {
71
+ 'Content-Type': 'application/json; charset=UTF-8',
72
+ 'Accept': 'application/json',
73
+ };
74
+ const body = data['initiateVerificationRequestBody'] ? JSON.stringify(data['initiateVerificationRequestBody']) : '{}';
75
+ const path = '/verification/v1/verifications';
76
+ const basePathUrl = this.client.apiClientOptions.basePath + path;
77
+ const requestOptions = await this.client.prepareOptions(basePathUrl, 'POST', getParams, headers, body || undefined, path);
78
+ const url = this.client.prepareUrl(requestOptions.basePath, requestOptions.queryParams);
79
+ return this.client.processCall({
80
+ url,
81
+ requestOptions,
82
+ apiName: this.apiName,
83
+ operationId: 'StartVerification',
84
+ });
85
+ }
86
+ }
87
+ exports.VerificationsApi = VerificationsApi;
88
+ //# sourceMappingURL=verifications-api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verifications-api.js","sourceRoot":"","sources":["../../../../src/rest/v1/verifications/verifications-api.ts"],"names":[],"mappings":";;;AAUA,0DAAsD;AAmBtD,MAAa,gBAAiB,SAAQ,kCAAe;IAEnD;;;;OAIG;IACH,YAAY,qBAA4C;QACtD,KAAK,CAAC,qBAAqB,EAAE,kBAAkB,CAAC,CAAC;IACnD,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,UAAU,CAAC,IAAuC;QAC7D,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;QACpC,MAAM,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAoC,IAAI,EAAE,EAAa,CAAC,CAAC;QACzG,MAAM,OAAO,GAA0C;YACrD,cAAc,EAAE,iCAAiC;YACjD,QAAQ,EAAE,kBAAkB;SAC7B,CAAC;QAEF,MAAM,IAAI,GACN,IAAI,CAAC,+BAA+B,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,+BAA+B,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QACzG,MAAM,IAAI,GAAG,qCAAqC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;QAC/D,MAAM,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,QAAQ,GAAG,IAAI,CAAC;QAEjE,MAAM,cAAc,GAChB,MAAM,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,WAAW,EAAE,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 +1,37 @@
1
+ {
2
+ "name": "@sinch/verification",
3
+ "version": "0.0.0",
4
+ "description": "Sinch Verification API",
5
+ "homepage": "",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": ""
9
+ },
10
+ "license": "Apache-2.0",
11
+ "author": "Sinch",
12
+ "main": "dist/index.js",
13
+ "types": "dist/index.d.ts",
14
+ "exports": {
15
+ ".": {
16
+ "import": "./dist/index.js",
17
+ "require": "./dist/index.js"
18
+ }
19
+ },
20
+ "directories": {
21
+ "src": "dist",
22
+ "test": "tests"
23
+ },
24
+ "files": ["/dist"],
25
+ "scripts": {
26
+ "build": "yarn run clean && yarn run compile",
27
+ "clean": "rimraf dist tsconfig.tsbuildinfo tsconfig.build.tsbuildinfo",
28
+ "compile": "tsc -p tsconfig.build.json && tsc -p tsconfig.tests.json && rimraf dist/tests tsconfig.build.tsbuildinfo"
29
+ },
30
+ "dependencies": {
31
+ "@sinch/sdk-client": "^0.0.0"
32
+ },
33
+ "devDependencies": {},
34
+ "publishConfig": {
35
+ "directory": "dist"
36
+ }
37
+ }