@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/dist/client.d.ts +273 -25
- package/dist/client.js +318 -6
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +445 -25
package/dist/client.d.ts
CHANGED
|
@@ -89,7 +89,7 @@ export declare class DescribeFileModerationResultResponse extends $tea.Model {
|
|
|
89
89
|
export declare class DescribeImageModerationResultRequest extends $tea.Model {
|
|
90
90
|
/**
|
|
91
91
|
* @remarks
|
|
92
|
-
* The
|
|
92
|
+
* The ReqId field returned by the asynchronous Image Moderation 2.0 API.
|
|
93
93
|
*
|
|
94
94
|
* @example
|
|
95
95
|
* B0963D30-BAB4-562F-9ED0-7A23AEC51C7C
|
|
@@ -116,7 +116,7 @@ export declare class DescribeImageModerationResultResponseBody extends $tea.Mode
|
|
|
116
116
|
code?: number;
|
|
117
117
|
/**
|
|
118
118
|
* @remarks
|
|
119
|
-
* The
|
|
119
|
+
* The image moderation results.
|
|
120
120
|
*/
|
|
121
121
|
data?: DescribeImageModerationResultResponseBodyData;
|
|
122
122
|
/**
|
|
@@ -129,7 +129,7 @@ export declare class DescribeImageModerationResultResponseBody extends $tea.Mode
|
|
|
129
129
|
msg?: string;
|
|
130
130
|
/**
|
|
131
131
|
* @remarks
|
|
132
|
-
* The request ID.
|
|
132
|
+
* The request ID, which is used to locate and troubleshoot issues.
|
|
133
133
|
*
|
|
134
134
|
* @example
|
|
135
135
|
* 2881AD4F-638B-52A3-BA20-F74C5B1CEAE3
|
|
@@ -733,7 +733,15 @@ export declare class TextModerationResponse extends $tea.Model {
|
|
|
733
733
|
export declare class TextModerationPlusRequest extends $tea.Model {
|
|
734
734
|
/**
|
|
735
735
|
* @remarks
|
|
736
|
-
* The
|
|
736
|
+
* The moderation service.
|
|
737
|
+
*
|
|
738
|
+
* Valid values:
|
|
739
|
+
*
|
|
740
|
+
* * chat_detection_pro: moderation of interactive content of private chats_Professional
|
|
741
|
+
* * llm_response_moderation: moderation of text generated by LLMs
|
|
742
|
+
* * llm_query_moderation: moderation of input text of LLMs
|
|
743
|
+
* * nickname_detection_pro: moderation of user nicknames_Professional
|
|
744
|
+
* * comment_detection_pro: moderation of comment content of public chats_Professional
|
|
737
745
|
*
|
|
738
746
|
* @example
|
|
739
747
|
* llm_query_moderation
|
|
@@ -760,7 +768,7 @@ export declare class TextModerationPlusRequest extends $tea.Model {
|
|
|
760
768
|
export declare class TextModerationPlusResponseBody extends $tea.Model {
|
|
761
769
|
/**
|
|
762
770
|
* @remarks
|
|
763
|
-
* The returned HTTP status code.
|
|
771
|
+
* The returned HTTP status code. The status code 200 indicates that the request was successful.
|
|
764
772
|
*
|
|
765
773
|
* @example
|
|
766
774
|
* 200
|
|
@@ -768,7 +776,7 @@ export declare class TextModerationPlusResponseBody extends $tea.Model {
|
|
|
768
776
|
code?: number;
|
|
769
777
|
/**
|
|
770
778
|
* @remarks
|
|
771
|
-
* The
|
|
779
|
+
* The moderation results.
|
|
772
780
|
*/
|
|
773
781
|
data?: TextModerationPlusResponseBodyData;
|
|
774
782
|
/**
|
|
@@ -781,7 +789,7 @@ export declare class TextModerationPlusResponseBody extends $tea.Model {
|
|
|
781
789
|
message?: string;
|
|
782
790
|
/**
|
|
783
791
|
* @remarks
|
|
784
|
-
*
|
|
792
|
+
* Id of the request
|
|
785
793
|
*
|
|
786
794
|
* @example
|
|
787
795
|
* AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****
|
|
@@ -1396,6 +1404,7 @@ export declare class DescribeFileModerationResultResponseBodyDataPageResultImage
|
|
|
1396
1404
|
* 25.0
|
|
1397
1405
|
*/
|
|
1398
1406
|
confidence?: number;
|
|
1407
|
+
description?: string;
|
|
1399
1408
|
/**
|
|
1400
1409
|
* @remarks
|
|
1401
1410
|
* The details of the labels.
|
|
@@ -1476,6 +1485,7 @@ export declare class DescribeFileModerationResultResponseBodyDataPageResultImage
|
|
|
1476
1485
|
* Location information.
|
|
1477
1486
|
*/
|
|
1478
1487
|
location?: DescribeFileModerationResultResponseBodyDataPageResultImageResultLocation;
|
|
1488
|
+
riskLevel?: string;
|
|
1479
1489
|
/**
|
|
1480
1490
|
* @remarks
|
|
1481
1491
|
* The moderation service.
|
|
@@ -1511,6 +1521,7 @@ export declare class DescribeFileModerationResultResponseBodyDataPageResultTextR
|
|
|
1511
1521
|
* porn
|
|
1512
1522
|
*/
|
|
1513
1523
|
labels?: string;
|
|
1524
|
+
riskLevel?: string;
|
|
1514
1525
|
/**
|
|
1515
1526
|
* @remarks
|
|
1516
1527
|
* The risk details that are hit.
|
|
@@ -1606,6 +1617,73 @@ export declare class DescribeFileModerationResultResponseBodyDataPageResult exte
|
|
|
1606
1617
|
[key: string]: any;
|
|
1607
1618
|
});
|
|
1608
1619
|
}
|
|
1620
|
+
export declare class DescribeFileModerationResultResponseBodyDataPageSummaryImageSummaryImageLabels extends $tea.Model {
|
|
1621
|
+
description?: string;
|
|
1622
|
+
label?: string;
|
|
1623
|
+
labelSum?: number;
|
|
1624
|
+
static names(): {
|
|
1625
|
+
[key: string]: string;
|
|
1626
|
+
};
|
|
1627
|
+
static types(): {
|
|
1628
|
+
[key: string]: any;
|
|
1629
|
+
};
|
|
1630
|
+
constructor(map?: {
|
|
1631
|
+
[key: string]: any;
|
|
1632
|
+
});
|
|
1633
|
+
}
|
|
1634
|
+
export declare class DescribeFileModerationResultResponseBodyDataPageSummaryImageSummary extends $tea.Model {
|
|
1635
|
+
imageLabels?: DescribeFileModerationResultResponseBodyDataPageSummaryImageSummaryImageLabels[];
|
|
1636
|
+
riskLevel?: string;
|
|
1637
|
+
static names(): {
|
|
1638
|
+
[key: string]: string;
|
|
1639
|
+
};
|
|
1640
|
+
static types(): {
|
|
1641
|
+
[key: string]: any;
|
|
1642
|
+
};
|
|
1643
|
+
constructor(map?: {
|
|
1644
|
+
[key: string]: any;
|
|
1645
|
+
});
|
|
1646
|
+
}
|
|
1647
|
+
export declare class DescribeFileModerationResultResponseBodyDataPageSummaryTextSummaryTextLabels extends $tea.Model {
|
|
1648
|
+
label?: string;
|
|
1649
|
+
labelSum?: number;
|
|
1650
|
+
static names(): {
|
|
1651
|
+
[key: string]: string;
|
|
1652
|
+
};
|
|
1653
|
+
static types(): {
|
|
1654
|
+
[key: string]: any;
|
|
1655
|
+
};
|
|
1656
|
+
constructor(map?: {
|
|
1657
|
+
[key: string]: any;
|
|
1658
|
+
});
|
|
1659
|
+
}
|
|
1660
|
+
export declare class DescribeFileModerationResultResponseBodyDataPageSummaryTextSummary extends $tea.Model {
|
|
1661
|
+
riskLevel?: string;
|
|
1662
|
+
textLabels?: DescribeFileModerationResultResponseBodyDataPageSummaryTextSummaryTextLabels[];
|
|
1663
|
+
static names(): {
|
|
1664
|
+
[key: string]: string;
|
|
1665
|
+
};
|
|
1666
|
+
static types(): {
|
|
1667
|
+
[key: string]: any;
|
|
1668
|
+
};
|
|
1669
|
+
constructor(map?: {
|
|
1670
|
+
[key: string]: any;
|
|
1671
|
+
});
|
|
1672
|
+
}
|
|
1673
|
+
export declare class DescribeFileModerationResultResponseBodyDataPageSummary extends $tea.Model {
|
|
1674
|
+
imageSummary?: DescribeFileModerationResultResponseBodyDataPageSummaryImageSummary;
|
|
1675
|
+
pageSum?: number;
|
|
1676
|
+
textSummary?: DescribeFileModerationResultResponseBodyDataPageSummaryTextSummary;
|
|
1677
|
+
static names(): {
|
|
1678
|
+
[key: string]: string;
|
|
1679
|
+
};
|
|
1680
|
+
static types(): {
|
|
1681
|
+
[key: string]: any;
|
|
1682
|
+
};
|
|
1683
|
+
constructor(map?: {
|
|
1684
|
+
[key: string]: any;
|
|
1685
|
+
});
|
|
1686
|
+
}
|
|
1609
1687
|
export declare class DescribeFileModerationResultResponseBodyData extends $tea.Model {
|
|
1610
1688
|
/**
|
|
1611
1689
|
* @remarks
|
|
@@ -1628,6 +1706,8 @@ export declare class DescribeFileModerationResultResponseBodyData extends $tea.M
|
|
|
1628
1706
|
* The pagination information.
|
|
1629
1707
|
*/
|
|
1630
1708
|
pageResult?: DescribeFileModerationResultResponseBodyDataPageResult[];
|
|
1709
|
+
pageSummary?: DescribeFileModerationResultResponseBodyDataPageSummary;
|
|
1710
|
+
riskLevel?: string;
|
|
1631
1711
|
/**
|
|
1632
1712
|
* @remarks
|
|
1633
1713
|
* The URL of the moderation object.
|
|
@@ -1649,12 +1729,19 @@ export declare class DescribeFileModerationResultResponseBodyData extends $tea.M
|
|
|
1649
1729
|
export declare class DescribeImageModerationResultResponseBodyDataResult extends $tea.Model {
|
|
1650
1730
|
/**
|
|
1651
1731
|
* @remarks
|
|
1652
|
-
* The score of the confidence level. Valid values: 0 to 100. The value is accurate to two decimal places.
|
|
1732
|
+
* The score of the confidence level. Valid values: 0 to 100. The value is accurate to two decimal places.
|
|
1653
1733
|
*
|
|
1654
1734
|
* @example
|
|
1655
1735
|
* 81.22
|
|
1656
1736
|
*/
|
|
1657
1737
|
confidence?: number;
|
|
1738
|
+
/**
|
|
1739
|
+
* @remarks
|
|
1740
|
+
* The description of the result.
|
|
1741
|
+
*
|
|
1742
|
+
* @example
|
|
1743
|
+
* no risk
|
|
1744
|
+
*/
|
|
1658
1745
|
description?: string;
|
|
1659
1746
|
/**
|
|
1660
1747
|
* @remarks
|
|
@@ -1677,7 +1764,7 @@ export declare class DescribeImageModerationResultResponseBodyDataResult extends
|
|
|
1677
1764
|
export declare class DescribeImageModerationResultResponseBodyData extends $tea.Model {
|
|
1678
1765
|
/**
|
|
1679
1766
|
* @remarks
|
|
1680
|
-
* The
|
|
1767
|
+
* 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.
|
|
1681
1768
|
*
|
|
1682
1769
|
* @example
|
|
1683
1770
|
* 2a5389eb-4ff8-4584-ac99-644e2a539aa1
|
|
@@ -1685,7 +1772,7 @@ export declare class DescribeImageModerationResultResponseBodyData extends $tea.
|
|
|
1685
1772
|
dataId?: string;
|
|
1686
1773
|
/**
|
|
1687
1774
|
* @remarks
|
|
1688
|
-
*
|
|
1775
|
+
* The information about the captured frames.
|
|
1689
1776
|
*
|
|
1690
1777
|
* @example
|
|
1691
1778
|
* [{"result":[{"confidence":81.22,"label":"violent_explosion"}]}]
|
|
@@ -1693,7 +1780,7 @@ export declare class DescribeImageModerationResultResponseBodyData extends $tea.
|
|
|
1693
1780
|
frame?: string;
|
|
1694
1781
|
/**
|
|
1695
1782
|
* @remarks
|
|
1696
|
-
*
|
|
1783
|
+
* The number of frames.
|
|
1697
1784
|
*
|
|
1698
1785
|
* @example
|
|
1699
1786
|
* 1
|
|
@@ -2126,6 +2213,137 @@ export declare class ImageModerationResponseBodyDataExtCustomImage extends $tea.
|
|
|
2126
2213
|
[key: string]: any;
|
|
2127
2214
|
});
|
|
2128
2215
|
}
|
|
2216
|
+
export declare class ImageModerationResponseBodyDataExtFaceDataBang extends $tea.Model {
|
|
2217
|
+
confidence?: number;
|
|
2218
|
+
value?: string;
|
|
2219
|
+
static names(): {
|
|
2220
|
+
[key: string]: string;
|
|
2221
|
+
};
|
|
2222
|
+
static types(): {
|
|
2223
|
+
[key: string]: any;
|
|
2224
|
+
};
|
|
2225
|
+
constructor(map?: {
|
|
2226
|
+
[key: string]: any;
|
|
2227
|
+
});
|
|
2228
|
+
}
|
|
2229
|
+
export declare class ImageModerationResponseBodyDataExtFaceDataGender extends $tea.Model {
|
|
2230
|
+
confidence?: number;
|
|
2231
|
+
value?: string;
|
|
2232
|
+
static names(): {
|
|
2233
|
+
[key: string]: string;
|
|
2234
|
+
};
|
|
2235
|
+
static types(): {
|
|
2236
|
+
[key: string]: any;
|
|
2237
|
+
};
|
|
2238
|
+
constructor(map?: {
|
|
2239
|
+
[key: string]: any;
|
|
2240
|
+
});
|
|
2241
|
+
}
|
|
2242
|
+
export declare class ImageModerationResponseBodyDataExtFaceDataHairstyle extends $tea.Model {
|
|
2243
|
+
confidence?: number;
|
|
2244
|
+
value?: string;
|
|
2245
|
+
static names(): {
|
|
2246
|
+
[key: string]: string;
|
|
2247
|
+
};
|
|
2248
|
+
static types(): {
|
|
2249
|
+
[key: string]: any;
|
|
2250
|
+
};
|
|
2251
|
+
constructor(map?: {
|
|
2252
|
+
[key: string]: any;
|
|
2253
|
+
});
|
|
2254
|
+
}
|
|
2255
|
+
export declare class ImageModerationResponseBodyDataExtFaceDataHat extends $tea.Model {
|
|
2256
|
+
confidence?: number;
|
|
2257
|
+
value?: string;
|
|
2258
|
+
static names(): {
|
|
2259
|
+
[key: string]: string;
|
|
2260
|
+
};
|
|
2261
|
+
static types(): {
|
|
2262
|
+
[key: string]: any;
|
|
2263
|
+
};
|
|
2264
|
+
constructor(map?: {
|
|
2265
|
+
[key: string]: any;
|
|
2266
|
+
});
|
|
2267
|
+
}
|
|
2268
|
+
export declare class ImageModerationResponseBodyDataExtFaceDataLocation extends $tea.Model {
|
|
2269
|
+
h?: number;
|
|
2270
|
+
w?: number;
|
|
2271
|
+
x?: number;
|
|
2272
|
+
y?: number;
|
|
2273
|
+
static names(): {
|
|
2274
|
+
[key: string]: string;
|
|
2275
|
+
};
|
|
2276
|
+
static types(): {
|
|
2277
|
+
[key: string]: any;
|
|
2278
|
+
};
|
|
2279
|
+
constructor(map?: {
|
|
2280
|
+
[key: string]: any;
|
|
2281
|
+
});
|
|
2282
|
+
}
|
|
2283
|
+
export declare class ImageModerationResponseBodyDataExtFaceDataMask extends $tea.Model {
|
|
2284
|
+
confidence?: number;
|
|
2285
|
+
value?: string;
|
|
2286
|
+
static names(): {
|
|
2287
|
+
[key: string]: string;
|
|
2288
|
+
};
|
|
2289
|
+
static types(): {
|
|
2290
|
+
[key: string]: any;
|
|
2291
|
+
};
|
|
2292
|
+
constructor(map?: {
|
|
2293
|
+
[key: string]: any;
|
|
2294
|
+
});
|
|
2295
|
+
}
|
|
2296
|
+
export declare class ImageModerationResponseBodyDataExtFaceDataMustache extends $tea.Model {
|
|
2297
|
+
confidence?: number;
|
|
2298
|
+
value?: string;
|
|
2299
|
+
static names(): {
|
|
2300
|
+
[key: string]: string;
|
|
2301
|
+
};
|
|
2302
|
+
static types(): {
|
|
2303
|
+
[key: string]: any;
|
|
2304
|
+
};
|
|
2305
|
+
constructor(map?: {
|
|
2306
|
+
[key: string]: any;
|
|
2307
|
+
});
|
|
2308
|
+
}
|
|
2309
|
+
export declare class ImageModerationResponseBodyDataExtFaceDataQuality extends $tea.Model {
|
|
2310
|
+
blur?: number;
|
|
2311
|
+
integrity?: number;
|
|
2312
|
+
pitch?: number;
|
|
2313
|
+
roll?: number;
|
|
2314
|
+
yaw?: number;
|
|
2315
|
+
static names(): {
|
|
2316
|
+
[key: string]: string;
|
|
2317
|
+
};
|
|
2318
|
+
static types(): {
|
|
2319
|
+
[key: string]: any;
|
|
2320
|
+
};
|
|
2321
|
+
constructor(map?: {
|
|
2322
|
+
[key: string]: any;
|
|
2323
|
+
});
|
|
2324
|
+
}
|
|
2325
|
+
export declare class ImageModerationResponseBodyDataExtFaceData extends $tea.Model {
|
|
2326
|
+
age?: number;
|
|
2327
|
+
bang?: ImageModerationResponseBodyDataExtFaceDataBang;
|
|
2328
|
+
gender?: ImageModerationResponseBodyDataExtFaceDataGender;
|
|
2329
|
+
glasses?: string;
|
|
2330
|
+
hairstyle?: ImageModerationResponseBodyDataExtFaceDataHairstyle;
|
|
2331
|
+
hat?: ImageModerationResponseBodyDataExtFaceDataHat;
|
|
2332
|
+
location?: ImageModerationResponseBodyDataExtFaceDataLocation;
|
|
2333
|
+
mask?: ImageModerationResponseBodyDataExtFaceDataMask;
|
|
2334
|
+
mustache?: ImageModerationResponseBodyDataExtFaceDataMustache;
|
|
2335
|
+
quality?: ImageModerationResponseBodyDataExtFaceDataQuality;
|
|
2336
|
+
smile?: number;
|
|
2337
|
+
static names(): {
|
|
2338
|
+
[key: string]: string;
|
|
2339
|
+
};
|
|
2340
|
+
static types(): {
|
|
2341
|
+
[key: string]: any;
|
|
2342
|
+
};
|
|
2343
|
+
constructor(map?: {
|
|
2344
|
+
[key: string]: any;
|
|
2345
|
+
});
|
|
2346
|
+
}
|
|
2129
2347
|
export declare class ImageModerationResponseBodyDataExtLogoDataLocation extends $tea.Model {
|
|
2130
2348
|
/**
|
|
2131
2349
|
* @remarks
|
|
@@ -2528,6 +2746,7 @@ export declare class ImageModerationResponseBodyDataExt extends $tea.Model {
|
|
|
2528
2746
|
* If a custom image library is hit, information about the hit custom image library is returned.
|
|
2529
2747
|
*/
|
|
2530
2748
|
customImage?: ImageModerationResponseBodyDataExtCustomImage[];
|
|
2749
|
+
faceData?: ImageModerationResponseBodyDataExtFaceData[];
|
|
2531
2750
|
/**
|
|
2532
2751
|
* @remarks
|
|
2533
2752
|
* Logo information.
|
|
@@ -2572,6 +2791,13 @@ export declare class ImageModerationResponseBodyDataResult extends $tea.Model {
|
|
|
2572
2791
|
* 81.22
|
|
2573
2792
|
*/
|
|
2574
2793
|
confidence?: number;
|
|
2794
|
+
/**
|
|
2795
|
+
* @remarks
|
|
2796
|
+
* The description of the result.
|
|
2797
|
+
*
|
|
2798
|
+
* @example
|
|
2799
|
+
* no risk
|
|
2800
|
+
*/
|
|
2575
2801
|
description?: string;
|
|
2576
2802
|
/**
|
|
2577
2803
|
* @remarks
|
|
@@ -2676,7 +2902,7 @@ export declare class TextModerationResponseBodyData extends $tea.Model {
|
|
|
2676
2902
|
export declare class TextModerationPlusResponseBodyDataAdvice extends $tea.Model {
|
|
2677
2903
|
/**
|
|
2678
2904
|
* @remarks
|
|
2679
|
-
*
|
|
2905
|
+
* The answer.
|
|
2680
2906
|
*
|
|
2681
2907
|
* @example
|
|
2682
2908
|
* XXX
|
|
@@ -2711,7 +2937,7 @@ export declare class TextModerationPlusResponseBodyDataAdvice extends $tea.Model
|
|
|
2711
2937
|
export declare class TextModerationPlusResponseBodyDataResultCustomizedHit extends $tea.Model {
|
|
2712
2938
|
/**
|
|
2713
2939
|
* @remarks
|
|
2714
|
-
*
|
|
2940
|
+
* The terms that are hit. Multiple terms are separated by commas (,).
|
|
2715
2941
|
*
|
|
2716
2942
|
* @example
|
|
2717
2943
|
* xxx
|
|
@@ -2719,7 +2945,7 @@ export declare class TextModerationPlusResponseBodyDataResultCustomizedHit exten
|
|
|
2719
2945
|
keyWords?: string;
|
|
2720
2946
|
/**
|
|
2721
2947
|
* @remarks
|
|
2722
|
-
*
|
|
2948
|
+
* The library name.
|
|
2723
2949
|
*
|
|
2724
2950
|
* @example
|
|
2725
2951
|
* test
|
|
@@ -2738,7 +2964,7 @@ export declare class TextModerationPlusResponseBodyDataResultCustomizedHit exten
|
|
|
2738
2964
|
export declare class TextModerationPlusResponseBodyDataResult extends $tea.Model {
|
|
2739
2965
|
/**
|
|
2740
2966
|
* @remarks
|
|
2741
|
-
*
|
|
2967
|
+
* The score of the confidence level. Valid values: 0 to 100. The value is accurate to two decimal places.
|
|
2742
2968
|
*
|
|
2743
2969
|
* @example
|
|
2744
2970
|
* 81.22
|
|
@@ -2746,12 +2972,20 @@ export declare class TextModerationPlusResponseBodyDataResult extends $tea.Model
|
|
|
2746
2972
|
confidence?: number;
|
|
2747
2973
|
/**
|
|
2748
2974
|
* @remarks
|
|
2749
|
-
*
|
|
2975
|
+
* The custom term hit by the moderated content.
|
|
2750
2976
|
*/
|
|
2751
2977
|
customizedHit?: TextModerationPlusResponseBodyDataResultCustomizedHit[];
|
|
2752
2978
|
/**
|
|
2753
2979
|
* @remarks
|
|
2754
|
-
*
|
|
2980
|
+
* The description of the label.
|
|
2981
|
+
*
|
|
2982
|
+
* @example
|
|
2983
|
+
* none
|
|
2984
|
+
*/
|
|
2985
|
+
description?: string;
|
|
2986
|
+
/**
|
|
2987
|
+
* @remarks
|
|
2988
|
+
* The label.
|
|
2755
2989
|
*
|
|
2756
2990
|
* @example
|
|
2757
2991
|
* porn
|
|
@@ -2759,7 +2993,7 @@ export declare class TextModerationPlusResponseBodyDataResult extends $tea.Model
|
|
|
2759
2993
|
label?: string;
|
|
2760
2994
|
/**
|
|
2761
2995
|
* @remarks
|
|
2762
|
-
*
|
|
2996
|
+
* The term hit by the moderated content.
|
|
2763
2997
|
*
|
|
2764
2998
|
* @example
|
|
2765
2999
|
* XXX
|
|
@@ -2778,12 +3012,12 @@ export declare class TextModerationPlusResponseBodyDataResult extends $tea.Model
|
|
|
2778
3012
|
export declare class TextModerationPlusResponseBodyData extends $tea.Model {
|
|
2779
3013
|
/**
|
|
2780
3014
|
* @remarks
|
|
2781
|
-
*
|
|
3015
|
+
* The suggestion.
|
|
2782
3016
|
*/
|
|
2783
3017
|
advice?: TextModerationPlusResponseBodyDataAdvice[];
|
|
2784
3018
|
/**
|
|
2785
3019
|
* @remarks
|
|
2786
|
-
* The
|
|
3020
|
+
* The results.
|
|
2787
3021
|
*/
|
|
2788
3022
|
result?: TextModerationPlusResponseBodyDataResult[];
|
|
2789
3023
|
/**
|
|
@@ -2796,7 +3030,7 @@ export declare class TextModerationPlusResponseBodyData extends $tea.Model {
|
|
|
2796
3030
|
riskLevel?: string;
|
|
2797
3031
|
/**
|
|
2798
3032
|
* @remarks
|
|
2799
|
-
*
|
|
3033
|
+
* The score.
|
|
2800
3034
|
*
|
|
2801
3035
|
* @example
|
|
2802
3036
|
* 1
|
|
@@ -3473,7 +3707,11 @@ export default class Client extends OpenApi {
|
|
|
3473
3707
|
*/
|
|
3474
3708
|
describeFileModerationResult(request: DescribeFileModerationResultRequest): Promise<DescribeFileModerationResultResponse>;
|
|
3475
3709
|
/**
|
|
3476
|
-
*
|
|
3710
|
+
* Obtains the moderation results of an Image Moderation 2.0 task.
|
|
3711
|
+
*
|
|
3712
|
+
* @remarks
|
|
3713
|
+
* Billing: This operation is free of charge.
|
|
3714
|
+
* * 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.
|
|
3477
3715
|
*
|
|
3478
3716
|
* @param request - DescribeImageModerationResultRequest
|
|
3479
3717
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -3481,7 +3719,11 @@ export default class Client extends OpenApi {
|
|
|
3481
3719
|
*/
|
|
3482
3720
|
describeImageModerationResultWithOptions(request: DescribeImageModerationResultRequest, runtime: $Util.RuntimeOptions): Promise<DescribeImageModerationResultResponse>;
|
|
3483
3721
|
/**
|
|
3484
|
-
*
|
|
3722
|
+
* Obtains the moderation results of an Image Moderation 2.0 task.
|
|
3723
|
+
*
|
|
3724
|
+
* @remarks
|
|
3725
|
+
* Billing: This operation is free of charge.
|
|
3726
|
+
* * 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.
|
|
3485
3727
|
*
|
|
3486
3728
|
* @param request - DescribeImageModerationResultRequest
|
|
3487
3729
|
* @returns DescribeImageModerationResultResponse
|
|
@@ -3607,7 +3849,10 @@ export default class Client extends OpenApi {
|
|
|
3607
3849
|
*/
|
|
3608
3850
|
textModeration(request: TextModerationRequest): Promise<TextModerationResponse>;
|
|
3609
3851
|
/**
|
|
3610
|
-
*
|
|
3852
|
+
* 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.
|
|
3853
|
+
*
|
|
3854
|
+
* @remarks
|
|
3855
|
+
* 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.
|
|
3611
3856
|
*
|
|
3612
3857
|
* @param request - TextModerationPlusRequest
|
|
3613
3858
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -3615,7 +3860,10 @@ export default class Client extends OpenApi {
|
|
|
3615
3860
|
*/
|
|
3616
3861
|
textModerationPlusWithOptions(request: TextModerationPlusRequest, runtime: $Util.RuntimeOptions): Promise<TextModerationPlusResponse>;
|
|
3617
3862
|
/**
|
|
3618
|
-
*
|
|
3863
|
+
* 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.
|
|
3864
|
+
*
|
|
3865
|
+
* @remarks
|
|
3866
|
+
* 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.
|
|
3619
3867
|
*
|
|
3620
3868
|
* @param request - TextModerationPlusRequest
|
|
3621
3869
|
* @returns TextModerationPlusResponse
|