Skip to content

Commit 435e01d

Browse files
feat(api): api update
1 parent 429e523 commit 435e01d

3 files changed

Lines changed: 17 additions & 19 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-00324cd69f885e08708180c380317fd48101cb81c36f0bfaf7f8248d951d92f7.yml
3-
openapi_spec_hash: 47c828ded2fac0ded969760340b6b6fa
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/moderation-api%2Fmoderation-api-07681c3b51c92b9d92d71f11e9245c37a37ac1ea6df730cd730e85968064d814.yml
3+
openapi_spec_hash: 48bffabe129598fc41a232cf5469bd4b
44
config_hash: 6a52f6ae7d55cf3b4e91538cc7752aeb

‎LICENSE‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright 2025 Moderation API
189+
Copyright 2026 Moderation API
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

‎src/moderation_api/types/content_submit_params.py‎

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -333,18 +333,17 @@ class PolicyCodeAbuse(TypedDict, total=False):
333333
threshold: float
334334

335335

336-
class PolicyPiiMaskingEntities(TypedDict, total=False):
337-
id: Required[
338-
Literal["email", "phone", "url", "address", "name", "username", "ip_address", "credit_card", "sensitive_other"]
339-
]
336+
class PolicyPiiMaskingEntitiesTyped(TypedDict, total=False):
337+
enable: bool
340338

341-
enable: Required[bool]
339+
flag: bool
342340

343-
flag: Required[bool]
341+
mask: str
344342

345-
should_mask: Required[Annotated[bool, PropertyInfo(alias="shouldMask")]]
343+
should_mask: Annotated[bool, PropertyInfo(alias="shouldMask")]
346344

347-
mask: str
345+
346+
PolicyPiiMaskingEntities: TypeAlias = Union[PolicyPiiMaskingEntitiesTyped, Dict[str, object]]
348347

349348

350349
class PolicyPiiMasking(TypedDict, total=False):
@@ -353,18 +352,17 @@ class PolicyPiiMasking(TypedDict, total=False):
353352
entities: Required[Dict[str, PolicyPiiMaskingEntities]]
354353

355354

356-
class PolicyURLMaskingEntities(TypedDict, total=False):
357-
id: Required[
358-
Literal["email", "phone", "url", "address", "name", "username", "ip_address", "credit_card", "sensitive_other"]
359-
]
355+
class PolicyURLMaskingEntitiesTyped(TypedDict, total=False):
356+
enable: bool
360357

361-
enable: Required[bool]
358+
flag: bool
362359

363-
flag: Required[bool]
360+
mask: str
364361

365-
should_mask: Required[Annotated[bool, PropertyInfo(alias="shouldMask")]]
362+
should_mask: Annotated[bool, PropertyInfo(alias="shouldMask")]
366363

367-
mask: str
364+
365+
PolicyURLMaskingEntities: TypeAlias = Union[PolicyURLMaskingEntitiesTyped, Dict[str, object]]
368366

369367

370368
class PolicyURLMasking(TypedDict, total=False):

0 commit comments

Comments
 (0)