Skip to content

Commit c77412c

Browse files
feat(api): api update
1 parent 5d9ff0e commit c77412c

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 23
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/beeper%2Fbeeper-desktop-api-774bb08472b6bb14c280fe5b767925675516b5c8ccc0b89b5abd7ac7bc30fe5a.yml
3-
openapi_spec_hash: ddd1ce1f334b45206ac008b0f5296842
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/beeper%2Fbeeper-desktop-api-4acef56b00be513f305543096fdd407e6947f0a5ad268ab2e627ff30b37a75db.yml
3+
openapi_spec_hash: e876d796b6c25f18577f6be3944bf7d9
44
config_hash: b5ac0c1579dfe6257bcdb84cfd1002fc

src/beeper_desktop_api/resources/messages.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def search(
163163
limit: int | Omit = omit,
164164
media_types: List[Literal["any", "video", "image", "link", "file"]] | Omit = omit,
165165
query: str | Omit = omit,
166-
sender: Union[Literal["me", "others"], str] | Omit = omit,
166+
sender: str | Omit = omit,
167167
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
168168
# The extra values given here take precedence over values defined on the client or passed to this method.
169169
extra_headers: Headers | None = None,
@@ -439,7 +439,7 @@ def search(
439439
limit: int | Omit = omit,
440440
media_types: List[Literal["any", "video", "image", "link", "file"]] | Omit = omit,
441441
query: str | Omit = omit,
442-
sender: Union[Literal["me", "others"], str] | Omit = omit,
442+
sender: str | Omit = omit,
443443
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
444444
# The extra values given here take precedence over values defined on the client or passed to this method.
445445
extra_headers: Headers | None = None,

src/beeper_desktop_api/types/message_search_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class MessageSearchParams(TypedDict, total=False):
7474
only by other parameters.
7575
"""
7676

77-
sender: Union[Literal["me", "others"], str]
77+
sender: str
7878
"""
7979
Filter by sender: 'me' (messages sent by the authenticated user), 'others'
8080
(messages sent by others), or a specific user ID string (user.id).

src/beeper_desktop_api/types/shared/error.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55

66
from ..._models import BaseModel
77

8-
__all__ = ["Error", "Details", "DetailsIssues", "DetailsIssuesIssue"]
8+
__all__ = ["Error", "Details", "DetailsValidationDetails", "DetailsValidationDetailsIssue"]
99

1010

11-
class DetailsIssuesIssue(BaseModel):
11+
class DetailsValidationDetailsIssue(BaseModel):
1212
code: str
1313
"""Validation issue code"""
1414

@@ -19,14 +19,14 @@ class DetailsIssuesIssue(BaseModel):
1919
"""Path pointing to the invalid field within the payload"""
2020

2121

22-
class DetailsIssues(BaseModel):
22+
class DetailsValidationDetails(BaseModel):
2323
"""Validation error details"""
2424

25-
issues: List[DetailsIssuesIssue]
25+
issues: List[DetailsValidationDetailsIssue]
2626
"""List of validation issues"""
2727

2828

29-
Details: TypeAlias = Union[DetailsIssues, Dict[str, Optional[object]], Optional[object]]
29+
Details: TypeAlias = Union[DetailsValidationDetails, Dict[str, Optional[object]], Optional[object]]
3030

3131

3232
class Error(BaseModel):

tests/api_resources/test_messages.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def test_method_search_with_all_params(self, client: BeeperDesktop) -> None:
146146
limit=20,
147147
media_types=["any"],
148148
query="dinner",
149-
sender="me",
149+
sender="sender",
150150
)
151151
assert_matches_type(SyncCursorSearch[Message], message, path=["response"])
152152

@@ -357,7 +357,7 @@ async def test_method_search_with_all_params(self, async_client: AsyncBeeperDesk
357357
limit=20,
358358
media_types=["any"],
359359
query="dinner",
360-
sender="me",
360+
sender="sender",
361361
)
362362
assert_matches_type(AsyncCursorSearch[Message], message, path=["response"])
363363

0 commit comments

Comments
 (0)