Skip to content

Commit 095aaeb

Browse files
feat(api): api update
1 parent 3afc57c commit 095aaeb

File tree

8 files changed

+24
-16
lines changed

8 files changed

+24
-16
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 26
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-new-634e52721f2d06aaddf4326ebec1de52e7f45148403df9ba3094b5a82b4890e0.yml
3-
openapi_spec_hash: cf448b1dcf62e4b3e29da9f66d0ebcd2
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-new-8d6903994bad6e2f9510fb021df21f84a3efa8f63abfff814455d666efa7388a.yml
3+
openapi_spec_hash: f9e80ec52ae9aecbd23a365dc1a3932f
44
config_hash: f3eb5ca71172780678106f6d46f15dda

src/supermemory/_client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -258,10 +258,10 @@ def add(
258258
website, a PDF, an image, or a video.
259259
260260
container_tag: Optional tag this document should be containerized by. Max 100 characters,
261-
alphanumeric with hyphens and underscores only.
261+
alphanumeric with hyphens, underscores, and dots only.
262262
263263
custom_id: Optional custom ID of the document. Max 100 characters, alphanumeric with
264-
hyphens and underscores only.
264+
hyphens, underscores, and dots only.
265265
266266
entity_context: Optional entity context for this container tag. Max 1500 characters. Used during
267267
document processing to guide memory extraction.
@@ -571,10 +571,10 @@ async def add(
571571
website, a PDF, an image, or a video.
572572
573573
container_tag: Optional tag this document should be containerized by. Max 100 characters,
574-
alphanumeric with hyphens and underscores only.
574+
alphanumeric with hyphens, underscores, and dots only.
575575
576576
custom_id: Optional custom ID of the document. Max 100 characters, alphanumeric with
577-
hyphens and underscores only.
577+
hyphens, underscores, and dots only.
578578
579579
entity_context: Optional entity context for this container tag. Max 1500 characters. Used during
580580
document processing to guide memory extraction.

src/supermemory/resources/connections.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ def create(
6565
self,
6666
provider: Literal["notion", "google-drive", "onedrive", "gmail", "github", "web-crawler", "s3"],
6767
*,
68+
container_tag: str | Omit = omit,
6869
container_tags: SequenceNotStr[str] | Omit = omit,
6970
document_limit: int | Omit = omit,
7071
metadata: Optional[Dict[str, Union[str, float, bool]]] | Omit = omit,
@@ -94,6 +95,7 @@ def create(
9495
f"/v3/connections/{provider}",
9596
body=maybe_transform(
9697
{
98+
"container_tag": container_tag,
9799
"container_tags": container_tags,
98100
"document_limit": document_limit,
99101
"metadata": metadata,
@@ -468,6 +470,7 @@ async def create(
468470
self,
469471
provider: Literal["notion", "google-drive", "onedrive", "gmail", "github", "web-crawler", "s3"],
470472
*,
473+
container_tag: str | Omit = omit,
471474
container_tags: SequenceNotStr[str] | Omit = omit,
472475
document_limit: int | Omit = omit,
473476
metadata: Optional[Dict[str, Union[str, float, bool]]] | Omit = omit,
@@ -497,6 +500,7 @@ async def create(
497500
f"/v3/connections/{provider}",
498501
body=await async_maybe_transform(
499502
{
503+
"container_tag": container_tag,
500504
"container_tags": container_tags,
501505
"document_limit": document_limit,
502506
"metadata": metadata,

src/supermemory/resources/documents.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -256,10 +256,10 @@ def add(
256256
website, a PDF, an image, or a video.
257257
258258
container_tag: Optional tag this document should be containerized by. Max 100 characters,
259-
alphanumeric with hyphens and underscores only.
259+
alphanumeric with hyphens, underscores, and dots only.
260260
261261
custom_id: Optional custom ID of the document. Max 100 characters, alphanumeric with
262-
hyphens and underscores only.
262+
hyphens, underscores, and dots only.
263263
264264
entity_context: Optional entity context for this container tag. Max 1500 characters. Used during
265265
document processing to guide memory extraction.
@@ -743,10 +743,10 @@ async def add(
743743
website, a PDF, an image, or a video.
744744
745745
container_tag: Optional tag this document should be containerized by. Max 100 characters,
746-
alphanumeric with hyphens and underscores only.
746+
alphanumeric with hyphens, underscores, and dots only.
747747
748748
custom_id: Optional custom ID of the document. Max 100 characters, alphanumeric with
749-
hyphens and underscores only.
749+
hyphens, underscores, and dots only.
750750
751751
entity_context: Optional entity context for this container tag. Max 1500 characters. Used during
752752
document processing to guide memory extraction.

src/supermemory/types/client_add_params.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ class ClientAddParams(TypedDict, total=False):
2121
container_tag: Annotated[str, PropertyInfo(alias="containerTag")]
2222
"""Optional tag this document should be containerized by.
2323
24-
Max 100 characters, alphanumeric with hyphens and underscores only.
24+
Max 100 characters, alphanumeric with hyphens, underscores, and dots only.
2525
"""
2626

2727
container_tags: Annotated[SequenceNotStr[str], PropertyInfo(alias="containerTags")]
2828

2929
custom_id: Annotated[str, PropertyInfo(alias="customId")]
3030
"""Optional custom ID of the document.
3131
32-
Max 100 characters, alphanumeric with hyphens and underscores only.
32+
Max 100 characters, alphanumeric with hyphens, underscores, and dots only.
3333
"""
3434

3535
entity_context: Annotated[str, PropertyInfo(alias="entityContext")]

src/supermemory/types/connection_create_params.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313

1414
class ConnectionCreateParams(TypedDict, total=False):
15+
container_tag: Annotated[str, PropertyInfo(alias="containerTag")]
16+
1517
container_tags: Annotated[SequenceNotStr[str], PropertyInfo(alias="containerTags")]
1618

1719
document_limit: Annotated[int, PropertyInfo(alias="documentLimit")]

src/supermemory/types/document_add_params.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ class DocumentAddParams(TypedDict, total=False):
2121
container_tag: Annotated[str, PropertyInfo(alias="containerTag")]
2222
"""Optional tag this document should be containerized by.
2323
24-
Max 100 characters, alphanumeric with hyphens and underscores only.
24+
Max 100 characters, alphanumeric with hyphens, underscores, and dots only.
2525
"""
2626

2727
container_tags: Annotated[SequenceNotStr[str], PropertyInfo(alias="containerTags")]
2828

2929
custom_id: Annotated[str, PropertyInfo(alias="customId")]
3030
"""Optional custom ID of the document.
3131
32-
Max 100 characters, alphanumeric with hyphens and underscores only.
32+
Max 100 characters, alphanumeric with hyphens, underscores, and dots only.
3333
"""
3434

3535
entity_context: Annotated[str, PropertyInfo(alias="entityContext")]

tests/api_resources/test_connections.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ def test_method_create(self, client: Supermemory) -> None:
4040
def test_method_create_with_all_params(self, client: Supermemory) -> None:
4141
connection = client.connections.create(
4242
provider="notion",
43-
container_tags=["string"],
43+
container_tag="containerTag",
44+
container_tags=["_1K--W2kIFj1"],
4445
document_limit=1,
4546
metadata={"foo": "string"},
4647
redirect_url="redirectUrl",
@@ -470,7 +471,8 @@ async def test_method_create(self, async_client: AsyncSupermemory) -> None:
470471
async def test_method_create_with_all_params(self, async_client: AsyncSupermemory) -> None:
471472
connection = await async_client.connections.create(
472473
provider="notion",
473-
container_tags=["string"],
474+
container_tag="containerTag",
475+
container_tags=["_1K--W2kIFj1"],
474476
document_limit=1,
475477
metadata={"foo": "string"},
476478
redirect_url="redirectUrl",

0 commit comments

Comments
 (0)