@smileid/usesmileid-nodejs 12.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/LICENSE +21 -0
- package/README.md +335 -0
- package/dist/client/auth.d.ts +32 -0
- package/dist/client/auth.js +83 -0
- package/dist/client/client.d.ts +52 -0
- package/dist/client/client.js +155 -0
- package/dist/client/config.d.ts +40 -0
- package/dist/client/config.js +52 -0
- package/dist/client/transport.d.ts +64 -0
- package/dist/client/transport.js +192 -0
- package/dist/errors/index.d.ts +91 -0
- package/dist/errors/index.js +143 -0
- package/dist/generated/models/index.d.ts +293 -0
- package/dist/generated/models/index.js +70 -0
- package/dist/generated/operations/index.d.ts +26 -0
- package/dist/generated/operations/index.js +421 -0
- package/dist/helpers/binary.d.ts +22 -0
- package/dist/helpers/binary.js +75 -0
- package/dist/helpers/case.d.ts +11 -0
- package/dist/helpers/case.js +29 -0
- package/dist/helpers/consent.d.ts +20 -0
- package/dist/helpers/consent.js +22 -0
- package/dist/helpers/jwt.d.ts +10 -0
- package/dist/helpers/jwt.js +30 -0
- package/dist/helpers/multipart.d.ts +49 -0
- package/dist/helpers/multipart.js +67 -0
- package/dist/helpers/poll.d.ts +13 -0
- package/dist/helpers/poll.js +35 -0
- package/dist/helpers/validation.d.ts +28 -0
- package/dist/helpers/validation.js +86 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +38 -0
- package/dist/version.d.ts +1 -0
- package/dist/version.js +4 -0
- package/package.json +46 -0
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wire models and public types (spec §5, §6).
|
|
3
|
+
*
|
|
4
|
+
* Generator-owned later: these mirror the request/response shapes and enums.
|
|
5
|
+
* The public API is camelCase; the wire is always snake_case. The camel↔snake
|
|
6
|
+
* mapping happens in the operation functions (see ../operations), never here.
|
|
7
|
+
*/
|
|
8
|
+
import type { Readable } from 'node:stream';
|
|
9
|
+
/** Environment selector. Sandbox by default (spec §2.1). */
|
|
10
|
+
export type Environment = 'sandbox' | 'production';
|
|
11
|
+
/**
|
|
12
|
+
* A binary input. Accepts a filesystem path, a byte buffer, a Blob, or a
|
|
13
|
+
* readable stream. Wrap it to override the filename or content type on the wire.
|
|
14
|
+
*/
|
|
15
|
+
export type BinaryInput = string | Buffer | Uint8Array | Blob | Readable | {
|
|
16
|
+
data: string | Buffer | Uint8Array | Blob | Readable;
|
|
17
|
+
filename?: string;
|
|
18
|
+
contentType?: string;
|
|
19
|
+
};
|
|
20
|
+
/** Per-request options (spec §4: the last argument to every method). */
|
|
21
|
+
export interface RequestOptions {
|
|
22
|
+
/** Per-request total timeout in milliseconds. Overrides the client default. */
|
|
23
|
+
timeout?: number;
|
|
24
|
+
/** Callback URL override for this request. */
|
|
25
|
+
callbackUrl?: string;
|
|
26
|
+
/** An AbortSignal to cancel the request. */
|
|
27
|
+
signal?: AbortSignal;
|
|
28
|
+
}
|
|
29
|
+
/** Consent block, required on all seven entry endpoints (spec §5.1). */
|
|
30
|
+
export interface Consent {
|
|
31
|
+
/** Must be true. */
|
|
32
|
+
granted: true;
|
|
33
|
+
/** ISO 8601 timestamp. */
|
|
34
|
+
grantedAt: string;
|
|
35
|
+
/** ISO 639-1 language code, uppercase (e.g. "EN"). */
|
|
36
|
+
noticeLanguage: string;
|
|
37
|
+
/** URL of the privacy notice shown to the user. */
|
|
38
|
+
noticePrivacyPolicyUrl: string;
|
|
39
|
+
}
|
|
40
|
+
/** Personal details, required on all seven entry endpoints (spec §5.1). */
|
|
41
|
+
export interface UserDetails {
|
|
42
|
+
givenNames: string;
|
|
43
|
+
lastName: string;
|
|
44
|
+
/** At least one of email / phoneNumber is required (validated client-side). */
|
|
45
|
+
email?: string | null;
|
|
46
|
+
/** E.164 phone number. At least one of email / phoneNumber is required. */
|
|
47
|
+
phoneNumber?: string | null;
|
|
48
|
+
}
|
|
49
|
+
/** Free-form partner-supplied key/value pairs (spec §5.1). */
|
|
50
|
+
export type PartnerParams = Record<string, string>;
|
|
51
|
+
/** A single metadata entry (spec §5.1). */
|
|
52
|
+
export interface MetadataItem {
|
|
53
|
+
name: string;
|
|
54
|
+
value: string;
|
|
55
|
+
}
|
|
56
|
+
/** Fields shared by the entry endpoints that always carry consent + user details. */
|
|
57
|
+
interface EntryParamsBase {
|
|
58
|
+
consent: Consent;
|
|
59
|
+
userDetails: UserDetails;
|
|
60
|
+
callbackUrl?: string;
|
|
61
|
+
partnerParams?: PartnerParams;
|
|
62
|
+
metadata?: MetadataItem[];
|
|
63
|
+
}
|
|
64
|
+
/** enhanced_kyc.verify (spec §6.1). */
|
|
65
|
+
export interface EnhancedKycParams extends EntryParamsBase {
|
|
66
|
+
country: string;
|
|
67
|
+
idType: string;
|
|
68
|
+
idNumber: string;
|
|
69
|
+
bankCode?: string;
|
|
70
|
+
operator?: string;
|
|
71
|
+
/** Sent as the User-ID header. */
|
|
72
|
+
userId?: string;
|
|
73
|
+
}
|
|
74
|
+
/** documents.verify (spec §6.2). */
|
|
75
|
+
export interface DocumentVerificationParams extends EntryParamsBase {
|
|
76
|
+
selfieImage: BinaryInput;
|
|
77
|
+
livenessImages: BinaryInput[];
|
|
78
|
+
document: BinaryInput;
|
|
79
|
+
documentBack?: BinaryInput;
|
|
80
|
+
country: string;
|
|
81
|
+
/** Optional; auto-classified if omitted. */
|
|
82
|
+
idType?: string;
|
|
83
|
+
/** Sent as the User-ID header. */
|
|
84
|
+
userId?: string;
|
|
85
|
+
}
|
|
86
|
+
/** documents.verifyEnhanced (spec §6.3). Same as §6.2 but idType is required. */
|
|
87
|
+
export interface EnhancedDocumentVerificationParams extends EntryParamsBase {
|
|
88
|
+
selfieImage: BinaryInput;
|
|
89
|
+
livenessImages: BinaryInput[];
|
|
90
|
+
document: BinaryInput;
|
|
91
|
+
documentBack?: BinaryInput;
|
|
92
|
+
country: string;
|
|
93
|
+
idType: string;
|
|
94
|
+
/** Sent as the User-ID header. */
|
|
95
|
+
userId?: string;
|
|
96
|
+
}
|
|
97
|
+
/** biometricKyc.verify (spec §6.4). */
|
|
98
|
+
export interface BiometricKycParams extends EntryParamsBase {
|
|
99
|
+
selfieImage: BinaryInput;
|
|
100
|
+
livenessImages: BinaryInput[];
|
|
101
|
+
country: string;
|
|
102
|
+
idType: string;
|
|
103
|
+
idNumber: string;
|
|
104
|
+
sandboxResult?: number;
|
|
105
|
+
/** Sent as the User-ID header. */
|
|
106
|
+
userId?: string;
|
|
107
|
+
}
|
|
108
|
+
/** biometric.enroll → POST /v3/registration (spec §6.5). */
|
|
109
|
+
export interface RegistrationParams extends EntryParamsBase {
|
|
110
|
+
selfieImage: BinaryInput;
|
|
111
|
+
livenessImages: BinaryInput[];
|
|
112
|
+
allowNewEnroll?: boolean;
|
|
113
|
+
sandboxResult?: number;
|
|
114
|
+
/** Sent as the User-ID header. */
|
|
115
|
+
userId?: string;
|
|
116
|
+
}
|
|
117
|
+
/** biometric.authenticate (spec §6.6). user_id goes in the BODY (required). */
|
|
118
|
+
export interface AuthenticationParams extends EntryParamsBase {
|
|
119
|
+
/** Required; must match an enrollee. Serialized as a body field, not a header. */
|
|
120
|
+
userId: string;
|
|
121
|
+
/** Required unless useEnrolledImage is true. */
|
|
122
|
+
selfieImage?: BinaryInput;
|
|
123
|
+
/** Required unless useEnrolledImage is true. */
|
|
124
|
+
livenessImages?: BinaryInput[];
|
|
125
|
+
useEnrolledImage?: boolean;
|
|
126
|
+
sandboxResult?: number;
|
|
127
|
+
}
|
|
128
|
+
/** Allowed values for compare's comparisonImageType. */
|
|
129
|
+
export type ComparisonImageType = 'DOCUMENT' | 'ID_PHOTO' | 'PORTRAIT';
|
|
130
|
+
/** biometric.compare (spec §6.7). user_id is an optional BODY field. */
|
|
131
|
+
export interface CompareParams extends EntryParamsBase {
|
|
132
|
+
selfieImage: BinaryInput;
|
|
133
|
+
comparisonImage: BinaryInput;
|
|
134
|
+
comparisonImageType: ComparisonImageType;
|
|
135
|
+
livenessImages?: BinaryInput[];
|
|
136
|
+
allowNewEnroll?: boolean;
|
|
137
|
+
/** Optional; serialized as a body field. If set and it passes, enrolls the user. */
|
|
138
|
+
userId?: string;
|
|
139
|
+
sandboxResult?: number;
|
|
140
|
+
}
|
|
141
|
+
/** verifications.replay optional body (spec §6.10, corrected to multipart). */
|
|
142
|
+
export interface ReplayParams {
|
|
143
|
+
callbackUrl?: string;
|
|
144
|
+
}
|
|
145
|
+
/** The nine allowed fraud reasons (spec §6.11). */
|
|
146
|
+
export type FraudReason = 'FIRST_PARTY_FRAUD' | 'SECOND_PARTY_FRAUD' | 'THIRD_PARTY_FRAUD' | 'SYNTHETIC_IDENTITY' | 'ACCOUNT_TAKEOVER' | 'DOCUMENT_FORGERY' | 'IDENTITY_FARMING' | 'MULE_ACCOUNT' | 'OTHER';
|
|
147
|
+
/** users.reportFraud (spec §6.11). */
|
|
148
|
+
export interface ReportFraudParams {
|
|
149
|
+
isFraud: boolean;
|
|
150
|
+
/** Email of the reporter. */
|
|
151
|
+
reportedBy: string;
|
|
152
|
+
/** Required when isFraud is true. */
|
|
153
|
+
reason?: FraudReason;
|
|
154
|
+
/** Required when isFraud is false OR reason is OTHER. Max 500 chars. */
|
|
155
|
+
notes?: string;
|
|
156
|
+
}
|
|
157
|
+
/** users.flagFraud convenience wrapper params (spec §4). */
|
|
158
|
+
export interface FlagFraudParams {
|
|
159
|
+
reason: FraudReason;
|
|
160
|
+
notes?: string;
|
|
161
|
+
reportedBy: string;
|
|
162
|
+
}
|
|
163
|
+
/** users.clearFraud convenience wrapper params (spec §4). */
|
|
164
|
+
export interface ClearFraudParams {
|
|
165
|
+
notes: string;
|
|
166
|
+
reportedBy: string;
|
|
167
|
+
}
|
|
168
|
+
/** services.bankCodes query (spec §6.12). */
|
|
169
|
+
export interface BankCodesParams {
|
|
170
|
+
country?: string;
|
|
171
|
+
}
|
|
172
|
+
/** services.supportedIdTypes query (spec §6.13). */
|
|
173
|
+
export interface SupportedIdTypesParams {
|
|
174
|
+
country?: string;
|
|
175
|
+
}
|
|
176
|
+
/** services.supportedDocuments query (spec §6.14). */
|
|
177
|
+
export interface SupportedDocumentsParams {
|
|
178
|
+
continent?: 'AFRICA' | 'ASIA' | 'EUROPE' | 'NORTH AMERICA' | 'OCEANIA' | 'SOUTH AMERICA';
|
|
179
|
+
countryCode?: string;
|
|
180
|
+
locale?: 'en-GB' | 'fr-FR' | 'ar-EG';
|
|
181
|
+
}
|
|
182
|
+
/** services.idStatus query (spec §6.15). */
|
|
183
|
+
export interface IdStatusParams {
|
|
184
|
+
country: string;
|
|
185
|
+
idType: string;
|
|
186
|
+
}
|
|
187
|
+
/** Options for verifications.waitUntilComplete (spec §6.9). */
|
|
188
|
+
export interface WaitOptions {
|
|
189
|
+
/** Poll interval in milliseconds. Default 2000. */
|
|
190
|
+
interval?: number;
|
|
191
|
+
/** Overall timeout in milliseconds. Default 60000. */
|
|
192
|
+
timeout?: number;
|
|
193
|
+
/** When true (default), a not_found status keeps polling instead of returning. */
|
|
194
|
+
treatNotFoundAsPending?: boolean;
|
|
195
|
+
/** Timeout in milliseconds for each individual poll request. */
|
|
196
|
+
requestTimeout?: number;
|
|
197
|
+
/** Aborts both the polling loop and any in-flight status request. */
|
|
198
|
+
signal?: AbortSignal;
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* Response to the entry endpoints (HTTP 202) and to replay / report_fraud.
|
|
202
|
+
*
|
|
203
|
+
* The wire `status` casing differs by endpoint ("Accepted" vs "accepted");
|
|
204
|
+
* {@link AcceptedResponse.isAccepted} normalizes it (spec §5.2).
|
|
205
|
+
*/
|
|
206
|
+
export declare class AcceptedResponse {
|
|
207
|
+
readonly status: string;
|
|
208
|
+
readonly message: string;
|
|
209
|
+
readonly jobId: string | null;
|
|
210
|
+
readonly userId: string | null;
|
|
211
|
+
readonly createdAt: string | null;
|
|
212
|
+
constructor(fields: {
|
|
213
|
+
status: string;
|
|
214
|
+
message: string;
|
|
215
|
+
jobId?: string | null;
|
|
216
|
+
userId?: string | null;
|
|
217
|
+
createdAt?: string | null;
|
|
218
|
+
});
|
|
219
|
+
/** True when the normalized status is "accepted" (case-insensitive). */
|
|
220
|
+
get isAccepted(): boolean;
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* Job status from GET /v3/status (spec §5.2, §6.8).
|
|
224
|
+
*
|
|
225
|
+
* `status` is `processing` while the job runs, `not_found` for an unknown job,
|
|
226
|
+
* and otherwise the terminal decision itself: `clear`, `block`, `attention` or
|
|
227
|
+
* `error`. `message` carries a human-readable note ("Job completed" on a
|
|
228
|
+
* finished job) and never the decision.
|
|
229
|
+
*/
|
|
230
|
+
export declare class JobStatus {
|
|
231
|
+
readonly status: string;
|
|
232
|
+
readonly jobId: string | null;
|
|
233
|
+
readonly userId: string | null;
|
|
234
|
+
readonly message: string | null;
|
|
235
|
+
constructor(fields: {
|
|
236
|
+
status: string;
|
|
237
|
+
jobId?: string | null;
|
|
238
|
+
userId?: string | null;
|
|
239
|
+
message?: string | null;
|
|
240
|
+
});
|
|
241
|
+
/**
|
|
242
|
+
* True once the job has reached a terminal decision — any status that is
|
|
243
|
+
* neither `processing` nor `not_found`. A blank or missing status is not a
|
|
244
|
+
* decision, so a truncated response never stops the poller.
|
|
245
|
+
*/
|
|
246
|
+
get isComplete(): boolean;
|
|
247
|
+
get isProcessing(): boolean;
|
|
248
|
+
get isNotFound(): boolean;
|
|
249
|
+
}
|
|
250
|
+
/** services.bankCodes response (spec §5.2). */
|
|
251
|
+
export interface BankCodesResponse {
|
|
252
|
+
bankCodes: {
|
|
253
|
+
code: string;
|
|
254
|
+
country: string;
|
|
255
|
+
name: string;
|
|
256
|
+
}[];
|
|
257
|
+
}
|
|
258
|
+
/** services.supportedIdTypes response (spec §5.2). */
|
|
259
|
+
export interface SupportedIdTypesResponse {
|
|
260
|
+
idTypes: {
|
|
261
|
+
bankCode?: string;
|
|
262
|
+
country: string;
|
|
263
|
+
label: string;
|
|
264
|
+
regex: string;
|
|
265
|
+
requiredFields: string[];
|
|
266
|
+
type: string;
|
|
267
|
+
}[];
|
|
268
|
+
}
|
|
269
|
+
/** services.supportedDocuments response (spec §5.2). */
|
|
270
|
+
export interface SupportedDocumentsResponse {
|
|
271
|
+
validDocuments: {
|
|
272
|
+
country: {
|
|
273
|
+
code: string;
|
|
274
|
+
name: string;
|
|
275
|
+
continent: string;
|
|
276
|
+
};
|
|
277
|
+
idTypes: {
|
|
278
|
+
code: string;
|
|
279
|
+
name: string;
|
|
280
|
+
example: string[];
|
|
281
|
+
hasBack: boolean;
|
|
282
|
+
}[];
|
|
283
|
+
}[];
|
|
284
|
+
}
|
|
285
|
+
/** services.idStatus response (spec §5.2, §6.15). */
|
|
286
|
+
export interface IdStatusResponse {
|
|
287
|
+
lastChecked: string;
|
|
288
|
+
lastCheckStatus: string;
|
|
289
|
+
lastHourSuccessRate: string;
|
|
290
|
+
lastKnownStatus: string;
|
|
291
|
+
lastCheckSuccessRate: string;
|
|
292
|
+
}
|
|
293
|
+
export {};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Wire models and public types (spec §5, §6).
|
|
4
|
+
*
|
|
5
|
+
* Generator-owned later: these mirror the request/response shapes and enums.
|
|
6
|
+
* The public API is camelCase; the wire is always snake_case. The camel↔snake
|
|
7
|
+
* mapping happens in the operation functions (see ../operations), never here.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.JobStatus = exports.AcceptedResponse = void 0;
|
|
11
|
+
/**
|
|
12
|
+
* Response to the entry endpoints (HTTP 202) and to replay / report_fraud.
|
|
13
|
+
*
|
|
14
|
+
* The wire `status` casing differs by endpoint ("Accepted" vs "accepted");
|
|
15
|
+
* {@link AcceptedResponse.isAccepted} normalizes it (spec §5.2).
|
|
16
|
+
*/
|
|
17
|
+
class AcceptedResponse {
|
|
18
|
+
status;
|
|
19
|
+
message;
|
|
20
|
+
jobId;
|
|
21
|
+
userId;
|
|
22
|
+
createdAt;
|
|
23
|
+
constructor(fields) {
|
|
24
|
+
this.status = fields.status;
|
|
25
|
+
this.message = fields.message;
|
|
26
|
+
this.jobId = fields.jobId ?? null;
|
|
27
|
+
this.userId = fields.userId ?? null;
|
|
28
|
+
this.createdAt = fields.createdAt ?? null;
|
|
29
|
+
}
|
|
30
|
+
/** True when the normalized status is "accepted" (case-insensitive). */
|
|
31
|
+
get isAccepted() {
|
|
32
|
+
return this.status.toLowerCase() === 'accepted';
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.AcceptedResponse = AcceptedResponse;
|
|
36
|
+
/**
|
|
37
|
+
* Job status from GET /v3/status (spec §5.2, §6.8).
|
|
38
|
+
*
|
|
39
|
+
* `status` is `processing` while the job runs, `not_found` for an unknown job,
|
|
40
|
+
* and otherwise the terminal decision itself: `clear`, `block`, `attention` or
|
|
41
|
+
* `error`. `message` carries a human-readable note ("Job completed" on a
|
|
42
|
+
* finished job) and never the decision.
|
|
43
|
+
*/
|
|
44
|
+
class JobStatus {
|
|
45
|
+
status;
|
|
46
|
+
jobId;
|
|
47
|
+
userId;
|
|
48
|
+
message;
|
|
49
|
+
constructor(fields) {
|
|
50
|
+
this.status = fields.status;
|
|
51
|
+
this.jobId = fields.jobId ?? null;
|
|
52
|
+
this.userId = fields.userId ?? null;
|
|
53
|
+
this.message = fields.message ?? null;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* True once the job has reached a terminal decision — any status that is
|
|
57
|
+
* neither `processing` nor `not_found`. A blank or missing status is not a
|
|
58
|
+
* decision, so a truncated response never stops the poller.
|
|
59
|
+
*/
|
|
60
|
+
get isComplete() {
|
|
61
|
+
return Boolean(this.status) && !this.isProcessing && !this.isNotFound;
|
|
62
|
+
}
|
|
63
|
+
get isProcessing() {
|
|
64
|
+
return this.status === 'processing';
|
|
65
|
+
}
|
|
66
|
+
get isNotFound() {
|
|
67
|
+
return this.status === 'not_found';
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
exports.JobStatus = JobStatus;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Thin per-operation functions (spec §3, §6).
|
|
3
|
+
*
|
|
4
|
+
* Generator-owned later: each function takes typed camelCase params, maps them
|
|
5
|
+
* to the verbatim snake_case wire (headers / query / path / multipart / JSON),
|
|
6
|
+
* calls the transport, and maps the response back to a public model. All wire
|
|
7
|
+
* field names are snake_case; the mapping boundary lives here.
|
|
8
|
+
*/
|
|
9
|
+
import type { Transport } from '../../client/transport.js';
|
|
10
|
+
import { AcceptedResponse, JobStatus, type AuthenticationParams, type BankCodesParams, type BankCodesResponse, type BiometricKycParams, type CompareParams, type DocumentVerificationParams, type EnhancedDocumentVerificationParams, type EnhancedKycParams, type IdStatusParams, type IdStatusResponse, type RegistrationParams, type ReportFraudParams, type RequestOptions, type SupportedDocumentsParams, type SupportedDocumentsResponse, type SupportedIdTypesParams, type SupportedIdTypesResponse } from '../models/index.js';
|
|
11
|
+
export declare function enhancedKyc(transport: Transport, params: EnhancedKycParams, opts?: RequestOptions): Promise<AcceptedResponse>;
|
|
12
|
+
export declare function documentVerification(transport: Transport, params: DocumentVerificationParams, opts?: RequestOptions): Promise<AcceptedResponse>;
|
|
13
|
+
export declare function enhancedDocumentVerification(transport: Transport, params: EnhancedDocumentVerificationParams, opts?: RequestOptions): Promise<AcceptedResponse>;
|
|
14
|
+
export declare function biometricKyc(transport: Transport, params: BiometricKycParams, opts?: RequestOptions): Promise<AcceptedResponse>;
|
|
15
|
+
export declare function registration(transport: Transport, params: RegistrationParams, opts?: RequestOptions): Promise<AcceptedResponse>;
|
|
16
|
+
export declare function authentication(transport: Transport, params: AuthenticationParams, opts?: RequestOptions): Promise<AcceptedResponse>;
|
|
17
|
+
export declare function compare(transport: Transport, params: CompareParams, opts?: RequestOptions): Promise<AcceptedResponse>;
|
|
18
|
+
export declare function verificationStatus(transport: Transport, jobId: string, opts?: RequestOptions): Promise<JobStatus>;
|
|
19
|
+
export declare function replayCallback(transport: Transport, jobId: string, params?: {
|
|
20
|
+
callbackUrl?: string;
|
|
21
|
+
}, opts?: RequestOptions): Promise<AcceptedResponse>;
|
|
22
|
+
export declare function reportFraud(transport: Transport, userId: string, params: ReportFraudParams, opts?: RequestOptions): Promise<AcceptedResponse>;
|
|
23
|
+
export declare function bankCodes(transport: Transport, params?: BankCodesParams, opts?: RequestOptions): Promise<BankCodesResponse>;
|
|
24
|
+
export declare function supportedIdTypes(transport: Transport, params?: SupportedIdTypesParams, opts?: RequestOptions): Promise<SupportedIdTypesResponse>;
|
|
25
|
+
export declare function supportedDocuments(transport: Transport, params?: SupportedDocumentsParams, opts?: RequestOptions): Promise<SupportedDocumentsResponse>;
|
|
26
|
+
export declare function idStatus(transport: Transport, params: IdStatusParams, opts?: RequestOptions): Promise<IdStatusResponse>;
|