|
52 | 52 | from .types.profile_response import ProfileResponse |
53 | 53 |
|
54 | 54 | if TYPE_CHECKING: |
55 | | - from .resources import search, memories, settings, documents |
| 55 | + from .resources import search, memories, settings, documents, connections |
56 | 56 | from .resources.search import SearchResource, AsyncSearchResource |
57 | 57 | from .resources.memories import MemoriesResource, AsyncMemoriesResource |
58 | 58 | from .resources.settings import SettingsResource, AsyncSettingsResource |
59 | 59 | from .resources.documents import DocumentsResource, AsyncDocumentsResource |
| 60 | + from .resources.connections import ConnectionsResource, AsyncConnectionsResource |
60 | 61 |
|
61 | 62 | __all__ = [ |
62 | 63 | "Timeout", |
@@ -160,6 +161,13 @@ def settings(self) -> SettingsResource: |
160 | 161 |
|
161 | 162 | return SettingsResource(self) |
162 | 163 |
|
| 164 | + @cached_property |
| 165 | + def connections(self) -> ConnectionsResource: |
| 166 | + """External service integrations""" |
| 167 | + from .resources.connections import ConnectionsResource |
| 168 | + |
| 169 | + return ConnectionsResource(self) |
| 170 | + |
163 | 171 | @cached_property |
164 | 172 | def with_raw_response(self) -> SupermemoryWithRawResponse: |
165 | 173 | return SupermemoryWithRawResponse(self) |
@@ -510,6 +518,13 @@ def settings(self) -> AsyncSettingsResource: |
510 | 518 |
|
511 | 519 | return AsyncSettingsResource(self) |
512 | 520 |
|
| 521 | + @cached_property |
| 522 | + def connections(self) -> AsyncConnectionsResource: |
| 523 | + """External service integrations""" |
| 524 | + from .resources.connections import AsyncConnectionsResource |
| 525 | + |
| 526 | + return AsyncConnectionsResource(self) |
| 527 | + |
513 | 528 | @cached_property |
514 | 529 | def with_raw_response(self) -> AsyncSupermemoryWithRawResponse: |
515 | 530 | return AsyncSupermemoryWithRawResponse(self) |
@@ -809,6 +824,13 @@ def settings(self) -> settings.SettingsResourceWithRawResponse: |
809 | 824 |
|
810 | 825 | return SettingsResourceWithRawResponse(self._client.settings) |
811 | 826 |
|
| 827 | + @cached_property |
| 828 | + def connections(self) -> connections.ConnectionsResourceWithRawResponse: |
| 829 | + """External service integrations""" |
| 830 | + from .resources.connections import ConnectionsResourceWithRawResponse |
| 831 | + |
| 832 | + return ConnectionsResourceWithRawResponse(self._client.connections) |
| 833 | + |
812 | 834 |
|
813 | 835 | class AsyncSupermemoryWithRawResponse: |
814 | 836 | _client: AsyncSupermemory |
@@ -849,6 +871,13 @@ def settings(self) -> settings.AsyncSettingsResourceWithRawResponse: |
849 | 871 |
|
850 | 872 | return AsyncSettingsResourceWithRawResponse(self._client.settings) |
851 | 873 |
|
| 874 | + @cached_property |
| 875 | + def connections(self) -> connections.AsyncConnectionsResourceWithRawResponse: |
| 876 | + """External service integrations""" |
| 877 | + from .resources.connections import AsyncConnectionsResourceWithRawResponse |
| 878 | + |
| 879 | + return AsyncConnectionsResourceWithRawResponse(self._client.connections) |
| 880 | + |
852 | 881 |
|
853 | 882 | class SupermemoryWithStreamedResponse: |
854 | 883 | _client: Supermemory |
@@ -889,6 +918,13 @@ def settings(self) -> settings.SettingsResourceWithStreamingResponse: |
889 | 918 |
|
890 | 919 | return SettingsResourceWithStreamingResponse(self._client.settings) |
891 | 920 |
|
| 921 | + @cached_property |
| 922 | + def connections(self) -> connections.ConnectionsResourceWithStreamingResponse: |
| 923 | + """External service integrations""" |
| 924 | + from .resources.connections import ConnectionsResourceWithStreamingResponse |
| 925 | + |
| 926 | + return ConnectionsResourceWithStreamingResponse(self._client.connections) |
| 927 | + |
892 | 928 |
|
893 | 929 | class AsyncSupermemoryWithStreamedResponse: |
894 | 930 | _client: AsyncSupermemory |
@@ -929,6 +965,13 @@ def settings(self) -> settings.AsyncSettingsResourceWithStreamingResponse: |
929 | 965 |
|
930 | 966 | return AsyncSettingsResourceWithStreamingResponse(self._client.settings) |
931 | 967 |
|
| 968 | + @cached_property |
| 969 | + def connections(self) -> connections.AsyncConnectionsResourceWithStreamingResponse: |
| 970 | + """External service integrations""" |
| 971 | + from .resources.connections import AsyncConnectionsResourceWithStreamingResponse |
| 972 | + |
| 973 | + return AsyncConnectionsResourceWithStreamingResponse(self._client.connections) |
| 974 | + |
932 | 975 |
|
933 | 976 | Client = Supermemory |
934 | 977 |
|
|
0 commit comments