Skip to content

Commit 91585de

Browse files
feat(api): api update
1 parent e4db38e commit 91585de

24 files changed

+93
-281
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: 18
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-new-4033be3204bb6bc9a92a54ba796dbc2c0601f72532f93c3f1ee0180e23723709.yml
3-
openapi_spec_hash: 091da422bf6888c497c61ad0a910f276
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-new-cdabb80ed9d7dae231be9b5ec36bd1056bebea71d69780c8457789834763d678.yml
3+
openapi_spec_hash: 5bc8a0413b16125cb0fd1ef5027614aa
44
config_hash: a478b24249ee4f53abfb5787ca4daf8b

src/supermemory/resources/documents.py

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,7 @@ def update(
5656
container_tags: SequenceNotStr[str] | Omit = omit,
5757
content: str | Omit = omit,
5858
custom_id: str | Omit = omit,
59-
file_type: str | Omit = omit,
6059
metadata: Dict[str, Union[str, float, bool, SequenceNotStr[str]]] | Omit = omit,
61-
mime_type: str | Omit = omit,
6260
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
6361
# The extra values given here take precedence over values defined on the client or passed to this method.
6462
extra_headers: Headers | None = None,
@@ -90,20 +88,12 @@ def update(
9088
custom_id: Optional custom ID of the document. This could be an ID from your database that
9189
will uniquely identify this document.
9290
93-
file_type:
94-
Optional file type override to force specific processing behavior. Valid values:
95-
text, pdf, tweet, google_doc, google_slide, google_sheet, image, video,
96-
notion_doc, webpage, onedrive
97-
9891
metadata: Optional metadata for the document. This is used to store additional information
9992
about the document. You can use this to store any additional information you
10093
need about the document. Metadata can be filtered through. Keys must be strings
10194
and are case sensitive. Values can be strings, numbers, or booleans. You cannot
10295
nest objects.
10396
104-
mime_type: Required when fileType is 'image' or 'video'. Specifies the exact MIME type to
105-
use (e.g., 'image/png', 'image/jpeg', 'video/mp4', 'video/webm')
106-
10797
extra_headers: Send extra headers
10898
10999
extra_query: Add additional query parameters to the request
@@ -122,9 +112,7 @@ def update(
122112
"container_tags": container_tags,
123113
"content": content,
124114
"custom_id": custom_id,
125-
"file_type": file_type,
126115
"metadata": metadata,
127-
"mime_type": mime_type,
128116
},
129117
document_update_params.DocumentUpdateParams,
130118
),
@@ -241,9 +229,7 @@ def add(
241229
container_tag: str | Omit = omit,
242230
container_tags: SequenceNotStr[str] | Omit = omit,
243231
custom_id: str | Omit = omit,
244-
file_type: str | Omit = omit,
245232
metadata: Dict[str, Union[str, float, bool, SequenceNotStr[str]]] | Omit = omit,
246-
mime_type: str | Omit = omit,
247233
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
248234
# The extra values given here take precedence over values defined on the client or passed to this method.
249235
extra_headers: Headers | None = None,
@@ -275,20 +261,12 @@ def add(
275261
custom_id: Optional custom ID of the document. This could be an ID from your database that
276262
will uniquely identify this document.
277263
278-
file_type:
279-
Optional file type override to force specific processing behavior. Valid values:
280-
text, pdf, tweet, google_doc, google_slide, google_sheet, image, video,
281-
notion_doc, webpage, onedrive
282-
283264
metadata: Optional metadata for the document. This is used to store additional information
284265
about the document. You can use this to store any additional information you
285266
need about the document. Metadata can be filtered through. Keys must be strings
286267
and are case sensitive. Values can be strings, numbers, or booleans. You cannot
287268
nest objects.
288269
289-
mime_type: Required when fileType is 'image' or 'video'. Specifies the exact MIME type to
290-
use (e.g., 'image/png', 'image/jpeg', 'video/mp4', 'video/webm')
291-
292270
extra_headers: Send extra headers
293271
294272
extra_query: Add additional query parameters to the request
@@ -305,9 +283,7 @@ def add(
305283
"container_tag": container_tag,
306284
"container_tags": container_tags,
307285
"custom_id": custom_id,
308-
"file_type": file_type,
309286
"metadata": metadata,
310-
"mime_type": mime_type,
311287
},
312288
document_add_params.DocumentAddParams,
313289
),
@@ -448,9 +424,7 @@ async def update(
448424
container_tags: SequenceNotStr[str] | Omit = omit,
449425
content: str | Omit = omit,
450426
custom_id: str | Omit = omit,
451-
file_type: str | Omit = omit,
452427
metadata: Dict[str, Union[str, float, bool, SequenceNotStr[str]]] | Omit = omit,
453-
mime_type: str | Omit = omit,
454428
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
455429
# The extra values given here take precedence over values defined on the client or passed to this method.
456430
extra_headers: Headers | None = None,
@@ -482,20 +456,12 @@ async def update(
482456
custom_id: Optional custom ID of the document. This could be an ID from your database that
483457
will uniquely identify this document.
484458
485-
file_type:
486-
Optional file type override to force specific processing behavior. Valid values:
487-
text, pdf, tweet, google_doc, google_slide, google_sheet, image, video,
488-
notion_doc, webpage, onedrive
489-
490459
metadata: Optional metadata for the document. This is used to store additional information
491460
about the document. You can use this to store any additional information you
492461
need about the document. Metadata can be filtered through. Keys must be strings
493462
and are case sensitive. Values can be strings, numbers, or booleans. You cannot
494463
nest objects.
495464
496-
mime_type: Required when fileType is 'image' or 'video'. Specifies the exact MIME type to
497-
use (e.g., 'image/png', 'image/jpeg', 'video/mp4', 'video/webm')
498-
499465
extra_headers: Send extra headers
500466
501467
extra_query: Add additional query parameters to the request
@@ -514,9 +480,7 @@ async def update(
514480
"container_tags": container_tags,
515481
"content": content,
516482
"custom_id": custom_id,
517-
"file_type": file_type,
518483
"metadata": metadata,
519-
"mime_type": mime_type,
520484
},
521485
document_update_params.DocumentUpdateParams,
522486
),
@@ -633,9 +597,7 @@ async def add(
633597
container_tag: str | Omit = omit,
634598
container_tags: SequenceNotStr[str] | Omit = omit,
635599
custom_id: str | Omit = omit,
636-
file_type: str | Omit = omit,
637600
metadata: Dict[str, Union[str, float, bool, SequenceNotStr[str]]] | Omit = omit,
638-
mime_type: str | Omit = omit,
639601
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
640602
# The extra values given here take precedence over values defined on the client or passed to this method.
641603
extra_headers: Headers | None = None,
@@ -667,20 +629,12 @@ async def add(
667629
custom_id: Optional custom ID of the document. This could be an ID from your database that
668630
will uniquely identify this document.
669631
670-
file_type:
671-
Optional file type override to force specific processing behavior. Valid values:
672-
text, pdf, tweet, google_doc, google_slide, google_sheet, image, video,
673-
notion_doc, webpage, onedrive
674-
675632
metadata: Optional metadata for the document. This is used to store additional information
676633
about the document. You can use this to store any additional information you
677634
need about the document. Metadata can be filtered through. Keys must be strings
678635
and are case sensitive. Values can be strings, numbers, or booleans. You cannot
679636
nest objects.
680637
681-
mime_type: Required when fileType is 'image' or 'video'. Specifies the exact MIME type to
682-
use (e.g., 'image/png', 'image/jpeg', 'video/mp4', 'video/webm')
683-
684638
extra_headers: Send extra headers
685639
686640
extra_query: Add additional query parameters to the request
@@ -697,9 +651,7 @@ async def add(
697651
"container_tag": container_tag,
698652
"container_tags": container_tags,
699653
"custom_id": custom_id,
700-
"file_type": file_type,
701654
"metadata": metadata,
702-
"mime_type": mime_type,
703655
},
704656
document_add_params.DocumentAddParams,
705657
),

src/supermemory/resources/memories.py

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,7 @@ def update(
5656
container_tags: SequenceNotStr[str] | Omit = omit,
5757
content: str | Omit = omit,
5858
custom_id: str | Omit = omit,
59-
file_type: str | Omit = omit,
6059
metadata: Dict[str, Union[str, float, bool, SequenceNotStr[str]]] | Omit = omit,
61-
mime_type: str | Omit = omit,
6260
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
6361
# The extra values given here take precedence over values defined on the client or passed to this method.
6462
extra_headers: Headers | None = None,
@@ -90,20 +88,12 @@ def update(
9088
custom_id: Optional custom ID of the document. This could be an ID from your database that
9189
will uniquely identify this document.
9290
93-
file_type:
94-
Optional file type override to force specific processing behavior. Valid values:
95-
text, pdf, tweet, google_doc, google_slide, google_sheet, image, video,
96-
notion_doc, webpage, onedrive
97-
9891
metadata: Optional metadata for the document. This is used to store additional information
9992
about the document. You can use this to store any additional information you
10093
need about the document. Metadata can be filtered through. Keys must be strings
10194
and are case sensitive. Values can be strings, numbers, or booleans. You cannot
10295
nest objects.
10396
104-
mime_type: Required when fileType is 'image' or 'video'. Specifies the exact MIME type to
105-
use (e.g., 'image/png', 'image/jpeg', 'video/mp4', 'video/webm')
106-
10797
extra_headers: Send extra headers
10898
10999
extra_query: Add additional query parameters to the request
@@ -122,9 +112,7 @@ def update(
122112
"container_tags": container_tags,
123113
"content": content,
124114
"custom_id": custom_id,
125-
"file_type": file_type,
126115
"metadata": metadata,
127-
"mime_type": mime_type,
128116
},
129117
memory_update_params.MemoryUpdateParams,
130118
),
@@ -241,9 +229,7 @@ def add(
241229
container_tag: str | Omit = omit,
242230
container_tags: SequenceNotStr[str] | Omit = omit,
243231
custom_id: str | Omit = omit,
244-
file_type: str | Omit = omit,
245232
metadata: Dict[str, Union[str, float, bool, SequenceNotStr[str]]] | Omit = omit,
246-
mime_type: str | Omit = omit,
247233
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
248234
# The extra values given here take precedence over values defined on the client or passed to this method.
249235
extra_headers: Headers | None = None,
@@ -275,20 +261,12 @@ def add(
275261
custom_id: Optional custom ID of the document. This could be an ID from your database that
276262
will uniquely identify this document.
277263
278-
file_type:
279-
Optional file type override to force specific processing behavior. Valid values:
280-
text, pdf, tweet, google_doc, google_slide, google_sheet, image, video,
281-
notion_doc, webpage, onedrive
282-
283264
metadata: Optional metadata for the document. This is used to store additional information
284265
about the document. You can use this to store any additional information you
285266
need about the document. Metadata can be filtered through. Keys must be strings
286267
and are case sensitive. Values can be strings, numbers, or booleans. You cannot
287268
nest objects.
288269
289-
mime_type: Required when fileType is 'image' or 'video'. Specifies the exact MIME type to
290-
use (e.g., 'image/png', 'image/jpeg', 'video/mp4', 'video/webm')
291-
292270
extra_headers: Send extra headers
293271
294272
extra_query: Add additional query parameters to the request
@@ -305,9 +283,7 @@ def add(
305283
"container_tag": container_tag,
306284
"container_tags": container_tags,
307285
"custom_id": custom_id,
308-
"file_type": file_type,
309286
"metadata": metadata,
310-
"mime_type": mime_type,
311287
},
312288
memory_add_params.MemoryAddParams,
313289
),
@@ -448,9 +424,7 @@ async def update(
448424
container_tags: SequenceNotStr[str] | Omit = omit,
449425
content: str | Omit = omit,
450426
custom_id: str | Omit = omit,
451-
file_type: str | Omit = omit,
452427
metadata: Dict[str, Union[str, float, bool, SequenceNotStr[str]]] | Omit = omit,
453-
mime_type: str | Omit = omit,
454428
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
455429
# The extra values given here take precedence over values defined on the client or passed to this method.
456430
extra_headers: Headers | None = None,
@@ -482,20 +456,12 @@ async def update(
482456
custom_id: Optional custom ID of the document. This could be an ID from your database that
483457
will uniquely identify this document.
484458
485-
file_type:
486-
Optional file type override to force specific processing behavior. Valid values:
487-
text, pdf, tweet, google_doc, google_slide, google_sheet, image, video,
488-
notion_doc, webpage, onedrive
489-
490459
metadata: Optional metadata for the document. This is used to store additional information
491460
about the document. You can use this to store any additional information you
492461
need about the document. Metadata can be filtered through. Keys must be strings
493462
and are case sensitive. Values can be strings, numbers, or booleans. You cannot
494463
nest objects.
495464
496-
mime_type: Required when fileType is 'image' or 'video'. Specifies the exact MIME type to
497-
use (e.g., 'image/png', 'image/jpeg', 'video/mp4', 'video/webm')
498-
499465
extra_headers: Send extra headers
500466
501467
extra_query: Add additional query parameters to the request
@@ -514,9 +480,7 @@ async def update(
514480
"container_tags": container_tags,
515481
"content": content,
516482
"custom_id": custom_id,
517-
"file_type": file_type,
518483
"metadata": metadata,
519-
"mime_type": mime_type,
520484
},
521485
memory_update_params.MemoryUpdateParams,
522486
),
@@ -633,9 +597,7 @@ async def add(
633597
container_tag: str | Omit = omit,
634598
container_tags: SequenceNotStr[str] | Omit = omit,
635599
custom_id: str | Omit = omit,
636-
file_type: str | Omit = omit,
637600
metadata: Dict[str, Union[str, float, bool, SequenceNotStr[str]]] | Omit = omit,
638-
mime_type: str | Omit = omit,
639601
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
640602
# The extra values given here take precedence over values defined on the client or passed to this method.
641603
extra_headers: Headers | None = None,
@@ -667,20 +629,12 @@ async def add(
667629
custom_id: Optional custom ID of the document. This could be an ID from your database that
668630
will uniquely identify this document.
669631
670-
file_type:
671-
Optional file type override to force specific processing behavior. Valid values:
672-
text, pdf, tweet, google_doc, google_slide, google_sheet, image, video,
673-
notion_doc, webpage, onedrive
674-
675632
metadata: Optional metadata for the document. This is used to store additional information
676633
about the document. You can use this to store any additional information you
677634
need about the document. Metadata can be filtered through. Keys must be strings
678635
and are case sensitive. Values can be strings, numbers, or booleans. You cannot
679636
nest objects.
680637
681-
mime_type: Required when fileType is 'image' or 'video'. Specifies the exact MIME type to
682-
use (e.g., 'image/png', 'image/jpeg', 'video/mp4', 'video/webm')
683-
684638
extra_headers: Send extra headers
685639
686640
extra_query: Add additional query parameters to the request
@@ -697,9 +651,7 @@ async def add(
697651
"container_tag": container_tag,
698652
"container_tags": container_tags,
699653
"custom_id": custom_id,
700-
"file_type": file_type,
701654
"metadata": metadata,
702-
"mime_type": mime_type,
703655
},
704656
memory_add_params.MemoryAddParams,
705657
),

src/supermemory/types/connection_get_by_id_response.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
from typing import Dict, Optional
4-
from datetime import datetime
54

65
from pydantic import Field as FieldInfo
76

@@ -13,14 +12,14 @@
1312
class ConnectionGetByIDResponse(BaseModel):
1413
id: str
1514

16-
created_at: datetime = FieldInfo(alias="createdAt")
15+
created_at: str = FieldInfo(alias="createdAt")
1716

1817
provider: str
1918

2019
document_limit: Optional[float] = FieldInfo(alias="documentLimit", default=None)
2120

2221
email: Optional[str] = None
2322

24-
expires_at: Optional[datetime] = FieldInfo(alias="expiresAt", default=None)
23+
expires_at: Optional[str] = FieldInfo(alias="expiresAt", default=None)
2524

2625
metadata: Optional[Dict[str, object]] = None

src/supermemory/types/connection_get_by_tags_response.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
from typing import Dict, Optional
4-
from datetime import datetime
54

65
from pydantic import Field as FieldInfo
76

@@ -13,14 +12,14 @@
1312
class ConnectionGetByTagsResponse(BaseModel):
1413
id: str
1514

16-
created_at: datetime = FieldInfo(alias="createdAt")
15+
created_at: str = FieldInfo(alias="createdAt")
1716

1817
provider: str
1918

2019
document_limit: Optional[float] = FieldInfo(alias="documentLimit", default=None)
2120

2221
email: Optional[str] = None
2322

24-
expires_at: Optional[datetime] = FieldInfo(alias="expiresAt", default=None)
23+
expires_at: Optional[str] = FieldInfo(alias="expiresAt", default=None)
2524

2625
metadata: Optional[Dict[str, object]] = None

0 commit comments

Comments
 (0)