Skip to content

Commit 3e62dda

Browse files
feat(api): api update
1 parent 4e8ce8c commit 3e62dda

3 files changed

Lines changed: 14 additions & 5 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-422330754281be38d7919f08a9d1e7862cbdc6921602473cb07a8f2022635832.yml
3-
openapi_spec_hash: 7e6fa61ced995dc03e0ccd3e11fb121c
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/moderation-api%2Fmoderation-api-67a3fe4439c3aa74fb2c18b207b43c790d42bab7bfd7e5e16f3e1046765ec959.yml
3+
openapi_spec_hash: c87b33c2c72a172da02ed75d4e79eb70
44
config_hash: 6a52f6ae7d55cf3b4e91538cc7752aeb

‎src/moderation_api/types/content_submit_params.py‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,10 @@ class ContentImage(TypedDict, total=False):
107107

108108
type: Required[Literal["image"]]
109109

110-
url: Required[str]
110+
data: str
111+
"""Base64-encoded image data"""
112+
113+
url: str
111114
"""A public URL of the image content"""
112115

113116

@@ -143,7 +146,10 @@ class ContentObjectDataImage(TypedDict, total=False):
143146

144147
type: Required[Literal["image"]]
145148

146-
url: Required[str]
149+
data: str
150+
"""Base64-encoded image data"""
151+
152+
url: str
147153
"""A public URL of the image content"""
148154

149155

‎src/moderation_api/types/content_submit_response.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,10 @@ class ContentModifiedModifiedNestedObjectContentContentModifiedModifiedNestedObj
8484

8585
type: Literal["image"]
8686

87-
url: str
87+
data: Optional[str] = None
88+
"""Base64-encoded image data"""
89+
90+
url: Optional[str] = None
8891
"""A public URL of the image content"""
8992

9093

0 commit comments

Comments
 (0)