@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.
- package/README.md +126 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +19 -0
- package/dist/index.js.map +1 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +18 -0
- package/dist/models/index.js.map +1 -0
- package/dist/models/v1/callout-initiate-verification-response/callout-initiate-verification-response.d.ts +16 -0
- package/dist/models/v1/callout-initiate-verification-response/callout-initiate-verification-response.js +9 -0
- package/dist/models/v1/callout-initiate-verification-response/callout-initiate-verification-response.js.map +1 -0
- package/dist/models/v1/callout-initiate-verification-response/index.d.ts +1 -0
- package/dist/models/v1/callout-initiate-verification-response/index.js +3 -0
- package/dist/models/v1/callout-initiate-verification-response/index.js.map +1 -0
- package/dist/models/v1/callout-request-event-response/callout-request-event-response.d.ts +14 -0
- package/dist/models/v1/callout-request-event-response/callout-request-event-response.js +9 -0
- package/dist/models/v1/callout-request-event-response/callout-request-event-response.js.map +1 -0
- package/dist/models/v1/callout-request-event-response/index.d.ts +1 -0
- package/dist/models/v1/callout-request-event-response/index.js +3 -0
- package/dist/models/v1/callout-request-event-response/index.js.map +1 -0
- package/dist/models/v1/callout-request-event-response-callout/callout-request-event-response-callout.d.ts +13 -0
- package/dist/models/v1/callout-request-event-response-callout/callout-request-event-response-callout.js +9 -0
- package/dist/models/v1/callout-request-event-response-callout/callout-request-event-response-callout.js.map +1 -0
- package/dist/models/v1/callout-request-event-response-callout/index.d.ts +1 -0
- package/dist/models/v1/callout-request-event-response-callout/index.js +3 -0
- package/dist/models/v1/callout-request-event-response-callout/index.js.map +1 -0
- package/dist/models/v1/callout-request-event-response-callout-speech/callout-request-event-response-callout-speech.d.ts +13 -0
- package/dist/models/v1/callout-request-event-response-callout-speech/callout-request-event-response-callout-speech.js +9 -0
- package/dist/models/v1/callout-request-event-response-callout-speech/callout-request-event-response-callout-speech.js.map +1 -0
- package/dist/models/v1/callout-request-event-response-callout-speech/index.d.ts +1 -0
- package/dist/models/v1/callout-request-event-response-callout-speech/index.js +3 -0
- package/dist/models/v1/callout-request-event-response-callout-speech/index.js.map +1 -0
- package/dist/models/v1/callout-verification-report-request/callout-verification-report-request.d.ts +14 -0
- package/dist/models/v1/callout-verification-report-request/callout-verification-report-request.js +9 -0
- package/dist/models/v1/callout-verification-report-request/callout-verification-report-request.js.map +1 -0
- package/dist/models/v1/callout-verification-report-request/index.d.ts +1 -0
- package/dist/models/v1/callout-verification-report-request/index.js +3 -0
- package/dist/models/v1/callout-verification-report-request/index.js.map +1 -0
- package/dist/models/v1/callout-verification-report-request-callout/callout-verification-report-request-callout.d.ts +13 -0
- package/dist/models/v1/callout-verification-report-request-callout/callout-verification-report-request-callout.js +9 -0
- package/dist/models/v1/callout-verification-report-request-callout/callout-verification-report-request-callout.js.map +1 -0
- package/dist/models/v1/callout-verification-report-request-callout/index.d.ts +1 -0
- package/dist/models/v1/callout-verification-report-request-callout/index.js +3 -0
- package/dist/models/v1/callout-verification-report-request-callout/index.js.map +1 -0
- package/dist/models/v1/callout-verification-report-response/callout-verification-report-response.d.ts +35 -0
- package/dist/models/v1/callout-verification-report-response/callout-verification-report-response.js +9 -0
- package/dist/models/v1/callout-verification-report-response/callout-verification-report-response.js.map +1 -0
- package/dist/models/v1/callout-verification-report-response/index.d.ts +1 -0
- package/dist/models/v1/callout-verification-report-response/index.js +3 -0
- package/dist/models/v1/callout-verification-report-response/index.js.map +1 -0
- package/dist/models/v1/data-initiate-verification-response/data-initiate-verification-response.d.ts +19 -0
- package/dist/models/v1/data-initiate-verification-response/data-initiate-verification-response.js +9 -0
- package/dist/models/v1/data-initiate-verification-response/data-initiate-verification-response.js.map +1 -0
- package/dist/models/v1/data-initiate-verification-response/index.d.ts +1 -0
- package/dist/models/v1/data-initiate-verification-response/index.js +3 -0
- package/dist/models/v1/data-initiate-verification-response/index.js.map +1 -0
- package/dist/models/v1/data-initiate-verification-response-seamless/data-initiate-verification-response-seamless.d.ts +13 -0
- package/dist/models/v1/data-initiate-verification-response-seamless/data-initiate-verification-response-seamless.js +9 -0
- package/dist/models/v1/data-initiate-verification-response-seamless/data-initiate-verification-response-seamless.js.map +1 -0
- package/dist/models/v1/data-initiate-verification-response-seamless/index.d.ts +1 -0
- package/dist/models/v1/data-initiate-verification-response-seamless/index.js +3 -0
- package/dist/models/v1/data-initiate-verification-response-seamless/index.js.map +1 -0
- package/dist/models/v1/enums.d.ts +18 -0
- package/dist/models/v1/enums.js +3 -0
- package/dist/models/v1/enums.js.map +1 -0
- package/dist/models/v1/error/error.d.ts +16 -0
- package/dist/models/v1/error/error.js +9 -0
- package/dist/models/v1/error/error.js.map +1 -0
- package/dist/models/v1/error/index.d.ts +1 -0
- package/dist/models/v1/error/index.js +3 -0
- package/dist/models/v1/error/index.js.map +1 -0
- package/dist/models/v1/flash-call-initiate-verification-response/flash-call-initiate-verification-response.d.ts +19 -0
- package/dist/models/v1/flash-call-initiate-verification-response/flash-call-initiate-verification-response.js +9 -0
- package/dist/models/v1/flash-call-initiate-verification-response/flash-call-initiate-verification-response.js.map +1 -0
- package/dist/models/v1/flash-call-initiate-verification-response/index.d.ts +1 -0
- package/dist/models/v1/flash-call-initiate-verification-response/index.js +3 -0
- package/dist/models/v1/flash-call-initiate-verification-response/index.js.map +1 -0
- package/dist/models/v1/flash-call-initiate-verification-response-flash-call/flash-call-initiate-verification-response-flash-call.d.ts +19 -0
- package/dist/models/v1/flash-call-initiate-verification-response-flash-call/flash-call-initiate-verification-response-flash-call.js +9 -0
- package/dist/models/v1/flash-call-initiate-verification-response-flash-call/flash-call-initiate-verification-response-flash-call.js.map +1 -0
- package/dist/models/v1/flash-call-initiate-verification-response-flash-call/index.d.ts +1 -0
- package/dist/models/v1/flash-call-initiate-verification-response-flash-call/index.js +3 -0
- package/dist/models/v1/flash-call-initiate-verification-response-flash-call/index.js.map +1 -0
- package/dist/models/v1/flash-call-request-event-response/flash-call-request-event-response.d.ts +14 -0
- package/dist/models/v1/flash-call-request-event-response/flash-call-request-event-response.js +9 -0
- package/dist/models/v1/flash-call-request-event-response/flash-call-request-event-response.js.map +1 -0
- package/dist/models/v1/flash-call-request-event-response/index.d.ts +1 -0
- package/dist/models/v1/flash-call-request-event-response/index.js +3 -0
- package/dist/models/v1/flash-call-request-event-response/index.js.map +1 -0
- package/dist/models/v1/flash-call-request-event-response-flash-call/flash-call-request-event-response-flash-call.d.ts +12 -0
- package/dist/models/v1/flash-call-request-event-response-flash-call/flash-call-request-event-response-flash-call.js +9 -0
- package/dist/models/v1/flash-call-request-event-response-flash-call/flash-call-request-event-response-flash-call.js.map +1 -0
- package/dist/models/v1/flash-call-request-event-response-flash-call/index.d.ts +1 -0
- package/dist/models/v1/flash-call-request-event-response-flash-call/index.js +3 -0
- package/dist/models/v1/flash-call-request-event-response-flash-call/index.js.map +1 -0
- package/dist/models/v1/flashcall-verification-report-request/flashcall-verification-report-request.d.ts +14 -0
- package/dist/models/v1/flashcall-verification-report-request/flashcall-verification-report-request.js +9 -0
- package/dist/models/v1/flashcall-verification-report-request/flashcall-verification-report-request.js.map +1 -0
- package/dist/models/v1/flashcall-verification-report-request/index.d.ts +1 -0
- package/dist/models/v1/flashcall-verification-report-request/index.js +3 -0
- package/dist/models/v1/flashcall-verification-report-request/index.js.map +1 -0
- package/dist/models/v1/flashcall-verification-report-request-flash-call/flashcall-verification-report-request-flash-call.d.ts +13 -0
- package/dist/models/v1/flashcall-verification-report-request-flash-call/flashcall-verification-report-request-flash-call.js +9 -0
- package/dist/models/v1/flashcall-verification-report-request-flash-call/flashcall-verification-report-request-flash-call.js.map +1 -0
- package/dist/models/v1/flashcall-verification-report-request-flash-call/index.d.ts +1 -0
- package/dist/models/v1/flashcall-verification-report-request-flash-call/index.js +3 -0
- package/dist/models/v1/flashcall-verification-report-request-flash-call/index.js.map +1 -0
- package/dist/models/v1/flashcall-verification-report-response/flashcall-verification-report-response.d.ts +38 -0
- package/dist/models/v1/flashcall-verification-report-response/flashcall-verification-report-response.js +9 -0
- package/dist/models/v1/flashcall-verification-report-response/flashcall-verification-report-response.js.map +1 -0
- package/dist/models/v1/flashcall-verification-report-response/index.d.ts +1 -0
- package/dist/models/v1/flashcall-verification-report-response/index.js +3 -0
- package/dist/models/v1/flashcall-verification-report-response/index.js.map +1 -0
- package/dist/models/v1/flashcall-verification-report-response-price/flashcall-verification-report-response-price.d.ts +18 -0
- package/dist/models/v1/flashcall-verification-report-response-price/flashcall-verification-report-response-price.js +9 -0
- package/dist/models/v1/flashcall-verification-report-response-price/flashcall-verification-report-response-price.js.map +1 -0
- package/dist/models/v1/flashcall-verification-report-response-price/index.d.ts +1 -0
- package/dist/models/v1/flashcall-verification-report-response-price/index.js +3 -0
- package/dist/models/v1/flashcall-verification-report-response-price/index.js.map +1 -0
- package/dist/models/v1/identity/identity.d.ts +16 -0
- package/dist/models/v1/identity/identity.js +9 -0
- package/dist/models/v1/identity/identity.js.map +1 -0
- package/dist/models/v1/identity/index.d.ts +1 -0
- package/dist/models/v1/identity/index.js +3 -0
- package/dist/models/v1/identity/index.js.map +1 -0
- package/dist/models/v1/index.d.ts +41 -0
- package/dist/models/v1/index.js +58 -0
- package/dist/models/v1/index.js.map +1 -0
- package/dist/models/v1/initiate-verification-resource/index.d.ts +1 -0
- package/dist/models/v1/initiate-verification-resource/index.js +3 -0
- package/dist/models/v1/initiate-verification-resource/index.js.map +1 -0
- package/dist/models/v1/initiate-verification-resource/initiate-verification-resource.d.ts +21 -0
- package/dist/models/v1/initiate-verification-resource/initiate-verification-resource.js +9 -0
- package/dist/models/v1/initiate-verification-resource/initiate-verification-resource.js.map +1 -0
- package/dist/models/v1/initiate-verification-resource-flash-call-options/index.d.ts +1 -0
- package/dist/models/v1/initiate-verification-resource-flash-call-options/index.js +3 -0
- package/dist/models/v1/initiate-verification-resource-flash-call-options/index.js.map +1 -0
- package/dist/models/v1/initiate-verification-resource-flash-call-options/initiate-verification-resource-flash-call-options.d.ts +13 -0
- package/dist/models/v1/initiate-verification-resource-flash-call-options/initiate-verification-resource-flash-call-options.js +9 -0
- package/dist/models/v1/initiate-verification-resource-flash-call-options/initiate-verification-resource-flash-call-options.js.map +1 -0
- package/dist/models/v1/initiate-verification-response/index.d.ts +1 -0
- package/dist/models/v1/initiate-verification-response/index.js +3 -0
- package/dist/models/v1/initiate-verification-response/index.js.map +1 -0
- package/dist/models/v1/initiate-verification-response/initiate-verification-response.d.ts +11 -0
- package/dist/models/v1/initiate-verification-response/initiate-verification-response.js +9 -0
- package/dist/models/v1/initiate-verification-response/initiate-verification-response.js.map +1 -0
- package/dist/models/v1/links-object/index.d.ts +1 -0
- package/dist/models/v1/links-object/index.js +3 -0
- package/dist/models/v1/links-object/index.js.map +1 -0
- package/dist/models/v1/links-object/links-object.d.ts +17 -0
- package/dist/models/v1/links-object/links-object.js +9 -0
- package/dist/models/v1/links-object/links-object.js.map +1 -0
- package/dist/models/v1/price/index.d.ts +1 -0
- package/dist/models/v1/price/index.js +3 -0
- package/dist/models/v1/price/index.js.map +1 -0
- package/dist/models/v1/price/price.d.ts +11 -0
- package/dist/models/v1/price/price.js +9 -0
- package/dist/models/v1/price/price.js.map +1 -0
- package/dist/models/v1/sms-initiate-verification-response/index.d.ts +1 -0
- package/dist/models/v1/sms-initiate-verification-response/index.js +3 -0
- package/dist/models/v1/sms-initiate-verification-response/index.js.map +1 -0
- package/dist/models/v1/sms-initiate-verification-response/sms-initiate-verification-response.d.ts +19 -0
- package/dist/models/v1/sms-initiate-verification-response/sms-initiate-verification-response.js +9 -0
- package/dist/models/v1/sms-initiate-verification-response/sms-initiate-verification-response.js.map +1 -0
- package/dist/models/v1/sms-initiate-verification-response-sms/index.d.ts +1 -0
- package/dist/models/v1/sms-initiate-verification-response-sms/index.js +3 -0
- package/dist/models/v1/sms-initiate-verification-response-sms/index.js.map +1 -0
- package/dist/models/v1/sms-initiate-verification-response-sms/sms-initiate-verification-response-sms.d.ts +15 -0
- package/dist/models/v1/sms-initiate-verification-response-sms/sms-initiate-verification-response-sms.js +9 -0
- package/dist/models/v1/sms-initiate-verification-response-sms/sms-initiate-verification-response-sms.js.map +1 -0
- package/dist/models/v1/sms-request-event-response/index.d.ts +1 -0
- package/dist/models/v1/sms-request-event-response/index.js +3 -0
- package/dist/models/v1/sms-request-event-response/index.js.map +1 -0
- package/dist/models/v1/sms-request-event-response/sms-request-event-response.d.ts +14 -0
- package/dist/models/v1/sms-request-event-response/sms-request-event-response.js +9 -0
- package/dist/models/v1/sms-request-event-response/sms-request-event-response.js.map +1 -0
- package/dist/models/v1/sms-request-event-response-sms/index.d.ts +1 -0
- package/dist/models/v1/sms-request-event-response-sms/index.js +3 -0
- package/dist/models/v1/sms-request-event-response-sms/index.js.map +1 -0
- package/dist/models/v1/sms-request-event-response-sms/sms-request-event-response-sms.d.ts +12 -0
- package/dist/models/v1/sms-request-event-response-sms/sms-request-event-response-sms.js +9 -0
- package/dist/models/v1/sms-request-event-response-sms/sms-request-event-response-sms.js.map +1 -0
- package/dist/models/v1/sms-verification-report-request/index.d.ts +1 -0
- package/dist/models/v1/sms-verification-report-request/index.js +3 -0
- package/dist/models/v1/sms-verification-report-request/index.js.map +1 -0
- package/dist/models/v1/sms-verification-report-request/sms-verification-report-request.d.ts +14 -0
- package/dist/models/v1/sms-verification-report-request/sms-verification-report-request.js +9 -0
- package/dist/models/v1/sms-verification-report-request/sms-verification-report-request.js.map +1 -0
- package/dist/models/v1/sms-verification-report-request-sms/index.d.ts +1 -0
- package/dist/models/v1/sms-verification-report-request-sms/index.js +3 -0
- package/dist/models/v1/sms-verification-report-request-sms/index.js.map +1 -0
- package/dist/models/v1/sms-verification-report-request-sms/sms-verification-report-request-sms.d.ts +15 -0
- package/dist/models/v1/sms-verification-report-request-sms/sms-verification-report-request-sms.js +9 -0
- package/dist/models/v1/sms-verification-report-request-sms/sms-verification-report-request-sms.js.map +1 -0
- package/dist/models/v1/sms-verification-report-response/index.d.ts +1 -0
- package/dist/models/v1/sms-verification-report-response/index.js +3 -0
- package/dist/models/v1/sms-verification-report-response/index.js.map +1 -0
- package/dist/models/v1/sms-verification-report-response/sms-verification-report-response.d.ts +34 -0
- package/dist/models/v1/sms-verification-report-response/sms-verification-report-response.js +9 -0
- package/dist/models/v1/sms-verification-report-response/sms-verification-report-response.js.map +1 -0
- package/dist/models/v1/sms-verification-report-response-price/index.d.ts +1 -0
- package/dist/models/v1/sms-verification-report-response-price/index.js +3 -0
- package/dist/models/v1/sms-verification-report-response-price/index.js.map +1 -0
- package/dist/models/v1/sms-verification-report-response-price/sms-verification-report-response-price.d.ts +14 -0
- package/dist/models/v1/sms-verification-report-response-price/sms-verification-report-response-price.js +9 -0
- package/dist/models/v1/sms-verification-report-response-price/sms-verification-report-response-price.js.map +1 -0
- package/dist/models/v1/verification-report-request/index.d.ts +1 -0
- package/dist/models/v1/verification-report-request/index.js +3 -0
- package/dist/models/v1/verification-report-request/index.js.map +1 -0
- package/dist/models/v1/verification-report-request/verification-report-request.d.ts +10 -0
- package/dist/models/v1/verification-report-request/verification-report-request.js +9 -0
- package/dist/models/v1/verification-report-request/verification-report-request.js.map +1 -0
- package/dist/models/v1/verification-report-response/index.d.ts +1 -0
- package/dist/models/v1/verification-report-response/index.js +3 -0
- package/dist/models/v1/verification-report-response/index.js.map +1 -0
- package/dist/models/v1/verification-report-response/verification-report-response.d.ts +10 -0
- package/dist/models/v1/verification-report-response/verification-report-response.js +9 -0
- package/dist/models/v1/verification-report-response/verification-report-response.js.map +1 -0
- package/dist/models/v1/verification-request-event/index.d.ts +1 -0
- package/dist/models/v1/verification-request-event/index.js +3 -0
- package/dist/models/v1/verification-request-event/index.js.map +1 -0
- package/dist/models/v1/verification-request-event/verification-request-event.d.ts +27 -0
- package/dist/models/v1/verification-request-event/verification-request-event.js +9 -0
- package/dist/models/v1/verification-request-event/verification-request-event.js.map +1 -0
- package/dist/models/v1/verification-request-event-price/index.d.ts +1 -0
- package/dist/models/v1/verification-request-event-price/index.js +3 -0
- package/dist/models/v1/verification-request-event-price/index.js.map +1 -0
- package/dist/models/v1/verification-request-event-price/verification-request-event-price.d.ts +15 -0
- package/dist/models/v1/verification-request-event-price/verification-request-event-price.js +9 -0
- package/dist/models/v1/verification-request-event-price/verification-request-event-price.js.map +1 -0
- package/dist/models/v1/verification-request-event-response/index.d.ts +1 -0
- package/dist/models/v1/verification-request-event-response/index.js +3 -0
- package/dist/models/v1/verification-request-event-response/index.js.map +1 -0
- package/dist/models/v1/verification-request-event-response/verification-request-event-response.d.ts +10 -0
- package/dist/models/v1/verification-request-event-response/verification-request-event-response.js +9 -0
- package/dist/models/v1/verification-request-event-response/verification-request-event-response.js.map +1 -0
- package/dist/models/v1/verification-response/index.d.ts +1 -0
- package/dist/models/v1/verification-response/index.js +3 -0
- package/dist/models/v1/verification-response/index.js.map +1 -0
- package/dist/models/v1/verification-response/verification-response.d.ts +10 -0
- package/dist/models/v1/verification-response/verification-response.js +9 -0
- package/dist/models/v1/verification-response/verification-response.js.map +1 -0
- package/dist/models/v1/verification-result-event/index.d.ts +1 -0
- package/dist/models/v1/verification-result-event/index.js +3 -0
- package/dist/models/v1/verification-result-event/index.js.map +1 -0
- package/dist/models/v1/verification-result-event/verification-result-event.d.ts +30 -0
- package/dist/models/v1/verification-result-event/verification-result-event.js +9 -0
- package/dist/models/v1/verification-result-event/verification-result-event.js.map +1 -0
- package/dist/models/v1/verification-result-event-response/index.d.ts +1 -0
- package/dist/models/v1/verification-result-event-response/index.js +3 -0
- package/dist/models/v1/verification-result-event-response/index.js.map +1 -0
- package/dist/models/v1/verification-result-event-response/verification-result-event-response.d.ts +10 -0
- package/dist/models/v1/verification-result-event-response/verification-result-event-response.js +9 -0
- package/dist/models/v1/verification-result-event-response/verification-result-event-response.js.map +1 -0
- package/dist/rest/index.d.ts +1 -0
- package/dist/rest/index.js +18 -0
- package/dist/rest/index.js.map +1 -0
- package/dist/rest/v1/enums.d.ts +1 -0
- package/dist/rest/v1/enums.js +3 -0
- package/dist/rest/v1/enums.js.map +1 -0
- package/dist/rest/v1/fixtures.jest.d.ts +2 -0
- package/dist/rest/v1/fixtures.jest.js +8 -0
- package/dist/rest/v1/fixtures.jest.js.map +1 -0
- package/dist/rest/v1/index.d.ts +4 -0
- package/dist/rest/v1/index.js +21 -0
- package/dist/rest/v1/index.js.map +1 -0
- package/dist/rest/v1/verification-api.d.ts +25 -0
- package/dist/rest/v1/verification-api.js +66 -0
- package/dist/rest/v1/verification-api.js.map +1 -0
- package/dist/rest/v1/verification-status/index.d.ts +2 -0
- package/dist/rest/v1/verification-status/index.js +19 -0
- package/dist/rest/v1/verification-status/index.js.map +1 -0
- package/dist/rest/v1/verification-status/verification-status-api.d.ts +43 -0
- package/dist/rest/v1/verification-status/verification-status-api.jest.fixture.d.ts +17 -0
- package/dist/rest/v1/verification-status/verification-status-api.jest.fixture.js +21 -0
- package/dist/rest/v1/verification-status/verification-status-api.jest.fixture.js.map +1 -0
- package/dist/rest/v1/verification-status/verification-status-api.js +88 -0
- package/dist/rest/v1/verification-status/verification-status-api.js.map +1 -0
- package/dist/rest/v1/verification.d.ts +20 -0
- package/dist/rest/v1/verification.js +22 -0
- package/dist/rest/v1/verification.js.map +1 -0
- package/dist/rest/v1/verifications/index.d.ts +2 -0
- package/dist/rest/v1/verifications/index.js +19 -0
- package/dist/rest/v1/verifications/index.js.map +1 -0
- package/dist/rest/v1/verifications/verifications-api.d.ts +45 -0
- package/dist/rest/v1/verifications/verifications-api.jest.fixture.d.ts +17 -0
- package/dist/rest/v1/verifications/verifications-api.jest.fixture.js +21 -0
- package/dist/rest/v1/verifications/verifications-api.jest.fixture.js.map +1 -0
- package/dist/rest/v1/verifications/verifications-api.js +88 -0
- package/dist/rest/v1/verifications/verifications-api.js.map +1 -0
- package/package.json +37 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verification-report-response.js","sourceRoot":"","sources":["../../../../src/models/v1/verification-report-response/verification-report-response.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { VerificationRequestEvent } from './verification-request-event';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/verification-request-event/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Model: VerificationRequestEvent
|
|
3
|
+
*
|
|
4
|
+
* THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
import { Identity } from '../identity';
|
|
8
|
+
import { VerificationRequestEventPrice } from '../verification-request-event-price';
|
|
9
|
+
export interface VerificationRequestEvent {
|
|
10
|
+
/** The ID of the verification request. */
|
|
11
|
+
id: string;
|
|
12
|
+
/** The type of the event. */
|
|
13
|
+
event: string;
|
|
14
|
+
/** The verification method. */
|
|
15
|
+
method: MethodEnum;
|
|
16
|
+
/** @see Identity */
|
|
17
|
+
identity: Identity;
|
|
18
|
+
/** @see VerificationRequestEventPrice */
|
|
19
|
+
price?: VerificationRequestEventPrice;
|
|
20
|
+
/** Used to pass your own reference in the request for tracking purposes. */
|
|
21
|
+
reference?: string;
|
|
22
|
+
/** Can be used to pass custom data in the request. */
|
|
23
|
+
custom?: string;
|
|
24
|
+
/** List of strings */
|
|
25
|
+
acceptLanguage?: string[];
|
|
26
|
+
}
|
|
27
|
+
export type MethodEnum = 'sms' | 'flashCall' | 'callout';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verification-request-event.js","sourceRoot":"","sources":["../../../../src/models/v1/verification-request-event/verification-request-event.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { VerificationRequestEventPrice } from './verification-request-event-price';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/verification-request-event-price/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Model: VerificationRequestEventPrice
|
|
3
|
+
*
|
|
4
|
+
* THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* The amount of money and currency of the verification request.
|
|
9
|
+
*/
|
|
10
|
+
export interface VerificationRequestEventPrice {
|
|
11
|
+
/** The amount of money of the verification request. */
|
|
12
|
+
amount?: number;
|
|
13
|
+
/** The currency of the price. */
|
|
14
|
+
currencyId?: string;
|
|
15
|
+
}
|
package/dist/models/v1/verification-request-event-price/verification-request-event-price.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verification-request-event-price.js","sourceRoot":"","sources":["../../../../src/models/v1/verification-request-event-price/verification-request-event-price.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { VerificationRequestEventResponse } from './verification-request-event-response';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/verification-request-event-response/index.ts"],"names":[],"mappings":""}
|
package/dist/models/v1/verification-request-event-response/verification-request-event-response.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Model: VerificationRequestEventResponse
|
|
3
|
+
*
|
|
4
|
+
* THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
import { SMSRequestEventResponse } from '../sms-request-event-response';
|
|
8
|
+
import { FlashCallRequestEventResponse } from '../flash-call-request-event-response';
|
|
9
|
+
import { CalloutRequestEventResponse } from '../callout-request-event-response';
|
|
10
|
+
export type VerificationRequestEventResponse = SMSRequestEventResponse | FlashCallRequestEventResponse | CalloutRequestEventResponse;
|
package/dist/models/v1/verification-request-event-response/verification-request-event-response.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Model: VerificationRequestEventResponse
|
|
4
|
+
*
|
|
5
|
+
* THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
//# sourceMappingURL=verification-request-event-response.js.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { VerificationResponse } from './verification-response';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/verification-response/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Model: VerificationResponse
|
|
3
|
+
*
|
|
4
|
+
* THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
import { CalloutVerificationReportResponse } from '../callout-verification-report-response';
|
|
8
|
+
import { FlashcallVerificationReportResponse } from '../flashcall-verification-report-response';
|
|
9
|
+
import { SMSVerificationReportResponse } from '../sms-verification-report-response';
|
|
10
|
+
export type VerificationResponse = SMSVerificationReportResponse | FlashcallVerificationReportResponse | CalloutVerificationReportResponse;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verification-response.js","sourceRoot":"","sources":["../../../../src/models/v1/verification-response/verification-response.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { VerificationResultEvent } from './verification-result-event';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/verification-result-event/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Model: VerificationResultEvent
|
|
3
|
+
*
|
|
4
|
+
* THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
import { Identity } from '../identity';
|
|
8
|
+
export interface VerificationResultEvent {
|
|
9
|
+
/** The ID of the verification request. */
|
|
10
|
+
id: string;
|
|
11
|
+
/** The type of the event. */
|
|
12
|
+
event: string;
|
|
13
|
+
/** The verification method. */
|
|
14
|
+
method: MethodEnum;
|
|
15
|
+
/** @see Identity */
|
|
16
|
+
identity: Identity;
|
|
17
|
+
/** The status of the verification request. */
|
|
18
|
+
status: string;
|
|
19
|
+
/** Displays the reason why a verification has `FAILED`, was `DENIED`, or was `ABORTED`. */
|
|
20
|
+
reason?: ReasonEnum;
|
|
21
|
+
/** The reference ID that was optionally passed together with the verification request. */
|
|
22
|
+
reference?: string;
|
|
23
|
+
/** Free text that the client is sending, used to show if the call/SMS was intercepted or not. */
|
|
24
|
+
source?: SourceEnum;
|
|
25
|
+
/** A custom string that can be provided during a verification request. */
|
|
26
|
+
custom?: string;
|
|
27
|
+
}
|
|
28
|
+
export type MethodEnum = 'sms' | 'flashCall' | 'callout' | 'seamless';
|
|
29
|
+
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
|
+
export type SourceEnum = 'intercepted' | 'manual';
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { VerificationResultEventResponse } from './verification-result-event-response';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/verification-result-event-response/index.ts"],"names":[],"mappings":""}
|
package/dist/models/v1/verification-result-event-response/verification-result-event-response.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Model: VerificationResultEventResponse
|
|
3
|
+
*
|
|
4
|
+
* THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
import { SMSRequestEventResponse } from '../sms-request-event-response';
|
|
8
|
+
import { FlashCallRequestEventResponse } from '../flash-call-request-event-response';
|
|
9
|
+
import { CalloutRequestEventResponse } from '../callout-request-event-response';
|
|
10
|
+
export type VerificationResultEventResponse = SMSRequestEventResponse | FlashCallRequestEventResponse | CalloutRequestEventResponse;
|
package/dist/models/v1/verification-result-event-response/verification-result-event-response.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Model: VerificationResultEventResponse
|
|
4
|
+
*
|
|
5
|
+
* THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
//# sourceMappingURL=verification-result-event-response.js.map
|
package/dist/models/v1/verification-result-event-response/verification-result-event-response.js.map
ADDED
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './v1';
|
|
@@ -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("./v1"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/rest/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uCAAqB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../src/rest/v1/enums.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VerificationsApiFixture = exports.VerificationStatusApiFixture = void 0;
|
|
4
|
+
var verification_status_api_jest_fixture_1 = require("./verification-status/verification-status-api.jest.fixture");
|
|
5
|
+
Object.defineProperty(exports, "VerificationStatusApiFixture", { enumerable: true, get: function () { return verification_status_api_jest_fixture_1.VerificationStatusApiFixture; } });
|
|
6
|
+
var verifications_api_jest_fixture_1 = require("./verifications/verifications-api.jest.fixture");
|
|
7
|
+
Object.defineProperty(exports, "VerificationsApiFixture", { enumerable: true, get: function () { return verifications_api_jest_fixture_1.VerificationsApiFixture; } });
|
|
8
|
+
//# sourceMappingURL=fixtures.jest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fixtures.jest.js","sourceRoot":"","sources":["../../../src/rest/v1/fixtures.jest.ts"],"names":[],"mappings":";;;AAAA,mHAA0G;AAAjG,oJAAA,4BAA4B,OAAA;AACrC,iGAAyF;AAAhF,yIAAA,uBAAuB,OAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
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("./verification-status"), exports);
|
|
18
|
+
__exportStar(require("./verifications"), exports);
|
|
19
|
+
__exportStar(require("./enums"), exports);
|
|
20
|
+
__exportStar(require("./verification"), exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Api, ApiClient, SinchClientParameters, ApplicationCredentials } from '@sinch/sdk-client';
|
|
2
|
+
export declare class VerificationApi implements Api {
|
|
3
|
+
readonly apiName: string;
|
|
4
|
+
client?: ApiClient;
|
|
5
|
+
private sinchClientParameters;
|
|
6
|
+
constructor(sinchClientParameters: SinchClientParameters, apiName: string);
|
|
7
|
+
/**
|
|
8
|
+
* Update the default basePath for the API
|
|
9
|
+
* @param {string} basePath - The new base path to use for the APIs.
|
|
10
|
+
*/
|
|
11
|
+
setBasePath(basePath: string): void;
|
|
12
|
+
/**
|
|
13
|
+
* Updates the application credentials used to authenticate API requests
|
|
14
|
+
* @param {ApplicationCredentials} credentials
|
|
15
|
+
*/
|
|
16
|
+
setApplication(credentials: ApplicationCredentials): void;
|
|
17
|
+
private resetApiClient;
|
|
18
|
+
/**
|
|
19
|
+
* Checks the configuration parameters are ok and initialize the API client. Once initialized, the same instance will
|
|
20
|
+
* be returned for the subsequent API calls (singleton pattern)
|
|
21
|
+
* @return {ApiClient} the API Client or throws an error in case the configuration parameters are not ok
|
|
22
|
+
* @private
|
|
23
|
+
*/
|
|
24
|
+
getSinchClient(): ApiClient;
|
|
25
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VerificationApi = void 0;
|
|
4
|
+
const sdk_client_1 = require("@sinch/sdk-client");
|
|
5
|
+
class VerificationApi {
|
|
6
|
+
constructor(sinchClientParameters, apiName) {
|
|
7
|
+
this.sinchClientParameters = sinchClientParameters;
|
|
8
|
+
this.apiName = apiName;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Update the default basePath for the API
|
|
12
|
+
* @param {string} basePath - The new base path to use for the APIs.
|
|
13
|
+
*/
|
|
14
|
+
setBasePath(basePath) {
|
|
15
|
+
this.client = this.getSinchClient();
|
|
16
|
+
this.client.apiClientOptions.basePath = basePath;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Updates the application credentials used to authenticate API requests
|
|
20
|
+
* @param {ApplicationCredentials} credentials
|
|
21
|
+
*/
|
|
22
|
+
setApplication(credentials) {
|
|
23
|
+
const parametersBackup = { ...this.sinchClientParameters };
|
|
24
|
+
this.sinchClientParameters = {
|
|
25
|
+
...parametersBackup,
|
|
26
|
+
...credentials,
|
|
27
|
+
};
|
|
28
|
+
this.resetApiClient();
|
|
29
|
+
try {
|
|
30
|
+
this.getSinchClient();
|
|
31
|
+
}
|
|
32
|
+
catch (error) {
|
|
33
|
+
console.error('Impossible to assign the new application to the Verification API');
|
|
34
|
+
this.sinchClientParameters = parametersBackup;
|
|
35
|
+
throw error;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
resetApiClient() {
|
|
39
|
+
this.client = undefined;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Checks the configuration parameters are ok and initialize the API client. Once initialized, the same instance will
|
|
43
|
+
* be returned for the subsequent API calls (singleton pattern)
|
|
44
|
+
* @return {ApiClient} the API Client or throws an error in case the configuration parameters are not ok
|
|
45
|
+
* @private
|
|
46
|
+
*/
|
|
47
|
+
getSinchClient() {
|
|
48
|
+
if (!this.client) {
|
|
49
|
+
if (!this.sinchClientParameters.applicationKey || !this.sinchClientParameters.applicationSecret) {
|
|
50
|
+
throw new Error('Invalid configuration for the Verification API: '
|
|
51
|
+
+ '"applicationKey" and "applicationSecret" values must be provided');
|
|
52
|
+
}
|
|
53
|
+
const apiClientOptions = {
|
|
54
|
+
requestPlugins: [
|
|
55
|
+
new sdk_client_1.XTimestampRequest(),
|
|
56
|
+
new sdk_client_1.SigningRequest(this.sinchClientParameters.applicationKey, this.sinchClientParameters.applicationSecret),
|
|
57
|
+
],
|
|
58
|
+
};
|
|
59
|
+
this.client = new sdk_client_1.ApiFetchClient(apiClientOptions);
|
|
60
|
+
this.client.apiClientOptions.basePath = 'https://verification.api.sinch.com';
|
|
61
|
+
}
|
|
62
|
+
return this.client;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
exports.VerificationApi = VerificationApi;
|
|
66
|
+
//# sourceMappingURL=verification-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verification-api.js","sourceRoot":"","sources":["../../../src/rest/v1/verification-api.ts"],"names":[],"mappings":";;;AAAA,kDAM2B;AAE3B,MAAa,eAAe;IAK1B,YAAY,qBAA4C,EAAE,OAAe;QACvE,IAAI,CAAC,qBAAqB,GAAG,qBAAqB,CAAC;QACnD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAED;;;OAGG;IACI,WAAW,CAAC,QAAgB;QACjC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;QACpC,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,QAAQ,GAAG,QAAQ,CAAC;IACnD,CAAC;IAED;;;OAGG;IACI,cAAc,CAAC,WAAmC;QACvD,MAAM,gBAAgB,GAAG,EAAE,GAAG,IAAI,CAAC,qBAAqB,EAAE,CAAC;QAC3D,IAAI,CAAC,qBAAqB,GAAG;YAC3B,GAAG,gBAAgB;YACnB,GAAG,WAAW;SACf,CAAC;QACF,IAAI,CAAC,cAAc,EAAE,CAAC;QACtB,IAAI,CAAC;YACH,IAAI,CAAC,cAAc,EAAE,CAAC;QACxB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,CAAC,KAAK,CAAC,kEAAkE,CAAC,CAAC;YAClF,IAAI,CAAC,qBAAqB,GAAG,gBAAgB,CAAC;YAC9C,MAAM,KAAK,CAAC;QACd,CAAC;IACH,CAAC;IAEO,cAAc;QACpB,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC;IAC1B,CAAC;IAED;;;;;OAKG;IACI,cAAc;QACnB,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;YACjB,IAAI,CAAC,IAAI,CAAC,qBAAqB,CAAC,cAAc,IAAI,CAAC,IAAI,CAAC,qBAAqB,CAAC,iBAAiB,EAAE,CAAC;gBAChG,MAAM,IAAI,KAAK,CAAC,kDAAkD;sBAC9D,kEAAkE,CAAC,CAAC;YAC1E,CAAC;YACD,MAAM,gBAAgB,GAAG;gBACvB,cAAc,EAAE;oBACd,IAAI,8BAAiB,EAAE;oBACvB,IAAI,2BAAc,CAAC,IAAI,CAAC,qBAAqB,CAAC,cAAc,EAAE,IAAI,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,0CAkEC"}
|
|
@@ -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("./verification-status-api"), exports);
|
|
18
|
+
__exportStar(require("./verification-status-api.jest.fixture"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/rest/v1/verification-status/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,yEAAuD"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { SinchClientParameters } from '@sinch/sdk-client';
|
|
2
|
+
import { VerificationReportResponse } from '../../../models';
|
|
3
|
+
import { VerificationApi } from '../verification-api';
|
|
4
|
+
export interface VerificationStatusByIdRequestData {
|
|
5
|
+
/** The ID of the verification. */
|
|
6
|
+
'id': string;
|
|
7
|
+
}
|
|
8
|
+
export interface VerificationStatusByIdentityRequestData {
|
|
9
|
+
/** For type `number` use a [E.164](https://community.sinch.com/t5/Glossary/E-164/ta-p/7537)-compatible phone number. */
|
|
10
|
+
'endpoint': string;
|
|
11
|
+
/** The method of the verification. */
|
|
12
|
+
'method': 'sms' | 'callout' | 'flashCall';
|
|
13
|
+
}
|
|
14
|
+
export interface VerificationStatusByReferenceRequestData {
|
|
15
|
+
/** The custom reference of the verification. */
|
|
16
|
+
'reference': string;
|
|
17
|
+
}
|
|
18
|
+
export declare class VerificationStatusApi extends VerificationApi {
|
|
19
|
+
/**
|
|
20
|
+
* Initialize your interface
|
|
21
|
+
*
|
|
22
|
+
* @param {SinchClientParameters} sinchClientParameters - The parameters used to initialize the API Client.
|
|
23
|
+
*/
|
|
24
|
+
constructor(sinchClientParameters: SinchClientParameters);
|
|
25
|
+
/**
|
|
26
|
+
* Get verification by ID
|
|
27
|
+
* Queries the verification result by sending the verification ID. With this query you can get the result of a verification.
|
|
28
|
+
* @param { VerificationStatusByIdRequestData } data - The data to provide to the API call.
|
|
29
|
+
*/
|
|
30
|
+
getById(data: VerificationStatusByIdRequestData): Promise<VerificationReportResponse>;
|
|
31
|
+
/**
|
|
32
|
+
* Get verification by Identity
|
|
33
|
+
* 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.
|
|
34
|
+
* @param { VerificationStatusByIdentityRequestData } data - The data to provide to the API call.
|
|
35
|
+
*/
|
|
36
|
+
getByIdentity(data: VerificationStatusByIdentityRequestData): Promise<VerificationReportResponse>;
|
|
37
|
+
/**
|
|
38
|
+
* Get verification by Reference
|
|
39
|
+
* Queries the verification result by sending the verification Reference. With this query you can get the result of a verification.
|
|
40
|
+
* @param { VerificationStatusByReferenceRequestData } data - The data to provide to the API call.
|
|
41
|
+
*/
|
|
42
|
+
getByReference(data: VerificationStatusByReferenceRequestData): Promise<VerificationReportResponse>;
|
|
43
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
import { VerificationStatusApi, VerificationStatusByIdRequestData, VerificationStatusByIdentityRequestData, VerificationStatusByReferenceRequestData } from './verification-status-api';
|
|
3
|
+
import { VerificationReportResponse } from '../../../models';
|
|
4
|
+
export declare class VerificationStatusApiFixture implements Partial<Readonly<VerificationStatusApi>> {
|
|
5
|
+
/**
|
|
6
|
+
* Fixture associated to function verificationStatusById
|
|
7
|
+
*/
|
|
8
|
+
getById: jest.Mock<Promise<VerificationReportResponse>, [VerificationStatusByIdRequestData]>;
|
|
9
|
+
/**
|
|
10
|
+
* Fixture associated to function verificationStatusByIdentity
|
|
11
|
+
*/
|
|
12
|
+
getByIdentity: jest.Mock<Promise<VerificationReportResponse>, [VerificationStatusByIdentityRequestData]>;
|
|
13
|
+
/**
|
|
14
|
+
* Fixture associated to function verificationStatusByReference
|
|
15
|
+
*/
|
|
16
|
+
getByReference: jest.Mock<Promise<VerificationReportResponse>, [VerificationStatusByReferenceRequestData]>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VerificationStatusApiFixture = void 0;
|
|
4
|
+
class VerificationStatusApiFixture {
|
|
5
|
+
constructor() {
|
|
6
|
+
/**
|
|
7
|
+
* Fixture associated to function verificationStatusById
|
|
8
|
+
*/
|
|
9
|
+
this.getById = jest.fn();
|
|
10
|
+
/**
|
|
11
|
+
* Fixture associated to function verificationStatusByIdentity
|
|
12
|
+
*/
|
|
13
|
+
this.getByIdentity = jest.fn();
|
|
14
|
+
/**
|
|
15
|
+
* Fixture associated to function verificationStatusByReference
|
|
16
|
+
*/
|
|
17
|
+
this.getByReference = jest.fn();
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.VerificationStatusApiFixture = VerificationStatusApiFixture;
|
|
21
|
+
//# sourceMappingURL=verification-status-api.jest.fixture.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verification-status-api.jest.fixture.js","sourceRoot":"","sources":["../../../../src/rest/v1/verification-status/verification-status-api.jest.fixture.ts"],"names":[],"mappings":";;;AAGA,MAAa,4BAA4B;IAAzC;QAEE;;WAEG;QACI,YAAO,GAC0E,IAAI,CAAC,EAAE,EAAE,CAAC;QAClG;;WAEG;QACI,kBAAa,GAC0E,IAAI,CAAC,EAAE,EAAE,CAAC;QACxG;;WAEG;QACI,mBAAc,GAC0E,IAAI,CAAC,EAAE,EAAE,CAAC;IAC3G,CAAC;CAAA;AAjBD,oEAiBC"}
|