tencentcloud-sdk-python-waf 3.1.112__tar.gz → 3.1.132__tar.gz

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.
Files changed (17) hide show
  1. {tencentcloud_sdk_python_waf-3.1.112 → tencentcloud_sdk_python_waf-3.1.132}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_waf-3.1.112 → tencentcloud_sdk_python_waf-3.1.132}/setup.py +1 -1
  3. {tencentcloud_sdk_python_waf-3.1.112 → tencentcloud_sdk_python_waf-3.1.132}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_waf-3.1.112 → tencentcloud_sdk_python_waf-3.1.132}/tencentcloud/waf/v20180125/models.py +153 -17
  5. {tencentcloud_sdk_python_waf-3.1.112 → tencentcloud_sdk_python_waf-3.1.132}/tencentcloud_sdk_python_waf.egg-info/PKG-INFO +2 -2
  6. tencentcloud_sdk_python_waf-3.1.132/tencentcloud_sdk_python_waf.egg-info/requires.txt +1 -0
  7. tencentcloud_sdk_python_waf-3.1.112/tencentcloud_sdk_python_waf.egg-info/requires.txt +0 -1
  8. {tencentcloud_sdk_python_waf-3.1.112 → tencentcloud_sdk_python_waf-3.1.132}/README.rst +0 -0
  9. {tencentcloud_sdk_python_waf-3.1.112 → tencentcloud_sdk_python_waf-3.1.132}/setup.cfg +0 -0
  10. {tencentcloud_sdk_python_waf-3.1.112 → tencentcloud_sdk_python_waf-3.1.132}/tencentcloud/waf/__init__.py +0 -0
  11. {tencentcloud_sdk_python_waf-3.1.112 → tencentcloud_sdk_python_waf-3.1.132}/tencentcloud/waf/v20180125/__init__.py +0 -0
  12. {tencentcloud_sdk_python_waf-3.1.112 → tencentcloud_sdk_python_waf-3.1.132}/tencentcloud/waf/v20180125/errorcodes.py +0 -0
  13. {tencentcloud_sdk_python_waf-3.1.112 → tencentcloud_sdk_python_waf-3.1.132}/tencentcloud/waf/v20180125/waf_client.py +0 -0
  14. {tencentcloud_sdk_python_waf-3.1.112 → tencentcloud_sdk_python_waf-3.1.132}/tencentcloud/waf/v20180125/waf_client_async.py +0 -0
  15. {tencentcloud_sdk_python_waf-3.1.112 → tencentcloud_sdk_python_waf-3.1.132}/tencentcloud_sdk_python_waf.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_waf-3.1.112 → tencentcloud_sdk_python_waf-3.1.132}/tencentcloud_sdk_python_waf.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_waf-3.1.112 → tencentcloud_sdk_python_waf-3.1.132}/tencentcloud_sdk_python_waf.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-waf
3
- Version: 3.1.112
3
+ Version: 3.1.132
4
4
  Summary: Tencent Cloud Waf SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
- Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.112
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.132
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
8
8
 
9
9
  setup(
10
10
  name='tencentcloud-sdk-python-waf',
11
- install_requires=["tencentcloud-sdk-python-common>=3.1.112,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.132,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Waf SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.112'
17
+ __version__ = '3.1.132'
@@ -27034,7 +27034,7 @@ class DescribeLLMContentSecCheckRequest(AbstractModel):
27034
27034
 
27035
27035
  def __init__(self):
27036
27036
  r"""
27037
- :param _ServiceId: <p>服务id,使用哪一套防护策略,就需要传哪一套服务id,模型会检测该服务id下的所有规则</p>
27037
+ :param _ServiceId: <p>服务id,使用哪一套防护策略,就需要传哪一套服务id,模型会检测该服务id下的所有规则</p>
27038
27038
  :type ServiceId: str
27039
27039
  :param _Type: <p>流量类型,是入向流量还是出向流量,入向:1,出向:2;入向和出向必填</p>
27040
27040
  :type Type: int
@@ -27042,7 +27042,7 @@ class DescribeLLMContentSecCheckRequest(AbstractModel):
27042
27042
  :type InstanceId: str
27043
27043
  :param _Content: <p>要审核的内容</p>
27044
27044
  :type Content: str
27045
- :param _ChatId: <p>对话的id</p>
27045
+ :param _ChatId: <p>一问一答的对话的id</p>
27046
27046
  :type ChatId: str
27047
27047
  :param _UserId: <p>标识用户的id,限速使用,不填,则限速会不生效</p>
27048
27048
  :type UserId: str
@@ -27054,6 +27054,10 @@ class DescribeLLMContentSecCheckRequest(AbstractModel):
27054
27054
  :type ToolName: str
27055
27055
  :param _ToolArgs: <p>tool_call 场景工具参数</p>
27056
27056
  :type ToolArgs: str
27057
+ :param _SessionId: <p>多轮对话的id</p>
27058
+ :type SessionId: str
27059
+ :param _IntentContent: <p>意图检测请求内容</p>
27060
+ :type IntentContent: :class:`tencentcloud.waf.v20180125.models.IntentContent`
27057
27061
  """
27058
27062
  self._ServiceId = None
27059
27063
  self._Type = None
@@ -27065,10 +27069,12 @@ class DescribeLLMContentSecCheckRequest(AbstractModel):
27065
27069
  self._ImageEncode = None
27066
27070
  self._ToolName = None
27067
27071
  self._ToolArgs = None
27072
+ self._SessionId = None
27073
+ self._IntentContent = None
27068
27074
 
27069
27075
  @property
27070
27076
  def ServiceId(self):
27071
- r"""<p>服务id,使用哪一套防护策略,就需要传哪一套服务id,模型会检测该服务id下的所有规则</p>
27077
+ r"""<p>服务id,使用哪一套防护策略,就需要传哪一套服务id,模型会检测该服务id下的所有规则</p>
27072
27078
  :rtype: str
27073
27079
  """
27074
27080
  return self._ServiceId
@@ -27112,7 +27118,7 @@ class DescribeLLMContentSecCheckRequest(AbstractModel):
27112
27118
 
27113
27119
  @property
27114
27120
  def ChatId(self):
27115
- r"""<p>对话的id</p>
27121
+ r"""<p>一问一答的对话的id</p>
27116
27122
  :rtype: str
27117
27123
  """
27118
27124
  return self._ChatId
@@ -27176,6 +27182,28 @@ class DescribeLLMContentSecCheckRequest(AbstractModel):
27176
27182
  def ToolArgs(self, ToolArgs):
27177
27183
  self._ToolArgs = ToolArgs
27178
27184
 
27185
+ @property
27186
+ def SessionId(self):
27187
+ r"""<p>多轮对话的id</p>
27188
+ :rtype: str
27189
+ """
27190
+ return self._SessionId
27191
+
27192
+ @SessionId.setter
27193
+ def SessionId(self, SessionId):
27194
+ self._SessionId = SessionId
27195
+
27196
+ @property
27197
+ def IntentContent(self):
27198
+ r"""<p>意图检测请求内容</p>
27199
+ :rtype: :class:`tencentcloud.waf.v20180125.models.IntentContent`
27200
+ """
27201
+ return self._IntentContent
27202
+
27203
+ @IntentContent.setter
27204
+ def IntentContent(self, IntentContent):
27205
+ self._IntentContent = IntentContent
27206
+
27179
27207
 
27180
27208
  def _deserialize(self, params):
27181
27209
  self._ServiceId = params.get("ServiceId")
@@ -27188,6 +27216,10 @@ class DescribeLLMContentSecCheckRequest(AbstractModel):
27188
27216
  self._ImageEncode = params.get("ImageEncode")
27189
27217
  self._ToolName = params.get("ToolName")
27190
27218
  self._ToolArgs = params.get("ToolArgs")
27219
+ self._SessionId = params.get("SessionId")
27220
+ if params.get("IntentContent") is not None:
27221
+ self._IntentContent = IntentContent()
27222
+ self._IntentContent._deserialize(params.get("IntentContent"))
27191
27223
  memeber_set = set(params.keys())
27192
27224
  for name, value in vars(self).items():
27193
27225
  property_name = name[1:]
@@ -39827,6 +39859,78 @@ class InstanceInfo(AbstractModel):
39827
39859
 
39828
39860
 
39829
39861
 
39862
+ class IntentContent(AbstractModel):
39863
+ r"""大模型意图检测的请求内容
39864
+
39865
+ """
39866
+
39867
+ def __init__(self):
39868
+ r"""
39869
+ :param _AgentTrace: <p>agent的轨迹内容,参考用例</p>
39870
+ :type AgentTrace: str
39871
+ """
39872
+ self._AgentTrace = None
39873
+
39874
+ @property
39875
+ def AgentTrace(self):
39876
+ r"""<p>agent的轨迹内容,参考用例</p>
39877
+ :rtype: str
39878
+ """
39879
+ return self._AgentTrace
39880
+
39881
+ @AgentTrace.setter
39882
+ def AgentTrace(self, AgentTrace):
39883
+ self._AgentTrace = AgentTrace
39884
+
39885
+
39886
+ def _deserialize(self, params):
39887
+ self._AgentTrace = params.get("AgentTrace")
39888
+ memeber_set = set(params.keys())
39889
+ for name, value in vars(self).items():
39890
+ property_name = name[1:]
39891
+ if property_name in memeber_set:
39892
+ memeber_set.remove(property_name)
39893
+ if len(memeber_set) > 0:
39894
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
39895
+
39896
+
39897
+
39898
+ class IntentDetectResult(AbstractModel):
39899
+ r"""大模型安全意图检测响应数据
39900
+
39901
+ """
39902
+
39903
+ def __init__(self):
39904
+ r"""
39905
+ :param _IsUnSafe: <p>是否恶意意图</p><p>枚举值:</p><ul><li>1: 恶意</li><li>0: 正常</li></ul>
39906
+ :type IsUnSafe: int
39907
+ """
39908
+ self._IsUnSafe = None
39909
+
39910
+ @property
39911
+ def IsUnSafe(self):
39912
+ r"""<p>是否恶意意图</p><p>枚举值:</p><ul><li>1: 恶意</li><li>0: 正常</li></ul>
39913
+ :rtype: int
39914
+ """
39915
+ return self._IsUnSafe
39916
+
39917
+ @IsUnSafe.setter
39918
+ def IsUnSafe(self, IsUnSafe):
39919
+ self._IsUnSafe = IsUnSafe
39920
+
39921
+
39922
+ def _deserialize(self, params):
39923
+ self._IsUnSafe = params.get("IsUnSafe")
39924
+ memeber_set = set(params.keys())
39925
+ for name, value in vars(self).items():
39926
+ property_name = name[1:]
39927
+ if property_name in memeber_set:
39928
+ memeber_set.remove(property_name)
39929
+ if len(memeber_set) > 0:
39930
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
39931
+
39932
+
39933
+
39830
39934
  class IpAccessControlData(AbstractModel):
39831
39935
  r"""数据封装
39832
39936
 
@@ -40676,6 +40780,8 @@ class LLMDetectResult(AbstractModel):
40676
40780
  :type MsgID: str
40677
40781
  :param _ToolCallResult: <p>toolcall的检测结果</p>
40678
40782
  :type ToolCallResult: :class:`tencentcloud.waf.v20180125.models.ToolCallResult`
40783
+ :param _IntentDetectResult: <p>意图检测结果</p>
40784
+ :type IntentDetectResult: :class:`tencentcloud.waf.v20180125.models.IntentDetectResult`
40679
40785
  """
40680
40786
  self._SensitiveResult = None
40681
40787
  self._KeyWordsResult = None
@@ -40688,6 +40794,7 @@ class LLMDetectResult(AbstractModel):
40688
40794
  self._ImageResult = None
40689
40795
  self._MsgID = None
40690
40796
  self._ToolCallResult = None
40797
+ self._IntentDetectResult = None
40691
40798
 
40692
40799
  @property
40693
40800
  def SensitiveResult(self):
@@ -40810,6 +40917,17 @@ class LLMDetectResult(AbstractModel):
40810
40917
  def ToolCallResult(self, ToolCallResult):
40811
40918
  self._ToolCallResult = ToolCallResult
40812
40919
 
40920
+ @property
40921
+ def IntentDetectResult(self):
40922
+ r"""<p>意图检测结果</p>
40923
+ :rtype: :class:`tencentcloud.waf.v20180125.models.IntentDetectResult`
40924
+ """
40925
+ return self._IntentDetectResult
40926
+
40927
+ @IntentDetectResult.setter
40928
+ def IntentDetectResult(self, IntentDetectResult):
40929
+ self._IntentDetectResult = IntentDetectResult
40930
+
40813
40931
 
40814
40932
  def _deserialize(self, params):
40815
40933
  if params.get("SensitiveResult") is not None:
@@ -40842,6 +40960,9 @@ class LLMDetectResult(AbstractModel):
40842
40960
  if params.get("ToolCallResult") is not None:
40843
40961
  self._ToolCallResult = ToolCallResult()
40844
40962
  self._ToolCallResult._deserialize(params.get("ToolCallResult"))
40963
+ if params.get("IntentDetectResult") is not None:
40964
+ self._IntentDetectResult = IntentDetectResult()
40965
+ self._IntentDetectResult._deserialize(params.get("IntentDetectResult"))
40845
40966
  memeber_set = set(params.keys())
40846
40967
  for name, value in vars(self).items():
40847
40968
  property_name = name[1:]
@@ -41011,23 +41132,25 @@ class LLMMonPkg(AbstractModel):
41011
41132
 
41012
41133
 
41013
41134
  class LLMPkg(AbstractModel):
41014
- r"""有效大模型安全包信息
41135
+ r"""大模型安全「后付费」资源信息(数据源:tb_waf_llm_resource),与 DescribeInstances 的 InstanceDetail.LLMPkg 保持一致
41015
41136
 
41016
41137
  """
41017
41138
 
41018
41139
  def __init__(self):
41019
41140
  r"""
41020
- :param _ResourceIds: 资源id
41141
+ :param _ResourceIds: <p>资源id</p>
41021
41142
  :type ResourceIds: str
41022
- :param _Status: 状态
41143
+ :param _Status: <p>状态</p>
41023
41144
  :type Status: int
41024
- :param _Region: 地域
41145
+ :param _Region: <p>地域</p>
41025
41146
  :type Region: int
41026
- :param _BeginTime: 开始时间
41147
+ :param _BeginTime: <p>开始时间</p>
41027
41148
  :type BeginTime: str
41028
- :param _EndTime: 结束时间
41149
+ :param _EndTime: <p>结束时间</p>
41029
41150
  :type EndTime: str
41030
- :param _InquireKey: 计费项
41151
+ :param _InquireNum: <p>申请数量</p>
41152
+ :type InquireNum: int
41153
+ :param _InquireKey: <p>计费项标签,如 sv_wsm_waf_llm_prompt_attack</p>
41031
41154
  :type InquireKey: str
41032
41155
  """
41033
41156
  self._ResourceIds = None
@@ -41035,11 +41158,12 @@ class LLMPkg(AbstractModel):
41035
41158
  self._Region = None
41036
41159
  self._BeginTime = None
41037
41160
  self._EndTime = None
41161
+ self._InquireNum = None
41038
41162
  self._InquireKey = None
41039
41163
 
41040
41164
  @property
41041
41165
  def ResourceIds(self):
41042
- r"""资源id
41166
+ r"""<p>资源id</p>
41043
41167
  :rtype: str
41044
41168
  """
41045
41169
  return self._ResourceIds
@@ -41050,7 +41174,7 @@ class LLMPkg(AbstractModel):
41050
41174
 
41051
41175
  @property
41052
41176
  def Status(self):
41053
- r"""状态
41177
+ r"""<p>状态</p>
41054
41178
  :rtype: int
41055
41179
  """
41056
41180
  return self._Status
@@ -41061,7 +41185,7 @@ class LLMPkg(AbstractModel):
41061
41185
 
41062
41186
  @property
41063
41187
  def Region(self):
41064
- r"""地域
41188
+ r"""<p>地域</p>
41065
41189
  :rtype: int
41066
41190
  """
41067
41191
  return self._Region
@@ -41072,7 +41196,7 @@ class LLMPkg(AbstractModel):
41072
41196
 
41073
41197
  @property
41074
41198
  def BeginTime(self):
41075
- r"""开始时间
41199
+ r"""<p>开始时间</p>
41076
41200
  :rtype: str
41077
41201
  """
41078
41202
  return self._BeginTime
@@ -41083,7 +41207,7 @@ class LLMPkg(AbstractModel):
41083
41207
 
41084
41208
  @property
41085
41209
  def EndTime(self):
41086
- r"""结束时间
41210
+ r"""<p>结束时间</p>
41087
41211
  :rtype: str
41088
41212
  """
41089
41213
  return self._EndTime
@@ -41092,9 +41216,20 @@ class LLMPkg(AbstractModel):
41092
41216
  def EndTime(self, EndTime):
41093
41217
  self._EndTime = EndTime
41094
41218
 
41219
+ @property
41220
+ def InquireNum(self):
41221
+ r"""<p>申请数量</p>
41222
+ :rtype: int
41223
+ """
41224
+ return self._InquireNum
41225
+
41226
+ @InquireNum.setter
41227
+ def InquireNum(self, InquireNum):
41228
+ self._InquireNum = InquireNum
41229
+
41095
41230
  @property
41096
41231
  def InquireKey(self):
41097
- r"""计费项
41232
+ r"""<p>计费项标签,如 sv_wsm_waf_llm_prompt_attack</p>
41098
41233
  :rtype: str
41099
41234
  """
41100
41235
  return self._InquireKey
@@ -41110,6 +41245,7 @@ class LLMPkg(AbstractModel):
41110
41245
  self._Region = params.get("Region")
41111
41246
  self._BeginTime = params.get("BeginTime")
41112
41247
  self._EndTime = params.get("EndTime")
41248
+ self._InquireNum = params.get("InquireNum")
41113
41249
  self._InquireKey = params.get("InquireKey")
41114
41250
  memeber_set = set(params.keys())
41115
41251
  for name, value in vars(self).items():
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-waf
3
- Version: 3.1.112
3
+ Version: 3.1.132
4
4
  Summary: Tencent Cloud Waf SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
- Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.112
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.132
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.132
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.112