@alicloud/green20220302 2.18.0 → 2.19.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 +411 -0
- package/dist/client.js +430 -10
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +756 -110
package/dist/client.d.ts
CHANGED
|
@@ -543,6 +543,73 @@ export declare class ImageAsyncModerationResponse extends $tea.Model {
|
|
|
543
543
|
[key: string]: any;
|
|
544
544
|
});
|
|
545
545
|
}
|
|
546
|
+
export declare class ImageBatchModerationRequest extends $tea.Model {
|
|
547
|
+
/**
|
|
548
|
+
* @example
|
|
549
|
+
* {
|
|
550
|
+
* "imageUrl": "https://img.alicdn.com/tfs/TB1U4r9AeH2gK0jSZJnXXaT1FXa-2880-480.png",
|
|
551
|
+
* "dataId": "img123****"
|
|
552
|
+
* }
|
|
553
|
+
*/
|
|
554
|
+
serviceParameters?: string;
|
|
555
|
+
/**
|
|
556
|
+
* @example
|
|
557
|
+
* baselineCheck,tonalityImprove
|
|
558
|
+
*/
|
|
559
|
+
services?: string;
|
|
560
|
+
static names(): {
|
|
561
|
+
[key: string]: string;
|
|
562
|
+
};
|
|
563
|
+
static types(): {
|
|
564
|
+
[key: string]: any;
|
|
565
|
+
};
|
|
566
|
+
constructor(map?: {
|
|
567
|
+
[key: string]: any;
|
|
568
|
+
});
|
|
569
|
+
}
|
|
570
|
+
export declare class ImageBatchModerationResponseBody extends $tea.Model {
|
|
571
|
+
/**
|
|
572
|
+
* @example
|
|
573
|
+
* 200
|
|
574
|
+
*/
|
|
575
|
+
code?: number;
|
|
576
|
+
data?: ImageBatchModerationResponseBodyData;
|
|
577
|
+
/**
|
|
578
|
+
* @example
|
|
579
|
+
* success
|
|
580
|
+
*/
|
|
581
|
+
msg?: string;
|
|
582
|
+
/**
|
|
583
|
+
* @example
|
|
584
|
+
* 6CF2815C-C8C7-4A01-B52E-FF6E24F53492
|
|
585
|
+
*/
|
|
586
|
+
requestId?: string;
|
|
587
|
+
static names(): {
|
|
588
|
+
[key: string]: string;
|
|
589
|
+
};
|
|
590
|
+
static types(): {
|
|
591
|
+
[key: string]: any;
|
|
592
|
+
};
|
|
593
|
+
constructor(map?: {
|
|
594
|
+
[key: string]: any;
|
|
595
|
+
});
|
|
596
|
+
}
|
|
597
|
+
export declare class ImageBatchModerationResponse extends $tea.Model {
|
|
598
|
+
headers?: {
|
|
599
|
+
[key: string]: string;
|
|
600
|
+
};
|
|
601
|
+
statusCode?: number;
|
|
602
|
+
body?: ImageBatchModerationResponseBody;
|
|
603
|
+
static names(): {
|
|
604
|
+
[key: string]: string;
|
|
605
|
+
};
|
|
606
|
+
static types(): {
|
|
607
|
+
[key: string]: any;
|
|
608
|
+
};
|
|
609
|
+
constructor(map?: {
|
|
610
|
+
[key: string]: any;
|
|
611
|
+
});
|
|
612
|
+
}
|
|
546
613
|
export declare class ImageModerationRequest extends $tea.Model {
|
|
547
614
|
/**
|
|
548
615
|
* @remarks
|
|
@@ -2293,6 +2360,324 @@ export declare class ImageAsyncModerationResponseBodyData extends $tea.Model {
|
|
|
2293
2360
|
[key: string]: any;
|
|
2294
2361
|
});
|
|
2295
2362
|
}
|
|
2363
|
+
export declare class ImageBatchModerationResponseBodyDataResult extends $tea.Model {
|
|
2364
|
+
/**
|
|
2365
|
+
* @example
|
|
2366
|
+
* 81.22
|
|
2367
|
+
*/
|
|
2368
|
+
confidence?: number;
|
|
2369
|
+
description?: string;
|
|
2370
|
+
/**
|
|
2371
|
+
* @example
|
|
2372
|
+
* violent_explosion
|
|
2373
|
+
*/
|
|
2374
|
+
label?: string;
|
|
2375
|
+
static names(): {
|
|
2376
|
+
[key: string]: string;
|
|
2377
|
+
};
|
|
2378
|
+
static types(): {
|
|
2379
|
+
[key: string]: any;
|
|
2380
|
+
};
|
|
2381
|
+
constructor(map?: {
|
|
2382
|
+
[key: string]: any;
|
|
2383
|
+
});
|
|
2384
|
+
}
|
|
2385
|
+
export declare class ImageBatchModerationResponseBodyDataResultsExtCustomImage extends $tea.Model {
|
|
2386
|
+
/**
|
|
2387
|
+
* @example
|
|
2388
|
+
* 1965304870002
|
|
2389
|
+
*/
|
|
2390
|
+
imageId?: string;
|
|
2391
|
+
/**
|
|
2392
|
+
* @example
|
|
2393
|
+
* 1965304870002
|
|
2394
|
+
*/
|
|
2395
|
+
libId?: string;
|
|
2396
|
+
libName?: string;
|
|
2397
|
+
static names(): {
|
|
2398
|
+
[key: string]: string;
|
|
2399
|
+
};
|
|
2400
|
+
static types(): {
|
|
2401
|
+
[key: string]: any;
|
|
2402
|
+
};
|
|
2403
|
+
constructor(map?: {
|
|
2404
|
+
[key: string]: any;
|
|
2405
|
+
});
|
|
2406
|
+
}
|
|
2407
|
+
export declare class ImageBatchModerationResponseBodyDataResultsExtLogoDataLocation extends $tea.Model {
|
|
2408
|
+
/**
|
|
2409
|
+
* @example
|
|
2410
|
+
* 440
|
|
2411
|
+
*/
|
|
2412
|
+
h?: number;
|
|
2413
|
+
/**
|
|
2414
|
+
* @example
|
|
2415
|
+
* 330
|
|
2416
|
+
*/
|
|
2417
|
+
w?: number;
|
|
2418
|
+
/**
|
|
2419
|
+
* @example
|
|
2420
|
+
* 11
|
|
2421
|
+
*/
|
|
2422
|
+
x?: number;
|
|
2423
|
+
/**
|
|
2424
|
+
* @example
|
|
2425
|
+
* 22
|
|
2426
|
+
*/
|
|
2427
|
+
y?: number;
|
|
2428
|
+
static names(): {
|
|
2429
|
+
[key: string]: string;
|
|
2430
|
+
};
|
|
2431
|
+
static types(): {
|
|
2432
|
+
[key: string]: any;
|
|
2433
|
+
};
|
|
2434
|
+
constructor(map?: {
|
|
2435
|
+
[key: string]: any;
|
|
2436
|
+
});
|
|
2437
|
+
}
|
|
2438
|
+
export declare class ImageBatchModerationResponseBodyDataResultsExtLogoDataLogo extends $tea.Model {
|
|
2439
|
+
/**
|
|
2440
|
+
* @example
|
|
2441
|
+
* 99.1
|
|
2442
|
+
*/
|
|
2443
|
+
confidence?: number;
|
|
2444
|
+
/**
|
|
2445
|
+
* @example
|
|
2446
|
+
* logo_sns
|
|
2447
|
+
*/
|
|
2448
|
+
label?: string;
|
|
2449
|
+
name?: string;
|
|
2450
|
+
static names(): {
|
|
2451
|
+
[key: string]: string;
|
|
2452
|
+
};
|
|
2453
|
+
static types(): {
|
|
2454
|
+
[key: string]: any;
|
|
2455
|
+
};
|
|
2456
|
+
constructor(map?: {
|
|
2457
|
+
[key: string]: any;
|
|
2458
|
+
});
|
|
2459
|
+
}
|
|
2460
|
+
export declare class ImageBatchModerationResponseBodyDataResultsExtLogoData extends $tea.Model {
|
|
2461
|
+
location?: ImageBatchModerationResponseBodyDataResultsExtLogoDataLocation;
|
|
2462
|
+
logo?: ImageBatchModerationResponseBodyDataResultsExtLogoDataLogo[];
|
|
2463
|
+
static names(): {
|
|
2464
|
+
[key: string]: string;
|
|
2465
|
+
};
|
|
2466
|
+
static types(): {
|
|
2467
|
+
[key: string]: any;
|
|
2468
|
+
};
|
|
2469
|
+
constructor(map?: {
|
|
2470
|
+
[key: string]: any;
|
|
2471
|
+
});
|
|
2472
|
+
}
|
|
2473
|
+
export declare class ImageBatchModerationResponseBodyDataResultsExtPublicFigureLocation extends $tea.Model {
|
|
2474
|
+
/**
|
|
2475
|
+
* @example
|
|
2476
|
+
* 440
|
|
2477
|
+
*/
|
|
2478
|
+
h?: number;
|
|
2479
|
+
/**
|
|
2480
|
+
* @example
|
|
2481
|
+
* 330
|
|
2482
|
+
*/
|
|
2483
|
+
w?: number;
|
|
2484
|
+
/**
|
|
2485
|
+
* @example
|
|
2486
|
+
* 11
|
|
2487
|
+
*/
|
|
2488
|
+
x?: number;
|
|
2489
|
+
/**
|
|
2490
|
+
* @example
|
|
2491
|
+
* 22
|
|
2492
|
+
*/
|
|
2493
|
+
y?: number;
|
|
2494
|
+
static names(): {
|
|
2495
|
+
[key: string]: string;
|
|
2496
|
+
};
|
|
2497
|
+
static types(): {
|
|
2498
|
+
[key: string]: any;
|
|
2499
|
+
};
|
|
2500
|
+
constructor(map?: {
|
|
2501
|
+
[key: string]: any;
|
|
2502
|
+
});
|
|
2503
|
+
}
|
|
2504
|
+
export declare class ImageBatchModerationResponseBodyDataResultsExtPublicFigure extends $tea.Model {
|
|
2505
|
+
figureId?: string;
|
|
2506
|
+
figureName?: string;
|
|
2507
|
+
location?: ImageBatchModerationResponseBodyDataResultsExtPublicFigureLocation[];
|
|
2508
|
+
static names(): {
|
|
2509
|
+
[key: string]: string;
|
|
2510
|
+
};
|
|
2511
|
+
static types(): {
|
|
2512
|
+
[key: string]: any;
|
|
2513
|
+
};
|
|
2514
|
+
constructor(map?: {
|
|
2515
|
+
[key: string]: any;
|
|
2516
|
+
});
|
|
2517
|
+
}
|
|
2518
|
+
export declare class ImageBatchModerationResponseBodyDataResultsExtTextInImageCustomText extends $tea.Model {
|
|
2519
|
+
keyWords?: string;
|
|
2520
|
+
/**
|
|
2521
|
+
* @example
|
|
2522
|
+
* 123456
|
|
2523
|
+
*/
|
|
2524
|
+
libId?: string;
|
|
2525
|
+
libName?: string;
|
|
2526
|
+
static names(): {
|
|
2527
|
+
[key: string]: string;
|
|
2528
|
+
};
|
|
2529
|
+
static types(): {
|
|
2530
|
+
[key: string]: any;
|
|
2531
|
+
};
|
|
2532
|
+
constructor(map?: {
|
|
2533
|
+
[key: string]: any;
|
|
2534
|
+
});
|
|
2535
|
+
}
|
|
2536
|
+
export declare class ImageBatchModerationResponseBodyDataResultsExtTextInImageOcrResultLocation extends $tea.Model {
|
|
2537
|
+
/**
|
|
2538
|
+
* @example
|
|
2539
|
+
* 33
|
|
2540
|
+
*/
|
|
2541
|
+
h?: number;
|
|
2542
|
+
/**
|
|
2543
|
+
* @example
|
|
2544
|
+
* 44
|
|
2545
|
+
*/
|
|
2546
|
+
w?: number;
|
|
2547
|
+
/**
|
|
2548
|
+
* @example
|
|
2549
|
+
* 11
|
|
2550
|
+
*/
|
|
2551
|
+
x?: number;
|
|
2552
|
+
/**
|
|
2553
|
+
* @example
|
|
2554
|
+
* 22
|
|
2555
|
+
*/
|
|
2556
|
+
y?: number;
|
|
2557
|
+
static names(): {
|
|
2558
|
+
[key: string]: string;
|
|
2559
|
+
};
|
|
2560
|
+
static types(): {
|
|
2561
|
+
[key: string]: any;
|
|
2562
|
+
};
|
|
2563
|
+
constructor(map?: {
|
|
2564
|
+
[key: string]: any;
|
|
2565
|
+
});
|
|
2566
|
+
}
|
|
2567
|
+
export declare class ImageBatchModerationResponseBodyDataResultsExtTextInImageOcrResult extends $tea.Model {
|
|
2568
|
+
location?: ImageBatchModerationResponseBodyDataResultsExtTextInImageOcrResultLocation;
|
|
2569
|
+
/**
|
|
2570
|
+
* @example
|
|
2571
|
+
* abcd
|
|
2572
|
+
*/
|
|
2573
|
+
text?: string;
|
|
2574
|
+
static names(): {
|
|
2575
|
+
[key: string]: string;
|
|
2576
|
+
};
|
|
2577
|
+
static types(): {
|
|
2578
|
+
[key: string]: any;
|
|
2579
|
+
};
|
|
2580
|
+
constructor(map?: {
|
|
2581
|
+
[key: string]: any;
|
|
2582
|
+
});
|
|
2583
|
+
}
|
|
2584
|
+
export declare class ImageBatchModerationResponseBodyDataResultsExtTextInImage extends $tea.Model {
|
|
2585
|
+
customText?: ImageBatchModerationResponseBodyDataResultsExtTextInImageCustomText[];
|
|
2586
|
+
ocrResult?: ImageBatchModerationResponseBodyDataResultsExtTextInImageOcrResult[];
|
|
2587
|
+
riskWord?: string[];
|
|
2588
|
+
static names(): {
|
|
2589
|
+
[key: string]: string;
|
|
2590
|
+
};
|
|
2591
|
+
static types(): {
|
|
2592
|
+
[key: string]: any;
|
|
2593
|
+
};
|
|
2594
|
+
constructor(map?: {
|
|
2595
|
+
[key: string]: any;
|
|
2596
|
+
});
|
|
2597
|
+
}
|
|
2598
|
+
export declare class ImageBatchModerationResponseBodyDataResultsExt extends $tea.Model {
|
|
2599
|
+
customImage?: ImageBatchModerationResponseBodyDataResultsExtCustomImage[];
|
|
2600
|
+
logoData?: ImageBatchModerationResponseBodyDataResultsExtLogoData;
|
|
2601
|
+
publicFigure?: ImageBatchModerationResponseBodyDataResultsExtPublicFigure[];
|
|
2602
|
+
textInImage?: ImageBatchModerationResponseBodyDataResultsExtTextInImage;
|
|
2603
|
+
static names(): {
|
|
2604
|
+
[key: string]: string;
|
|
2605
|
+
};
|
|
2606
|
+
static types(): {
|
|
2607
|
+
[key: string]: any;
|
|
2608
|
+
};
|
|
2609
|
+
constructor(map?: {
|
|
2610
|
+
[key: string]: any;
|
|
2611
|
+
});
|
|
2612
|
+
}
|
|
2613
|
+
export declare class ImageBatchModerationResponseBodyDataResultsResult extends $tea.Model {
|
|
2614
|
+
/**
|
|
2615
|
+
* @example
|
|
2616
|
+
* 81.22
|
|
2617
|
+
*/
|
|
2618
|
+
confidence?: number;
|
|
2619
|
+
description?: string;
|
|
2620
|
+
/**
|
|
2621
|
+
* @example
|
|
2622
|
+
* violent_explosion
|
|
2623
|
+
*/
|
|
2624
|
+
label?: string;
|
|
2625
|
+
static names(): {
|
|
2626
|
+
[key: string]: string;
|
|
2627
|
+
};
|
|
2628
|
+
static types(): {
|
|
2629
|
+
[key: string]: any;
|
|
2630
|
+
};
|
|
2631
|
+
constructor(map?: {
|
|
2632
|
+
[key: string]: any;
|
|
2633
|
+
});
|
|
2634
|
+
}
|
|
2635
|
+
export declare class ImageBatchModerationResponseBodyDataResults extends $tea.Model {
|
|
2636
|
+
ext?: ImageBatchModerationResponseBodyDataResultsExt;
|
|
2637
|
+
result?: ImageBatchModerationResponseBodyDataResultsResult[];
|
|
2638
|
+
/**
|
|
2639
|
+
* @example
|
|
2640
|
+
* high
|
|
2641
|
+
*/
|
|
2642
|
+
riskLevel?: string;
|
|
2643
|
+
/**
|
|
2644
|
+
* @example
|
|
2645
|
+
* baselineCheck
|
|
2646
|
+
*/
|
|
2647
|
+
service?: string;
|
|
2648
|
+
static names(): {
|
|
2649
|
+
[key: string]: string;
|
|
2650
|
+
};
|
|
2651
|
+
static types(): {
|
|
2652
|
+
[key: string]: any;
|
|
2653
|
+
};
|
|
2654
|
+
constructor(map?: {
|
|
2655
|
+
[key: string]: any;
|
|
2656
|
+
});
|
|
2657
|
+
}
|
|
2658
|
+
export declare class ImageBatchModerationResponseBodyData extends $tea.Model {
|
|
2659
|
+
/**
|
|
2660
|
+
* @example
|
|
2661
|
+
* 26769ada6e264e7ba9aa048241e12be9
|
|
2662
|
+
*/
|
|
2663
|
+
dataId?: string;
|
|
2664
|
+
result?: ImageBatchModerationResponseBodyDataResult[];
|
|
2665
|
+
results?: ImageBatchModerationResponseBodyDataResults[];
|
|
2666
|
+
/**
|
|
2667
|
+
* @example
|
|
2668
|
+
* high
|
|
2669
|
+
*/
|
|
2670
|
+
riskLevel?: string;
|
|
2671
|
+
static names(): {
|
|
2672
|
+
[key: string]: string;
|
|
2673
|
+
};
|
|
2674
|
+
static types(): {
|
|
2675
|
+
[key: string]: any;
|
|
2676
|
+
};
|
|
2677
|
+
constructor(map?: {
|
|
2678
|
+
[key: string]: any;
|
|
2679
|
+
});
|
|
2680
|
+
}
|
|
2296
2681
|
export declare class ImageModerationResponseBodyDataExtCustomImage extends $tea.Model {
|
|
2297
2682
|
/**
|
|
2298
2683
|
* @remarks
|
|
@@ -3088,6 +3473,13 @@ export declare class ImageModerationResponseBodyDataExtTextInImage extends $tea.
|
|
|
3088
3473
|
});
|
|
3089
3474
|
}
|
|
3090
3475
|
export declare class ImageModerationResponseBodyDataExtVlContent extends $tea.Model {
|
|
3476
|
+
/**
|
|
3477
|
+
* @remarks
|
|
3478
|
+
* the vl output content
|
|
3479
|
+
*
|
|
3480
|
+
* @example
|
|
3481
|
+
* this is a cat
|
|
3482
|
+
*/
|
|
3091
3483
|
outputText?: string;
|
|
3092
3484
|
static names(): {
|
|
3093
3485
|
[key: string]: string;
|
|
@@ -3135,6 +3527,10 @@ export declare class ImageModerationResponseBodyDataExt extends $tea.Model {
|
|
|
3135
3527
|
* Returns the text information in the hit image.
|
|
3136
3528
|
*/
|
|
3137
3529
|
textInImage?: ImageModerationResponseBodyDataExtTextInImage;
|
|
3530
|
+
/**
|
|
3531
|
+
* @remarks
|
|
3532
|
+
* the vl output content
|
|
3533
|
+
*/
|
|
3138
3534
|
vlContent?: ImageModerationResponseBodyDataExtVlContent;
|
|
3139
3535
|
static names(): {
|
|
3140
3536
|
[key: string]: string;
|
|
@@ -4248,6 +4644,21 @@ export default class Client extends OpenApi {
|
|
|
4248
4644
|
* @returns ImageAsyncModerationResponse
|
|
4249
4645
|
*/
|
|
4250
4646
|
imageAsyncModeration(request: ImageAsyncModerationRequest): Promise<ImageAsyncModerationResponse>;
|
|
4647
|
+
/**
|
|
4648
|
+
* 图片批量调用
|
|
4649
|
+
*
|
|
4650
|
+
* @param request - ImageBatchModerationRequest
|
|
4651
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4652
|
+
* @returns ImageBatchModerationResponse
|
|
4653
|
+
*/
|
|
4654
|
+
imageBatchModerationWithOptions(request: ImageBatchModerationRequest, runtime: $Util.RuntimeOptions): Promise<ImageBatchModerationResponse>;
|
|
4655
|
+
/**
|
|
4656
|
+
* 图片批量调用
|
|
4657
|
+
*
|
|
4658
|
+
* @param request - ImageBatchModerationRequest
|
|
4659
|
+
* @returns ImageBatchModerationResponse
|
|
4660
|
+
*/
|
|
4661
|
+
imageBatchModeration(request: ImageBatchModerationRequest): Promise<ImageBatchModerationResponse>;
|
|
4251
4662
|
/**
|
|
4252
4663
|
* Identifies whether an image contains content or elements that violate relevant regulations on network content dissemination, affect the content order of a specific platform, or affect user experience. Image Moderation 2.0 supports over 90 content risk labels and over 100 risk control items. Image Moderation 2.0 of Content Moderation allows you to develop further moderation or governance measures for specific image content based on business scenarios, platform-specific content governance rules, or rich risk labels and scores of confidence levels returned by API calls.
|
|
4253
4664
|
*
|