-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
75 changed files
with
1,200 additions
and
320 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,84 @@ | ||
/** | ||
* Enum representing the status of a verification check. | ||
*/ | ||
export enum CheckStatus { | ||
SUCCESS = '0', | ||
THROTTLED = '1', | ||
MISSING_REQUIRED_PARAM = '2', | ||
INVALID_PARAM = '3', | ||
INVALID_CREDENTIALS = '4', | ||
INTERNAL_ERROR = '5', | ||
FAILED_TO_PROCESS = '6', | ||
BARRED_API_KEY = '8', | ||
PARTNER_QUOTA_EXCEEDED = '9', | ||
CONCURRENT_VERIFICATIONS = '10', | ||
UNSUPPORTED_NETWORK = '15', | ||
CODE_MISMATCH = '16', | ||
INVALID_CODE = '17', | ||
DELIEVERY_FAILED = '19', | ||
PIN_NOT_SUPPORTED = '20', | ||
NON_PREMITTED_DESTINATION = '29', | ||
/** | ||
* The verification check was successful. | ||
*/ | ||
SUCCESS = '0', | ||
|
||
/** | ||
* The verification request was throttled. | ||
*/ | ||
THROTTLED = '1', | ||
|
||
/** | ||
* A required parameter was missing in the verification request. | ||
*/ | ||
MISSING_REQUIRED_PARAM = '2', | ||
|
||
/** | ||
* An invalid parameter was provided in the verification request. | ||
*/ | ||
INVALID_PARAM = '3', | ||
|
||
/** | ||
* Invalid credentials were used in the verification request. | ||
*/ | ||
INVALID_CREDENTIALS = '4', | ||
|
||
/** | ||
* An internal error occurred during the verification process. | ||
*/ | ||
INTERNAL_ERROR = '5', | ||
|
||
/** | ||
* Failed to process the verification request. | ||
*/ | ||
FAILED_TO_PROCESS = '6', | ||
|
||
/** | ||
* The API key used in the verification request is barred. | ||
*/ | ||
BARRED_API_KEY = '8', | ||
|
||
/** | ||
* Partner quota for verifications exceeded. | ||
*/ | ||
PARTNER_QUOTA_EXCEEDED = '9', | ||
|
||
/** | ||
* Concurrent verifications not allowed. | ||
*/ | ||
CONCURRENT_VERIFICATIONS = '10', | ||
|
||
/** | ||
* The network is not supported for verification. | ||
*/ | ||
UNSUPPORTED_NETWORK = '15', | ||
|
||
/** | ||
* Code mismatch in the verification request. | ||
*/ | ||
CODE_MISMATCH = '16', | ||
|
||
/** | ||
* Invalid verification code provided. | ||
*/ | ||
INVALID_CODE = '17', | ||
|
||
/** | ||
* Delivery of the verification failed. | ||
*/ | ||
DELIVERY_FAILED = '19', | ||
|
||
/** | ||
* PIN not supported for verification. | ||
*/ | ||
PIN_NOT_SUPPORTED = '20', | ||
|
||
/** | ||
* Destination not permitted for verification. | ||
*/ | ||
NON_PERMITTED_DESTINATION = '29', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,14 @@ | ||
/** | ||
* Enum representing commands for controlling Verify requests. | ||
*/ | ||
export enum Command { | ||
CANCEL = 'cancel', | ||
TRIGGER_NEXT_EVENT = 'trigger_next_event', | ||
/** | ||
* Command to request cancellation of the verification process. | ||
*/ | ||
CANCEL = 'cancel', | ||
|
||
/** | ||
* Command to trigger the next verification event (if any). | ||
*/ | ||
TRIGGER_NEXT_EVENT = 'trigger_next_event', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,14 @@ | ||
/** | ||
* Enum representing the status of a verification check during Verify search. | ||
*/ | ||
export enum SearchCheckStatus { | ||
INVALID = 'INVALID', | ||
VALID = 'VALID', | ||
/** | ||
* The verification check is invalid. | ||
*/ | ||
INVALID = 'INVALID', | ||
|
||
/** | ||
* The verification check is valid. | ||
*/ | ||
VALID = 'VALID', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,14 @@ | ||
/** | ||
* Enum representing the types of events that can occur during Verify search. | ||
*/ | ||
export enum SearchEventTypes { | ||
TTS = 'TTS', | ||
SMS = 'SMS', | ||
/** | ||
* Text-to-Speech event. | ||
*/ | ||
TTS = 'TTS', | ||
|
||
/** | ||
* Short Message Service (SMS) event. | ||
*/ | ||
SMS = 'SMS', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,29 @@ | ||
/** | ||
* Enum representing the status of a Verify search request. | ||
*/ | ||
export enum SearchStatus { | ||
IN_PROGRESS = 'IN PROGRESS', | ||
SUCCESS = 'SUCCESS', | ||
FAILED = 'FAILED', | ||
EXPIRED = 'EXPIRED', | ||
CANCELLED = 'CANCELLED', | ||
/** | ||
* The search is still in progress. | ||
*/ | ||
IN_PROGRESS = 'IN PROGRESS', | ||
|
||
/** | ||
* Your user entered a correct verification code. | ||
*/ | ||
SUCCESS = 'SUCCESS', | ||
|
||
/** | ||
* Your user entered an incorrect code more than three times. | ||
*/ | ||
FAILED = 'FAILED', | ||
|
||
/** | ||
* Your user did not enter a code before the pin_expiry time elapsed. | ||
*/ | ||
EXPIRED = 'EXPIRED', | ||
|
||
/** | ||
* The verification process was canceled by a Verify control request. | ||
*/ | ||
CANCELLED = 'CANCELLED', | ||
} |
Oops, something went wrong.