@sinch/verification 0.0.0 → 0.0.2

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 (267) hide show
  1. package/README.md +18 -19
  2. package/dist/models/v1/callout-request-event-response/callout-request-event-response.d.ts +0 -6
  3. package/dist/models/v1/callout-request-event-response/callout-request-event-response.js +0 -6
  4. package/dist/models/v1/callout-request-event-response/callout-request-event-response.js.map +1 -1
  5. package/dist/models/v1/callout-request-event-response-callout/callout-request-event-response-callout.d.ts +0 -6
  6. package/dist/models/v1/callout-request-event-response-callout/callout-request-event-response-callout.js +0 -6
  7. package/dist/models/v1/callout-request-event-response-callout/callout-request-event-response-callout.js.map +1 -1
  8. package/dist/models/v1/callout-request-event-response-callout-speech/callout-request-event-response-callout-speech.d.ts +0 -6
  9. package/dist/models/v1/callout-request-event-response-callout-speech/callout-request-event-response-callout-speech.js +0 -6
  10. package/dist/models/v1/callout-request-event-response-callout-speech/callout-request-event-response-callout-speech.js.map +1 -1
  11. package/dist/models/v1/callout-verification-report-response/callout-verification-report-response.d.ts +4 -11
  12. package/dist/models/v1/callout-verification-report-response/callout-verification-report-response.js +0 -6
  13. package/dist/models/v1/callout-verification-report-response/callout-verification-report-response.js.map +1 -1
  14. package/dist/models/v1/enums.d.ts +4 -12
  15. package/dist/models/v1/{flash-call-request-event-response-flash-call/flash-call-request-event-response-flash-call.d.ts → flashcall-request-event-response/flashcall-request-event-response.d.ts} +9 -7
  16. package/dist/models/v1/flashcall-request-event-response/flashcall-request-event-response.js +3 -0
  17. package/dist/models/v1/flashcall-request-event-response/flashcall-request-event-response.js.map +1 -0
  18. package/dist/models/v1/flashcall-request-event-response/index.d.ts +1 -0
  19. package/dist/models/v1/flashcall-request-event-response/index.js.map +1 -0
  20. package/dist/models/v1/flashcall-verification-report-response/flashcall-verification-report-response.d.ts +6 -13
  21. package/dist/models/v1/flashcall-verification-report-response/flashcall-verification-report-response.js +0 -6
  22. package/dist/models/v1/flashcall-verification-report-response/flashcall-verification-report-response.js.map +1 -1
  23. package/dist/models/v1/flashcall-verification-report-response/index.d.ts +1 -1
  24. package/dist/models/v1/helper.d.ts +13 -0
  25. package/dist/models/v1/helper.js +117 -0
  26. package/dist/models/v1/helper.js.map +1 -0
  27. package/dist/models/v1/identity/identity.d.ts +2 -6
  28. package/dist/models/v1/identity/identity.js +0 -6
  29. package/dist/models/v1/identity/identity.js.map +1 -1
  30. package/dist/models/v1/index.d.ts +9 -24
  31. package/dist/models/v1/index.js +9 -24
  32. package/dist/models/v1/index.js.map +1 -1
  33. package/dist/models/v1/links-object/links-object.d.ts +0 -6
  34. package/dist/models/v1/links-object/links-object.js +0 -6
  35. package/dist/models/v1/links-object/links-object.js.map +1 -1
  36. package/dist/models/v1/price/price.d.ts +0 -6
  37. package/dist/models/v1/price/price.js +0 -6
  38. package/dist/models/v1/price/price.js.map +1 -1
  39. package/dist/models/v1/sms-request-event-response/sms-request-event-response.d.ts +9 -9
  40. package/dist/models/v1/sms-request-event-response/sms-request-event-response.js +0 -6
  41. package/dist/models/v1/sms-request-event-response/sms-request-event-response.js.map +1 -1
  42. package/dist/models/v1/sms-verification-report-response/sms-verification-report-response.d.ts +2 -9
  43. package/dist/models/v1/sms-verification-report-response/sms-verification-report-response.js +0 -6
  44. package/dist/models/v1/sms-verification-report-response/sms-verification-report-response.js.map +1 -1
  45. package/dist/models/v1/start-callout-verification-response/index.d.ts +1 -0
  46. package/dist/models/v1/start-callout-verification-response/index.js.map +1 -0
  47. package/dist/models/v1/{callout-initiate-verification-response/callout-initiate-verification-response.d.ts → start-callout-verification-response/start-callout-verification-response.d.ts} +3 -10
  48. package/dist/models/v1/start-callout-verification-response/start-callout-verification-response.js +3 -0
  49. package/dist/models/v1/start-callout-verification-response/start-callout-verification-response.js.map +1 -0
  50. package/dist/models/v1/start-flashcall-verification-response/index.d.ts +1 -0
  51. package/dist/models/v1/start-flashcall-verification-response/index.js.map +1 -0
  52. package/dist/models/v1/start-flashcall-verification-response/start-flashcall-verification-response.d.ts +22 -0
  53. package/dist/models/v1/start-flashcall-verification-response/start-flashcall-verification-response.js +3 -0
  54. package/dist/models/v1/start-flashcall-verification-response/start-flashcall-verification-response.js.map +1 -0
  55. package/dist/models/v1/start-seamless-verification-response/index.d.ts +1 -0
  56. package/dist/models/v1/start-seamless-verification-response/index.js.map +1 -0
  57. package/dist/models/v1/start-seamless-verification-response/start-seamless-verification-response.d.ts +13 -0
  58. package/dist/models/v1/start-seamless-verification-response/start-seamless-verification-response.js +3 -0
  59. package/dist/models/v1/start-seamless-verification-response/start-seamless-verification-response.js.map +1 -0
  60. package/dist/models/v1/start-sms-verification-response/index.d.ts +1 -0
  61. package/dist/models/v1/start-sms-verification-response/index.js.map +1 -0
  62. package/dist/models/v1/start-sms-verification-response/start-sms-verification-response.d.ts +18 -0
  63. package/dist/models/v1/start-sms-verification-response/start-sms-verification-response.js +3 -0
  64. package/dist/models/v1/start-sms-verification-response/start-sms-verification-response.js.map +1 -0
  65. package/dist/models/v1/start-verification-request/index.d.ts +1 -0
  66. package/dist/models/v1/start-verification-request/index.js.map +1 -0
  67. package/dist/models/v1/start-verification-request/start-verification-request.d.ts +26 -0
  68. package/dist/models/v1/start-verification-request/start-verification-request.js +3 -0
  69. package/dist/models/v1/start-verification-request/start-verification-request.js.map +1 -0
  70. package/dist/models/v1/verification-error/index.d.ts +1 -0
  71. package/dist/models/v1/verification-error/index.js.map +1 -0
  72. package/dist/models/v1/{error/error.d.ts → verification-error/verification-error.d.ts} +1 -7
  73. package/dist/models/v1/verification-error/verification-error.js +3 -0
  74. package/dist/models/v1/verification-error/verification-error.js.map +1 -0
  75. package/dist/models/v1/verification-report-request/index.d.ts +1 -1
  76. package/dist/models/v1/verification-report-request/verification-report-request.d.ts +27 -10
  77. package/dist/models/v1/verification-report-request/verification-report-request.js +0 -6
  78. package/dist/models/v1/verification-report-request/verification-report-request.js.map +1 -1
  79. package/dist/models/v1/verification-report-response/verification-report-response.d.ts +2 -8
  80. package/dist/models/v1/verification-report-response/verification-report-response.js +0 -6
  81. package/dist/models/v1/verification-report-response/verification-report-response.js.map +1 -1
  82. package/dist/models/v1/verification-report-response-price/index.d.ts +1 -0
  83. package/dist/models/v1/verification-report-response-price/index.js.map +1 -0
  84. package/dist/models/v1/{flashcall-verification-report-response-price/flashcall-verification-report-response-price.d.ts → verification-report-response-price/verification-report-response-price.d.ts} +8 -7
  85. package/dist/models/v1/verification-report-response-price/verification-report-response-price.js +3 -0
  86. package/dist/models/v1/verification-report-response-price/verification-report-response-price.js.map +1 -0
  87. package/dist/models/v1/verification-request-event/verification-request-event.d.ts +7 -11
  88. package/dist/models/v1/verification-request-event/verification-request-event.js +0 -6
  89. package/dist/models/v1/verification-request-event/verification-request-event.js.map +1 -1
  90. package/dist/models/v1/verification-request-event-response/verification-request-event-response.d.ts +1 -7
  91. package/dist/models/v1/verification-request-event-response/verification-request-event-response.js +0 -6
  92. package/dist/models/v1/verification-request-event-response/verification-request-event-response.js.map +1 -1
  93. package/dist/models/v1/verification-result-event/verification-result-event.d.ts +4 -9
  94. package/dist/models/v1/verification-result-event/verification-result-event.js +0 -6
  95. package/dist/models/v1/verification-result-event/verification-result-event.js.map +1 -1
  96. package/dist/models/v1/verification-result-event-response/verification-result-event-response.d.ts +1 -7
  97. package/dist/models/v1/verification-result-event-response/verification-result-event-response.js +0 -6
  98. package/dist/models/v1/verification-result-event-response/verification-result-event-response.js.map +1 -1
  99. package/dist/rest/v1/callbacks/callbacks-webhook.d.ts +25 -0
  100. package/dist/rest/v1/callbacks/callbacks-webhook.js +45 -0
  101. package/dist/rest/v1/callbacks/callbacks-webhook.js.map +1 -0
  102. package/dist/rest/v1/callbacks/index.d.ts +1 -0
  103. package/dist/rest/v1/callbacks/index.js +18 -0
  104. package/dist/rest/v1/callbacks/index.js.map +1 -0
  105. package/dist/rest/v1/index.d.ts +2 -1
  106. package/dist/rest/v1/index.js +2 -1
  107. package/dist/rest/v1/index.js.map +1 -1
  108. package/dist/rest/v1/{verification-api.d.ts → verification-domain-api.d.ts} +1 -1
  109. package/dist/rest/v1/{verification-api.js → verification-domain-api.js} +4 -4
  110. package/dist/rest/v1/verification-domain-api.js.map +1 -0
  111. package/dist/rest/v1/{verification.d.ts → verification-service.d.ts} +1 -7
  112. package/dist/rest/v1/{verification.js → verification-service.js} +4 -4
  113. package/dist/rest/v1/verification-service.js.map +1 -0
  114. package/dist/rest/v1/verification-status/verification-status-api.d.ts +2 -2
  115. package/dist/rest/v1/verification-status/verification-status-api.jest.fixture.d.ts +3 -3
  116. package/dist/rest/v1/verification-status/verification-status-api.jest.fixture.js +3 -3
  117. package/dist/rest/v1/verification-status/verification-status-api.js +2 -2
  118. package/dist/rest/v1/verification-status/verification-status-api.js.map +1 -1
  119. package/dist/rest/v1/verifications/verifications-api.d.ts +97 -22
  120. package/dist/rest/v1/verifications/verifications-api.jest.fixture.d.ts +56 -8
  121. package/dist/rest/v1/verifications/verifications-api.jest.fixture.js +34 -6
  122. package/dist/rest/v1/verifications/verifications-api.jest.fixture.js.map +1 -1
  123. package/dist/rest/v1/verifications/verifications-api.js +216 -18
  124. package/dist/rest/v1/verifications/verifications-api.js.map +1 -1
  125. package/package.json +2 -2
  126. package/dist/models/v1/callout-initiate-verification-response/callout-initiate-verification-response.js +0 -9
  127. package/dist/models/v1/callout-initiate-verification-response/callout-initiate-verification-response.js.map +0 -1
  128. package/dist/models/v1/callout-initiate-verification-response/index.d.ts +0 -1
  129. package/dist/models/v1/callout-initiate-verification-response/index.js.map +0 -1
  130. package/dist/models/v1/callout-verification-report-request/callout-verification-report-request.d.ts +0 -14
  131. package/dist/models/v1/callout-verification-report-request/callout-verification-report-request.js +0 -9
  132. package/dist/models/v1/callout-verification-report-request/callout-verification-report-request.js.map +0 -1
  133. package/dist/models/v1/callout-verification-report-request/index.d.ts +0 -1
  134. package/dist/models/v1/callout-verification-report-request/index.js.map +0 -1
  135. package/dist/models/v1/callout-verification-report-request-callout/callout-verification-report-request-callout.d.ts +0 -13
  136. package/dist/models/v1/callout-verification-report-request-callout/callout-verification-report-request-callout.js +0 -9
  137. package/dist/models/v1/callout-verification-report-request-callout/callout-verification-report-request-callout.js.map +0 -1
  138. package/dist/models/v1/callout-verification-report-request-callout/index.d.ts +0 -1
  139. package/dist/models/v1/callout-verification-report-request-callout/index.js.map +0 -1
  140. package/dist/models/v1/data-initiate-verification-response/data-initiate-verification-response.d.ts +0 -19
  141. package/dist/models/v1/data-initiate-verification-response/data-initiate-verification-response.js +0 -9
  142. package/dist/models/v1/data-initiate-verification-response/data-initiate-verification-response.js.map +0 -1
  143. package/dist/models/v1/data-initiate-verification-response/index.d.ts +0 -1
  144. package/dist/models/v1/data-initiate-verification-response/index.js.map +0 -1
  145. package/dist/models/v1/data-initiate-verification-response-seamless/data-initiate-verification-response-seamless.d.ts +0 -13
  146. package/dist/models/v1/data-initiate-verification-response-seamless/data-initiate-verification-response-seamless.js +0 -9
  147. package/dist/models/v1/data-initiate-verification-response-seamless/data-initiate-verification-response-seamless.js.map +0 -1
  148. package/dist/models/v1/data-initiate-verification-response-seamless/index.d.ts +0 -1
  149. package/dist/models/v1/data-initiate-verification-response-seamless/index.js.map +0 -1
  150. package/dist/models/v1/error/error.js +0 -9
  151. package/dist/models/v1/error/error.js.map +0 -1
  152. package/dist/models/v1/error/index.d.ts +0 -1
  153. package/dist/models/v1/error/index.js.map +0 -1
  154. package/dist/models/v1/flash-call-initiate-verification-response/flash-call-initiate-verification-response.d.ts +0 -19
  155. package/dist/models/v1/flash-call-initiate-verification-response/flash-call-initiate-verification-response.js +0 -9
  156. package/dist/models/v1/flash-call-initiate-verification-response/flash-call-initiate-verification-response.js.map +0 -1
  157. package/dist/models/v1/flash-call-initiate-verification-response/index.d.ts +0 -1
  158. package/dist/models/v1/flash-call-initiate-verification-response/index.js.map +0 -1
  159. package/dist/models/v1/flash-call-initiate-verification-response-flash-call/flash-call-initiate-verification-response-flash-call.d.ts +0 -19
  160. package/dist/models/v1/flash-call-initiate-verification-response-flash-call/flash-call-initiate-verification-response-flash-call.js +0 -9
  161. package/dist/models/v1/flash-call-initiate-verification-response-flash-call/flash-call-initiate-verification-response-flash-call.js.map +0 -1
  162. package/dist/models/v1/flash-call-initiate-verification-response-flash-call/index.d.ts +0 -1
  163. package/dist/models/v1/flash-call-initiate-verification-response-flash-call/index.js.map +0 -1
  164. package/dist/models/v1/flash-call-request-event-response/flash-call-request-event-response.d.ts +0 -14
  165. package/dist/models/v1/flash-call-request-event-response/flash-call-request-event-response.js +0 -9
  166. package/dist/models/v1/flash-call-request-event-response/flash-call-request-event-response.js.map +0 -1
  167. package/dist/models/v1/flash-call-request-event-response/index.d.ts +0 -1
  168. package/dist/models/v1/flash-call-request-event-response/index.js +0 -3
  169. package/dist/models/v1/flash-call-request-event-response/index.js.map +0 -1
  170. package/dist/models/v1/flash-call-request-event-response-flash-call/flash-call-request-event-response-flash-call.js +0 -9
  171. package/dist/models/v1/flash-call-request-event-response-flash-call/flash-call-request-event-response-flash-call.js.map +0 -1
  172. package/dist/models/v1/flash-call-request-event-response-flash-call/index.d.ts +0 -1
  173. package/dist/models/v1/flash-call-request-event-response-flash-call/index.js +0 -3
  174. package/dist/models/v1/flash-call-request-event-response-flash-call/index.js.map +0 -1
  175. package/dist/models/v1/flashcall-verification-report-request/flashcall-verification-report-request.d.ts +0 -14
  176. package/dist/models/v1/flashcall-verification-report-request/flashcall-verification-report-request.js +0 -9
  177. package/dist/models/v1/flashcall-verification-report-request/flashcall-verification-report-request.js.map +0 -1
  178. package/dist/models/v1/flashcall-verification-report-request/index.d.ts +0 -1
  179. package/dist/models/v1/flashcall-verification-report-request/index.js +0 -3
  180. package/dist/models/v1/flashcall-verification-report-request/index.js.map +0 -1
  181. package/dist/models/v1/flashcall-verification-report-request-flash-call/flashcall-verification-report-request-flash-call.d.ts +0 -13
  182. package/dist/models/v1/flashcall-verification-report-request-flash-call/flashcall-verification-report-request-flash-call.js +0 -9
  183. package/dist/models/v1/flashcall-verification-report-request-flash-call/flashcall-verification-report-request-flash-call.js.map +0 -1
  184. package/dist/models/v1/flashcall-verification-report-request-flash-call/index.d.ts +0 -1
  185. package/dist/models/v1/flashcall-verification-report-request-flash-call/index.js +0 -3
  186. package/dist/models/v1/flashcall-verification-report-request-flash-call/index.js.map +0 -1
  187. package/dist/models/v1/flashcall-verification-report-response-price/flashcall-verification-report-response-price.js +0 -9
  188. package/dist/models/v1/flashcall-verification-report-response-price/flashcall-verification-report-response-price.js.map +0 -1
  189. package/dist/models/v1/flashcall-verification-report-response-price/index.d.ts +0 -1
  190. package/dist/models/v1/flashcall-verification-report-response-price/index.js +0 -3
  191. package/dist/models/v1/flashcall-verification-report-response-price/index.js.map +0 -1
  192. package/dist/models/v1/initiate-verification-resource/index.d.ts +0 -1
  193. package/dist/models/v1/initiate-verification-resource/index.js +0 -3
  194. package/dist/models/v1/initiate-verification-resource/index.js.map +0 -1
  195. package/dist/models/v1/initiate-verification-resource/initiate-verification-resource.d.ts +0 -21
  196. package/dist/models/v1/initiate-verification-resource/initiate-verification-resource.js +0 -9
  197. package/dist/models/v1/initiate-verification-resource/initiate-verification-resource.js.map +0 -1
  198. package/dist/models/v1/initiate-verification-resource-flash-call-options/index.d.ts +0 -1
  199. package/dist/models/v1/initiate-verification-resource-flash-call-options/index.js +0 -3
  200. package/dist/models/v1/initiate-verification-resource-flash-call-options/index.js.map +0 -1
  201. package/dist/models/v1/initiate-verification-resource-flash-call-options/initiate-verification-resource-flash-call-options.d.ts +0 -13
  202. package/dist/models/v1/initiate-verification-resource-flash-call-options/initiate-verification-resource-flash-call-options.js +0 -9
  203. package/dist/models/v1/initiate-verification-resource-flash-call-options/initiate-verification-resource-flash-call-options.js.map +0 -1
  204. package/dist/models/v1/initiate-verification-response/index.d.ts +0 -1
  205. package/dist/models/v1/initiate-verification-response/index.js +0 -3
  206. package/dist/models/v1/initiate-verification-response/index.js.map +0 -1
  207. package/dist/models/v1/initiate-verification-response/initiate-verification-response.d.ts +0 -11
  208. package/dist/models/v1/initiate-verification-response/initiate-verification-response.js +0 -9
  209. package/dist/models/v1/initiate-verification-response/initiate-verification-response.js.map +0 -1
  210. package/dist/models/v1/sms-initiate-verification-response/index.d.ts +0 -1
  211. package/dist/models/v1/sms-initiate-verification-response/index.js +0 -3
  212. package/dist/models/v1/sms-initiate-verification-response/index.js.map +0 -1
  213. package/dist/models/v1/sms-initiate-verification-response/sms-initiate-verification-response.d.ts +0 -19
  214. package/dist/models/v1/sms-initiate-verification-response/sms-initiate-verification-response.js +0 -9
  215. package/dist/models/v1/sms-initiate-verification-response/sms-initiate-verification-response.js.map +0 -1
  216. package/dist/models/v1/sms-initiate-verification-response-sms/index.d.ts +0 -1
  217. package/dist/models/v1/sms-initiate-verification-response-sms/index.js +0 -3
  218. package/dist/models/v1/sms-initiate-verification-response-sms/index.js.map +0 -1
  219. package/dist/models/v1/sms-initiate-verification-response-sms/sms-initiate-verification-response-sms.d.ts +0 -15
  220. package/dist/models/v1/sms-initiate-verification-response-sms/sms-initiate-verification-response-sms.js +0 -9
  221. package/dist/models/v1/sms-initiate-verification-response-sms/sms-initiate-verification-response-sms.js.map +0 -1
  222. package/dist/models/v1/sms-request-event-response-sms/index.d.ts +0 -1
  223. package/dist/models/v1/sms-request-event-response-sms/index.js +0 -3
  224. package/dist/models/v1/sms-request-event-response-sms/index.js.map +0 -1
  225. package/dist/models/v1/sms-request-event-response-sms/sms-request-event-response-sms.d.ts +0 -12
  226. package/dist/models/v1/sms-request-event-response-sms/sms-request-event-response-sms.js +0 -9
  227. package/dist/models/v1/sms-request-event-response-sms/sms-request-event-response-sms.js.map +0 -1
  228. package/dist/models/v1/sms-verification-report-request/index.d.ts +0 -1
  229. package/dist/models/v1/sms-verification-report-request/index.js +0 -3
  230. package/dist/models/v1/sms-verification-report-request/index.js.map +0 -1
  231. package/dist/models/v1/sms-verification-report-request/sms-verification-report-request.d.ts +0 -14
  232. package/dist/models/v1/sms-verification-report-request/sms-verification-report-request.js +0 -9
  233. package/dist/models/v1/sms-verification-report-request/sms-verification-report-request.js.map +0 -1
  234. package/dist/models/v1/sms-verification-report-request-sms/index.d.ts +0 -1
  235. package/dist/models/v1/sms-verification-report-request-sms/index.js +0 -3
  236. package/dist/models/v1/sms-verification-report-request-sms/index.js.map +0 -1
  237. package/dist/models/v1/sms-verification-report-request-sms/sms-verification-report-request-sms.d.ts +0 -15
  238. package/dist/models/v1/sms-verification-report-request-sms/sms-verification-report-request-sms.js +0 -9
  239. package/dist/models/v1/sms-verification-report-request-sms/sms-verification-report-request-sms.js.map +0 -1
  240. package/dist/models/v1/sms-verification-report-response-price/index.d.ts +0 -1
  241. package/dist/models/v1/sms-verification-report-response-price/index.js +0 -3
  242. package/dist/models/v1/sms-verification-report-response-price/index.js.map +0 -1
  243. package/dist/models/v1/sms-verification-report-response-price/sms-verification-report-response-price.d.ts +0 -14
  244. package/dist/models/v1/sms-verification-report-response-price/sms-verification-report-response-price.js +0 -9
  245. package/dist/models/v1/sms-verification-report-response-price/sms-verification-report-response-price.js.map +0 -1
  246. package/dist/models/v1/verification-request-event-price/index.d.ts +0 -1
  247. package/dist/models/v1/verification-request-event-price/index.js +0 -3
  248. package/dist/models/v1/verification-request-event-price/index.js.map +0 -1
  249. package/dist/models/v1/verification-request-event-price/verification-request-event-price.d.ts +0 -15
  250. package/dist/models/v1/verification-request-event-price/verification-request-event-price.js +0 -9
  251. package/dist/models/v1/verification-request-event-price/verification-request-event-price.js.map +0 -1
  252. package/dist/models/v1/verification-response/index.d.ts +0 -1
  253. package/dist/models/v1/verification-response/index.js +0 -3
  254. package/dist/models/v1/verification-response/index.js.map +0 -1
  255. package/dist/models/v1/verification-response/verification-response.d.ts +0 -10
  256. package/dist/models/v1/verification-response/verification-response.js +0 -9
  257. package/dist/models/v1/verification-response/verification-response.js.map +0 -1
  258. package/dist/rest/v1/verification-api.js.map +0 -1
  259. package/dist/rest/v1/verification.js.map +0 -1
  260. /package/dist/models/v1/{callout-initiate-verification-response → flashcall-request-event-response}/index.js +0 -0
  261. /package/dist/models/v1/{callout-verification-report-request-callout → start-callout-verification-response}/index.js +0 -0
  262. /package/dist/models/v1/{callout-verification-report-request → start-flashcall-verification-response}/index.js +0 -0
  263. /package/dist/models/v1/{data-initiate-verification-response-seamless → start-seamless-verification-response}/index.js +0 -0
  264. /package/dist/models/v1/{data-initiate-verification-response → start-sms-verification-response}/index.js +0 -0
  265. /package/dist/models/v1/{error → start-verification-request}/index.js +0 -0
  266. /package/dist/models/v1/{flash-call-initiate-verification-response-flash-call → verification-error}/index.js +0 -0
  267. /package/dist/models/v1/{flash-call-initiate-verification-response → verification-report-response-price}/index.js +0 -0
@@ -1,10 +1,4 @@
1
- /**
2
- * Model: VerificationRequestEventResponse
3
- *
4
- * THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
5
- *
6
- */
7
1
  import { SMSRequestEventResponse } from '../sms-request-event-response';
8
- import { FlashCallRequestEventResponse } from '../flash-call-request-event-response';
2
+ import { FlashCallRequestEventResponse } from '../flashcall-request-event-response';
9
3
  import { CalloutRequestEventResponse } from '../callout-request-event-response';
10
4
  export type VerificationRequestEventResponse = SMSRequestEventResponse | FlashCallRequestEventResponse | CalloutRequestEventResponse;
@@ -1,9 +1,3 @@
1
1
  "use strict";
2
- /**
3
- * Model: VerificationRequestEventResponse
4
- *
5
- * THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
6
- *
7
- */
8
2
  Object.defineProperty(exports, "__esModule", { value: true });
9
3
  //# sourceMappingURL=verification-request-event-response.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"verification-request-event-response.js","sourceRoot":"","sources":["../../../../src/models/v1/verification-request-event-response/verification-request-event-response.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
1
+ {"version":3,"file":"verification-request-event-response.js","sourceRoot":"","sources":["../../../../src/models/v1/verification-request-event-response/verification-request-event-response.ts"],"names":[],"mappings":""}
@@ -1,21 +1,16 @@
1
- /**
2
- * Model: VerificationResultEvent
3
- *
4
- * THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
5
- *
6
- */
7
1
  import { Identity } from '../identity';
2
+ import { VerificationStatusEnum } from '../enums';
8
3
  export interface VerificationResultEvent {
9
4
  /** The ID of the verification request. */
10
5
  id: string;
11
6
  /** The type of the event. */
12
- event: string;
7
+ event: 'VerificationResultEvent';
13
8
  /** The verification method. */
14
9
  method: MethodEnum;
15
10
  /** @see Identity */
16
11
  identity: Identity;
17
12
  /** The status of the verification request. */
18
- status: string;
13
+ status: VerificationStatusEnum;
19
14
  /** Displays the reason why a verification has `FAILED`, was `DENIED`, or was `ABORTED`. */
20
15
  reason?: ReasonEnum;
21
16
  /** The reference ID that was optionally passed together with the verification request. */
@@ -25,6 +20,6 @@ export interface VerificationResultEvent {
25
20
  /** A custom string that can be provided during a verification request. */
26
21
  custom?: string;
27
22
  }
28
- export type MethodEnum = 'sms' | 'flashCall' | 'callout' | 'seamless';
23
+ export type MethodEnum = 'sms' | 'flashcall' | 'callout' | 'seamless';
29
24
  export type ReasonEnum = 'Fraud' | 'Not enough credit' | 'Blocked' | 'Denied by callback' | 'Invalid callback' | 'Internal error' | 'Destination denied' | 'Network error or number unreachable' | 'Failed pending' | 'SMS delivery failure' | 'Invalid CLI' | 'Invalid code' | 'Expired' | 'Hung up without entering valid code';
30
25
  export type SourceEnum = 'intercepted' | 'manual';
@@ -1,9 +1,3 @@
1
1
  "use strict";
2
- /**
3
- * Model: VerificationResultEvent
4
- *
5
- * THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
6
- *
7
- */
8
2
  Object.defineProperty(exports, "__esModule", { value: true });
9
3
  //# sourceMappingURL=verification-result-event.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"verification-result-event.js","sourceRoot":"","sources":["../../../../src/models/v1/verification-result-event/verification-result-event.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
1
+ {"version":3,"file":"verification-result-event.js","sourceRoot":"","sources":["../../../../src/models/v1/verification-result-event/verification-result-event.ts"],"names":[],"mappings":""}
@@ -1,10 +1,4 @@
1
- /**
2
- * Model: VerificationResultEventResponse
3
- *
4
- * THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
5
- *
6
- */
7
1
  import { SMSRequestEventResponse } from '../sms-request-event-response';
8
- import { FlashCallRequestEventResponse } from '../flash-call-request-event-response';
2
+ import { FlashCallRequestEventResponse } from '../flashcall-request-event-response';
9
3
  import { CalloutRequestEventResponse } from '../callout-request-event-response';
10
4
  export type VerificationResultEventResponse = SMSRequestEventResponse | FlashCallRequestEventResponse | CalloutRequestEventResponse;
@@ -1,9 +1,3 @@
1
1
  "use strict";
2
- /**
3
- * Model: VerificationResultEventResponse
4
- *
5
- * THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
6
- *
7
- */
8
2
  Object.defineProperty(exports, "__esModule", { value: true });
9
3
  //# sourceMappingURL=verification-result-event-response.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"verification-result-event-response.js","sourceRoot":"","sources":["../../../../src/models/v1/verification-result-event-response/verification-result-event-response.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
1
+ {"version":3,"file":"verification-result-event-response.js","sourceRoot":"","sources":["../../../../src/models/v1/verification-result-event-response/verification-result-event-response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,25 @@
1
+ /// <reference types="node" />
2
+ import { VerificationRequestEvent, VerificationResultEvent } from '../../../models';
3
+ import { CallbackProcessor, SinchClientParameters } from '@sinch/sdk-client';
4
+ import { IncomingHttpHeaders } from 'http';
5
+ export type VerificationCallback = VerificationRequestEvent | VerificationResultEvent;
6
+ export declare class VerificationCallbackWebhooks implements CallbackProcessor<VerificationCallback> {
7
+ private readonly sinchClientParameters;
8
+ constructor(sinchClientParameters: SinchClientParameters);
9
+ /**
10
+ * Validate authorization header for callback request
11
+ * @param {IncomingHttpHeaders} headers - Incoming request's headers
12
+ * @param {any} body - Incoming request's body
13
+ * @param {string} path - Incoming request's path
14
+ * @param {string} method - Incoming request's HTTP method
15
+ * @return {boolean} - true if the authorization header is valid
16
+ */
17
+ validateAuthenticationHeader(headers: IncomingHttpHeaders, body: any, path: string, method: string): boolean;
18
+ /**
19
+ * Reviver for a Verification Event.
20
+ * This method ensures the object can be treated as a Verification Event and should be called before any action is taken to manipulate the object.
21
+ * @param {any} eventBody - The event body containing the verification event notification.
22
+ * @return {VerificationCallback} - The parsed verification event object.
23
+ */
24
+ parseEvent(eventBody: any): VerificationCallback;
25
+ }
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VerificationCallbackWebhooks = void 0;
4
+ const sdk_client_1 = require("@sinch/sdk-client");
5
+ class VerificationCallbackWebhooks {
6
+ constructor(sinchClientParameters) {
7
+ this.sinchClientParameters = sinchClientParameters;
8
+ }
9
+ /**
10
+ * Validate authorization header for callback request
11
+ * @param {IncomingHttpHeaders} headers - Incoming request's headers
12
+ * @param {any} body - Incoming request's body
13
+ * @param {string} path - Incoming request's path
14
+ * @param {string} method - Incoming request's HTTP method
15
+ * @return {boolean} - true if the authorization header is valid
16
+ */
17
+ validateAuthenticationHeader(headers, body, path, method) {
18
+ if (!this.sinchClientParameters.applicationKey || !this.sinchClientParameters.applicationSecret) {
19
+ throw new Error('The application key and secret must be defined');
20
+ }
21
+ return (0, sdk_client_1.validateAuthenticationHeader)(this.sinchClientParameters.applicationKey, this.sinchClientParameters.applicationSecret, headers, body, path, method);
22
+ }
23
+ /**
24
+ * Reviver for a Verification Event.
25
+ * This method ensures the object can be treated as a Verification Event and should be called before any action is taken to manipulate the object.
26
+ * @param {any} eventBody - The event body containing the verification event notification.
27
+ * @return {VerificationCallback} - The parsed verification event object.
28
+ */
29
+ parseEvent(eventBody) {
30
+ if (eventBody.event) {
31
+ switch (eventBody.event) {
32
+ case 'VerificationRequestEvent':
33
+ return eventBody;
34
+ case 'VerificationResultEvent':
35
+ return eventBody;
36
+ default:
37
+ throw new Error(`Unknown Verification event type: ${eventBody.event}`);
38
+ }
39
+ }
40
+ console.log(`Unknown Verification event structure:\n${JSON.stringify(eventBody)}`);
41
+ throw new Error('Unknown Verification event');
42
+ }
43
+ }
44
+ exports.VerificationCallbackWebhooks = VerificationCallbackWebhooks;
45
+ //# sourceMappingURL=callbacks-webhook.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"callbacks-webhook.js","sourceRoot":"","sources":["../../../../src/rest/v1/callbacks/callbacks-webhook.ts"],"names":[],"mappings":";;;AACA,kDAA2G;AAK3G,MAAa,4BAA4B;IAIvC,YAAY,qBAA4C;QACtD,IAAI,CAAC,qBAAqB,GAAG,qBAAqB,CAAC;IACrD,CAAC;IAED;;;;;;;OAOG;IACI,4BAA4B,CACjC,OAA4B,EAC5B,IAAS,EACT,IAAY,EACZ,MAAc;QAEd,IAAI,CAAC,IAAI,CAAC,qBAAqB,CAAC,cAAc,IAAI,CAAC,IAAI,CAAC,qBAAqB,CAAC,iBAAiB,EAAE,CAAC;YAChG,MAAM,IAAI,KAAK,CAAC,gDAAgD,CAAC,CAAC;QACpE,CAAC;QACD,OAAO,IAAA,yCAA4B,EACjC,IAAI,CAAC,qBAAqB,CAAC,cAAc,EACzC,IAAI,CAAC,qBAAqB,CAAC,iBAAiB,EAC5C,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;IACjC,CAAC;IAED;;;;;OAKG;IACI,UAAU,CAAC,SAAc;QAC9B,IAAI,SAAS,CAAC,KAAK,EAAE,CAAC;YACpB,QAAQ,SAAS,CAAC,KAAK,EAAE,CAAC;gBAC1B,KAAK,0BAA0B;oBAC7B,OAAO,SAAqC,CAAC;gBAC/C,KAAK,yBAAyB;oBAC5B,OAAO,SAAoC,CAAC;gBAC9C;oBACE,MAAM,IAAI,KAAK,CAAC,oCAAoC,SAAS,CAAC,KAAK,EAAE,CAAC,CAAC;YACzE,CAAC;QACH,CAAC;QACD,OAAO,CAAC,GAAG,CAAC,0CAA0C,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;QACnF,MAAM,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAC;IAChD,CAAC;CAEF;AApDD,oEAoDC"}
@@ -0,0 +1 @@
1
+ export * from './callbacks-webhook';
@@ -0,0 +1,18 @@
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("./callbacks-webhook"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/rest/v1/callbacks/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC"}
@@ -1,4 +1,5 @@
1
+ export * from './callbacks';
1
2
  export * from './verification-status';
2
3
  export * from './verifications';
3
4
  export * from './enums';
4
- export * from './verification';
5
+ export * from './verification-service';
@@ -14,8 +14,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./callbacks"), exports);
17
18
  __exportStar(require("./verification-status"), exports);
18
19
  __exportStar(require("./verifications"), exports);
19
20
  __exportStar(require("./enums"), exports);
20
- __exportStar(require("./verification"), exports);
21
+ __exportStar(require("./verification-service"), exports);
21
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rest/v1/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,kDAAgC;AAChC,0CAAwB;AACxB,iDAA+B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rest/v1/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,wDAAsC;AACtC,kDAAgC;AAChC,0CAAwB;AACxB,yDAAuC"}
@@ -1,5 +1,5 @@
1
1
  import { Api, ApiClient, SinchClientParameters, ApplicationCredentials } from '@sinch/sdk-client';
2
- export declare class VerificationApi implements Api {
2
+ export declare class VerificationDomainApi implements Api {
3
3
  readonly apiName: string;
4
4
  client?: ApiClient;
5
5
  private sinchClientParameters;
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.VerificationApi = void 0;
3
+ exports.VerificationDomainApi = void 0;
4
4
  const sdk_client_1 = require("@sinch/sdk-client");
5
- class VerificationApi {
5
+ class VerificationDomainApi {
6
6
  constructor(sinchClientParameters, apiName) {
7
7
  this.sinchClientParameters = sinchClientParameters;
8
8
  this.apiName = apiName;
@@ -62,5 +62,5 @@ class VerificationApi {
62
62
  return this.client;
63
63
  }
64
64
  }
65
- exports.VerificationApi = VerificationApi;
66
- //# sourceMappingURL=verification-api.js.map
65
+ exports.VerificationDomainApi = VerificationDomainApi;
66
+ //# sourceMappingURL=verification-domain-api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verification-domain-api.js","sourceRoot":"","sources":["../../../src/rest/v1/verification-domain-api.ts"],"names":[],"mappings":";;;AAAA,kDAM2B;AAE3B,MAAa,qBAAqB;IAKhC,YAAY,qBAA4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AAI,CAAC,qBAAqB,CAAC,iBAAiB,CAAC;iBAC5G;aACF,CAAC;YACF,IAAI,CAAC,MAAM,GAAG,IAAI,2BAAc,CAAC,gBAAgB,CAAC,CAAC;YACnD,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,QAAQ,GAAG,oCAAoC,CAAC;QAC/E,CAAC;QACD,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;CACF;AAlED,sDAkEC"}
@@ -1,13 +1,7 @@
1
- /**
2
- * Domain: verification
3
- *
4
- * THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
5
- *
6
- */
7
1
  import { SinchClientParameters } from '@sinch/sdk-client';
8
2
  import { VerificationStatusApi } from './verification-status';
9
3
  import { VerificationsApi } from './verifications';
10
- export declare class Verification {
4
+ export declare class VerificationService {
11
5
  readonly verificationStatus: VerificationStatusApi;
12
6
  readonly verifications: VerificationsApi;
13
7
  constructor(params: SinchClientParameters);
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Verification = void 0;
3
+ exports.VerificationService = void 0;
4
4
  const verification_status_1 = require("./verification-status");
5
5
  const verifications_1 = require("./verifications");
6
- class Verification {
6
+ class VerificationService {
7
7
  constructor(params) {
8
8
  this.verificationStatus = new verification_status_1.VerificationStatusApi(params);
9
9
  this.verifications = new verifications_1.VerificationsApi(params);
@@ -18,5 +18,5 @@ class Verification {
18
18
  this.verifications.setBasePath(basePath);
19
19
  }
20
20
  }
21
- exports.Verification = Verification;
22
- //# sourceMappingURL=verification.js.map
21
+ exports.VerificationService = VerificationService;
22
+ //# sourceMappingURL=verification-service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verification-service.js","sourceRoot":"","sources":["../../../src/rest/v1/verification-service.ts"],"names":[],"mappings":";;;AACA,+DAA8D;AAC9D,mDAAmD;AAEnD,MAAa,mBAAmB;IAI9B,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,kDAkBC"}
@@ -1,6 +1,6 @@
1
1
  import { SinchClientParameters } from '@sinch/sdk-client';
2
2
  import { VerificationReportResponse } from '../../../models';
3
- import { VerificationApi } from '../verification-api';
3
+ import { VerificationDomainApi } from '../verification-domain-api';
4
4
  export interface VerificationStatusByIdRequestData {
5
5
  /** The ID of the verification. */
6
6
  'id': string;
@@ -15,7 +15,7 @@ export interface VerificationStatusByReferenceRequestData {
15
15
  /** The custom reference of the verification. */
16
16
  'reference': string;
17
17
  }
18
- export declare class VerificationStatusApi extends VerificationApi {
18
+ export declare class VerificationStatusApi extends VerificationDomainApi {
19
19
  /**
20
20
  * Initialize your interface
21
21
  *
@@ -3,15 +3,15 @@ import { VerificationStatusApi, VerificationStatusByIdRequestData, VerificationS
3
3
  import { VerificationReportResponse } from '../../../models';
4
4
  export declare class VerificationStatusApiFixture implements Partial<Readonly<VerificationStatusApi>> {
5
5
  /**
6
- * Fixture associated to function verificationStatusById
6
+ * Fixture associated to function getById
7
7
  */
8
8
  getById: jest.Mock<Promise<VerificationReportResponse>, [VerificationStatusByIdRequestData]>;
9
9
  /**
10
- * Fixture associated to function verificationStatusByIdentity
10
+ * Fixture associated to function getByIdentity
11
11
  */
12
12
  getByIdentity: jest.Mock<Promise<VerificationReportResponse>, [VerificationStatusByIdentityRequestData]>;
13
13
  /**
14
- * Fixture associated to function verificationStatusByReference
14
+ * Fixture associated to function getByReference
15
15
  */
16
16
  getByReference: jest.Mock<Promise<VerificationReportResponse>, [VerificationStatusByReferenceRequestData]>;
17
17
  }
@@ -4,15 +4,15 @@ exports.VerificationStatusApiFixture = void 0;
4
4
  class VerificationStatusApiFixture {
5
5
  constructor() {
6
6
  /**
7
- * Fixture associated to function verificationStatusById
7
+ * Fixture associated to function getById
8
8
  */
9
9
  this.getById = jest.fn();
10
10
  /**
11
- * Fixture associated to function verificationStatusByIdentity
11
+ * Fixture associated to function getByIdentity
12
12
  */
13
13
  this.getByIdentity = jest.fn();
14
14
  /**
15
- * Fixture associated to function verificationStatusByReference
15
+ * Fixture associated to function getByReference
16
16
  */
17
17
  this.getByReference = jest.fn();
18
18
  }
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VerificationStatusApi = void 0;
4
- const verification_api_1 = require("../verification-api");
5
- class VerificationStatusApi extends verification_api_1.VerificationApi {
4
+ const verification_domain_api_1 = require("../verification-domain-api");
5
+ class VerificationStatusApi extends verification_domain_api_1.VerificationDomainApi {
6
6
  /**
7
7
  * Initialize your interface
8
8
  *
@@ -1 +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,MAA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WAAW,EAAE,+BAA+B;SAC7C,CAAC,CAAC;IACL,CAAC;CAEF;AAlGD,sDAkGC"}
1
+ {"version":3,"file":"verification-status-api.js","sourceRoot":"","sources":["../../../../src/rest/v1/verification-status/verification-status-api.ts"],"names":[],"mappings":";;;AAKA,wEAAmE;AAiBnE,MAAa,qBAAsB,SAAQ,+CAAqB;IAE9D;;;;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,GAAG;YACH,cAAc;YACd,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,WAAW,EAAE,wBAAwB;SACtC,CAA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AAkB;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"}
@@ -1,23 +1,55 @@
1
- import { InitiateVerificationResource, InitiateVerificationResponse, VerificationReportRequest, VerificationResponse } from '../../../models';
1
+ import { StartCalloutVerificationResponse, CalloutVerificationReportRequest, CalloutVerificationReportResponse, StartSeamlessVerificationResponse, StartFlashCallVerificationResponse, FlashCallVerificationReportRequest, FlashCallVerificationReportResponse, StartSmsVerificationResponse, SmsVerificationReportRequest, SMSVerificationReportResponse, StartSeamlessVerification, StartVerificationWithCallout, StartVerificationWithFlashCall, StartVerificationWithSms } from '../../../models';
2
2
  import { SinchClientParameters } from '@sinch/sdk-client';
3
- import { VerificationApi } from '../verification-api';
4
- export interface ReportVerificationByIdRequestData {
3
+ import { VerificationDomainApi } from '../verification-domain-api';
4
+ interface ReportVerificationByIdRequestDataBase {
5
5
  /** The ID of the verification. */
6
6
  'id': string;
7
- /** */
8
- 'verificationReportRequestBody': VerificationReportRequest;
9
7
  }
10
- export interface ReportVerificationByIdentityRequestData {
8
+ export interface ReportSmsVerificationByIdRequestData extends ReportVerificationByIdRequestDataBase {
9
+ /** Request body to report a verification started with an SMS by its ID */
10
+ 'reportSmsVerificationByIdRequestBody': SmsVerificationReportRequest;
11
+ }
12
+ export interface ReportFlashCallVerificationByIdRequestData extends ReportVerificationByIdRequestDataBase {
13
+ /** Request body to report a verification started with a flashCall by its ID */
14
+ 'reportFlashCallVerificationByIdRequestBody': FlashCallVerificationReportRequest;
15
+ }
16
+ export interface ReportCalloutVerificationByIdRequestData extends ReportVerificationByIdRequestDataBase {
17
+ /** Request body to report a verification started with a callout by its ID */
18
+ 'reportCalloutVerificationByIdRequestBody': CalloutVerificationReportRequest;
19
+ }
20
+ interface ReportVerificationByIdentityRequestDataBase {
11
21
  /** For type `number` use a [E.164](https://community.sinch.com/t5/Glossary/E-164/ta-p/7537)-compatible phone number. */
12
22
  'endpoint': string;
13
- /** */
14
- 'verificationReportRequestBody': VerificationReportRequest;
15
23
  }
16
- export interface StartVerificationRequestData {
17
- /** */
18
- 'initiateVerificationRequestBody': InitiateVerificationResource;
24
+ export interface ReportSmsVerificationByIdentityRequestData extends ReportVerificationByIdentityRequestDataBase {
25
+ /** Request body to report a verification started with an SMS by its identity */
26
+ 'reportSmsVerificationByIdentityRequestBody': SmsVerificationReportRequest;
27
+ }
28
+ export interface ReportFlashCallVerificationByIdentityRequestData extends ReportVerificationByIdentityRequestDataBase {
29
+ /** Request body to report a verification started with a flashCall by its identity */
30
+ 'reportFlashCallVerificationByIdentityRequestBody': FlashCallVerificationReportRequest;
31
+ }
32
+ export interface ReportCalloutVerificationByIdentityRequestData extends ReportVerificationByIdentityRequestDataBase {
33
+ /** Request body to report a verification started with a callout by its identity */
34
+ 'reportCalloutVerificationByIdentityRequestBody': CalloutVerificationReportRequest;
35
+ }
36
+ export interface StartSmsVerificationRequestData {
37
+ /** Request body to start a verification with an SMS */
38
+ 'startVerificationWithSmsRequestBody': StartVerificationWithSms;
39
+ }
40
+ export interface StartFlashCallVerificationRequestData {
41
+ /** Request body to start a verification with a flashCall */
42
+ 'startVerificationWithFlashCallRequestBody': StartVerificationWithFlashCall;
19
43
  }
20
- export declare class VerificationsApi extends VerificationApi {
44
+ export interface StartCalloutVerificationRequestData {
45
+ /** Request body to start a verification with a callout */
46
+ 'startVerificationWithCalloutRequestBody': StartVerificationWithCallout;
47
+ }
48
+ export interface StartSeamlessVerificationRequestData {
49
+ /** Request body to start a seamless verification */
50
+ 'startSeamlessVerificationRequestBody': StartSeamlessVerification;
51
+ }
52
+ export declare class VerificationsApi extends VerificationDomainApi {
21
53
  /**
22
54
  * Initialize your interface
23
55
  *
@@ -25,21 +57,64 @@ export declare class VerificationsApi extends VerificationApi {
25
57
  */
26
58
  constructor(sinchClientParameters: SinchClientParameters);
27
59
  /**
28
- * Report a verification with ID
60
+ * Report an SMS verification with ID
61
+ * Report the received verification code to verify it, using the Verification ID of the Verification request.
62
+ * @param { ReportSmsVerificationByIdRequestData } data - The data to provide to the API call.
63
+ */
64
+ reportSmsById(data: ReportSmsVerificationByIdRequestData): Promise<SMSVerificationReportResponse>;
65
+ /**
66
+ * Report a FlashCall verification with ID
67
+ * Report the received verification code to verify it, using the Verification ID of the Verification request.
68
+ * @param { ReportFlashCallVerificationByIdRequestData } data - The data to provide to the API call.
69
+ */
70
+ reportFlashCallById(data: ReportFlashCallVerificationByIdRequestData): Promise<FlashCallVerificationReportResponse>;
71
+ /**
72
+ * Report a Callout verification with ID
29
73
  * 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.
74
+ * @param { ReportCalloutVerificationByIdRequestData } data - The data to provide to the API call.
75
+ */
76
+ reportCalloutById(data: ReportCalloutVerificationByIdRequestData): Promise<CalloutVerificationReportResponse>;
77
+ /**
78
+ * Report an SMS verification using Identity
79
+ * Report the received verification code (OTP) to verify it, using the identity of the user (in most cases, the phone number).
80
+ * @param { ReportSmsVerificationByIdentityRequestData } data - The data to provide to the API call.
81
+ */
82
+ reportSmsByIdentity(data: ReportSmsVerificationByIdentityRequestData): Promise<SMSVerificationReportResponse>;
83
+ /**
84
+ * Report a FlashCall verification using Identity
85
+ * Report the received verification code (CLI) to verify it, using the identity of the user (in most cases, the phone number).
86
+ * @param { ReportFlashCallVerificationByIdentityRequestData } data - The data to provide to the API call.
87
+ */
88
+ reportFlashCallByIdentity(data: ReportFlashCallVerificationByIdentityRequestData): Promise<FlashCallVerificationReportResponse>;
89
+ /**
90
+ * Report a Callout verification using Identity
91
+ * Report the received verification code (OTP) to verify it, using the identity of the user (in most cases, the phone number).
92
+ * @param { ReportCalloutVerificationByIdentityRequestData } data - The data to provide to the API call.
31
93
  */
32
- reportById(data: ReportVerificationByIdRequestData): Promise<VerificationResponse>;
94
+ reportCalloutByIdentity(data: ReportCalloutVerificationByIdentityRequestData): Promise<CalloutVerificationReportResponse>;
33
95
  /**
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.
96
+ * Start verification with SMS
97
+ * 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.
98
+ * @param { StartSmsVerificationRequestData } data - The data to provide to the API call.
99
+ */
100
+ startSms(data: StartSmsVerificationRequestData): Promise<StartSmsVerificationResponse>;
101
+ /**
102
+ * Start verification with a FlashCall
103
+ * 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.
104
+ * @param { StartFlashCallVerificationRequestData } data - The data to provide to the API call.
105
+ */
106
+ startFlashCall(data: StartFlashCallVerificationRequestData): Promise<StartFlashCallVerificationResponse>;
107
+ /**
108
+ * Start verification with a callout
109
+ * 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.
110
+ * @param { StartCalloutVerificationRequestData } data - The data to provide to the API call.
37
111
  */
38
- reportByIdentity(data: ReportVerificationByIdentityRequestData): Promise<VerificationResponse>;
112
+ startCallout(data: StartCalloutVerificationRequestData): Promise<StartCalloutVerificationResponse>;
39
113
  /**
40
- * Start verification
114
+ * Start seamless verification (= data verification)
41
115
  * 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.
116
+ * @param { StartSeamlessVerificationRequestData } data - The data to provide to the API call.
43
117
  */
44
- start(data: StartVerificationRequestData): Promise<InitiateVerificationResponse>;
118
+ startSeamless(data: StartSeamlessVerificationRequestData): Promise<StartSeamlessVerificationResponse>;
45
119
  }
120
+ export {};
@@ -1,17 +1,65 @@
1
1
  /// <reference types="jest" />
2
- import { VerificationsApi, ReportVerificationByIdRequestData, ReportVerificationByIdentityRequestData, StartVerificationRequestData } from './verifications-api';
3
- import { InitiateVerificationResponse, VerificationResponse } from '../../../models';
2
+ import { StartCalloutVerificationResponse, CalloutVerificationReportResponse, StartSeamlessVerificationResponse, StartFlashCallVerificationResponse, FlashCallVerificationReportResponse, StartSmsVerificationResponse, SMSVerificationReportResponse } from '../../../models';
3
+ import { VerificationsApi, StartSmsVerificationRequestData, StartFlashCallVerificationRequestData, StartCalloutVerificationRequestData, StartSeamlessVerificationRequestData, ReportSmsVerificationByIdRequestData, ReportCalloutVerificationByIdRequestData, ReportFlashCallVerificationByIdRequestData, ReportSmsVerificationByIdentityRequestData, ReportFlashCallVerificationByIdentityRequestData, ReportCalloutVerificationByIdentityRequestData } from './verifications-api';
4
4
  export declare class VerificationsApiFixture implements Partial<Readonly<VerificationsApi>> {
5
5
  /**
6
- * Fixture associated to function reportVerificationById
6
+ * Fixture associated to function reportSmsById
7
7
  */
8
- reportById: jest.Mock<Promise<VerificationResponse>, [ReportVerificationByIdRequestData]>;
8
+ reportSmsById: jest.Mock<Promise<SMSVerificationReportResponse>, [
9
+ ReportSmsVerificationByIdRequestData
10
+ ]>;
9
11
  /**
10
- * Fixture associated to function reportVerificationByIdentity
12
+ * Fixture associated to function reportFlashCallById
11
13
  */
12
- reportByIdentity: jest.Mock<Promise<VerificationResponse>, [ReportVerificationByIdentityRequestData]>;
14
+ reportFlashCallById: jest.Mock<Promise<FlashCallVerificationReportResponse>, [
15
+ ReportFlashCallVerificationByIdRequestData
16
+ ]>;
13
17
  /**
14
- * Fixture associated to function startVerification
18
+ * Fixture associated to function reportCalloutById
15
19
  */
16
- start: jest.Mock<Promise<InitiateVerificationResponse>, [StartVerificationRequestData]>;
20
+ reportCalloutById: jest.Mock<Promise<CalloutVerificationReportResponse>, [
21
+ ReportCalloutVerificationByIdRequestData
22
+ ]>;
23
+ /**
24
+ * Fixture associated to function reportSmsByIdentity
25
+ */
26
+ reportSmsByIdentity: jest.Mock<Promise<SMSVerificationReportResponse>, [
27
+ ReportSmsVerificationByIdentityRequestData
28
+ ]>;
29
+ /**
30
+ * Fixture associated to function reportFlashCallByIdentity
31
+ */
32
+ reportFlashCallByIdentity: jest.Mock<Promise<FlashCallVerificationReportResponse>, [
33
+ ReportFlashCallVerificationByIdentityRequestData
34
+ ]>;
35
+ /**
36
+ * Fixture associated to function reportCalloutByIdentity
37
+ */
38
+ reportCalloutByIdentity: jest.Mock<Promise<CalloutVerificationReportResponse>, [
39
+ ReportCalloutVerificationByIdentityRequestData
40
+ ]>;
41
+ /**
42
+ * Fixture associated to function startSms
43
+ */
44
+ startSms: jest.Mock<Promise<StartSmsVerificationResponse>, [
45
+ StartSmsVerificationRequestData
46
+ ]>;
47
+ /**
48
+ * Fixture associated to function startFlashCall
49
+ */
50
+ startFlashCall: jest.Mock<Promise<StartFlashCallVerificationResponse>, [
51
+ StartFlashCallVerificationRequestData
52
+ ]>;
53
+ /**
54
+ * Fixture associated to function startCallout
55
+ */
56
+ startCallout: jest.Mock<Promise<StartCalloutVerificationResponse>, [
57
+ StartCalloutVerificationRequestData
58
+ ]>;
59
+ /**
60
+ * Fixture associated to function startSeamless
61
+ */
62
+ startSeamless: jest.Mock<Promise<StartSeamlessVerificationResponse>, [
63
+ StartSeamlessVerificationRequestData
64
+ ]>;
17
65
  }