From 2bd21b774f7d64839dcc8fb501c8da3afc5ddfbe Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 10 Apr 2026 05:13:30 +0000 Subject: [PATCH 1/9] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index fc1b600..052a642 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 195 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/frostedinc%2Fwhopsdk-58749e1928f402cc3e236d38b53bce3b10530bfaccbe426181bba9b1bfc42498.yml -openapi_spec_hash: ecea6e6c4b93665aee5554839a26ded8 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/frostedinc%2Fwhopsdk-5c13365d98694ad7fab11146759a61eca22d58e1908515a4dcce743a0950d3d8.yml +openapi_spec_hash: 0929df874420e6999a695139cb2e3980 config_hash: 2ceaf6cd488db626c181a1ca9460ace6 From 0607b9ff69422d48d685d2925c34cad5b33e6154 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 10 Apr 2026 07:13:31 +0000 Subject: [PATCH 2/9] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 052a642..f20a10b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 195 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/frostedinc%2Fwhopsdk-5c13365d98694ad7fab11146759a61eca22d58e1908515a4dcce743a0950d3d8.yml -openapi_spec_hash: 0929df874420e6999a695139cb2e3980 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/frostedinc%2Fwhopsdk-b952a459d81b683c673f78f7fd4acadb79d5b1e7ff7ba786514bbf6d24c779c9.yml +openapi_spec_hash: ea47f08def2c672820f2df926ea4ea43 config_hash: 2ceaf6cd488db626c181a1ca9460ace6 From ebacae51b960741d8ec8ff2cd5a3a1c0654c36ee Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 10 Apr 2026 11:13:35 +0000 Subject: [PATCH 3/9] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index f20a10b..e1e9ea1 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 195 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/frostedinc%2Fwhopsdk-b952a459d81b683c673f78f7fd4acadb79d5b1e7ff7ba786514bbf6d24c779c9.yml -openapi_spec_hash: ea47f08def2c672820f2df926ea4ea43 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/frostedinc%2Fwhopsdk-38ac86c09fd9bf9e1ccb384814b9a6d360a2f170c00306a98913ea240d311bc2.yml +openapi_spec_hash: 761b4da1566ee358b8673df56bc73e59 config_hash: 2ceaf6cd488db626c181a1ca9460ace6 From f5b8ce0377dead3ac8ddbb2dbf0861d9e29b3cff Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 10 Apr 2026 12:13:40 +0000 Subject: [PATCH 4/9] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index e1e9ea1..6303306 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 195 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/frostedinc%2Fwhopsdk-38ac86c09fd9bf9e1ccb384814b9a6d360a2f170c00306a98913ea240d311bc2.yml -openapi_spec_hash: 761b4da1566ee358b8673df56bc73e59 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/frostedinc%2Fwhopsdk-51baf9cdc97d7c68033e43371578d89b27e92fc88a501c741475e3f60201d44d.yml +openapi_spec_hash: 2dd2771764adb04a88471606a18f3dac config_hash: 2ceaf6cd488db626c181a1ca9460ace6 From 0621a7d6524577f1fd7d17a63ea5f1cc2d34bb3a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 10 Apr 2026 14:54:49 +0000 Subject: [PATCH 5/9] fix: ensure file data are only sent as 1 parameter --- src/whop_sdk/_utils/_utils.py | 5 +++-- tests/test_extract_files.py | 9 +++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/whop_sdk/_utils/_utils.py b/src/whop_sdk/_utils/_utils.py index eec7f4a..63b8cd6 100644 --- a/src/whop_sdk/_utils/_utils.py +++ b/src/whop_sdk/_utils/_utils.py @@ -86,8 +86,9 @@ def _extract_items( index += 1 if is_dict(obj): try: - # We are at the last entry in the path so we must remove the field - if (len(path)) == index: + # Remove the field if there are no more dict keys in the path, + # only "" traversal markers or end. + if all(p == "" for p in path[index:]): item = obj.pop(key) else: item = obj[key] diff --git a/tests/test_extract_files.py b/tests/test_extract_files.py index a737e4c..f8ca177 100644 --- a/tests/test_extract_files.py +++ b/tests/test_extract_files.py @@ -35,6 +35,15 @@ def test_multiple_files() -> None: assert query == {"documents": [{}, {}]} +def test_top_level_file_array() -> None: + query = {"files": [b"file one", b"file two"], "title": "hello"} + assert extract_files(query, paths=[["files", ""]]) == [ + ("files[]", b"file one"), + ("files[]", b"file two"), + ] + assert query == {"title": "hello"} + + @pytest.mark.parametrize( "query,paths,expected", [ From aa852e435af07f60de614dae4143d28256244ed3 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 11 Apr 2026 07:13:35 +0000 Subject: [PATCH 6/9] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 6303306..84d9368 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 195 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/frostedinc%2Fwhopsdk-51baf9cdc97d7c68033e43371578d89b27e92fc88a501c741475e3f60201d44d.yml -openapi_spec_hash: 2dd2771764adb04a88471606a18f3dac +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/frostedinc%2Fwhopsdk-07f7a9745715a68052c3c0b642909ca12ff7f573d616a3ab78968a595874afc4.yml +openapi_spec_hash: 935ed766ba873d06b5ca2d4e0263b00a config_hash: 2ceaf6cd488db626c181a1ca9460ace6 From 87a29acafa4d6ba6eb63ab20eb5850e5430d862f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 13 Apr 2026 03:13:32 +0000 Subject: [PATCH 7/9] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 84d9368..c92ab92 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 195 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/frostedinc%2Fwhopsdk-07f7a9745715a68052c3c0b642909ca12ff7f573d616a3ab78968a595874afc4.yml -openapi_spec_hash: 935ed766ba873d06b5ca2d4e0263b00a +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/frostedinc%2Fwhopsdk-a035eeb48d376eeaee1f41334fdcdb7ede835f11f015944a5d75a321fffb56c4.yml +openapi_spec_hash: 07bb121ded7424f5b3af1ef321d2bced config_hash: 2ceaf6cd488db626c181a1ca9460ace6 From 393844bd0432fc58193b61f7247130f04064be24 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 13 Apr 2026 08:13:43 +0000 Subject: [PATCH 8/9] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index c92ab92..dab8a93 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 195 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/frostedinc%2Fwhopsdk-a035eeb48d376eeaee1f41334fdcdb7ede835f11f015944a5d75a321fffb56c4.yml -openapi_spec_hash: 07bb121ded7424f5b3af1ef321d2bced +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/frostedinc%2Fwhopsdk-e9540a2c6a24de8d53e634aa3ddfabb553b04c28fa8b592d864eadfa7180f187.yml +openapi_spec_hash: fde548cb3ce3fcd9dd77397d3b8627a3 config_hash: 2ceaf6cd488db626c181a1ca9460ace6 From e89992d206570be4141477245dd6366d20f5f7a8 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 13 Apr 2026 08:14:02 +0000 Subject: [PATCH 9/9] release: 0.0.38 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ pyproject.toml | 2 +- src/whop_sdk/_version.py | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 423c69f..e3fea21 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.0.37" + ".": "0.0.38" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 37f7a9f..af868c8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.0.38 (2026-04-13) + +Full Changelog: [v0.0.37...v0.0.38](https://github.com/whopio/whopsdk-python/compare/v0.0.37...v0.0.38) + +### Bug Fixes + +* ensure file data are only sent as 1 parameter ([0621a7d](https://github.com/whopio/whopsdk-python/commit/0621a7d6524577f1fd7d17a63ea5f1cc2d34bb3a)) + ## 0.0.37 (2026-04-10) Full Changelog: [v0.0.36...v0.0.37](https://github.com/whopio/whopsdk-python/compare/v0.0.36...v0.0.37) diff --git a/pyproject.toml b/pyproject.toml index 4719b5b..69df10c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "whop-sdk" -version = "0.0.37" +version = "0.0.38" description = "The official Python library for the Whop API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/whop_sdk/_version.py b/src/whop_sdk/_version.py index a1018dc..dececef 100644 --- a/src/whop_sdk/_version.py +++ b/src/whop_sdk/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "whop_sdk" -__version__ = "0.0.37" # x-release-please-version +__version__ = "0.0.38" # x-release-please-version