Skip to content

Commit 75cdb26

Browse files
feat(api): api update
1 parent 5a271c7 commit 75cdb26

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

‎.stats.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 27
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/moderation-api%2Fmoderation-api-d63cb4b89d39d82fa1d4600501ad5cedfddfbcf7a8806cac61634873b5211a9f.yml
3-
openapi_spec_hash: 5a8d51e52ea8e52681c77eed584fb21c
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/moderation-api%2Fmoderation-api-422330754281be38d7919f08a9d1e7862cbdc6921602473cb07a8f2022635832.yml
3+
openapi_spec_hash: 7e6fa61ced995dc03e0ccd3e11fb121c
44
config_hash: 6a52f6ae7d55cf3b4e91538cc7752aeb

‎src/moderation_api/types/content_submit_response.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,9 @@ class Recommendation(BaseModel):
258258
action: Literal["review", "allow", "reject"]
259259
"""The action to take based on the recommendation"""
260260

261-
reason_codes: List[Literal["severity_reject", "severity_review", "author_block", "dry_run"]]
261+
reason_codes: List[
262+
Literal["severity_reject", "severity_review", "author_block", "dry_run", "trusted_allow", "untrusted_severity"]
263+
]
262264
"""The reason code for the recommendation.
263265
264266
Can be used to display a reason to the user.

0 commit comments

Comments
 (0)