Skip to content

Commit 7e652e9

Browse files
author
Shreyans Jain
authored
Merge pull request #7 from supermemoryai/release-please--branches--main--changes--next
2 parents 0a30702 + 23e20a2 commit 7e652e9

File tree

17 files changed

+233
-33
lines changed

17 files changed

+233
-33
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
timeout-minutes: 10
1818
name: lint
1919
runs-on: ${{ github.repository == 'stainless-sdks/supermemory-new-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
20+
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
2021
steps:
2122
- uses: actions/checkout@v4
2223

@@ -34,17 +35,31 @@ jobs:
3435
- name: Run lints
3536
run: ./scripts/lint
3637

37-
upload:
38-
if: github.repository == 'stainless-sdks/supermemory-new-python'
38+
build:
39+
if: github.repository == 'stainless-sdks/supermemory-new-python' && (github.event_name == 'push' || github.event.pull_request.head.repo.fork)
3940
timeout-minutes: 10
40-
name: upload
41+
name: build
4142
permissions:
4243
contents: read
4344
id-token: write
4445
runs-on: depot-ubuntu-24.04
4546
steps:
4647
- uses: actions/checkout@v4
4748

49+
- name: Install Rye
50+
run: |
51+
curl -sSf https://rye.astral.sh/get | bash
52+
echo "$HOME/.rye/shims" >> $GITHUB_PATH
53+
env:
54+
RYE_VERSION: '0.44.0'
55+
RYE_INSTALL_OPTION: '--yes'
56+
57+
- name: Install dependencies
58+
run: rye sync --all-features
59+
60+
- name: Run build
61+
run: rye build
62+
4863
- name: Get GitHub OIDC Token
4964
id: github-oidc
5065
uses: actions/github-script@v6
@@ -62,6 +77,7 @@ jobs:
6277
timeout-minutes: 10
6378
name: test
6479
runs-on: ${{ github.repository == 'stainless-sdks/supermemory-new-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
80+
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
6581
steps:
6682
- uses: actions/checkout@v4
6783

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "3.0.0-alpha.20"
2+
".": "3.0.0-alpha.21"
33
}

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 15
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-new-f259b18e66afb10f009640c303c9a2b829114ac52f968780c24a99655405d5f0.yml
3-
openapi_spec_hash: a65d5f45b4d666a1caf6a22525690c8c
4-
config_hash: 98555becb03f89d0fcf2e35a0fa6a41b
1+
configured_endpoints: 16
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-new-1a2a84a9cc99c25a9d726bc9300a72871f9469e3ceacebd5e71fd37e87891318.yml
3+
openapi_spec_hash: e71e86a645bc47a86664080c8697b8db
4+
config_hash: b560219f71fa815fec30fe25ca5a71f5

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,27 @@
11
# Changelog
22

3+
## 3.0.0-alpha.21 (2025-07-03)
4+
5+
Full Changelog: [v3.0.0-alpha.20...v3.0.0-alpha.21](https://github.com/supermemoryai/python-sdk/compare/v3.0.0-alpha.20...v3.0.0-alpha.21)
6+
7+
### Features
8+
9+
* **api:** api update ([8b94b9e](https://github.com/supermemoryai/python-sdk/commit/8b94b9e043564f8daf605289683270dba97ca323))
10+
* **api:** api update ([7b7eda7](https://github.com/supermemoryai/python-sdk/commit/7b7eda703a9d3dcf9b235a5045829c69147240c6))
11+
* **api:** manual updates ([e7bfa6e](https://github.com/supermemoryai/python-sdk/commit/e7bfa6ef5804b758d3da98206ee643f9ae44ce0a))
12+
13+
14+
### Bug Fixes
15+
16+
* **ci:** correct conditional ([0b20719](https://github.com/supermemoryai/python-sdk/commit/0b20719ce022a872dd7334587317235b7a5562c3))
17+
18+
19+
### Chores
20+
21+
* **ci:** change upload type ([38f5701](https://github.com/supermemoryai/python-sdk/commit/38f5701dff0cc09b4a42d1c86e6250ed4695783d))
22+
* **ci:** only run for pushes and fork pull requests ([901a43c](https://github.com/supermemoryai/python-sdk/commit/901a43c0c06fb8ed2ee2cfc3c56d44002b108a06))
23+
* **internal:** codegen related update ([9c82bc7](https://github.com/supermemoryai/python-sdk/commit/9c82bc7c2fff3e85ec8a8d3278b04741bedaf7d3))
24+
325
## 3.0.0-alpha.20 (2025-06-27)
426

527
Full Changelog: [v3.0.0-alpha.19...v3.0.0-alpha.20](https://github.com/supermemoryai/python-sdk/compare/v3.0.0-alpha.19...v3.0.0-alpha.20)

api.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ Types:
5252
from supermemory_new.types import (
5353
ConnectionCreateResponse,
5454
ConnectionListResponse,
55+
ConnectionDeleteByIDResponse,
5556
ConnectionDeleteByProviderResponse,
5657
ConnectionGetByIDResponse,
5758
ConnectionGetByTagsResponse,
@@ -63,6 +64,7 @@ Methods:
6364

6465
- <code title="post /v3/connections/{provider}">client.connections.<a href="./src/supermemory_new/resources/connections.py">create</a>(provider, \*\*<a href="src/supermemory_new/types/connection_create_params.py">params</a>) -> <a href="./src/supermemory_new/types/connection_create_response.py">ConnectionCreateResponse</a></code>
6566
- <code title="post /v3/connections/list">client.connections.<a href="./src/supermemory_new/resources/connections.py">list</a>(\*\*<a href="src/supermemory_new/types/connection_list_params.py">params</a>) -> <a href="./src/supermemory_new/types/connection_list_response.py">ConnectionListResponse</a></code>
67+
- <code title="delete /v3/connections/{connectionId}">client.connections.<a href="./src/supermemory_new/resources/connections.py">delete_by_id</a>(connection_id) -> <a href="./src/supermemory_new/types/connection_delete_by_id_response.py">ConnectionDeleteByIDResponse</a></code>
6668
- <code title="delete /v3/connections/{provider}">client.connections.<a href="./src/supermemory_new/resources/connections.py">delete_by_provider</a>(provider, \*\*<a href="src/supermemory_new/types/connection_delete_by_provider_params.py">params</a>) -> <a href="./src/supermemory_new/types/connection_delete_by_provider_response.py">ConnectionDeleteByProviderResponse</a></code>
6769
- <code title="get /v3/connections/{connectionId}">client.connections.<a href="./src/supermemory_new/resources/connections.py">get_by_id</a>(connection_id) -> <a href="./src/supermemory_new/types/connection_get_by_id_response.py">ConnectionGetByIDResponse</a></code>
6870
- <code title="post /v3/connections/{provider}/connection">client.connections.<a href="./src/supermemory_new/resources/connections.py">get_by_tags</a>(provider, \*\*<a href="src/supermemory_new/types/connection_get_by_tags_params.py">params</a>) -> <a href="./src/supermemory_new/types/connection_get_by_tags_response.py">ConnectionGetByTagsResponse</a></code>

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "supermemory"
3-
version = "3.0.0-alpha.20"
3+
version = "3.0.0-alpha.21"
44
description = "The official Python library for the supermemory API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

scripts/utils/upload-artifact.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#!/usr/bin/env bash
22
set -exuo pipefail
33

4-
RESPONSE=$(curl -X POST "$URL" \
4+
FILENAME=$(basename dist/*.whl)
5+
6+
RESPONSE=$(curl -X POST "$URL?filename=$FILENAME" \
57
-H "Authorization: Bearer $AUTH" \
68
-H "Content-Type: application/json")
79

@@ -12,13 +14,13 @@ if [[ "$SIGNED_URL" == "null" ]]; then
1214
exit 1
1315
fi
1416

15-
UPLOAD_RESPONSE=$(tar -cz . | curl -v -X PUT \
16-
-H "Content-Type: application/gzip" \
17-
--data-binary @- "$SIGNED_URL" 2>&1)
17+
UPLOAD_RESPONSE=$(curl -v -X PUT \
18+
-H "Content-Type: binary/octet-stream" \
19+
--data-binary "@dist/$FILENAME" "$SIGNED_URL" 2>&1)
1820

1921
if echo "$UPLOAD_RESPONSE" | grep -q "HTTP/[0-9.]* 200"; then
2022
echo -e "\033[32mUploaded build to Stainless storage.\033[0m"
21-
echo -e "\033[32mInstallation: pip install --pre 'https://pkg.stainless.com/s/supermemory-new-python/$SHA'\033[0m"
23+
echo -e "\033[32mInstallation: pip install 'https://pkg.stainless.com/s/supermemory-new-python/$SHA/$FILENAME'\033[0m"
2224
else
2325
echo -e "\033[31mFailed to upload artifact.\033[0m"
2426
exit 1

src/supermemory_new/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
__title__ = "supermemory_new"
4-
__version__ = "3.0.0-alpha.20" # x-release-please-version
4+
__version__ = "3.0.0-alpha.21" # x-release-please-version

src/supermemory_new/resources/connections.py

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
from ..types.connection_create_response import ConnectionCreateResponse
3131
from ..types.connection_get_by_id_response import ConnectionGetByIDResponse
3232
from ..types.connection_get_by_tags_response import ConnectionGetByTagsResponse
33+
from ..types.connection_delete_by_id_response import ConnectionDeleteByIDResponse
3334
from ..types.connection_list_documents_response import ConnectionListDocumentsResponse
3435
from ..types.connection_delete_by_provider_response import ConnectionDeleteByProviderResponse
3536

@@ -136,6 +137,39 @@ def list(
136137
cast_to=ConnectionListResponse,
137138
)
138139

140+
def delete_by_id(
141+
self,
142+
connection_id: str,
143+
*,
144+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
145+
# The extra values given here take precedence over values defined on the client or passed to this method.
146+
extra_headers: Headers | None = None,
147+
extra_query: Query | None = None,
148+
extra_body: Body | None = None,
149+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
150+
) -> ConnectionDeleteByIDResponse:
151+
"""
152+
Delete a specific connection by ID
153+
154+
Args:
155+
extra_headers: Send extra headers
156+
157+
extra_query: Add additional query parameters to the request
158+
159+
extra_body: Add additional JSON properties to the request
160+
161+
timeout: Override the client-level default timeout for this request, in seconds
162+
"""
163+
if not connection_id:
164+
raise ValueError(f"Expected a non-empty value for `connection_id` but received {connection_id!r}")
165+
return self._delete(
166+
f"/v3/connections/{connection_id}",
167+
options=make_request_options(
168+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
169+
),
170+
cast_to=ConnectionDeleteByIDResponse,
171+
)
172+
139173
def delete_by_provider(
140174
self,
141175
provider: Literal["notion", "google-drive", "onedrive"],
@@ -428,6 +462,39 @@ async def list(
428462
cast_to=ConnectionListResponse,
429463
)
430464

465+
async def delete_by_id(
466+
self,
467+
connection_id: str,
468+
*,
469+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
470+
# The extra values given here take precedence over values defined on the client or passed to this method.
471+
extra_headers: Headers | None = None,
472+
extra_query: Query | None = None,
473+
extra_body: Body | None = None,
474+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
475+
) -> ConnectionDeleteByIDResponse:
476+
"""
477+
Delete a specific connection by ID
478+
479+
Args:
480+
extra_headers: Send extra headers
481+
482+
extra_query: Add additional query parameters to the request
483+
484+
extra_body: Add additional JSON properties to the request
485+
486+
timeout: Override the client-level default timeout for this request, in seconds
487+
"""
488+
if not connection_id:
489+
raise ValueError(f"Expected a non-empty value for `connection_id` but received {connection_id!r}")
490+
return await self._delete(
491+
f"/v3/connections/{connection_id}",
492+
options=make_request_options(
493+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
494+
),
495+
cast_to=ConnectionDeleteByIDResponse,
496+
)
497+
431498
async def delete_by_provider(
432499
self,
433500
provider: Literal["notion", "google-drive", "onedrive"],
@@ -630,6 +697,9 @@ def __init__(self, connections: ConnectionsResource) -> None:
630697
self.list = to_raw_response_wrapper(
631698
connections.list,
632699
)
700+
self.delete_by_id = to_raw_response_wrapper(
701+
connections.delete_by_id,
702+
)
633703
self.delete_by_provider = to_raw_response_wrapper(
634704
connections.delete_by_provider,
635705
)
@@ -657,6 +727,9 @@ def __init__(self, connections: AsyncConnectionsResource) -> None:
657727
self.list = async_to_raw_response_wrapper(
658728
connections.list,
659729
)
730+
self.delete_by_id = async_to_raw_response_wrapper(
731+
connections.delete_by_id,
732+
)
660733
self.delete_by_provider = async_to_raw_response_wrapper(
661734
connections.delete_by_provider,
662735
)
@@ -684,6 +757,9 @@ def __init__(self, connections: ConnectionsResource) -> None:
684757
self.list = to_streamed_response_wrapper(
685758
connections.list,
686759
)
760+
self.delete_by_id = to_streamed_response_wrapper(
761+
connections.delete_by_id,
762+
)
687763
self.delete_by_provider = to_streamed_response_wrapper(
688764
connections.delete_by_provider,
689765
)
@@ -711,6 +787,9 @@ def __init__(self, connections: AsyncConnectionsResource) -> None:
711787
self.list = async_to_streamed_response_wrapper(
712788
connections.list,
713789
)
790+
self.delete_by_id = async_to_streamed_response_wrapper(
791+
connections.delete_by_id,
792+
)
714793
self.delete_by_provider = async_to_streamed_response_wrapper(
715794
connections.delete_by_provider,
716795
)

src/supermemory_new/resources/settings.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ def update(
4949
*,
5050
exclude_items: Union[str, float, bool, Dict[str, object], Iterable[object], None] | NotGiven = NOT_GIVEN,
5151
filter_prompt: Optional[str] | NotGiven = NOT_GIVEN,
52-
filter_tags: Union[str, float, bool, Dict[str, object], Iterable[object], None] | NotGiven = NOT_GIVEN,
5352
google_drive_client_id: Optional[str] | NotGiven = NOT_GIVEN,
5453
google_drive_client_secret: Optional[str] | NotGiven = NOT_GIVEN,
5554
google_drive_custom_key_enabled: Optional[bool] | NotGiven = NOT_GIVEN,
@@ -86,7 +85,6 @@ def update(
8685
{
8786
"exclude_items": exclude_items,
8887
"filter_prompt": filter_prompt,
89-
"filter_tags": filter_tags,
9088
"google_drive_client_id": google_drive_client_id,
9189
"google_drive_client_secret": google_drive_client_secret,
9290
"google_drive_custom_key_enabled": google_drive_custom_key_enabled,
@@ -152,7 +150,6 @@ async def update(
152150
*,
153151
exclude_items: Union[str, float, bool, Dict[str, object], Iterable[object], None] | NotGiven = NOT_GIVEN,
154152
filter_prompt: Optional[str] | NotGiven = NOT_GIVEN,
155-
filter_tags: Union[str, float, bool, Dict[str, object], Iterable[object], None] | NotGiven = NOT_GIVEN,
156153
google_drive_client_id: Optional[str] | NotGiven = NOT_GIVEN,
157154
google_drive_client_secret: Optional[str] | NotGiven = NOT_GIVEN,
158155
google_drive_custom_key_enabled: Optional[bool] | NotGiven = NOT_GIVEN,
@@ -189,7 +186,6 @@ async def update(
189186
{
190187
"exclude_items": exclude_items,
191188
"filter_prompt": filter_prompt,
192-
"filter_tags": filter_tags,
193189
"google_drive_client_id": google_drive_client_id,
194190
"google_drive_client_secret": google_drive_client_secret,
195191
"google_drive_custom_key_enabled": google_drive_custom_key_enabled,

0 commit comments

Comments
 (0)