@alicloud/green20220302 2.2.15 → 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/src/client.ts CHANGED
@@ -751,6 +751,104 @@ export class ImageAsyncModerationResponse extends $tea.Model {
751
751
  }
752
752
  }
753
753
 
754
+ export class ImageBatchModerationRequest extends $tea.Model {
755
+ /**
756
+ * @example
757
+ * {
758
+ * "imageUrl": "https://img.alicdn.com/tfs/TB1U4r9AeH2gK0jSZJnXXaT1FXa-2880-480.png",
759
+ * "dataId": "img123****"
760
+ * }
761
+ */
762
+ serviceParameters?: string;
763
+ /**
764
+ * @example
765
+ * baselineCheck,tonalityImprove
766
+ */
767
+ services?: string;
768
+ static names(): { [key: string]: string } {
769
+ return {
770
+ serviceParameters: 'ServiceParameters',
771
+ services: 'Services',
772
+ };
773
+ }
774
+
775
+ static types(): { [key: string]: any } {
776
+ return {
777
+ serviceParameters: 'string',
778
+ services: 'string',
779
+ };
780
+ }
781
+
782
+ constructor(map?: { [key: string]: any }) {
783
+ super(map);
784
+ }
785
+ }
786
+
787
+ export class ImageBatchModerationResponseBody extends $tea.Model {
788
+ /**
789
+ * @example
790
+ * 200
791
+ */
792
+ code?: number;
793
+ data?: ImageBatchModerationResponseBodyData;
794
+ /**
795
+ * @example
796
+ * success
797
+ */
798
+ msg?: string;
799
+ /**
800
+ * @example
801
+ * 6CF2815C-C8C7-4A01-B52E-FF6E24F53492
802
+ */
803
+ requestId?: string;
804
+ static names(): { [key: string]: string } {
805
+ return {
806
+ code: 'Code',
807
+ data: 'Data',
808
+ msg: 'Msg',
809
+ requestId: 'RequestId',
810
+ };
811
+ }
812
+
813
+ static types(): { [key: string]: any } {
814
+ return {
815
+ code: 'number',
816
+ data: ImageBatchModerationResponseBodyData,
817
+ msg: 'string',
818
+ requestId: 'string',
819
+ };
820
+ }
821
+
822
+ constructor(map?: { [key: string]: any }) {
823
+ super(map);
824
+ }
825
+ }
826
+
827
+ export class ImageBatchModerationResponse extends $tea.Model {
828
+ headers?: { [key: string]: string };
829
+ statusCode?: number;
830
+ body?: ImageBatchModerationResponseBody;
831
+ static names(): { [key: string]: string } {
832
+ return {
833
+ headers: 'headers',
834
+ statusCode: 'statusCode',
835
+ body: 'body',
836
+ };
837
+ }
838
+
839
+ static types(): { [key: string]: any } {
840
+ return {
841
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
842
+ statusCode: 'number',
843
+ body: ImageBatchModerationResponseBody,
844
+ };
845
+ }
846
+
847
+ constructor(map?: { [key: string]: any }) {
848
+ super(map);
849
+ }
850
+ }
851
+
754
852
  export class ImageModerationRequest extends $tea.Model {
755
853
  /**
756
854
  * @remarks
@@ -2865,36 +2963,493 @@ export class DescribeUploadTokenResponseBodyData extends $tea.Model {
2865
2963
  */
2866
2964
  ossInternetEndPoint?: string;
2867
2965
  /**
2868
- * @remarks
2869
- * The security token.
2870
- *
2966
+ * @remarks
2967
+ * The security token.
2968
+ *
2969
+ * @example
2970
+ * xxxx
2971
+ */
2972
+ securityToken?: string;
2973
+ static names(): { [key: string]: string } {
2974
+ return {
2975
+ accessKeyId: 'AccessKeyId',
2976
+ accessKeySecret: 'AccessKeySecret',
2977
+ bucketName: 'BucketName',
2978
+ expiration: 'Expiration',
2979
+ fileNamePrefix: 'FileNamePrefix',
2980
+ ossInternalEndPoint: 'OssInternalEndPoint',
2981
+ ossInternetEndPoint: 'OssInternetEndPoint',
2982
+ securityToken: 'SecurityToken',
2983
+ };
2984
+ }
2985
+
2986
+ static types(): { [key: string]: any } {
2987
+ return {
2988
+ accessKeyId: 'string',
2989
+ accessKeySecret: 'string',
2990
+ bucketName: 'string',
2991
+ expiration: 'number',
2992
+ fileNamePrefix: 'string',
2993
+ ossInternalEndPoint: 'string',
2994
+ ossInternetEndPoint: 'string',
2995
+ securityToken: 'string',
2996
+ };
2997
+ }
2998
+
2999
+ constructor(map?: { [key: string]: any }) {
3000
+ super(map);
3001
+ }
3002
+ }
3003
+
3004
+ export class DescribeUrlModerationResultResponseBodyDataExtraInfo extends $tea.Model {
3005
+ /**
3006
+ * @remarks
3007
+ * The ICP number.
3008
+ *
3009
+ * @example
3010
+ * xx
3011
+ */
3012
+ icpNo?: string;
3013
+ /**
3014
+ * @remarks
3015
+ * The type of the ICP filing.
3016
+ *
3017
+ * @example
3018
+ * xx
3019
+ */
3020
+ icpType?: string;
3021
+ /**
3022
+ * @remarks
3023
+ * The type of site
3024
+ *
3025
+ * @example
3026
+ * game
3027
+ */
3028
+ siteType?: string;
3029
+ static names(): { [key: string]: string } {
3030
+ return {
3031
+ icpNo: 'IcpNo',
3032
+ icpType: 'IcpType',
3033
+ siteType: 'SiteType',
3034
+ };
3035
+ }
3036
+
3037
+ static types(): { [key: string]: any } {
3038
+ return {
3039
+ icpNo: 'string',
3040
+ icpType: 'string',
3041
+ siteType: 'string',
3042
+ };
3043
+ }
3044
+
3045
+ constructor(map?: { [key: string]: any }) {
3046
+ super(map);
3047
+ }
3048
+ }
3049
+
3050
+ export class DescribeUrlModerationResultResponseBodyDataResult extends $tea.Model {
3051
+ /**
3052
+ * @remarks
3053
+ * The score of the confidence level. Valid values: 0 to 100. The value is accurate to two decimal places.
3054
+ *
3055
+ * @example
3056
+ * 81.22
3057
+ */
3058
+ confidence?: number;
3059
+ /**
3060
+ * @remarks
3061
+ * The labels returned after the asynchronous URL moderation.
3062
+ *
3063
+ * @example
3064
+ * sexual_url
3065
+ */
3066
+ label?: string;
3067
+ static names(): { [key: string]: string } {
3068
+ return {
3069
+ confidence: 'Confidence',
3070
+ label: 'Label',
3071
+ };
3072
+ }
3073
+
3074
+ static types(): { [key: string]: any } {
3075
+ return {
3076
+ confidence: 'number',
3077
+ label: 'string',
3078
+ };
3079
+ }
3080
+
3081
+ constructor(map?: { [key: string]: any }) {
3082
+ super(map);
3083
+ }
3084
+ }
3085
+
3086
+ export class DescribeUrlModerationResultResponseBodyData extends $tea.Model {
3087
+ /**
3088
+ * @remarks
3089
+ * The value of dataId that is specified in the API request. If this parameter is not specified in the API request, this field is not available in the response.
3090
+ *
3091
+ * @example
3092
+ * 26769ada6e264e7ba9aa048241e12be9
3093
+ */
3094
+ dataId?: string;
3095
+ /**
3096
+ * @remarks
3097
+ * The supplementary information.
3098
+ */
3099
+ extraInfo?: DescribeUrlModerationResultResponseBodyDataExtraInfo;
3100
+ /**
3101
+ * @remarks
3102
+ * The ReqId field returned by an asynchronous URL moderation operation.
3103
+ *
3104
+ * @example
3105
+ * B0963D30-BAB4-562F-9ED0-7A23AEC51C7C
3106
+ */
3107
+ reqId?: string;
3108
+ /**
3109
+ * @remarks
3110
+ * The returned results.
3111
+ */
3112
+ result?: DescribeUrlModerationResultResponseBodyDataResult[];
3113
+ static names(): { [key: string]: string } {
3114
+ return {
3115
+ dataId: 'DataId',
3116
+ extraInfo: 'ExtraInfo',
3117
+ reqId: 'ReqId',
3118
+ result: 'Result',
3119
+ };
3120
+ }
3121
+
3122
+ static types(): { [key: string]: any } {
3123
+ return {
3124
+ dataId: 'string',
3125
+ extraInfo: DescribeUrlModerationResultResponseBodyDataExtraInfo,
3126
+ reqId: 'string',
3127
+ result: { 'type': 'array', 'itemType': DescribeUrlModerationResultResponseBodyDataResult },
3128
+ };
3129
+ }
3130
+
3131
+ constructor(map?: { [key: string]: any }) {
3132
+ super(map);
3133
+ }
3134
+ }
3135
+
3136
+ export class FileModerationResponseBodyData extends $tea.Model {
3137
+ /**
3138
+ * @remarks
3139
+ * The task ID.
3140
+ *
3141
+ * @example
3142
+ * xxxxx-xxxxx
3143
+ */
3144
+ taskId?: string;
3145
+ static names(): { [key: string]: string } {
3146
+ return {
3147
+ taskId: 'TaskId',
3148
+ };
3149
+ }
3150
+
3151
+ static types(): { [key: string]: any } {
3152
+ return {
3153
+ taskId: 'string',
3154
+ };
3155
+ }
3156
+
3157
+ constructor(map?: { [key: string]: any }) {
3158
+ super(map);
3159
+ }
3160
+ }
3161
+
3162
+ export class ImageAsyncModerationResponseBodyData extends $tea.Model {
3163
+ /**
3164
+ * @remarks
3165
+ * The ID of the moderated object.
3166
+ *
3167
+ * @example
3168
+ * fb5ffab1-993b-449f-b8d6-b97d5e3331f2
3169
+ */
3170
+ dataId?: string;
3171
+ /**
3172
+ * @remarks
3173
+ * The reqId field returned by the Image Async Moderation API. You can use this field to query the detection results.
3174
+ *
3175
+ * @example
3176
+ * A07B3DB9-D762-5C56-95B1-8EC55CF176D2
3177
+ */
3178
+ reqId?: string;
3179
+ static names(): { [key: string]: string } {
3180
+ return {
3181
+ dataId: 'DataId',
3182
+ reqId: 'ReqId',
3183
+ };
3184
+ }
3185
+
3186
+ static types(): { [key: string]: any } {
3187
+ return {
3188
+ dataId: 'string',
3189
+ reqId: 'string',
3190
+ };
3191
+ }
3192
+
3193
+ constructor(map?: { [key: string]: any }) {
3194
+ super(map);
3195
+ }
3196
+ }
3197
+
3198
+ export class ImageBatchModerationResponseBodyDataResult extends $tea.Model {
3199
+ /**
3200
+ * @example
3201
+ * 81.22
3202
+ */
3203
+ confidence?: number;
3204
+ description?: string;
3205
+ /**
3206
+ * @example
3207
+ * violent_explosion
3208
+ */
3209
+ label?: string;
3210
+ static names(): { [key: string]: string } {
3211
+ return {
3212
+ confidence: 'Confidence',
3213
+ description: 'Description',
3214
+ label: 'Label',
3215
+ };
3216
+ }
3217
+
3218
+ static types(): { [key: string]: any } {
3219
+ return {
3220
+ confidence: 'number',
3221
+ description: 'string',
3222
+ label: 'string',
3223
+ };
3224
+ }
3225
+
3226
+ constructor(map?: { [key: string]: any }) {
3227
+ super(map);
3228
+ }
3229
+ }
3230
+
3231
+ export class ImageBatchModerationResponseBodyDataResultsExtCustomImage extends $tea.Model {
3232
+ /**
3233
+ * @example
3234
+ * 1965304870002
3235
+ */
3236
+ imageId?: string;
3237
+ /**
3238
+ * @example
3239
+ * 1965304870002
3240
+ */
3241
+ libId?: string;
3242
+ libName?: string;
3243
+ static names(): { [key: string]: string } {
3244
+ return {
3245
+ imageId: 'ImageId',
3246
+ libId: 'LibId',
3247
+ libName: 'LibName',
3248
+ };
3249
+ }
3250
+
3251
+ static types(): { [key: string]: any } {
3252
+ return {
3253
+ imageId: 'string',
3254
+ libId: 'string',
3255
+ libName: 'string',
3256
+ };
3257
+ }
3258
+
3259
+ constructor(map?: { [key: string]: any }) {
3260
+ super(map);
3261
+ }
3262
+ }
3263
+
3264
+ export class ImageBatchModerationResponseBodyDataResultsExtLogoDataLocation extends $tea.Model {
3265
+ /**
3266
+ * @example
3267
+ * 440
3268
+ */
3269
+ h?: number;
3270
+ /**
3271
+ * @example
3272
+ * 330
3273
+ */
3274
+ w?: number;
3275
+ /**
3276
+ * @example
3277
+ * 11
3278
+ */
3279
+ x?: number;
3280
+ /**
3281
+ * @example
3282
+ * 22
3283
+ */
3284
+ y?: number;
3285
+ static names(): { [key: string]: string } {
3286
+ return {
3287
+ h: 'H',
3288
+ w: 'W',
3289
+ x: 'X',
3290
+ y: 'Y',
3291
+ };
3292
+ }
3293
+
3294
+ static types(): { [key: string]: any } {
3295
+ return {
3296
+ h: 'number',
3297
+ w: 'number',
3298
+ x: 'number',
3299
+ y: 'number',
3300
+ };
3301
+ }
3302
+
3303
+ constructor(map?: { [key: string]: any }) {
3304
+ super(map);
3305
+ }
3306
+ }
3307
+
3308
+ export class ImageBatchModerationResponseBodyDataResultsExtLogoDataLogo extends $tea.Model {
3309
+ /**
3310
+ * @example
3311
+ * 99.1
3312
+ */
3313
+ confidence?: number;
3314
+ /**
3315
+ * @example
3316
+ * logo_sns
3317
+ */
3318
+ label?: string;
3319
+ name?: string;
3320
+ static names(): { [key: string]: string } {
3321
+ return {
3322
+ confidence: 'Confidence',
3323
+ label: 'Label',
3324
+ name: 'Name',
3325
+ };
3326
+ }
3327
+
3328
+ static types(): { [key: string]: any } {
3329
+ return {
3330
+ confidence: 'number',
3331
+ label: 'string',
3332
+ name: 'string',
3333
+ };
3334
+ }
3335
+
3336
+ constructor(map?: { [key: string]: any }) {
3337
+ super(map);
3338
+ }
3339
+ }
3340
+
3341
+ export class ImageBatchModerationResponseBodyDataResultsExtLogoData extends $tea.Model {
3342
+ location?: ImageBatchModerationResponseBodyDataResultsExtLogoDataLocation;
3343
+ logo?: ImageBatchModerationResponseBodyDataResultsExtLogoDataLogo[];
3344
+ static names(): { [key: string]: string } {
3345
+ return {
3346
+ location: 'Location',
3347
+ logo: 'Logo',
3348
+ };
3349
+ }
3350
+
3351
+ static types(): { [key: string]: any } {
3352
+ return {
3353
+ location: ImageBatchModerationResponseBodyDataResultsExtLogoDataLocation,
3354
+ logo: { 'type': 'array', 'itemType': ImageBatchModerationResponseBodyDataResultsExtLogoDataLogo },
3355
+ };
3356
+ }
3357
+
3358
+ constructor(map?: { [key: string]: any }) {
3359
+ super(map);
3360
+ }
3361
+ }
3362
+
3363
+ export class ImageBatchModerationResponseBodyDataResultsExtPublicFigureLocation extends $tea.Model {
3364
+ /**
3365
+ * @example
3366
+ * 440
3367
+ */
3368
+ h?: number;
3369
+ /**
3370
+ * @example
3371
+ * 330
3372
+ */
3373
+ w?: number;
3374
+ /**
3375
+ * @example
3376
+ * 11
3377
+ */
3378
+ x?: number;
3379
+ /**
3380
+ * @example
3381
+ * 22
3382
+ */
3383
+ y?: number;
3384
+ static names(): { [key: string]: string } {
3385
+ return {
3386
+ h: 'H',
3387
+ w: 'W',
3388
+ x: 'X',
3389
+ y: 'Y',
3390
+ };
3391
+ }
3392
+
3393
+ static types(): { [key: string]: any } {
3394
+ return {
3395
+ h: 'number',
3396
+ w: 'number',
3397
+ x: 'number',
3398
+ y: 'number',
3399
+ };
3400
+ }
3401
+
3402
+ constructor(map?: { [key: string]: any }) {
3403
+ super(map);
3404
+ }
3405
+ }
3406
+
3407
+ export class ImageBatchModerationResponseBodyDataResultsExtPublicFigure extends $tea.Model {
3408
+ figureId?: string;
3409
+ figureName?: string;
3410
+ location?: ImageBatchModerationResponseBodyDataResultsExtPublicFigureLocation[];
3411
+ static names(): { [key: string]: string } {
3412
+ return {
3413
+ figureId: 'FigureId',
3414
+ figureName: 'FigureName',
3415
+ location: 'Location',
3416
+ };
3417
+ }
3418
+
3419
+ static types(): { [key: string]: any } {
3420
+ return {
3421
+ figureId: 'string',
3422
+ figureName: 'string',
3423
+ location: { 'type': 'array', 'itemType': ImageBatchModerationResponseBodyDataResultsExtPublicFigureLocation },
3424
+ };
3425
+ }
3426
+
3427
+ constructor(map?: { [key: string]: any }) {
3428
+ super(map);
3429
+ }
3430
+ }
3431
+
3432
+ export class ImageBatchModerationResponseBodyDataResultsExtTextInImageCustomText extends $tea.Model {
3433
+ keyWords?: string;
3434
+ /**
2871
3435
  * @example
2872
- * xxxx
3436
+ * 123456
2873
3437
  */
2874
- securityToken?: string;
3438
+ libId?: string;
3439
+ libName?: string;
2875
3440
  static names(): { [key: string]: string } {
2876
3441
  return {
2877
- accessKeyId: 'AccessKeyId',
2878
- accessKeySecret: 'AccessKeySecret',
2879
- bucketName: 'BucketName',
2880
- expiration: 'Expiration',
2881
- fileNamePrefix: 'FileNamePrefix',
2882
- ossInternalEndPoint: 'OssInternalEndPoint',
2883
- ossInternetEndPoint: 'OssInternetEndPoint',
2884
- securityToken: 'SecurityToken',
3442
+ keyWords: 'KeyWords',
3443
+ libId: 'LibId',
3444
+ libName: 'LibName',
2885
3445
  };
2886
3446
  }
2887
3447
 
2888
3448
  static types(): { [key: string]: any } {
2889
3449
  return {
2890
- accessKeyId: 'string',
2891
- accessKeySecret: 'string',
2892
- bucketName: 'string',
2893
- expiration: 'number',
2894
- fileNamePrefix: 'string',
2895
- ossInternalEndPoint: 'string',
2896
- ossInternetEndPoint: 'string',
2897
- securityToken: 'string',
3450
+ keyWords: 'string',
3451
+ libId: 'string',
3452
+ libName: 'string',
2898
3453
  };
2899
3454
  }
2900
3455
 
@@ -2903,44 +3458,42 @@ export class DescribeUploadTokenResponseBodyData extends $tea.Model {
2903
3458
  }
2904
3459
  }
2905
3460
 
2906
- export class DescribeUrlModerationResultResponseBodyDataExtraInfo extends $tea.Model {
3461
+ export class ImageBatchModerationResponseBodyDataResultsExtTextInImageOcrResultLocation extends $tea.Model {
2907
3462
  /**
2908
- * @remarks
2909
- * The ICP number.
2910
- *
2911
3463
  * @example
2912
- * xx
3464
+ * 33
2913
3465
  */
2914
- icpNo?: string;
3466
+ h?: number;
2915
3467
  /**
2916
- * @remarks
2917
- * The type of the ICP filing.
2918
- *
2919
3468
  * @example
2920
- * xx
3469
+ * 44
2921
3470
  */
2922
- icpType?: string;
3471
+ w?: number;
2923
3472
  /**
2924
- * @remarks
2925
- * The type of site
2926
- *
2927
3473
  * @example
2928
- * game
3474
+ * 11
2929
3475
  */
2930
- siteType?: string;
3476
+ x?: number;
3477
+ /**
3478
+ * @example
3479
+ * 22
3480
+ */
3481
+ y?: number;
2931
3482
  static names(): { [key: string]: string } {
2932
3483
  return {
2933
- icpNo: 'IcpNo',
2934
- icpType: 'IcpType',
2935
- siteType: 'SiteType',
3484
+ h: 'H',
3485
+ w: 'W',
3486
+ x: 'X',
3487
+ y: 'Y',
2936
3488
  };
2937
3489
  }
2938
3490
 
2939
3491
  static types(): { [key: string]: any } {
2940
3492
  return {
2941
- icpNo: 'string',
2942
- icpType: 'string',
2943
- siteType: 'string',
3493
+ h: 'number',
3494
+ w: 'number',
3495
+ x: 'number',
3496
+ y: 'number',
2944
3497
  };
2945
3498
  }
2946
3499
 
@@ -2949,34 +3502,24 @@ export class DescribeUrlModerationResultResponseBodyDataExtraInfo extends $tea.M
2949
3502
  }
2950
3503
  }
2951
3504
 
2952
- export class DescribeUrlModerationResultResponseBodyDataResult extends $tea.Model {
2953
- /**
2954
- * @remarks
2955
- * The score of the confidence level. Valid values: 0 to 100. The value is accurate to two decimal places.
2956
- *
2957
- * @example
2958
- * 81.22
2959
- */
2960
- confidence?: number;
3505
+ export class ImageBatchModerationResponseBodyDataResultsExtTextInImageOcrResult extends $tea.Model {
3506
+ location?: ImageBatchModerationResponseBodyDataResultsExtTextInImageOcrResultLocation;
2961
3507
  /**
2962
- * @remarks
2963
- * The labels returned after the asynchronous URL moderation.
2964
- *
2965
3508
  * @example
2966
- * sexual_url
3509
+ * abcd
2967
3510
  */
2968
- label?: string;
3511
+ text?: string;
2969
3512
  static names(): { [key: string]: string } {
2970
3513
  return {
2971
- confidence: 'Confidence',
2972
- label: 'Label',
3514
+ location: 'Location',
3515
+ text: 'Text',
2973
3516
  };
2974
3517
  }
2975
3518
 
2976
3519
  static types(): { [key: string]: any } {
2977
3520
  return {
2978
- confidence: 'number',
2979
- label: 'string',
3521
+ location: ImageBatchModerationResponseBodyDataResultsExtTextInImageOcrResultLocation,
3522
+ text: 'string',
2980
3523
  };
2981
3524
  }
2982
3525
 
@@ -2985,48 +3528,84 @@ export class DescribeUrlModerationResultResponseBodyDataResult extends $tea.Mode
2985
3528
  }
2986
3529
  }
2987
3530
 
2988
- export class DescribeUrlModerationResultResponseBodyData extends $tea.Model {
3531
+ export class ImageBatchModerationResponseBodyDataResultsExtTextInImage extends $tea.Model {
3532
+ customText?: ImageBatchModerationResponseBodyDataResultsExtTextInImageCustomText[];
3533
+ ocrResult?: ImageBatchModerationResponseBodyDataResultsExtTextInImageOcrResult[];
3534
+ riskWord?: string[];
3535
+ static names(): { [key: string]: string } {
3536
+ return {
3537
+ customText: 'CustomText',
3538
+ ocrResult: 'OcrResult',
3539
+ riskWord: 'RiskWord',
3540
+ };
3541
+ }
3542
+
3543
+ static types(): { [key: string]: any } {
3544
+ return {
3545
+ customText: { 'type': 'array', 'itemType': ImageBatchModerationResponseBodyDataResultsExtTextInImageCustomText },
3546
+ ocrResult: { 'type': 'array', 'itemType': ImageBatchModerationResponseBodyDataResultsExtTextInImageOcrResult },
3547
+ riskWord: { 'type': 'array', 'itemType': 'string' },
3548
+ };
3549
+ }
3550
+
3551
+ constructor(map?: { [key: string]: any }) {
3552
+ super(map);
3553
+ }
3554
+ }
3555
+
3556
+ export class ImageBatchModerationResponseBodyDataResultsExt extends $tea.Model {
3557
+ customImage?: ImageBatchModerationResponseBodyDataResultsExtCustomImage[];
3558
+ logoData?: ImageBatchModerationResponseBodyDataResultsExtLogoData;
3559
+ publicFigure?: ImageBatchModerationResponseBodyDataResultsExtPublicFigure[];
3560
+ textInImage?: ImageBatchModerationResponseBodyDataResultsExtTextInImage;
3561
+ static names(): { [key: string]: string } {
3562
+ return {
3563
+ customImage: 'CustomImage',
3564
+ logoData: 'LogoData',
3565
+ publicFigure: 'PublicFigure',
3566
+ textInImage: 'TextInImage',
3567
+ };
3568
+ }
3569
+
3570
+ static types(): { [key: string]: any } {
3571
+ return {
3572
+ customImage: { 'type': 'array', 'itemType': ImageBatchModerationResponseBodyDataResultsExtCustomImage },
3573
+ logoData: ImageBatchModerationResponseBodyDataResultsExtLogoData,
3574
+ publicFigure: { 'type': 'array', 'itemType': ImageBatchModerationResponseBodyDataResultsExtPublicFigure },
3575
+ textInImage: ImageBatchModerationResponseBodyDataResultsExtTextInImage,
3576
+ };
3577
+ }
3578
+
3579
+ constructor(map?: { [key: string]: any }) {
3580
+ super(map);
3581
+ }
3582
+ }
3583
+
3584
+ export class ImageBatchModerationResponseBodyDataResultsResult extends $tea.Model {
2989
3585
  /**
2990
- * @remarks
2991
- * The value of dataId that is specified in the API request. If this parameter is not specified in the API request, this field is not available in the response.
2992
- *
2993
3586
  * @example
2994
- * 26769ada6e264e7ba9aa048241e12be9
2995
- */
2996
- dataId?: string;
2997
- /**
2998
- * @remarks
2999
- * The supplementary information.
3587
+ * 81.22
3000
3588
  */
3001
- extraInfo?: DescribeUrlModerationResultResponseBodyDataExtraInfo;
3589
+ confidence?: number;
3590
+ description?: string;
3002
3591
  /**
3003
- * @remarks
3004
- * The ReqId field returned by an asynchronous URL moderation operation.
3005
- *
3006
3592
  * @example
3007
- * B0963D30-BAB4-562F-9ED0-7A23AEC51C7C
3008
- */
3009
- reqId?: string;
3010
- /**
3011
- * @remarks
3012
- * The returned results.
3593
+ * violent_explosion
3013
3594
  */
3014
- result?: DescribeUrlModerationResultResponseBodyDataResult[];
3595
+ label?: string;
3015
3596
  static names(): { [key: string]: string } {
3016
3597
  return {
3017
- dataId: 'DataId',
3018
- extraInfo: 'ExtraInfo',
3019
- reqId: 'ReqId',
3020
- result: 'Result',
3598
+ confidence: 'Confidence',
3599
+ description: 'Description',
3600
+ label: 'Label',
3021
3601
  };
3022
3602
  }
3023
3603
 
3024
3604
  static types(): { [key: string]: any } {
3025
3605
  return {
3026
- dataId: 'string',
3027
- extraInfo: DescribeUrlModerationResultResponseBodyDataExtraInfo,
3028
- reqId: 'string',
3029
- result: { 'type': 'array', 'itemType': DescribeUrlModerationResultResponseBodyDataResult },
3606
+ confidence: 'number',
3607
+ description: 'string',
3608
+ label: 'string',
3030
3609
  };
3031
3610
  }
3032
3611
 
@@ -3035,24 +3614,34 @@ export class DescribeUrlModerationResultResponseBodyData extends $tea.Model {
3035
3614
  }
3036
3615
  }
3037
3616
 
3038
- export class FileModerationResponseBodyData extends $tea.Model {
3617
+ export class ImageBatchModerationResponseBodyDataResults extends $tea.Model {
3618
+ ext?: ImageBatchModerationResponseBodyDataResultsExt;
3619
+ result?: ImageBatchModerationResponseBodyDataResultsResult[];
3039
3620
  /**
3040
- * @remarks
3041
- * The task ID.
3042
- *
3043
3621
  * @example
3044
- * xxxxx-xxxxx
3622
+ * high
3045
3623
  */
3046
- taskId?: string;
3624
+ riskLevel?: string;
3625
+ /**
3626
+ * @example
3627
+ * baselineCheck
3628
+ */
3629
+ service?: string;
3047
3630
  static names(): { [key: string]: string } {
3048
3631
  return {
3049
- taskId: 'TaskId',
3632
+ ext: 'Ext',
3633
+ result: 'Result',
3634
+ riskLevel: 'RiskLevel',
3635
+ service: 'Service',
3050
3636
  };
3051
3637
  }
3052
3638
 
3053
3639
  static types(): { [key: string]: any } {
3054
3640
  return {
3055
- taskId: 'string',
3641
+ ext: ImageBatchModerationResponseBodyDataResultsExt,
3642
+ result: { 'type': 'array', 'itemType': ImageBatchModerationResponseBodyDataResultsResult },
3643
+ riskLevel: 'string',
3644
+ service: 'string',
3056
3645
  };
3057
3646
  }
3058
3647
 
@@ -3061,34 +3650,34 @@ export class FileModerationResponseBodyData extends $tea.Model {
3061
3650
  }
3062
3651
  }
3063
3652
 
3064
- export class ImageAsyncModerationResponseBodyData extends $tea.Model {
3653
+ export class ImageBatchModerationResponseBodyData extends $tea.Model {
3065
3654
  /**
3066
- * @remarks
3067
- * The ID of the moderated object.
3068
- *
3069
3655
  * @example
3070
- * fb5ffab1-993b-449f-b8d6-b97d5e3331f2
3656
+ * 26769ada6e264e7ba9aa048241e12be9
3071
3657
  */
3072
3658
  dataId?: string;
3659
+ result?: ImageBatchModerationResponseBodyDataResult[];
3660
+ results?: ImageBatchModerationResponseBodyDataResults[];
3073
3661
  /**
3074
- * @remarks
3075
- * The reqId field returned by the Image Async Moderation API. You can use this field to query the detection results.
3076
- *
3077
3662
  * @example
3078
- * A07B3DB9-D762-5C56-95B1-8EC55CF176D2
3663
+ * high
3079
3664
  */
3080
- reqId?: string;
3665
+ riskLevel?: string;
3081
3666
  static names(): { [key: string]: string } {
3082
3667
  return {
3083
3668
  dataId: 'DataId',
3084
- reqId: 'ReqId',
3669
+ result: 'Result',
3670
+ results: 'Results',
3671
+ riskLevel: 'RiskLevel',
3085
3672
  };
3086
3673
  }
3087
3674
 
3088
3675
  static types(): { [key: string]: any } {
3089
3676
  return {
3090
3677
  dataId: 'string',
3091
- reqId: 'string',
3678
+ result: { 'type': 'array', 'itemType': ImageBatchModerationResponseBodyDataResult },
3679
+ results: { 'type': 'array', 'itemType': ImageBatchModerationResponseBodyDataResults },
3680
+ riskLevel: 'string',
3092
3681
  };
3093
3682
  }
3094
3683
 
@@ -4144,6 +4733,13 @@ export class ImageModerationResponseBodyDataExtTextInImage extends $tea.Model {
4144
4733
  }
4145
4734
 
4146
4735
  export class ImageModerationResponseBodyDataExtVlContent extends $tea.Model {
4736
+ /**
4737
+ * @remarks
4738
+ * the vl output content
4739
+ *
4740
+ * @example
4741
+ * this is a cat
4742
+ */
4147
4743
  outputText?: string;
4148
4744
  static names(): { [key: string]: string } {
4149
4745
  return {
@@ -4198,6 +4794,10 @@ export class ImageModerationResponseBodyDataExt extends $tea.Model {
4198
4794
  * Returns the text information in the hit image.
4199
4795
  */
4200
4796
  textInImage?: ImageModerationResponseBodyDataExtTextInImage;
4797
+ /**
4798
+ * @remarks
4799
+ * the vl output content
4800
+ */
4201
4801
  vlContent?: ImageModerationResponseBodyDataExtVlContent;
4202
4802
  static names(): { [key: string]: string } {
4203
4803
  return {
@@ -5870,6 +6470,52 @@ export default class Client extends OpenApi {
5870
6470
  return await this.imageAsyncModerationWithOptions(request, runtime);
5871
6471
  }
5872
6472
 
6473
+ /**
6474
+ * 图片批量调用
6475
+ *
6476
+ * @param request - ImageBatchModerationRequest
6477
+ * @param runtime - runtime options for this request RuntimeOptions
6478
+ * @returns ImageBatchModerationResponse
6479
+ */
6480
+ async imageBatchModerationWithOptions(request: ImageBatchModerationRequest, runtime: $Util.RuntimeOptions): Promise<ImageBatchModerationResponse> {
6481
+ Util.validateModel(request);
6482
+ let query = { };
6483
+ if (!Util.isUnset(request.serviceParameters)) {
6484
+ query["ServiceParameters"] = request.serviceParameters;
6485
+ }
6486
+
6487
+ if (!Util.isUnset(request.services)) {
6488
+ query["Services"] = request.services;
6489
+ }
6490
+
6491
+ let req = new $OpenApi.OpenApiRequest({
6492
+ query: OpenApiUtil.query(query),
6493
+ });
6494
+ let params = new $OpenApi.Params({
6495
+ action: "ImageBatchModeration",
6496
+ version: "2022-03-02",
6497
+ protocol: "HTTPS",
6498
+ pathname: "/",
6499
+ method: "POST",
6500
+ authType: "AK",
6501
+ style: "RPC",
6502
+ reqBodyType: "formData",
6503
+ bodyType: "json",
6504
+ });
6505
+ return $tea.cast<ImageBatchModerationResponse>(await this.callApi(params, req, runtime), new ImageBatchModerationResponse({}));
6506
+ }
6507
+
6508
+ /**
6509
+ * 图片批量调用
6510
+ *
6511
+ * @param request - ImageBatchModerationRequest
6512
+ * @returns ImageBatchModerationResponse
6513
+ */
6514
+ async imageBatchModeration(request: ImageBatchModerationRequest): Promise<ImageBatchModerationResponse> {
6515
+ let runtime = new $Util.RuntimeOptions({ });
6516
+ return await this.imageBatchModerationWithOptions(request, runtime);
6517
+ }
6518
+
5873
6519
  /**
5874
6520
  * 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.
5875
6521
  *