diff --git a/.fern/metadata.json b/.fern/metadata.json
index c0781382..ab0ed37d 100644
--- a/.fern/metadata.json
+++ b/.fern/metadata.json
@@ -15,7 +15,7 @@
"standardwebhooks": ">=1.0.1,<2"
}
},
- "originGitCommit": "f67e889b0539d8ba4d02f3a80f8c33b5cb41e378",
+ "originGitCommit": "aca262b24a27e2e67026e2661c5b9d2fe8e9a016",
"originGitCommitIsDirty": false,
"invokedBy": "ci",
"requestedVersion": "1.1.1",
diff --git a/.fern/replay.lock b/.fern/replay.lock
index f9c5005f..ff0de0f1 100644
--- a/.fern/replay.lock
+++ b/.fern/replay.lock
@@ -78,5 +78,11 @@ generations:
cli_version: unknown
generator_versions:
fernapi/fern-python-sdk: 5.28.0
-current_generation: 67bc3951bdf257848af3356e9b20c84841fa36a3
+ - commit_sha: 07a0765014469286dd690afc59cee2c993661576
+ tree_hash: 9ea03df1c31515377214a0360e578cf27af794f6
+ timestamp: 2026-09-03T06:09:12.690Z
+ cli_version: unknown
+ generator_versions:
+ fernapi/fern-python-sdk: 5.28.0
+current_generation: 07a0765014469286dd690afc59cee2c993661576
patches: []
diff --git a/reference.md b/reference.md
index 5fa8c0b6..04e662c8 100644
--- a/reference.md
+++ b/reference.md
@@ -12,7 +12,7 @@
-
-Create a short-lived access token for authenticating API requests. When using API key authentication, provide company_id or user_id. When using OAuth, the user is derived from the token. Use this token with Whop's web and mobile embedded components.
+Create a short-lived access token for authenticating API requests. When using API key authentication, provide account_id or user_id. When using OAuth, the user is derived from the token. Use this token with Whop's web and mobile embedded components.
@@ -5443,7 +5443,7 @@ client.ai_chats.create(
-
-**current_company_id:** `typing.Optional[str]` — The unique identifier of the company to set as context for the AI chat (e.g., "biz_XXXXX").
+**current_account_id:** `typing.Optional[str]` — The unique identifier of the account to set as context for the AI chat (e.g., "biz_XXXXX").
@@ -5656,7 +5656,7 @@ client.ai_chats.delete(
-
-Update an AI chat's title, notification preferences, or associated company context.
+Update an AI chat's title, notification preferences, or associated account context.
Required permissions:
- `ai_chat:update`
@@ -5708,7 +5708,7 @@ client.ai_chats.update(
-
-**current_company_id:** `typing.Optional[str]` — The unique identifier of the company to set as context for the AI chat (e.g., "biz_XXXXX").
+**current_account_id:** `typing.Optional[str]` — The unique identifier of the account to set as context for the AI chat (e.g., "biz_XXXXX").
@@ -19676,7 +19676,7 @@ client.forum_posts.list(
-
-Create a new forum post or comment within an experience. Supports text content, attachments, polls, paywalling, and pinning. Pass experience_id 'public' with a company_id to post to a company's public forum.
+Create a new forum post or comment within an experience. Supports text content, attachments, polls, paywalling, and pinning. Pass experience_id 'public' with an account_id to post to an account's public forum.
Required permissions:
- `forum:post:create`
@@ -19720,7 +19720,7 @@ client.forum_posts.create(
-
-**experience_id:** `str` — The unique identifier of the experience to create this post in. For example, 'exp_xxxxx'. Pass 'public' along with company_id to automatically use the company's public forum.
+**experience_id:** `str` — The unique identifier of the experience to create this post in. For example, 'exp_xxxxx'. Pass 'public' along with account_id to automatically use the account's public forum.
@@ -20350,7 +20350,7 @@ client.forums.update(
-
-Returns a paginated list of identity profiles. When company_id is provided, lists IPs currently linked to that company's ledger. When omitted, lists IPs linked to any ledger the actor can read (including child companies under a parent).
+Returns a paginated list of identity profiles. When account_id is provided, lists IPs currently linked to that account's ledger. When omitted, lists IPs linked to any ledger the actor can read (including child accounts under a parent).
Required permissions:
- `identity:read`
@@ -25404,7 +25404,7 @@ client.payment_methods.list(
-
-**member_id:** `typing.Optional[str]` — The unique identifier of the member to list payment methods for. Omit this and company_id to list your own saved payment methods.
+**member_id:** `typing.Optional[str]` — The unique identifier of the member to list payment methods for. Omit this and account_id to list your own saved payment methods.
@@ -25524,7 +25524,7 @@ client.payment_methods.list(
-
-Retrieves the details of an existing payment method. Addresses a member's wallet when member_id or company_id is given, otherwise your own.
+Retrieves the details of an existing payment method. Addresses a member's wallet when member_id or account_id is given, otherwise your own.
Required permissions:
- `member:payment_methods:read`
@@ -25578,7 +25578,7 @@ client.payment_methods.retrieve(
-
-**member_id:** `typing.Optional[str]` — The unique identifier of the member. Provide either this or company_id, not both. Omit both to address your own saved payment methods.
+**member_id:** `typing.Optional[str]` — The unique identifier of the member. Provide either this or account_id, not both. Omit both to address your own saved payment methods.
@@ -25672,7 +25672,7 @@ client.payment_methods.delete_payment_method(
-
-**member_id:** `typing.Optional[str]` — The unique identifier of the member. Provide either this or company_id, not both. Omit both to address your own saved payment methods.
+**member_id:** `typing.Optional[str]` — The unique identifier of the member. Provide either this or account_id, not both. Omit both to address your own saved payment methods.
diff --git a/src/whop_sdk/access_tokens/client.py b/src/whop_sdk/access_tokens/client.py
index 503eeaac..4d14660f 100644
--- a/src/whop_sdk/access_tokens/client.py
+++ b/src/whop_sdk/access_tokens/client.py
@@ -37,7 +37,7 @@ def create(
request_options: typing.Optional[RequestOptions] = None,
) -> AccessToken:
"""
- Create a short-lived access token for authenticating API requests. When using API key authentication, provide company_id or user_id. When using OAuth, the user is derived from the token. Use this token with Whop's web and mobile embedded components.
+ Create a short-lived access token for authenticating API requests. When using API key authentication, provide account_id or user_id. When using OAuth, the user is derived from the token. Use this token with Whop's web and mobile embedded components.
Parameters
----------
@@ -107,7 +107,7 @@ async def create(
request_options: typing.Optional[RequestOptions] = None,
) -> AccessToken:
"""
- Create a short-lived access token for authenticating API requests. When using API key authentication, provide company_id or user_id. When using OAuth, the user is derived from the token. Use this token with Whop's web and mobile embedded components.
+ Create a short-lived access token for authenticating API requests. When using API key authentication, provide account_id or user_id. When using OAuth, the user is derived from the token. Use this token with Whop's web and mobile embedded components.
Parameters
----------
diff --git a/src/whop_sdk/access_tokens/raw_client.py b/src/whop_sdk/access_tokens/raw_client.py
index f09a6fbd..27696f54 100644
--- a/src/whop_sdk/access_tokens/raw_client.py
+++ b/src/whop_sdk/access_tokens/raw_client.py
@@ -38,7 +38,7 @@ def create(
request_options: typing.Optional[RequestOptions] = None,
) -> HttpResponse[AccessToken]:
"""
- Create a short-lived access token for authenticating API requests. When using API key authentication, provide company_id or user_id. When using OAuth, the user is derived from the token. Use this token with Whop's web and mobile embedded components.
+ Create a short-lived access token for authenticating API requests. When using API key authentication, provide account_id or user_id. When using OAuth, the user is derived from the token. Use this token with Whop's web and mobile embedded components.
Parameters
----------
@@ -188,7 +188,7 @@ async def create(
request_options: typing.Optional[RequestOptions] = None,
) -> AsyncHttpResponse[AccessToken]:
"""
- Create a short-lived access token for authenticating API requests. When using API key authentication, provide company_id or user_id. When using OAuth, the user is derived from the token. Use this token with Whop's web and mobile embedded components.
+ Create a short-lived access token for authenticating API requests. When using API key authentication, provide account_id or user_id. When using OAuth, the user is derived from the token. Use this token with Whop's web and mobile embedded components.
Parameters
----------
diff --git a/src/whop_sdk/ai_chats/client.py b/src/whop_sdk/ai_chats/client.py
index af77e631..36e85f69 100644
--- a/src/whop_sdk/ai_chats/client.py
+++ b/src/whop_sdk/ai_chats/client.py
@@ -102,7 +102,7 @@ def create(
self,
*,
message_text: str,
- current_company_id: typing.Optional[str] = OMIT,
+ current_account_id: typing.Optional[str] = OMIT,
message_attachments: typing.Optional[typing.Sequence[CreateAiChatsRequestMessageAttachmentsItem]] = OMIT,
message_source: typing.Optional[AiChatMessageSourceTypes] = OMIT,
suggestion_type: typing.Optional[str] = OMIT,
@@ -120,8 +120,8 @@ def create(
message_text : str
The text content of the first message to send to the AI agent.
- current_company_id : typing.Optional[str]
- The unique identifier of the company to set as context for the AI chat (e.g., "biz_XXXXX").
+ current_account_id : typing.Optional[str]
+ The unique identifier of the account to set as context for the AI chat (e.g., "biz_XXXXX").
message_attachments : typing.Optional[typing.Sequence[CreateAiChatsRequestMessageAttachmentsItem]]
A list of previously uploaded file attachments to include with the first message.
@@ -158,7 +158,7 @@ def create(
"""
_response = self._raw_client.create(
message_text=message_text,
- current_company_id=current_company_id,
+ current_account_id=current_account_id,
message_attachments=message_attachments,
message_source=message_source,
suggestion_type=suggestion_type,
@@ -240,13 +240,13 @@ def update(
self,
id: str,
*,
- current_company_id: typing.Optional[str] = OMIT,
+ current_account_id: typing.Optional[str] = OMIT,
notification_preference: typing.Optional[AiChatNotificationPreferences] = OMIT,
title: typing.Optional[str] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> AiChat:
"""
- Update an AI chat's title, notification preferences, or associated company context.
+ Update an AI chat's title, notification preferences, or associated account context.
Required permissions:
- `ai_chat:update`
@@ -256,8 +256,8 @@ def update(
id : str
The unique identifier of the AI chat to update (e.g., "ai_chat_XXXXX").
- current_company_id : typing.Optional[str]
- The unique identifier of the company to set as context for the AI chat (e.g., "biz_XXXXX").
+ current_account_id : typing.Optional[str]
+ The unique identifier of the account to set as context for the AI chat (e.g., "biz_XXXXX").
notification_preference : typing.Optional[AiChatNotificationPreferences]
The notification preference for the AI chat.
@@ -288,7 +288,7 @@ def update(
"""
_response = self._raw_client.update(
id,
- current_company_id=current_company_id,
+ current_account_id=current_account_id,
notification_preference=notification_preference,
title=title,
request_options=request_options,
@@ -390,7 +390,7 @@ async def create(
self,
*,
message_text: str,
- current_company_id: typing.Optional[str] = OMIT,
+ current_account_id: typing.Optional[str] = OMIT,
message_attachments: typing.Optional[typing.Sequence[CreateAiChatsRequestMessageAttachmentsItem]] = OMIT,
message_source: typing.Optional[AiChatMessageSourceTypes] = OMIT,
suggestion_type: typing.Optional[str] = OMIT,
@@ -408,8 +408,8 @@ async def create(
message_text : str
The text content of the first message to send to the AI agent.
- current_company_id : typing.Optional[str]
- The unique identifier of the company to set as context for the AI chat (e.g., "biz_XXXXX").
+ current_account_id : typing.Optional[str]
+ The unique identifier of the account to set as context for the AI chat (e.g., "biz_XXXXX").
message_attachments : typing.Optional[typing.Sequence[CreateAiChatsRequestMessageAttachmentsItem]]
A list of previously uploaded file attachments to include with the first message.
@@ -454,7 +454,7 @@ async def main() -> None:
"""
_response = await self._raw_client.create(
message_text=message_text,
- current_company_id=current_company_id,
+ current_account_id=current_account_id,
message_attachments=message_attachments,
message_source=message_source,
suggestion_type=suggestion_type,
@@ -552,13 +552,13 @@ async def update(
self,
id: str,
*,
- current_company_id: typing.Optional[str] = OMIT,
+ current_account_id: typing.Optional[str] = OMIT,
notification_preference: typing.Optional[AiChatNotificationPreferences] = OMIT,
title: typing.Optional[str] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> AiChat:
"""
- Update an AI chat's title, notification preferences, or associated company context.
+ Update an AI chat's title, notification preferences, or associated account context.
Required permissions:
- `ai_chat:update`
@@ -568,8 +568,8 @@ async def update(
id : str
The unique identifier of the AI chat to update (e.g., "ai_chat_XXXXX").
- current_company_id : typing.Optional[str]
- The unique identifier of the company to set as context for the AI chat (e.g., "biz_XXXXX").
+ current_account_id : typing.Optional[str]
+ The unique identifier of the account to set as context for the AI chat (e.g., "biz_XXXXX").
notification_preference : typing.Optional[AiChatNotificationPreferences]
The notification preference for the AI chat.
@@ -608,7 +608,7 @@ async def main() -> None:
"""
_response = await self._raw_client.update(
id,
- current_company_id=current_company_id,
+ current_account_id=current_account_id,
notification_preference=notification_preference,
title=title,
request_options=request_options,
diff --git a/src/whop_sdk/ai_chats/raw_client.py b/src/whop_sdk/ai_chats/raw_client.py
index 833b1d95..de815fe9 100644
--- a/src/whop_sdk/ai_chats/raw_client.py
+++ b/src/whop_sdk/ai_chats/raw_client.py
@@ -199,7 +199,7 @@ def create(
self,
*,
message_text: str,
- current_company_id: typing.Optional[str] = OMIT,
+ current_account_id: typing.Optional[str] = OMIT,
message_attachments: typing.Optional[typing.Sequence[CreateAiChatsRequestMessageAttachmentsItem]] = OMIT,
message_source: typing.Optional[AiChatMessageSourceTypes] = OMIT,
suggestion_type: typing.Optional[str] = OMIT,
@@ -217,8 +217,8 @@ def create(
message_text : str
The text content of the first message to send to the AI agent.
- current_company_id : typing.Optional[str]
- The unique identifier of the company to set as context for the AI chat (e.g., "biz_XXXXX").
+ current_account_id : typing.Optional[str]
+ The unique identifier of the account to set as context for the AI chat (e.g., "biz_XXXXX").
message_attachments : typing.Optional[typing.Sequence[CreateAiChatsRequestMessageAttachmentsItem]]
A list of previously uploaded file attachments to include with the first message.
@@ -244,7 +244,7 @@ def create(
"ai_chats",
method="POST",
json={
- "current_company_id": current_company_id,
+ "current_account_id": current_account_id,
"message_attachments": convert_and_respect_annotation_metadata(
object_=message_attachments,
annotation=typing.Optional[typing.Sequence[CreateAiChatsRequestMessageAttachmentsItem]],
@@ -600,13 +600,13 @@ def update(
self,
id: str,
*,
- current_company_id: typing.Optional[str] = OMIT,
+ current_account_id: typing.Optional[str] = OMIT,
notification_preference: typing.Optional[AiChatNotificationPreferences] = OMIT,
title: typing.Optional[str] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> HttpResponse[AiChat]:
"""
- Update an AI chat's title, notification preferences, or associated company context.
+ Update an AI chat's title, notification preferences, or associated account context.
Required permissions:
- `ai_chat:update`
@@ -616,8 +616,8 @@ def update(
id : str
The unique identifier of the AI chat to update (e.g., "ai_chat_XXXXX").
- current_company_id : typing.Optional[str]
- The unique identifier of the company to set as context for the AI chat (e.g., "biz_XXXXX").
+ current_account_id : typing.Optional[str]
+ The unique identifier of the account to set as context for the AI chat (e.g., "biz_XXXXX").
notification_preference : typing.Optional[AiChatNotificationPreferences]
The notification preference for the AI chat.
@@ -637,7 +637,7 @@ def update(
f"ai_chats/{encode_path_param(id)}",
method="PATCH",
json={
- "current_company_id": current_company_id,
+ "current_account_id": current_account_id,
"notification_preference": notification_preference,
"title": title,
},
@@ -915,7 +915,7 @@ async def create(
self,
*,
message_text: str,
- current_company_id: typing.Optional[str] = OMIT,
+ current_account_id: typing.Optional[str] = OMIT,
message_attachments: typing.Optional[typing.Sequence[CreateAiChatsRequestMessageAttachmentsItem]] = OMIT,
message_source: typing.Optional[AiChatMessageSourceTypes] = OMIT,
suggestion_type: typing.Optional[str] = OMIT,
@@ -933,8 +933,8 @@ async def create(
message_text : str
The text content of the first message to send to the AI agent.
- current_company_id : typing.Optional[str]
- The unique identifier of the company to set as context for the AI chat (e.g., "biz_XXXXX").
+ current_account_id : typing.Optional[str]
+ The unique identifier of the account to set as context for the AI chat (e.g., "biz_XXXXX").
message_attachments : typing.Optional[typing.Sequence[CreateAiChatsRequestMessageAttachmentsItem]]
A list of previously uploaded file attachments to include with the first message.
@@ -960,7 +960,7 @@ async def create(
"ai_chats",
method="POST",
json={
- "current_company_id": current_company_id,
+ "current_account_id": current_account_id,
"message_attachments": convert_and_respect_annotation_metadata(
object_=message_attachments,
annotation=typing.Optional[typing.Sequence[CreateAiChatsRequestMessageAttachmentsItem]],
@@ -1320,13 +1320,13 @@ async def update(
self,
id: str,
*,
- current_company_id: typing.Optional[str] = OMIT,
+ current_account_id: typing.Optional[str] = OMIT,
notification_preference: typing.Optional[AiChatNotificationPreferences] = OMIT,
title: typing.Optional[str] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> AsyncHttpResponse[AiChat]:
"""
- Update an AI chat's title, notification preferences, or associated company context.
+ Update an AI chat's title, notification preferences, or associated account context.
Required permissions:
- `ai_chat:update`
@@ -1336,8 +1336,8 @@ async def update(
id : str
The unique identifier of the AI chat to update (e.g., "ai_chat_XXXXX").
- current_company_id : typing.Optional[str]
- The unique identifier of the company to set as context for the AI chat (e.g., "biz_XXXXX").
+ current_account_id : typing.Optional[str]
+ The unique identifier of the account to set as context for the AI chat (e.g., "biz_XXXXX").
notification_preference : typing.Optional[AiChatNotificationPreferences]
The notification preference for the AI chat.
@@ -1357,7 +1357,7 @@ async def update(
f"ai_chats/{encode_path_param(id)}",
method="PATCH",
json={
- "current_company_id": current_company_id,
+ "current_account_id": current_account_id,
"notification_preference": notification_preference,
"title": title,
},
diff --git a/src/whop_sdk/forum_posts/client.py b/src/whop_sdk/forum_posts/client.py
index 55830544..4ddf3698 100644
--- a/src/whop_sdk/forum_posts/client.py
+++ b/src/whop_sdk/forum_posts/client.py
@@ -138,7 +138,7 @@ def create(
request_options: typing.Optional[RequestOptions] = None,
) -> ForumPost:
"""
- Create a new forum post or comment within an experience. Supports text content, attachments, polls, paywalling, and pinning. Pass experience_id 'public' with a company_id to post to a company's public forum.
+ Create a new forum post or comment within an experience. Supports text content, attachments, polls, paywalling, and pinning. Pass experience_id 'public' with an account_id to post to an account's public forum.
Required permissions:
- `forum:post:create`
@@ -146,7 +146,7 @@ def create(
Parameters
----------
experience_id : str
- The unique identifier of the experience to create this post in. For example, 'exp_xxxxx'. Pass 'public' along with company_id to automatically use the company's public forum.
+ The unique identifier of the experience to create this post in. For example, 'exp_xxxxx'. Pass 'public' along with account_id to automatically use the account's public forum.
account_id : typing.Optional[str]
The unique identifier of the company whose public forum to post in. Required when experience_id is 'public'. For example, 'biz_xxxxx'.
@@ -454,7 +454,7 @@ async def create(
request_options: typing.Optional[RequestOptions] = None,
) -> ForumPost:
"""
- Create a new forum post or comment within an experience. Supports text content, attachments, polls, paywalling, and pinning. Pass experience_id 'public' with a company_id to post to a company's public forum.
+ Create a new forum post or comment within an experience. Supports text content, attachments, polls, paywalling, and pinning. Pass experience_id 'public' with an account_id to post to an account's public forum.
Required permissions:
- `forum:post:create`
@@ -462,7 +462,7 @@ async def create(
Parameters
----------
experience_id : str
- The unique identifier of the experience to create this post in. For example, 'exp_xxxxx'. Pass 'public' along with company_id to automatically use the company's public forum.
+ The unique identifier of the experience to create this post in. For example, 'exp_xxxxx'. Pass 'public' along with account_id to automatically use the account's public forum.
account_id : typing.Optional[str]
The unique identifier of the company whose public forum to post in. Required when experience_id is 'public'. For example, 'biz_xxxxx'.
diff --git a/src/whop_sdk/forum_posts/raw_client.py b/src/whop_sdk/forum_posts/raw_client.py
index 0b53d1ce..2e963353 100644
--- a/src/whop_sdk/forum_posts/raw_client.py
+++ b/src/whop_sdk/forum_posts/raw_client.py
@@ -237,7 +237,7 @@ def create(
request_options: typing.Optional[RequestOptions] = None,
) -> HttpResponse[ForumPost]:
"""
- Create a new forum post or comment within an experience. Supports text content, attachments, polls, paywalling, and pinning. Pass experience_id 'public' with a company_id to post to a company's public forum.
+ Create a new forum post or comment within an experience. Supports text content, attachments, polls, paywalling, and pinning. Pass experience_id 'public' with an account_id to post to an account's public forum.
Required permissions:
- `forum:post:create`
@@ -245,7 +245,7 @@ def create(
Parameters
----------
experience_id : str
- The unique identifier of the experience to create this post in. For example, 'exp_xxxxx'. Pass 'public' along with company_id to automatically use the company's public forum.
+ The unique identifier of the experience to create this post in. For example, 'exp_xxxxx'. Pass 'public' along with account_id to automatically use the account's public forum.
account_id : typing.Optional[str]
The unique identifier of the company whose public forum to post in. Required when experience_id is 'public'. For example, 'biz_xxxxx'.
@@ -904,7 +904,7 @@ async def create(
request_options: typing.Optional[RequestOptions] = None,
) -> AsyncHttpResponse[ForumPost]:
"""
- Create a new forum post or comment within an experience. Supports text content, attachments, polls, paywalling, and pinning. Pass experience_id 'public' with a company_id to post to a company's public forum.
+ Create a new forum post or comment within an experience. Supports text content, attachments, polls, paywalling, and pinning. Pass experience_id 'public' with an account_id to post to an account's public forum.
Required permissions:
- `forum:post:create`
@@ -912,7 +912,7 @@ async def create(
Parameters
----------
experience_id : str
- The unique identifier of the experience to create this post in. For example, 'exp_xxxxx'. Pass 'public' along with company_id to automatically use the company's public forum.
+ The unique identifier of the experience to create this post in. For example, 'exp_xxxxx'. Pass 'public' along with account_id to automatically use the account's public forum.
account_id : typing.Optional[str]
The unique identifier of the company whose public forum to post in. Required when experience_id is 'public'. For example, 'biz_xxxxx'.
diff --git a/src/whop_sdk/identity_profiles/client.py b/src/whop_sdk/identity_profiles/client.py
index ad219574..d7cbda1e 100644
--- a/src/whop_sdk/identity_profiles/client.py
+++ b/src/whop_sdk/identity_profiles/client.py
@@ -45,7 +45,7 @@ def list_identity_profile(
request_options: typing.Optional[RequestOptions] = None,
) -> SyncPager[IdentityProfileListItem, ListIdentityProfileResponse]:
"""
- Returns a paginated list of identity profiles. When company_id is provided, lists IPs currently linked to that company's ledger. When omitted, lists IPs linked to any ledger the actor can read (including child companies under a parent).
+ Returns a paginated list of identity profiles. When account_id is provided, lists IPs currently linked to that account's ledger. When omitted, lists IPs linked to any ledger the actor can read (including child accounts under a parent).
Required permissions:
- `identity:read`
@@ -283,7 +283,7 @@ async def list_identity_profile(
request_options: typing.Optional[RequestOptions] = None,
) -> AsyncPager[IdentityProfileListItem, ListIdentityProfileResponse]:
"""
- Returns a paginated list of identity profiles. When company_id is provided, lists IPs currently linked to that company's ledger. When omitted, lists IPs linked to any ledger the actor can read (including child companies under a parent).
+ Returns a paginated list of identity profiles. When account_id is provided, lists IPs currently linked to that account's ledger. When omitted, lists IPs linked to any ledger the actor can read (including child accounts under a parent).
Required permissions:
- `identity:read`
diff --git a/src/whop_sdk/identity_profiles/raw_client.py b/src/whop_sdk/identity_profiles/raw_client.py
index e086f25e..4207e100 100644
--- a/src/whop_sdk/identity_profiles/raw_client.py
+++ b/src/whop_sdk/identity_profiles/raw_client.py
@@ -47,7 +47,7 @@ def list_identity_profile(
request_options: typing.Optional[RequestOptions] = None,
) -> SyncPager[IdentityProfileListItem, ListIdentityProfileResponse]:
"""
- Returns a paginated list of identity profiles. When company_id is provided, lists IPs currently linked to that company's ledger. When omitted, lists IPs linked to any ledger the actor can read (including child companies under a parent).
+ Returns a paginated list of identity profiles. When account_id is provided, lists IPs currently linked to that account's ledger. When omitted, lists IPs linked to any ledger the actor can read (including child accounts under a parent).
Required permissions:
- `identity:read`
@@ -636,7 +636,7 @@ async def list_identity_profile(
request_options: typing.Optional[RequestOptions] = None,
) -> AsyncPager[IdentityProfileListItem, ListIdentityProfileResponse]:
"""
- Returns a paginated list of identity profiles. When company_id is provided, lists IPs currently linked to that company's ledger. When omitted, lists IPs linked to any ledger the actor can read (including child companies under a parent).
+ Returns a paginated list of identity profiles. When account_id is provided, lists IPs currently linked to that account's ledger. When omitted, lists IPs linked to any ledger the actor can read (including child accounts under a parent).
Required permissions:
- `identity:read`
diff --git a/src/whop_sdk/payment_methods/client.py b/src/whop_sdk/payment_methods/client.py
index 8127e43a..df0656f8 100644
--- a/src/whop_sdk/payment_methods/client.py
+++ b/src/whop_sdk/payment_methods/client.py
@@ -76,7 +76,7 @@ def list(
Returns the last _n_ elements from the list.
member_id : typing.Optional[str]
- The unique identifier of the member to list payment methods for. Omit this and company_id to list your own saved payment methods.
+ The unique identifier of the member to list payment methods for. Omit this and account_id to list your own saved payment methods.
direction : typing.Optional[Direction]
@@ -175,7 +175,7 @@ def retrieve(
request_options: typing.Optional[RequestOptions] = None,
) -> PaymentMethod:
"""
- Retrieves the details of an existing payment method. Addresses a member's wallet when member_id or company_id is given, otherwise your own.
+ Retrieves the details of an existing payment method. Addresses a member's wallet when member_id or account_id is given, otherwise your own.
Required permissions:
- `member:payment_methods:read`
@@ -186,7 +186,7 @@ def retrieve(
The unique identifier of the payment method.
member_id : typing.Optional[str]
- The unique identifier of the member. Provide either this or company_id, not both. Omit both to address your own saved payment methods.
+ The unique identifier of the member. Provide either this or account_id, not both. Omit both to address your own saved payment methods.
account_id : typing.Optional[str]
The unique identifier of the company. Provide either this or member_id, not both. Omit both to address your own saved payment methods.
@@ -239,7 +239,7 @@ def delete_payment_method(
The unique identifier of the payment method to delete.
member_id : typing.Optional[str]
- The unique identifier of the member. Provide either this or company_id, not both. Omit both to address your own saved payment methods.
+ The unique identifier of the member. Provide either this or account_id, not both. Omit both to address your own saved payment methods.
account_id : typing.Optional[str]
The unique identifier of the company. Provide either this or member_id, not both. Omit both to address your own saved payment methods.
@@ -332,7 +332,7 @@ async def list(
Returns the last _n_ elements from the list.
member_id : typing.Optional[str]
- The unique identifier of the member to list payment methods for. Omit this and company_id to list your own saved payment methods.
+ The unique identifier of the member to list payment methods for. Omit this and account_id to list your own saved payment methods.
direction : typing.Optional[Direction]
@@ -439,7 +439,7 @@ async def retrieve(
request_options: typing.Optional[RequestOptions] = None,
) -> PaymentMethod:
"""
- Retrieves the details of an existing payment method. Addresses a member's wallet when member_id or company_id is given, otherwise your own.
+ Retrieves the details of an existing payment method. Addresses a member's wallet when member_id or account_id is given, otherwise your own.
Required permissions:
- `member:payment_methods:read`
@@ -450,7 +450,7 @@ async def retrieve(
The unique identifier of the payment method.
member_id : typing.Optional[str]
- The unique identifier of the member. Provide either this or company_id, not both. Omit both to address your own saved payment methods.
+ The unique identifier of the member. Provide either this or account_id, not both. Omit both to address your own saved payment methods.
account_id : typing.Optional[str]
The unique identifier of the company. Provide either this or member_id, not both. Omit both to address your own saved payment methods.
@@ -511,7 +511,7 @@ async def delete_payment_method(
The unique identifier of the payment method to delete.
member_id : typing.Optional[str]
- The unique identifier of the member. Provide either this or company_id, not both. Omit both to address your own saved payment methods.
+ The unique identifier of the member. Provide either this or account_id, not both. Omit both to address your own saved payment methods.
account_id : typing.Optional[str]
The unique identifier of the company. Provide either this or member_id, not both. Omit both to address your own saved payment methods.
diff --git a/src/whop_sdk/payment_methods/raw_client.py b/src/whop_sdk/payment_methods/raw_client.py
index 8c63a97e..55b31ce4 100644
--- a/src/whop_sdk/payment_methods/raw_client.py
+++ b/src/whop_sdk/payment_methods/raw_client.py
@@ -79,7 +79,7 @@ def list(
Returns the last _n_ elements from the list.
member_id : typing.Optional[str]
- The unique identifier of the member to list payment methods for. Omit this and company_id to list your own saved payment methods.
+ The unique identifier of the member to list payment methods for. Omit this and account_id to list your own saved payment methods.
direction : typing.Optional[Direction]
@@ -273,7 +273,7 @@ def retrieve(
request_options: typing.Optional[RequestOptions] = None,
) -> HttpResponse[PaymentMethod]:
"""
- Retrieves the details of an existing payment method. Addresses a member's wallet when member_id or company_id is given, otherwise your own.
+ Retrieves the details of an existing payment method. Addresses a member's wallet when member_id or account_id is given, otherwise your own.
Required permissions:
- `member:payment_methods:read`
@@ -284,7 +284,7 @@ def retrieve(
The unique identifier of the payment method.
member_id : typing.Optional[str]
- The unique identifier of the member. Provide either this or company_id, not both. Omit both to address your own saved payment methods.
+ The unique identifier of the member. Provide either this or account_id, not both. Omit both to address your own saved payment methods.
account_id : typing.Optional[str]
The unique identifier of the company. Provide either this or member_id, not both. Omit both to address your own saved payment methods.
@@ -422,7 +422,7 @@ def delete_payment_method(
The unique identifier of the payment method to delete.
member_id : typing.Optional[str]
- The unique identifier of the member. Provide either this or company_id, not both. Omit both to address your own saved payment methods.
+ The unique identifier of the member. Provide either this or account_id, not both. Omit both to address your own saved payment methods.
account_id : typing.Optional[str]
The unique identifier of the company. Provide either this or member_id, not both. Omit both to address your own saved payment methods.
@@ -589,7 +589,7 @@ async def list(
Returns the last _n_ elements from the list.
member_id : typing.Optional[str]
- The unique identifier of the member to list payment methods for. Omit this and company_id to list your own saved payment methods.
+ The unique identifier of the member to list payment methods for. Omit this and account_id to list your own saved payment methods.
direction : typing.Optional[Direction]
@@ -786,7 +786,7 @@ async def retrieve(
request_options: typing.Optional[RequestOptions] = None,
) -> AsyncHttpResponse[PaymentMethod]:
"""
- Retrieves the details of an existing payment method. Addresses a member's wallet when member_id or company_id is given, otherwise your own.
+ Retrieves the details of an existing payment method. Addresses a member's wallet when member_id or account_id is given, otherwise your own.
Required permissions:
- `member:payment_methods:read`
@@ -797,7 +797,7 @@ async def retrieve(
The unique identifier of the payment method.
member_id : typing.Optional[str]
- The unique identifier of the member. Provide either this or company_id, not both. Omit both to address your own saved payment methods.
+ The unique identifier of the member. Provide either this or account_id, not both. Omit both to address your own saved payment methods.
account_id : typing.Optional[str]
The unique identifier of the company. Provide either this or member_id, not both. Omit both to address your own saved payment methods.
@@ -935,7 +935,7 @@ async def delete_payment_method(
The unique identifier of the payment method to delete.
member_id : typing.Optional[str]
- The unique identifier of the member. Provide either this or company_id, not both. Omit both to address your own saved payment methods.
+ The unique identifier of the member. Provide either this or account_id, not both. Omit both to address your own saved payment methods.
account_id : typing.Optional[str]
The unique identifier of the company. Provide either this or member_id, not both. Omit both to address your own saved payment methods.
diff --git a/src/whop_sdk/types/checkout_configuration_list_item.py b/src/whop_sdk/types/checkout_configuration_list_item.py
index 427b250b..06dada34 100644
--- a/src/whop_sdk/types/checkout_configuration_list_item.py
+++ b/src/whop_sdk/types/checkout_configuration_list_item.py
@@ -17,14 +17,14 @@ class CheckoutConfigurationListItem(UniversalBaseModel):
A checkout configuration is a reusable configuration for a checkout, including the plan, affiliate, and custom metadata. Payments and memberships created from a checkout session inherit its metadata.
"""
- affiliate_code: typing.Optional[str] = pydantic.Field(default=None)
+ account_id: str = pydantic.Field()
"""
- The affiliate code to use for the checkout configuration
+ The ID of the account to use for the checkout configuration
"""
- company_id: str = pydantic.Field()
+ affiliate_code: typing.Optional[str] = pydantic.Field(default=None)
"""
- The ID of the company to use for the checkout configuration
+ The affiliate code to use for the checkout configuration
"""
currency: typing.Optional[Currencies] = pydantic.Field(default=None)
diff --git a/src/whop_sdk/types/support_channel.py b/src/whop_sdk/types/support_channel.py
index 174f3030..04e4b6f2 100644
--- a/src/whop_sdk/types/support_channel.py
+++ b/src/whop_sdk/types/support_channel.py
@@ -13,9 +13,9 @@ class SupportChannel(UniversalBaseModel):
A messaging channel that can be a one-on-one DM, group chat, company support conversation, or platform-level direct message.
"""
- company_id: typing.Optional[str] = pydantic.Field(default=None)
+ account_id: typing.Optional[str] = pydantic.Field(default=None)
"""
- The unique identifier of the company associated with this channel. Null if this is not a support or company-scoped conversation.
+ The unique identifier of the account associated with this channel. Null if this is not a support or account-scoped conversation.
"""
custom_name: typing.Optional[str] = pydantic.Field(default=None)
diff --git a/src/whop_sdk/types/support_channel_list_item.py b/src/whop_sdk/types/support_channel_list_item.py
index ec0e32f2..6312cfe4 100644
--- a/src/whop_sdk/types/support_channel_list_item.py
+++ b/src/whop_sdk/types/support_channel_list_item.py
@@ -13,9 +13,9 @@ class SupportChannelListItem(UniversalBaseModel):
A messaging channel that can be a one-on-one DM, group chat, company support conversation, or platform-level direct message.
"""
- company_id: typing.Optional[str] = pydantic.Field(default=None)
+ account_id: typing.Optional[str] = pydantic.Field(default=None)
"""
- The unique identifier of the company associated with this channel. Null if this is not a support or company-scoped conversation.
+ The unique identifier of the account associated with this channel. Null if this is not a support or account-scoped conversation.
"""
custom_name: typing.Optional[str] = pydantic.Field(default=None)