whop-sdk 0.0.1__py3-none-any.whl → 0.0.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of whop-sdk might be problematic. Click here for more details.
- whop_sdk/_client.py +18 -0
- whop_sdk/_version.py +1 -1
- whop_sdk/resources/__init__.py +28 -0
- whop_sdk/resources/checkout_configurations.py +12 -12
- whop_sdk/resources/forums.py +446 -0
- whop_sdk/resources/members.py +421 -0
- whop_sdk/resources/plans.py +10 -4
- whop_sdk/types/__init__.py +25 -0
- whop_sdk/types/app_list_response.py +16 -1
- whop_sdk/types/checkout_configuration_create_params.py +5 -5
- whop_sdk/types/checkout_configuration_list_response.py +9 -9
- whop_sdk/types/course_lesson_interaction_completed_webhook_event.py +26 -0
- whop_sdk/types/entry_approved_webhook_event.py +26 -0
- whop_sdk/types/entry_created_webhook_event.py +26 -0
- whop_sdk/types/entry_deleted_webhook_event.py +26 -0
- whop_sdk/types/entry_denied_webhook_event.py +26 -0
- whop_sdk/types/experience_list_response.py +27 -1
- whop_sdk/types/forum_list_params.py +28 -0
- whop_sdk/types/forum_list_response.py +33 -0
- whop_sdk/types/forum_update_params.py +23 -0
- whop_sdk/types/invoice_create_params.py +10 -2
- whop_sdk/types/member_list_params.py +70 -0
- whop_sdk/types/member_list_response.py +65 -0
- whop_sdk/types/member_retrieve_response.py +79 -0
- whop_sdk/types/membership_activated_webhook_event.py +29 -0
- whop_sdk/types/membership_deactivated_webhook_event.py +29 -0
- whop_sdk/types/payment_failed_webhook_event.py +26 -0
- whop_sdk/types/payment_pending_webhook_event.py +26 -0
- whop_sdk/types/payment_succeeded_webhook_event.py +26 -0
- whop_sdk/types/plan_create_params.py +10 -2
- whop_sdk/types/shared/__init__.py +7 -0
- whop_sdk/types/shared/access_level.py +7 -0
- whop_sdk/types/shared/app.py +25 -1
- whop_sdk/types/shared/checkout_configuration.py +9 -9
- whop_sdk/types/shared/company.py +15 -1
- whop_sdk/types/shared/course_lesson_interaction.py +20 -1
- whop_sdk/types/shared/email_notification_preferences.py +7 -0
- whop_sdk/types/shared/experience.py +27 -1
- whop_sdk/types/shared/forum.py +33 -0
- whop_sdk/types/shared/member_most_recent_actions.py +22 -0
- whop_sdk/types/shared/member_statuses.py +7 -0
- whop_sdk/types/shared/who_can_comment_types.py +7 -0
- whop_sdk/types/shared/who_can_post_types.py +7 -0
- whop_sdk/types/shared_params/__init__.py +6 -0
- whop_sdk/types/shared_params/access_level.py +9 -0
- whop_sdk/types/shared_params/email_notification_preferences.py +9 -0
- whop_sdk/types/shared_params/member_most_recent_actions.py +24 -0
- whop_sdk/types/shared_params/member_statuses.py +9 -0
- whop_sdk/types/shared_params/who_can_comment_types.py +9 -0
- whop_sdk/types/shared_params/who_can_post_types.py +9 -0
- whop_sdk/types/unwrap_webhook_event.py +24 -1
- whop_sdk/types/user_check_access_response.py +2 -3
- whop_sdk/types/user_retrieve_response.py +12 -1
- {whop_sdk-0.0.1.dist-info → whop_sdk-0.0.2.dist-info}/METADATA +2 -2
- {whop_sdk-0.0.1.dist-info → whop_sdk-0.0.2.dist-info}/RECORD +57 -26
- {whop_sdk-0.0.1.dist-info → whop_sdk-0.0.2.dist-info}/WHEEL +0 -0
- {whop_sdk-0.0.1.dist-info → whop_sdk-0.0.2.dist-info}/licenses/LICENSE +0 -0
|
@@ -40,7 +40,11 @@ class PlanCreateParams(TypedDict, total=False):
|
|
|
40
40
|
"""An image for the plan. This will be visible on the product page to customers."""
|
|
41
41
|
|
|
42
42
|
initial_price: Optional[float]
|
|
43
|
-
"""An additional amount charged upon first purchase.
|
|
43
|
+
"""An additional amount charged upon first purchase.
|
|
44
|
+
|
|
45
|
+
Use only if a one time payment OR you want to charge an additional amount on top
|
|
46
|
+
of the renewal price. Provided as a number in dollars. Eg: 10.43 for $10.43
|
|
47
|
+
"""
|
|
44
48
|
|
|
45
49
|
internal_notes: Optional[str]
|
|
46
50
|
"""A personal description or notes section for the business."""
|
|
@@ -58,7 +62,11 @@ class PlanCreateParams(TypedDict, total=False):
|
|
|
58
62
|
"""The methods of how a plan can be released."""
|
|
59
63
|
|
|
60
64
|
renewal_price: Optional[float]
|
|
61
|
-
"""The amount the customer is charged every billing period.
|
|
65
|
+
"""The amount the customer is charged every billing period.
|
|
66
|
+
|
|
67
|
+
Use only if a recurring payment. Provided as a number in dollars. Eg: 10.43 for
|
|
68
|
+
$10.43
|
|
69
|
+
"""
|
|
62
70
|
|
|
63
71
|
title: Optional[str]
|
|
64
72
|
"""The title of the plan. This will be visible on the product page to customers."""
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
from .app import App as App
|
|
4
4
|
from .plan import Plan as Plan
|
|
5
5
|
from .entry import Entry as Entry
|
|
6
|
+
from .forum import Forum as Forum
|
|
6
7
|
from .company import Company as Company
|
|
7
8
|
from .invoice import Invoice as Invoice
|
|
8
9
|
from .message import Message as Message
|
|
@@ -23,6 +24,7 @@ from .forum_post import ForumPost as ForumPost
|
|
|
23
24
|
from .membership import Membership as Membership
|
|
24
25
|
from .promo_type import PromoType as PromoType
|
|
25
26
|
from .visibility import Visibility as Visibility
|
|
27
|
+
from .access_level import AccessLevel as AccessLevel
|
|
26
28
|
from .app_statuses import AppStatuses as AppStatuses
|
|
27
29
|
from .chat_channel import ChatChannel as ChatChannel
|
|
28
30
|
from .entry_status import EntryStatus as EntryStatus
|
|
@@ -35,6 +37,7 @@ from .industry_types import IndustryTypes as IndustryTypes
|
|
|
35
37
|
from .invoice_status import InvoiceStatus as InvoiceStatus
|
|
36
38
|
from .receipt_status import ReceiptStatus as ReceiptStatus
|
|
37
39
|
from .release_method import ReleaseMethod as ReleaseMethod
|
|
40
|
+
from .member_statuses import MemberStatuses as MemberStatuses
|
|
38
41
|
from .shipment_status import ShipmentStatus as ShipmentStatus
|
|
39
42
|
from .support_channel import SupportChannel as SupportChannel
|
|
40
43
|
from .access_pass_type import AccessPassType as AccessPassType
|
|
@@ -46,10 +49,14 @@ from .product_list_item import ProductListItem as ProductListItem
|
|
|
46
49
|
from .visibility_filter import VisibilityFilter as VisibilityFilter
|
|
47
50
|
from .app_build_statuses import AppBuildStatuses as AppBuildStatuses
|
|
48
51
|
from .shipment_substatus import ShipmentSubstatus as ShipmentSubstatus
|
|
52
|
+
from .who_can_post_types import WhoCanPostTypes as WhoCanPostTypes
|
|
49
53
|
from .app_build_platforms import AppBuildPlatforms as AppBuildPlatforms
|
|
50
54
|
from .authorized_user_roles import AuthorizedUserRoles as AuthorizedUserRoles
|
|
55
|
+
from .who_can_comment_types import WhoCanCommentTypes as WhoCanCommentTypes
|
|
51
56
|
from .checkout_configuration import CheckoutConfiguration as CheckoutConfiguration
|
|
52
57
|
from .friendly_receipt_status import FriendlyReceiptStatus as FriendlyReceiptStatus
|
|
53
58
|
from .global_affiliate_status import GlobalAffiliateStatus as GlobalAffiliateStatus
|
|
54
59
|
from .course_lesson_interaction import CourseLessonInteraction as CourseLessonInteraction
|
|
60
|
+
from .member_most_recent_actions import MemberMostRecentActions as MemberMostRecentActions
|
|
61
|
+
from .email_notification_preferences import EmailNotificationPreferences as EmailNotificationPreferences
|
|
55
62
|
from .course_lesson_interaction_list_item import CourseLessonInteractionListItem as CourseLessonInteractionListItem
|
whop_sdk/types/shared/app.py
CHANGED
|
@@ -6,7 +6,16 @@ from datetime import datetime
|
|
|
6
6
|
from ..._models import BaseModel
|
|
7
7
|
from .app_statuses import AppStatuses
|
|
8
8
|
|
|
9
|
-
__all__ = [
|
|
9
|
+
__all__ = [
|
|
10
|
+
"App",
|
|
11
|
+
"APIKey",
|
|
12
|
+
"Company",
|
|
13
|
+
"Creator",
|
|
14
|
+
"Icon",
|
|
15
|
+
"RequestedPermission",
|
|
16
|
+
"RequestedPermissionPermissionAction",
|
|
17
|
+
"Stats",
|
|
18
|
+
]
|
|
10
19
|
|
|
11
20
|
|
|
12
21
|
class APIKey(BaseModel):
|
|
@@ -39,6 +48,14 @@ class Creator(BaseModel):
|
|
|
39
48
|
"""The username of the user from their Whop account."""
|
|
40
49
|
|
|
41
50
|
|
|
51
|
+
class Icon(BaseModel):
|
|
52
|
+
url: Optional[str] = None
|
|
53
|
+
"""This is the URL you use to render optimized attachments on the client.
|
|
54
|
+
|
|
55
|
+
This should be used for apps.
|
|
56
|
+
"""
|
|
57
|
+
|
|
58
|
+
|
|
42
59
|
class RequestedPermissionPermissionAction(BaseModel):
|
|
43
60
|
action: str
|
|
44
61
|
"""The identifier of the action."""
|
|
@@ -130,6 +147,13 @@ class App(BaseModel):
|
|
|
130
147
|
/experiences/[experienceId]
|
|
131
148
|
"""
|
|
132
149
|
|
|
150
|
+
icon: Optional[Icon] = None
|
|
151
|
+
"""The icon for the app.
|
|
152
|
+
|
|
153
|
+
This icon is shown on discovery, on the product page, on checkout, and as a
|
|
154
|
+
default icon for the experiences.
|
|
155
|
+
"""
|
|
156
|
+
|
|
133
157
|
name: str
|
|
134
158
|
"""The name of the app"""
|
|
135
159
|
|
|
@@ -45,22 +45,22 @@ class Plan(BaseModel):
|
|
|
45
45
|
|
|
46
46
|
class CheckoutConfiguration(BaseModel):
|
|
47
47
|
id: str
|
|
48
|
-
"""The ID of the checkout
|
|
48
|
+
"""The ID of the checkout configuration"""
|
|
49
49
|
|
|
50
|
-
affiliate_code: str
|
|
51
|
-
"""The affiliate code to use for the checkout
|
|
50
|
+
affiliate_code: Optional[str] = None
|
|
51
|
+
"""The affiliate code to use for the checkout configuration"""
|
|
52
52
|
|
|
53
53
|
company_id: str
|
|
54
|
-
"""The ID of the company to use for the checkout
|
|
54
|
+
"""The ID of the company to use for the checkout configuration"""
|
|
55
55
|
|
|
56
56
|
metadata: Dict[str, object]
|
|
57
|
-
"""The metadata to use for the checkout
|
|
57
|
+
"""The metadata to use for the checkout configuration"""
|
|
58
58
|
|
|
59
59
|
plan: Plan
|
|
60
|
-
"""The plan to use for the checkout
|
|
60
|
+
"""The plan to use for the checkout configuration"""
|
|
61
61
|
|
|
62
62
|
purchase_url: str
|
|
63
|
-
"""The URL to redirect the user to after the checkout
|
|
63
|
+
"""The URL to redirect the user to after the checkout configuration is created"""
|
|
64
64
|
|
|
65
|
-
redirect_url: str
|
|
66
|
-
"""The URL to redirect the user to after the checkout
|
|
65
|
+
redirect_url: Optional[str] = None
|
|
66
|
+
"""The URL to redirect the user to after the checkout configuration is created"""
|
whop_sdk/types/shared/company.py
CHANGED
|
@@ -8,7 +8,15 @@ from ..._models import BaseModel
|
|
|
8
8
|
from .business_types import BusinessTypes
|
|
9
9
|
from .industry_types import IndustryTypes
|
|
10
10
|
|
|
11
|
-
__all__ = ["Company", "OwnerUser", "SocialLink"]
|
|
11
|
+
__all__ = ["Company", "Logo", "OwnerUser", "SocialLink"]
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class Logo(BaseModel):
|
|
15
|
+
url: Optional[str] = None
|
|
16
|
+
"""This is the URL you use to render optimized attachments on the client.
|
|
17
|
+
|
|
18
|
+
This should be used for apps.
|
|
19
|
+
"""
|
|
12
20
|
|
|
13
21
|
|
|
14
22
|
class OwnerUser(BaseModel):
|
|
@@ -43,9 +51,15 @@ class Company(BaseModel):
|
|
|
43
51
|
created_at: datetime
|
|
44
52
|
"""When the company was created (signed up)"""
|
|
45
53
|
|
|
54
|
+
description: Optional[str] = None
|
|
55
|
+
"""The creator pitch for the company."""
|
|
56
|
+
|
|
46
57
|
industry_type: Optional[IndustryTypes] = None
|
|
47
58
|
"""The different industry types a company can be in."""
|
|
48
59
|
|
|
60
|
+
logo: Optional[Logo] = None
|
|
61
|
+
"""The company's logo."""
|
|
62
|
+
|
|
49
63
|
member_count: int
|
|
50
64
|
"""The number of members in the company."""
|
|
51
65
|
|
|
@@ -5,7 +5,23 @@ from datetime import datetime
|
|
|
5
5
|
|
|
6
6
|
from ..._models import BaseModel
|
|
7
7
|
|
|
8
|
-
__all__ = ["CourseLessonInteraction", "Lesson", "User"]
|
|
8
|
+
__all__ = ["CourseLessonInteraction", "Course", "CourseExperience", "Lesson", "User"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class CourseExperience(BaseModel):
|
|
12
|
+
id: str
|
|
13
|
+
"""The unique ID representing this experience"""
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class Course(BaseModel):
|
|
17
|
+
id: str
|
|
18
|
+
"""The ID of the course. Looks like cors_XXX"""
|
|
19
|
+
|
|
20
|
+
experience: CourseExperience
|
|
21
|
+
"""The experience that the course belongs to"""
|
|
22
|
+
|
|
23
|
+
title: Optional[str] = None
|
|
24
|
+
"""The title of the course"""
|
|
9
25
|
|
|
10
26
|
|
|
11
27
|
class Lesson(BaseModel):
|
|
@@ -34,6 +50,9 @@ class CourseLessonInteraction(BaseModel):
|
|
|
34
50
|
completed: bool
|
|
35
51
|
"""Whether the lesson has been completed by the user"""
|
|
36
52
|
|
|
53
|
+
course: Course
|
|
54
|
+
"""The course for this lesson interaction"""
|
|
55
|
+
|
|
37
56
|
created_at: datetime
|
|
38
57
|
"""When the interaction was created"""
|
|
39
58
|
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing_extensions import Literal, TypeAlias
|
|
4
|
+
|
|
5
|
+
__all__ = ["EmailNotificationPreferences"]
|
|
6
|
+
|
|
7
|
+
EmailNotificationPreferences: TypeAlias = Literal["all_admin_posts", "only_weekly_summary", "none"]
|
|
@@ -5,13 +5,28 @@ from datetime import datetime
|
|
|
5
5
|
|
|
6
6
|
from ..._models import BaseModel
|
|
7
7
|
|
|
8
|
-
__all__ = ["Experience", "App", "Company", "Product"]
|
|
8
|
+
__all__ = ["Experience", "App", "AppIcon", "Company", "Image", "Product"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class AppIcon(BaseModel):
|
|
12
|
+
url: Optional[str] = None
|
|
13
|
+
"""This is the URL you use to render optimized attachments on the client.
|
|
14
|
+
|
|
15
|
+
This should be used for apps.
|
|
16
|
+
"""
|
|
9
17
|
|
|
10
18
|
|
|
11
19
|
class App(BaseModel):
|
|
12
20
|
id: str
|
|
13
21
|
"""The ID of the app"""
|
|
14
22
|
|
|
23
|
+
icon: Optional[AppIcon] = None
|
|
24
|
+
"""The icon for the app.
|
|
25
|
+
|
|
26
|
+
This icon is shown on discovery, on the product page, on checkout, and as a
|
|
27
|
+
default icon for the experiences.
|
|
28
|
+
"""
|
|
29
|
+
|
|
15
30
|
name: str
|
|
16
31
|
"""The name of the app"""
|
|
17
32
|
|
|
@@ -27,6 +42,14 @@ class Company(BaseModel):
|
|
|
27
42
|
"""The title of the company."""
|
|
28
43
|
|
|
29
44
|
|
|
45
|
+
class Image(BaseModel):
|
|
46
|
+
url: Optional[str] = None
|
|
47
|
+
"""This is the URL you use to render optimized attachments on the client.
|
|
48
|
+
|
|
49
|
+
This should be used for apps.
|
|
50
|
+
"""
|
|
51
|
+
|
|
52
|
+
|
|
30
53
|
class Product(BaseModel):
|
|
31
54
|
id: str
|
|
32
55
|
"""The internal ID of the public product."""
|
|
@@ -51,6 +74,9 @@ class Experience(BaseModel):
|
|
|
51
74
|
created_at: datetime
|
|
52
75
|
"""The timestamp of when this experience was created."""
|
|
53
76
|
|
|
77
|
+
image: Optional[Image] = None
|
|
78
|
+
"""The logo for the experience."""
|
|
79
|
+
|
|
54
80
|
name: str
|
|
55
81
|
"""The written name of the description."""
|
|
56
82
|
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from ..._models import BaseModel
|
|
4
|
+
from .who_can_post_types import WhoCanPostTypes
|
|
5
|
+
from .who_can_comment_types import WhoCanCommentTypes
|
|
6
|
+
from .email_notification_preferences import EmailNotificationPreferences
|
|
7
|
+
|
|
8
|
+
__all__ = ["Forum", "Experience"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class Experience(BaseModel):
|
|
12
|
+
id: str
|
|
13
|
+
"""The unique ID representing this experience"""
|
|
14
|
+
|
|
15
|
+
name: str
|
|
16
|
+
"""The written name of the description."""
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class Forum(BaseModel):
|
|
20
|
+
id: str
|
|
21
|
+
"""The unique identifier for the entity"""
|
|
22
|
+
|
|
23
|
+
email_notification_preference: EmailNotificationPreferences
|
|
24
|
+
"""The email notification preference for this forum"""
|
|
25
|
+
|
|
26
|
+
experience: Experience
|
|
27
|
+
"""The experience for this forum"""
|
|
28
|
+
|
|
29
|
+
who_can_comment: WhoCanCommentTypes
|
|
30
|
+
"""Who can comment on this forum"""
|
|
31
|
+
|
|
32
|
+
who_can_post: WhoCanPostTypes
|
|
33
|
+
"""Who can post on this forum"""
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing_extensions import Literal, TypeAlias
|
|
4
|
+
|
|
5
|
+
__all__ = ["MemberMostRecentActions"]
|
|
6
|
+
|
|
7
|
+
MemberMostRecentActions: TypeAlias = Literal[
|
|
8
|
+
"canceling",
|
|
9
|
+
"churned",
|
|
10
|
+
"finished_split_pay",
|
|
11
|
+
"paused",
|
|
12
|
+
"paid_subscriber",
|
|
13
|
+
"paid_once",
|
|
14
|
+
"expiring",
|
|
15
|
+
"joined",
|
|
16
|
+
"drafted",
|
|
17
|
+
"left",
|
|
18
|
+
"trialing",
|
|
19
|
+
"pending_entry",
|
|
20
|
+
"renewing",
|
|
21
|
+
"past_due",
|
|
22
|
+
]
|
|
@@ -6,6 +6,7 @@ from .direction import Direction as Direction
|
|
|
6
6
|
from .plan_type import PlanType as PlanType
|
|
7
7
|
from .custom_cta import CustomCta as CustomCta
|
|
8
8
|
from .visibility import Visibility as Visibility
|
|
9
|
+
from .access_level import AccessLevel as AccessLevel
|
|
9
10
|
from .app_statuses import AppStatuses as AppStatuses
|
|
10
11
|
from .entry_status import EntryStatus as EntryStatus
|
|
11
12
|
from .who_can_post import WhoCanPost as WhoCanPost
|
|
@@ -16,12 +17,17 @@ from .industry_types import IndustryTypes as IndustryTypes
|
|
|
16
17
|
from .invoice_status import InvoiceStatus as InvoiceStatus
|
|
17
18
|
from .receipt_status import ReceiptStatus as ReceiptStatus
|
|
18
19
|
from .release_method import ReleaseMethod as ReleaseMethod
|
|
20
|
+
from .member_statuses import MemberStatuses as MemberStatuses
|
|
19
21
|
from .access_pass_type import AccessPassType as AccessPassType
|
|
20
22
|
from .collection_method import CollectionMethod as CollectionMethod
|
|
21
23
|
from .membership_status import MembershipStatus as MembershipStatus
|
|
22
24
|
from .visibility_filter import VisibilityFilter as VisibilityFilter
|
|
23
25
|
from .app_build_statuses import AppBuildStatuses as AppBuildStatuses
|
|
26
|
+
from .who_can_post_types import WhoCanPostTypes as WhoCanPostTypes
|
|
24
27
|
from .app_build_platforms import AppBuildPlatforms as AppBuildPlatforms
|
|
25
28
|
from .authorized_user_roles import AuthorizedUserRoles as AuthorizedUserRoles
|
|
29
|
+
from .who_can_comment_types import WhoCanCommentTypes as WhoCanCommentTypes
|
|
26
30
|
from .friendly_receipt_status import FriendlyReceiptStatus as FriendlyReceiptStatus
|
|
27
31
|
from .global_affiliate_status import GlobalAffiliateStatus as GlobalAffiliateStatus
|
|
32
|
+
from .member_most_recent_actions import MemberMostRecentActions as MemberMostRecentActions
|
|
33
|
+
from .email_notification_preferences import EmailNotificationPreferences as EmailNotificationPreferences
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Literal, TypeAlias
|
|
6
|
+
|
|
7
|
+
__all__ = ["AccessLevel"]
|
|
8
|
+
|
|
9
|
+
AccessLevel: TypeAlias = Literal["no_access", "admin", "customer"]
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Literal, TypeAlias
|
|
6
|
+
|
|
7
|
+
__all__ = ["EmailNotificationPreferences"]
|
|
8
|
+
|
|
9
|
+
EmailNotificationPreferences: TypeAlias = Literal["all_admin_posts", "only_weekly_summary", "none"]
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Literal, TypeAlias
|
|
6
|
+
|
|
7
|
+
__all__ = ["MemberMostRecentActions"]
|
|
8
|
+
|
|
9
|
+
MemberMostRecentActions: TypeAlias = Literal[
|
|
10
|
+
"canceling",
|
|
11
|
+
"churned",
|
|
12
|
+
"finished_split_pay",
|
|
13
|
+
"paused",
|
|
14
|
+
"paid_subscriber",
|
|
15
|
+
"paid_once",
|
|
16
|
+
"expiring",
|
|
17
|
+
"joined",
|
|
18
|
+
"drafted",
|
|
19
|
+
"left",
|
|
20
|
+
"trialing",
|
|
21
|
+
"pending_entry",
|
|
22
|
+
"renewing",
|
|
23
|
+
"past_due",
|
|
24
|
+
]
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Literal, TypeAlias
|
|
6
|
+
|
|
7
|
+
__all__ = ["MemberStatuses"]
|
|
8
|
+
|
|
9
|
+
MemberStatuses: TypeAlias = Literal["drafted", "joined", "left"]
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Literal, TypeAlias
|
|
6
|
+
|
|
7
|
+
__all__ = ["WhoCanCommentTypes"]
|
|
8
|
+
|
|
9
|
+
WhoCanCommentTypes: TypeAlias = Literal["everyone", "admins"]
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Literal, TypeAlias
|
|
6
|
+
|
|
7
|
+
__all__ = ["WhoCanPostTypes"]
|
|
8
|
+
|
|
9
|
+
WhoCanPostTypes: TypeAlias = Literal["everyone", "admins"]
|
|
@@ -3,13 +3,36 @@
|
|
|
3
3
|
from typing import Union
|
|
4
4
|
from typing_extensions import TypeAlias
|
|
5
5
|
|
|
6
|
+
from .entry_denied_webhook_event import EntryDeniedWebhookEvent
|
|
6
7
|
from .invoice_paid_webhook_event import InvoicePaidWebhookEvent
|
|
8
|
+
from .entry_created_webhook_event import EntryCreatedWebhookEvent
|
|
9
|
+
from .entry_deleted_webhook_event import EntryDeletedWebhookEvent
|
|
10
|
+
from .entry_approved_webhook_event import EntryApprovedWebhookEvent
|
|
7
11
|
from .invoice_voided_webhook_event import InvoiceVoidedWebhookEvent
|
|
12
|
+
from .payment_failed_webhook_event import PaymentFailedWebhookEvent
|
|
8
13
|
from .invoice_created_webhook_event import InvoiceCreatedWebhookEvent
|
|
14
|
+
from .payment_pending_webhook_event import PaymentPendingWebhookEvent
|
|
9
15
|
from .invoice_past_due_webhook_event import InvoicePastDueWebhookEvent
|
|
16
|
+
from .payment_succeeded_webhook_event import PaymentSucceededWebhookEvent
|
|
17
|
+
from .membership_activated_webhook_event import MembershipActivatedWebhookEvent
|
|
18
|
+
from .membership_deactivated_webhook_event import MembershipDeactivatedWebhookEvent
|
|
19
|
+
from .course_lesson_interaction_completed_webhook_event import CourseLessonInteractionCompletedWebhookEvent
|
|
10
20
|
|
|
11
21
|
__all__ = ["UnwrapWebhookEvent"]
|
|
12
22
|
|
|
13
23
|
UnwrapWebhookEvent: TypeAlias = Union[
|
|
14
|
-
InvoiceCreatedWebhookEvent,
|
|
24
|
+
InvoiceCreatedWebhookEvent,
|
|
25
|
+
InvoicePaidWebhookEvent,
|
|
26
|
+
InvoicePastDueWebhookEvent,
|
|
27
|
+
InvoiceVoidedWebhookEvent,
|
|
28
|
+
MembershipActivatedWebhookEvent,
|
|
29
|
+
MembershipDeactivatedWebhookEvent,
|
|
30
|
+
EntryCreatedWebhookEvent,
|
|
31
|
+
EntryApprovedWebhookEvent,
|
|
32
|
+
EntryDeniedWebhookEvent,
|
|
33
|
+
EntryDeletedWebhookEvent,
|
|
34
|
+
CourseLessonInteractionCompletedWebhookEvent,
|
|
35
|
+
PaymentSucceededWebhookEvent,
|
|
36
|
+
PaymentFailedWebhookEvent,
|
|
37
|
+
PaymentPendingWebhookEvent,
|
|
15
38
|
]
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
from typing_extensions import Literal
|
|
4
|
-
|
|
5
3
|
from .._models import BaseModel
|
|
4
|
+
from .shared.access_level import AccessLevel
|
|
6
5
|
|
|
7
6
|
__all__ = ["UserCheckAccessResponse"]
|
|
8
7
|
|
|
9
8
|
|
|
10
9
|
class UserCheckAccessResponse(BaseModel):
|
|
11
|
-
access_level:
|
|
10
|
+
access_level: AccessLevel
|
|
12
11
|
"""The permission level of the user"""
|
|
13
12
|
|
|
14
13
|
has_access: bool
|
|
@@ -5,7 +5,15 @@ from datetime import datetime
|
|
|
5
5
|
|
|
6
6
|
from .._models import BaseModel
|
|
7
7
|
|
|
8
|
-
__all__ = ["UserRetrieveResponse"]
|
|
8
|
+
__all__ = ["UserRetrieveResponse", "ProfilePicture"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class ProfilePicture(BaseModel):
|
|
12
|
+
url: Optional[str] = None
|
|
13
|
+
"""This is the URL you use to render optimized attachments on the client.
|
|
14
|
+
|
|
15
|
+
This should be used for apps.
|
|
16
|
+
"""
|
|
9
17
|
|
|
10
18
|
|
|
11
19
|
class UserRetrieveResponse(BaseModel):
|
|
@@ -21,5 +29,8 @@ class UserRetrieveResponse(BaseModel):
|
|
|
21
29
|
name: Optional[str] = None
|
|
22
30
|
"""The name of the user from their Whop account."""
|
|
23
31
|
|
|
32
|
+
profile_picture: Optional[ProfilePicture] = None
|
|
33
|
+
"""The user's profile picture"""
|
|
34
|
+
|
|
24
35
|
username: str
|
|
25
36
|
"""The username of the user from their Whop account."""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: whop-sdk
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.2
|
|
4
4
|
Summary: The official Python library for the Whop API
|
|
5
5
|
Project-URL: Homepage, https://github.com/whopio/whopsdk-python
|
|
6
6
|
Project-URL: Repository, https://github.com/whopio/whopsdk-python
|
|
@@ -30,7 +30,7 @@ Requires-Dist: sniffio
|
|
|
30
30
|
Requires-Dist: typing-extensions<5,>=4.10
|
|
31
31
|
Provides-Extra: aiohttp
|
|
32
32
|
Requires-Dist: aiohttp; extra == 'aiohttp'
|
|
33
|
-
Requires-Dist: httpx-aiohttp>=0.1.
|
|
33
|
+
Requires-Dist: httpx-aiohttp>=0.1.9; extra == 'aiohttp'
|
|
34
34
|
Provides-Extra: webhooks
|
|
35
35
|
Requires-Dist: standardwebhooks; extra == 'webhooks'
|
|
36
36
|
Description-Content-Type: text/markdown
|