@alicloud/cloudauth20190307 3.4.1 → 3.5.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/dist/client.d.ts +347 -0
- package/dist/client.js +460 -4
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +769 -46
package/dist/client.d.ts
CHANGED
|
@@ -191,6 +191,106 @@ export declare class CredentialVerifyResponseBodyResultObject extends $dara.Mode
|
|
|
191
191
|
[key: string]: any;
|
|
192
192
|
});
|
|
193
193
|
}
|
|
194
|
+
export declare class CredentialVerifyV2RequestMerchantDetail extends $dara.Model {
|
|
195
|
+
/**
|
|
196
|
+
* @example
|
|
197
|
+
* MerchantName
|
|
198
|
+
*/
|
|
199
|
+
key?: string;
|
|
200
|
+
/**
|
|
201
|
+
* @example
|
|
202
|
+
* ***
|
|
203
|
+
*/
|
|
204
|
+
value?: string;
|
|
205
|
+
static names(): {
|
|
206
|
+
[key: string]: string;
|
|
207
|
+
};
|
|
208
|
+
static types(): {
|
|
209
|
+
[key: string]: any;
|
|
210
|
+
};
|
|
211
|
+
validate(): void;
|
|
212
|
+
constructor(map?: {
|
|
213
|
+
[key: string]: any;
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
export declare class CredentialVerifyV2AdvanceRequestMerchantDetail extends $dara.Model {
|
|
217
|
+
/**
|
|
218
|
+
* @example
|
|
219
|
+
* MerchantName
|
|
220
|
+
*/
|
|
221
|
+
key?: string;
|
|
222
|
+
/**
|
|
223
|
+
* @example
|
|
224
|
+
* ***
|
|
225
|
+
*/
|
|
226
|
+
value?: string;
|
|
227
|
+
static names(): {
|
|
228
|
+
[key: string]: string;
|
|
229
|
+
};
|
|
230
|
+
static types(): {
|
|
231
|
+
[key: string]: any;
|
|
232
|
+
};
|
|
233
|
+
validate(): void;
|
|
234
|
+
constructor(map?: {
|
|
235
|
+
[key: string]: any;
|
|
236
|
+
});
|
|
237
|
+
}
|
|
238
|
+
export declare class CredentialVerifyV2ResponseBodyResultObjectVlResult extends $dara.Model {
|
|
239
|
+
/**
|
|
240
|
+
* @example
|
|
241
|
+
* true
|
|
242
|
+
*/
|
|
243
|
+
success?: boolean;
|
|
244
|
+
vlContent?: string;
|
|
245
|
+
static names(): {
|
|
246
|
+
[key: string]: string;
|
|
247
|
+
};
|
|
248
|
+
static types(): {
|
|
249
|
+
[key: string]: any;
|
|
250
|
+
};
|
|
251
|
+
validate(): void;
|
|
252
|
+
constructor(map?: {
|
|
253
|
+
[key: string]: any;
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
export declare class CredentialVerifyV2ResponseBodyResultObject extends $dara.Model {
|
|
257
|
+
materialInfo?: string;
|
|
258
|
+
ocrInfo?: string;
|
|
259
|
+
/**
|
|
260
|
+
* @example
|
|
261
|
+
* 1
|
|
262
|
+
*/
|
|
263
|
+
result?: string;
|
|
264
|
+
riskScore?: {
|
|
265
|
+
[key: string]: string;
|
|
266
|
+
};
|
|
267
|
+
/**
|
|
268
|
+
* @example
|
|
269
|
+
* PS,SCREEN_PHOTO
|
|
270
|
+
*/
|
|
271
|
+
riskTag?: string;
|
|
272
|
+
/**
|
|
273
|
+
* @example
|
|
274
|
+
* **
|
|
275
|
+
*/
|
|
276
|
+
verifyDetail?: string;
|
|
277
|
+
/**
|
|
278
|
+
* @example
|
|
279
|
+
* *
|
|
280
|
+
*/
|
|
281
|
+
verifyResult?: string;
|
|
282
|
+
vlResult?: CredentialVerifyV2ResponseBodyResultObjectVlResult;
|
|
283
|
+
static names(): {
|
|
284
|
+
[key: string]: string;
|
|
285
|
+
};
|
|
286
|
+
static types(): {
|
|
287
|
+
[key: string]: any;
|
|
288
|
+
};
|
|
289
|
+
validate(): void;
|
|
290
|
+
constructor(map?: {
|
|
291
|
+
[key: string]: any;
|
|
292
|
+
});
|
|
293
|
+
}
|
|
194
294
|
export declare class DeepfakeDetectResponseBodyResultObject extends $dara.Model {
|
|
195
295
|
/**
|
|
196
296
|
* @example
|
|
@@ -2266,6 +2366,237 @@ export declare class CredentialVerifyResponse extends $dara.Model {
|
|
|
2266
2366
|
[key: string]: any;
|
|
2267
2367
|
});
|
|
2268
2368
|
}
|
|
2369
|
+
export declare class CredentialVerifyV2Request extends $dara.Model {
|
|
2370
|
+
/**
|
|
2371
|
+
* @example
|
|
2372
|
+
* 4601*****
|
|
2373
|
+
*/
|
|
2374
|
+
certNum?: string;
|
|
2375
|
+
/**
|
|
2376
|
+
* @example
|
|
2377
|
+
* 0104
|
|
2378
|
+
*/
|
|
2379
|
+
credName?: string;
|
|
2380
|
+
/**
|
|
2381
|
+
* @example
|
|
2382
|
+
* 01
|
|
2383
|
+
*/
|
|
2384
|
+
credType?: string;
|
|
2385
|
+
/**
|
|
2386
|
+
* @example
|
|
2387
|
+
* 4****************1
|
|
2388
|
+
*/
|
|
2389
|
+
identifyNum?: string;
|
|
2390
|
+
imageFile?: string;
|
|
2391
|
+
/**
|
|
2392
|
+
* @example
|
|
2393
|
+
* http://marry.momocdn.com/avatar/3B/B6/3BB6527E-7467-926E-1048-B43614F20CC420230803_L.jpg
|
|
2394
|
+
*/
|
|
2395
|
+
imageUrl?: string;
|
|
2396
|
+
/**
|
|
2397
|
+
* @example
|
|
2398
|
+
* 0
|
|
2399
|
+
*/
|
|
2400
|
+
isCheck?: string;
|
|
2401
|
+
/**
|
|
2402
|
+
* @example
|
|
2403
|
+
* 0
|
|
2404
|
+
*/
|
|
2405
|
+
isOcr?: string;
|
|
2406
|
+
merchantDetail?: CredentialVerifyV2RequestMerchantDetail[];
|
|
2407
|
+
merchantId?: string;
|
|
2408
|
+
/**
|
|
2409
|
+
* @example
|
|
2410
|
+
* ANTI_FAKE_CHECK
|
|
2411
|
+
*/
|
|
2412
|
+
productCode?: string;
|
|
2413
|
+
prompt?: string;
|
|
2414
|
+
/**
|
|
2415
|
+
* @example
|
|
2416
|
+
* DEFAULT
|
|
2417
|
+
*/
|
|
2418
|
+
promptModel?: string;
|
|
2419
|
+
userName?: string;
|
|
2420
|
+
static names(): {
|
|
2421
|
+
[key: string]: string;
|
|
2422
|
+
};
|
|
2423
|
+
static types(): {
|
|
2424
|
+
[key: string]: any;
|
|
2425
|
+
};
|
|
2426
|
+
validate(): void;
|
|
2427
|
+
constructor(map?: {
|
|
2428
|
+
[key: string]: any;
|
|
2429
|
+
});
|
|
2430
|
+
}
|
|
2431
|
+
export declare class CredentialVerifyV2AdvanceRequest extends $dara.Model {
|
|
2432
|
+
/**
|
|
2433
|
+
* @example
|
|
2434
|
+
* 4601*****
|
|
2435
|
+
*/
|
|
2436
|
+
certNum?: string;
|
|
2437
|
+
/**
|
|
2438
|
+
* @example
|
|
2439
|
+
* 0104
|
|
2440
|
+
*/
|
|
2441
|
+
credName?: string;
|
|
2442
|
+
/**
|
|
2443
|
+
* @example
|
|
2444
|
+
* 01
|
|
2445
|
+
*/
|
|
2446
|
+
credType?: string;
|
|
2447
|
+
/**
|
|
2448
|
+
* @example
|
|
2449
|
+
* 4****************1
|
|
2450
|
+
*/
|
|
2451
|
+
identifyNum?: string;
|
|
2452
|
+
imageFileObject?: Readable;
|
|
2453
|
+
/**
|
|
2454
|
+
* @example
|
|
2455
|
+
* http://marry.momocdn.com/avatar/3B/B6/3BB6527E-7467-926E-1048-B43614F20CC420230803_L.jpg
|
|
2456
|
+
*/
|
|
2457
|
+
imageUrl?: string;
|
|
2458
|
+
/**
|
|
2459
|
+
* @example
|
|
2460
|
+
* 0
|
|
2461
|
+
*/
|
|
2462
|
+
isCheck?: string;
|
|
2463
|
+
/**
|
|
2464
|
+
* @example
|
|
2465
|
+
* 0
|
|
2466
|
+
*/
|
|
2467
|
+
isOcr?: string;
|
|
2468
|
+
merchantDetail?: CredentialVerifyV2AdvanceRequestMerchantDetail[];
|
|
2469
|
+
merchantId?: string;
|
|
2470
|
+
/**
|
|
2471
|
+
* @example
|
|
2472
|
+
* ANTI_FAKE_CHECK
|
|
2473
|
+
*/
|
|
2474
|
+
productCode?: string;
|
|
2475
|
+
prompt?: string;
|
|
2476
|
+
/**
|
|
2477
|
+
* @example
|
|
2478
|
+
* DEFAULT
|
|
2479
|
+
*/
|
|
2480
|
+
promptModel?: string;
|
|
2481
|
+
userName?: string;
|
|
2482
|
+
static names(): {
|
|
2483
|
+
[key: string]: string;
|
|
2484
|
+
};
|
|
2485
|
+
static types(): {
|
|
2486
|
+
[key: string]: any;
|
|
2487
|
+
};
|
|
2488
|
+
validate(): void;
|
|
2489
|
+
constructor(map?: {
|
|
2490
|
+
[key: string]: any;
|
|
2491
|
+
});
|
|
2492
|
+
}
|
|
2493
|
+
export declare class CredentialVerifyV2ShrinkRequest extends $dara.Model {
|
|
2494
|
+
/**
|
|
2495
|
+
* @example
|
|
2496
|
+
* 4601*****
|
|
2497
|
+
*/
|
|
2498
|
+
certNum?: string;
|
|
2499
|
+
/**
|
|
2500
|
+
* @example
|
|
2501
|
+
* 0104
|
|
2502
|
+
*/
|
|
2503
|
+
credName?: string;
|
|
2504
|
+
/**
|
|
2505
|
+
* @example
|
|
2506
|
+
* 01
|
|
2507
|
+
*/
|
|
2508
|
+
credType?: string;
|
|
2509
|
+
/**
|
|
2510
|
+
* @example
|
|
2511
|
+
* 4****************1
|
|
2512
|
+
*/
|
|
2513
|
+
identifyNum?: string;
|
|
2514
|
+
imageFile?: string;
|
|
2515
|
+
/**
|
|
2516
|
+
* @example
|
|
2517
|
+
* http://marry.momocdn.com/avatar/3B/B6/3BB6527E-7467-926E-1048-B43614F20CC420230803_L.jpg
|
|
2518
|
+
*/
|
|
2519
|
+
imageUrl?: string;
|
|
2520
|
+
/**
|
|
2521
|
+
* @example
|
|
2522
|
+
* 0
|
|
2523
|
+
*/
|
|
2524
|
+
isCheck?: string;
|
|
2525
|
+
/**
|
|
2526
|
+
* @example
|
|
2527
|
+
* 0
|
|
2528
|
+
*/
|
|
2529
|
+
isOcr?: string;
|
|
2530
|
+
merchantDetailShrink?: string;
|
|
2531
|
+
merchantId?: string;
|
|
2532
|
+
/**
|
|
2533
|
+
* @example
|
|
2534
|
+
* ANTI_FAKE_CHECK
|
|
2535
|
+
*/
|
|
2536
|
+
productCode?: string;
|
|
2537
|
+
prompt?: string;
|
|
2538
|
+
/**
|
|
2539
|
+
* @example
|
|
2540
|
+
* DEFAULT
|
|
2541
|
+
*/
|
|
2542
|
+
promptModel?: string;
|
|
2543
|
+
userName?: string;
|
|
2544
|
+
static names(): {
|
|
2545
|
+
[key: string]: string;
|
|
2546
|
+
};
|
|
2547
|
+
static types(): {
|
|
2548
|
+
[key: string]: any;
|
|
2549
|
+
};
|
|
2550
|
+
validate(): void;
|
|
2551
|
+
constructor(map?: {
|
|
2552
|
+
[key: string]: any;
|
|
2553
|
+
});
|
|
2554
|
+
}
|
|
2555
|
+
export declare class CredentialVerifyV2ResponseBody extends $dara.Model {
|
|
2556
|
+
/**
|
|
2557
|
+
* @example
|
|
2558
|
+
* 200
|
|
2559
|
+
*/
|
|
2560
|
+
code?: string;
|
|
2561
|
+
/**
|
|
2562
|
+
* @example
|
|
2563
|
+
* success
|
|
2564
|
+
*/
|
|
2565
|
+
message?: string;
|
|
2566
|
+
/**
|
|
2567
|
+
* @example
|
|
2568
|
+
* 04F0F334-1335-436C-A1D7-6C044FE73368
|
|
2569
|
+
*/
|
|
2570
|
+
requestId?: string;
|
|
2571
|
+
resultObject?: CredentialVerifyV2ResponseBodyResultObject;
|
|
2572
|
+
static names(): {
|
|
2573
|
+
[key: string]: string;
|
|
2574
|
+
};
|
|
2575
|
+
static types(): {
|
|
2576
|
+
[key: string]: any;
|
|
2577
|
+
};
|
|
2578
|
+
validate(): void;
|
|
2579
|
+
constructor(map?: {
|
|
2580
|
+
[key: string]: any;
|
|
2581
|
+
});
|
|
2582
|
+
}
|
|
2583
|
+
export declare class CredentialVerifyV2Response extends $dara.Model {
|
|
2584
|
+
headers?: {
|
|
2585
|
+
[key: string]: string;
|
|
2586
|
+
};
|
|
2587
|
+
statusCode?: number;
|
|
2588
|
+
body?: CredentialVerifyV2ResponseBody;
|
|
2589
|
+
static names(): {
|
|
2590
|
+
[key: string]: string;
|
|
2591
|
+
};
|
|
2592
|
+
static types(): {
|
|
2593
|
+
[key: string]: any;
|
|
2594
|
+
};
|
|
2595
|
+
validate(): void;
|
|
2596
|
+
constructor(map?: {
|
|
2597
|
+
[key: string]: any;
|
|
2598
|
+
});
|
|
2599
|
+
}
|
|
2269
2600
|
export declare class DeepfakeDetectRequest extends $dara.Model {
|
|
2270
2601
|
/**
|
|
2271
2602
|
* @example
|
|
@@ -5167,6 +5498,22 @@ export default class Client extends OpenApi {
|
|
|
5167
5498
|
* @returns CredentialVerifyResponse
|
|
5168
5499
|
*/
|
|
5169
5500
|
credentialVerify(request: CredentialVerifyRequest): Promise<CredentialVerifyResponse>;
|
|
5501
|
+
/**
|
|
5502
|
+
* 凭证核验
|
|
5503
|
+
*
|
|
5504
|
+
* @param tmpReq - CredentialVerifyV2Request
|
|
5505
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
5506
|
+
* @returns CredentialVerifyV2Response
|
|
5507
|
+
*/
|
|
5508
|
+
credentialVerifyV2WithOptions(tmpReq: CredentialVerifyV2Request, runtime: $dara.RuntimeOptions): Promise<CredentialVerifyV2Response>;
|
|
5509
|
+
/**
|
|
5510
|
+
* 凭证核验
|
|
5511
|
+
*
|
|
5512
|
+
* @param request - CredentialVerifyV2Request
|
|
5513
|
+
* @returns CredentialVerifyV2Response
|
|
5514
|
+
*/
|
|
5515
|
+
credentialVerifyV2(request: CredentialVerifyV2Request): Promise<CredentialVerifyV2Response>;
|
|
5516
|
+
credentialVerifyV2Advance(request: CredentialVerifyV2AdvanceRequest, runtime: $dara.RuntimeOptions): Promise<CredentialVerifyV2Response>;
|
|
5170
5517
|
/**
|
|
5171
5518
|
* 人脸凭证核验服务
|
|
5172
5519
|
*
|