Skip to content

Commit 3042cbf

Browse files
feat(api): api update
1 parent 442b9fd commit 3042cbf

File tree

11 files changed

+52
-12
lines changed

11 files changed

+52
-12
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: 19
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-new-8f3109ed6b4537d66c1d430e552cb6d90323c2b495487132f5c5fc7fb0f91478.yml
3-
openapi_spec_hash: e2f06a2c0e73fb52262924ecd4027a6c
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-new-16b01076f65e994ba603cd91ce14ba5a2920d0d5b27b8c84d60b8a7fcf57900b.yml
3+
openapi_spec_hash: bfaa2815be92e4baad6118efc09b606d
44
config_hash: ec08a36e60458b4d83e71798a8043484

src/supermemory/resources/connections.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def with_streaming_response(self) -> ConnectionsResourceWithStreamingResponse:
5959

6060
def create(
6161
self,
62-
provider: Literal["notion", "google-drive", "onedrive", "web-crawler"],
62+
provider: Literal["notion", "google-drive", "onedrive", "github", "web-crawler"],
6363
*,
6464
container_tags: SequenceNotStr[str] | Omit = omit,
6565
document_limit: int | Omit = omit,
@@ -172,7 +172,7 @@ def delete_by_id(
172172

173173
def delete_by_provider(
174174
self,
175-
provider: Literal["notion", "google-drive", "onedrive", "web-crawler"],
175+
provider: Literal["notion", "google-drive", "onedrive", "github", "web-crawler"],
176176
*,
177177
container_tags: SequenceNotStr[str],
178178
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -245,7 +245,7 @@ def get_by_id(
245245

246246
def get_by_tags(
247247
self,
248-
provider: Literal["notion", "google-drive", "onedrive", "web-crawler"],
248+
provider: Literal["notion", "google-drive", "onedrive", "github", "web-crawler"],
249249
*,
250250
container_tags: SequenceNotStr[str],
251251
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -284,7 +284,7 @@ def get_by_tags(
284284

285285
def import_(
286286
self,
287-
provider: Literal["notion", "google-drive", "onedrive", "web-crawler"],
287+
provider: Literal["notion", "google-drive", "onedrive", "github", "web-crawler"],
288288
*,
289289
container_tags: SequenceNotStr[str] | Omit = omit,
290290
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -322,7 +322,7 @@ def import_(
322322

323323
def list_documents(
324324
self,
325-
provider: Literal["notion", "google-drive", "onedrive", "web-crawler"],
325+
provider: Literal["notion", "google-drive", "onedrive", "github", "web-crawler"],
326326
*,
327327
container_tags: SequenceNotStr[str] | Omit = omit,
328328
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -382,7 +382,7 @@ def with_streaming_response(self) -> AsyncConnectionsResourceWithStreamingRespon
382382

383383
async def create(
384384
self,
385-
provider: Literal["notion", "google-drive", "onedrive", "web-crawler"],
385+
provider: Literal["notion", "google-drive", "onedrive", "github", "web-crawler"],
386386
*,
387387
container_tags: SequenceNotStr[str] | Omit = omit,
388388
document_limit: int | Omit = omit,
@@ -497,7 +497,7 @@ async def delete_by_id(
497497

498498
async def delete_by_provider(
499499
self,
500-
provider: Literal["notion", "google-drive", "onedrive", "web-crawler"],
500+
provider: Literal["notion", "google-drive", "onedrive", "github", "web-crawler"],
501501
*,
502502
container_tags: SequenceNotStr[str],
503503
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -570,7 +570,7 @@ async def get_by_id(
570570

571571
async def get_by_tags(
572572
self,
573-
provider: Literal["notion", "google-drive", "onedrive", "web-crawler"],
573+
provider: Literal["notion", "google-drive", "onedrive", "github", "web-crawler"],
574574
*,
575575
container_tags: SequenceNotStr[str],
576576
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -609,7 +609,7 @@ async def get_by_tags(
609609

610610
async def import_(
611611
self,
612-
provider: Literal["notion", "google-drive", "onedrive", "web-crawler"],
612+
provider: Literal["notion", "google-drive", "onedrive", "github", "web-crawler"],
613613
*,
614614
container_tags: SequenceNotStr[str] | Omit = omit,
615615
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -649,7 +649,7 @@ async def import_(
649649

650650
async def list_documents(
651651
self,
652-
provider: Literal["notion", "google-drive", "onedrive", "web-crawler"],
652+
provider: Literal["notion", "google-drive", "onedrive", "github", "web-crawler"],
653653
*,
654654
container_tags: SequenceNotStr[str] | Omit = omit,
655655
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.

src/supermemory/resources/settings.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ def update(
5050
chunk_size: Optional[int] | Omit = omit,
5151
exclude_items: Union[str, float, bool, Dict[str, object], Iterable[object], None] | Omit = omit,
5252
filter_prompt: Optional[str] | Omit = omit,
53+
github_client_id: Optional[str] | Omit = omit,
54+
github_client_secret: Optional[str] | Omit = omit,
55+
github_custom_key_enabled: Optional[bool] | Omit = omit,
5356
google_drive_client_id: Optional[str] | Omit = omit,
5457
google_drive_client_secret: Optional[str] | Omit = omit,
5558
google_drive_custom_key_enabled: Optional[bool] | Omit = omit,
@@ -87,6 +90,9 @@ def update(
8790
"chunk_size": chunk_size,
8891
"exclude_items": exclude_items,
8992
"filter_prompt": filter_prompt,
93+
"github_client_id": github_client_id,
94+
"github_client_secret": github_client_secret,
95+
"github_custom_key_enabled": github_custom_key_enabled,
9096
"google_drive_client_id": google_drive_client_id,
9197
"google_drive_client_secret": google_drive_client_secret,
9298
"google_drive_custom_key_enabled": google_drive_custom_key_enabled,
@@ -153,6 +159,9 @@ async def update(
153159
chunk_size: Optional[int] | Omit = omit,
154160
exclude_items: Union[str, float, bool, Dict[str, object], Iterable[object], None] | Omit = omit,
155161
filter_prompt: Optional[str] | Omit = omit,
162+
github_client_id: Optional[str] | Omit = omit,
163+
github_client_secret: Optional[str] | Omit = omit,
164+
github_custom_key_enabled: Optional[bool] | Omit = omit,
156165
google_drive_client_id: Optional[str] | Omit = omit,
157166
google_drive_client_secret: Optional[str] | Omit = omit,
158167
google_drive_custom_key_enabled: Optional[bool] | Omit = omit,
@@ -190,6 +199,9 @@ async def update(
190199
"chunk_size": chunk_size,
191200
"exclude_items": exclude_items,
192201
"filter_prompt": filter_prompt,
202+
"github_client_id": github_client_id,
203+
"github_client_secret": github_client_secret,
204+
"github_custom_key_enabled": github_custom_key_enabled,
193205
"google_drive_client_id": google_drive_client_id,
194206
"google_drive_client_secret": google_drive_client_secret,
195207
"google_drive_custom_key_enabled": google_drive_custom_key_enabled,

src/supermemory/types/document_get_response.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ class DocumentGetResponse(BaseModel):
8686
"notion_doc",
8787
"webpage",
8888
"onedrive",
89+
"github_markdown",
8990
]
9091
"""Type of the document"""
9192

src/supermemory/types/document_list_response.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ class Memory(BaseModel):
6060
"notion_doc",
6161
"webpage",
6262
"onedrive",
63+
"github_markdown",
6364
]
6465
"""Type of the document"""
6566

src/supermemory/types/memory_get_response.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ class MemoryGetResponse(BaseModel):
8686
"notion_doc",
8787
"webpage",
8888
"onedrive",
89+
"github_markdown",
8990
]
9091
"""Type of the document"""
9192

src/supermemory/types/memory_list_response.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ class Memory(BaseModel):
6060
"notion_doc",
6161
"webpage",
6262
"onedrive",
63+
"github_markdown",
6364
]
6465
"""Type of the document"""
6566

src/supermemory/types/setting_get_response.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ class SettingGetResponse(BaseModel):
1818

1919
filter_prompt: Optional[str] = FieldInfo(alias="filterPrompt", default=None)
2020

21+
github_client_id: Optional[str] = FieldInfo(alias="githubClientId", default=None)
22+
23+
github_client_secret: Optional[str] = FieldInfo(alias="githubClientSecret", default=None)
24+
25+
github_custom_key_enabled: Optional[bool] = FieldInfo(alias="githubCustomKeyEnabled", default=None)
26+
2127
google_drive_client_id: Optional[str] = FieldInfo(alias="googleDriveClientId", default=None)
2228

2329
google_drive_client_secret: Optional[str] = FieldInfo(alias="googleDriveClientSecret", default=None)

src/supermemory/types/setting_update_params.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ class SettingUpdateParams(TypedDict, total=False):
1919

2020
filter_prompt: Annotated[Optional[str], PropertyInfo(alias="filterPrompt")]
2121

22+
github_client_id: Annotated[Optional[str], PropertyInfo(alias="githubClientId")]
23+
24+
github_client_secret: Annotated[Optional[str], PropertyInfo(alias="githubClientSecret")]
25+
26+
github_custom_key_enabled: Annotated[Optional[bool], PropertyInfo(alias="githubCustomKeyEnabled")]
27+
2228
google_drive_client_id: Annotated[Optional[str], PropertyInfo(alias="googleDriveClientId")]
2329

2430
google_drive_client_secret: Annotated[Optional[str], PropertyInfo(alias="googleDriveClientSecret")]

src/supermemory/types/setting_update_response.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ class Updated(BaseModel):
1818

1919
filter_prompt: Optional[str] = FieldInfo(alias="filterPrompt", default=None)
2020

21+
github_client_id: Optional[str] = FieldInfo(alias="githubClientId", default=None)
22+
23+
github_client_secret: Optional[str] = FieldInfo(alias="githubClientSecret", default=None)
24+
25+
github_custom_key_enabled: Optional[bool] = FieldInfo(alias="githubCustomKeyEnabled", default=None)
26+
2127
google_drive_client_id: Optional[str] = FieldInfo(alias="googleDriveClientId", default=None)
2228

2329
google_drive_client_secret: Optional[str] = FieldInfo(alias="googleDriveClientSecret", default=None)

0 commit comments

Comments
 (0)