@alicloud/green20220302 2.2.11 → 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
@@ -1918,6 +1918,7 @@ export class DescribeFileModerationResultResponseBodyDataPageResultImageResultLa
1918
1918
  * 25.0
1919
1919
  */
1920
1920
  confidence?: number;
1921
+ description?: string;
1921
1922
  /**
1922
1923
  * @remarks
1923
1924
  * The details of the labels.
@@ -1929,6 +1930,7 @@ export class DescribeFileModerationResultResponseBodyDataPageResultImageResultLa
1929
1930
  static names(): { [key: string]: string } {
1930
1931
  return {
1931
1932
  confidence: 'Confidence',
1933
+ description: 'Description',
1932
1934
  label: 'Label',
1933
1935
  };
1934
1936
  }
@@ -1936,6 +1938,7 @@ export class DescribeFileModerationResultResponseBodyDataPageResultImageResultLa
1936
1938
  static types(): { [key: string]: any } {
1937
1939
  return {
1938
1940
  confidence: 'number',
1941
+ description: 'string',
1939
1942
  label: 'string',
1940
1943
  };
1941
1944
  }
@@ -2020,6 +2023,7 @@ export class DescribeFileModerationResultResponseBodyDataPageResultImageResult e
2020
2023
  * Location information.
2021
2024
  */
2022
2025
  location?: DescribeFileModerationResultResponseBodyDataPageResultImageResultLocation;
2026
+ riskLevel?: string;
2023
2027
  /**
2024
2028
  * @remarks
2025
2029
  * The moderation service.
@@ -2033,6 +2037,7 @@ export class DescribeFileModerationResultResponseBodyDataPageResultImageResult e
2033
2037
  description: 'Description',
2034
2038
  labelResult: 'LabelResult',
2035
2039
  location: 'Location',
2040
+ riskLevel: 'RiskLevel',
2036
2041
  service: 'Service',
2037
2042
  };
2038
2043
  }
@@ -2042,6 +2047,7 @@ export class DescribeFileModerationResultResponseBodyDataPageResultImageResult e
2042
2047
  description: 'string',
2043
2048
  labelResult: { 'type': 'array', 'itemType': DescribeFileModerationResultResponseBodyDataPageResultImageResultLabelResult },
2044
2049
  location: DescribeFileModerationResultResponseBodyDataPageResultImageResultLocation,
2050
+ riskLevel: 'string',
2045
2051
  service: 'string',
2046
2052
  };
2047
2053
  }
@@ -2068,6 +2074,7 @@ export class DescribeFileModerationResultResponseBodyDataPageResultTextResult ex
2068
2074
  * porn
2069
2075
  */
2070
2076
  labels?: string;
2077
+ riskLevel?: string;
2071
2078
  /**
2072
2079
  * @remarks
2073
2080
  * The risk details that are hit.
@@ -2112,6 +2119,7 @@ export class DescribeFileModerationResultResponseBodyDataPageResultTextResult ex
2112
2119
  return {
2113
2120
  description: 'Description',
2114
2121
  labels: 'Labels',
2122
+ riskLevel: 'RiskLevel',
2115
2123
  riskTips: 'RiskTips',
2116
2124
  riskWords: 'RiskWords',
2117
2125
  service: 'Service',
@@ -2124,6 +2132,7 @@ export class DescribeFileModerationResultResponseBodyDataPageResultTextResult ex
2124
2132
  return {
2125
2133
  description: 'string',
2126
2134
  labels: 'string',
2135
+ riskLevel: 'string',
2127
2136
  riskTips: 'string',
2128
2137
  riskWords: 'string',
2129
2138
  service: 'string',
@@ -2197,6 +2206,122 @@ export class DescribeFileModerationResultResponseBodyDataPageResult extends $tea
2197
2206
  }
2198
2207
  }
2199
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
+
2200
2325
  export class DescribeFileModerationResultResponseBodyData extends $tea.Model {
2201
2326
  /**
2202
2327
  * @remarks
@@ -2219,6 +2344,8 @@ export class DescribeFileModerationResultResponseBodyData extends $tea.Model {
2219
2344
  * The pagination information.
2220
2345
  */
2221
2346
  pageResult?: DescribeFileModerationResultResponseBodyDataPageResult[];
2347
+ pageSummary?: DescribeFileModerationResultResponseBodyDataPageSummary;
2348
+ riskLevel?: string;
2222
2349
  /**
2223
2350
  * @remarks
2224
2351
  * The URL of the moderation object.
@@ -2232,6 +2359,8 @@ export class DescribeFileModerationResultResponseBodyData extends $tea.Model {
2232
2359
  dataId: 'DataId',
2233
2360
  docType: 'DocType',
2234
2361
  pageResult: 'PageResult',
2362
+ pageSummary: 'PageSummary',
2363
+ riskLevel: 'RiskLevel',
2235
2364
  url: 'Url',
2236
2365
  };
2237
2366
  }
@@ -2241,6 +2370,8 @@ export class DescribeFileModerationResultResponseBodyData extends $tea.Model {
2241
2370
  dataId: 'string',
2242
2371
  docType: 'string',
2243
2372
  pageResult: { 'type': 'array', 'itemType': DescribeFileModerationResultResponseBodyDataPageResult },
2373
+ pageSummary: DescribeFileModerationResultResponseBodyDataPageSummary,
2374
+ riskLevel: 'string',
2244
2375
  url: 'string',
2245
2376
  };
2246
2377
  }
@@ -2897,6 +3028,246 @@ export class ImageModerationResponseBodyDataExtCustomImage extends $tea.Model {
2897
3028
  }
2898
3029
  }
2899
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
+
2900
3271
  export class ImageModerationResponseBodyDataExtLogoDataLocation extends $tea.Model {
2901
3272
  /**
2902
3273
  * @remarks
@@ -3431,6 +3802,7 @@ export class ImageModerationResponseBodyDataExt extends $tea.Model {
3431
3802
  * If a custom image library is hit, information about the hit custom image library is returned.
3432
3803
  */
3433
3804
  customImage?: ImageModerationResponseBodyDataExtCustomImage[];
3805
+ faceData?: ImageModerationResponseBodyDataExtFaceData[];
3434
3806
  /**
3435
3807
  * @remarks
3436
3808
  * Logo information.
@@ -3459,6 +3831,7 @@ export class ImageModerationResponseBodyDataExt extends $tea.Model {
3459
3831
  static names(): { [key: string]: string } {
3460
3832
  return {
3461
3833
  customImage: 'CustomImage',
3834
+ faceData: 'FaceData',
3462
3835
  logoData: 'LogoData',
3463
3836
  ocrResult: 'OcrResult',
3464
3837
  publicFigure: 'PublicFigure',
@@ -3470,6 +3843,7 @@ export class ImageModerationResponseBodyDataExt extends $tea.Model {
3470
3843
  static types(): { [key: string]: any } {
3471
3844
  return {
3472
3845
  customImage: { 'type': 'array', 'itemType': ImageModerationResponseBodyDataExtCustomImage },
3846
+ faceData: { 'type': 'array', 'itemType': ImageModerationResponseBodyDataExtFaceData },
3473
3847
  logoData: { 'type': 'array', 'itemType': ImageModerationResponseBodyDataExtLogoData },
3474
3848
  ocrResult: { 'type': 'array', 'itemType': ImageModerationResponseBodyDataExtOcrResult },
3475
3849
  publicFigure: { 'type': 'array', 'itemType': ImageModerationResponseBodyDataExtPublicFigure },