@alicloud/green20220302 2.2.10 → 2.2.12

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
@@ -124,7 +124,7 @@ export class DescribeFileModerationResultResponse extends $tea.Model {
124
124
  export class DescribeImageModerationResultRequest extends $tea.Model {
125
125
  /**
126
126
  * @remarks
127
- * The reqId field returned by the Image Async Moderation API.
127
+ * The ReqId field returned by the asynchronous Image Moderation 2.0 API.
128
128
  *
129
129
  * @example
130
130
  * B0963D30-BAB4-562F-9ED0-7A23AEC51C7C
@@ -158,7 +158,7 @@ export class DescribeImageModerationResultResponseBody extends $tea.Model {
158
158
  code?: number;
159
159
  /**
160
160
  * @remarks
161
- * The data returned.
161
+ * The image moderation results.
162
162
  */
163
163
  data?: DescribeImageModerationResultResponseBodyData;
164
164
  /**
@@ -171,7 +171,7 @@ export class DescribeImageModerationResultResponseBody extends $tea.Model {
171
171
  msg?: string;
172
172
  /**
173
173
  * @remarks
174
- * The request ID.
174
+ * The request ID, which is used to locate and troubleshoot issues.
175
175
  *
176
176
  * @example
177
177
  * 2881AD4F-638B-52A3-BA20-F74C5B1CEAE3
@@ -1003,7 +1003,15 @@ export class TextModerationResponse extends $tea.Model {
1003
1003
  export class TextModerationPlusRequest extends $tea.Model {
1004
1004
  /**
1005
1005
  * @remarks
1006
- * The type of the moderation service.
1006
+ * The moderation service.
1007
+ *
1008
+ * Valid values:
1009
+ *
1010
+ * * chat_detection_pro: moderation of interactive content of private chats_Professional
1011
+ * * llm_response_moderation: moderation of text generated by LLMs
1012
+ * * llm_query_moderation: moderation of input text of LLMs
1013
+ * * nickname_detection_pro: moderation of user nicknames_Professional
1014
+ * * comment_detection_pro: moderation of comment content of public chats_Professional
1007
1015
  *
1008
1016
  * @example
1009
1017
  * llm_query_moderation
@@ -1039,7 +1047,7 @@ export class TextModerationPlusRequest extends $tea.Model {
1039
1047
  export class TextModerationPlusResponseBody extends $tea.Model {
1040
1048
  /**
1041
1049
  * @remarks
1042
- * The returned HTTP status code.
1050
+ * The returned HTTP status code. The status code 200 indicates that the request was successful.
1043
1051
  *
1044
1052
  * @example
1045
1053
  * 200
@@ -1047,7 +1055,7 @@ export class TextModerationPlusResponseBody extends $tea.Model {
1047
1055
  code?: number;
1048
1056
  /**
1049
1057
  * @remarks
1050
- * The data returned.
1058
+ * The moderation results.
1051
1059
  */
1052
1060
  data?: TextModerationPlusResponseBodyData;
1053
1061
  /**
@@ -1060,7 +1068,7 @@ export class TextModerationPlusResponseBody extends $tea.Model {
1060
1068
  message?: string;
1061
1069
  /**
1062
1070
  * @remarks
1063
- * The request ID.
1071
+ * Id of the request
1064
1072
  *
1065
1073
  * @example
1066
1074
  * AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****
@@ -1910,6 +1918,7 @@ export class DescribeFileModerationResultResponseBodyDataPageResultImageResultLa
1910
1918
  * 25.0
1911
1919
  */
1912
1920
  confidence?: number;
1921
+ description?: string;
1913
1922
  /**
1914
1923
  * @remarks
1915
1924
  * The details of the labels.
@@ -1921,6 +1930,7 @@ export class DescribeFileModerationResultResponseBodyDataPageResultImageResultLa
1921
1930
  static names(): { [key: string]: string } {
1922
1931
  return {
1923
1932
  confidence: 'Confidence',
1933
+ description: 'Description',
1924
1934
  label: 'Label',
1925
1935
  };
1926
1936
  }
@@ -1928,6 +1938,7 @@ export class DescribeFileModerationResultResponseBodyDataPageResultImageResultLa
1928
1938
  static types(): { [key: string]: any } {
1929
1939
  return {
1930
1940
  confidence: 'number',
1941
+ description: 'string',
1931
1942
  label: 'string',
1932
1943
  };
1933
1944
  }
@@ -2012,6 +2023,7 @@ export class DescribeFileModerationResultResponseBodyDataPageResultImageResult e
2012
2023
  * Location information.
2013
2024
  */
2014
2025
  location?: DescribeFileModerationResultResponseBodyDataPageResultImageResultLocation;
2026
+ riskLevel?: string;
2015
2027
  /**
2016
2028
  * @remarks
2017
2029
  * The moderation service.
@@ -2025,6 +2037,7 @@ export class DescribeFileModerationResultResponseBodyDataPageResultImageResult e
2025
2037
  description: 'Description',
2026
2038
  labelResult: 'LabelResult',
2027
2039
  location: 'Location',
2040
+ riskLevel: 'RiskLevel',
2028
2041
  service: 'Service',
2029
2042
  };
2030
2043
  }
@@ -2034,6 +2047,7 @@ export class DescribeFileModerationResultResponseBodyDataPageResultImageResult e
2034
2047
  description: 'string',
2035
2048
  labelResult: { 'type': 'array', 'itemType': DescribeFileModerationResultResponseBodyDataPageResultImageResultLabelResult },
2036
2049
  location: DescribeFileModerationResultResponseBodyDataPageResultImageResultLocation,
2050
+ riskLevel: 'string',
2037
2051
  service: 'string',
2038
2052
  };
2039
2053
  }
@@ -2060,6 +2074,7 @@ export class DescribeFileModerationResultResponseBodyDataPageResultTextResult ex
2060
2074
  * porn
2061
2075
  */
2062
2076
  labels?: string;
2077
+ riskLevel?: string;
2063
2078
  /**
2064
2079
  * @remarks
2065
2080
  * The risk details that are hit.
@@ -2104,6 +2119,7 @@ export class DescribeFileModerationResultResponseBodyDataPageResultTextResult ex
2104
2119
  return {
2105
2120
  description: 'Description',
2106
2121
  labels: 'Labels',
2122
+ riskLevel: 'RiskLevel',
2107
2123
  riskTips: 'RiskTips',
2108
2124
  riskWords: 'RiskWords',
2109
2125
  service: 'Service',
@@ -2116,6 +2132,7 @@ export class DescribeFileModerationResultResponseBodyDataPageResultTextResult ex
2116
2132
  return {
2117
2133
  description: 'string',
2118
2134
  labels: 'string',
2135
+ riskLevel: 'string',
2119
2136
  riskTips: 'string',
2120
2137
  riskWords: 'string',
2121
2138
  service: 'string',
@@ -2189,6 +2206,122 @@ export class DescribeFileModerationResultResponseBodyDataPageResult extends $tea
2189
2206
  }
2190
2207
  }
2191
2208
 
2209
+ export class DescribeFileModerationResultResponseBodyDataPageSummaryImageSummaryImageLabels extends $tea.Model {
2210
+ description?: string;
2211
+ label?: string;
2212
+ labelSum?: number;
2213
+ static names(): { [key: string]: string } {
2214
+ return {
2215
+ description: 'Description',
2216
+ label: 'Label',
2217
+ labelSum: 'LabelSum',
2218
+ };
2219
+ }
2220
+
2221
+ static types(): { [key: string]: any } {
2222
+ return {
2223
+ description: 'string',
2224
+ label: 'string',
2225
+ labelSum: 'number',
2226
+ };
2227
+ }
2228
+
2229
+ constructor(map?: { [key: string]: any }) {
2230
+ super(map);
2231
+ }
2232
+ }
2233
+
2234
+ export class DescribeFileModerationResultResponseBodyDataPageSummaryImageSummary extends $tea.Model {
2235
+ imageLabels?: DescribeFileModerationResultResponseBodyDataPageSummaryImageSummaryImageLabels[];
2236
+ riskLevel?: string;
2237
+ static names(): { [key: string]: string } {
2238
+ return {
2239
+ imageLabels: 'ImageLabels',
2240
+ riskLevel: 'RiskLevel',
2241
+ };
2242
+ }
2243
+
2244
+ static types(): { [key: string]: any } {
2245
+ return {
2246
+ imageLabels: { 'type': 'array', 'itemType': DescribeFileModerationResultResponseBodyDataPageSummaryImageSummaryImageLabels },
2247
+ riskLevel: 'string',
2248
+ };
2249
+ }
2250
+
2251
+ constructor(map?: { [key: string]: any }) {
2252
+ super(map);
2253
+ }
2254
+ }
2255
+
2256
+ export class DescribeFileModerationResultResponseBodyDataPageSummaryTextSummaryTextLabels extends $tea.Model {
2257
+ label?: string;
2258
+ labelSum?: number;
2259
+ static names(): { [key: string]: string } {
2260
+ return {
2261
+ label: 'Label',
2262
+ labelSum: 'LabelSum',
2263
+ };
2264
+ }
2265
+
2266
+ static types(): { [key: string]: any } {
2267
+ return {
2268
+ label: 'string',
2269
+ labelSum: 'number',
2270
+ };
2271
+ }
2272
+
2273
+ constructor(map?: { [key: string]: any }) {
2274
+ super(map);
2275
+ }
2276
+ }
2277
+
2278
+ export class DescribeFileModerationResultResponseBodyDataPageSummaryTextSummary extends $tea.Model {
2279
+ riskLevel?: string;
2280
+ textLabels?: DescribeFileModerationResultResponseBodyDataPageSummaryTextSummaryTextLabels[];
2281
+ static names(): { [key: string]: string } {
2282
+ return {
2283
+ riskLevel: 'RiskLevel',
2284
+ textLabels: 'TextLabels',
2285
+ };
2286
+ }
2287
+
2288
+ static types(): { [key: string]: any } {
2289
+ return {
2290
+ riskLevel: 'string',
2291
+ textLabels: { 'type': 'array', 'itemType': DescribeFileModerationResultResponseBodyDataPageSummaryTextSummaryTextLabels },
2292
+ };
2293
+ }
2294
+
2295
+ constructor(map?: { [key: string]: any }) {
2296
+ super(map);
2297
+ }
2298
+ }
2299
+
2300
+ export class DescribeFileModerationResultResponseBodyDataPageSummary extends $tea.Model {
2301
+ imageSummary?: DescribeFileModerationResultResponseBodyDataPageSummaryImageSummary;
2302
+ pageSum?: number;
2303
+ textSummary?: DescribeFileModerationResultResponseBodyDataPageSummaryTextSummary;
2304
+ static names(): { [key: string]: string } {
2305
+ return {
2306
+ imageSummary: 'ImageSummary',
2307
+ pageSum: 'PageSum',
2308
+ textSummary: 'TextSummary',
2309
+ };
2310
+ }
2311
+
2312
+ static types(): { [key: string]: any } {
2313
+ return {
2314
+ imageSummary: DescribeFileModerationResultResponseBodyDataPageSummaryImageSummary,
2315
+ pageSum: 'number',
2316
+ textSummary: DescribeFileModerationResultResponseBodyDataPageSummaryTextSummary,
2317
+ };
2318
+ }
2319
+
2320
+ constructor(map?: { [key: string]: any }) {
2321
+ super(map);
2322
+ }
2323
+ }
2324
+
2192
2325
  export class DescribeFileModerationResultResponseBodyData extends $tea.Model {
2193
2326
  /**
2194
2327
  * @remarks
@@ -2211,6 +2344,8 @@ export class DescribeFileModerationResultResponseBodyData extends $tea.Model {
2211
2344
  * The pagination information.
2212
2345
  */
2213
2346
  pageResult?: DescribeFileModerationResultResponseBodyDataPageResult[];
2347
+ pageSummary?: DescribeFileModerationResultResponseBodyDataPageSummary;
2348
+ riskLevel?: string;
2214
2349
  /**
2215
2350
  * @remarks
2216
2351
  * The URL of the moderation object.
@@ -2224,6 +2359,8 @@ export class DescribeFileModerationResultResponseBodyData extends $tea.Model {
2224
2359
  dataId: 'DataId',
2225
2360
  docType: 'DocType',
2226
2361
  pageResult: 'PageResult',
2362
+ pageSummary: 'PageSummary',
2363
+ riskLevel: 'RiskLevel',
2227
2364
  url: 'Url',
2228
2365
  };
2229
2366
  }
@@ -2233,6 +2370,8 @@ export class DescribeFileModerationResultResponseBodyData extends $tea.Model {
2233
2370
  dataId: 'string',
2234
2371
  docType: 'string',
2235
2372
  pageResult: { 'type': 'array', 'itemType': DescribeFileModerationResultResponseBodyDataPageResult },
2373
+ pageSummary: DescribeFileModerationResultResponseBodyDataPageSummary,
2374
+ riskLevel: 'string',
2236
2375
  url: 'string',
2237
2376
  };
2238
2377
  }
@@ -2245,12 +2384,19 @@ export class DescribeFileModerationResultResponseBodyData extends $tea.Model {
2245
2384
  export class DescribeImageModerationResultResponseBodyDataResult extends $tea.Model {
2246
2385
  /**
2247
2386
  * @remarks
2248
- * The score of the confidence level. Valid values: 0 to 100. The value is accurate to two decimal places. Some labels do not have scores of confidence levels.
2387
+ * The score of the confidence level. Valid values: 0 to 100. The value is accurate to two decimal places.
2249
2388
  *
2250
2389
  * @example
2251
2390
  * 81.22
2252
2391
  */
2253
2392
  confidence?: number;
2393
+ /**
2394
+ * @remarks
2395
+ * The description of the result.
2396
+ *
2397
+ * @example
2398
+ * no risk
2399
+ */
2254
2400
  description?: string;
2255
2401
  /**
2256
2402
  * @remarks
@@ -2284,7 +2430,7 @@ export class DescribeImageModerationResultResponseBodyDataResult extends $tea.Mo
2284
2430
  export class DescribeImageModerationResultResponseBodyData extends $tea.Model {
2285
2431
  /**
2286
2432
  * @remarks
2287
- * The ID of the moderated object.
2433
+ * 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.
2288
2434
  *
2289
2435
  * @example
2290
2436
  * 2a5389eb-4ff8-4584-ac99-644e2a539aa1
@@ -2292,7 +2438,7 @@ export class DescribeImageModerationResultResponseBodyData extends $tea.Model {
2292
2438
  dataId?: string;
2293
2439
  /**
2294
2440
  * @remarks
2295
- * Image frame information.
2441
+ * The information about the captured frames.
2296
2442
  *
2297
2443
  * @example
2298
2444
  * [{"result":[{"confidence":81.22,"label":"violent_explosion"}]}]
@@ -2300,7 +2446,7 @@ export class DescribeImageModerationResultResponseBodyData extends $tea.Model {
2300
2446
  frame?: string;
2301
2447
  /**
2302
2448
  * @remarks
2303
- * Number of result frames
2449
+ * The number of frames.
2304
2450
  *
2305
2451
  * @example
2306
2452
  * 1
@@ -2882,6 +3028,246 @@ export class ImageModerationResponseBodyDataExtCustomImage extends $tea.Model {
2882
3028
  }
2883
3029
  }
2884
3030
 
3031
+ export class ImageModerationResponseBodyDataExtFaceDataBang extends $tea.Model {
3032
+ confidence?: number;
3033
+ value?: string;
3034
+ static names(): { [key: string]: string } {
3035
+ return {
3036
+ confidence: 'Confidence',
3037
+ value: 'Value',
3038
+ };
3039
+ }
3040
+
3041
+ static types(): { [key: string]: any } {
3042
+ return {
3043
+ confidence: 'number',
3044
+ value: 'string',
3045
+ };
3046
+ }
3047
+
3048
+ constructor(map?: { [key: string]: any }) {
3049
+ super(map);
3050
+ }
3051
+ }
3052
+
3053
+ export class ImageModerationResponseBodyDataExtFaceDataGender extends $tea.Model {
3054
+ confidence?: number;
3055
+ value?: string;
3056
+ static names(): { [key: string]: string } {
3057
+ return {
3058
+ confidence: 'Confidence',
3059
+ value: 'Value',
3060
+ };
3061
+ }
3062
+
3063
+ static types(): { [key: string]: any } {
3064
+ return {
3065
+ confidence: 'number',
3066
+ value: 'string',
3067
+ };
3068
+ }
3069
+
3070
+ constructor(map?: { [key: string]: any }) {
3071
+ super(map);
3072
+ }
3073
+ }
3074
+
3075
+ export class ImageModerationResponseBodyDataExtFaceDataHairstyle extends $tea.Model {
3076
+ confidence?: number;
3077
+ value?: string;
3078
+ static names(): { [key: string]: string } {
3079
+ return {
3080
+ confidence: 'Confidence',
3081
+ value: 'Value',
3082
+ };
3083
+ }
3084
+
3085
+ static types(): { [key: string]: any } {
3086
+ return {
3087
+ confidence: 'number',
3088
+ value: 'string',
3089
+ };
3090
+ }
3091
+
3092
+ constructor(map?: { [key: string]: any }) {
3093
+ super(map);
3094
+ }
3095
+ }
3096
+
3097
+ export class ImageModerationResponseBodyDataExtFaceDataHat extends $tea.Model {
3098
+ confidence?: number;
3099
+ value?: string;
3100
+ static names(): { [key: string]: string } {
3101
+ return {
3102
+ confidence: 'Confidence',
3103
+ value: 'Value',
3104
+ };
3105
+ }
3106
+
3107
+ static types(): { [key: string]: any } {
3108
+ return {
3109
+ confidence: 'number',
3110
+ value: 'string',
3111
+ };
3112
+ }
3113
+
3114
+ constructor(map?: { [key: string]: any }) {
3115
+ super(map);
3116
+ }
3117
+ }
3118
+
3119
+ export class ImageModerationResponseBodyDataExtFaceDataLocation extends $tea.Model {
3120
+ h?: number;
3121
+ w?: number;
3122
+ x?: number;
3123
+ y?: number;
3124
+ static names(): { [key: string]: string } {
3125
+ return {
3126
+ h: 'H',
3127
+ w: 'W',
3128
+ x: 'X',
3129
+ y: 'Y',
3130
+ };
3131
+ }
3132
+
3133
+ static types(): { [key: string]: any } {
3134
+ return {
3135
+ h: 'number',
3136
+ w: 'number',
3137
+ x: 'number',
3138
+ y: 'number',
3139
+ };
3140
+ }
3141
+
3142
+ constructor(map?: { [key: string]: any }) {
3143
+ super(map);
3144
+ }
3145
+ }
3146
+
3147
+ export class ImageModerationResponseBodyDataExtFaceDataMask extends $tea.Model {
3148
+ confidence?: number;
3149
+ value?: string;
3150
+ static names(): { [key: string]: string } {
3151
+ return {
3152
+ confidence: 'Confidence',
3153
+ value: 'Value',
3154
+ };
3155
+ }
3156
+
3157
+ static types(): { [key: string]: any } {
3158
+ return {
3159
+ confidence: 'number',
3160
+ value: 'string',
3161
+ };
3162
+ }
3163
+
3164
+ constructor(map?: { [key: string]: any }) {
3165
+ super(map);
3166
+ }
3167
+ }
3168
+
3169
+ export class ImageModerationResponseBodyDataExtFaceDataMustache extends $tea.Model {
3170
+ confidence?: number;
3171
+ value?: string;
3172
+ static names(): { [key: string]: string } {
3173
+ return {
3174
+ confidence: 'Confidence',
3175
+ value: 'Value',
3176
+ };
3177
+ }
3178
+
3179
+ static types(): { [key: string]: any } {
3180
+ return {
3181
+ confidence: 'number',
3182
+ value: 'string',
3183
+ };
3184
+ }
3185
+
3186
+ constructor(map?: { [key: string]: any }) {
3187
+ super(map);
3188
+ }
3189
+ }
3190
+
3191
+ export class ImageModerationResponseBodyDataExtFaceDataQuality extends $tea.Model {
3192
+ blur?: number;
3193
+ integrity?: number;
3194
+ pitch?: number;
3195
+ roll?: number;
3196
+ yaw?: number;
3197
+ static names(): { [key: string]: string } {
3198
+ return {
3199
+ blur: 'Blur',
3200
+ integrity: 'Integrity',
3201
+ pitch: 'Pitch',
3202
+ roll: 'Roll',
3203
+ yaw: 'Yaw',
3204
+ };
3205
+ }
3206
+
3207
+ static types(): { [key: string]: any } {
3208
+ return {
3209
+ blur: 'number',
3210
+ integrity: 'number',
3211
+ pitch: 'number',
3212
+ roll: 'number',
3213
+ yaw: 'number',
3214
+ };
3215
+ }
3216
+
3217
+ constructor(map?: { [key: string]: any }) {
3218
+ super(map);
3219
+ }
3220
+ }
3221
+
3222
+ export class ImageModerationResponseBodyDataExtFaceData extends $tea.Model {
3223
+ age?: number;
3224
+ bang?: ImageModerationResponseBodyDataExtFaceDataBang;
3225
+ gender?: ImageModerationResponseBodyDataExtFaceDataGender;
3226
+ glasses?: string;
3227
+ hairstyle?: ImageModerationResponseBodyDataExtFaceDataHairstyle;
3228
+ hat?: ImageModerationResponseBodyDataExtFaceDataHat;
3229
+ location?: ImageModerationResponseBodyDataExtFaceDataLocation;
3230
+ mask?: ImageModerationResponseBodyDataExtFaceDataMask;
3231
+ mustache?: ImageModerationResponseBodyDataExtFaceDataMustache;
3232
+ quality?: ImageModerationResponseBodyDataExtFaceDataQuality;
3233
+ smile?: number;
3234
+ static names(): { [key: string]: string } {
3235
+ return {
3236
+ age: 'Age',
3237
+ bang: 'Bang',
3238
+ gender: 'Gender',
3239
+ glasses: 'Glasses',
3240
+ hairstyle: 'Hairstyle',
3241
+ hat: 'Hat',
3242
+ location: 'Location',
3243
+ mask: 'Mask',
3244
+ mustache: 'Mustache',
3245
+ quality: 'Quality',
3246
+ smile: 'Smile',
3247
+ };
3248
+ }
3249
+
3250
+ static types(): { [key: string]: any } {
3251
+ return {
3252
+ age: 'number',
3253
+ bang: ImageModerationResponseBodyDataExtFaceDataBang,
3254
+ gender: ImageModerationResponseBodyDataExtFaceDataGender,
3255
+ glasses: 'string',
3256
+ hairstyle: ImageModerationResponseBodyDataExtFaceDataHairstyle,
3257
+ hat: ImageModerationResponseBodyDataExtFaceDataHat,
3258
+ location: ImageModerationResponseBodyDataExtFaceDataLocation,
3259
+ mask: ImageModerationResponseBodyDataExtFaceDataMask,
3260
+ mustache: ImageModerationResponseBodyDataExtFaceDataMustache,
3261
+ quality: ImageModerationResponseBodyDataExtFaceDataQuality,
3262
+ smile: 'number',
3263
+ };
3264
+ }
3265
+
3266
+ constructor(map?: { [key: string]: any }) {
3267
+ super(map);
3268
+ }
3269
+ }
3270
+
2885
3271
  export class ImageModerationResponseBodyDataExtLogoDataLocation extends $tea.Model {
2886
3272
  /**
2887
3273
  * @remarks
@@ -3416,6 +3802,7 @@ export class ImageModerationResponseBodyDataExt extends $tea.Model {
3416
3802
  * If a custom image library is hit, information about the hit custom image library is returned.
3417
3803
  */
3418
3804
  customImage?: ImageModerationResponseBodyDataExtCustomImage[];
3805
+ faceData?: ImageModerationResponseBodyDataExtFaceData[];
3419
3806
  /**
3420
3807
  * @remarks
3421
3808
  * Logo information.
@@ -3444,6 +3831,7 @@ export class ImageModerationResponseBodyDataExt extends $tea.Model {
3444
3831
  static names(): { [key: string]: string } {
3445
3832
  return {
3446
3833
  customImage: 'CustomImage',
3834
+ faceData: 'FaceData',
3447
3835
  logoData: 'LogoData',
3448
3836
  ocrResult: 'OcrResult',
3449
3837
  publicFigure: 'PublicFigure',
@@ -3455,6 +3843,7 @@ export class ImageModerationResponseBodyDataExt extends $tea.Model {
3455
3843
  static types(): { [key: string]: any } {
3456
3844
  return {
3457
3845
  customImage: { 'type': 'array', 'itemType': ImageModerationResponseBodyDataExtCustomImage },
3846
+ faceData: { 'type': 'array', 'itemType': ImageModerationResponseBodyDataExtFaceData },
3458
3847
  logoData: { 'type': 'array', 'itemType': ImageModerationResponseBodyDataExtLogoData },
3459
3848
  ocrResult: { 'type': 'array', 'itemType': ImageModerationResponseBodyDataExtOcrResult },
3460
3849
  publicFigure: { 'type': 'array', 'itemType': ImageModerationResponseBodyDataExtPublicFigure },
@@ -3477,6 +3866,13 @@ export class ImageModerationResponseBodyDataResult extends $tea.Model {
3477
3866
  * 81.22
3478
3867
  */
3479
3868
  confidence?: number;
3869
+ /**
3870
+ * @remarks
3871
+ * The description of the result.
3872
+ *
3873
+ * @example
3874
+ * no risk
3875
+ */
3480
3876
  description?: string;
3481
3877
  /**
3482
3878
  * @remarks
@@ -3618,7 +4014,7 @@ export class TextModerationResponseBodyData extends $tea.Model {
3618
4014
  export class TextModerationPlusResponseBodyDataAdvice extends $tea.Model {
3619
4015
  /**
3620
4016
  * @remarks
3621
- * Answer
4017
+ * The answer.
3622
4018
  *
3623
4019
  * @example
3624
4020
  * XXX
@@ -3664,7 +4060,7 @@ export class TextModerationPlusResponseBodyDataAdvice extends $tea.Model {
3664
4060
  export class TextModerationPlusResponseBodyDataResultCustomizedHit extends $tea.Model {
3665
4061
  /**
3666
4062
  * @remarks
3667
- * Hit keywords, comma separated.
4063
+ * The terms that are hit. Multiple terms are separated by commas (,).
3668
4064
  *
3669
4065
  * @example
3670
4066
  * xxx
@@ -3672,7 +4068,7 @@ export class TextModerationPlusResponseBodyDataResultCustomizedHit extends $tea.
3672
4068
  keyWords?: string;
3673
4069
  /**
3674
4070
  * @remarks
3675
- * Library Name
4071
+ * The library name.
3676
4072
  *
3677
4073
  * @example
3678
4074
  * test
@@ -3700,7 +4096,7 @@ export class TextModerationPlusResponseBodyDataResultCustomizedHit extends $tea.
3700
4096
  export class TextModerationPlusResponseBodyDataResult extends $tea.Model {
3701
4097
  /**
3702
4098
  * @remarks
3703
- * Confidence score, 0 to 100, reserved to 2 decimal places.
4099
+ * The score of the confidence level. Valid values: 0 to 100. The value is accurate to two decimal places.
3704
4100
  *
3705
4101
  * @example
3706
4102
  * 81.22
@@ -3708,12 +4104,20 @@ export class TextModerationPlusResponseBodyDataResult extends $tea.Model {
3708
4104
  confidence?: number;
3709
4105
  /**
3710
4106
  * @remarks
3711
- * Custom keyword hits
4107
+ * The custom term hit by the moderated content.
3712
4108
  */
3713
4109
  customizedHit?: TextModerationPlusResponseBodyDataResultCustomizedHit[];
3714
4110
  /**
3715
4111
  * @remarks
3716
- * Labels.
4112
+ * The description of the label.
4113
+ *
4114
+ * @example
4115
+ * none
4116
+ */
4117
+ description?: string;
4118
+ /**
4119
+ * @remarks
4120
+ * The label.
3717
4121
  *
3718
4122
  * @example
3719
4123
  * porn
@@ -3721,7 +4125,7 @@ export class TextModerationPlusResponseBodyDataResult extends $tea.Model {
3721
4125
  label?: string;
3722
4126
  /**
3723
4127
  * @remarks
3724
- * Risk words
4128
+ * The term hit by the moderated content.
3725
4129
  *
3726
4130
  * @example
3727
4131
  * XXX
@@ -3731,6 +4135,7 @@ export class TextModerationPlusResponseBodyDataResult extends $tea.Model {
3731
4135
  return {
3732
4136
  confidence: 'Confidence',
3733
4137
  customizedHit: 'CustomizedHit',
4138
+ description: 'Description',
3734
4139
  label: 'Label',
3735
4140
  riskWords: 'RiskWords',
3736
4141
  };
@@ -3740,6 +4145,7 @@ export class TextModerationPlusResponseBodyDataResult extends $tea.Model {
3740
4145
  return {
3741
4146
  confidence: 'number',
3742
4147
  customizedHit: { 'type': 'array', 'itemType': TextModerationPlusResponseBodyDataResultCustomizedHit },
4148
+ description: 'string',
3743
4149
  label: 'string',
3744
4150
  riskWords: 'string',
3745
4151
  };
@@ -3753,12 +4159,12 @@ export class TextModerationPlusResponseBodyDataResult extends $tea.Model {
3753
4159
  export class TextModerationPlusResponseBodyData extends $tea.Model {
3754
4160
  /**
3755
4161
  * @remarks
3756
- * Advice
4162
+ * The suggestion.
3757
4163
  */
3758
4164
  advice?: TextModerationPlusResponseBodyDataAdvice[];
3759
4165
  /**
3760
4166
  * @remarks
3761
- * The moderation results.
4167
+ * The results.
3762
4168
  */
3763
4169
  result?: TextModerationPlusResponseBodyDataResult[];
3764
4170
  /**
@@ -3771,7 +4177,7 @@ export class TextModerationPlusResponseBodyData extends $tea.Model {
3771
4177
  riskLevel?: string;
3772
4178
  /**
3773
4179
  * @remarks
3774
- * Score.
4180
+ * The score.
3775
4181
  *
3776
4182
  * @example
3777
4183
  * 1
@@ -4730,7 +5136,11 @@ export default class Client extends OpenApi {
4730
5136
  }
4731
5137
 
4732
5138
  /**
4733
- * 查询异步检测结果
5139
+ * Obtains the moderation results of an Image Moderation 2.0 task.
5140
+ *
5141
+ * @remarks
5142
+ * Billing: This operation is free of charge.
5143
+ * * QPS limit: You can call this operation up to 100 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
4734
5144
  *
4735
5145
  * @param request - DescribeImageModerationResultRequest
4736
5146
  * @param runtime - runtime options for this request RuntimeOptions
@@ -4761,7 +5171,11 @@ export default class Client extends OpenApi {
4761
5171
  }
4762
5172
 
4763
5173
  /**
4764
- * 查询异步检测结果
5174
+ * Obtains the moderation results of an Image Moderation 2.0 task.
5175
+ *
5176
+ * @remarks
5177
+ * Billing: This operation is free of charge.
5178
+ * * QPS limit: You can call this operation up to 100 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
4765
5179
  *
4766
5180
  * @param request - DescribeImageModerationResultRequest
4767
5181
  * @returns DescribeImageModerationResultResponse
@@ -5092,7 +5506,10 @@ export default class Client extends OpenApi {
5092
5506
  }
5093
5507
 
5094
5508
  /**
5095
- * 文本检测Plus版
5509
+ * Moderates the input command and generated text of large language models (LLMs). Specific model input commands can be used to retrieve standard answers. The feature of enabling and disabling the moderation labels is also available.
5510
+ *
5511
+ * @remarks
5512
+ * Before you call this operation, make sure that you have [activated the Content Moderation 2.0 service](https://common-buy.aliyun.com/?commodityCode=lvwang_cip_public_cn) and are familiar with the [billing](https://help.aliyun.com/document_detail/2671445.html?#section-6od-32j-99n) of the Text Moderation 2.0 Plus service.
5096
5513
  *
5097
5514
  * @param request - TextModerationPlusRequest
5098
5515
  * @param runtime - runtime options for this request RuntimeOptions
@@ -5127,7 +5544,10 @@ export default class Client extends OpenApi {
5127
5544
  }
5128
5545
 
5129
5546
  /**
5130
- * 文本检测Plus版
5547
+ * Moderates the input command and generated text of large language models (LLMs). Specific model input commands can be used to retrieve standard answers. The feature of enabling and disabling the moderation labels is also available.
5548
+ *
5549
+ * @remarks
5550
+ * Before you call this operation, make sure that you have [activated the Content Moderation 2.0 service](https://common-buy.aliyun.com/?commodityCode=lvwang_cip_public_cn) and are familiar with the [billing](https://help.aliyun.com/document_detail/2671445.html?#section-6od-32j-99n) of the Text Moderation 2.0 Plus service.
5131
5551
  *
5132
5552
  * @param request - TextModerationPlusRequest
5133
5553
  * @returns TextModerationPlusResponse