@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,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VerificationStatusApi = void 0;
|
|
4
|
+
const verification_api_1 = require("../verification-api");
|
|
5
|
+
class VerificationStatusApi extends verification_api_1.VerificationApi {
|
|
6
|
+
/**
|
|
7
|
+
* Initialize your interface
|
|
8
|
+
*
|
|
9
|
+
* @param {SinchClientParameters} sinchClientParameters - The parameters used to initialize the API Client.
|
|
10
|
+
*/
|
|
11
|
+
constructor(sinchClientParameters) {
|
|
12
|
+
super(sinchClientParameters, 'VerificationStatusApi');
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Get verification by ID
|
|
16
|
+
* Queries the verification result by sending the verification ID. With this query you can get the result of a verification.
|
|
17
|
+
* @param { VerificationStatusByIdRequestData } data - The data to provide to the API call.
|
|
18
|
+
*/
|
|
19
|
+
async getById(data) {
|
|
20
|
+
this.client = this.getSinchClient();
|
|
21
|
+
const getParams = this.client.extractQueryParams(data, []);
|
|
22
|
+
const headers = {
|
|
23
|
+
'Content-Type': 'application/json',
|
|
24
|
+
'Accept': 'application/json',
|
|
25
|
+
};
|
|
26
|
+
const body = '';
|
|
27
|
+
const path = `/verification/v1/verifications/id/${data['id']}`;
|
|
28
|
+
const basePathUrl = this.client.apiClientOptions.basePath + path;
|
|
29
|
+
const requestOptions = await this.client.prepareOptions(basePathUrl, 'GET', getParams, headers, body || undefined, path);
|
|
30
|
+
const url = this.client.prepareUrl(requestOptions.basePath, requestOptions.queryParams);
|
|
31
|
+
return this.client.processCall({
|
|
32
|
+
url,
|
|
33
|
+
requestOptions,
|
|
34
|
+
apiName: this.apiName,
|
|
35
|
+
operationId: 'VerificationStatusById',
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Get verification by Identity
|
|
40
|
+
* Queries the verification result by sending the verification Identity (usually a phone number) and its method. With this query you can get the result of a verification.
|
|
41
|
+
* @param { VerificationStatusByIdentityRequestData } data - The data to provide to the API call.
|
|
42
|
+
*/
|
|
43
|
+
async getByIdentity(data) {
|
|
44
|
+
this.client = this.getSinchClient();
|
|
45
|
+
const getParams = this.client.extractQueryParams(data, []);
|
|
46
|
+
const headers = {
|
|
47
|
+
'Content-Type': 'application/json',
|
|
48
|
+
'Accept': 'application/json',
|
|
49
|
+
};
|
|
50
|
+
const body = '';
|
|
51
|
+
const path = `/verification/v1/verifications/${data['method']}/number/${data['endpoint']}`;
|
|
52
|
+
const basePathUrl = this.client.apiClientOptions.basePath + path;
|
|
53
|
+
const requestOptions = await this.client.prepareOptions(basePathUrl, 'GET', getParams, headers, body || undefined, path);
|
|
54
|
+
const url = this.client.prepareUrl(requestOptions.basePath, requestOptions.queryParams);
|
|
55
|
+
return this.client.processCall({
|
|
56
|
+
url,
|
|
57
|
+
requestOptions,
|
|
58
|
+
apiName: this.apiName,
|
|
59
|
+
operationId: 'VerificationStatusByIdentity',
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Get verification by Reference
|
|
64
|
+
* Queries the verification result by sending the verification Reference. With this query you can get the result of a verification.
|
|
65
|
+
* @param { VerificationStatusByReferenceRequestData } data - The data to provide to the API call.
|
|
66
|
+
*/
|
|
67
|
+
async getByReference(data) {
|
|
68
|
+
this.client = this.getSinchClient();
|
|
69
|
+
const getParams = this.client.extractQueryParams(data, []);
|
|
70
|
+
const headers = {
|
|
71
|
+
'Content-Type': 'application/json',
|
|
72
|
+
'Accept': 'application/json',
|
|
73
|
+
};
|
|
74
|
+
const body = '';
|
|
75
|
+
const path = `/verification/v1/verifications/reference/${data['reference']}`;
|
|
76
|
+
const basePathUrl = this.client.apiClientOptions.basePath + path;
|
|
77
|
+
const requestOptions = await this.client.prepareOptions(basePathUrl, 'GET', getParams, headers, body || undefined, path);
|
|
78
|
+
const url = this.client.prepareUrl(requestOptions.basePath, requestOptions.queryParams);
|
|
79
|
+
return this.client.processCall({
|
|
80
|
+
url,
|
|
81
|
+
requestOptions,
|
|
82
|
+
apiName: this.apiName,
|
|
83
|
+
operationId: 'VerificationStatusByReference',
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
exports.VerificationStatusApi = VerificationStatusApi;
|
|
88
|
+
//# sourceMappingURL=verification-status-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verification-status-api.js","sourceRoot":"","sources":["../../../../src/rest/v1/verification-status/verification-status-api.ts"],"names":[],"mappings":";;;AAKA,0DAAsD;AAiBtD,MAAa,qBAAsB,SAAQ,kCAAe;IAExD;;;;OAIG;IACH,YAAY,qBAA4C;QACtD,KAAK,CAAC,qBAAqB,EAAE,uBAAuB,CAAC,CAAC;IACxD,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,OAAO,CAAC,IAAuC;QAC1D,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;QACpC,MAAM,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAoC,IAAI,EAAE,EAAa,CAAC,CAAC;QACzG,MAAM,OAAO,GAA0C;YACrD,cAAc,EAAE,kBAAkB;YAClC,QAAQ,EAAE,kBAAkB;SAC7B,CAAC;QAEF,MAAM,IAAI,GAAgB,EAAE,CAAC;QAC7B,MAAM,IAAI,GAAG,qCAAqC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;QAC/D,MAAM,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,QAAQ,GAAG,IAAI,CAAC;QAEjE,MAAM,cAAc,GAChB,MAAM,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,WAAW,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,IAAI,SAAS,EAAE,IAAI,CAAC,CAAC;QACtG,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,cAAc,CAAC,QAAQ,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC;QAExF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAA6B;YACzD,GAAG;YACH,cAAc;YACd,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,WAAW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A0C;YACrD,cAAc,EAAE,kBAAkB;YAClC,QAAQ,EAAE,kBAAkB;SAC7B,CAAC;QAEF,MAAM,IAAI,GAAgB,EAAE,CAAC;QAC7B,MAAM,IAAI,GAAG,4CAA4C,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC;QAC7E,MAAM,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,QAAQ,GAAG,IAAI,CAAC;QAEjE,MAAM,cAAc,GAChB,MAAM,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,WAAW,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,IAAI,SAAS,EAAE,IAAI,CAAC,CAAC;QACtG,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,cAAc,CAAC,QAAQ,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC;QAExF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAA6B;YACzD,GAAG;YACH,cAAc;YACd,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,WAAW,EAAE,+BAA+B;SAC7C,CAAC,CAAC;IACL,CAAC;CAEF;AAlGD,sDAkGC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Domain: verification
|
|
3
|
+
*
|
|
4
|
+
* THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
import { SinchClientParameters } from '@sinch/sdk-client';
|
|
8
|
+
import { VerificationStatusApi } from './verification-status';
|
|
9
|
+
import { VerificationsApi } from './verifications';
|
|
10
|
+
export declare class Verification {
|
|
11
|
+
readonly verificationStatus: VerificationStatusApi;
|
|
12
|
+
readonly verifications: VerificationsApi;
|
|
13
|
+
constructor(params: SinchClientParameters);
|
|
14
|
+
/**
|
|
15
|
+
* Update the default basePath for each API
|
|
16
|
+
*
|
|
17
|
+
* @param {string} basePath - The new base path to use for all the APIs.
|
|
18
|
+
*/
|
|
19
|
+
setBasePath(basePath: string): void;
|
|
20
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Verification = void 0;
|
|
4
|
+
const verification_status_1 = require("./verification-status");
|
|
5
|
+
const verifications_1 = require("./verifications");
|
|
6
|
+
class Verification {
|
|
7
|
+
constructor(params) {
|
|
8
|
+
this.verificationStatus = new verification_status_1.VerificationStatusApi(params);
|
|
9
|
+
this.verifications = new verifications_1.VerificationsApi(params);
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Update the default basePath for each API
|
|
13
|
+
*
|
|
14
|
+
* @param {string} basePath - The new base path to use for all the APIs.
|
|
15
|
+
*/
|
|
16
|
+
setBasePath(basePath) {
|
|
17
|
+
this.verificationStatus.setBasePath(basePath);
|
|
18
|
+
this.verifications.setBasePath(basePath);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.Verification = Verification;
|
|
22
|
+
//# sourceMappingURL=verification.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verification.js","sourceRoot":"","sources":["../../../src/rest/v1/verification.ts"],"names":[],"mappings":";;;AAOA,+DAA8D;AAC9D,mDAAmD;AAEnD,MAAa,YAAY;IAIvB,YAAY,MAA6B;QACvC,IAAI,CAAC,kBAAkB,GAAG,IAAI,2CAAqB,CAAC,MAAM,CAAC,CAAC;QAC5D,IAAI,CAAC,aAAa,GAAG,IAAI,gCAAgB,CAAC,MAAM,CAAC,CAAC;IACpD,CAAC;IAED;;;;OAIG;IACI,WAAW,CAAC,QAAgB;QACjC,IAAI,CAAC,kBAAkB,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;QAC9C,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;IAC3C,CAAC;CACF;AAlBD,oCAkBC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./verifications-api"), exports);
|
|
18
|
+
__exportStar(require("./verifications-api.jest.fixture"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/rest/v1/verifications/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,mEAAiD"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { InitiateVerificationResource, InitiateVerificationResponse, VerificationReportRequest, VerificationResponse } from '../../../models';
|
|
2
|
+
import { SinchClientParameters } from '@sinch/sdk-client';
|
|
3
|
+
import { VerificationApi } from '../verification-api';
|
|
4
|
+
export interface ReportVerificationByIdRequestData {
|
|
5
|
+
/** The ID of the verification. */
|
|
6
|
+
'id': string;
|
|
7
|
+
/** */
|
|
8
|
+
'verificationReportRequestBody': VerificationReportRequest;
|
|
9
|
+
}
|
|
10
|
+
export interface ReportVerificationByIdentityRequestData {
|
|
11
|
+
/** For type `number` use a [E.164](https://community.sinch.com/t5/Glossary/E-164/ta-p/7537)-compatible phone number. */
|
|
12
|
+
'endpoint': string;
|
|
13
|
+
/** */
|
|
14
|
+
'verificationReportRequestBody': VerificationReportRequest;
|
|
15
|
+
}
|
|
16
|
+
export interface StartVerificationRequestData {
|
|
17
|
+
/** */
|
|
18
|
+
'initiateVerificationRequestBody': InitiateVerificationResource;
|
|
19
|
+
}
|
|
20
|
+
export declare class VerificationsApi extends VerificationApi {
|
|
21
|
+
/**
|
|
22
|
+
* Initialize your interface
|
|
23
|
+
*
|
|
24
|
+
* @param {SinchClientParameters} sinchClientParameters - The parameters used to initialize the API Client.
|
|
25
|
+
*/
|
|
26
|
+
constructor(sinchClientParameters: SinchClientParameters);
|
|
27
|
+
/**
|
|
28
|
+
* Report a verification with ID
|
|
29
|
+
* Report the received verification code to verify it, using the Verification ID of the Verification request.
|
|
30
|
+
* @param { ReportVerificationByIdRequestData } data - The data to provide to the API call.
|
|
31
|
+
*/
|
|
32
|
+
reportById(data: ReportVerificationByIdRequestData): Promise<VerificationResponse>;
|
|
33
|
+
/**
|
|
34
|
+
* Report a verification using Identity
|
|
35
|
+
* Report the received verification code to verify it, using the identity of the user (in most cases, the phone number). For an SMS PIN verification or Phone Call verification, this is the OTP code. For flashcalls, this is the CLI.
|
|
36
|
+
* @param { ReportVerificationByIdentityRequestData } data - The data to provide to the API call.
|
|
37
|
+
*/
|
|
38
|
+
reportByIdentity(data: ReportVerificationByIdentityRequestData): Promise<VerificationResponse>;
|
|
39
|
+
/**
|
|
40
|
+
* Start verification
|
|
41
|
+
* This method is used by the mobile and web Verification SDKs to start a verification. It can also be used to request a verification from your backend, by making a request.
|
|
42
|
+
* @param { StartVerificationRequestData } data - The data to provide to the API call.
|
|
43
|
+
*/
|
|
44
|
+
start(data: StartVerificationRequestData): Promise<InitiateVerificationResponse>;
|
|
45
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
import { VerificationsApi, ReportVerificationByIdRequestData, ReportVerificationByIdentityRequestData, StartVerificationRequestData } from './verifications-api';
|
|
3
|
+
import { InitiateVerificationResponse, VerificationResponse } from '../../../models';
|
|
4
|
+
export declare class VerificationsApiFixture implements Partial<Readonly<VerificationsApi>> {
|
|
5
|
+
/**
|
|
6
|
+
* Fixture associated to function reportVerificationById
|
|
7
|
+
*/
|
|
8
|
+
reportById: jest.Mock<Promise<VerificationResponse>, [ReportVerificationByIdRequestData]>;
|
|
9
|
+
/**
|
|
10
|
+
* Fixture associated to function reportVerificationByIdentity
|
|
11
|
+
*/
|
|
12
|
+
reportByIdentity: jest.Mock<Promise<VerificationResponse>, [ReportVerificationByIdentityRequestData]>;
|
|
13
|
+
/**
|
|
14
|
+
* Fixture associated to function startVerification
|
|
15
|
+
*/
|
|
16
|
+
start: jest.Mock<Promise<InitiateVerificationResponse>, [StartVerificationRequestData]>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VerificationsApiFixture = void 0;
|
|
4
|
+
class VerificationsApiFixture {
|
|
5
|
+
constructor() {
|
|
6
|
+
/**
|
|
7
|
+
* Fixture associated to function reportVerificationById
|
|
8
|
+
*/
|
|
9
|
+
this.reportById = jest.fn();
|
|
10
|
+
/**
|
|
11
|
+
* Fixture associated to function reportVerificationByIdentity
|
|
12
|
+
*/
|
|
13
|
+
this.reportByIdentity = jest.fn();
|
|
14
|
+
/**
|
|
15
|
+
* Fixture associated to function startVerification
|
|
16
|
+
*/
|
|
17
|
+
this.start = jest.fn();
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.VerificationsApiFixture = VerificationsApiFixture;
|
|
21
|
+
//# sourceMappingURL=verifications-api.jest.fixture.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verifications-api.jest.fixture.js","sourceRoot":"","sources":["../../../../src/rest/v1/verifications/verifications-api.jest.fixture.ts"],"names":[],"mappings":";;;AAGA,MAAa,uBAAuB;IAApC;QAEE;;WAEG;QACI,eAAU,GACb,IAAI,CAAC,EAAE,EAAE,CAAC;QACd;;WAEG;QACI,qBAAgB,GACiE,IAAI,CAAC,EAAE,EAAE,CAAC;QAClG;;WAEG;QACI,UAAK,GACR,IAAI,CAAC,EAAE,EAAE,CAAC;IAChB,CAAC;CAAA;AAjBD,0DAiBC"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VerificationsApi = void 0;
|
|
4
|
+
const verification_api_1 = require("../verification-api");
|
|
5
|
+
class VerificationsApi extends verification_api_1.VerificationApi {
|
|
6
|
+
/**
|
|
7
|
+
* Initialize your interface
|
|
8
|
+
*
|
|
9
|
+
* @param {SinchClientParameters} sinchClientParameters - The parameters used to initialize the API Client.
|
|
10
|
+
*/
|
|
11
|
+
constructor(sinchClientParameters) {
|
|
12
|
+
super(sinchClientParameters, 'VerificationsApi');
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Report a verification with ID
|
|
16
|
+
* Report the received verification code to verify it, using the Verification ID of the Verification request.
|
|
17
|
+
* @param { ReportVerificationByIdRequestData } data - The data to provide to the API call.
|
|
18
|
+
*/
|
|
19
|
+
async reportById(data) {
|
|
20
|
+
this.client = this.getSinchClient();
|
|
21
|
+
const getParams = this.client.extractQueryParams(data, []);
|
|
22
|
+
const headers = {
|
|
23
|
+
'Content-Type': 'application/json; charset=UTF-8',
|
|
24
|
+
'Accept': 'application/json',
|
|
25
|
+
};
|
|
26
|
+
const body = data['verificationReportRequestBody'] ? JSON.stringify(data['verificationReportRequestBody']) : '{}';
|
|
27
|
+
const path = `/verification/v1/verifications/id/${data['id']}`;
|
|
28
|
+
const basePathUrl = this.client.apiClientOptions.basePath + path;
|
|
29
|
+
const requestOptions = await this.client.prepareOptions(basePathUrl, 'PUT', getParams, headers, body || undefined, path);
|
|
30
|
+
const url = this.client.prepareUrl(requestOptions.basePath, requestOptions.queryParams);
|
|
31
|
+
return this.client.processCall({
|
|
32
|
+
url,
|
|
33
|
+
requestOptions,
|
|
34
|
+
apiName: this.apiName,
|
|
35
|
+
operationId: 'ReportVerificationById',
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Report a verification using Identity
|
|
40
|
+
* Report the received verification code to verify it, using the identity of the user (in most cases, the phone number). For an SMS PIN verification or Phone Call verification, this is the OTP code. For flashcalls, this is the CLI.
|
|
41
|
+
* @param { ReportVerificationByIdentityRequestData } data - The data to provide to the API call.
|
|
42
|
+
*/
|
|
43
|
+
async reportByIdentity(data) {
|
|
44
|
+
this.client = this.getSinchClient();
|
|
45
|
+
const getParams = this.client.extractQueryParams(data, []);
|
|
46
|
+
const headers = {
|
|
47
|
+
'Content-Type': 'application/json; charset=UTF-8',
|
|
48
|
+
'Accept': 'application/json',
|
|
49
|
+
};
|
|
50
|
+
const body = data['verificationReportRequestBody'] ? JSON.stringify(data['verificationReportRequestBody']) : '{}';
|
|
51
|
+
const path = `/verification/v1/verifications/number/${data['endpoint']}`;
|
|
52
|
+
const basePathUrl = this.client.apiClientOptions.basePath + path;
|
|
53
|
+
const requestOptions = await this.client.prepareOptions(basePathUrl, 'PUT', getParams, headers, body || undefined, path);
|
|
54
|
+
const url = this.client.prepareUrl(requestOptions.basePath, requestOptions.queryParams);
|
|
55
|
+
return this.client.processCall({
|
|
56
|
+
url,
|
|
57
|
+
requestOptions,
|
|
58
|
+
apiName: this.apiName,
|
|
59
|
+
operationId: 'ReportVerificationByIdentity',
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Start verification
|
|
64
|
+
* This method is used by the mobile and web Verification SDKs to start a verification. It can also be used to request a verification from your backend, by making a request.
|
|
65
|
+
* @param { StartVerificationRequestData } data - The data to provide to the API call.
|
|
66
|
+
*/
|
|
67
|
+
async start(data) {
|
|
68
|
+
this.client = this.getSinchClient();
|
|
69
|
+
const getParams = this.client.extractQueryParams(data, []);
|
|
70
|
+
const headers = {
|
|
71
|
+
'Content-Type': 'application/json; charset=UTF-8',
|
|
72
|
+
'Accept': 'application/json',
|
|
73
|
+
};
|
|
74
|
+
const body = data['initiateVerificationRequestBody'] ? JSON.stringify(data['initiateVerificationRequestBody']) : '{}';
|
|
75
|
+
const path = '/verification/v1/verifications';
|
|
76
|
+
const basePathUrl = this.client.apiClientOptions.basePath + path;
|
|
77
|
+
const requestOptions = await this.client.prepareOptions(basePathUrl, 'POST', getParams, headers, body || undefined, path);
|
|
78
|
+
const url = this.client.prepareUrl(requestOptions.basePath, requestOptions.queryParams);
|
|
79
|
+
return this.client.processCall({
|
|
80
|
+
url,
|
|
81
|
+
requestOptions,
|
|
82
|
+
apiName: this.apiName,
|
|
83
|
+
operationId: 'StartVerification',
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
exports.VerificationsApi = VerificationsApi;
|
|
88
|
+
//# sourceMappingURL=verifications-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verifications-api.js","sourceRoot":"","sources":["../../../../src/rest/v1/verifications/verifications-api.ts"],"names":[],"mappings":";;;AAUA,0DAAsD;AAmBtD,MAAa,gBAAiB,SAAQ,kCAAe;IAEnD;;;;OAIG;IACH,YAAY,qBAA4C;QACtD,KAAK,CAAC,qBAAqB,EAAE,kBAAkB,CAAC,CAAC;IACnD,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,UAAU,CAAC,IAAuC;QAC7D,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;QACpC,MAAM,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAoC,IAAI,EAAE,EAAa,CAAC,CAAC;QACzG,MAAM,OAAO,GAA0C;YACrD,cAAc,EAAE,iCAA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AAM,CAAC,cAAc,CAAC,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,IAAI,SAAS,EAAE,IAAI,CAAC,CAAC;QACvG,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,cAAc,CAAC,QAAQ,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC;QAExF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAA+B;YAC3D,GAAG;YACH,cAAc;YACd,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,WAAW,EAAE,mBAAmB;SACjC,CAAC,CAAC;IACL,CAAC;CAEF;AArGD,4CAqGC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@sinch/verification",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"description": "Sinch Verification API",
|
|
5
|
+
"homepage": "",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": ""
|
|
9
|
+
},
|
|
10
|
+
"license": "Apache-2.0",
|
|
11
|
+
"author": "Sinch",
|
|
12
|
+
"main": "dist/index.js",
|
|
13
|
+
"types": "dist/index.d.ts",
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"import": "./dist/index.js",
|
|
17
|
+
"require": "./dist/index.js"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"directories": {
|
|
21
|
+
"src": "dist",
|
|
22
|
+
"test": "tests"
|
|
23
|
+
},
|
|
24
|
+
"files": ["/dist"],
|
|
25
|
+
"scripts": {
|
|
26
|
+
"build": "yarn run clean && yarn run compile",
|
|
27
|
+
"clean": "rimraf dist tsconfig.tsbuildinfo tsconfig.build.tsbuildinfo",
|
|
28
|
+
"compile": "tsc -p tsconfig.build.json && tsc -p tsconfig.tests.json && rimraf dist/tests tsconfig.build.tsbuildinfo"
|
|
29
|
+
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"@sinch/sdk-client": "^0.0.0"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {},
|
|
34
|
+
"publishConfig": {
|
|
35
|
+
"directory": "dist"
|
|
36
|
+
}
|
|
37
|
+
}
|