Skip to content

Commit 9c92ab4

Browse files
feat(api): api update
1 parent 5b8aa23 commit 9c92ab4

189 files changed

Lines changed: 3219 additions & 16986 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 72
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/beeper/beeper-desktop-api-0427b028ffd00b4f8b75084116f801658d0279117b2d0e522d1f257c998f1fd0.yml
3-
openapi_spec_hash: af3ed0745fca6831cf2540c36050d4e6
4-
config_hash: fbf60dd7c0de7e17c7e2bb0ee09e9937
1+
configured_endpoints: 39
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/beeper/beeper-desktop-api-87df69f641d994f09669f77093988df0b13da380d36076964d4a2563e9ce202e.yml
3+
openapi_spec_hash: 9de80d05f7562b7ecd07c466f0fdf58b
4+
config_hash: 2ebcc80e2cbd2342e132f4474ec24212

api.md

Lines changed: 66 additions & 260 deletions
Large diffs are not rendered by default.

src/beeper_desktop_api/_client.py

Lines changed: 22 additions & 108 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,12 @@
5252
from .types.search_response import SearchResponse
5353

5454
if TYPE_CHECKING:
55-
from .resources import app, info, chats, assets, matrix, bridges, accounts, messages
55+
from .resources import info, chats, assets, bridges, accounts, messages
5656
from .resources.info import InfoResource, AsyncInfoResource
5757
from .resources.assets import AssetsResource, AsyncAssetsResource
58-
from .resources.app.app import AppResource, AsyncAppResource
59-
from .resources.bridges import BridgesResource, AsyncBridgesResource
6058
from .resources.messages import MessagesResource, AsyncMessagesResource
6159
from .resources.chats.chats import ChatsResource, AsyncChatsResource
62-
from .resources.matrix.matrix import MatrixResource, AsyncMatrixResource
60+
from .resources.bridges.bridges import BridgesResource, AsyncBridgesResource
6361
from .resources.accounts.accounts import AccountsResource, AsyncAccountsResource
6462

6563
__all__ = [
@@ -147,7 +145,7 @@ def accounts(self) -> AccountsResource:
147145

148146
@cached_property
149147
def bridges(self) -> BridgesResource:
150-
"""Manage bridge-backed account types and account availability"""
148+
"""Manage bridge-backed account types, connections, and login sessions"""
151149
from .resources.bridges import BridgesResource
152150

153151
return BridgesResource(self)
@@ -183,20 +181,6 @@ def info(self) -> InfoResource:
183181

184182
return InfoResource(self)
185183

186-
@cached_property
187-
def app(self) -> AppResource:
188-
"""Manage Beeper app login and encrypted messaging setup"""
189-
from .resources.app import AppResource
190-
191-
return AppResource(self)
192-
193-
@cached_property
194-
def matrix(self) -> MatrixResource:
195-
"""Matrix-compatible APIs for accounts, rooms, and connected network bridges."""
196-
from .resources.matrix import MatrixResource
197-
198-
return MatrixResource(self)
199-
200184
@cached_property
201185
def with_raw_response(self) -> BeeperDesktopWithRawResponse:
202186
return BeeperDesktopWithRawResponse(self)
@@ -296,14 +280,14 @@ def focus(
296280
timeout: float | httpx.Timeout | None | NotGiven = not_given,
297281
) -> FocusResponse:
298282
"""
299-
Focus Beeper Desktop and optionally navigate to a specific chat, message, or
300-
pre-fill plain text and an image path.
283+
Focus Beeper Desktop and optionally open a specific chat, jump to a message, or
284+
pre-fill text and an image.
301285
302286
Args:
303287
chat_id: Optional Beeper chat ID (or local chat ID) to focus after opening the app. If
304288
omitted, only opens/focuses the app.
305289
306-
draft_attachment_path: Optional image path to populate in the message input field.
290+
draft_attachment_path: Optional local image path to populate in the message input field.
307291
308292
draft_text: Optional plain text to populate in the message input field.
309293
@@ -346,12 +330,12 @@ def search(
346330
timeout: float | httpx.Timeout | None | NotGiven = not_given,
347331
) -> SearchResponse:
348332
"""
349-
Returns matching chats, participant name matches in groups, and the first page
350-
of messages in one call. Paginate messages via search-messages. Paginate chats
351-
via search-chats.
333+
Return matching chats, participant matches in group chats, and the first page of
334+
message results in one call. Use the dedicated chat and message search endpoints
335+
for pagination.
352336
353337
Args:
354-
query: User-typed search text. Literal word matching (non-semantic).
338+
query: User-typed search text. Uses literal word matching.
355339
356340
extra_headers: Send extra headers
357341
@@ -480,7 +464,7 @@ def accounts(self) -> AsyncAccountsResource:
480464

481465
@cached_property
482466
def bridges(self) -> AsyncBridgesResource:
483-
"""Manage bridge-backed account types and account availability"""
467+
"""Manage bridge-backed account types, connections, and login sessions"""
484468
from .resources.bridges import AsyncBridgesResource
485469

486470
return AsyncBridgesResource(self)
@@ -516,20 +500,6 @@ def info(self) -> AsyncInfoResource:
516500

517501
return AsyncInfoResource(self)
518502

519-
@cached_property
520-
def app(self) -> AsyncAppResource:
521-
"""Manage Beeper app login and encrypted messaging setup"""
522-
from .resources.app import AsyncAppResource
523-
524-
return AsyncAppResource(self)
525-
526-
@cached_property
527-
def matrix(self) -> AsyncMatrixResource:
528-
"""Matrix-compatible APIs for accounts, rooms, and connected network bridges."""
529-
from .resources.matrix import AsyncMatrixResource
530-
531-
return AsyncMatrixResource(self)
532-
533503
@cached_property
534504
def with_raw_response(self) -> AsyncBeeperDesktopWithRawResponse:
535505
return AsyncBeeperDesktopWithRawResponse(self)
@@ -629,14 +599,14 @@ async def focus(
629599
timeout: float | httpx.Timeout | None | NotGiven = not_given,
630600
) -> FocusResponse:
631601
"""
632-
Focus Beeper Desktop and optionally navigate to a specific chat, message, or
633-
pre-fill plain text and an image path.
602+
Focus Beeper Desktop and optionally open a specific chat, jump to a message, or
603+
pre-fill text and an image.
634604
635605
Args:
636606
chat_id: Optional Beeper chat ID (or local chat ID) to focus after opening the app. If
637607
omitted, only opens/focuses the app.
638608
639-
draft_attachment_path: Optional image path to populate in the message input field.
609+
draft_attachment_path: Optional local image path to populate in the message input field.
640610
641611
draft_text: Optional plain text to populate in the message input field.
642612
@@ -679,12 +649,12 @@ async def search(
679649
timeout: float | httpx.Timeout | None | NotGiven = not_given,
680650
) -> SearchResponse:
681651
"""
682-
Returns matching chats, participant name matches in groups, and the first page
683-
of messages in one call. Paginate messages via search-messages. Paginate chats
684-
via search-chats.
652+
Return matching chats, participant matches in group chats, and the first page of
653+
message results in one call. Use the dedicated chat and message search endpoints
654+
for pagination.
685655
686656
Args:
687-
query: User-typed search text. Literal word matching (non-semantic).
657+
query: User-typed search text. Uses literal word matching.
688658
689659
extra_headers: Send extra headers
690660
@@ -762,7 +732,7 @@ def accounts(self) -> accounts.AccountsResourceWithRawResponse:
762732

763733
@cached_property
764734
def bridges(self) -> bridges.BridgesResourceWithRawResponse:
765-
"""Manage bridge-backed account types and account availability"""
735+
"""Manage bridge-backed account types, connections, and login sessions"""
766736
from .resources.bridges import BridgesResourceWithRawResponse
767737

768738
return BridgesResourceWithRawResponse(self._client.bridges)
@@ -798,20 +768,6 @@ def info(self) -> info.InfoResourceWithRawResponse:
798768

799769
return InfoResourceWithRawResponse(self._client.info)
800770

801-
@cached_property
802-
def app(self) -> app.AppResourceWithRawResponse:
803-
"""Manage Beeper app login and encrypted messaging setup"""
804-
from .resources.app import AppResourceWithRawResponse
805-
806-
return AppResourceWithRawResponse(self._client.app)
807-
808-
@cached_property
809-
def matrix(self) -> matrix.MatrixResourceWithRawResponse:
810-
"""Matrix-compatible APIs for accounts, rooms, and connected network bridges."""
811-
from .resources.matrix import MatrixResourceWithRawResponse
812-
813-
return MatrixResourceWithRawResponse(self._client.matrix)
814-
815771

816772
class AsyncBeeperDesktopWithRawResponse:
817773
_client: AsyncBeeperDesktop
@@ -835,7 +791,7 @@ def accounts(self) -> accounts.AsyncAccountsResourceWithRawResponse:
835791

836792
@cached_property
837793
def bridges(self) -> bridges.AsyncBridgesResourceWithRawResponse:
838-
"""Manage bridge-backed account types and account availability"""
794+
"""Manage bridge-backed account types, connections, and login sessions"""
839795
from .resources.bridges import AsyncBridgesResourceWithRawResponse
840796

841797
return AsyncBridgesResourceWithRawResponse(self._client.bridges)
@@ -871,20 +827,6 @@ def info(self) -> info.AsyncInfoResourceWithRawResponse:
871827

872828
return AsyncInfoResourceWithRawResponse(self._client.info)
873829

874-
@cached_property
875-
def app(self) -> app.AsyncAppResourceWithRawResponse:
876-
"""Manage Beeper app login and encrypted messaging setup"""
877-
from .resources.app import AsyncAppResourceWithRawResponse
878-
879-
return AsyncAppResourceWithRawResponse(self._client.app)
880-
881-
@cached_property
882-
def matrix(self) -> matrix.AsyncMatrixResourceWithRawResponse:
883-
"""Matrix-compatible APIs for accounts, rooms, and connected network bridges."""
884-
from .resources.matrix import AsyncMatrixResourceWithRawResponse
885-
886-
return AsyncMatrixResourceWithRawResponse(self._client.matrix)
887-
888830

889831
class BeeperDesktopWithStreamedResponse:
890832
_client: BeeperDesktop
@@ -908,7 +850,7 @@ def accounts(self) -> accounts.AccountsResourceWithStreamingResponse:
908850

909851
@cached_property
910852
def bridges(self) -> bridges.BridgesResourceWithStreamingResponse:
911-
"""Manage bridge-backed account types and account availability"""
853+
"""Manage bridge-backed account types, connections, and login sessions"""
912854
from .resources.bridges import BridgesResourceWithStreamingResponse
913855

914856
return BridgesResourceWithStreamingResponse(self._client.bridges)
@@ -944,20 +886,6 @@ def info(self) -> info.InfoResourceWithStreamingResponse:
944886

945887
return InfoResourceWithStreamingResponse(self._client.info)
946888

947-
@cached_property
948-
def app(self) -> app.AppResourceWithStreamingResponse:
949-
"""Manage Beeper app login and encrypted messaging setup"""
950-
from .resources.app import AppResourceWithStreamingResponse
951-
952-
return AppResourceWithStreamingResponse(self._client.app)
953-
954-
@cached_property
955-
def matrix(self) -> matrix.MatrixResourceWithStreamingResponse:
956-
"""Matrix-compatible APIs for accounts, rooms, and connected network bridges."""
957-
from .resources.matrix import MatrixResourceWithStreamingResponse
958-
959-
return MatrixResourceWithStreamingResponse(self._client.matrix)
960-
961889

962890
class AsyncBeeperDesktopWithStreamedResponse:
963891
_client: AsyncBeeperDesktop
@@ -981,7 +909,7 @@ def accounts(self) -> accounts.AsyncAccountsResourceWithStreamingResponse:
981909

982910
@cached_property
983911
def bridges(self) -> bridges.AsyncBridgesResourceWithStreamingResponse:
984-
"""Manage bridge-backed account types and account availability"""
912+
"""Manage bridge-backed account types, connections, and login sessions"""
985913
from .resources.bridges import AsyncBridgesResourceWithStreamingResponse
986914

987915
return AsyncBridgesResourceWithStreamingResponse(self._client.bridges)
@@ -1017,20 +945,6 @@ def info(self) -> info.AsyncInfoResourceWithStreamingResponse:
1017945

1018946
return AsyncInfoResourceWithStreamingResponse(self._client.info)
1019947

1020-
@cached_property
1021-
def app(self) -> app.AsyncAppResourceWithStreamingResponse:
1022-
"""Manage Beeper app login and encrypted messaging setup"""
1023-
from .resources.app import AsyncAppResourceWithStreamingResponse
1024-
1025-
return AsyncAppResourceWithStreamingResponse(self._client.app)
1026-
1027-
@cached_property
1028-
def matrix(self) -> matrix.AsyncMatrixResourceWithStreamingResponse:
1029-
"""Matrix-compatible APIs for accounts, rooms, and connected network bridges."""
1030-
from .resources.matrix import AsyncMatrixResourceWithStreamingResponse
1031-
1032-
return AsyncMatrixResourceWithStreamingResponse(self._client.matrix)
1033-
1034948

1035949
Client = BeeperDesktop
1036950

src/beeper_desktop_api/resources/__init__.py

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from .app import (
4-
AppResource,
5-
AsyncAppResource,
6-
AppResourceWithRawResponse,
7-
AsyncAppResourceWithRawResponse,
8-
AppResourceWithStreamingResponse,
9-
AsyncAppResourceWithStreamingResponse,
10-
)
113
from .info import (
124
InfoResource,
135
AsyncInfoResource,
@@ -32,14 +24,6 @@
3224
AssetsResourceWithStreamingResponse,
3325
AsyncAssetsResourceWithStreamingResponse,
3426
)
35-
from .matrix import (
36-
MatrixResource,
37-
AsyncMatrixResource,
38-
MatrixResourceWithRawResponse,
39-
AsyncMatrixResourceWithRawResponse,
40-
MatrixResourceWithStreamingResponse,
41-
AsyncMatrixResourceWithStreamingResponse,
42-
)
4327
from .bridges import (
4428
BridgesResource,
4529
AsyncBridgesResource,
@@ -102,16 +86,4 @@
10286
"AsyncInfoResourceWithRawResponse",
10387
"InfoResourceWithStreamingResponse",
10488
"AsyncInfoResourceWithStreamingResponse",
105-
"AppResource",
106-
"AsyncAppResource",
107-
"AppResourceWithRawResponse",
108-
"AsyncAppResourceWithRawResponse",
109-
"AppResourceWithStreamingResponse",
110-
"AsyncAppResourceWithStreamingResponse",
111-
"MatrixResource",
112-
"AsyncMatrixResource",
113-
"MatrixResourceWithRawResponse",
114-
"AsyncMatrixResourceWithRawResponse",
115-
"MatrixResourceWithStreamingResponse",
116-
"AsyncMatrixResourceWithStreamingResponse",
11789
]

0 commit comments

Comments
 (0)