Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "3.49.0"
".": "3.50.0"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 16
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc/supermemory-new-7185975161e0406ec7c438985acd80273dfd95ade0983d2029bed87c46182d62.yml
openapi_spec_hash: ced6ea198b00867f09ef26384d3eaa6a
configured_endpoints: 26
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc/supermemory-new-cb64e01550fb988a58095de96451432deff2ab195b1381b50595a0dd15d6d64d.yml
openapi_spec_hash: d915b2e4ec955bd600a43eeb5603965f
config_hash: cde97ef3188581c5f4924c633ec33ddb
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 3.50.0 (2026-06-24)

Full Changelog: [v3.49.0...v3.50.0](https://github.com/supermemoryai/python-sdk/compare/v3.49.0...v3.50.0)

### Features

* **api:** api update ([36a55ee](https://github.com/supermemoryai/python-sdk/commit/36a55ee2b26fb0ed076892d486e464c11eb4c2e4))

## 3.49.0 (2026-06-22)

Full Changelog: [v3.48.0...v3.49.0](https://github.com/supermemoryai/python-sdk/compare/v3.48.0...v3.49.0)
Expand Down
32 changes: 32 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,35 @@ Methods:

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

# Connections

Types:

```python
from supermemory.types import (
ConnectionCreateResponse,
ConnectionListResponse,
ConnectionConfigureResponse,
ConnectionDeleteByIDResponse,
ConnectionDeleteByProviderResponse,
ConnectionGetByIDResponse,
ConnectionGetByTagResponse,
ConnectionImportResponse,
ConnectionListDocumentsResponse,
ConnectionResourcesResponse,
)
```

Methods:

- <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>
- <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>
- <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>
- <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>
- <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>
- <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>
- <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>
- <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>
- <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>
- <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>
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "supermemory"
version = "3.49.0"
version = "3.50.0"
description = "The official Python library for the supermemory API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
45 changes: 44 additions & 1 deletion src/supermemory/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,12 @@
from .types.profile_response import ProfileResponse

if TYPE_CHECKING:
from .resources import search, memories, settings, documents
from .resources import search, memories, settings, documents, connections
from .resources.search import SearchResource, AsyncSearchResource
from .resources.memories import MemoriesResource, AsyncMemoriesResource
from .resources.settings import SettingsResource, AsyncSettingsResource
from .resources.documents import DocumentsResource, AsyncDocumentsResource
from .resources.connections import ConnectionsResource, AsyncConnectionsResource

__all__ = [
"Timeout",
Expand Down Expand Up @@ -160,6 +161,13 @@ def settings(self) -> SettingsResource:

return SettingsResource(self)

@cached_property
def connections(self) -> ConnectionsResource:
"""External service integrations"""
from .resources.connections import ConnectionsResource

return ConnectionsResource(self)

@cached_property
def with_raw_response(self) -> SupermemoryWithRawResponse:
return SupermemoryWithRawResponse(self)
Expand Down Expand Up @@ -510,6 +518,13 @@ def settings(self) -> AsyncSettingsResource:

return AsyncSettingsResource(self)

@cached_property
def connections(self) -> AsyncConnectionsResource:
"""External service integrations"""
from .resources.connections import AsyncConnectionsResource

return AsyncConnectionsResource(self)

@cached_property
def with_raw_response(self) -> AsyncSupermemoryWithRawResponse:
return AsyncSupermemoryWithRawResponse(self)
Expand Down Expand Up @@ -809,6 +824,13 @@ def settings(self) -> settings.SettingsResourceWithRawResponse:

return SettingsResourceWithRawResponse(self._client.settings)

@cached_property
def connections(self) -> connections.ConnectionsResourceWithRawResponse:
"""External service integrations"""
from .resources.connections import ConnectionsResourceWithRawResponse

return ConnectionsResourceWithRawResponse(self._client.connections)


class AsyncSupermemoryWithRawResponse:
_client: AsyncSupermemory
Expand Down Expand Up @@ -849,6 +871,13 @@ def settings(self) -> settings.AsyncSettingsResourceWithRawResponse:

return AsyncSettingsResourceWithRawResponse(self._client.settings)

@cached_property
def connections(self) -> connections.AsyncConnectionsResourceWithRawResponse:
"""External service integrations"""
from .resources.connections import AsyncConnectionsResourceWithRawResponse

return AsyncConnectionsResourceWithRawResponse(self._client.connections)


class SupermemoryWithStreamedResponse:
_client: Supermemory
Expand Down Expand Up @@ -889,6 +918,13 @@ def settings(self) -> settings.SettingsResourceWithStreamingResponse:

return SettingsResourceWithStreamingResponse(self._client.settings)

@cached_property
def connections(self) -> connections.ConnectionsResourceWithStreamingResponse:
"""External service integrations"""
from .resources.connections import ConnectionsResourceWithStreamingResponse

return ConnectionsResourceWithStreamingResponse(self._client.connections)


class AsyncSupermemoryWithStreamedResponse:
_client: AsyncSupermemory
Expand Down Expand Up @@ -929,6 +965,13 @@ def settings(self) -> settings.AsyncSettingsResourceWithStreamingResponse:

return AsyncSettingsResourceWithStreamingResponse(self._client.settings)

@cached_property
def connections(self) -> connections.AsyncConnectionsResourceWithStreamingResponse:
"""External service integrations"""
from .resources.connections import AsyncConnectionsResourceWithStreamingResponse

return AsyncConnectionsResourceWithStreamingResponse(self._client.connections)


Client = Supermemory

Expand Down
2 changes: 1 addition & 1 deletion src/supermemory/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "supermemory"
__version__ = "3.49.0" # x-release-please-version
__version__ = "3.50.0" # x-release-please-version
14 changes: 14 additions & 0 deletions src/supermemory/resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@
DocumentsResourceWithStreamingResponse,
AsyncDocumentsResourceWithStreamingResponse,
)
from .connections import (
ConnectionsResource,
AsyncConnectionsResource,
ConnectionsResourceWithRawResponse,
AsyncConnectionsResourceWithRawResponse,
ConnectionsResourceWithStreamingResponse,
AsyncConnectionsResourceWithStreamingResponse,
)

__all__ = [
"MemoriesResource",
Expand All @@ -58,4 +66,10 @@
"AsyncSettingsResourceWithRawResponse",
"SettingsResourceWithStreamingResponse",
"AsyncSettingsResourceWithStreamingResponse",
"ConnectionsResource",
"AsyncConnectionsResource",
"ConnectionsResourceWithRawResponse",
"AsyncConnectionsResourceWithRawResponse",
"ConnectionsResourceWithStreamingResponse",
"AsyncConnectionsResourceWithStreamingResponse",
]
Loading