@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.
59 lines (56 loc) • 1.76 kB
TypeScript
import { VerifySearchResponse } from './Response/VerifySearchResponse.js';
import { VerifySearchCheck } from './VerifySearchCheck.js';
import './Response/SearchCheckInformationResponse.js';
import '../enums/SearchCheckStatus.js';
import './Response/SearchEventInformationResponse.js';
import '../enums/SearchEventTypes.js';
import '../enums/SearchStatus.js';
import './Response/VerifyCheckResponse.js';
import '../enums/CheckStatus.js';
/**
* Represents the response for a Verify search operation.
*/
type VerifySearch = Omit<VerifySearchResponse, 'checks'> & {
/**
* The unique identifier for the Verify request.
*/
requestId: string;
/**
* The Vonage account ID associated with the request.
*/
accountId: string;
/**
* The sender ID provided in the Verify request.
*/
senderId: string;
/**
* The date and time the verification request was submitted in the
* format 'YYYY-MM-DD HH:MM:SS'.
*/
dateSubmitted: string;
/**
* The date and time the verification request was completed in the
* format 'YYYY-MM-DD HH:MM:SS'.
*/
dateFinalized: string;
/**
* (Optional) The time the first verification attempt was made in the
* format 'YYYY-MM-DD HH:MM:SS'.
*/
firstEventDate?: string;
/**
* (Optional) The time the last verification attempt was made in the
* format 'YYYY-MM-DD HH:MM:SS'.
*/
lastEventDate?: string;
/**
* The list of verification checks made for this verification and
* their outcomes.
*/
checks: VerifySearchCheck[];
/**
* The estimated cost of messages sent during the verification process.
*/
estimatedPriceMessagesSent: string;
};
export type { VerifySearch };