Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.0.30"
".": "0.0.32"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 173
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/frostedinc%2Fwhopsdk-cc6caefebc5d0c5b09a38a2ca3de9b07a8af8017a45a3a8ae4687eea30e5df93.yml
openapi_spec_hash: 384c511adb0c53319ac3ece08843f485
config_hash: 8ac153ea57fa6460b13cded3f7c9c7a6
configured_endpoints: 178
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/frostedinc%2Fwhopsdk-187882c4d823394e3577f9843c288f4187e4f9b38646105c40b88e4e83b27979.yml
openapi_spec_hash: 16eb1c84681dc3ad39c987b7abf1e191
config_hash: e9bda7cddca13f2b41d8f7521ad36cf5
31 changes: 31 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,36 @@
# Changelog

## 0.0.32 (2026-03-11)

Full Changelog: [v0.0.30...v0.0.32](https://github.com/whopio/whopsdk-python/compare/v0.0.30...v0.0.32)

### Features

* **api:** api update ([99175a1](https://github.com/whopio/whopsdk-python/commit/99175a149a05f6c54b225447a163b958af8ae61c))
* **api:** api update ([fe17d66](https://github.com/whopio/whopsdk-python/commit/fe17d66f82035b4e58f474bfd136bf78114aaeab))
* **api:** api update ([2ee7fe7](https://github.com/whopio/whopsdk-python/commit/2ee7fe71e837e7f91ed021b58217abaf89782879))
* **api:** api update ([260853e](https://github.com/whopio/whopsdk-python/commit/260853e5ec3e85481b25da49ec4252b8b773e81a))
* **api:** api update ([dcef405](https://github.com/whopio/whopsdk-python/commit/dcef4059c4ce8e9fdffa7d2aba850f325c53fb57))
* **api:** api update ([abc268f](https://github.com/whopio/whopsdk-python/commit/abc268f2c7a2d59ed01e6fd595aaf3559b831302))
* **api:** api update ([2f4cd94](https://github.com/whopio/whopsdk-python/commit/2f4cd94cdca591d743dd905f9b325d25fe45acb8))
* **api:** api update ([ad1d5b7](https://github.com/whopio/whopsdk-python/commit/ad1d5b78546c5efd4214e22c42aa7a64227bc34c))
* **api:** api update ([c2f142d](https://github.com/whopio/whopsdk-python/commit/c2f142d7aebad6ec2b140d70a8b93aa3205290ec))
* **api:** api update ([d62a4b7](https://github.com/whopio/whopsdk-python/commit/d62a4b7961c1264d9c4055a026238a72822b8b19))
* **api:** api update ([c60ab1e](https://github.com/whopio/whopsdk-python/commit/c60ab1e6568cef6910ec61773887c8b9546c52d4))
* **api:** api update ([020c181](https://github.com/whopio/whopsdk-python/commit/020c181cf53f7811401fe01d4382fe490e6e5398))
* **api:** api update ([db6d90c](https://github.com/whopio/whopsdk-python/commit/db6d90cb90d173817cb3c8829dcd7d4ac091e53e))
* **api:** api update ([74d75c5](https://github.com/whopio/whopsdk-python/commit/74d75c50c470970c3b7fdc0611dd58c518fcdb18))
* **api:** api update ([2edf4bc](https://github.com/whopio/whopsdk-python/commit/2edf4bca49f261116a77e04d77da9157904367a5))
* **api:** manual updates ([b162886](https://github.com/whopio/whopsdk-python/commit/b1628865df13ae4d703571e46e738405652ad150))
* **api:** manual updates ([5488b95](https://github.com/whopio/whopsdk-python/commit/5488b953d0a7e6c4c6d08d9a6f0b88a8852a76d2))


### Chores

* **ci:** skip uploading artifacts on stainless-internal branches ([04a3a6d](https://github.com/whopio/whopsdk-python/commit/04a3a6d8263e34b42b476380846af4d4f31deedd))
* **docs:** add missing descriptions ([beeb9ef](https://github.com/whopio/whopsdk-python/commit/beeb9efca946b1bc2e565239ac96d3d2d8642b6f))
* **tests:** update webhook tests ([f740d3c](https://github.com/whopio/whopsdk-python/commit/f740d3c6d32e332ecea2ec902e9903c36055443e))

## 0.0.30 (2026-02-26)

Full Changelog: [v0.0.29...v0.0.30](https://github.com/whopio/whopsdk-python/compare/v0.0.29...v0.0.30)
Expand Down
31 changes: 28 additions & 3 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ Methods:
Types:

```python
from whop_sdk.types import CompanyListResponse
from whop_sdk.types import SocialLinkWebsites, CompanyListResponse
```

Methods:
Expand Down Expand Up @@ -268,6 +268,7 @@ Methods:
- <code title="get /memberships/{id}">client.memberships.<a href="./src/whop_sdk/resources/memberships.py">retrieve</a>(id) -> <a href="./src/whop_sdk/types/shared/membership.py">Membership</a></code>
- <code title="patch /memberships/{id}">client.memberships.<a href="./src/whop_sdk/resources/memberships.py">update</a>(id, \*\*<a href="src/whop_sdk/types/membership_update_params.py">params</a>) -> <a href="./src/whop_sdk/types/shared/membership.py">Membership</a></code>
- <code title="get /memberships">client.memberships.<a href="./src/whop_sdk/resources/memberships.py">list</a>(\*\*<a href="src/whop_sdk/types/membership_list_params.py">params</a>) -> <a href="./src/whop_sdk/types/membership_list_response.py">SyncCursorPage[MembershipListResponse]</a></code>
- <code title="post /memberships/{id}/add_free_days">client.memberships.<a href="./src/whop_sdk/resources/memberships.py">add_free_days</a>(id, \*\*<a href="src/whop_sdk/types/membership_add_free_days_params.py">params</a>) -> <a href="./src/whop_sdk/types/shared/membership.py">Membership</a></code>
- <code title="post /memberships/{id}/cancel">client.memberships.<a href="./src/whop_sdk/resources/memberships.py">cancel</a>(id, \*\*<a href="src/whop_sdk/types/membership_cancel_params.py">params</a>) -> <a href="./src/whop_sdk/types/shared/membership.py">Membership</a></code>
- <code title="post /memberships/{id}/pause">client.memberships.<a href="./src/whop_sdk/resources/memberships.py">pause</a>(id, \*\*<a href="src/whop_sdk/types/membership_pause_params.py">params</a>) -> <a href="./src/whop_sdk/types/shared/membership.py">Membership</a></code>
- <code title="post /memberships/{id}/resume">client.memberships.<a href="./src/whop_sdk/resources/memberships.py">resume</a>(id) -> <a href="./src/whop_sdk/types/shared/membership.py">Membership</a></code>
Expand All @@ -278,13 +279,15 @@ Methods:
Types:

```python
from whop_sdk.types import AuthorizedUserRetrieveResponse, AuthorizedUserListResponse
from whop_sdk.types import AuthorizedUser, AuthorizedUserListResponse, AuthorizedUserDeleteResponse
```

Methods:

- <code title="get /authorized_users/{id}">client.authorized_users.<a href="./src/whop_sdk/resources/authorized_users.py">retrieve</a>(id) -> <a href="./src/whop_sdk/types/authorized_user_retrieve_response.py">AuthorizedUserRetrieveResponse</a></code>
- <code title="post /authorized_users">client.authorized_users.<a href="./src/whop_sdk/resources/authorized_users.py">create</a>(\*\*<a href="src/whop_sdk/types/authorized_user_create_params.py">params</a>) -> <a href="./src/whop_sdk/types/authorized_user.py">AuthorizedUser</a></code>
- <code title="get /authorized_users/{id}">client.authorized_users.<a href="./src/whop_sdk/resources/authorized_users.py">retrieve</a>(id) -> <a href="./src/whop_sdk/types/authorized_user.py">AuthorizedUser</a></code>
- <code title="get /authorized_users">client.authorized_users.<a href="./src/whop_sdk/resources/authorized_users.py">list</a>(\*\*<a href="src/whop_sdk/types/authorized_user_list_params.py">params</a>) -> <a href="./src/whop_sdk/types/authorized_user_list_response.py">SyncCursorPage[AuthorizedUserListResponse]</a></code>
- <code title="delete /authorized_users/{id}">client.authorized_users.<a href="./src/whop_sdk/resources/authorized_users.py">delete</a>(id, \*\*<a href="src/whop_sdk/types/authorized_user_delete_params.py">params</a>) -> <a href="./src/whop_sdk/types/authorized_user_delete_response.py">AuthorizedUserDeleteResponse</a></code>

# AppBuilds

Expand Down Expand Up @@ -382,6 +385,7 @@ from whop_sdk.types import (
BillingReasons,
CardBrands,
PaymentMethodTypes,
ReceiptTaxBehavior,
PaymentListResponse,
PaymentListFeesResponse,
)
Expand Down Expand Up @@ -876,3 +880,24 @@ Methods:

- <code title="get /dispute_alerts/{id}">client.dispute_alerts.<a href="./src/whop_sdk/resources/dispute_alerts.py">retrieve</a>(id) -> <a href="./src/whop_sdk/types/dispute_alert_retrieve_response.py">DisputeAlertRetrieveResponse</a></code>
- <code title="get /dispute_alerts">client.dispute_alerts.<a href="./src/whop_sdk/resources/dispute_alerts.py">list</a>(\*\*<a href="src/whop_sdk/types/dispute_alert_list_params.py">params</a>) -> <a href="./src/whop_sdk/types/dispute_alert_list_response.py">SyncCursorPage[DisputeAlertListResponse]</a></code>

# ResolutionCenterCases

Types:

```python
from whop_sdk.types import (
ResolutionCenterCaseCustomerResponse,
ResolutionCenterCaseIssueType,
ResolutionCenterCaseMerchantResponse,
ResolutionCenterCasePlatformResponse,
ResolutionCenterCaseStatus,
ResolutionCenterCaseRetrieveResponse,
ResolutionCenterCaseListResponse,
)
```

Methods:

- <code title="get /resolution_center_cases/{id}">client.resolution_center_cases.<a href="./src/whop_sdk/resources/resolution_center_cases.py">retrieve</a>(id) -> <a href="./src/whop_sdk/types/resolution_center_case_retrieve_response.py">ResolutionCenterCaseRetrieveResponse</a></code>
- <code title="get /resolution_center_cases">client.resolution_center_cases.<a href="./src/whop_sdk/resources/resolution_center_cases.py">list</a>(\*\*<a href="src/whop_sdk/types/resolution_center_case_list_params.py">params</a>) -> <a href="./src/whop_sdk/types/resolution_center_case_list_response.py">SyncCursorPage[ResolutionCenterCaseListResponse]</a></code>
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "whop-sdk"
version = "0.0.30"
version = "0.0.32"
description = "The official Python library for the Whop API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
46 changes: 46 additions & 0 deletions src/whop_sdk/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
authorized_users,
support_channels,
checkout_configurations,
resolution_center_cases,
company_token_transactions,
course_lesson_interactions,
)
Expand Down Expand Up @@ -131,6 +132,7 @@
from .resources.authorized_users import AuthorizedUsersResource, AsyncAuthorizedUsersResource
from .resources.support_channels import SupportChannelsResource, AsyncSupportChannelsResource
from .resources.checkout_configurations import CheckoutConfigurationsResource, AsyncCheckoutConfigurationsResource
from .resources.resolution_center_cases import ResolutionCenterCasesResource, AsyncResolutionCenterCasesResource
from .resources.company_token_transactions import (
CompanyTokenTransactionsResource,
AsyncCompanyTokenTransactionsResource,
Expand Down Expand Up @@ -513,6 +515,13 @@ def dispute_alerts(self) -> DisputeAlertsResource:

return DisputeAlertsResource(self)

@cached_property
def resolution_center_cases(self) -> ResolutionCenterCasesResource:
"""Resolution center cases"""
from .resources.resolution_center_cases import ResolutionCenterCasesResource

return ResolutionCenterCasesResource(self)

@cached_property
def with_raw_response(self) -> WhopWithRawResponse:
return WhopWithRawResponse(self)
Expand Down Expand Up @@ -1001,6 +1010,13 @@ def dispute_alerts(self) -> AsyncDisputeAlertsResource:

return AsyncDisputeAlertsResource(self)

@cached_property
def resolution_center_cases(self) -> AsyncResolutionCenterCasesResource:
"""Resolution center cases"""
from .resources.resolution_center_cases import AsyncResolutionCenterCasesResource

return AsyncResolutionCenterCasesResource(self)

@cached_property
def with_raw_response(self) -> AsyncWhopWithRawResponse:
return AsyncWhopWithRawResponse(self)
Expand Down Expand Up @@ -1425,6 +1441,13 @@ def dispute_alerts(self) -> dispute_alerts.DisputeAlertsResourceWithRawResponse:

return DisputeAlertsResourceWithRawResponse(self._client.dispute_alerts)

@cached_property
def resolution_center_cases(self) -> resolution_center_cases.ResolutionCenterCasesResourceWithRawResponse:
"""Resolution center cases"""
from .resources.resolution_center_cases import ResolutionCenterCasesResourceWithRawResponse

return ResolutionCenterCasesResourceWithRawResponse(self._client.resolution_center_cases)


class AsyncWhopWithRawResponse:
_client: AsyncWhop
Expand Down Expand Up @@ -1736,6 +1759,13 @@ def dispute_alerts(self) -> dispute_alerts.AsyncDisputeAlertsResourceWithRawResp

return AsyncDisputeAlertsResourceWithRawResponse(self._client.dispute_alerts)

@cached_property
def resolution_center_cases(self) -> resolution_center_cases.AsyncResolutionCenterCasesResourceWithRawResponse:
"""Resolution center cases"""
from .resources.resolution_center_cases import AsyncResolutionCenterCasesResourceWithRawResponse

return AsyncResolutionCenterCasesResourceWithRawResponse(self._client.resolution_center_cases)


class WhopWithStreamedResponse:
_client: Whop
Expand Down Expand Up @@ -2047,6 +2077,13 @@ def dispute_alerts(self) -> dispute_alerts.DisputeAlertsResourceWithStreamingRes

return DisputeAlertsResourceWithStreamingResponse(self._client.dispute_alerts)

@cached_property
def resolution_center_cases(self) -> resolution_center_cases.ResolutionCenterCasesResourceWithStreamingResponse:
"""Resolution center cases"""
from .resources.resolution_center_cases import ResolutionCenterCasesResourceWithStreamingResponse

return ResolutionCenterCasesResourceWithStreamingResponse(self._client.resolution_center_cases)


class AsyncWhopWithStreamedResponse:
_client: AsyncWhop
Expand Down Expand Up @@ -2360,6 +2397,15 @@ def dispute_alerts(self) -> dispute_alerts.AsyncDisputeAlertsResourceWithStreami

return AsyncDisputeAlertsResourceWithStreamingResponse(self._client.dispute_alerts)

@cached_property
def resolution_center_cases(
self,
) -> resolution_center_cases.AsyncResolutionCenterCasesResourceWithStreamingResponse:
"""Resolution center cases"""
from .resources.resolution_center_cases import AsyncResolutionCenterCasesResourceWithStreamingResponse

return AsyncResolutionCenterCasesResourceWithStreamingResponse(self._client.resolution_center_cases)


Client = Whop

Expand Down
2 changes: 1 addition & 1 deletion src/whop_sdk/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "whop_sdk"
__version__ = "0.0.30" # x-release-please-version
__version__ = "0.0.32" # x-release-please-version
14 changes: 14 additions & 0 deletions src/whop_sdk/resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,14 @@
CheckoutConfigurationsResourceWithStreamingResponse,
AsyncCheckoutConfigurationsResourceWithStreamingResponse,
)
from .resolution_center_cases import (
ResolutionCenterCasesResource,
AsyncResolutionCenterCasesResource,
ResolutionCenterCasesResourceWithRawResponse,
AsyncResolutionCenterCasesResourceWithRawResponse,
ResolutionCenterCasesResourceWithStreamingResponse,
AsyncResolutionCenterCasesResourceWithStreamingResponse,
)
from .company_token_transactions import (
CompanyTokenTransactionsResource,
AsyncCompanyTokenTransactionsResource,
Expand Down Expand Up @@ -702,4 +710,10 @@
"AsyncDisputeAlertsResourceWithRawResponse",
"DisputeAlertsResourceWithStreamingResponse",
"AsyncDisputeAlertsResourceWithStreamingResponse",
"ResolutionCenterCasesResource",
"AsyncResolutionCenterCasesResource",
"ResolutionCenterCasesResourceWithRawResponse",
"AsyncResolutionCenterCasesResourceWithRawResponse",
"ResolutionCenterCasesResourceWithStreamingResponse",
"AsyncResolutionCenterCasesResourceWithStreamingResponse",
]
8 changes: 8 additions & 0 deletions src/whop_sdk/resources/ai_chats.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ def list(
before: Optional[str] | Omit = omit,
first: Optional[int] | Omit = omit,
last: Optional[int] | Omit = omit,
only_active_crons: Optional[bool] | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand All @@ -218,6 +219,8 @@ def list(

last: Returns the last _n_ elements from the list.

only_active_crons: When true, returns only chats with an active cron schedule

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand All @@ -240,6 +243,7 @@ def list(
"before": before,
"first": first,
"last": last,
"only_active_crons": only_active_crons,
},
ai_chat_list_params.AIChatListParams,
),
Expand Down Expand Up @@ -457,6 +461,7 @@ def list(
before: Optional[str] | Omit = omit,
first: Optional[int] | Omit = omit,
last: Optional[int] | Omit = omit,
only_active_crons: Optional[bool] | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand All @@ -476,6 +481,8 @@ def list(

last: Returns the last _n_ elements from the list.

only_active_crons: When true, returns only chats with an active cron schedule

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand All @@ -498,6 +505,7 @@ def list(
"before": before,
"first": first,
"last": last,
"only_active_crons": only_active_crons,
},
ai_chat_list_params.AIChatListParams,
),
Expand Down
Loading