UNPKG

@vonage/verify

Version:

Verify API provides a choice of routes for sending a code to a user. You can use this to confirm a user's contact information, as a second factor when authenticating users, or for step-up authentication.

71 lines (68 loc) 1.95 kB
import { SearchCheckInformationResponse } from './SearchCheckInformationResponse.js'; import { SearchEventInformationResponse } from './SearchEventInformationResponse.js'; import { SearchStatus } from '../../enums/SearchStatus.js'; import '../../enums/SearchCheckStatus.js'; import '../../enums/SearchEventTypes.js'; /** * Represents the response for a Verify search operation. */ type VerifySearchResponse = { /** * The unique identifier for the Verify request. */ request_id: string; /** * The account ID associated with the request. */ account_id: string; /** * The status code indicating the outcome of the search operation. */ status: SearchStatus; /** * The phone number this verification request was used for. */ number: string; /** * The cost incurred for this verification request. */ price: string; /** * The currency code. */ currency: string; /** * The sender ID provided in the Verify request. */ sender_id: string; /** * The date and time the verification request was submitted. */ date_submitted: string; /** * The date and time the verification request was completed. */ date_finalized: string; /** * The time the first verification attempt was made. */ first_event_date: string; /** * The time the last verification attempt was made. */ last_event_date: string; /** * The list of checks made for this verification and their outcomes. */ checks: SearchCheckInformationResponse[]; /** * The events that have taken place to verify this number, and their * unique identifiers. */ events: SearchEventInformationResponse[]; /** * The estimated cost of messages sent for the verification process. */ estimated_price_messages_sent: string; }; export type { VerifySearchResponse };