Skip to content

Commit 77fd833

Browse files
feat(api): api update
1 parent 01fbc9e commit 77fd833

3 files changed

Lines changed: 5 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/moderation-api-e2abce1482c148fbbce5c7a7048691afc45935d1bde7feddea11c522ad47a3a1.yml
3-
openapi_spec_hash: 3b3b86090b2243f865bc5aea8554c737
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/moderation-api/moderation-api-f98e3ca6513c4ec22c2cf595a503c80649356ec0977d7e4ec592139aebf945a8.yml
3+
openapi_spec_hash: 94799eb5a21fc7c9350e9b0678b00ca2
44
config_hash: 9d144cc6c49d3fd53e5b4472c1e22165

‎src/moderation_api/resources/content.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def submit(
5555
conversation_id: str | Omit = omit,
5656
do_not_store: bool | Omit = omit,
5757
metadata: Dict[str, object] | Omit = omit,
58-
meta_type: Literal["profile", "message", "post", "comment", "event", "product", "review", "other"]
58+
meta_type: Literal["profile", "message", "post", "comment", "event", "product", "review", "voice", "other"]
5959
| Omit = omit,
6060
policies: Iterable[content_submit_params.Policy] | Omit = omit,
6161
timestamp: float | Omit = omit,
@@ -158,7 +158,7 @@ async def submit(
158158
conversation_id: str | Omit = omit,
159159
do_not_store: bool | Omit = omit,
160160
metadata: Dict[str, object] | Omit = omit,
161-
meta_type: Literal["profile", "message", "post", "comment", "event", "product", "review", "other"]
161+
meta_type: Literal["profile", "message", "post", "comment", "event", "product", "review", "voice", "other"]
162162
| Omit = omit,
163163
policies: Iterable[content_submit_params.Policy] | Omit = omit,
164164
timestamp: float | Omit = omit,

‎src/moderation_api/types/content_submit_params.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class ContentSubmitParams(TypedDict, total=False):
9191
"""Any metadata you want to store with the content"""
9292

9393
meta_type: Annotated[
94-
Literal["profile", "message", "post", "comment", "event", "product", "review", "other"],
94+
Literal["profile", "message", "post", "comment", "event", "product", "review", "voice", "other"],
9595
PropertyInfo(alias="metaType"),
9696
]
9797
"""The meta type of content being moderated"""

0 commit comments

Comments
 (0)