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.3.0"
".": "3.4.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: 18
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-new-0606bdf6929173c39cecc0ce0da252d509a38fbc98e7b8ddd64bdee5812625b9.yml
openapi_spec_hash: c6c376e6d59b3c01e38559a2a74b075e
config_hash: 5deef1e3a49e3a7816348fbf7ba259bf
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-new-ff2201f4ff8f062673cb93068f6d3efeb46d6ac7ce66632418ec1825b03f6332.yml
openapi_spec_hash: 11b52dea5fc829a46baea91d0c7e3c4e
config_hash: a478b24249ee4f53abfb5787ca4daf8b
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Changelog

## 3.4.0 (2025-10-07)

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

### Features

* **api:** api update ([ad11246](https://github.com/supermemoryai/python-sdk/commit/ad112460d7aa5642895c4dec8b9c4e1993c01635))
* **api:** api update ([0a01f62](https://github.com/supermemoryai/python-sdk/commit/0a01f623aa5daf19192259bee921e65acd583244))
* **api:** api update ([91585de](https://github.com/supermemoryai/python-sdk/commit/91585de6396d6529c2d15b2b2c4db481e72f32d0))
* **api:** api update ([2a12ab8](https://github.com/supermemoryai/python-sdk/commit/2a12ab834b2748eb30a6bad5ea6ce6e53644334e))
* **api:** manual updates ([71bae29](https://github.com/supermemoryai/python-sdk/commit/71bae2938f3c523b3bb5f814e96937f067f454f5))

## 3.3.0 (2025-09-21)

Full Changelog: [v3.2.0...v3.3.0](https://github.com/supermemoryai/python-sdk/compare/v3.2.0...v3.3.0)
Expand Down
6 changes: 6 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Shared Types

```python
from supermemory.types import And, Or
```

# Memories

Types:
Expand Down
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.3.0"
version = "3.4.0"
description = "The official Python library for the supermemory API"
dynamic = ["readme"]
license = "Apache-2.0"
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.3.0" # x-release-please-version
__version__ = "3.4.0" # x-release-please-version
58 changes: 6 additions & 52 deletions src/supermemory/resources/documents.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ def update(
container_tags: SequenceNotStr[str] | Omit = omit,
content: str | Omit = omit,
custom_id: str | Omit = omit,
file_type: str | Omit = omit,
metadata: Dict[str, Union[str, float, bool, SequenceNotStr[str]]] | Omit = omit,
mime_type: str | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand Down Expand Up @@ -90,20 +88,12 @@ def update(
custom_id: Optional custom ID of the document. This could be an ID from your database that
will uniquely identify this document.

file_type:
Optional file type override to force specific processing behavior. Valid values:
text, pdf, tweet, google_doc, google_slide, google_sheet, image, video,
notion_doc, webpage, onedrive

metadata: Optional metadata for the document. This is used to store additional information
about the document. You can use this to store any additional information you
need about the document. Metadata can be filtered through. Keys must be strings
and are case sensitive. Values can be strings, numbers, or booleans. You cannot
nest objects.

mime_type: Required when fileType is 'image' or 'video'. Specifies the exact MIME type to
use (e.g., 'image/png', 'image/jpeg', 'video/mp4', 'video/webm')

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand All @@ -122,9 +112,7 @@ def update(
"container_tags": container_tags,
"content": content,
"custom_id": custom_id,
"file_type": file_type,
"metadata": metadata,
"mime_type": mime_type,
},
document_update_params.DocumentUpdateParams,
),
Expand Down Expand Up @@ -241,9 +229,7 @@ def add(
container_tag: str | Omit = omit,
container_tags: SequenceNotStr[str] | Omit = omit,
custom_id: str | Omit = omit,
file_type: str | Omit = omit,
metadata: Dict[str, Union[str, float, bool, SequenceNotStr[str]]] | Omit = omit,
mime_type: str | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand Down Expand Up @@ -275,20 +261,12 @@ def add(
custom_id: Optional custom ID of the document. This could be an ID from your database that
will uniquely identify this document.

file_type:
Optional file type override to force specific processing behavior. Valid values:
text, pdf, tweet, google_doc, google_slide, google_sheet, image, video,
notion_doc, webpage, onedrive

metadata: Optional metadata for the document. This is used to store additional information
about the document. You can use this to store any additional information you
need about the document. Metadata can be filtered through. Keys must be strings
and are case sensitive. Values can be strings, numbers, or booleans. You cannot
nest objects.

mime_type: Required when fileType is 'image' or 'video'. Specifies the exact MIME type to
use (e.g., 'image/png', 'image/jpeg', 'video/mp4', 'video/webm')

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand All @@ -305,9 +283,7 @@ def add(
"container_tag": container_tag,
"container_tags": container_tags,
"custom_id": custom_id,
"file_type": file_type,
"metadata": metadata,
"mime_type": mime_type,
},
document_add_params.DocumentAddParams,
),
Expand Down Expand Up @@ -371,8 +347,9 @@ def upload_file(
Args:
file: File to upload and process

container_tags: Optional JSON string of container tags array. This can be an ID for your user, a
project ID, or any other identifier you wish to use to group documents.
container_tags: Optional container tags. Can be either a JSON string of an array (e.g.,
'["user_123", "project_123"]') or a single string (e.g., 'user_123'). Single
strings will be automatically converted to an array.

file_type:
Optional file type override to force specific processing behavior. Valid values:
Expand Down Expand Up @@ -447,9 +424,7 @@ async def update(
container_tags: SequenceNotStr[str] | Omit = omit,
content: str | Omit = omit,
custom_id: str | Omit = omit,
file_type: str | Omit = omit,
metadata: Dict[str, Union[str, float, bool, SequenceNotStr[str]]] | Omit = omit,
mime_type: str | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand Down Expand Up @@ -481,20 +456,12 @@ async def update(
custom_id: Optional custom ID of the document. This could be an ID from your database that
will uniquely identify this document.

file_type:
Optional file type override to force specific processing behavior. Valid values:
text, pdf, tweet, google_doc, google_slide, google_sheet, image, video,
notion_doc, webpage, onedrive

metadata: Optional metadata for the document. This is used to store additional information
about the document. You can use this to store any additional information you
need about the document. Metadata can be filtered through. Keys must be strings
and are case sensitive. Values can be strings, numbers, or booleans. You cannot
nest objects.

mime_type: Required when fileType is 'image' or 'video'. Specifies the exact MIME type to
use (e.g., 'image/png', 'image/jpeg', 'video/mp4', 'video/webm')

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand All @@ -513,9 +480,7 @@ async def update(
"container_tags": container_tags,
"content": content,
"custom_id": custom_id,
"file_type": file_type,
"metadata": metadata,
"mime_type": mime_type,
},
document_update_params.DocumentUpdateParams,
),
Expand Down Expand Up @@ -632,9 +597,7 @@ async def add(
container_tag: str | Omit = omit,
container_tags: SequenceNotStr[str] | Omit = omit,
custom_id: str | Omit = omit,
file_type: str | Omit = omit,
metadata: Dict[str, Union[str, float, bool, SequenceNotStr[str]]] | Omit = omit,
mime_type: str | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand Down Expand Up @@ -666,20 +629,12 @@ async def add(
custom_id: Optional custom ID of the document. This could be an ID from your database that
will uniquely identify this document.

file_type:
Optional file type override to force specific processing behavior. Valid values:
text, pdf, tweet, google_doc, google_slide, google_sheet, image, video,
notion_doc, webpage, onedrive

metadata: Optional metadata for the document. This is used to store additional information
about the document. You can use this to store any additional information you
need about the document. Metadata can be filtered through. Keys must be strings
and are case sensitive. Values can be strings, numbers, or booleans. You cannot
nest objects.

mime_type: Required when fileType is 'image' or 'video'. Specifies the exact MIME type to
use (e.g., 'image/png', 'image/jpeg', 'video/mp4', 'video/webm')

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand All @@ -696,9 +651,7 @@ async def add(
"container_tag": container_tag,
"container_tags": container_tags,
"custom_id": custom_id,
"file_type": file_type,
"metadata": metadata,
"mime_type": mime_type,
},
document_add_params.DocumentAddParams,
),
Expand Down Expand Up @@ -762,8 +715,9 @@ async def upload_file(
Args:
file: File to upload and process

container_tags: Optional JSON string of container tags array. This can be an ID for your user, a
project ID, or any other identifier you wish to use to group documents.
container_tags: Optional container tags. Can be either a JSON string of an array (e.g.,
'["user_123", "project_123"]') or a single string (e.g., 'user_123'). Single
strings will be automatically converted to an array.

file_type:
Optional file type override to force specific processing behavior. Valid values:
Expand Down
Loading
Loading