Skip to content

Commit bd61ceb

Browse files
feat(api): api update
1 parent d01be43 commit bd61ceb

3 files changed

Lines changed: 20 additions & 8 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-67a3fe4439c3aa74fb2c18b207b43c790d42bab7bfd7e5e16f3e1046765ec959.yml
3-
openapi_spec_hash: c87b33c2c72a172da02ed75d4e79eb70
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/moderation-api%2Fmoderation-api-7270e2afd5e9c57ffcb1b83d5eb8b549a33c471b72ab494f903473a23b3f7115.yml
3+
openapi_spec_hash: cfd11087252e28bc7e7d4f4dbefc51ee
44
config_hash: 6b825a08e19dfb747c5dc1766502b789

‎src/moderation_api/types/content_submit_params.py‎

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,14 @@ class ContentImage(TypedDict, total=False):
108108
type: Required[Literal["image"]]
109109

110110
data: str
111-
"""Base64-encoded image data"""
111+
"""Base64-encoded image data.
112+
113+
Either url or data must be provided. Note: base64 images are not stored and will
114+
not appear in the review queue.
115+
"""
112116

113117
url: str
114-
"""A public URL of the image content"""
118+
"""A public URL of the image content. Either url or data must be provided."""
115119

116120

117121
class ContentVideo(TypedDict, total=False):
@@ -147,10 +151,14 @@ class ContentObjectDataImage(TypedDict, total=False):
147151
type: Required[Literal["image"]]
148152

149153
data: str
150-
"""Base64-encoded image data"""
154+
"""Base64-encoded image data.
155+
156+
Either url or data must be provided. Note: base64 images are not stored and will
157+
not appear in the review queue.
158+
"""
151159

152160
url: str
153-
"""A public URL of the image content"""
161+
"""A public URL of the image content. Either url or data must be provided."""
154162

155163

156164
class ContentObjectDataVideo(TypedDict, total=False):

‎src/moderation_api/types/content_submit_response.py‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,14 @@ class ContentModifiedModifiedNestedObjectContentContentModifiedModifiedNestedObj
8585
type: Literal["image"]
8686

8787
data: Optional[str] = None
88-
"""Base64-encoded image data"""
88+
"""Base64-encoded image data.
89+
90+
Either url or data must be provided. Note: base64 images are not stored and will
91+
not appear in the review queue.
92+
"""
8993

9094
url: Optional[str] = None
91-
"""A public URL of the image content"""
95+
"""A public URL of the image content. Either url or data must be provided."""
9296

9397

9498
class ContentModifiedModifiedNestedObjectContentContentModifiedModifiedNestedObjectContentItemVideo(BaseModel):

0 commit comments

Comments
 (0)