@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
package/README.md
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
# Sinch Verification SDK for Node.js
|
|
2
|
+
|
|
3
|
+
This package contains the Sinch Verification SDK for Node.js for use with [Sinch APIs](https://developers.sinch.com/). To use it, you will need a Sinch account. Please [sign up](https://dashboard.sinch.com/signup) or [log in](https://dashboard.sinch.com/login) if you already have one.
|
|
4
|
+
|
|
5
|
+
<span style="color:red; font-weight:bold">Warning:</span>
|
|
6
|
+
**This SDK is currently available for preview purposes only. It should not be used in production environments.**
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## Installation
|
|
10
|
+
|
|
11
|
+
We recommend to use this SDK as part of the `@sinch/sdk-core` package as it will take care about the authentication plugins to use.
|
|
12
|
+
|
|
13
|
+
However, it's still possible to use this SDK standalone is you need to access the Verification API only.
|
|
14
|
+
|
|
15
|
+
### With NPM
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
npm install @sinch/verification
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
### With Yarn
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
yarn add @sinch/verification
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Usage
|
|
28
|
+
|
|
29
|
+
### Credentials
|
|
30
|
+
|
|
31
|
+
The `Verification` API uses the Application Signed Request to authenticate against the server. You will need to provide the following credentials:
|
|
32
|
+
- applicationKey: one of the application keys that can be found in [Apps section](https://dashboard.sinch.com/verification/apps) of the Verification dashboard
|
|
33
|
+
- applicationSecret: the corresponding secret that can be found at the same place
|
|
34
|
+
|
|
35
|
+
### As part of the Sinch SDK
|
|
36
|
+
|
|
37
|
+
If you are using this SDK as part of the Sinch SDK (`@sinch/sdk-core`) you can access it as the `verification` property of the client that you would have instantiated.
|
|
38
|
+
|
|
39
|
+
```typescript
|
|
40
|
+
import {
|
|
41
|
+
InitiateVerificationResponse,
|
|
42
|
+
StartVerificationRequestData,
|
|
43
|
+
SinchClient,
|
|
44
|
+
SinchClientParameters,
|
|
45
|
+
} from '@sinch/sdk-core';
|
|
46
|
+
|
|
47
|
+
const credentials: SinchClientParameters = {
|
|
48
|
+
applicationKey: 'APPLICATION_ID',
|
|
49
|
+
applicationSecret: 'APPLICATION_SECRET',
|
|
50
|
+
};
|
|
51
|
+
const sinch = new SinchClient(credentials);
|
|
52
|
+
|
|
53
|
+
const requestData: StartVerificationRequestData = {
|
|
54
|
+
InitiateVerificationResource: {
|
|
55
|
+
identity: {
|
|
56
|
+
type: 'number',
|
|
57
|
+
endpoint: '+17813334444',
|
|
58
|
+
},
|
|
59
|
+
method: 'sms',
|
|
60
|
+
},
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
// Access the 'verification' domain registered on the Sinch Client
|
|
64
|
+
const verificationInitResponse: InitiateVerificationResponse
|
|
65
|
+
= await sinch.verification.verifications.start(requestData);
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### Standalone
|
|
69
|
+
|
|
70
|
+
The SDK can be used standalone if you need to use only the Verification APIs. You will need to import the `XTimestampRequest` and `SigningRequest` plugins from the `@sinch/sdk-client` package to manage the authentication.
|
|
71
|
+
|
|
72
|
+
```typescript
|
|
73
|
+
import {
|
|
74
|
+
SinchClientParameters
|
|
75
|
+
} from '@sinch/sdk-client';
|
|
76
|
+
import {
|
|
77
|
+
InitiateVerificationResponse,
|
|
78
|
+
StartVerificationRequestData,
|
|
79
|
+
Verification,
|
|
80
|
+
} from '@sinch/verification';
|
|
81
|
+
|
|
82
|
+
const credentials: SinchClientParameters = {
|
|
83
|
+
applicationKey: 'APPLICATION_ID',
|
|
84
|
+
applicationSecret: 'APPLICATION_SECRET',
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
// Declare the 'verification' in a standalone way
|
|
88
|
+
const verification = new Verification(credentials);
|
|
89
|
+
|
|
90
|
+
const requestData: StartVerificationRequestData = {
|
|
91
|
+
InitiateVerificationResource: {
|
|
92
|
+
identity: {
|
|
93
|
+
type: 'number',
|
|
94
|
+
endpoint: '+17813334444',
|
|
95
|
+
},
|
|
96
|
+
method: 'sms',
|
|
97
|
+
},
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
// Use the standalone declaration of the 'verification' domain
|
|
101
|
+
const verificationInitResponse: InitiateVerificationResponse
|
|
102
|
+
= await verification.verifications.start(requestData);
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
## Promises
|
|
106
|
+
|
|
107
|
+
All the methods that interact with the Sinch APIs use Promises. You can use `await` in an `async` method to wait for the response or you can resolve them yourself with `then()` / `catch()`.
|
|
108
|
+
|
|
109
|
+
```typescript
|
|
110
|
+
// Method 1: Wait for the Promise to complete
|
|
111
|
+
let verificationInitResponse: InitiateVerificationResponse;
|
|
112
|
+
try {
|
|
113
|
+
verificationInitResponse = await sinch.verification.verifications.start(requestData);
|
|
114
|
+
console.log(`Verification ID = ${response.id}`);
|
|
115
|
+
} catch (error: any) {
|
|
116
|
+
console.error(`ERROR ${error.statusCode}: Impossible to start the verification for the number ${requestData.InitiateVerificationResource.identity.endpoint}`);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
// Method 2: Resolve the promise
|
|
120
|
+
sinch.verification.verifications.start(requestData)
|
|
121
|
+
.then(response => console.log(`Verification ID = ${response.id}`))
|
|
122
|
+
.catch(error => console.error(`ERROR ${error.statusCode}: Impossible to start the verification for the number ${requestData.InitiateVerificationResource.identity.endpoint}`));
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
## Contact
|
|
126
|
+
Developer Experience team: [devexp@sinch.com](mailto:devexp@sinch.com)
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -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("./models"), exports);
|
|
18
|
+
__exportStar(require("./rest"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,yCAAuB"}
|
|
@@ -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/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uCAAqB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Model: CalloutInitiateVerificationResponse
|
|
3
|
+
*
|
|
4
|
+
* THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
import { LinksObject } from '../links-object';
|
|
8
|
+
export interface CalloutInitiateVerificationResponse {
|
|
9
|
+
/** Verification identifier used to query for status. */
|
|
10
|
+
id?: string;
|
|
11
|
+
/** The value of the method used for the Verification. For Phone Call Verifications, this will always be `callout`. */
|
|
12
|
+
method?: MethodEnum;
|
|
13
|
+
/** @see LinksObject */
|
|
14
|
+
_links?: LinksObject;
|
|
15
|
+
}
|
|
16
|
+
export type MethodEnum = 'callout';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Model: CalloutInitiateVerificationResponse
|
|
4
|
+
*
|
|
5
|
+
* THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
//# sourceMappingURL=callout-initiate-verification-response.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"callout-initiate-verification-response.js","sourceRoot":"","sources":["../../../../src/models/v1/callout-initiate-verification-response/callout-initiate-verification-response.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { CalloutInitiateVerificationResponse } from './callout-initiate-verification-response';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/callout-initiate-verification-response/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Model: CalloutRequestEventResponse
|
|
3
|
+
*
|
|
4
|
+
* THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
import { CalloutRequestEventResponseCallout } from '../callout-request-event-response-callout';
|
|
8
|
+
export interface CalloutRequestEventResponse {
|
|
9
|
+
/** Determines whether the verification can be executed. */
|
|
10
|
+
action?: ActionEnum;
|
|
11
|
+
/** @see CalloutRequestEventResponseCallout */
|
|
12
|
+
callout?: CalloutRequestEventResponseCallout;
|
|
13
|
+
}
|
|
14
|
+
export type ActionEnum = 'allow' | 'deny';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"callout-request-event-response.js","sourceRoot":"","sources":["../../../../src/models/v1/callout-request-event-response/callout-request-event-response.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { CalloutRequestEventResponse } from './callout-request-event-response';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/callout-request-event-response/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Model: CalloutRequestEventResponseCallout
|
|
3
|
+
*
|
|
4
|
+
* THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
import { CalloutRequestEventResponseCalloutSpeech } from '../callout-request-event-response-callout-speech';
|
|
8
|
+
export interface CalloutRequestEventResponseCallout {
|
|
9
|
+
/** The Phone Call PIN that should be entered by the user. Sinch servers automatically generate PIN codes for Phone Call verification. If you want to set your own code, you can specify it in the response to the Verification Request Event. */
|
|
10
|
+
code?: string;
|
|
11
|
+
/** @see CalloutRequestEventResponseCalloutSpeech */
|
|
12
|
+
speech?: CalloutRequestEventResponseCalloutSpeech;
|
|
13
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Model: CalloutRequestEventResponseCallout
|
|
4
|
+
*
|
|
5
|
+
* THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
//# sourceMappingURL=callout-request-event-response-callout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"callout-request-event-response-callout.js","sourceRoot":"","sources":["../../../../src/models/v1/callout-request-event-response-callout/callout-request-event-response-callout.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { CalloutRequestEventResponseCallout } from './callout-request-event-response-callout';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/callout-request-event-response-callout/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Model: CalloutRequestEventResponseCalloutSpeech
|
|
3
|
+
*
|
|
4
|
+
* THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* An object defining various properties for the text-to-speech message.
|
|
9
|
+
*/
|
|
10
|
+
export interface CalloutRequestEventResponseCalloutSpeech {
|
|
11
|
+
/** Indicates the language that should be used for the text-to-speech message. Currently, only `en-US` is supported. */
|
|
12
|
+
locale?: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Model: CalloutRequestEventResponseCalloutSpeech
|
|
4
|
+
*
|
|
5
|
+
* THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
//# sourceMappingURL=callout-request-event-response-callout-speech.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"callout-request-event-response-callout-speech.js","sourceRoot":"","sources":["../../../../src/models/v1/callout-request-event-response-callout-speech/callout-request-event-response-callout-speech.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { CalloutRequestEventResponseCalloutSpeech } from './callout-request-event-response-callout-speech';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/callout-request-event-response-callout-speech/index.ts"],"names":[],"mappings":""}
|
package/dist/models/v1/callout-verification-report-request/callout-verification-report-request.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Model: CalloutVerificationReportRequest
|
|
3
|
+
*
|
|
4
|
+
* THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
import { CalloutVerificationReportRequestCallout } from '../callout-verification-report-request-callout';
|
|
8
|
+
export interface CalloutVerificationReportRequest {
|
|
9
|
+
/** The type of verification. */
|
|
10
|
+
method: MethodEnum;
|
|
11
|
+
/** @see CalloutVerificationReportRequestCallout */
|
|
12
|
+
callout: CalloutVerificationReportRequestCallout;
|
|
13
|
+
}
|
|
14
|
+
export type MethodEnum = 'callout';
|
package/dist/models/v1/callout-verification-report-request/callout-verification-report-request.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Model: CalloutVerificationReportRequest
|
|
4
|
+
*
|
|
5
|
+
* THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
//# sourceMappingURL=callout-verification-report-request.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"callout-verification-report-request.js","sourceRoot":"","sources":["../../../../src/models/v1/callout-verification-report-request/callout-verification-report-request.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { CalloutVerificationReportRequest } from './callout-verification-report-request';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/callout-verification-report-request/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Model: CalloutVerificationReportRequestCallout
|
|
3
|
+
*
|
|
4
|
+
* THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* A configuration object containing settings specific to Phone Call verifications.
|
|
9
|
+
*/
|
|
10
|
+
export interface CalloutVerificationReportRequestCallout {
|
|
11
|
+
/** The code which was received by the user submitting the Phone Call verification. */
|
|
12
|
+
code?: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Model: CalloutVerificationReportRequestCallout
|
|
4
|
+
*
|
|
5
|
+
* THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
//# sourceMappingURL=callout-verification-report-request-callout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"callout-verification-report-request-callout.js","sourceRoot":"","sources":["../../../../src/models/v1/callout-verification-report-request-callout/callout-verification-report-request-callout.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { CalloutVerificationReportRequestCallout } from './callout-verification-report-request-callout';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/callout-verification-report-request-callout/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Model: CalloutVerificationReportResponse
|
|
3
|
+
*
|
|
4
|
+
* THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
import { FlashcallVerificationReportResponsePrice } from '../flashcall-verification-report-response-price';
|
|
8
|
+
import { VerificationStatusEnum } from '../enums';
|
|
9
|
+
import { Identity } from '../identity';
|
|
10
|
+
export interface CalloutVerificationReportResponse {
|
|
11
|
+
/** The unique ID of the verification request. */
|
|
12
|
+
id?: string;
|
|
13
|
+
/** The method of the verification request. This will always be `callout`. */
|
|
14
|
+
method?: MethodEnum;
|
|
15
|
+
/** The status of the verification request. */
|
|
16
|
+
status?: VerificationStatusEnum;
|
|
17
|
+
/** Displays the reason why a verification has `FAILED`, was `DENIED`, or was `ABORTED`. */
|
|
18
|
+
reason?: ReasonEnum;
|
|
19
|
+
/** Shows whether the call is complete or not. */
|
|
20
|
+
callComplete?: boolean;
|
|
21
|
+
/** The reference ID that was optionally passed together with the verification request. */
|
|
22
|
+
reference?: string;
|
|
23
|
+
/** @see FlashcallVerificationReportResponsePrice */
|
|
24
|
+
price?: FlashcallVerificationReportResponsePrice;
|
|
25
|
+
/** */
|
|
26
|
+
identity?: Identity;
|
|
27
|
+
/** */
|
|
28
|
+
countryId?: string;
|
|
29
|
+
/** */
|
|
30
|
+
verificationTimestamp?: Date;
|
|
31
|
+
/** */
|
|
32
|
+
callResult?: string;
|
|
33
|
+
}
|
|
34
|
+
export type MethodEnum = 'callout';
|
|
35
|
+
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';
|
package/dist/models/v1/callout-verification-report-response/callout-verification-report-response.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Model: CalloutVerificationReportResponse
|
|
4
|
+
*
|
|
5
|
+
* THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
//# sourceMappingURL=callout-verification-report-response.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"callout-verification-report-response.js","sourceRoot":"","sources":["../../../../src/models/v1/callout-verification-report-response/callout-verification-report-response.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { CalloutVerificationReportResponse } from './callout-verification-report-response';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/callout-verification-report-response/index.ts"],"names":[],"mappings":""}
|
package/dist/models/v1/data-initiate-verification-response/data-initiate-verification-response.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Model: DataInitiateVerificationResponse
|
|
3
|
+
*
|
|
4
|
+
* THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
import { DataInitiateVerificationResponseSeamless } from '../data-initiate-verification-response-seamless';
|
|
8
|
+
import { LinksObject } from '../links-object';
|
|
9
|
+
export interface DataInitiateVerificationResponse {
|
|
10
|
+
/** Verification identifier used to query for status. */
|
|
11
|
+
id: string;
|
|
12
|
+
/** The value of the method used for the Verification. For Data Verifications, this will always be `seamless`. */
|
|
13
|
+
method?: MethodEnum;
|
|
14
|
+
/** @see DataInitiateVerificationResponseSeamless */
|
|
15
|
+
seamless?: DataInitiateVerificationResponseSeamless;
|
|
16
|
+
/** @see LinksObject */
|
|
17
|
+
_links?: LinksObject;
|
|
18
|
+
}
|
|
19
|
+
export type MethodEnum = 'seamless';
|
package/dist/models/v1/data-initiate-verification-response/data-initiate-verification-response.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Model: DataInitiateVerificationResponse
|
|
4
|
+
*
|
|
5
|
+
* THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
//# sourceMappingURL=data-initiate-verification-response.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-initiate-verification-response.js","sourceRoot":"","sources":["../../../../src/models/v1/data-initiate-verification-response/data-initiate-verification-response.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { DataInitiateVerificationResponse } from './data-initiate-verification-response';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/data-initiate-verification-response/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Model: DataInitiateVerificationResponseSeamless
|
|
3
|
+
*
|
|
4
|
+
* THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* The response contains the target URI.
|
|
9
|
+
*/
|
|
10
|
+
export interface DataInitiateVerificationResponseSeamless {
|
|
11
|
+
/** The target URI. */
|
|
12
|
+
targetUri?: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Model: DataInitiateVerificationResponseSeamless
|
|
4
|
+
*
|
|
5
|
+
* THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
//# sourceMappingURL=data-initiate-verification-response-seamless.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-initiate-verification-response-seamless.js","sourceRoot":"","sources":["../../../../src/models/v1/data-initiate-verification-response-seamless/data-initiate-verification-response-seamless.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { DataInitiateVerificationResponseSeamless } from './data-initiate-verification-response-seamless';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/data-initiate-verification-response-seamless/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type { MethodEnum as CalloutInitiateVerificationResponseMethodEnum, } from './callout-initiate-verification-response/callout-initiate-verification-response';
|
|
2
|
+
export type { ActionEnum as CalloutRequestEventResponseActionEnum, } from './callout-request-event-response/callout-request-event-response';
|
|
3
|
+
export type { MethodEnum as CalloutVerificationReportRequestMethodEnum, } from './callout-verification-report-request/callout-verification-report-request';
|
|
4
|
+
export type { MethodEnum as CalloutVerificationReportResponseMethodEnum, ReasonEnum as CalloutVerificationReportResponseReasonEnum, } from './callout-verification-report-response/callout-verification-report-response';
|
|
5
|
+
export type { MethodEnum as DataInitiateVerificationResponseMethodEnum, } from './data-initiate-verification-response/data-initiate-verification-response';
|
|
6
|
+
export type { MethodEnum as FlashCallInitiateVerificationResponseMethodEnum, } from './flash-call-initiate-verification-response/flash-call-initiate-verification-response';
|
|
7
|
+
export type { ActionEnum as FlashCallRequestEventResponseActionEnum, } from './flash-call-request-event-response/flash-call-request-event-response';
|
|
8
|
+
export type { MethodEnum as FlashcallVerificationReportRequestMethodEnum, } from './flashcall-verification-report-request/flashcall-verification-report-request';
|
|
9
|
+
export type { MethodEnum as FlashcallVerificationReportResponseMethodEnum, ReasonEnum as FlashcallVerificationReportResponseReasonEnum, SourceEnum as FlashcallVerificationReportResponseSourceEnum, } from './flashcall-verification-report-response/flashcall-verification-report-response';
|
|
10
|
+
export type { TypeEnum as IdentityTypeEnum } from './identity/identity';
|
|
11
|
+
export type { MethodEnum as InitiateVerificationResourceMethodEnum, } from './initiate-verification-resource/initiate-verification-resource';
|
|
12
|
+
export type { MethodEnum as SMSInitiateVerificationResponseMethodEnum, } from './sms-initiate-verification-response/sms-initiate-verification-response';
|
|
13
|
+
export type { ActionEnum as SMSRequestEventResponseActionEnum, } from './sms-request-event-response/sms-request-event-response';
|
|
14
|
+
export type { MethodEnum as SMSVerificationReportResponseMethodEnum, ReasonEnum as SMSVerificationReportResponseReasonEnum, SourceEnum as SMSVerificationReportResponseSourceEnum, } from './sms-verification-report-response/sms-verification-report-response';
|
|
15
|
+
export type { MethodEnum as SmsVerificationReportRequestMethodEnum, } from './sms-verification-report-request/sms-verification-report-request';
|
|
16
|
+
export type { MethodEnum as VerificationRequestEventMethodEnum, } from './verification-request-event/verification-request-event';
|
|
17
|
+
export type { MethodEnum as VerificationResultEventMethodEnum, ReasonEnum as VerificationResultEventReasonEnum, SourceEnum as VerificationResultEventSourceEnum, } from './verification-result-event/verification-result-event';
|
|
18
|
+
export type VerificationStatusEnum = 'PENDING' | 'SUCCESSFUL' | 'FAIL' | 'DENIED' | 'ABORTED' | 'ERROR';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../src/models/v1/enums.ts"],"names":[],"mappings":""}
|