Skip to content

Commit 6aa929a

Browse files
Update distribution
1 parent ade0ef7 commit 6aa929a

4 files changed

Lines changed: 46 additions & 3 deletions

File tree

‎openapi.public.json‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1189,6 +1189,16 @@
11891189
"null"
11901190
]
11911191
},
1192+
"reason_codes": {
1193+
"description": "Public causes of an `INCOMPLETE` code assessment: `OUT_OF_CREDITS`\n when credits refused its model. Absent otherwise; other recorded\n details stay private.",
1194+
"items": {
1195+
"type": "string"
1196+
},
1197+
"type": [
1198+
"array",
1199+
"null"
1200+
]
1201+
},
11921202
"started_at": {
11931203
"description": "When the code assessment started. Null until it starts.",
11941204
"format": "date-time",
@@ -5996,7 +6006,7 @@
59966006
},
59976007
"info": {
59986008
"title": "Proofline Review API",
5999-
"version": "5.4.0"
6009+
"version": "5.5.0"
60006010
},
60016011
"openapi": "3.1.0",
60026012
"paths": {

‎proofline/_generated/models/customer_code_assessment.py‎

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ class CustomerCodeAssessment:
3939
incompleteness_kind (None | str | Unset): Why an `INCOMPLETE` code assessment is incomplete: `NOT_CONFIGURED`,
4040
`POLICY_EXCLUDED`, `EVIDENCE_UNAVAILABLE`, `HYPOTHESES_UNRESOLVED` or
4141
`MODEL_BUDGET_EXHAUSTED`. Null otherwise.
42+
reason_codes (list[str] | None | Unset): Public causes of an `INCOMPLETE` code assessment: `OUT_OF_CREDITS`
43+
when credits refused its model. Absent otherwise; other recorded
44+
details stay private.
4245
started_at (datetime.datetime | None | Unset): When the code assessment started. Null until it starts.
4346
"""
4447

@@ -50,6 +53,7 @@ class CustomerCodeAssessment:
5053
completed_at: datetime.datetime | None | Unset = UNSET
5154
coverage_details: list[str] | Unset = UNSET
5255
incompleteness_kind: None | str | Unset = UNSET
56+
reason_codes: list[str] | None | Unset = UNSET
5357
started_at: datetime.datetime | None | Unset = UNSET
5458
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
5559

@@ -89,6 +93,15 @@ def to_dict(self) -> dict[str, Any]:
8993
else:
9094
incompleteness_kind = self.incompleteness_kind
9195

96+
reason_codes: list[str] | None | Unset
97+
if isinstance(self.reason_codes, Unset):
98+
reason_codes = UNSET
99+
elif isinstance(self.reason_codes, list):
100+
reason_codes = self.reason_codes
101+
102+
else:
103+
reason_codes = self.reason_codes
104+
92105
started_at: None | str | Unset
93106
if isinstance(self.started_at, Unset):
94107
started_at = UNSET
@@ -114,6 +127,8 @@ def to_dict(self) -> dict[str, Any]:
114127
field_dict["coverage_details"] = coverage_details
115128
if incompleteness_kind is not UNSET:
116129
field_dict["incompleteness_kind"] = incompleteness_kind
130+
if reason_codes is not UNSET:
131+
field_dict["reason_codes"] = reason_codes
117132
if started_at is not UNSET:
118133
field_dict["started_at"] = started_at
119134

@@ -185,6 +200,23 @@ def _parse_incompleteness_kind(data: object) -> None | str | Unset:
185200

186201
incompleteness_kind = _parse_incompleteness_kind(d.pop("incompleteness_kind", UNSET))
187202

203+
def _parse_reason_codes(data: object) -> list[str] | None | Unset:
204+
if data is None:
205+
return data
206+
if isinstance(data, Unset):
207+
return data
208+
try:
209+
if not isinstance(data, list):
210+
raise TypeError()
211+
reason_codes_type_0 = cast(list[str], data)
212+
213+
return reason_codes_type_0
214+
except (TypeError, ValueError, AttributeError, KeyError):
215+
pass
216+
return cast(list[str] | None | Unset, data)
217+
218+
reason_codes = _parse_reason_codes(d.pop("reason_codes", UNSET))
219+
188220
def _parse_started_at(data: object) -> datetime.datetime | None | Unset:
189221
if data is None:
190222
return data
@@ -211,6 +243,7 @@ def _parse_started_at(data: object) -> datetime.datetime | None | Unset:
211243
completed_at=completed_at,
212244
coverage_details=coverage_details,
213245
incompleteness_kind=incompleteness_kind,
246+
reason_codes=reason_codes,
214247
started_at=started_at,
215248
)
216249

‎proofline/_transport.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
from ._sync_http import IO_DEADLINE
3939
from ._sync_http import Transport as SyncHTTPTransport
4040

41-
VERSION = "5.4.0"
41+
VERSION = "5.5.0"
4242
MAX_RESPONSE_BYTES = 8 * 1024 * 1024
4343
WEEKDAY = r"(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)"
4444
FULL_WEEKDAY = r"(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday)"

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "proofline-sdk"
7-
version = "5.4.0"
7+
version = "5.5.0"
88
description = "Typed synchronous and asynchronous clients for the Proofline review API"
99
readme = "README.md"
1010
license = "Apache-2.0 AND MIT"

0 commit comments

Comments
 (0)