@sinch/verification 0.0.3 → 0.0.5
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 -10
- package/dist/index.d.ts +2 -1
- package/dist/index.js +15 -1
- package/dist/index.js.map +1 -1
- package/dist/models/v1/helper.d.ts +16 -12
- package/dist/models/v1/helper.js +16 -12
- package/dist/models/v1/helper.js.map +1 -1
- package/dist/models/v1/index.d.ts +1 -0
- package/dist/models/v1/index.js +1 -0
- 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/requests/verifications/verifications-request-data.js +3 -0
- package/dist/models/v1/requests/verifications/verifications-request-data.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 +1 -15
- package/dist/rest/v1/verification-status/verification-status-api.jest.fixture.d.ts +2 -2
- 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 +1 -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 +20 -20
- package/dist/rest/v1/verifications/verifications-api.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -37,8 +37,7 @@ If you are using this SDK as part of the Sinch SDK (`@sinch/sdk-core`) you can a
|
|
|
37
37
|
|
|
38
38
|
```typescript
|
|
39
39
|
import {
|
|
40
|
-
|
|
41
|
-
StartVerificationRequestData,
|
|
40
|
+
Verification,
|
|
42
41
|
SinchClient,
|
|
43
42
|
ApplicationCredentials,
|
|
44
43
|
VerificationService,
|
|
@@ -54,7 +53,7 @@ const sinch = new SinchClient(credentials);
|
|
|
54
53
|
const verificationService: VerificationService = sinch.verification;
|
|
55
54
|
|
|
56
55
|
// Build the request data
|
|
57
|
-
const requestData: StartVerificationRequestData = {
|
|
56
|
+
const requestData: Verification.StartVerificationRequestData = {
|
|
58
57
|
initiateVerificationRequestBody: {
|
|
59
58
|
identity: {
|
|
60
59
|
type: 'number',
|
|
@@ -65,7 +64,7 @@ const requestData: StartVerificationRequestData = {
|
|
|
65
64
|
};
|
|
66
65
|
|
|
67
66
|
// Use the 'verification' service registered on the Sinch client
|
|
68
|
-
const verificationInitResponse: InitiateVerificationResponse
|
|
67
|
+
const verificationInitResponse: Verification.InitiateVerificationResponse
|
|
69
68
|
= await verificationService.verifications.start(requestData);
|
|
70
69
|
```
|
|
71
70
|
|
|
@@ -77,9 +76,8 @@ The SDK can be used standalone if you need to use only the Verification APIs.
|
|
|
77
76
|
import {
|
|
78
77
|
ApplicationCredentials
|
|
79
78
|
} from '@sinch/sdk-client';
|
|
80
|
-
import {
|
|
81
|
-
|
|
82
|
-
StartVerificationRequestData,
|
|
79
|
+
import {
|
|
80
|
+
Verification,
|
|
83
81
|
VerificationService,
|
|
84
82
|
} from '@sinch/verification';
|
|
85
83
|
|
|
@@ -92,7 +90,7 @@ const credentials: ApplicationCredentials = {
|
|
|
92
90
|
const verificationService = new VerificationService(credentials);
|
|
93
91
|
|
|
94
92
|
// Build the request data
|
|
95
|
-
const requestData: StartVerificationRequestData = {
|
|
93
|
+
const requestData: Verification.StartVerificationRequestData = {
|
|
96
94
|
initiateVerificationRequestBody: {
|
|
97
95
|
identity: {
|
|
98
96
|
type: 'number',
|
|
@@ -103,7 +101,7 @@ const requestData: StartVerificationRequestData = {
|
|
|
103
101
|
};
|
|
104
102
|
|
|
105
103
|
// Use the standalone declaration of the 'verification' service
|
|
106
|
-
const verificationInitResponse: InitiateVerificationResponse
|
|
104
|
+
const verificationInitResponse: Verification.InitiateVerificationResponse
|
|
107
105
|
= await verificationService.verifications.start(requestData);
|
|
108
106
|
```
|
|
109
107
|
|
|
@@ -113,7 +111,7 @@ All the methods that interact with the Sinch APIs use Promises. You can use `awa
|
|
|
113
111
|
|
|
114
112
|
```typescript
|
|
115
113
|
// Method 1: Wait for the Promise to complete (you need to be in an 'async' method)
|
|
116
|
-
let verificationInitResponse: InitiateVerificationResponse;
|
|
114
|
+
let verificationInitResponse: Verification.InitiateVerificationResponse;
|
|
117
115
|
try {
|
|
118
116
|
verificationInitResponse = await verificationService.verifications.start(requestData);
|
|
119
117
|
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,13 +1,17 @@
|
|
|
1
|
-
import { ReportCalloutVerificationByIdentityRequestData, ReportCalloutVerificationByIdRequestData, ReportFlashCallVerificationByIdentityRequestData, ReportFlashCallVerificationByIdRequestData, ReportSmsVerificationByIdentityRequestData, ReportSmsVerificationByIdRequestData, StartCalloutVerificationRequestData, StartFlashCallVerificationRequestData, StartSeamlessVerificationRequestData, StartSmsVerificationRequestData } from '
|
|
2
|
-
export declare const
|
|
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
|
+
export declare const startVerificationHelper: {
|
|
3
|
+
buildSmsRequest: (phoneNumber: string, reference?: string) => StartSmsVerificationRequestData;
|
|
4
|
+
buildCalloutRequest: (phoneNumber: string, reference?: string) => StartCalloutVerificationRequestData;
|
|
5
|
+
buildFlashCallRequest: (phoneNumber: string, reference?: string, dialTimeout?: number) => StartFlashCallVerificationRequestData;
|
|
6
|
+
buildSeamlessRequest: (phoneNumber: string, reference?: string) => StartSeamlessVerificationRequestData;
|
|
7
|
+
};
|
|
8
|
+
export declare const reportVerificationByIdHelper: {
|
|
9
|
+
buildSmsRequest: (id: string, code: string, cli?: string) => ReportSmsVerificationByIdRequestData;
|
|
10
|
+
buildCalloutRequest: (id: string, code: string) => ReportCalloutVerificationByIdRequestData;
|
|
11
|
+
buildFlashCallRequest: (id: string, cli: string) => ReportFlashCallVerificationByIdRequestData;
|
|
12
|
+
};
|
|
13
|
+
export declare const reportVerificationByIdentityHelper: {
|
|
14
|
+
buildSmsRequest: (identity: string, code: string, cli?: string) => ReportSmsVerificationByIdentityRequestData;
|
|
15
|
+
buildCalloutRequest: (identity: string, code: string) => ReportCalloutVerificationByIdentityRequestData;
|
|
16
|
+
buildFlashCallRequest: (identity: string, cli: string) => ReportFlashCallVerificationByIdentityRequestData;
|
|
13
17
|
};
|
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) => {
|
|
6
6
|
return {
|
|
7
7
|
startVerificationWithSmsRequestBody: {
|
|
8
8
|
identity: {
|
|
@@ -13,7 +13,7 @@ exports.verificationsHelper = {
|
|
|
13
13
|
},
|
|
14
14
|
};
|
|
15
15
|
},
|
|
16
|
-
|
|
16
|
+
buildCalloutRequest: (phoneNumber, reference) => {
|
|
17
17
|
return {
|
|
18
18
|
startVerificationWithCalloutRequestBody: {
|
|
19
19
|
identity: {
|
|
@@ -24,7 +24,7 @@ exports.verificationsHelper = {
|
|
|
24
24
|
},
|
|
25
25
|
};
|
|
26
26
|
},
|
|
27
|
-
|
|
27
|
+
buildFlashCallRequest: (phoneNumber, reference, dialTimeout) => {
|
|
28
28
|
return {
|
|
29
29
|
startVerificationWithFlashCallRequestBody: {
|
|
30
30
|
identity: {
|
|
@@ -40,7 +40,7 @@ exports.verificationsHelper = {
|
|
|
40
40
|
},
|
|
41
41
|
};
|
|
42
42
|
},
|
|
43
|
-
|
|
43
|
+
buildSeamlessRequest: (phoneNumber, reference) => {
|
|
44
44
|
return {
|
|
45
45
|
startSeamlessVerificationRequestBody: {
|
|
46
46
|
identity: {
|
|
@@ -51,7 +51,9 @@ exports.verificationsHelper = {
|
|
|
51
51
|
},
|
|
52
52
|
};
|
|
53
53
|
},
|
|
54
|
-
|
|
54
|
+
};
|
|
55
|
+
exports.reportVerificationByIdHelper = {
|
|
56
|
+
buildSmsRequest: (id, code, cli) => {
|
|
55
57
|
return {
|
|
56
58
|
id,
|
|
57
59
|
reportSmsVerificationByIdRequestBody: {
|
|
@@ -62,7 +64,7 @@ exports.verificationsHelper = {
|
|
|
62
64
|
},
|
|
63
65
|
};
|
|
64
66
|
},
|
|
65
|
-
|
|
67
|
+
buildCalloutRequest: (id, code) => {
|
|
66
68
|
return {
|
|
67
69
|
id,
|
|
68
70
|
reportCalloutVerificationByIdRequestBody: {
|
|
@@ -72,7 +74,7 @@ exports.verificationsHelper = {
|
|
|
72
74
|
},
|
|
73
75
|
};
|
|
74
76
|
},
|
|
75
|
-
|
|
77
|
+
buildFlashCallRequest: (id, cli) => {
|
|
76
78
|
return {
|
|
77
79
|
id,
|
|
78
80
|
reportFlashCallVerificationByIdRequestBody: {
|
|
@@ -82,7 +84,9 @@ exports.verificationsHelper = {
|
|
|
82
84
|
},
|
|
83
85
|
};
|
|
84
86
|
},
|
|
85
|
-
|
|
87
|
+
};
|
|
88
|
+
exports.reportVerificationByIdentityHelper = {
|
|
89
|
+
buildSmsRequest: (identity, code, cli) => {
|
|
86
90
|
return {
|
|
87
91
|
endpoint: identity,
|
|
88
92
|
reportSmsVerificationByIdentityRequestBody: {
|
|
@@ -93,7 +97,7 @@ exports.verificationsHelper = {
|
|
|
93
97
|
},
|
|
94
98
|
};
|
|
95
99
|
},
|
|
96
|
-
|
|
100
|
+
buildCalloutRequest: (identity, code) => {
|
|
97
101
|
return {
|
|
98
102
|
endpoint: identity,
|
|
99
103
|
reportCalloutVerificationByIdentityRequestBody: {
|
|
@@ -103,7 +107,7 @@ exports.verificationsHelper = {
|
|
|
103
107
|
},
|
|
104
108
|
};
|
|
105
109
|
},
|
|
106
|
-
|
|
110
|
+
buildFlashCallRequest: (identity, cli) => {
|
|
107
111
|
return {
|
|
108
112
|
endpoint: identity,
|
|
109
113
|
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":";;;AAaa,QAAA,uBAAuB,GAAG;IACrC,eAAe,EAAE,CACf,WAAmB,EACnB,SAAkB,EACe,EAAE;QACnC,OAAO;YACL,mCAAmC,EAAE;gBACnC,QAAQ,EAAE;oBACR,IAAI,EAAE,QAAQ;oBACd,QAAQ,EAAE,WAAW;iBACtB;gBACD,SAAS;aACV;SACF,CAAC;IACJ,CAAC;IACD,mBAAmB,EAAE,CACnB,WAAmB,EACn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AAE;oBACT,GAAG;iBACJ;aACF;SACF,CAAC;IACJ,CAAC;CACF,CAAC;AACW,QAAA,kCAAkC,GAAG;IAChD,eAAe,EAAE,CACf,QAAgB,EAChB,IAAY,EACZ,GAAY,EACgC,EAAE;QAC9C,OAAO;YACL,QAAQ,EAAE,QAAQ;YAClB,0CAA0C,EAAE;gBAC1C,GAAG,EAAE;oBACH,IAAI;oBACJ,GAAG;iBACJ;aACF;SACF,CAAC;IACJ,CAAC;IACD,mBAAmB,EAAE,CACnB,QAAgB,EAChB,IAAY,EACoC,EAAE;QAClD,OAAO;YACL,QAAQ,EAAE,QAAQ;YAClB,8CAA8C,EAAE;gBAC9C,OAAO,EAAE;oBACP,IAAI;iBACL;aACF;SACF,CAAC;IACJ,CAAC;IACD,qBAAqB,EAAE,CACrB,QAAgB,EAChB,GAAW,EACuC,EAAE;QACpD,OAAO;YACL,QAAQ,EAAE,QAAQ;YAClB,gDAAgD,EAAE;gBAChD,SAAS,EAAE;oBACT,GAAG;iBACJ;aACF;SACF,CAAC;IACJ,CAAC;CACF,CAAC"}
|
package/dist/models/v1/index.js
CHANGED
|
@@ -40,4 +40,5 @@ __exportStar(require("./verification-result-event-response"), exports);
|
|
|
40
40
|
__exportStar(require("./verification-error"), exports);
|
|
41
41
|
__exportStar(require("./enums"), exports);
|
|
42
42
|
__exportStar(require("./helper"), exports);
|
|
43
|
+
__exportStar(require("./requests"), exports);
|
|
43
44
|
//# 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,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;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":""}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { CalloutVerificationReportRequest, FlashCallVerificationReportRequest, SmsVerificationReportRequest } from '../../verification-report-request';
|
|
2
|
+
import { StartSeamlessVerification, StartVerificationWithCallout, StartVerificationWithFlashCall, StartVerificationWithSms } from '../../start-verification-request';
|
|
3
|
+
interface ReportVerificationByIdRequestDataBase {
|
|
4
|
+
/** The ID of the verification. */
|
|
5
|
+
'id': string;
|
|
6
|
+
}
|
|
7
|
+
export interface ReportSmsVerificationByIdRequestData extends ReportVerificationByIdRequestDataBase {
|
|
8
|
+
/** Request body to report a verification started with an SMS by its ID */
|
|
9
|
+
'reportSmsVerificationByIdRequestBody': SmsVerificationReportRequest;
|
|
10
|
+
}
|
|
11
|
+
export interface ReportFlashCallVerificationByIdRequestData extends ReportVerificationByIdRequestDataBase {
|
|
12
|
+
/** Request body to report a verification started with a flashCall by its ID */
|
|
13
|
+
'reportFlashCallVerificationByIdRequestBody': FlashCallVerificationReportRequest;
|
|
14
|
+
}
|
|
15
|
+
export interface ReportCalloutVerificationByIdRequestData extends ReportVerificationByIdRequestDataBase {
|
|
16
|
+
/** Request body to report a verification started with a callout by its ID */
|
|
17
|
+
'reportCalloutVerificationByIdRequestBody': CalloutVerificationReportRequest;
|
|
18
|
+
}
|
|
19
|
+
interface ReportVerificationByIdentityRequestDataBase {
|
|
20
|
+
/** For type `number` use a [E.164](https://community.sinch.com/t5/Glossary/E-164/ta-p/7537)-compatible phone number. */
|
|
21
|
+
'endpoint': string;
|
|
22
|
+
}
|
|
23
|
+
export interface ReportSmsVerificationByIdentityRequestData extends ReportVerificationByIdentityRequestDataBase {
|
|
24
|
+
/** Request body to report a verification started with an SMS by its identity */
|
|
25
|
+
'reportSmsVerificationByIdentityRequestBody': SmsVerificationReportRequest;
|
|
26
|
+
}
|
|
27
|
+
export interface ReportFlashCallVerificationByIdentityRequestData extends ReportVerificationByIdentityRequestDataBase {
|
|
28
|
+
/** Request body to report a verification started with a flashCall by its identity */
|
|
29
|
+
'reportFlashCallVerificationByIdentityRequestBody': FlashCallVerificationReportRequest;
|
|
30
|
+
}
|
|
31
|
+
export interface ReportCalloutVerificationByIdentityRequestData extends ReportVerificationByIdentityRequestDataBase {
|
|
32
|
+
/** Request body to report a verification started with a callout by its identity */
|
|
33
|
+
'reportCalloutVerificationByIdentityRequestBody': CalloutVerificationReportRequest;
|
|
34
|
+
}
|
|
35
|
+
export interface StartSmsVerificationRequestData {
|
|
36
|
+
/** Request body to start a verification with an SMS */
|
|
37
|
+
'startVerificationWithSmsRequestBody': StartVerificationWithSms;
|
|
38
|
+
}
|
|
39
|
+
export interface StartFlashCallVerificationRequestData {
|
|
40
|
+
/** Request body to start a verification with a flashCall */
|
|
41
|
+
'startVerificationWithFlashCallRequestBody': StartVerificationWithFlashCall;
|
|
42
|
+
}
|
|
43
|
+
export interface StartCalloutVerificationRequestData {
|
|
44
|
+
/** Request body to start a verification with a callout */
|
|
45
|
+
'startVerificationWithCalloutRequestBody': StartVerificationWithCallout;
|
|
46
|
+
}
|
|
47
|
+
export interface StartSeamlessVerificationRequestData {
|
|
48
|
+
/** Request body to start a seamless verification */
|
|
49
|
+
'startSeamlessVerificationRequestBody': StartSeamlessVerification;
|
|
50
|
+
}
|
|
51
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verifications-request-data.js","sourceRoot":"","sources":["../../../../../src/models/v1/requests/verifications/verifications-request-data.ts"],"names":[],"mappings":""}
|
|
@@ -5,10 +5,10 @@ export declare class VerificationDomainApi implements Api {
|
|
|
5
5
|
private sinchClientParameters;
|
|
6
6
|
constructor(sinchClientParameters: SinchClientParameters, apiName: string);
|
|
7
7
|
/**
|
|
8
|
-
* Update the default
|
|
9
|
-
* @param {string}
|
|
8
|
+
* Update the default hostname for the API
|
|
9
|
+
* @param {string} hostname - The new hostname to use for the APIs.
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
setHostname(hostname: string): void;
|
|
12
12
|
/**
|
|
13
13
|
* Updates the application credentials used to authenticate API requests
|
|
14
14
|
* @param {ApplicationCredentials} credentials
|
|
@@ -8,12 +8,18 @@ class VerificationDomainApi {
|
|
|
8
8
|
this.apiName = apiName;
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
|
-
* Update the default
|
|
12
|
-
* @param {string}
|
|
11
|
+
* Update the default hostname for the API
|
|
12
|
+
* @param {string} hostname - The new hostname to use for the APIs.
|
|
13
13
|
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
setHostname(hostname) {
|
|
15
|
+
try {
|
|
16
|
+
this.client = this.getSinchClient();
|
|
17
|
+
this.client.apiClientOptions.hostname = hostname;
|
|
18
|
+
}
|
|
19
|
+
catch (error) {
|
|
20
|
+
console.error('Impossible to set a new hostname, the Application credentials need to be provided first.');
|
|
21
|
+
throw error;
|
|
22
|
+
}
|
|
17
23
|
}
|
|
18
24
|
/**
|
|
19
25
|
* Updates the application credentials used to authenticate API requests
|
|
@@ -46,18 +52,9 @@ class VerificationDomainApi {
|
|
|
46
52
|
*/
|
|
47
53
|
getSinchClient() {
|
|
48
54
|
if (!this.client) {
|
|
49
|
-
|
|
50
|
-
throw new Error('Invalid configuration for the Verification API: '
|
|
51
|
-
+ '"applicationKey" and "applicationSecret" values must be provided');
|
|
52
|
-
}
|
|
53
|
-
const apiClientOptions = {
|
|
54
|
-
requestPlugins: [
|
|
55
|
-
new sdk_client_1.XTimestampRequest(),
|
|
56
|
-
new sdk_client_1.SigningRequest(this.sinchClientParameters.applicationKey, this.sinchClientParameters.applicationSecret),
|
|
57
|
-
],
|
|
58
|
-
};
|
|
55
|
+
const apiClientOptions = (0, sdk_client_1.buildApplicationSignedApiClientOptions)(this.sinchClientParameters, 'Verification');
|
|
59
56
|
this.client = new sdk_client_1.ApiFetchClient(apiClientOptions);
|
|
60
|
-
this.client.apiClientOptions.
|
|
57
|
+
this.client.apiClientOptions.hostname = this.sinchClientParameters.verificationHostname ?? 'https://verification.api.sinch.com';
|
|
61
58
|
}
|
|
62
59
|
return this.client;
|
|
63
60
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verification-domain-api.js","sourceRoot":"","sources":["../../../src/rest/v1/verification-domain-api.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"verification-domain-api.js","sourceRoot":"","sources":["../../../src/rest/v1/verification-domain-api.ts"],"names":[],"mappings":";;;AAAA,kDAO2B;AAE3B,MAAa,qBAAqB;IAK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AAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,QAAQ,GAAG,IAAI,CAAC,qBAAqB,CAAC,oBAAoB,IAAI,oCAAoC,CAAC;QAClI,CAAC;QACD,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;CACF;AA9DD,sDA8DC"}
|
|
@@ -1,14 +1,27 @@
|
|
|
1
1
|
import { SinchClientParameters } from '@sinch/sdk-client';
|
|
2
2
|
import { VerificationStatusApi } from './verification-status';
|
|
3
3
|
import { VerificationsApi } from './verifications';
|
|
4
|
+
/**
|
|
5
|
+
* The Verification Service exposes the following APIs:
|
|
6
|
+
* - verifications
|
|
7
|
+
* - verificationStatus
|
|
8
|
+
*/
|
|
4
9
|
export declare class VerificationService {
|
|
5
10
|
readonly verificationStatus: VerificationStatusApi;
|
|
6
11
|
readonly verifications: VerificationsApi;
|
|
7
|
-
constructor(params: SinchClientParameters);
|
|
8
12
|
/**
|
|
9
|
-
*
|
|
13
|
+
* Create a new VerificationService instance with its configuration. It needs the following parameters for authentication:
|
|
14
|
+
* - `applicationKey`
|
|
15
|
+
* - `applicationSecret`
|
|
10
16
|
*
|
|
11
|
-
*
|
|
17
|
+
* Other supported properties:
|
|
18
|
+
* - `verificationHostname`
|
|
19
|
+
* @param {SinchClientParameters} params - an Object containing the necessary properties to initialize the service
|
|
20
|
+
*/
|
|
21
|
+
constructor(params: SinchClientParameters);
|
|
22
|
+
/**
|
|
23
|
+
* Update the default hostname for each API
|
|
24
|
+
* @param {string} hostname - The new hostname to use for all the APIs.
|
|
12
25
|
*/
|
|
13
|
-
|
|
26
|
+
setHostname(hostname: string): void;
|
|
14
27
|
}
|
|
@@ -3,19 +3,32 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.VerificationService = void 0;
|
|
4
4
|
const verification_status_1 = require("./verification-status");
|
|
5
5
|
const verifications_1 = require("./verifications");
|
|
6
|
+
/**
|
|
7
|
+
* The Verification Service exposes the following APIs:
|
|
8
|
+
* - verifications
|
|
9
|
+
* - verificationStatus
|
|
10
|
+
*/
|
|
6
11
|
class VerificationService {
|
|
12
|
+
/**
|
|
13
|
+
* Create a new VerificationService instance with its configuration. It needs the following parameters for authentication:
|
|
14
|
+
* - `applicationKey`
|
|
15
|
+
* - `applicationSecret`
|
|
16
|
+
*
|
|
17
|
+
* Other supported properties:
|
|
18
|
+
* - `verificationHostname`
|
|
19
|
+
* @param {SinchClientParameters} params - an Object containing the necessary properties to initialize the service
|
|
20
|
+
*/
|
|
7
21
|
constructor(params) {
|
|
8
22
|
this.verificationStatus = new verification_status_1.VerificationStatusApi(params);
|
|
9
23
|
this.verifications = new verifications_1.VerificationsApi(params);
|
|
10
24
|
}
|
|
11
25
|
/**
|
|
12
|
-
* Update the default
|
|
13
|
-
*
|
|
14
|
-
* @param {string} basePath - The new base path to use for all the APIs.
|
|
26
|
+
* Update the default hostname for each API
|
|
27
|
+
* @param {string} hostname - The new hostname to use for all the APIs.
|
|
15
28
|
*/
|
|
16
|
-
|
|
17
|
-
this.verificationStatus.
|
|
18
|
-
this.verifications.
|
|
29
|
+
setHostname(hostname) {
|
|
30
|
+
this.verificationStatus.setHostname(hostname);
|
|
31
|
+
this.verifications.setHostname(hostname);
|
|
19
32
|
}
|
|
20
33
|
}
|
|
21
34
|
exports.VerificationService = VerificationService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verification-service.js","sourceRoot":"","sources":["../../../src/rest/v1/verification-service.ts"],"names":[],"mappings":";;;AACA,+DAA8D;AAC9D,mDAAmD;AAEnD,MAAa,mBAAmB;IAI9B,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
|
|
1
|
+
{"version":3,"file":"verification-service.js","sourceRoot":"","sources":["../../../src/rest/v1/verification-service.ts"],"names":[],"mappings":";;;AACA,+DAA8D;AAC9D,mDAAmD;AAEnD;;;;GAIG;AACH,MAAa,mBAAmB;IAI9B;;;;;;;;OAQG;IACH,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;;;OAGG;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;AA1BD,kDA0BC"}
|
|
@@ -1,20 +1,6 @@
|
|
|
1
1
|
import { SinchClientParameters } from '@sinch/sdk-client';
|
|
2
|
-
import { VerificationReportResponse } from '../../../models';
|
|
2
|
+
import { VerificationReportResponse, VerificationStatusByIdentityRequestData, VerificationStatusByIdRequestData, VerificationStatusByReferenceRequestData } from '../../../models';
|
|
3
3
|
import { VerificationDomainApi } from '../verification-domain-api';
|
|
4
|
-
export interface VerificationStatusByIdRequestData {
|
|
5
|
-
/** The ID of the verification. */
|
|
6
|
-
'id': string;
|
|
7
|
-
}
|
|
8
|
-
export interface VerificationStatusByIdentityRequestData {
|
|
9
|
-
/** For type `number` use a [E.164](https://community.sinch.com/t5/Glossary/E-164/ta-p/7537)-compatible phone number. */
|
|
10
|
-
'endpoint': string;
|
|
11
|
-
/** The method of the verification. */
|
|
12
|
-
'method': 'sms' | 'callout' | 'flashCall';
|
|
13
|
-
}
|
|
14
|
-
export interface VerificationStatusByReferenceRequestData {
|
|
15
|
-
/** The custom reference of the verification. */
|
|
16
|
-
'reference': string;
|
|
17
|
-
}
|
|
18
4
|
export declare class VerificationStatusApi extends VerificationDomainApi {
|
|
19
5
|
/**
|
|
20
6
|
* Initialize your interface
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="jest" />
|
|
2
|
-
import { VerificationStatusApi
|
|
3
|
-
import { VerificationReportResponse } from '../../../models';
|
|
2
|
+
import { VerificationStatusApi } from './verification-status-api';
|
|
3
|
+
import { VerificationReportResponse, VerificationStatusByIdRequestData, VerificationStatusByIdentityRequestData, VerificationStatusByReferenceRequestData } from '../../../models';
|
|
4
4
|
export declare class VerificationStatusApiFixture implements Partial<Readonly<VerificationStatusApi>> {
|
|
5
5
|
/**
|
|
6
6
|
* Fixture associated to function getById
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verification-status-api.jest.fixture.js","sourceRoot":"","sources":["../../../../src/rest/v1/verification-status/verification-status-api.jest.fixture.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"verification-status-api.jest.fixture.js","sourceRoot":"","sources":["../../../../src/rest/v1/verification-status/verification-status-api.jest.fixture.ts"],"names":[],"mappings":";;;AAQA,MAAa,4BAA4B;IAAzC;QAEE;;WAEG;QACI,YAAO,GAC0E,IAAI,CAAC,EAAE,EAAE,CAAC;QAClG;;WAEG;QACI,kBAAa,GAC0E,IAAI,CAAC,EAAE,EAAE,CAAC;QACxG;;WAEG;QACI,mBAAc,GAC0E,IAAI,CAAC,EAAE,EAAE,CAAC;IAC3G,CAAC;CAAA;AAjBD,oEAiBC"}
|
|
@@ -25,9 +25,9 @@ class VerificationStatusApi extends verification_domain_api_1.VerificationDomain
|
|
|
25
25
|
};
|
|
26
26
|
const body = '';
|
|
27
27
|
const path = `/verification/v1/verifications/id/${data['id']}`;
|
|
28
|
-
const basePathUrl = this.client.apiClientOptions.
|
|
28
|
+
const basePathUrl = this.client.apiClientOptions.hostname + path;
|
|
29
29
|
const requestOptions = await this.client.prepareOptions(basePathUrl, 'GET', getParams, headers, body || undefined, path);
|
|
30
|
-
const url = this.client.prepareUrl(requestOptions.
|
|
30
|
+
const url = this.client.prepareUrl(requestOptions.hostname, requestOptions.queryParams);
|
|
31
31
|
return this.client.processCall({
|
|
32
32
|
url,
|
|
33
33
|
requestOptions,
|
|
@@ -49,9 +49,9 @@ class VerificationStatusApi extends verification_domain_api_1.VerificationDomain
|
|
|
49
49
|
};
|
|
50
50
|
const body = '';
|
|
51
51
|
const path = `/verification/v1/verifications/${data['method']}/number/${data['endpoint']}`;
|
|
52
|
-
const basePathUrl = this.client.apiClientOptions.
|
|
52
|
+
const basePathUrl = this.client.apiClientOptions.hostname + path;
|
|
53
53
|
const requestOptions = await this.client.prepareOptions(basePathUrl, 'GET', getParams, headers, body || undefined, path);
|
|
54
|
-
const url = this.client.prepareUrl(requestOptions.
|
|
54
|
+
const url = this.client.prepareUrl(requestOptions.hostname, requestOptions.queryParams);
|
|
55
55
|
return this.client.processCall({
|
|
56
56
|
url,
|
|
57
57
|
requestOptions,
|
|
@@ -73,9 +73,9 @@ class VerificationStatusApi extends verification_domain_api_1.VerificationDomain
|
|
|
73
73
|
};
|
|
74
74
|
const body = '';
|
|
75
75
|
const path = `/verification/v1/verifications/reference/${data['reference']}`;
|
|
76
|
-
const basePathUrl = this.client.apiClientOptions.
|
|
76
|
+
const basePathUrl = this.client.apiClientOptions.hostname + path;
|
|
77
77
|
const requestOptions = await this.client.prepareOptions(basePathUrl, 'GET', getParams, headers, body || undefined, path);
|
|
78
|
-
const url = this.client.prepareUrl(requestOptions.
|
|
78
|
+
const url = this.client.prepareUrl(requestOptions.hostname, requestOptions.queryParams);
|
|
79
79
|
return this.client.processCall({
|
|
80
80
|
url,
|
|
81
81
|
requestOptions,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verification-status-api.js","sourceRoot":"","sources":["../../../../src/rest/v1/verification-status/verification-status-api.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"verification-status-api.js","sourceRoot":"","sources":["../../../../src/rest/v1/verification-status/verification-status-api.ts"],"names":[],"mappings":";;;AAUA,wEAAmE;AAEnE,MAAa,qBAAsB,SAAQ,+CAAqB;IAE9D;;;;OAIG;IAC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AC;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"}
|
|
@@ -1,54 +1,6 @@
|
|
|
1
|
-
import { StartCalloutVerificationResponse,
|
|
1
|
+
import { StartCalloutVerificationResponse, CalloutVerificationReportResponse, StartSeamlessVerificationResponse, StartFlashCallVerificationResponse, FlashCallVerificationReportResponse, StartSmsVerificationResponse, SMSVerificationReportResponse, ReportSmsVerificationByIdRequestData, ReportFlashCallVerificationByIdRequestData, ReportCalloutVerificationByIdRequestData, ReportSmsVerificationByIdentityRequestData, ReportFlashCallVerificationByIdentityRequestData, ReportCalloutVerificationByIdentityRequestData, StartSmsVerificationRequestData, StartFlashCallVerificationRequestData, StartCalloutVerificationRequestData, StartSeamlessVerificationRequestData } from '../../../models';
|
|
2
2
|
import { SinchClientParameters } from '@sinch/sdk-client';
|
|
3
3
|
import { VerificationDomainApi } from '../verification-domain-api';
|
|
4
|
-
interface ReportVerificationByIdRequestDataBase {
|
|
5
|
-
/** The ID of the verification. */
|
|
6
|
-
'id': string;
|
|
7
|
-
}
|
|
8
|
-
export interface ReportSmsVerificationByIdRequestData extends ReportVerificationByIdRequestDataBase {
|
|
9
|
-
/** Request body to report a verification started with an SMS by its ID */
|
|
10
|
-
'reportSmsVerificationByIdRequestBody': SmsVerificationReportRequest;
|
|
11
|
-
}
|
|
12
|
-
export interface ReportFlashCallVerificationByIdRequestData extends ReportVerificationByIdRequestDataBase {
|
|
13
|
-
/** Request body to report a verification started with a flashCall by its ID */
|
|
14
|
-
'reportFlashCallVerificationByIdRequestBody': FlashCallVerificationReportRequest;
|
|
15
|
-
}
|
|
16
|
-
export interface ReportCalloutVerificationByIdRequestData extends ReportVerificationByIdRequestDataBase {
|
|
17
|
-
/** Request body to report a verification started with a callout by its ID */
|
|
18
|
-
'reportCalloutVerificationByIdRequestBody': CalloutVerificationReportRequest;
|
|
19
|
-
}
|
|
20
|
-
interface ReportVerificationByIdentityRequestDataBase {
|
|
21
|
-
/** For type `number` use a [E.164](https://community.sinch.com/t5/Glossary/E-164/ta-p/7537)-compatible phone number. */
|
|
22
|
-
'endpoint': string;
|
|
23
|
-
}
|
|
24
|
-
export interface ReportSmsVerificationByIdentityRequestData extends ReportVerificationByIdentityRequestDataBase {
|
|
25
|
-
/** Request body to report a verification started with an SMS by its identity */
|
|
26
|
-
'reportSmsVerificationByIdentityRequestBody': SmsVerificationReportRequest;
|
|
27
|
-
}
|
|
28
|
-
export interface ReportFlashCallVerificationByIdentityRequestData extends ReportVerificationByIdentityRequestDataBase {
|
|
29
|
-
/** Request body to report a verification started with a flashCall by its identity */
|
|
30
|
-
'reportFlashCallVerificationByIdentityRequestBody': FlashCallVerificationReportRequest;
|
|
31
|
-
}
|
|
32
|
-
export interface ReportCalloutVerificationByIdentityRequestData extends ReportVerificationByIdentityRequestDataBase {
|
|
33
|
-
/** Request body to report a verification started with a callout by its identity */
|
|
34
|
-
'reportCalloutVerificationByIdentityRequestBody': CalloutVerificationReportRequest;
|
|
35
|
-
}
|
|
36
|
-
export interface StartSmsVerificationRequestData {
|
|
37
|
-
/** Request body to start a verification with an SMS */
|
|
38
|
-
'startVerificationWithSmsRequestBody': StartVerificationWithSms;
|
|
39
|
-
}
|
|
40
|
-
export interface StartFlashCallVerificationRequestData {
|
|
41
|
-
/** Request body to start a verification with a flashCall */
|
|
42
|
-
'startVerificationWithFlashCallRequestBody': StartVerificationWithFlashCall;
|
|
43
|
-
}
|
|
44
|
-
export interface StartCalloutVerificationRequestData {
|
|
45
|
-
/** Request body to start a verification with a callout */
|
|
46
|
-
'startVerificationWithCalloutRequestBody': StartVerificationWithCallout;
|
|
47
|
-
}
|
|
48
|
-
export interface StartSeamlessVerificationRequestData {
|
|
49
|
-
/** Request body to start a seamless verification */
|
|
50
|
-
'startSeamlessVerificationRequestBody': StartSeamlessVerification;
|
|
51
|
-
}
|
|
52
4
|
export declare class VerificationsApi extends VerificationDomainApi {
|
|
53
5
|
/**
|
|
54
6
|
* Initialize your interface
|
|
@@ -117,4 +69,3 @@ export declare class VerificationsApi extends VerificationDomainApi {
|
|
|
117
69
|
*/
|
|
118
70
|
startSeamless(data: StartSeamlessVerificationRequestData): Promise<StartSeamlessVerificationResponse>;
|
|
119
71
|
}
|
|
120
|
-
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="jest" />
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { VerificationsApi } from './verifications-api';
|
|
3
|
+
import { StartCalloutVerificationResponse, CalloutVerificationReportResponse, StartSeamlessVerificationResponse, StartFlashCallVerificationResponse, FlashCallVerificationReportResponse, StartSmsVerificationResponse, SMSVerificationReportResponse, StartSmsVerificationRequestData, StartFlashCallVerificationRequestData, StartCalloutVerificationRequestData, StartSeamlessVerificationRequestData, ReportSmsVerificationByIdRequestData, ReportCalloutVerificationByIdRequestData, ReportFlashCallVerificationByIdRequestData, ReportSmsVerificationByIdentityRequestData, ReportFlashCallVerificationByIdentityRequestData, ReportCalloutVerificationByIdentityRequestData } from '../../../models';
|
|
4
4
|
export declare class VerificationsApiFixture implements Partial<Readonly<VerificationsApi>> {
|
|
5
5
|
/**
|
|
6
6
|
* Fixture associated to function reportSmsById
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verifications-api.jest.fixture.js","sourceRoot":"","sources":["../../../../src/rest/v1/verifications/verifications-api.jest.fixture.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"verifications-api.jest.fixture.js","sourceRoot":"","sources":["../../../../src/rest/v1/verifications/verifications-api.jest.fixture.ts"],"names":[],"mappings":";;;AAqBA,MAAa,uBAAuB;IAApC;QAEE;;WAEG;QACI,kBAAa,GAEwB,IAAI,CAAC,EAAE,EAAE,CAAC;QACtD;;WAEG;QACI,wBAAmB,GAEwB,IAAI,CAAC,EAAE,EAAE,CAAC;QAC5D;;WAEG;QACI,sBAAiB,GAEwB,IAAI,CAAC,EAAE,EAAE,CAAC;QAC1D;;WAEG;QACI,wBAAmB,GAG0B,IAAI,CAAC,EAAE,EAAE,CAAC;QAC9D;;WAEG;QACI,8BAAyB,GAG0B,IAAI,CAAC,EAAE,EAAE,CAAC;QACpE;;WAEG;QACI,4BAAuB,GAG0B,IAAI,CAAC,EAAE,EAAE,CAAC;QAClE;;WAEG;QACI,aAAQ,GAEwB,IAAI,CAAC,EAAE,EAAE,CAAC;QACjD;;WAEG;QACI,mBAAc,GAEwB,IAAI,CAAC,EAAE,EAAE,CAAC;QACvD;;WAEG;QACI,iBAAY,GAEwB,IAAI,CAAC,EAAE,EAAE,CAAC;QACrD;;WAEG;QACI,kBAAa,GAEwB,IAAI,CAAC,EAAE,EAAE,CAAC;IACxD,CAAC;CAAA;AAjED,0DAiEC"}
|
|
@@ -28,9 +28,9 @@ class VerificationsApi extends verification_domain_api_1.VerificationDomainApi {
|
|
|
28
28
|
? JSON.stringify(data['reportSmsVerificationByIdRequestBody'])
|
|
29
29
|
: '{}';
|
|
30
30
|
const path = `/verification/v1/verifications/id/${data['id']}`;
|
|
31
|
-
const basePathUrl = this.client.apiClientOptions.
|
|
31
|
+
const basePathUrl = this.client.apiClientOptions.hostname + path;
|
|
32
32
|
const requestOptions = await this.client.prepareOptions(basePathUrl, 'PUT', getParams, headers, body || undefined, path);
|
|
33
|
-
const url = this.client.prepareUrl(requestOptions.
|
|
33
|
+
const url = this.client.prepareUrl(requestOptions.hostname, requestOptions.queryParams);
|
|
34
34
|
return this.client.processCall({
|
|
35
35
|
url,
|
|
36
36
|
requestOptions,
|
|
@@ -55,9 +55,9 @@ class VerificationsApi extends verification_domain_api_1.VerificationDomainApi {
|
|
|
55
55
|
? JSON.stringify(data['reportFlashCallVerificationByIdRequestBody'])
|
|
56
56
|
: '{}';
|
|
57
57
|
const path = `/verification/v1/verifications/id/${data['id']}`;
|
|
58
|
-
const basePathUrl = this.client.apiClientOptions.
|
|
58
|
+
const basePathUrl = this.client.apiClientOptions.hostname + path;
|
|
59
59
|
const requestOptions = await this.client.prepareOptions(basePathUrl, 'PUT', getParams, headers, body || undefined, path);
|
|
60
|
-
const url = this.client.prepareUrl(requestOptions.
|
|
60
|
+
const url = this.client.prepareUrl(requestOptions.hostname, requestOptions.queryParams);
|
|
61
61
|
return this.client.processCall({
|
|
62
62
|
url,
|
|
63
63
|
requestOptions,
|
|
@@ -82,9 +82,9 @@ class VerificationsApi extends verification_domain_api_1.VerificationDomainApi {
|
|
|
82
82
|
? JSON.stringify(data['reportCalloutVerificationByIdRequestBody'])
|
|
83
83
|
: '{}';
|
|
84
84
|
const path = `/verification/v1/verifications/id/${data['id']}`;
|
|
85
|
-
const basePathUrl = this.client.apiClientOptions.
|
|
85
|
+
const basePathUrl = this.client.apiClientOptions.hostname + path;
|
|
86
86
|
const requestOptions = await this.client.prepareOptions(basePathUrl, 'PUT', getParams, headers, body || undefined, path);
|
|
87
|
-
const url = this.client.prepareUrl(requestOptions.
|
|
87
|
+
const url = this.client.prepareUrl(requestOptions.hostname, requestOptions.queryParams);
|
|
88
88
|
return this.client.processCall({
|
|
89
89
|
url,
|
|
90
90
|
requestOptions,
|
|
@@ -109,9 +109,9 @@ class VerificationsApi extends verification_domain_api_1.VerificationDomainApi {
|
|
|
109
109
|
? JSON.stringify(data['reportSmsVerificationByIdentityRequestBody'])
|
|
110
110
|
: '{}';
|
|
111
111
|
const path = `/verification/v1/verifications/number/${data['endpoint']}`;
|
|
112
|
-
const basePathUrl = this.client.apiClientOptions.
|
|
112
|
+
const basePathUrl = this.client.apiClientOptions.hostname + path;
|
|
113
113
|
const requestOptions = await this.client.prepareOptions(basePathUrl, 'PUT', getParams, headers, body || undefined, path);
|
|
114
|
-
const url = this.client.prepareUrl(requestOptions.
|
|
114
|
+
const url = this.client.prepareUrl(requestOptions.hostname, requestOptions.queryParams);
|
|
115
115
|
return this.client.processCall({
|
|
116
116
|
url,
|
|
117
117
|
requestOptions,
|
|
@@ -136,9 +136,9 @@ class VerificationsApi extends verification_domain_api_1.VerificationDomainApi {
|
|
|
136
136
|
? JSON.stringify(data['reportFlashCallVerificationByIdentityRequestBody'])
|
|
137
137
|
: '{}';
|
|
138
138
|
const path = `/verification/v1/verifications/number/${data['endpoint']}`;
|
|
139
|
-
const basePathUrl = this.client.apiClientOptions.
|
|
139
|
+
const basePathUrl = this.client.apiClientOptions.hostname + path;
|
|
140
140
|
const requestOptions = await this.client.prepareOptions(basePathUrl, 'PUT', getParams, headers, body || undefined, path);
|
|
141
|
-
const url = this.client.prepareUrl(requestOptions.
|
|
141
|
+
const url = this.client.prepareUrl(requestOptions.hostname, requestOptions.queryParams);
|
|
142
142
|
return this.client.processCall({
|
|
143
143
|
url,
|
|
144
144
|
requestOptions,
|
|
@@ -163,9 +163,9 @@ class VerificationsApi extends verification_domain_api_1.VerificationDomainApi {
|
|
|
163
163
|
? JSON.stringify(data['reportCalloutVerificationByIdentityRequestBody'])
|
|
164
164
|
: '{}';
|
|
165
165
|
const path = `/verification/v1/verifications/number/${data['endpoint']}`;
|
|
166
|
-
const basePathUrl = this.client.apiClientOptions.
|
|
166
|
+
const basePathUrl = this.client.apiClientOptions.hostname + path;
|
|
167
167
|
const requestOptions = await this.client.prepareOptions(basePathUrl, 'PUT', getParams, headers, body || undefined, path);
|
|
168
|
-
const url = this.client.prepareUrl(requestOptions.
|
|
168
|
+
const url = this.client.prepareUrl(requestOptions.hostname, requestOptions.queryParams);
|
|
169
169
|
return this.client.processCall({
|
|
170
170
|
url,
|
|
171
171
|
requestOptions,
|
|
@@ -190,9 +190,9 @@ class VerificationsApi extends verification_domain_api_1.VerificationDomainApi {
|
|
|
190
190
|
? JSON.stringify(data['startVerificationWithSmsRequestBody'])
|
|
191
191
|
: '{}';
|
|
192
192
|
const path = '/verification/v1/verifications';
|
|
193
|
-
const basePathUrl = this.client.apiClientOptions.
|
|
193
|
+
const basePathUrl = this.client.apiClientOptions.hostname + path;
|
|
194
194
|
const requestOptions = await this.client.prepareOptions(basePathUrl, 'POST', getParams, headers, body || undefined, path);
|
|
195
|
-
const url = this.client.prepareUrl(requestOptions.
|
|
195
|
+
const url = this.client.prepareUrl(requestOptions.hostname, requestOptions.queryParams);
|
|
196
196
|
return this.client.processCall({
|
|
197
197
|
url,
|
|
198
198
|
requestOptions,
|
|
@@ -217,9 +217,9 @@ class VerificationsApi extends verification_domain_api_1.VerificationDomainApi {
|
|
|
217
217
|
? JSON.stringify(data['startVerificationWithFlashCallRequestBody'])
|
|
218
218
|
: '{}';
|
|
219
219
|
const path = '/verification/v1/verifications';
|
|
220
|
-
const basePathUrl = this.client.apiClientOptions.
|
|
220
|
+
const basePathUrl = this.client.apiClientOptions.hostname + path;
|
|
221
221
|
const requestOptions = await this.client.prepareOptions(basePathUrl, 'POST', getParams, headers, body || undefined, path);
|
|
222
|
-
const url = this.client.prepareUrl(requestOptions.
|
|
222
|
+
const url = this.client.prepareUrl(requestOptions.hostname, requestOptions.queryParams);
|
|
223
223
|
return this.client.processCall({
|
|
224
224
|
url,
|
|
225
225
|
requestOptions,
|
|
@@ -244,9 +244,9 @@ class VerificationsApi extends verification_domain_api_1.VerificationDomainApi {
|
|
|
244
244
|
? JSON.stringify(data['startVerificationWithCalloutRequestBody'])
|
|
245
245
|
: '{}';
|
|
246
246
|
const path = '/verification/v1/verifications';
|
|
247
|
-
const basePathUrl = this.client.apiClientOptions.
|
|
247
|
+
const basePathUrl = this.client.apiClientOptions.hostname + path;
|
|
248
248
|
const requestOptions = await this.client.prepareOptions(basePathUrl, 'POST', getParams, headers, body || undefined, path);
|
|
249
|
-
const url = this.client.prepareUrl(requestOptions.
|
|
249
|
+
const url = this.client.prepareUrl(requestOptions.hostname, requestOptions.queryParams);
|
|
250
250
|
return this.client.processCall({
|
|
251
251
|
url,
|
|
252
252
|
requestOptions,
|
|
@@ -271,9 +271,9 @@ class VerificationsApi extends verification_domain_api_1.VerificationDomainApi {
|
|
|
271
271
|
? JSON.stringify(data['startSeamlessVerificationRequestBody'])
|
|
272
272
|
: '{}';
|
|
273
273
|
const path = '/verification/v1/verifications';
|
|
274
|
-
const basePathUrl = this.client.apiClientOptions.
|
|
274
|
+
const basePathUrl = this.client.apiClientOptions.hostname + path;
|
|
275
275
|
const requestOptions = await this.client.prepareOptions(basePathUrl, 'POST', getParams, headers, body || undefined, path);
|
|
276
|
-
const url = this.client.prepareUrl(requestOptions.
|
|
276
|
+
const url = this.client.prepareUrl(requestOptions.hostname, requestOptions.queryParams);
|
|
277
277
|
return this.client.processCall({
|
|
278
278
|
url,
|
|
279
279
|
requestOptions,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verifications-api.js","sourceRoot":"","sources":["../../../../src/rest/v1/verifications/verifications-api.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"verifications-api.js","sourceRoot":"","sources":["../../../../src/rest/v1/verifications/verifications-api.ts"],"names":[],"mappings":";;;AAuBA,wEAAmE;AAEnE,MAAa,gBAAiB,SAAQ,+CAAqB;IAEzD;;;;OAIG;IACH,YAAY,qBAA4C;QACtD,KAAK,CAAC,qBAAqB,EAAE,kBAAkB,CAAC,CAAC;IACnD,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,aAAa,CAAC,IAA0C;QACnE,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;QACnC,IAAI,CAAC,oCAA4C,CAAC,MAAM,GAAG,KAAK,C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AAM,GAAG,UAAU,CAAC;QACvE,MAAM,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAuC,IAAI,EAAE,EAAa,CAAC,CAAC;QAC5G,MAAM,OAAO,GAA0C;YACrD,cAAc,EAAE,iCAAiC;YACjD,QAAQ,EAAE,kBAAkB;SAC7B,CAAC;QAEF,MAAM,IAAI,GAAgB,IAAI,CAAC,sCAAsC,CAAC;YACpE,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,sCAAsC,CAAC,CAAC;YAC9D,CAAC,CAAC,IAAI,CAAC;QACT,MAAM,IAAI,GAAG,gCAAgC,CAAC;QAC9C,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,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,CAAoC;YAChE,GAAG;YACH,cAAc;YACd,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,WAAW,EAAE,2BAA2B;SACzC,CAAC,CAAC;IACL,CAAC;CAEF;AA3VD,4CA2VC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sinch/verification",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"description": "Sinch Verification API",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"repository": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"compile": "tsc -p tsconfig.build.json && tsc -p tsconfig.tests.json && rimraf dist/tests tsconfig.build.tsbuildinfo"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@sinch/sdk-client": "^0.0.
|
|
31
|
+
"@sinch/sdk-client": "^0.0.5"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {},
|
|
34
34
|
"publishConfig": {
|