Skip to content

Commit 6a6a238

Browse files
feat(api): api update
1 parent b92a42b commit 6a6a238

26 files changed

Lines changed: 4 additions & 2377 deletions

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 26
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc/supermemory-new-62ed5d466e259c8e4311abe68915161cd0a01d1cc6d9079945eb8a0ebf73f690.yml
3-
openapi_spec_hash: 9622631943e5355eb6923e0c2e12f772
1+
configured_endpoints: 16
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc/supermemory-new-7185975161e0406ec7c438985acd80273dfd95ade0983d2029bed87c46182d62.yml
3+
openapi_spec_hash: ced6ea198b00867f09ef26384d3eaa6a
44
config_hash: cde97ef3188581c5f4924c633ec33ddb

api.md

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -79,35 +79,3 @@ Methods:
7979

8080
- <code title="patch /v3/settings">client.settings.<a href="./src/supermemory/resources/settings.py">update</a>(\*\*<a href="src/supermemory/types/setting_update_params.py">params</a>) -> <a href="./src/supermemory/types/setting_update_response.py">SettingUpdateResponse</a></code>
8181
- <code title="get /v3/settings">client.settings.<a href="./src/supermemory/resources/settings.py">get</a>() -> <a href="./src/supermemory/types/setting_get_response.py">SettingGetResponse</a></code>
82-
83-
# Connections
84-
85-
Types:
86-
87-
```python
88-
from supermemory.types import (
89-
ConnectionCreateResponse,
90-
ConnectionListResponse,
91-
ConnectionConfigureResponse,
92-
ConnectionDeleteByIDResponse,
93-
ConnectionDeleteByProviderResponse,
94-
ConnectionGetByIDResponse,
95-
ConnectionGetByTagResponse,
96-
ConnectionImportResponse,
97-
ConnectionListDocumentsResponse,
98-
ConnectionResourcesResponse,
99-
)
100-
```
101-
102-
Methods:
103-
104-
- <code title="post /v3/connections/{provider}">client.connections.<a href="./src/supermemory/resources/connections.py">create</a>(provider, \*\*<a href="src/supermemory/types/connection_create_params.py">params</a>) -> <a href="./src/supermemory/types/connection_create_response.py">ConnectionCreateResponse</a></code>
105-
- <code title="post /v3/connections/list">client.connections.<a href="./src/supermemory/resources/connections.py">list</a>(\*\*<a href="src/supermemory/types/connection_list_params.py">params</a>) -> <a href="./src/supermemory/types/connection_list_response.py">ConnectionListResponse</a></code>
106-
- <code title="post /v3/connections/{connectionId}/configure">client.connections.<a href="./src/supermemory/resources/connections.py">configure</a>(connection_id, \*\*<a href="src/supermemory/types/connection_configure_params.py">params</a>) -> <a href="./src/supermemory/types/connection_configure_response.py">ConnectionConfigureResponse</a></code>
107-
- <code title="delete /v3/connections/{connectionId}">client.connections.<a href="./src/supermemory/resources/connections.py">delete_by_id</a>(connection_id, \*\*<a href="src/supermemory/types/connection_delete_by_id_params.py">params</a>) -> <a href="./src/supermemory/types/connection_delete_by_id_response.py">ConnectionDeleteByIDResponse</a></code>
108-
- <code title="delete /v3/connections/{provider}">client.connections.<a href="./src/supermemory/resources/connections.py">delete_by_provider</a>(provider, \*\*<a href="src/supermemory/types/connection_delete_by_provider_params.py">params</a>) -> <a href="./src/supermemory/types/connection_delete_by_provider_response.py">ConnectionDeleteByProviderResponse</a></code>
109-
- <code title="get /v3/connections/{connectionId}">client.connections.<a href="./src/supermemory/resources/connections.py">get_by_id</a>(connection_id) -> <a href="./src/supermemory/types/connection_get_by_id_response.py">ConnectionGetByIDResponse</a></code>
110-
- <code title="post /v3/connections/{provider}/connection">client.connections.<a href="./src/supermemory/resources/connections.py">get_by_tag</a>(provider, \*\*<a href="src/supermemory/types/connection_get_by_tag_params.py">params</a>) -> <a href="./src/supermemory/types/connection_get_by_tag_response.py">ConnectionGetByTagResponse</a></code>
111-
- <code title="post /v3/connections/{provider}/import">client.connections.<a href="./src/supermemory/resources/connections.py">import\_</a>(provider, \*\*<a href="src/supermemory/types/connection_import_params.py">params</a>) -> str</code>
112-
- <code title="post /v3/connections/{provider}/documents">client.connections.<a href="./src/supermemory/resources/connections.py">list_documents</a>(provider, \*\*<a href="src/supermemory/types/connection_list_documents_params.py">params</a>) -> <a href="./src/supermemory/types/connection_list_documents_response.py">ConnectionListDocumentsResponse</a></code>
113-
- <code title="get /v3/connections/{connectionId}/resources">client.connections.<a href="./src/supermemory/resources/connections.py">resources</a>(connection_id, \*\*<a href="src/supermemory/types/connection_resources_params.py">params</a>) -> <a href="./src/supermemory/types/connection_resources_response.py">ConnectionResourcesResponse</a></code>

src/supermemory/_client.py

Lines changed: 1 addition & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,11 @@
5252
from .types.profile_response import ProfileResponse
5353

5454
if TYPE_CHECKING:
55-
from .resources import search, memories, settings, documents, connections
55+
from .resources import search, memories, settings, documents
5656
from .resources.search import SearchResource, AsyncSearchResource
5757
from .resources.memories import MemoriesResource, AsyncMemoriesResource
5858
from .resources.settings import SettingsResource, AsyncSettingsResource
5959
from .resources.documents import DocumentsResource, AsyncDocumentsResource
60-
from .resources.connections import ConnectionsResource, AsyncConnectionsResource
6160

6261
__all__ = [
6362
"Timeout",
@@ -161,13 +160,6 @@ def settings(self) -> SettingsResource:
161160

162161
return SettingsResource(self)
163162

164-
@cached_property
165-
def connections(self) -> ConnectionsResource:
166-
"""External service integrations"""
167-
from .resources.connections import ConnectionsResource
168-
169-
return ConnectionsResource(self)
170-
171163
@cached_property
172164
def with_raw_response(self) -> SupermemoryWithRawResponse:
173165
return SupermemoryWithRawResponse(self)
@@ -518,13 +510,6 @@ def settings(self) -> AsyncSettingsResource:
518510

519511
return AsyncSettingsResource(self)
520512

521-
@cached_property
522-
def connections(self) -> AsyncConnectionsResource:
523-
"""External service integrations"""
524-
from .resources.connections import AsyncConnectionsResource
525-
526-
return AsyncConnectionsResource(self)
527-
528513
@cached_property
529514
def with_raw_response(self) -> AsyncSupermemoryWithRawResponse:
530515
return AsyncSupermemoryWithRawResponse(self)
@@ -824,13 +809,6 @@ def settings(self) -> settings.SettingsResourceWithRawResponse:
824809

825810
return SettingsResourceWithRawResponse(self._client.settings)
826811

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-
834812

835813
class AsyncSupermemoryWithRawResponse:
836814
_client: AsyncSupermemory
@@ -871,13 +849,6 @@ def settings(self) -> settings.AsyncSettingsResourceWithRawResponse:
871849

872850
return AsyncSettingsResourceWithRawResponse(self._client.settings)
873851

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-
881852

882853
class SupermemoryWithStreamedResponse:
883854
_client: Supermemory
@@ -918,13 +889,6 @@ def settings(self) -> settings.SettingsResourceWithStreamingResponse:
918889

919890
return SettingsResourceWithStreamingResponse(self._client.settings)
920891

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-
928892

929893
class AsyncSupermemoryWithStreamedResponse:
930894
_client: AsyncSupermemory
@@ -965,13 +929,6 @@ def settings(self) -> settings.AsyncSettingsResourceWithStreamingResponse:
965929

966930
return AsyncSettingsResourceWithStreamingResponse(self._client.settings)
967931

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-
975932

976933
Client = Supermemory
977934

src/supermemory/resources/__init__.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,6 @@
3232
DocumentsResourceWithStreamingResponse,
3333
AsyncDocumentsResourceWithStreamingResponse,
3434
)
35-
from .connections import (
36-
ConnectionsResource,
37-
AsyncConnectionsResource,
38-
ConnectionsResourceWithRawResponse,
39-
AsyncConnectionsResourceWithRawResponse,
40-
ConnectionsResourceWithStreamingResponse,
41-
AsyncConnectionsResourceWithStreamingResponse,
42-
)
4335

4436
__all__ = [
4537
"MemoriesResource",
@@ -66,10 +58,4 @@
6658
"AsyncSettingsResourceWithRawResponse",
6759
"SettingsResourceWithStreamingResponse",
6860
"AsyncSettingsResourceWithStreamingResponse",
69-
"ConnectionsResource",
70-
"AsyncConnectionsResource",
71-
"ConnectionsResourceWithRawResponse",
72-
"AsyncConnectionsResourceWithRawResponse",
73-
"ConnectionsResourceWithStreamingResponse",
74-
"AsyncConnectionsResourceWithStreamingResponse",
7561
]

0 commit comments

Comments
 (0)