hiddenlayer-sdk 2.0.4__py3-none-any.whl → 2.0.5__py3-none-any.whl

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.
@@ -30,7 +30,7 @@ class ScanDetectionV3(BaseModel):
30
30
  ScanDetectionV3
31
31
  """ # noqa: E501
32
32
  description: StrictStr = Field(description="detection description")
33
- risk: StrictStr = Field(description="detection risk")
33
+ risk: Optional[StrictStr] = Field(default=None, description="detection risk")
34
34
  severity: StrictStr = Field(description="detection severity")
35
35
  detection_id: StrictStr = Field(description="unique identifier for the detection")
36
36
  impact: Optional[StrictStr] = Field(default=None, description="detection impact")
@@ -49,6 +49,9 @@ class ScanDetectionV3(BaseModel):
49
49
  @field_validator('risk')
50
50
  def risk_validate_enum(cls, value):
51
51
  """Validates the enum"""
52
+ if value is None:
53
+ return value
54
+
52
55
  if value not in set(['MALICIOUS', 'SUSPICIOUS', 'BENIGN']):
53
56
  raise ValueError("must be one of enum values ('MALICIOUS', 'SUSPICIOUS', 'BENIGN')")
54
57
  return value
@@ -31,7 +31,7 @@ class ScanDetectionV31(BaseModel):
31
31
  """ # noqa: E501
32
32
  detection_id: StrictStr = Field(description="unique identifier for the detection")
33
33
  rule_id: StrictStr = Field(description="unique identifier for the rule that sourced the detection")
34
- risk: StrictStr = Field(description="detection risk")
34
+ risk: Optional[StrictStr] = Field(default=None, description="detection risk")
35
35
  category: StrictStr = Field(description="Vulnerability category for the detection")
36
36
  description: StrictStr = Field(description="detection description")
37
37
  likelihood: StrictStr = Field(description="detection likelihood")
@@ -50,6 +50,9 @@ class ScanDetectionV31(BaseModel):
50
50
  @field_validator('risk')
51
51
  def risk_validate_enum(cls, value):
52
52
  """Validates the enum"""
53
+ if value is None:
54
+ return value
55
+
53
56
  if value not in set(['MALICIOUS', 'SUSPICIOUS']):
54
57
  raise ValueError("must be one of enum values ('MALICIOUS', 'SUSPICIOUS')")
55
58
  return value
@@ -1 +1 @@
1
- VERSION = "2.0.4"
1
+ VERSION = "2.0.5"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: hiddenlayer-sdk
3
- Version: 2.0.4
3
+ Version: 2.0.5
4
4
  Summary: Official HiddenLayer Python SDK
5
5
  Author-email: HiddenLayer Integrations Team <integrations@hiddenlayer.com>
6
6
  Maintainer-email: HiddenLayer Integrations Team <integrations@hiddenlayer.com>
@@ -4,7 +4,7 @@ hiddenlayer/sdk/constants.py,sha256=QwBZAQdF7FW9q4C-O8LyxrpqfJFBBlqRUDMjnJ-ouZQ,
4
4
  hiddenlayer/sdk/exceptions.py,sha256=_Lelwk32LWxWuUPglfw8R8RuiX_Uxm_N7TP3BLhDLz0,226
5
5
  hiddenlayer/sdk/models.py,sha256=t92fK7xxuPm1XzazNsRg5AOAD17qnvNZiGaN1gM6lHk,1776
6
6
  hiddenlayer/sdk/utils.py,sha256=Ntao8hfsYuB7obZOanayIlrgJ98IWcPhs3sRi39IDkg,2997
7
- hiddenlayer/sdk/version.py,sha256=GhalXCjhj_aT2GxN76XbfSxBI5mKnW6LCfpN5GOHk7Y,18
7
+ hiddenlayer/sdk/version.py,sha256=CF5-GE6YzGyHRbD2JDoMG91u33vJQfZJLi32ju9NWWw,18
8
8
  hiddenlayer/sdk/rest/__init__.py,sha256=dSLESB6qPKLmF4FseZH_XRnHOSuXaeYQHPDrlgTFHW4,8422
9
9
  hiddenlayer/sdk/rest/api_client.py,sha256=Yd71Up1SHj5pPp4jB_gIsm5Y77jHph7T4iU9NiIhUak,26291
10
10
  hiddenlayer/sdk/rest/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
@@ -82,8 +82,8 @@ hiddenlayer/sdk/rest/models/run.py,sha256=iGMwltCywNY3RG_owlY1-ElPydICS86MYi3p0V
82
82
  hiddenlayer/sdk/rest/models/run_automation_details.py,sha256=08Tz8MMIBVRby_spJjfEXPxEEnY-fx-vwqE9OiTI6R0,5312
83
83
  hiddenlayer/sdk/rest/models/sarif210.py,sha256=mQB87cPuDXYSi7ehBscTNhKNzZ1giy7Hv2D94_2xw9Y,4977
84
84
  hiddenlayer/sdk/rest/models/scan_create_request.py,sha256=s8xEol9DIH1MpTklL6fjWtgL3ZN487gy75bLjyHC38s,2413
85
- hiddenlayer/sdk/rest/models/scan_detection_v3.py,sha256=zwC0zZAIv7Dl0J9GGrzkpmPFDBj8SGT0ir2jIMyGgI8,6350
86
- hiddenlayer/sdk/rest/models/scan_detection_v31.py,sha256=zx2JDGBPONizGuP-0idODLELlG0mYFgsRC8S_mea7dc,6408
85
+ hiddenlayer/sdk/rest/models/scan_detection_v3.py,sha256=sk65pt5rkvxOBgs5OZ090fZI-GNTY_SdHyibi4bSZ5Y,6426
86
+ hiddenlayer/sdk/rest/models/scan_detection_v31.py,sha256=tTNRlggUmL-cY4ZRiC-2au6xwEbUqZlbjxSukY72nG0,6484
87
87
  hiddenlayer/sdk/rest/models/scan_header_v3.py,sha256=sgpiAE6NflJtLJhfUA4NmveUCHTPQN2JSsk7cEBMjVQ,5035
88
88
  hiddenlayer/sdk/rest/models/scan_job.py,sha256=36Izh6LR8KTu0GllhKMqDmXMVVIqLOfGIZ930awtltA,3568
89
89
  hiddenlayer/sdk/rest/models/scan_job_inventory.py,sha256=5ROvus3liVCnzuNmheeNy6nmI-LB0uPkHWzBS3zqJys,5328
@@ -118,8 +118,8 @@ hiddenlayer/sdk/rest/models/web_response.py,sha256=gSKHygOE25yvLKMk__Aga90cHfpFx
118
118
  hiddenlayer/sdk/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
119
119
  hiddenlayer/sdk/services/aidr_predictive.py,sha256=S2MvN5qPyYhYXbYM3lvDmylhY71p4d07L36m-a1ZMyM,4773
120
120
  hiddenlayer/sdk/services/model_scan.py,sha256=uwHyQNWKwmUmAyGCT-u4Hpc-HXBf_-_v8GPg5JefFuA,15928
121
- hiddenlayer_sdk-2.0.4.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
122
- hiddenlayer_sdk-2.0.4.dist-info/METADATA,sha256=yvXdDemP4Qx7gNiCCdy0PCozLktOyA0qFX7h9GJtABU,18131
123
- hiddenlayer_sdk-2.0.4.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
124
- hiddenlayer_sdk-2.0.4.dist-info/top_level.txt,sha256=8BxcmGvEN1RqsMvTWg9Q0vDmtBGcTmatnme6nzyPj2U,12
125
- hiddenlayer_sdk-2.0.4.dist-info/RECORD,,
121
+ hiddenlayer_sdk-2.0.5.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
122
+ hiddenlayer_sdk-2.0.5.dist-info/METADATA,sha256=ZW4WvrUY88_sjyQnPx0KQ55N_X2kRPEv8OeR4afRZ_A,18131
123
+ hiddenlayer_sdk-2.0.5.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
124
+ hiddenlayer_sdk-2.0.5.dist-info/top_level.txt,sha256=8BxcmGvEN1RqsMvTWg9Q0vDmtBGcTmatnme6nzyPj2U,12
125
+ hiddenlayer_sdk-2.0.5.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.8.2)
2
+ Generator: setuptools (76.0.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5