@sinch/verification 0.0.4 → 1.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 +8 -13
- package/dist/index.d.ts +2 -1
- package/dist/index.js +15 -1
- package/dist/index.js.map +1 -1
- package/dist/models/v1/callout-request-event-response/callout-request-event-response.d.ts +1 -1
- package/dist/models/v1/callout-verification-report-response/callout-verification-report-response.d.ts +6 -14
- package/dist/models/v1/callout-verification-status-response/callout-verification-status-response.d.ts +27 -0
- package/dist/models/v1/callout-verification-status-response/callout-verification-status-response.js +3 -0
- package/dist/models/v1/callout-verification-status-response/callout-verification-status-response.js.map +1 -0
- package/dist/models/v1/callout-verification-status-response/index.d.ts +1 -0
- package/dist/models/v1/callout-verification-status-response/index.js +18 -0
- package/dist/models/v1/callout-verification-status-response/index.js.map +1 -0
- package/dist/models/v1/enums.d.ts +5 -7
- package/dist/models/v1/flashcall-request-event-response/flashcall-request-event-response.d.ts +1 -1
- package/dist/models/v1/flashcall-verification-report-response/flashcall-verification-report-response.d.ts +3 -14
- package/dist/models/v1/flashcall-verification-status-response/flashcall-verification-status-response.d.ts +29 -0
- package/dist/models/v1/flashcall-verification-status-response/flashcall-verification-status-response.js +3 -0
- package/dist/models/v1/flashcall-verification-status-response/flashcall-verification-status-response.js.map +1 -0
- package/dist/models/v1/flashcall-verification-status-response/index.d.ts +1 -0
- package/dist/models/v1/flashcall-verification-status-response/index.js +18 -0
- package/dist/models/v1/flashcall-verification-status-response/index.js.map +1 -0
- package/dist/models/v1/helper.d.ts +17 -12
- package/dist/models/v1/helper.js +28 -12
- package/dist/models/v1/helper.js.map +1 -1
- package/dist/models/v1/index.d.ts +7 -1
- package/dist/models/v1/index.js +7 -1
- package/dist/models/v1/index.js.map +1 -1
- package/dist/models/v1/requests/index.d.ts +2 -0
- package/dist/models/v1/requests/index.js +19 -0
- package/dist/models/v1/requests/index.js.map +1 -0
- package/dist/models/v1/requests/verification-status/verification-status-request-data.d.ts +14 -0
- package/dist/models/v1/requests/verification-status/verification-status-request-data.js +3 -0
- package/dist/models/v1/requests/verification-status/verification-status-request-data.js.map +1 -0
- package/dist/models/v1/requests/verifications/verifications-request-data.d.ts +51 -0
- package/dist/models/v1/{verification-report-response/verification-report-response.js → requests/verifications/verifications-request-data.js} +1 -1
- package/dist/models/v1/requests/verifications/verifications-request-data.js.map +1 -0
- package/dist/models/v1/sms-request-event-response/sms-request-event-response.d.ts +1 -1
- package/dist/models/v1/sms-verification-report-response/sms-verification-report-response.d.ts +2 -11
- package/dist/models/v1/sms-verification-status-response/index.d.ts +1 -0
- package/dist/models/v1/sms-verification-status-response/index.js +18 -0
- package/dist/models/v1/sms-verification-status-response/index.js.map +1 -0
- package/dist/models/v1/sms-verification-status-response/sms-verification-status-response.d.ts +25 -0
- package/dist/models/v1/sms-verification-status-response/sms-verification-status-response.js +3 -0
- package/dist/models/v1/sms-verification-status-response/sms-verification-status-response.js.map +1 -0
- package/dist/models/v1/start-flashcall-verification-response/start-flashcall-verification-response.d.ts +1 -1
- package/dist/models/v1/start-seamless-verification-response/start-seamless-verification-response.d.ts +3 -0
- package/dist/models/v1/start-verification-request/index.d.ts +1 -1
- package/dist/models/v1/start-verification-request/start-verification-request.d.ts +30 -0
- package/dist/models/v1/verification-price-call/index.d.ts +1 -0
- package/dist/models/v1/verification-price-call/index.js +18 -0
- package/dist/models/v1/verification-price-call/index.js.map +1 -0
- package/dist/models/v1/verification-price-call/verification-price-call.d.ts +12 -0
- package/dist/models/v1/verification-price-call/verification-price-call.js +3 -0
- package/dist/models/v1/verification-price-call/verification-price-call.js.map +1 -0
- package/dist/models/v1/verification-price-sms/index.d.ts +1 -0
- package/dist/models/v1/verification-price-sms/index.js +18 -0
- package/dist/models/v1/verification-price-sms/index.js.map +1 -0
- package/dist/models/v1/verification-price-sms/verification-price-sms.d.ts +8 -0
- package/dist/models/v1/verification-price-sms/verification-price-sms.js +3 -0
- package/dist/models/v1/verification-price-sms/verification-price-sms.js.map +1 -0
- package/dist/models/v1/verification-report-response-price/index.d.ts +1 -1
- package/dist/models/v1/verification-result-event/verification-result-event.d.ts +1 -3
- package/dist/models/v1/verification-status-response/index.d.ts +1 -0
- package/dist/models/v1/verification-status-response/index.js.map +1 -0
- package/dist/models/v1/verification-status-response/verification-status-response.d.ts +4 -0
- package/dist/models/v1/verification-status-response/verification-status-response.js +3 -0
- package/dist/models/v1/verification-status-response/verification-status-response.js.map +1 -0
- package/dist/rest/v1/verification-domain-api.d.ts +3 -3
- package/dist/rest/v1/verification-domain-api.js +13 -16
- package/dist/rest/v1/verification-domain-api.js.map +1 -1
- package/dist/rest/v1/verification-service.d.ts +17 -4
- package/dist/rest/v1/verification-service.js +19 -6
- package/dist/rest/v1/verification-service.js.map +1 -1
- package/dist/rest/v1/verification-status/verification-status-api.d.ts +4 -18
- package/dist/rest/v1/verification-status/verification-status-api.jest.fixture.d.ts +5 -5
- package/dist/rest/v1/verification-status/verification-status-api.jest.fixture.js.map +1 -1
- package/dist/rest/v1/verification-status/verification-status-api.js +6 -6
- package/dist/rest/v1/verification-status/verification-status-api.js.map +1 -1
- package/dist/rest/v1/verifications/verifications-api.d.ts +3 -50
- package/dist/rest/v1/verifications/verifications-api.jest.fixture.d.ts +2 -2
- package/dist/rest/v1/verifications/verifications-api.jest.fixture.js.map +1 -1
- package/dist/rest/v1/verifications/verifications-api.js +42 -22
- package/dist/rest/v1/verifications/verifications-api.js.map +1 -1
- package/package.json +2 -2
- package/dist/models/v1/verification-report-response/index.d.ts +0 -1
- package/dist/models/v1/verification-report-response/index.js.map +0 -1
- package/dist/models/v1/verification-report-response/verification-report-response.d.ts +0 -4
- package/dist/models/v1/verification-report-response/verification-report-response.js.map +0 -1
- /package/dist/models/v1/{verification-report-response → verification-status-response}/index.js +0 -0
package/README.md
CHANGED
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
|
|
3
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
4
|
|
|
5
|
-
> <span style="color:red; font-weight:bold">Warning:</span>
|
|
6
|
-
> **This SDK is currently available to selected developers for preview use only. It is being provided for the purpose of collecting feedback, and should not be used in production environments.**
|
|
7
|
-
|
|
8
5
|
## Installation
|
|
9
6
|
|
|
10
7
|
We recommend to use this SDK as part of the [`@sinch/sdk-core`](../../packages/sdk-core) package in order to make the most out of all the Sinch products.
|
|
@@ -37,8 +34,7 @@ If you are using this SDK as part of the Sinch SDK (`@sinch/sdk-core`) you can a
|
|
|
37
34
|
|
|
38
35
|
```typescript
|
|
39
36
|
import {
|
|
40
|
-
|
|
41
|
-
StartVerificationRequestData,
|
|
37
|
+
Verification,
|
|
42
38
|
SinchClient,
|
|
43
39
|
ApplicationCredentials,
|
|
44
40
|
VerificationService,
|
|
@@ -54,7 +50,7 @@ const sinch = new SinchClient(credentials);
|
|
|
54
50
|
const verificationService: VerificationService = sinch.verification;
|
|
55
51
|
|
|
56
52
|
// Build the request data
|
|
57
|
-
const requestData: StartVerificationRequestData = {
|
|
53
|
+
const requestData: Verification.StartVerificationRequestData = {
|
|
58
54
|
initiateVerificationRequestBody: {
|
|
59
55
|
identity: {
|
|
60
56
|
type: 'number',
|
|
@@ -65,7 +61,7 @@ const requestData: StartVerificationRequestData = {
|
|
|
65
61
|
};
|
|
66
62
|
|
|
67
63
|
// Use the 'verification' service registered on the Sinch client
|
|
68
|
-
const verificationInitResponse: InitiateVerificationResponse
|
|
64
|
+
const verificationInitResponse: Verification.InitiateVerificationResponse
|
|
69
65
|
= await verificationService.verifications.start(requestData);
|
|
70
66
|
```
|
|
71
67
|
|
|
@@ -77,9 +73,8 @@ The SDK can be used standalone if you need to use only the Verification APIs.
|
|
|
77
73
|
import {
|
|
78
74
|
ApplicationCredentials
|
|
79
75
|
} from '@sinch/sdk-client';
|
|
80
|
-
import {
|
|
81
|
-
|
|
82
|
-
StartVerificationRequestData,
|
|
76
|
+
import {
|
|
77
|
+
Verification,
|
|
83
78
|
VerificationService,
|
|
84
79
|
} from '@sinch/verification';
|
|
85
80
|
|
|
@@ -92,7 +87,7 @@ const credentials: ApplicationCredentials = {
|
|
|
92
87
|
const verificationService = new VerificationService(credentials);
|
|
93
88
|
|
|
94
89
|
// Build the request data
|
|
95
|
-
const requestData: StartVerificationRequestData = {
|
|
90
|
+
const requestData: Verification.StartVerificationRequestData = {
|
|
96
91
|
initiateVerificationRequestBody: {
|
|
97
92
|
identity: {
|
|
98
93
|
type: 'number',
|
|
@@ -103,7 +98,7 @@ const requestData: StartVerificationRequestData = {
|
|
|
103
98
|
};
|
|
104
99
|
|
|
105
100
|
// Use the standalone declaration of the 'verification' service
|
|
106
|
-
const verificationInitResponse: InitiateVerificationResponse
|
|
101
|
+
const verificationInitResponse: Verification.InitiateVerificationResponse
|
|
107
102
|
= await verificationService.verifications.start(requestData);
|
|
108
103
|
```
|
|
109
104
|
|
|
@@ -113,7 +108,7 @@ All the methods that interact with the Sinch APIs use Promises. You can use `awa
|
|
|
113
108
|
|
|
114
109
|
```typescript
|
|
115
110
|
// Method 1: Wait for the Promise to complete (you need to be in an 'async' method)
|
|
116
|
-
let verificationInitResponse: InitiateVerificationResponse;
|
|
111
|
+
let verificationInitResponse: Verification.InitiateVerificationResponse;
|
|
117
112
|
try {
|
|
118
113
|
verificationInitResponse = await verificationService.verifications.start(requestData);
|
|
119
114
|
console.log(`Verification ID = ${verificationInitResponse.id}`);
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -10,10 +10,24 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
|
11
11
|
o[k2] = m[k];
|
|
12
12
|
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
13
25
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
27
|
};
|
|
16
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
29
|
+
exports.Verification = void 0;
|
|
30
|
+
exports.Verification = __importStar(require("./models"));
|
|
18
31
|
__exportStar(require("./rest"), exports);
|
|
32
|
+
__exportStar(require("@sinch/sdk-client"), exports);
|
|
19
33
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yDAAyC;AACzC,yCAAuB;AACvB,oDAAkC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CalloutRequestEventResponseCallout } from '../callout-request-event-response-callout';
|
|
2
|
+
import { ActionEnum } from '../enums';
|
|
2
3
|
export interface CalloutRequestEventResponse {
|
|
3
4
|
/** Determines whether the verification can be executed. */
|
|
4
5
|
action?: ActionEnum;
|
|
5
6
|
/** @see CalloutRequestEventResponseCallout */
|
|
6
7
|
callout?: CalloutRequestEventResponseCallout;
|
|
7
8
|
}
|
|
8
|
-
export type ActionEnum = 'allow' | 'deny';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { VerificationStatusEnum } from '../enums';
|
|
1
|
+
import { ReasonEnum, SourceEnum, VerificationStatusEnum } from '../enums';
|
|
3
2
|
import { Identity } from '../identity';
|
|
4
3
|
export interface CalloutVerificationReportResponse {
|
|
5
4
|
/** The unique ID of the verification request. */
|
|
@@ -10,19 +9,12 @@ export interface CalloutVerificationReportResponse {
|
|
|
10
9
|
status?: VerificationStatusEnum;
|
|
11
10
|
/** Displays the reason why a verification has `FAILED`, was `DENIED`, or was `ABORTED`. */
|
|
12
11
|
reason?: ReasonEnum;
|
|
13
|
-
/** Shows whether the call is complete or not. */
|
|
14
|
-
callComplete?: boolean;
|
|
15
12
|
/** The reference ID that was optionally passed together with the verification request. */
|
|
16
13
|
reference?: string;
|
|
17
|
-
/**
|
|
18
|
-
|
|
19
|
-
/** */
|
|
14
|
+
/** Free text that the client is sending, used to show if the call/SMS was intercepted or not. */
|
|
15
|
+
source?: SourceEnum;
|
|
16
|
+
/** @see Identity */
|
|
20
17
|
identity?: Identity;
|
|
21
|
-
/** */
|
|
22
|
-
|
|
23
|
-
/** */
|
|
24
|
-
verificationTimestamp?: Date;
|
|
25
|
-
/** */
|
|
26
|
-
callResult?: string;
|
|
18
|
+
/** Shows whether the call is complete or not. */
|
|
19
|
+
callComplete?: boolean;
|
|
27
20
|
}
|
|
28
|
-
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';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { CallResult, ReasonEnum, VerificationStatusEnum } from '../enums';
|
|
2
|
+
import { Identity } from '../identity';
|
|
3
|
+
import { VerificationPriceCall } from '../verification-price-call';
|
|
4
|
+
export interface CalloutVerificationStatusResponse {
|
|
5
|
+
/** The unique ID of the verification request. */
|
|
6
|
+
id?: string;
|
|
7
|
+
/** The method of the verification request. This will always be `callout`. */
|
|
8
|
+
method?: 'callout';
|
|
9
|
+
/** The status of the verification request. */
|
|
10
|
+
status?: VerificationStatusEnum;
|
|
11
|
+
/** Displays the reason why a verification has `FAILED`, was `DENIED`, or was `ABORTED`. */
|
|
12
|
+
reason?: ReasonEnum;
|
|
13
|
+
/** Shows whether the call is complete or not. */
|
|
14
|
+
callComplete?: boolean;
|
|
15
|
+
/** The result of the call. */
|
|
16
|
+
callResult?: CallResult;
|
|
17
|
+
/** The reference ID that was optionally passed together with the verification request. */
|
|
18
|
+
reference?: string;
|
|
19
|
+
/** Prices associated with this verification */
|
|
20
|
+
price?: VerificationPriceCall;
|
|
21
|
+
/** @see Identity */
|
|
22
|
+
identity?: Identity;
|
|
23
|
+
/** The ID of the country to which the verification was sent. */
|
|
24
|
+
countryId?: string;
|
|
25
|
+
/** The timestamp in UTC format. </br> **Note:** The formatting does not respect `ISO-8601` and the returned value has the format `YYYY-MM-DDThh:mm:ss.SSS`. If you need to parse this value into a specific date object in your programming language, please append `Z` (Zulu time = UTC) at the end of the date value to match the `ISO-8601` format: `YYYY-MM-DDThh:mm:ss.SSSZ`. */
|
|
26
|
+
verificationTimestamp?: Date;
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"callout-verification-status-response.js","sourceRoot":"","sources":["../../../../src/models/v1/callout-verification-status-response/callout-verification-status-response.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './callout-verification-status-response';
|
|
@@ -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("./callout-verification-status-response"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/callout-verification-status-response/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yEAAuD"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
export type { ActionEnum as CalloutRequestEventResponseActionEnum, } from './callout-request-event-response/callout-request-event-response';
|
|
2
|
-
export type { ReasonEnum as CalloutVerificationReportResponseReasonEnum, } from './callout-verification-report-response/callout-verification-report-response';
|
|
3
|
-
export type { ActionEnum as FlashCallRequestEventResponseActionEnum, } from './flashcall-request-event-response/flashcall-request-event-response';
|
|
4
|
-
export type { ReasonEnum as FlashcallVerificationReportResponseReasonEnum, SourceEnum as FlashcallVerificationReportResponseSourceEnum, } from './flashcall-verification-report-response/flashcall-verification-report-response';
|
|
5
1
|
export type { TypeEnum as IdentityTypeEnum } from './identity/identity';
|
|
6
|
-
export type { ActionEnum as SMSRequestEventResponseActionEnum, } from './sms-request-event-response/sms-request-event-response';
|
|
7
|
-
export type { ReasonEnum as SMSVerificationReportResponseReasonEnum, SourceEnum as SMSVerificationReportResponseSourceEnum, } from './sms-verification-report-response/sms-verification-report-response';
|
|
8
2
|
export type { MethodEnum as VerificationRequestEventMethodEnum, } from './verification-request-event/verification-request-event';
|
|
9
|
-
export type { MethodEnum as VerificationResultEventMethodEnum,
|
|
3
|
+
export type { MethodEnum as VerificationResultEventMethodEnum, } from './verification-result-event/verification-result-event';
|
|
4
|
+
export type ActionEnum = 'allow' | 'deny';
|
|
10
5
|
export type VerificationStatusEnum = 'PENDING' | 'SUCCESSFUL' | 'FAIL' | 'DENIED' | 'ABORTED' | 'ERROR';
|
|
6
|
+
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';
|
|
7
|
+
export type SourceEnum = 'intercepted' | 'manual';
|
|
8
|
+
export type CallResult = 'ANSWERED' | 'COMPLETED' | 'NO_ANSWER' | 'CANCEL' | 'BUSY' | 'FAILED' | string;
|
package/dist/models/v1/flashcall-request-event-response/flashcall-request-event-response.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { ActionEnum } from '../enums';
|
|
1
2
|
export interface FlashCallRequestEventResponse {
|
|
2
3
|
/** Determines whether the verification can be executed. */
|
|
3
4
|
action?: ActionEnum;
|
|
4
5
|
/** @see FlashCallContent */
|
|
5
6
|
flashCall?: FlashCallContent;
|
|
6
7
|
}
|
|
7
|
-
export type ActionEnum = 'allow' | 'deny';
|
|
8
8
|
interface FlashCallContent {
|
|
9
9
|
/** The phone number that will be displayed to the user when the flashcall is received on the user\'s phone. By default, the Sinch dashboard will randomly select the CLI that will be displayed during a flashcall from a pool of numbers. If you want to set your own CLI, you can specify it in the response to the Verification Request Event. */
|
|
10
10
|
cli?: string;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { VerificationStatusEnum } from '../enums';
|
|
1
|
+
import { ReasonEnum, SourceEnum, VerificationStatusEnum } from '../enums';
|
|
3
2
|
import { Identity } from '../identity';
|
|
4
3
|
export interface FlashCallVerificationReportResponse {
|
|
5
4
|
/** The unique ID of the verification request. */
|
|
@@ -12,20 +11,10 @@ export interface FlashCallVerificationReportResponse {
|
|
|
12
11
|
reason?: ReasonEnum;
|
|
13
12
|
/** The reference ID that was optionally passed together with the verification request. */
|
|
14
13
|
reference?: string;
|
|
15
|
-
/** @see VerificationReportResponsePrice */
|
|
16
|
-
price?: VerificationReportResponsePrice;
|
|
17
14
|
/** Free text that the client is sending, used to show if the call/SMS was intercepted or not. */
|
|
18
15
|
source?: SourceEnum;
|
|
19
|
-
/** */
|
|
16
|
+
/** @see Identity */
|
|
20
17
|
identity?: Identity;
|
|
21
|
-
/** */
|
|
22
|
-
countryId?: string;
|
|
23
|
-
/** */
|
|
24
|
-
verificationTimestamp?: Date;
|
|
25
|
-
/** */
|
|
18
|
+
/** Shows whether the call is complete or not. */
|
|
26
19
|
callComplete?: boolean;
|
|
27
|
-
/** */
|
|
28
|
-
callResult?: string;
|
|
29
20
|
}
|
|
30
|
-
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';
|
|
31
|
-
export type SourceEnum = 'intercepted' | 'manual';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { CallResult, ReasonEnum, SourceEnum, VerificationStatusEnum } from '../enums';
|
|
2
|
+
import { Identity } from '../identity';
|
|
3
|
+
import { VerificationPriceCall } from '../verification-price-call';
|
|
4
|
+
export interface FlashCallVerificationStatusResponse {
|
|
5
|
+
/** The unique ID of the verification request. */
|
|
6
|
+
id?: string;
|
|
7
|
+
/** The method of the verification request. This will always be `flashCall`. */
|
|
8
|
+
method?: 'flashcall';
|
|
9
|
+
/** The status of the verification request. */
|
|
10
|
+
status?: VerificationStatusEnum;
|
|
11
|
+
/** Displays the reason why a verification has `FAILED`, was `DENIED`, or was `ABORTED`. */
|
|
12
|
+
reason?: ReasonEnum;
|
|
13
|
+
/** Shows whether the call is complete or not. */
|
|
14
|
+
callComplete?: boolean;
|
|
15
|
+
/** The result of the call. */
|
|
16
|
+
callResult?: CallResult;
|
|
17
|
+
/** The reference ID that was optionally passed together with the verification request. */
|
|
18
|
+
reference?: string;
|
|
19
|
+
/** Prices associated with this verification */
|
|
20
|
+
price?: VerificationPriceCall;
|
|
21
|
+
/** @see Identity */
|
|
22
|
+
identity?: Identity;
|
|
23
|
+
/** The ID of the country to which the verification was sent. */
|
|
24
|
+
countryId?: string;
|
|
25
|
+
/** The timestamp in UTC format. </br> **Note:** The formatting does not respect `ISO-8601` and the returned value has the format `YYYY-MM-DDThh:mm:ss.SSS`. If you need to parse this value into a specific date object in your programming language, please append `Z` (Zulu time = UTC) at the end of the date value to match the `ISO-8601` format: `YYYY-MM-DDThh:mm:ss.SSSZ`. */
|
|
26
|
+
verificationTimestamp?: Date;
|
|
27
|
+
/** Free text that the client is sending, used to show if the call/SMS was intercepted or not. */
|
|
28
|
+
source?: SourceEnum;
|
|
29
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flashcall-verification-status-response.js","sourceRoot":"","sources":["../../../../src/models/v1/flashcall-verification-status-response/flashcall-verification-status-response.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './flashcall-verification-status-response';
|
|
@@ -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("./flashcall-verification-status-response"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/flashcall-verification-status-response/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2EAAyD"}
|
|
@@ -1,13 +1,18 @@
|
|
|
1
|
-
import { ReportCalloutVerificationByIdentityRequestData, ReportCalloutVerificationByIdRequestData, ReportFlashCallVerificationByIdentityRequestData, ReportFlashCallVerificationByIdRequestData, ReportSmsVerificationByIdentityRequestData, ReportSmsVerificationByIdRequestData, StartCalloutVerificationRequestData, StartFlashCallVerificationRequestData, StartSeamlessVerificationRequestData, StartSmsVerificationRequestData } from '
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { ReportCalloutVerificationByIdentityRequestData, ReportCalloutVerificationByIdRequestData, ReportFlashCallVerificationByIdentityRequestData, ReportFlashCallVerificationByIdRequestData, ReportSmsVerificationByIdentityRequestData, ReportSmsVerificationByIdRequestData, StartCalloutVerificationRequestData, StartFlashCallVerificationRequestData, StartSeamlessVerificationRequestData, StartSmsVerificationRequestData } from './requests';
|
|
2
|
+
import { SmsOptions } from './start-verification-request';
|
|
3
|
+
export declare const startVerificationHelper: {
|
|
4
|
+
buildSmsRequest: (phoneNumber: string, reference?: string, smsOptions?: SmsOptions) => StartSmsVerificationRequestData;
|
|
5
|
+
buildCalloutRequest: (phoneNumber: string, reference?: string, locale?: string) => StartCalloutVerificationRequestData;
|
|
6
|
+
buildFlashCallRequest: (phoneNumber: string, reference?: string, dialTimeout?: number) => StartFlashCallVerificationRequestData;
|
|
7
|
+
buildSeamlessRequest: (phoneNumber: string, reference?: string) => StartSeamlessVerificationRequestData;
|
|
8
|
+
};
|
|
9
|
+
export declare const reportVerificationByIdHelper: {
|
|
10
|
+
buildSmsRequest: (id: string, code: string, cli?: string) => ReportSmsVerificationByIdRequestData;
|
|
11
|
+
buildCalloutRequest: (id: string, code: string) => ReportCalloutVerificationByIdRequestData;
|
|
12
|
+
buildFlashCallRequest: (id: string, cli: string) => ReportFlashCallVerificationByIdRequestData;
|
|
13
|
+
};
|
|
14
|
+
export declare const reportVerificationByIdentityHelper: {
|
|
15
|
+
buildSmsRequest: (identity: string, code: string, cli?: string) => ReportSmsVerificationByIdentityRequestData;
|
|
16
|
+
buildCalloutRequest: (identity: string, code: string) => ReportCalloutVerificationByIdentityRequestData;
|
|
17
|
+
buildFlashCallRequest: (identity: string, cli: string) => ReportFlashCallVerificationByIdentityRequestData;
|
|
13
18
|
};
|
package/dist/models/v1/helper.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
|
|
3
|
+
exports.reportVerificationByIdentityHelper = exports.reportVerificationByIdHelper = exports.startVerificationHelper = void 0;
|
|
4
|
+
exports.startVerificationHelper = {
|
|
5
|
+
buildSmsRequest: (phoneNumber, reference, smsOptions) => {
|
|
6
6
|
return {
|
|
7
7
|
startVerificationWithSmsRequestBody: {
|
|
8
8
|
identity: {
|
|
@@ -10,10 +10,15 @@ exports.verificationsHelper = {
|
|
|
10
10
|
endpoint: phoneNumber,
|
|
11
11
|
},
|
|
12
12
|
reference,
|
|
13
|
+
...(smsOptions !== undefined) ? {
|
|
14
|
+
smsOptions: {
|
|
15
|
+
...smsOptions,
|
|
16
|
+
},
|
|
17
|
+
} : {},
|
|
13
18
|
},
|
|
14
19
|
};
|
|
15
20
|
},
|
|
16
|
-
|
|
21
|
+
buildCalloutRequest: (phoneNumber, reference, locale) => {
|
|
17
22
|
return {
|
|
18
23
|
startVerificationWithCalloutRequestBody: {
|
|
19
24
|
identity: {
|
|
@@ -21,10 +26,17 @@ exports.verificationsHelper = {
|
|
|
21
26
|
endpoint: phoneNumber,
|
|
22
27
|
},
|
|
23
28
|
reference,
|
|
29
|
+
...(locale !== undefined) ? {
|
|
30
|
+
calloutOptions: {
|
|
31
|
+
speech: {
|
|
32
|
+
locale,
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
} : {},
|
|
24
36
|
},
|
|
25
37
|
};
|
|
26
38
|
},
|
|
27
|
-
|
|
39
|
+
buildFlashCallRequest: (phoneNumber, reference, dialTimeout) => {
|
|
28
40
|
return {
|
|
29
41
|
startVerificationWithFlashCallRequestBody: {
|
|
30
42
|
identity: {
|
|
@@ -40,7 +52,7 @@ exports.verificationsHelper = {
|
|
|
40
52
|
},
|
|
41
53
|
};
|
|
42
54
|
},
|
|
43
|
-
|
|
55
|
+
buildSeamlessRequest: (phoneNumber, reference) => {
|
|
44
56
|
return {
|
|
45
57
|
startSeamlessVerificationRequestBody: {
|
|
46
58
|
identity: {
|
|
@@ -51,7 +63,9 @@ exports.verificationsHelper = {
|
|
|
51
63
|
},
|
|
52
64
|
};
|
|
53
65
|
},
|
|
54
|
-
|
|
66
|
+
};
|
|
67
|
+
exports.reportVerificationByIdHelper = {
|
|
68
|
+
buildSmsRequest: (id, code, cli) => {
|
|
55
69
|
return {
|
|
56
70
|
id,
|
|
57
71
|
reportSmsVerificationByIdRequestBody: {
|
|
@@ -62,7 +76,7 @@ exports.verificationsHelper = {
|
|
|
62
76
|
},
|
|
63
77
|
};
|
|
64
78
|
},
|
|
65
|
-
|
|
79
|
+
buildCalloutRequest: (id, code) => {
|
|
66
80
|
return {
|
|
67
81
|
id,
|
|
68
82
|
reportCalloutVerificationByIdRequestBody: {
|
|
@@ -72,7 +86,7 @@ exports.verificationsHelper = {
|
|
|
72
86
|
},
|
|
73
87
|
};
|
|
74
88
|
},
|
|
75
|
-
|
|
89
|
+
buildFlashCallRequest: (id, cli) => {
|
|
76
90
|
return {
|
|
77
91
|
id,
|
|
78
92
|
reportFlashCallVerificationByIdRequestBody: {
|
|
@@ -82,7 +96,9 @@ exports.verificationsHelper = {
|
|
|
82
96
|
},
|
|
83
97
|
};
|
|
84
98
|
},
|
|
85
|
-
|
|
99
|
+
};
|
|
100
|
+
exports.reportVerificationByIdentityHelper = {
|
|
101
|
+
buildSmsRequest: (identity, code, cli) => {
|
|
86
102
|
return {
|
|
87
103
|
endpoint: identity,
|
|
88
104
|
reportSmsVerificationByIdentityRequestBody: {
|
|
@@ -93,7 +109,7 @@ exports.verificationsHelper = {
|
|
|
93
109
|
},
|
|
94
110
|
};
|
|
95
111
|
},
|
|
96
|
-
|
|
112
|
+
buildCalloutRequest: (identity, code) => {
|
|
97
113
|
return {
|
|
98
114
|
endpoint: identity,
|
|
99
115
|
reportCalloutVerificationByIdentityRequestBody: {
|
|
@@ -103,7 +119,7 @@ exports.verificationsHelper = {
|
|
|
103
119
|
},
|
|
104
120
|
};
|
|
105
121
|
},
|
|
106
|
-
|
|
122
|
+
buildFlashCallRequest: (identity, cli) => {
|
|
107
123
|
return {
|
|
108
124
|
endpoint: identity,
|
|
109
125
|
reportFlashCallVerificationByIdentityRequestBody: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helper.js","sourceRoot":"","sources":["../../../src/models/v1/helper.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"helper.js","sourceRoot":"","sources":["../../../src/models/v1/helper.ts"],"names":[],"mappings":"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"}
|
|
@@ -2,8 +2,10 @@ export * from './callout-request-event-response';
|
|
|
2
2
|
export * from './callout-request-event-response-callout';
|
|
3
3
|
export * from './callout-request-event-response-callout-speech';
|
|
4
4
|
export * from './callout-verification-report-response';
|
|
5
|
+
export * from './callout-verification-status-response';
|
|
5
6
|
export * from './flashcall-request-event-response';
|
|
6
7
|
export * from './flashcall-verification-report-response';
|
|
8
|
+
export * from './flashcall-verification-status-response';
|
|
7
9
|
export * from './verification-report-response-price';
|
|
8
10
|
export * from './identity';
|
|
9
11
|
export * from './start-verification-request';
|
|
@@ -15,8 +17,11 @@ export * from './start-seamless-verification-response';
|
|
|
15
17
|
export * from './start-sms-verification-response';
|
|
16
18
|
export * from './sms-request-event-response';
|
|
17
19
|
export * from './sms-verification-report-response';
|
|
20
|
+
export * from './sms-verification-status-response';
|
|
21
|
+
export * from './verification-price-call';
|
|
22
|
+
export * from './verification-price-sms';
|
|
18
23
|
export * from './verification-report-request';
|
|
19
|
-
export * from './verification-
|
|
24
|
+
export * from './verification-status-response';
|
|
20
25
|
export * from './verification-request-event';
|
|
21
26
|
export * from './verification-request-event-response';
|
|
22
27
|
export * from './verification-result-event';
|
|
@@ -24,3 +29,4 @@ export * from './verification-result-event-response';
|
|
|
24
29
|
export * from './verification-error';
|
|
25
30
|
export * from './enums';
|
|
26
31
|
export * from './helper';
|
|
32
|
+
export * from './requests';
|
package/dist/models/v1/index.js
CHANGED
|
@@ -18,8 +18,10 @@ __exportStar(require("./callout-request-event-response"), exports);
|
|
|
18
18
|
__exportStar(require("./callout-request-event-response-callout"), exports);
|
|
19
19
|
__exportStar(require("./callout-request-event-response-callout-speech"), exports);
|
|
20
20
|
__exportStar(require("./callout-verification-report-response"), exports);
|
|
21
|
+
__exportStar(require("./callout-verification-status-response"), exports);
|
|
21
22
|
__exportStar(require("./flashcall-request-event-response"), exports);
|
|
22
23
|
__exportStar(require("./flashcall-verification-report-response"), exports);
|
|
24
|
+
__exportStar(require("./flashcall-verification-status-response"), exports);
|
|
23
25
|
__exportStar(require("./verification-report-response-price"), exports);
|
|
24
26
|
__exportStar(require("./identity"), exports);
|
|
25
27
|
__exportStar(require("./start-verification-request"), exports);
|
|
@@ -31,8 +33,11 @@ __exportStar(require("./start-seamless-verification-response"), exports);
|
|
|
31
33
|
__exportStar(require("./start-sms-verification-response"), exports);
|
|
32
34
|
__exportStar(require("./sms-request-event-response"), exports);
|
|
33
35
|
__exportStar(require("./sms-verification-report-response"), exports);
|
|
36
|
+
__exportStar(require("./sms-verification-status-response"), exports);
|
|
37
|
+
__exportStar(require("./verification-price-call"), exports);
|
|
38
|
+
__exportStar(require("./verification-price-sms"), exports);
|
|
34
39
|
__exportStar(require("./verification-report-request"), exports);
|
|
35
|
-
__exportStar(require("./verification-
|
|
40
|
+
__exportStar(require("./verification-status-response"), exports);
|
|
36
41
|
__exportStar(require("./verification-request-event"), exports);
|
|
37
42
|
__exportStar(require("./verification-request-event-response"), exports);
|
|
38
43
|
__exportStar(require("./verification-result-event"), exports);
|
|
@@ -40,4 +45,5 @@ __exportStar(require("./verification-result-event-response"), exports);
|
|
|
40
45
|
__exportStar(require("./verification-error"), exports);
|
|
41
46
|
__exportStar(require("./enums"), exports);
|
|
42
47
|
__exportStar(require("./helper"), exports);
|
|
48
|
+
__exportStar(require("./requests"), exports);
|
|
43
49
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/v1/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mEAAiD;AACjD,2EAAyD;AACzD,kFAAgE;AAChE,yEAAuD;AACvD,qEAAmD;AACnD,2EAAyD;AACzD,uEAAqD;AACrD,6CAA2B;AAC3B,+DAA6C;AAC7C,iDAA+B;AAC/B,0CAAwB;AACxB,0EAAwD;AACxD,wEAAsD;AACtD,yEAAuD;AACvD,oEAAkD;AAClD,+DAA6C;AAC7C,qEAAmD;AACnD,gEAA8C;AAC9C,iEAA+C;AAC/C,+DAA6C;AAC7C,wEAAsD;AACtD,8DAA4C;AAC5C,uEAAqD;AACrD,uDAAqC;AACrC,0CAAwB;AACxB,2CAAyB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/v1/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mEAAiD;AACjD,2EAAyD;AACzD,kFAAgE;AAChE,yEAAuD;AACvD,yEAAuD;AACvD,qEAAmD;AACnD,2EAAyD;AACzD,2EAAyD;AACzD,uEAAqD;AACrD,6CAA2B;AAC3B,+DAA6C;AAC7C,iDAA+B;AAC/B,0CAAwB;AACxB,0EAAwD;AACxD,wEAAsD;AACtD,yEAAuD;AACvD,oEAAkD;AAClD,+DAA6C;AAC7C,qEAAmD;AACnD,qEAAmD;AACnD,4DAA0C;AAC1C,2DAAyC;AACzC,gEAA8C;AAC9C,iEAA+C;AAC/C,+DAA6C;AAC7C,wEAAsD;AACtD,8DAA4C;AAC5C,uEAAqD;AACrD,uDAAqC;AACrC,0CAAwB;AACxB,2CAAyB;AACzB,6CAA2B"}
|
|
@@ -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("./verification-status/verification-status-request-data"), exports);
|
|
18
|
+
__exportStar(require("./verifications/verifications-request-data"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/requests/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yFAAuE;AACvE,6EAA2D"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface VerificationStatusByIdRequestData {
|
|
2
|
+
/** The ID of the verification. */
|
|
3
|
+
'id': string;
|
|
4
|
+
}
|
|
5
|
+
export interface VerificationStatusByIdentityRequestData {
|
|
6
|
+
/** For type `number` use a [E.164](https://community.sinch.com/t5/Glossary/E-164/ta-p/7537)-compatible phone number. */
|
|
7
|
+
'endpoint': string;
|
|
8
|
+
/** The method of the verification. */
|
|
9
|
+
'method': 'sms' | 'callout' | 'flashCall';
|
|
10
|
+
}
|
|
11
|
+
export interface VerificationStatusByReferenceRequestData {
|
|
12
|
+
/** The custom reference of the verification. */
|
|
13
|
+
'reference': string;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verification-status-request-data.js","sourceRoot":"","sources":["../../../../../src/models/v1/requests/verification-status/verification-status-request-data.ts"],"names":[],"mappings":""}
|