Skip to content

Commit beca1c2

Browse files
stainless-app[bot]Dhravya
authored andcommitted
feat(api): api update
1 parent 025c135 commit beca1c2

File tree

6 files changed

+14
-2
lines changed

6 files changed

+14
-2
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-b7bf8402df5372a3fac3cb55e083d7c09867328639cb7e2ceb7826de125ccff7.yml
3-
openapi_spec_hash: a91c06034ad9e8a7315927d6f2e18521
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-new-f35c8c3182ef17698350347936848877f3ed8a8af8fcfdc3471506309ff0b9ce.yml
3+
openapi_spec_hash: f58c1f9350390517a31e0f241245adc3
44
config_hash: 5deef1e3a49e3a7816348fbf7ba259bf

src/supermemory/resources/settings.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ def with_streaming_response(self) -> SettingsResourceWithStreamingResponse:
4747
def update(
4848
self,
4949
*,
50+
chunk_size: Optional[int] | Omit = omit,
5051
exclude_items: Union[str, float, bool, Dict[str, object], Iterable[object], None] | Omit = omit,
5152
filter_prompt: Optional[str] | Omit = omit,
5253
google_drive_client_id: Optional[str] | Omit = omit,
@@ -83,6 +84,7 @@ def update(
8384
"/v3/settings",
8485
body=maybe_transform(
8586
{
87+
"chunk_size": chunk_size,
8688
"exclude_items": exclude_items,
8789
"filter_prompt": filter_prompt,
8890
"google_drive_client_id": google_drive_client_id,
@@ -148,6 +150,7 @@ def with_streaming_response(self) -> AsyncSettingsResourceWithStreamingResponse:
148150
async def update(
149151
self,
150152
*,
153+
chunk_size: Optional[int] | Omit = omit,
151154
exclude_items: Union[str, float, bool, Dict[str, object], Iterable[object], None] | Omit = omit,
152155
filter_prompt: Optional[str] | Omit = omit,
153156
google_drive_client_id: Optional[str] | Omit = omit,
@@ -184,6 +187,7 @@ async def update(
184187
"/v3/settings",
185188
body=await async_maybe_transform(
186189
{
190+
"chunk_size": chunk_size,
187191
"exclude_items": exclude_items,
188192
"filter_prompt": filter_prompt,
189193
"google_drive_client_id": google_drive_client_id,

src/supermemory/types/setting_get_response.py

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

1111

1212
class SettingGetResponse(BaseModel):
13+
chunk_size: Optional[int] = FieldInfo(alias="chunkSize", default=None)
14+
1315
exclude_items: Union[str, float, bool, Dict[str, object], List[object], None] = FieldInfo(
1416
alias="excludeItems", default=None
1517
)

src/supermemory/types/setting_update_params.py

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

1212

1313
class SettingUpdateParams(TypedDict, total=False):
14+
chunk_size: Annotated[Optional[int], PropertyInfo(alias="chunkSize")]
15+
1416
exclude_items: Annotated[
1517
Union[str, float, bool, Dict[str, object], Iterable[object], None], PropertyInfo(alias="excludeItems")
1618
]

src/supermemory/types/setting_update_response.py

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

1111

1212
class Updated(BaseModel):
13+
chunk_size: Optional[int] = FieldInfo(alias="chunkSize", default=None)
14+
1315
exclude_items: Union[str, float, bool, Dict[str, object], List[object], None] = FieldInfo(
1416
alias="excludeItems", default=None
1517
)

tests/api_resources/test_settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ def test_method_update(self, client: Supermemory) -> None:
2727
@parametrize
2828
def test_method_update_with_all_params(self, client: Supermemory) -> None:
2929
setting = client.settings.update(
30+
chunk_size=-2147483648,
3031
exclude_items="string",
3132
filter_prompt="filterPrompt",
3233
google_drive_client_id="googleDriveClientId",
@@ -109,6 +110,7 @@ async def test_method_update(self, async_client: AsyncSupermemory) -> None:
109110
@parametrize
110111
async def test_method_update_with_all_params(self, async_client: AsyncSupermemory) -> None:
111112
setting = await async_client.settings.update(
113+
chunk_size=-2147483648,
112114
exclude_items="string",
113115
filter_prompt="filterPrompt",
114116
google_drive_client_id="googleDriveClientId",

0 commit comments

Comments
 (0)