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.1.0"
".": "0.0.26"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 165
configured_endpoints: 170
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/frostedinc%2Fwhopsdk-333c68cc8619caa2ffdfed588a7d2b2c263f8910b7b682698da92c826932e7c7.yml
openapi_spec_hash: 8e2cc20f1e06b43ea220edbdf16eddbe
config_hash: 3ab84ed28795a04f98c3a6187f1ed831
config_hash: 48e5bec0f5659595abb38814aa0d9cc2
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.0.26 (2026-02-03)

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

### Features

* **api:** manual updates ([54d5505](https://github.com/whopio/whopsdk-python/commit/54d5505d18a3a2b4a73dd56e7d0ac0ea5f670b87))

## 0.1.0 (2026-02-03)

Full Changelog: [v0.0.25...v0.1.0](https://github.com/whopio/whopsdk-python/compare/v0.0.25...v0.1.0)
Expand Down
91 changes: 50 additions & 41 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,10 @@ Types:

```python
from whop_sdk.types import (
APIVersion,
Webhook,
WebhookEvent,
WebhookCreateResponse,
WebhookRetrieveResponse,
WebhookUpdateResponse,
WebhookListResponse,
WebhookDeleteResponse,
InvoiceCreatedWebhookEvent,
Expand Down Expand Up @@ -178,8 +179,8 @@ from whop_sdk.types import (
Methods:

- <code title="post /webhooks">client.webhooks.<a href="./src/whop_sdk/resources/webhooks.py">create</a>(\*\*<a href="src/whop_sdk/types/webhook_create_params.py">params</a>) -> <a href="./src/whop_sdk/types/webhook_create_response.py">WebhookCreateResponse</a></code>
- <code title="get /webhooks/{id}">client.webhooks.<a href="./src/whop_sdk/resources/webhooks.py">retrieve</a>(id) -> <a href="./src/whop_sdk/types/webhook_retrieve_response.py">WebhookRetrieveResponse</a></code>
- <code title="patch /webhooks/{id}">client.webhooks.<a href="./src/whop_sdk/resources/webhooks.py">update</a>(id, \*\*<a href="src/whop_sdk/types/webhook_update_params.py">params</a>) -> <a href="./src/whop_sdk/types/webhook_update_response.py">WebhookUpdateResponse</a></code>
- <code title="get /webhooks/{id}">client.webhooks.<a href="./src/whop_sdk/resources/webhooks.py">retrieve</a>(id) -> <a href="./src/whop_sdk/types/webhook.py">Webhook</a></code>
- <code title="patch /webhooks/{id}">client.webhooks.<a href="./src/whop_sdk/resources/webhooks.py">update</a>(id, \*\*<a href="src/whop_sdk/types/webhook_update_params.py">params</a>) -> <a href="./src/whop_sdk/types/webhook.py">Webhook</a></code>
- <code title="get /webhooks">client.webhooks.<a href="./src/whop_sdk/resources/webhooks.py">list</a>(\*\*<a href="src/whop_sdk/types/webhook_list_params.py">params</a>) -> <a href="./src/whop_sdk/types/webhook_list_response.py">SyncCursorPage[WebhookListResponse]</a></code>
- <code title="delete /webhooks/{id}">client.webhooks.<a href="./src/whop_sdk/resources/webhooks.py">delete</a>(id) -> <a href="./src/whop_sdk/types/webhook_delete_response.py">WebhookDeleteResponse</a></code>

Expand Down Expand Up @@ -260,7 +261,7 @@ Methods:
Types:

```python
from whop_sdk.types import MembershipListResponse
from whop_sdk.types import CancelOptions, MembershipListResponse
```

Methods:
Expand Down Expand Up @@ -651,19 +652,18 @@ Types:

```python
from whop_sdk.types import (
Withdrawal,
WithdrawalFeeTypes,
WithdrawalSpeeds,
WithdrawalStatus,
WithdrawalCreateResponse,
WithdrawalRetrieveResponse,
WithdrawalListResponse,
)
```

Methods:

- <code title="post /withdrawals">client.withdrawals.<a href="./src/whop_sdk/resources/withdrawals.py">create</a>(\*\*<a href="src/whop_sdk/types/withdrawal_create_params.py">params</a>) -> <a href="./src/whop_sdk/types/withdrawal_create_response.py">WithdrawalCreateResponse</a></code>
- <code title="get /withdrawals/{id}">client.withdrawals.<a href="./src/whop_sdk/resources/withdrawals.py">retrieve</a>(id) -> <a href="./src/whop_sdk/types/withdrawal_retrieve_response.py">WithdrawalRetrieveResponse</a></code>
- <code title="post /withdrawals">client.withdrawals.<a href="./src/whop_sdk/resources/withdrawals.py">create</a>(\*\*<a href="src/whop_sdk/types/withdrawal_create_params.py">params</a>) -> <a href="./src/whop_sdk/types/withdrawal.py">Withdrawal</a></code>
- <code title="get /withdrawals/{id}">client.withdrawals.<a href="./src/whop_sdk/resources/withdrawals.py">retrieve</a>(id) -> <a href="./src/whop_sdk/types/withdrawal.py">Withdrawal</a></code>
- <code title="get /withdrawals">client.withdrawals.<a href="./src/whop_sdk/resources/withdrawals.py">list</a>(\*\*<a href="src/whop_sdk/types/withdrawal_list_params.py">params</a>) -> <a href="./src/whop_sdk/types/withdrawal_list_response.py">SyncCursorPage[WithdrawalListResponse]</a></code>

# AccountLinks
Expand Down Expand Up @@ -728,7 +728,11 @@ Methods:
Types:

```python
from whop_sdk.types import PayoutMethodRetrieveResponse, PayoutMethodListResponse
from whop_sdk.types import (
PayoutDestinationCategory,
PayoutMethodRetrieveResponse,
PayoutMethodListResponse,
)
```

Methods:
Expand All @@ -741,7 +745,7 @@ Methods:
Types:

```python
from whop_sdk.types import VerificationRetrieveResponse
from whop_sdk.types import VerificationErrorCode, VerificationStatus, VerificationRetrieveResponse
```

Methods:
Expand All @@ -753,19 +757,14 @@ Methods:
Types:

```python
from whop_sdk.types import (
LeadCreateResponse,
LeadRetrieveResponse,
LeadUpdateResponse,
LeadListResponse,
)
from whop_sdk.types import Lead, LeadListResponse
```

Methods:

- <code title="post /leads">client.leads.<a href="./src/whop_sdk/resources/leads.py">create</a>(\*\*<a href="src/whop_sdk/types/lead_create_params.py">params</a>) -> <a href="./src/whop_sdk/types/lead_create_response.py">LeadCreateResponse</a></code>
- <code title="get /leads/{id}">client.leads.<a href="./src/whop_sdk/resources/leads.py">retrieve</a>(id) -> <a href="./src/whop_sdk/types/lead_retrieve_response.py">LeadRetrieveResponse</a></code>
- <code title="patch /leads/{id}">client.leads.<a href="./src/whop_sdk/resources/leads.py">update</a>(id, \*\*<a href="src/whop_sdk/types/lead_update_params.py">params</a>) -> <a href="./src/whop_sdk/types/lead_update_response.py">LeadUpdateResponse</a></code>
- <code title="post /leads">client.leads.<a href="./src/whop_sdk/resources/leads.py">create</a>(\*\*<a href="src/whop_sdk/types/lead_create_params.py">params</a>) -> <a href="./src/whop_sdk/types/lead.py">Lead</a></code>
- <code title="get /leads/{id}">client.leads.<a href="./src/whop_sdk/resources/leads.py">retrieve</a>(id) -> <a href="./src/whop_sdk/types/lead.py">Lead</a></code>
- <code title="patch /leads/{id}">client.leads.<a href="./src/whop_sdk/resources/leads.py">update</a>(id, \*\*<a href="src/whop_sdk/types/lead_update_params.py">params</a>) -> <a href="./src/whop_sdk/types/lead.py">Lead</a></code>
- <code title="get /leads">client.leads.<a href="./src/whop_sdk/resources/leads.py">list</a>(\*\*<a href="src/whop_sdk/types/lead_list_params.py">params</a>) -> <a href="./src/whop_sdk/types/lead_list_response.py">SyncCursorPage[LeadListResponse]</a></code>

# Topups
Expand All @@ -785,7 +784,7 @@ Methods:
Types:

```python
from whop_sdk.types import FileCreateResponse, FileRetrieveResponse
from whop_sdk.types import UploadStatus, FileCreateResponse, FileRetrieveResponse
```

Methods:
Expand All @@ -799,16 +798,16 @@ Types:

```python
from whop_sdk.types import (
CompanyTokenTransactionCreateResponse,
CompanyTokenTransactionRetrieveResponse,
BotTokenTransactionTypes,
CompanyTokenTransaction,
CompanyTokenTransactionListResponse,
)
```

Methods:

- <code title="post /company_token_transactions">client.company_token_transactions.<a href="./src/whop_sdk/resources/company_token_transactions.py">create</a>(\*\*<a href="src/whop_sdk/types/company_token_transaction_create_params.py">params</a>) -> <a href="./src/whop_sdk/types/company_token_transaction_create_response.py">CompanyTokenTransactionCreateResponse</a></code>
- <code title="get /company_token_transactions/{id}">client.company_token_transactions.<a href="./src/whop_sdk/resources/company_token_transactions.py">retrieve</a>(id) -> <a href="./src/whop_sdk/types/company_token_transaction_retrieve_response.py">CompanyTokenTransactionRetrieveResponse</a></code>
- <code title="post /company_token_transactions">client.company_token_transactions.<a href="./src/whop_sdk/resources/company_token_transactions.py">create</a>(\*\*<a href="src/whop_sdk/types/company_token_transaction_create_params.py">params</a>) -> <a href="./src/whop_sdk/types/company_token_transaction.py">CompanyTokenTransaction</a></code>
- <code title="get /company_token_transactions/{id}">client.company_token_transactions.<a href="./src/whop_sdk/resources/company_token_transactions.py">retrieve</a>(id) -> <a href="./src/whop_sdk/types/company_token_transaction.py">CompanyTokenTransaction</a></code>
- <code title="get /company_token_transactions">client.company_token_transactions.<a href="./src/whop_sdk/resources/company_token_transactions.py">list</a>(\*\*<a href="src/whop_sdk/types/company_token_transaction_list_params.py">params</a>) -> <a href="./src/whop_sdk/types/company_token_transaction_list_response.py">SyncCursorPage[CompanyTokenTransactionListResponse]</a></code>

# DmMembers
Expand All @@ -817,19 +816,19 @@ Types:

```python
from whop_sdk.types import (
DmMemberCreateResponse,
DmMemberRetrieveResponse,
DmMemberUpdateResponse,
DmFeedMemberNotificationPreferences,
DmFeedMemberStatuses,
DmMember,
DmMemberListResponse,
DmMemberDeleteResponse,
)
```

Methods:

- <code title="post /dm_members">client.dm_members.<a href="./src/whop_sdk/resources/dm_members.py">create</a>(\*\*<a href="src/whop_sdk/types/dm_member_create_params.py">params</a>) -> <a href="./src/whop_sdk/types/dm_member_create_response.py">DmMemberCreateResponse</a></code>
- <code title="get /dm_members/{id}">client.dm_members.<a href="./src/whop_sdk/resources/dm_members.py">retrieve</a>(id) -> <a href="./src/whop_sdk/types/dm_member_retrieve_response.py">DmMemberRetrieveResponse</a></code>
- <code title="patch /dm_members/{id}">client.dm_members.<a href="./src/whop_sdk/resources/dm_members.py">update</a>(id, \*\*<a href="src/whop_sdk/types/dm_member_update_params.py">params</a>) -> <a href="./src/whop_sdk/types/dm_member_update_response.py">DmMemberUpdateResponse</a></code>
- <code title="post /dm_members">client.dm_members.<a href="./src/whop_sdk/resources/dm_members.py">create</a>(\*\*<a href="src/whop_sdk/types/dm_member_create_params.py">params</a>) -> <a href="./src/whop_sdk/types/dm_member.py">DmMember</a></code>
- <code title="get /dm_members/{id}">client.dm_members.<a href="./src/whop_sdk/resources/dm_members.py">retrieve</a>(id) -> <a href="./src/whop_sdk/types/dm_member.py">DmMember</a></code>
- <code title="patch /dm_members/{id}">client.dm_members.<a href="./src/whop_sdk/resources/dm_members.py">update</a>(id, \*\*<a href="src/whop_sdk/types/dm_member_update_params.py">params</a>) -> <a href="./src/whop_sdk/types/dm_member.py">DmMember</a></code>
- <code title="get /dm_members">client.dm_members.<a href="./src/whop_sdk/resources/dm_members.py">list</a>(\*\*<a href="src/whop_sdk/types/dm_member_list_params.py">params</a>) -> <a href="./src/whop_sdk/types/dm_member_list_response.py">SyncCursorPage[DmMemberListResponse]</a></code>
- <code title="delete /dm_members/{id}">client.dm_members.<a href="./src/whop_sdk/resources/dm_members.py">delete</a>(id) -> <a href="./src/whop_sdk/types/dm_member_delete_response.py">DmMemberDeleteResponse</a></code>

Expand All @@ -838,19 +837,29 @@ Methods:
Types:

```python
from whop_sdk.types import (
AIChatCreateResponse,
AIChatRetrieveResponse,
AIChatUpdateResponse,
AIChatListResponse,
AIChatDeleteResponse,
)
from whop_sdk.types import AIChat, AIChatListResponse, AIChatDeleteResponse
```

Methods:

- <code title="post /ai_chats">client.ai_chats.<a href="./src/whop_sdk/resources/ai_chats.py">create</a>(\*\*<a href="src/whop_sdk/types/ai_chat_create_params.py">params</a>) -> <a href="./src/whop_sdk/types/ai_chat_create_response.py">AIChatCreateResponse</a></code>
- <code title="get /ai_chats/{id}">client.ai_chats.<a href="./src/whop_sdk/resources/ai_chats.py">retrieve</a>(id) -> <a href="./src/whop_sdk/types/ai_chat_retrieve_response.py">AIChatRetrieveResponse</a></code>
- <code title="patch /ai_chats/{id}">client.ai_chats.<a href="./src/whop_sdk/resources/ai_chats.py">update</a>(id, \*\*<a href="src/whop_sdk/types/ai_chat_update_params.py">params</a>) -> <a href="./src/whop_sdk/types/ai_chat_update_response.py">AIChatUpdateResponse</a></code>
- <code title="post /ai_chats">client.ai_chats.<a href="./src/whop_sdk/resources/ai_chats.py">create</a>(\*\*<a href="src/whop_sdk/types/ai_chat_create_params.py">params</a>) -> <a href="./src/whop_sdk/types/ai_chat.py">AIChat</a></code>
- <code title="get /ai_chats/{id}">client.ai_chats.<a href="./src/whop_sdk/resources/ai_chats.py">retrieve</a>(id) -> <a href="./src/whop_sdk/types/ai_chat.py">AIChat</a></code>
- <code title="patch /ai_chats/{id}">client.ai_chats.<a href="./src/whop_sdk/resources/ai_chats.py">update</a>(id, \*\*<a href="src/whop_sdk/types/ai_chat_update_params.py">params</a>) -> <a href="./src/whop_sdk/types/ai_chat.py">AIChat</a></code>
- <code title="get /ai_chats">client.ai_chats.<a href="./src/whop_sdk/resources/ai_chats.py">list</a>(\*\*<a href="src/whop_sdk/types/ai_chat_list_params.py">params</a>) -> <a href="./src/whop_sdk/types/ai_chat_list_response.py">SyncCursorPage[AIChatListResponse]</a></code>
- <code title="delete /ai_chats/{id}">client.ai_chats.<a href="./src/whop_sdk/resources/ai_chats.py">delete</a>(id) -> <a href="./src/whop_sdk/types/ai_chat_delete_response.py">AIChatDeleteResponse</a></code>

# DmChannels

Types:

```python
from whop_sdk.types import DmChannel, DmChannelListResponse, DmChannelDeleteResponse
```

Methods:

- <code title="post /dm_channels">client.dm_channels.<a href="./src/whop_sdk/resources/dm_channels.py">create</a>(\*\*<a href="src/whop_sdk/types/dm_channel_create_params.py">params</a>) -> <a href="./src/whop_sdk/types/dm_channel.py">DmChannel</a></code>
- <code title="get /dm_channels/{id}">client.dm_channels.<a href="./src/whop_sdk/resources/dm_channels.py">retrieve</a>(id) -> <a href="./src/whop_sdk/types/dm_channel.py">DmChannel</a></code>
- <code title="patch /dm_channels/{id}">client.dm_channels.<a href="./src/whop_sdk/resources/dm_channels.py">update</a>(id, \*\*<a href="src/whop_sdk/types/dm_channel_update_params.py">params</a>) -> <a href="./src/whop_sdk/types/dm_channel.py">DmChannel</a></code>
- <code title="get /dm_channels">client.dm_channels.<a href="./src/whop_sdk/resources/dm_channels.py">list</a>(\*\*<a href="src/whop_sdk/types/dm_channel_list_params.py">params</a>) -> <a href="./src/whop_sdk/types/dm_channel_list_response.py">SyncCursorPage[DmChannelListResponse]</a></code>
- <code title="delete /dm_channels/{id}">client.dm_channels.<a href="./src/whop_sdk/resources/dm_channels.py">delete</a>(id) -> <a href="./src/whop_sdk/types/dm_channel_delete_response.py">DmChannelDeleteResponse</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.1.0"
version = "0.0.26"
description = "The official Python library for the Whop API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
38 changes: 38 additions & 0 deletions src/whop_sdk/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
transfers,
app_builds,
dm_members,
dm_channels,
experiences,
fee_markups,
forum_posts,
Expand Down Expand Up @@ -106,6 +107,7 @@
from .resources.transfers import TransfersResource, AsyncTransfersResource
from .resources.app_builds import AppBuildsResource, AsyncAppBuildsResource
from .resources.dm_members import DmMembersResource, AsyncDmMembersResource
from .resources.dm_channels import DmChannelsResource, AsyncDmChannelsResource
from .resources.experiences import ExperiencesResource, AsyncExperiencesResource
from .resources.fee_markups import FeeMarkupsResource, AsyncFeeMarkupsResource
from .resources.forum_posts import ForumPostsResource, AsyncForumPostsResource
Expand Down Expand Up @@ -497,6 +499,12 @@ def ai_chats(self) -> AIChatsResource:

return AIChatsResource(self)

@cached_property
def dm_channels(self) -> DmChannelsResource:
from .resources.dm_channels import DmChannelsResource

return DmChannelsResource(self)

@cached_property
def with_raw_response(self) -> WhopWithRawResponse:
return WhopWithRawResponse(self)
Expand Down Expand Up @@ -973,6 +981,12 @@ def ai_chats(self) -> AsyncAIChatsResource:

return AsyncAIChatsResource(self)

@cached_property
def dm_channels(self) -> AsyncDmChannelsResource:
from .resources.dm_channels import AsyncDmChannelsResource

return AsyncDmChannelsResource(self)

@cached_property
def with_raw_response(self) -> AsyncWhopWithRawResponse:
return AsyncWhopWithRawResponse(self)
Expand Down Expand Up @@ -1385,6 +1399,12 @@ def ai_chats(self) -> ai_chats.AIChatsResourceWithRawResponse:

return AIChatsResourceWithRawResponse(self._client.ai_chats)

@cached_property
def dm_channels(self) -> dm_channels.DmChannelsResourceWithRawResponse:
from .resources.dm_channels import DmChannelsResourceWithRawResponse

return DmChannelsResourceWithRawResponse(self._client.dm_channels)


class AsyncWhopWithRawResponse:
_client: AsyncWhop
Expand Down Expand Up @@ -1684,6 +1704,12 @@ def ai_chats(self) -> ai_chats.AsyncAIChatsResourceWithRawResponse:

return AsyncAIChatsResourceWithRawResponse(self._client.ai_chats)

@cached_property
def dm_channels(self) -> dm_channels.AsyncDmChannelsResourceWithRawResponse:
from .resources.dm_channels import AsyncDmChannelsResourceWithRawResponse

return AsyncDmChannelsResourceWithRawResponse(self._client.dm_channels)


class WhopWithStreamedResponse:
_client: Whop
Expand Down Expand Up @@ -1983,6 +2009,12 @@ def ai_chats(self) -> ai_chats.AIChatsResourceWithStreamingResponse:

return AIChatsResourceWithStreamingResponse(self._client.ai_chats)

@cached_property
def dm_channels(self) -> dm_channels.DmChannelsResourceWithStreamingResponse:
from .resources.dm_channels import DmChannelsResourceWithStreamingResponse

return DmChannelsResourceWithStreamingResponse(self._client.dm_channels)


class AsyncWhopWithStreamedResponse:
_client: AsyncWhop
Expand Down Expand Up @@ -2284,6 +2316,12 @@ def ai_chats(self) -> ai_chats.AsyncAIChatsResourceWithStreamingResponse:

return AsyncAIChatsResourceWithStreamingResponse(self._client.ai_chats)

@cached_property
def dm_channels(self) -> dm_channels.AsyncDmChannelsResourceWithStreamingResponse:
from .resources.dm_channels import AsyncDmChannelsResourceWithStreamingResponse

return AsyncDmChannelsResourceWithStreamingResponse(self._client.dm_channels)


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.1.0" # x-release-please-version
__version__ = "0.0.26" # 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 @@ -200,6 +200,14 @@
DmMembersResourceWithStreamingResponse,
AsyncDmMembersResourceWithStreamingResponse,
)
from .dm_channels import (
DmChannelsResource,
AsyncDmChannelsResource,
DmChannelsResourceWithRawResponse,
AsyncDmChannelsResourceWithRawResponse,
DmChannelsResourceWithStreamingResponse,
AsyncDmChannelsResourceWithStreamingResponse,
)
from .experiences import (
ExperiencesResource,
AsyncExperiencesResource,
Expand Down Expand Up @@ -674,4 +682,10 @@
"AsyncAIChatsResourceWithRawResponse",
"AIChatsResourceWithStreamingResponse",
"AsyncAIChatsResourceWithStreamingResponse",
"DmChannelsResource",
"AsyncDmChannelsResource",
"DmChannelsResourceWithRawResponse",
"AsyncDmChannelsResourceWithRawResponse",
"DmChannelsResourceWithStreamingResponse",
"AsyncDmChannelsResourceWithStreamingResponse",
]
Loading