@alicloud/green20220302 2.18.0 → 2.19.1

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