whop-sdk 0.0.10__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.
- whop_sdk/__init__.py +94 -0
- whop_sdk/_base_client.py +1995 -0
- whop_sdk/_client.py +800 -0
- whop_sdk/_compat.py +219 -0
- whop_sdk/_constants.py +14 -0
- whop_sdk/_exceptions.py +112 -0
- whop_sdk/_files.py +123 -0
- whop_sdk/_models.py +857 -0
- whop_sdk/_qs.py +150 -0
- whop_sdk/_resource.py +43 -0
- whop_sdk/_response.py +830 -0
- whop_sdk/_streaming.py +333 -0
- whop_sdk/_types.py +260 -0
- whop_sdk/_utils/__init__.py +64 -0
- whop_sdk/_utils/_compat.py +45 -0
- whop_sdk/_utils/_datetime_parse.py +136 -0
- whop_sdk/_utils/_logs.py +25 -0
- whop_sdk/_utils/_proxy.py +65 -0
- whop_sdk/_utils/_reflection.py +42 -0
- whop_sdk/_utils/_resources_proxy.py +24 -0
- whop_sdk/_utils/_streams.py +12 -0
- whop_sdk/_utils/_sync.py +58 -0
- whop_sdk/_utils/_transform.py +457 -0
- whop_sdk/_utils/_typing.py +156 -0
- whop_sdk/_utils/_utils.py +421 -0
- whop_sdk/_version.py +4 -0
- whop_sdk/lib/.keep +4 -0
- whop_sdk/pagination.py +61 -0
- whop_sdk/py.typed +0 -0
- whop_sdk/resources/__init__.py +540 -0
- whop_sdk/resources/access_tokens.py +341 -0
- whop_sdk/resources/account_links.py +211 -0
- whop_sdk/resources/app_builds.py +587 -0
- whop_sdk/resources/apps.py +684 -0
- whop_sdk/resources/authorized_users.py +353 -0
- whop_sdk/resources/chat_channels.py +469 -0
- whop_sdk/resources/checkout_configurations.py +776 -0
- whop_sdk/resources/companies.py +465 -0
- whop_sdk/resources/course_chapters.py +602 -0
- whop_sdk/resources/course_lesson_interactions.py +343 -0
- whop_sdk/resources/course_lessons.py +1040 -0
- whop_sdk/resources/course_students.py +327 -0
- whop_sdk/resources/courses.py +776 -0
- whop_sdk/resources/disputes.py +693 -0
- whop_sdk/resources/entries.py +556 -0
- whop_sdk/resources/experiences.py +983 -0
- whop_sdk/resources/forum_posts.py +656 -0
- whop_sdk/resources/forums.py +446 -0
- whop_sdk/resources/invoices.py +1099 -0
- whop_sdk/resources/ledger_accounts.py +171 -0
- whop_sdk/resources/members.py +429 -0
- whop_sdk/resources/memberships.py +818 -0
- whop_sdk/resources/messages.py +558 -0
- whop_sdk/resources/notifications.py +388 -0
- whop_sdk/resources/payment_tokens.py +359 -0
- whop_sdk/resources/payments.py +1040 -0
- whop_sdk/resources/plans.py +1001 -0
- whop_sdk/resources/products.py +970 -0
- whop_sdk/resources/promo_codes.py +668 -0
- whop_sdk/resources/reactions.py +423 -0
- whop_sdk/resources/refunds.py +347 -0
- whop_sdk/resources/reviews.py +332 -0
- whop_sdk/resources/setup_intents.py +349 -0
- whop_sdk/resources/shipments.py +451 -0
- whop_sdk/resources/support_channels.py +455 -0
- whop_sdk/resources/transfers.py +513 -0
- whop_sdk/resources/users.py +248 -0
- whop_sdk/resources/webhooks.py +69 -0
- whop_sdk/resources/withdrawals.py +341 -0
- whop_sdk/types/__init__.py +262 -0
- whop_sdk/types/access_token_create_params.py +64 -0
- whop_sdk/types/access_token_create_response.py +15 -0
- whop_sdk/types/account_link_create_params.py +27 -0
- whop_sdk/types/account_link_create_response.py +15 -0
- whop_sdk/types/app_build_create_params.py +72 -0
- whop_sdk/types/app_build_list_params.py +42 -0
- whop_sdk/types/app_build_list_response.py +50 -0
- whop_sdk/types/app_create_params.py +19 -0
- whop_sdk/types/app_list_params.py +59 -0
- whop_sdk/types/app_list_response.py +110 -0
- whop_sdk/types/app_type.py +7 -0
- whop_sdk/types/app_update_params.py +67 -0
- whop_sdk/types/assessment_question_types.py +7 -0
- whop_sdk/types/authorized_user_list_params.py +41 -0
- whop_sdk/types/authorized_user_list_response.py +33 -0
- whop_sdk/types/authorized_user_retrieve_response.py +33 -0
- whop_sdk/types/billing_reasons.py +9 -0
- whop_sdk/types/card_brands.py +25 -0
- whop_sdk/types/chat_channel_list_params.py +28 -0
- whop_sdk/types/chat_channel_list_response.py +43 -0
- whop_sdk/types/chat_channel_update_params.py +32 -0
- whop_sdk/types/checkout_configuration_create_params.py +373 -0
- whop_sdk/types/checkout_configuration_list_params.py +41 -0
- whop_sdk/types/checkout_configuration_list_response.py +104 -0
- whop_sdk/types/checkout_modes.py +7 -0
- whop_sdk/types/company_create_params.py +22 -0
- whop_sdk/types/company_list_params.py +38 -0
- whop_sdk/types/company_list_response.py +76 -0
- whop_sdk/types/course.py +122 -0
- whop_sdk/types/course_chapter.py +32 -0
- whop_sdk/types/course_chapter_create_params.py +16 -0
- whop_sdk/types/course_chapter_delete_response.py +7 -0
- whop_sdk/types/course_chapter_list_params.py +25 -0
- whop_sdk/types/course_chapter_list_response.py +16 -0
- whop_sdk/types/course_chapter_update_params.py +12 -0
- whop_sdk/types/course_create_params.py +78 -0
- whop_sdk/types/course_delete_response.py +7 -0
- whop_sdk/types/course_lesson_create_params.py +63 -0
- whop_sdk/types/course_lesson_delete_response.py +7 -0
- whop_sdk/types/course_lesson_interaction_completed_webhook_event.py +26 -0
- whop_sdk/types/course_lesson_interaction_list_params.py +34 -0
- whop_sdk/types/course_lesson_list_params.py +28 -0
- whop_sdk/types/course_lesson_list_response.py +57 -0
- whop_sdk/types/course_lesson_mark_as_completed_response.py +7 -0
- whop_sdk/types/course_lesson_start_response.py +7 -0
- whop_sdk/types/course_lesson_submit_assessment_params.py +26 -0
- whop_sdk/types/course_lesson_submit_assessment_response.py +62 -0
- whop_sdk/types/course_lesson_update_params.py +222 -0
- whop_sdk/types/course_list_params.py +28 -0
- whop_sdk/types/course_list_response.py +90 -0
- whop_sdk/types/course_student_list_params.py +28 -0
- whop_sdk/types/course_student_list_response.py +42 -0
- whop_sdk/types/course_student_retrieve_response.py +61 -0
- whop_sdk/types/course_update_params.py +114 -0
- whop_sdk/types/course_visibilities.py +7 -0
- whop_sdk/types/dispute.py +284 -0
- whop_sdk/types/dispute_created_webhook_event.py +26 -0
- whop_sdk/types/dispute_list_params.py +38 -0
- whop_sdk/types/dispute_list_response.py +77 -0
- whop_sdk/types/dispute_statuses.py +17 -0
- whop_sdk/types/dispute_update_evidence_params.py +159 -0
- whop_sdk/types/dispute_updated_webhook_event.py +26 -0
- whop_sdk/types/embed_type.py +7 -0
- whop_sdk/types/entry_approve_response.py +10 -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/entry_list_params.py +52 -0
- whop_sdk/types/entry_list_response.py +56 -0
- whop_sdk/types/experience_attach_params.py +12 -0
- whop_sdk/types/experience_create_params.py +22 -0
- whop_sdk/types/experience_delete_response.py +7 -0
- whop_sdk/types/experience_detach_params.py +12 -0
- whop_sdk/types/experience_duplicate_params.py +13 -0
- whop_sdk/types/experience_list_params.py +40 -0
- whop_sdk/types/experience_list_response.py +73 -0
- whop_sdk/types/experience_update_params.py +46 -0
- whop_sdk/types/forum_list_params.py +28 -0
- whop_sdk/types/forum_list_response.py +33 -0
- whop_sdk/types/forum_post_create_params.py +101 -0
- whop_sdk/types/forum_post_list_params.py +31 -0
- whop_sdk/types/forum_post_list_response.py +60 -0
- whop_sdk/types/forum_post_update_params.py +56 -0
- whop_sdk/types/forum_post_visibility_type.py +7 -0
- whop_sdk/types/forum_update_params.py +23 -0
- whop_sdk/types/invoice_create_params.py +515 -0
- whop_sdk/types/invoice_created_webhook_event.py +26 -0
- whop_sdk/types/invoice_list_params.py +53 -0
- whop_sdk/types/invoice_paid_webhook_event.py +26 -0
- whop_sdk/types/invoice_past_due_webhook_event.py +26 -0
- whop_sdk/types/invoice_void_response.py +7 -0
- whop_sdk/types/invoice_voided_webhook_event.py +26 -0
- whop_sdk/types/languages.py +30 -0
- whop_sdk/types/ledger_account_retrieve_response.py +93 -0
- whop_sdk/types/lesson.py +219 -0
- whop_sdk/types/lesson_types.py +7 -0
- whop_sdk/types/lesson_visibilities.py +7 -0
- whop_sdk/types/member_list_params.py +73 -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_cancel_params.py +13 -0
- whop_sdk/types/membership_deactivated_webhook_event.py +29 -0
- whop_sdk/types/membership_list_params.py +73 -0
- whop_sdk/types/membership_list_response.py +128 -0
- whop_sdk/types/membership_pause_params.py +16 -0
- whop_sdk/types/membership_update_params.py +13 -0
- whop_sdk/types/message_create_params.py +63 -0
- whop_sdk/types/message_list_params.py +30 -0
- whop_sdk/types/message_list_response.py +90 -0
- whop_sdk/types/message_update_params.py +45 -0
- whop_sdk/types/notification_create_params.py +93 -0
- whop_sdk/types/notification_create_response.py +10 -0
- whop_sdk/types/payment_create_params.py +162 -0
- whop_sdk/types/payment_failed_webhook_event.py +26 -0
- whop_sdk/types/payment_list_params.py +67 -0
- whop_sdk/types/payment_list_response.py +273 -0
- whop_sdk/types/payment_method_types.py +94 -0
- whop_sdk/types/payment_pending_webhook_event.py +26 -0
- whop_sdk/types/payment_provider.py +9 -0
- whop_sdk/types/payment_refund_params.py +13 -0
- whop_sdk/types/payment_succeeded_webhook_event.py +26 -0
- whop_sdk/types/payment_token_list_params.py +38 -0
- whop_sdk/types/payment_token_list_response.py +41 -0
- whop_sdk/types/payment_token_retrieve_params.py +12 -0
- whop_sdk/types/payment_token_retrieve_response.py +41 -0
- whop_sdk/types/plan_create_params.py +162 -0
- whop_sdk/types/plan_delete_response.py +7 -0
- whop_sdk/types/plan_list_params.py +57 -0
- whop_sdk/types/plan_list_response.py +128 -0
- whop_sdk/types/plan_update_params.py +155 -0
- whop_sdk/types/product_create_params.py +147 -0
- whop_sdk/types/product_delete_response.py +7 -0
- whop_sdk/types/product_list_params.py +49 -0
- whop_sdk/types/product_update_params.py +82 -0
- whop_sdk/types/promo_code.py +90 -0
- whop_sdk/types/promo_code_create_params.py +70 -0
- whop_sdk/types/promo_code_delete_response.py +7 -0
- whop_sdk/types/promo_code_list_params.py +45 -0
- whop_sdk/types/promo_code_list_response.py +79 -0
- whop_sdk/types/promo_code_status.py +7 -0
- whop_sdk/types/promo_duration.py +7 -0
- whop_sdk/types/reaction_create_params.py +19 -0
- whop_sdk/types/reaction_list_params.py +25 -0
- whop_sdk/types/reaction_list_response.py +32 -0
- whop_sdk/types/refund_created_webhook_event.py +154 -0
- whop_sdk/types/refund_list_params.py +38 -0
- whop_sdk/types/refund_list_response.py +53 -0
- whop_sdk/types/refund_reference_status.py +7 -0
- whop_sdk/types/refund_reference_type.py +9 -0
- whop_sdk/types/refund_retrieve_response.py +129 -0
- whop_sdk/types/refund_status.py +7 -0
- whop_sdk/types/refund_updated_webhook_event.py +154 -0
- whop_sdk/types/review_list_params.py +40 -0
- whop_sdk/types/review_list_response.py +78 -0
- whop_sdk/types/review_retrieve_response.py +103 -0
- whop_sdk/types/review_status.py +7 -0
- whop_sdk/types/setup_intent.py +111 -0
- whop_sdk/types/setup_intent_canceled_webhook_event.py +29 -0
- whop_sdk/types/setup_intent_list_params.py +38 -0
- whop_sdk/types/setup_intent_list_response.py +111 -0
- whop_sdk/types/setup_intent_requires_action_webhook_event.py +29 -0
- whop_sdk/types/setup_intent_status.py +7 -0
- whop_sdk/types/setup_intent_succeeded_webhook_event.py +29 -0
- whop_sdk/types/shared/__init__.py +62 -0
- whop_sdk/types/shared/access_level.py +7 -0
- whop_sdk/types/shared/access_pass_type.py +7 -0
- whop_sdk/types/shared/app.py +187 -0
- whop_sdk/types/shared/app_build.py +50 -0
- whop_sdk/types/shared/app_build_platforms.py +7 -0
- whop_sdk/types/shared/app_build_statuses.py +7 -0
- whop_sdk/types/shared/app_statuses.py +7 -0
- whop_sdk/types/shared/app_view_type.py +7 -0
- whop_sdk/types/shared/authorized_user_roles.py +9 -0
- whop_sdk/types/shared/business_types.py +22 -0
- whop_sdk/types/shared/chat_channel.py +43 -0
- whop_sdk/types/shared/checkout_configuration.py +104 -0
- whop_sdk/types/shared/collection_method.py +7 -0
- whop_sdk/types/shared/company.py +91 -0
- whop_sdk/types/shared/course_lesson_interaction.py +63 -0
- whop_sdk/types/shared/course_lesson_interaction_list_item.py +44 -0
- whop_sdk/types/shared/currency.py +93 -0
- whop_sdk/types/shared/custom_cta.py +21 -0
- whop_sdk/types/shared/direction.py +7 -0
- whop_sdk/types/shared/dms_post_types.py +7 -0
- whop_sdk/types/shared/email_notification_preferences.py +7 -0
- whop_sdk/types/shared/entry.py +70 -0
- whop_sdk/types/shared/entry_status.py +7 -0
- whop_sdk/types/shared/experience.py +91 -0
- whop_sdk/types/shared/forum.py +33 -0
- whop_sdk/types/shared/forum_post.py +60 -0
- whop_sdk/types/shared/friendly_receipt_status.py +24 -0
- whop_sdk/types/shared/global_affiliate_status.py +7 -0
- whop_sdk/types/shared/industry_types.py +67 -0
- whop_sdk/types/shared/invoice.py +64 -0
- whop_sdk/types/shared/invoice_list_item.py +64 -0
- whop_sdk/types/shared/invoice_status.py +7 -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/membership.py +128 -0
- whop_sdk/types/shared/membership_status.py +9 -0
- whop_sdk/types/shared/message.py +90 -0
- whop_sdk/types/shared/page_info.py +21 -0
- whop_sdk/types/shared/payment.py +273 -0
- whop_sdk/types/shared/plan.py +159 -0
- whop_sdk/types/shared/plan_type.py +7 -0
- whop_sdk/types/shared/product.py +132 -0
- whop_sdk/types/shared/product_list_item.py +57 -0
- whop_sdk/types/shared/promo_type.py +7 -0
- whop_sdk/types/shared/reaction.py +32 -0
- whop_sdk/types/shared/receipt_status.py +7 -0
- whop_sdk/types/shared/release_method.py +7 -0
- whop_sdk/types/shared/shipment.py +48 -0
- whop_sdk/types/shared/shipment_carrier.py +84 -0
- whop_sdk/types/shared/shipment_status.py +18 -0
- whop_sdk/types/shared/shipment_substatus.py +36 -0
- whop_sdk/types/shared/support_channel.py +39 -0
- whop_sdk/types/shared/tax_type.py +7 -0
- whop_sdk/types/shared/transfer.py +112 -0
- whop_sdk/types/shared/visibility.py +7 -0
- whop_sdk/types/shared/visibility_filter.py +9 -0
- whop_sdk/types/shared/who_can_comment_types.py +7 -0
- whop_sdk/types/shared/who_can_post.py +7 -0
- whop_sdk/types/shared/who_can_post_types.py +7 -0
- whop_sdk/types/shared/who_can_react.py +7 -0
- whop_sdk/types/shared_params/__init__.py +34 -0
- whop_sdk/types/shared_params/access_level.py +9 -0
- whop_sdk/types/shared_params/access_pass_type.py +9 -0
- whop_sdk/types/shared_params/app_build_platforms.py +9 -0
- whop_sdk/types/shared_params/app_build_statuses.py +9 -0
- whop_sdk/types/shared_params/app_statuses.py +9 -0
- whop_sdk/types/shared_params/app_view_type.py +9 -0
- whop_sdk/types/shared_params/authorized_user_roles.py +11 -0
- whop_sdk/types/shared_params/business_types.py +24 -0
- whop_sdk/types/shared_params/collection_method.py +9 -0
- whop_sdk/types/shared_params/currency.py +95 -0
- whop_sdk/types/shared_params/custom_cta.py +23 -0
- whop_sdk/types/shared_params/direction.py +9 -0
- whop_sdk/types/shared_params/email_notification_preferences.py +9 -0
- whop_sdk/types/shared_params/entry_status.py +9 -0
- whop_sdk/types/shared_params/friendly_receipt_status.py +26 -0
- whop_sdk/types/shared_params/global_affiliate_status.py +9 -0
- whop_sdk/types/shared_params/industry_types.py +69 -0
- whop_sdk/types/shared_params/invoice_status.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/membership_status.py +11 -0
- whop_sdk/types/shared_params/plan_type.py +9 -0
- whop_sdk/types/shared_params/promo_type.py +9 -0
- whop_sdk/types/shared_params/receipt_status.py +9 -0
- whop_sdk/types/shared_params/release_method.py +9 -0
- whop_sdk/types/shared_params/tax_type.py +9 -0
- whop_sdk/types/shared_params/visibility.py +9 -0
- whop_sdk/types/shared_params/visibility_filter.py +11 -0
- whop_sdk/types/shared_params/who_can_comment_types.py +9 -0
- whop_sdk/types/shared_params/who_can_post.py +9 -0
- whop_sdk/types/shared_params/who_can_post_types.py +9 -0
- whop_sdk/types/shared_params/who_can_react.py +9 -0
- whop_sdk/types/shipment_create_params.py +18 -0
- whop_sdk/types/shipment_list_params.py +31 -0
- whop_sdk/types/shipment_list_response.py +48 -0
- whop_sdk/types/support_channel_create_params.py +15 -0
- whop_sdk/types/support_channel_list_params.py +40 -0
- whop_sdk/types/support_channel_list_response.py +39 -0
- whop_sdk/types/transfer_create_params.py +39 -0
- whop_sdk/types/transfer_list_params.py +50 -0
- whop_sdk/types/transfer_list_response.py +38 -0
- whop_sdk/types/unwrap_webhook_event.py +52 -0
- whop_sdk/types/user_check_access_response.py +14 -0
- whop_sdk/types/user_retrieve_response.py +36 -0
- whop_sdk/types/withdrawal_fee_types.py +7 -0
- whop_sdk/types/withdrawal_list_params.py +38 -0
- whop_sdk/types/withdrawal_list_response.py +45 -0
- whop_sdk/types/withdrawal_retrieve_response.py +154 -0
- whop_sdk/types/withdrawal_speeds.py +7 -0
- whop_sdk/types/withdrawal_status.py +9 -0
- whop_sdk/types/withdrawal_types.py +7 -0
- whop_sdk-0.0.10.dist-info/METADATA +509 -0
- whop_sdk-0.0.10.dist-info/RECORD +352 -0
- whop_sdk-0.0.10.dist-info/WHEEL +4 -0
- whop_sdk-0.0.10.dist-info/licenses/LICENSE +201 -0
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from .course import Course as Course
|
|
6
|
+
from .lesson import Lesson as Lesson
|
|
7
|
+
from .shared import (
|
|
8
|
+
App as App,
|
|
9
|
+
Plan as Plan,
|
|
10
|
+
Entry as Entry,
|
|
11
|
+
Forum as Forum,
|
|
12
|
+
Company as Company,
|
|
13
|
+
Invoice as Invoice,
|
|
14
|
+
Message as Message,
|
|
15
|
+
Payment as Payment,
|
|
16
|
+
Product as Product,
|
|
17
|
+
TaxType as TaxType,
|
|
18
|
+
AppBuild as AppBuild,
|
|
19
|
+
Currency as Currency,
|
|
20
|
+
PageInfo as PageInfo,
|
|
21
|
+
PlanType as PlanType,
|
|
22
|
+
Reaction as Reaction,
|
|
23
|
+
Shipment as Shipment,
|
|
24
|
+
Transfer as Transfer,
|
|
25
|
+
CustomCta as CustomCta,
|
|
26
|
+
Direction as Direction,
|
|
27
|
+
ForumPost as ForumPost,
|
|
28
|
+
PromoType as PromoType,
|
|
29
|
+
Experience as Experience,
|
|
30
|
+
Membership as Membership,
|
|
31
|
+
Visibility as Visibility,
|
|
32
|
+
WhoCanPost as WhoCanPost,
|
|
33
|
+
AccessLevel as AccessLevel,
|
|
34
|
+
AppStatuses as AppStatuses,
|
|
35
|
+
AppViewType as AppViewType,
|
|
36
|
+
ChatChannel as ChatChannel,
|
|
37
|
+
EntryStatus as EntryStatus,
|
|
38
|
+
WhoCanReact as WhoCanReact,
|
|
39
|
+
DmsPostTypes as DmsPostTypes,
|
|
40
|
+
BusinessTypes as BusinessTypes,
|
|
41
|
+
IndustryTypes as IndustryTypes,
|
|
42
|
+
InvoiceStatus as InvoiceStatus,
|
|
43
|
+
ReceiptStatus as ReceiptStatus,
|
|
44
|
+
ReleaseMethod as ReleaseMethod,
|
|
45
|
+
AccessPassType as AccessPassType,
|
|
46
|
+
MemberStatuses as MemberStatuses,
|
|
47
|
+
ShipmentStatus as ShipmentStatus,
|
|
48
|
+
SupportChannel as SupportChannel,
|
|
49
|
+
InvoiceListItem as InvoiceListItem,
|
|
50
|
+
ProductListItem as ProductListItem,
|
|
51
|
+
ShipmentCarrier as ShipmentCarrier,
|
|
52
|
+
WhoCanPostTypes as WhoCanPostTypes,
|
|
53
|
+
AppBuildStatuses as AppBuildStatuses,
|
|
54
|
+
CollectionMethod as CollectionMethod,
|
|
55
|
+
MembershipStatus as MembershipStatus,
|
|
56
|
+
VisibilityFilter as VisibilityFilter,
|
|
57
|
+
AppBuildPlatforms as AppBuildPlatforms,
|
|
58
|
+
ShipmentSubstatus as ShipmentSubstatus,
|
|
59
|
+
WhoCanCommentTypes as WhoCanCommentTypes,
|
|
60
|
+
AuthorizedUserRoles as AuthorizedUserRoles,
|
|
61
|
+
CheckoutConfiguration as CheckoutConfiguration,
|
|
62
|
+
FriendlyReceiptStatus as FriendlyReceiptStatus,
|
|
63
|
+
GlobalAffiliateStatus as GlobalAffiliateStatus,
|
|
64
|
+
CourseLessonInteraction as CourseLessonInteraction,
|
|
65
|
+
MemberMostRecentActions as MemberMostRecentActions,
|
|
66
|
+
EmailNotificationPreferences as EmailNotificationPreferences,
|
|
67
|
+
CourseLessonInteractionListItem as CourseLessonInteractionListItem,
|
|
68
|
+
)
|
|
69
|
+
from .dispute import Dispute as Dispute
|
|
70
|
+
from .app_type import AppType as AppType
|
|
71
|
+
from .languages import Languages as Languages
|
|
72
|
+
from .embed_type import EmbedType as EmbedType
|
|
73
|
+
from .promo_code import PromoCode as PromoCode
|
|
74
|
+
from .card_brands import CardBrands as CardBrands
|
|
75
|
+
from .lesson_types import LessonTypes as LessonTypes
|
|
76
|
+
from .setup_intent import SetupIntent as SetupIntent
|
|
77
|
+
from .refund_status import RefundStatus as RefundStatus
|
|
78
|
+
from .review_status import ReviewStatus as ReviewStatus
|
|
79
|
+
from .checkout_modes import CheckoutModes as CheckoutModes
|
|
80
|
+
from .course_chapter import CourseChapter as CourseChapter
|
|
81
|
+
from .promo_duration import PromoDuration as PromoDuration
|
|
82
|
+
from .app_list_params import AppListParams as AppListParams
|
|
83
|
+
from .billing_reasons import BillingReasons as BillingReasons
|
|
84
|
+
from .dispute_statuses import DisputeStatuses as DisputeStatuses
|
|
85
|
+
from .payment_provider import PaymentProvider as PaymentProvider
|
|
86
|
+
from .plan_list_params import PlanListParams as PlanListParams
|
|
87
|
+
from .withdrawal_types import WithdrawalTypes as WithdrawalTypes
|
|
88
|
+
from .app_create_params import AppCreateParams as AppCreateParams
|
|
89
|
+
from .app_list_response import AppListResponse as AppListResponse
|
|
90
|
+
from .app_update_params import AppUpdateParams as AppUpdateParams
|
|
91
|
+
from .entry_list_params import EntryListParams as EntryListParams
|
|
92
|
+
from .forum_list_params import ForumListParams as ForumListParams
|
|
93
|
+
from .promo_code_status import PromoCodeStatus as PromoCodeStatus
|
|
94
|
+
from .withdrawal_speeds import WithdrawalSpeeds as WithdrawalSpeeds
|
|
95
|
+
from .withdrawal_status import WithdrawalStatus as WithdrawalStatus
|
|
96
|
+
from .course_list_params import CourseListParams as CourseListParams
|
|
97
|
+
from .member_list_params import MemberListParams as MemberListParams
|
|
98
|
+
from .plan_create_params import PlanCreateParams as PlanCreateParams
|
|
99
|
+
from .plan_list_response import PlanListResponse as PlanListResponse
|
|
100
|
+
from .plan_update_params import PlanUpdateParams as PlanUpdateParams
|
|
101
|
+
from .refund_list_params import RefundListParams as RefundListParams
|
|
102
|
+
from .review_list_params import ReviewListParams as ReviewListParams
|
|
103
|
+
from .company_list_params import CompanyListParams as CompanyListParams
|
|
104
|
+
from .course_visibilities import CourseVisibilities as CourseVisibilities
|
|
105
|
+
from .dispute_list_params import DisputeListParams as DisputeListParams
|
|
106
|
+
from .entry_list_response import EntryListResponse as EntryListResponse
|
|
107
|
+
from .forum_list_response import ForumListResponse as ForumListResponse
|
|
108
|
+
from .forum_update_params import ForumUpdateParams as ForumUpdateParams
|
|
109
|
+
from .invoice_list_params import InvoiceListParams as InvoiceListParams
|
|
110
|
+
from .lesson_visibilities import LessonVisibilities as LessonVisibilities
|
|
111
|
+
from .message_list_params import MessageListParams as MessageListParams
|
|
112
|
+
from .payment_list_params import PaymentListParams as PaymentListParams
|
|
113
|
+
from .product_list_params import ProductListParams as ProductListParams
|
|
114
|
+
from .setup_intent_status import SetupIntentStatus as SetupIntentStatus
|
|
115
|
+
from .course_create_params import CourseCreateParams as CourseCreateParams
|
|
116
|
+
from .course_list_response import CourseListResponse as CourseListResponse
|
|
117
|
+
from .course_update_params import CourseUpdateParams as CourseUpdateParams
|
|
118
|
+
from .member_list_response import MemberListResponse as MemberListResponse
|
|
119
|
+
from .payment_method_types import PaymentMethodTypes as PaymentMethodTypes
|
|
120
|
+
from .plan_delete_response import PlanDeleteResponse as PlanDeleteResponse
|
|
121
|
+
from .reaction_list_params import ReactionListParams as ReactionListParams
|
|
122
|
+
from .refund_list_response import RefundListResponse as RefundListResponse
|
|
123
|
+
from .review_list_response import ReviewListResponse as ReviewListResponse
|
|
124
|
+
from .shipment_list_params import ShipmentListParams as ShipmentListParams
|
|
125
|
+
from .transfer_list_params import TransferListParams as TransferListParams
|
|
126
|
+
from .unwrap_webhook_event import UnwrapWebhookEvent as UnwrapWebhookEvent
|
|
127
|
+
from .withdrawal_fee_types import WithdrawalFeeTypes as WithdrawalFeeTypes
|
|
128
|
+
from .app_build_list_params import AppBuildListParams as AppBuildListParams
|
|
129
|
+
from .company_create_params import CompanyCreateParams as CompanyCreateParams
|
|
130
|
+
from .company_list_response import CompanyListResponse as CompanyListResponse
|
|
131
|
+
from .dispute_list_response import DisputeListResponse as DisputeListResponse
|
|
132
|
+
from .invoice_create_params import InvoiceCreateParams as InvoiceCreateParams
|
|
133
|
+
from .invoice_void_response import InvoiceVoidResponse as InvoiceVoidResponse
|
|
134
|
+
from .message_create_params import MessageCreateParams as MessageCreateParams
|
|
135
|
+
from .message_list_response import MessageListResponse as MessageListResponse
|
|
136
|
+
from .message_update_params import MessageUpdateParams as MessageUpdateParams
|
|
137
|
+
from .payment_create_params import PaymentCreateParams as PaymentCreateParams
|
|
138
|
+
from .payment_list_response import PaymentListResponse as PaymentListResponse
|
|
139
|
+
from .payment_refund_params import PaymentRefundParams as PaymentRefundParams
|
|
140
|
+
from .product_create_params import ProductCreateParams as ProductCreateParams
|
|
141
|
+
from .product_update_params import ProductUpdateParams as ProductUpdateParams
|
|
142
|
+
from .refund_reference_type import RefundReferenceType as RefundReferenceType
|
|
143
|
+
from .course_delete_response import CourseDeleteResponse as CourseDeleteResponse
|
|
144
|
+
from .entry_approve_response import EntryApproveResponse as EntryApproveResponse
|
|
145
|
+
from .experience_list_params import ExperienceListParams as ExperienceListParams
|
|
146
|
+
from .forum_post_list_params import ForumPostListParams as ForumPostListParams
|
|
147
|
+
from .membership_list_params import MembershipListParams as MembershipListParams
|
|
148
|
+
from .promo_code_list_params import PromoCodeListParams as PromoCodeListParams
|
|
149
|
+
from .reaction_create_params import ReactionCreateParams as ReactionCreateParams
|
|
150
|
+
from .reaction_list_response import ReactionListResponse as ReactionListResponse
|
|
151
|
+
from .shipment_create_params import ShipmentCreateParams as ShipmentCreateParams
|
|
152
|
+
from .shipment_list_response import ShipmentListResponse as ShipmentListResponse
|
|
153
|
+
from .transfer_create_params import TransferCreateParams as TransferCreateParams
|
|
154
|
+
from .transfer_list_response import TransferListResponse as TransferListResponse
|
|
155
|
+
from .user_retrieve_response import UserRetrieveResponse as UserRetrieveResponse
|
|
156
|
+
from .withdrawal_list_params import WithdrawalListParams as WithdrawalListParams
|
|
157
|
+
from .app_build_create_params import AppBuildCreateParams as AppBuildCreateParams
|
|
158
|
+
from .app_build_list_response import AppBuildListResponse as AppBuildListResponse
|
|
159
|
+
from .membership_pause_params import MembershipPauseParams as MembershipPauseParams
|
|
160
|
+
from .product_delete_response import ProductDeleteResponse as ProductDeleteResponse
|
|
161
|
+
from .refund_reference_status import RefundReferenceStatus as RefundReferenceStatus
|
|
162
|
+
from .chat_channel_list_params import ChatChannelListParams as ChatChannelListParams
|
|
163
|
+
from .experience_attach_params import ExperienceAttachParams as ExperienceAttachParams
|
|
164
|
+
from .experience_create_params import ExperienceCreateParams as ExperienceCreateParams
|
|
165
|
+
from .experience_detach_params import ExperienceDetachParams as ExperienceDetachParams
|
|
166
|
+
from .experience_list_response import ExperienceListResponse as ExperienceListResponse
|
|
167
|
+
from .experience_update_params import ExperienceUpdateParams as ExperienceUpdateParams
|
|
168
|
+
from .forum_post_create_params import ForumPostCreateParams as ForumPostCreateParams
|
|
169
|
+
from .forum_post_list_response import ForumPostListResponse as ForumPostListResponse
|
|
170
|
+
from .forum_post_update_params import ForumPostUpdateParams as ForumPostUpdateParams
|
|
171
|
+
from .member_retrieve_response import MemberRetrieveResponse as MemberRetrieveResponse
|
|
172
|
+
from .membership_cancel_params import MembershipCancelParams as MembershipCancelParams
|
|
173
|
+
from .membership_list_response import MembershipListResponse as MembershipListResponse
|
|
174
|
+
from .membership_update_params import MembershipUpdateParams as MembershipUpdateParams
|
|
175
|
+
from .promo_code_create_params import PromoCodeCreateParams as PromoCodeCreateParams
|
|
176
|
+
from .promo_code_list_response import PromoCodeListResponse as PromoCodeListResponse
|
|
177
|
+
from .refund_retrieve_response import RefundRetrieveResponse as RefundRetrieveResponse
|
|
178
|
+
from .review_retrieve_response import ReviewRetrieveResponse as ReviewRetrieveResponse
|
|
179
|
+
from .setup_intent_list_params import SetupIntentListParams as SetupIntentListParams
|
|
180
|
+
from .withdrawal_list_response import WithdrawalListResponse as WithdrawalListResponse
|
|
181
|
+
from .assessment_question_types import AssessmentQuestionTypes as AssessmentQuestionTypes
|
|
182
|
+
from .course_lesson_list_params import CourseLessonListParams as CourseLessonListParams
|
|
183
|
+
from .payment_token_list_params import PaymentTokenListParams as PaymentTokenListParams
|
|
184
|
+
from .access_token_create_params import AccessTokenCreateParams as AccessTokenCreateParams
|
|
185
|
+
from .account_link_create_params import AccountLinkCreateParams as AccountLinkCreateParams
|
|
186
|
+
from .chat_channel_list_response import ChatChannelListResponse as ChatChannelListResponse
|
|
187
|
+
from .chat_channel_update_params import ChatChannelUpdateParams as ChatChannelUpdateParams
|
|
188
|
+
from .course_chapter_list_params import CourseChapterListParams as CourseChapterListParams
|
|
189
|
+
from .course_student_list_params import CourseStudentListParams as CourseStudentListParams
|
|
190
|
+
from .entry_denied_webhook_event import EntryDeniedWebhookEvent as EntryDeniedWebhookEvent
|
|
191
|
+
from .experience_delete_response import ExperienceDeleteResponse as ExperienceDeleteResponse
|
|
192
|
+
from .forum_post_visibility_type import ForumPostVisibilityType as ForumPostVisibilityType
|
|
193
|
+
from .invoice_paid_webhook_event import InvoicePaidWebhookEvent as InvoicePaidWebhookEvent
|
|
194
|
+
from .notification_create_params import NotificationCreateParams as NotificationCreateParams
|
|
195
|
+
from .promo_code_delete_response import PromoCodeDeleteResponse as PromoCodeDeleteResponse
|
|
196
|
+
from .setup_intent_list_response import SetupIntentListResponse as SetupIntentListResponse
|
|
197
|
+
from .user_check_access_response import UserCheckAccessResponse as UserCheckAccessResponse
|
|
198
|
+
from .authorized_user_list_params import AuthorizedUserListParams as AuthorizedUserListParams
|
|
199
|
+
from .course_lesson_create_params import CourseLessonCreateParams as CourseLessonCreateParams
|
|
200
|
+
from .course_lesson_list_response import CourseLessonListResponse as CourseLessonListResponse
|
|
201
|
+
from .course_lesson_update_params import CourseLessonUpdateParams as CourseLessonUpdateParams
|
|
202
|
+
from .entry_created_webhook_event import EntryCreatedWebhookEvent as EntryCreatedWebhookEvent
|
|
203
|
+
from .entry_deleted_webhook_event import EntryDeletedWebhookEvent as EntryDeletedWebhookEvent
|
|
204
|
+
from .experience_duplicate_params import ExperienceDuplicateParams as ExperienceDuplicateParams
|
|
205
|
+
from .payment_token_list_response import PaymentTokenListResponse as PaymentTokenListResponse
|
|
206
|
+
from .support_channel_list_params import SupportChannelListParams as SupportChannelListParams
|
|
207
|
+
from .access_token_create_response import AccessTokenCreateResponse as AccessTokenCreateResponse
|
|
208
|
+
from .account_link_create_response import AccountLinkCreateResponse as AccountLinkCreateResponse
|
|
209
|
+
from .course_chapter_create_params import CourseChapterCreateParams as CourseChapterCreateParams
|
|
210
|
+
from .course_chapter_list_response import CourseChapterListResponse as CourseChapterListResponse
|
|
211
|
+
from .course_chapter_update_params import CourseChapterUpdateParams as CourseChapterUpdateParams
|
|
212
|
+
from .course_lesson_start_response import CourseLessonStartResponse as CourseLessonStartResponse
|
|
213
|
+
from .course_student_list_response import CourseStudentListResponse as CourseStudentListResponse
|
|
214
|
+
from .entry_approved_webhook_event import EntryApprovedWebhookEvent as EntryApprovedWebhookEvent
|
|
215
|
+
from .invoice_voided_webhook_event import InvoiceVoidedWebhookEvent as InvoiceVoidedWebhookEvent
|
|
216
|
+
from .notification_create_response import NotificationCreateResponse as NotificationCreateResponse
|
|
217
|
+
from .payment_failed_webhook_event import PaymentFailedWebhookEvent as PaymentFailedWebhookEvent
|
|
218
|
+
from .refund_created_webhook_event import RefundCreatedWebhookEvent as RefundCreatedWebhookEvent
|
|
219
|
+
from .refund_updated_webhook_event import RefundUpdatedWebhookEvent as RefundUpdatedWebhookEvent
|
|
220
|
+
from .withdrawal_retrieve_response import WithdrawalRetrieveResponse as WithdrawalRetrieveResponse
|
|
221
|
+
from .authorized_user_list_response import AuthorizedUserListResponse as AuthorizedUserListResponse
|
|
222
|
+
from .course_lesson_delete_response import CourseLessonDeleteResponse as CourseLessonDeleteResponse
|
|
223
|
+
from .dispute_created_webhook_event import DisputeCreatedWebhookEvent as DisputeCreatedWebhookEvent
|
|
224
|
+
from .dispute_updated_webhook_event import DisputeUpdatedWebhookEvent as DisputeUpdatedWebhookEvent
|
|
225
|
+
from .invoice_created_webhook_event import InvoiceCreatedWebhookEvent as InvoiceCreatedWebhookEvent
|
|
226
|
+
from .payment_pending_webhook_event import PaymentPendingWebhookEvent as PaymentPendingWebhookEvent
|
|
227
|
+
from .payment_token_retrieve_params import PaymentTokenRetrieveParams as PaymentTokenRetrieveParams
|
|
228
|
+
from .support_channel_create_params import SupportChannelCreateParams as SupportChannelCreateParams
|
|
229
|
+
from .support_channel_list_response import SupportChannelListResponse as SupportChannelListResponse
|
|
230
|
+
from .course_chapter_delete_response import CourseChapterDeleteResponse as CourseChapterDeleteResponse
|
|
231
|
+
from .dispute_update_evidence_params import DisputeUpdateEvidenceParams as DisputeUpdateEvidenceParams
|
|
232
|
+
from .invoice_past_due_webhook_event import InvoicePastDueWebhookEvent as InvoicePastDueWebhookEvent
|
|
233
|
+
from .payment_succeeded_webhook_event import PaymentSucceededWebhookEvent as PaymentSucceededWebhookEvent
|
|
234
|
+
from .payment_token_retrieve_response import PaymentTokenRetrieveResponse as PaymentTokenRetrieveResponse
|
|
235
|
+
from .course_student_retrieve_response import CourseStudentRetrieveResponse as CourseStudentRetrieveResponse
|
|
236
|
+
from .ledger_account_retrieve_response import LedgerAccountRetrieveResponse as LedgerAccountRetrieveResponse
|
|
237
|
+
from .authorized_user_retrieve_response import AuthorizedUserRetrieveResponse as AuthorizedUserRetrieveResponse
|
|
238
|
+
from .checkout_configuration_list_params import CheckoutConfigurationListParams as CheckoutConfigurationListParams
|
|
239
|
+
from .membership_activated_webhook_event import MembershipActivatedWebhookEvent as MembershipActivatedWebhookEvent
|
|
240
|
+
from .setup_intent_canceled_webhook_event import SetupIntentCanceledWebhookEvent as SetupIntentCanceledWebhookEvent
|
|
241
|
+
from .checkout_configuration_create_params import CheckoutConfigurationCreateParams as CheckoutConfigurationCreateParams
|
|
242
|
+
from .checkout_configuration_list_response import CheckoutConfigurationListResponse as CheckoutConfigurationListResponse
|
|
243
|
+
from .membership_deactivated_webhook_event import MembershipDeactivatedWebhookEvent as MembershipDeactivatedWebhookEvent
|
|
244
|
+
from .setup_intent_succeeded_webhook_event import SetupIntentSucceededWebhookEvent as SetupIntentSucceededWebhookEvent
|
|
245
|
+
from .course_lesson_interaction_list_params import (
|
|
246
|
+
CourseLessonInteractionListParams as CourseLessonInteractionListParams,
|
|
247
|
+
)
|
|
248
|
+
from .course_lesson_submit_assessment_params import (
|
|
249
|
+
CourseLessonSubmitAssessmentParams as CourseLessonSubmitAssessmentParams,
|
|
250
|
+
)
|
|
251
|
+
from .course_lesson_mark_as_completed_response import (
|
|
252
|
+
CourseLessonMarkAsCompletedResponse as CourseLessonMarkAsCompletedResponse,
|
|
253
|
+
)
|
|
254
|
+
from .course_lesson_submit_assessment_response import (
|
|
255
|
+
CourseLessonSubmitAssessmentResponse as CourseLessonSubmitAssessmentResponse,
|
|
256
|
+
)
|
|
257
|
+
from .setup_intent_requires_action_webhook_event import (
|
|
258
|
+
SetupIntentRequiresActionWebhookEvent as SetupIntentRequiresActionWebhookEvent,
|
|
259
|
+
)
|
|
260
|
+
from .course_lesson_interaction_completed_webhook_event import (
|
|
261
|
+
CourseLessonInteractionCompletedWebhookEvent as CourseLessonInteractionCompletedWebhookEvent,
|
|
262
|
+
)
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Union, Optional
|
|
6
|
+
from datetime import datetime
|
|
7
|
+
from typing_extensions import Required, Annotated, TypeAlias, TypedDict
|
|
8
|
+
|
|
9
|
+
from .._types import SequenceNotStr
|
|
10
|
+
from .._utils import PropertyInfo
|
|
11
|
+
|
|
12
|
+
__all__ = ["AccessTokenCreateParams", "CreateAccessTokenInputWithCompanyID", "CreateAccessTokenInputWithUserID"]
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class CreateAccessTokenInputWithCompanyID(TypedDict, total=False):
|
|
16
|
+
company_id: Required[str]
|
|
17
|
+
"""The ID of the Company to generate the token for.
|
|
18
|
+
|
|
19
|
+
The API key must have permission to access this Company, such as the being the
|
|
20
|
+
company the API key belongs to or a sub-merchant of it
|
|
21
|
+
"""
|
|
22
|
+
|
|
23
|
+
expires_at: Annotated[Union[str, datetime, None], PropertyInfo(format="iso8601")]
|
|
24
|
+
"""The expiration timestamp for the access token.
|
|
25
|
+
|
|
26
|
+
If not provided, a default expiration time of 1 hour will be used. The
|
|
27
|
+
expiration can be set to a maximum of 3 hours from the current time.
|
|
28
|
+
"""
|
|
29
|
+
|
|
30
|
+
scoped_actions: Optional[SequenceNotStr[str]]
|
|
31
|
+
"""Array of desired scoped actions for the access token.
|
|
32
|
+
|
|
33
|
+
If sent as an empty array or not provided, all permissions from the API key
|
|
34
|
+
making the request will be available on the token. If sending an explicit list,
|
|
35
|
+
they must be a subset of the API keys's existing permissions. Otherwise, an
|
|
36
|
+
error will be raised.
|
|
37
|
+
"""
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
class CreateAccessTokenInputWithUserID(TypedDict, total=False):
|
|
41
|
+
user_id: Required[str]
|
|
42
|
+
"""The ID of the User to generate the token for.
|
|
43
|
+
|
|
44
|
+
The API key must have permission to access this User.
|
|
45
|
+
"""
|
|
46
|
+
|
|
47
|
+
expires_at: Annotated[Union[str, datetime, None], PropertyInfo(format="iso8601")]
|
|
48
|
+
"""The expiration timestamp for the access token.
|
|
49
|
+
|
|
50
|
+
If not provided, a default expiration time of 1 hour will be used. The
|
|
51
|
+
expiration can be set to a maximum of 3 hours from the current time.
|
|
52
|
+
"""
|
|
53
|
+
|
|
54
|
+
scoped_actions: Optional[SequenceNotStr[str]]
|
|
55
|
+
"""Array of desired scoped actions for the access token.
|
|
56
|
+
|
|
57
|
+
If sent as an empty array or not provided, all permissions from the API key
|
|
58
|
+
making the request will be available on the token. If sending an explicit list,
|
|
59
|
+
they must be a subset of the API keys's existing permissions. Otherwise, an
|
|
60
|
+
error will be raised.
|
|
61
|
+
"""
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
AccessTokenCreateParams: TypeAlias = Union[CreateAccessTokenInputWithCompanyID, CreateAccessTokenInputWithUserID]
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from datetime import datetime
|
|
4
|
+
|
|
5
|
+
from .._models import BaseModel
|
|
6
|
+
|
|
7
|
+
__all__ = ["AccessTokenCreateResponse"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class AccessTokenCreateResponse(BaseModel):
|
|
11
|
+
token: str
|
|
12
|
+
"""The JWT access token string."""
|
|
13
|
+
|
|
14
|
+
expires_at: datetime
|
|
15
|
+
"""The expiration timestamp of the access token."""
|
|
@@ -0,0 +1,27 @@
|
|
|
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, Required, TypedDict
|
|
6
|
+
|
|
7
|
+
__all__ = ["AccountLinkCreateParams"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class AccountLinkCreateParams(TypedDict, total=False):
|
|
11
|
+
company_id: Required[str]
|
|
12
|
+
"""The ID of the Company to generate the url for.
|
|
13
|
+
|
|
14
|
+
The company must be a sub-merchant of the API key's company.
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
refresh_url: Required[str]
|
|
18
|
+
"""
|
|
19
|
+
The URL to redirect to if the session expires and needs to be re-authenticated
|
|
20
|
+
due to the token expiring.
|
|
21
|
+
"""
|
|
22
|
+
|
|
23
|
+
return_url: Required[str]
|
|
24
|
+
"""The URL to redirect to when the customer wants to return to your site."""
|
|
25
|
+
|
|
26
|
+
use_case: Required[Literal["account_onboarding", "payouts_portal"]]
|
|
27
|
+
"""The use case for which the link will be used."""
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from datetime import datetime
|
|
4
|
+
|
|
5
|
+
from .._models import BaseModel
|
|
6
|
+
|
|
7
|
+
__all__ = ["AccountLinkCreateResponse"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class AccountLinkCreateResponse(BaseModel):
|
|
11
|
+
expires_at: datetime
|
|
12
|
+
"""The expiration timestamp of the url."""
|
|
13
|
+
|
|
14
|
+
url: str
|
|
15
|
+
"""The URL to navigate the user to."""
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import List, Union, Optional
|
|
6
|
+
from typing_extensions import Required, TypeAlias, TypedDict
|
|
7
|
+
|
|
8
|
+
from .shared.app_view_type import AppViewType
|
|
9
|
+
from .shared.app_build_platforms import AppBuildPlatforms
|
|
10
|
+
|
|
11
|
+
__all__ = [
|
|
12
|
+
"AppBuildCreateParams",
|
|
13
|
+
"Attachment",
|
|
14
|
+
"AttachmentAttachmentInputWithDirectUploadID",
|
|
15
|
+
"AttachmentAttachmentInputWithID",
|
|
16
|
+
]
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class AppBuildCreateParams(TypedDict, total=False):
|
|
20
|
+
attachment: Required[Attachment]
|
|
21
|
+
"""Attachment input for the app build file.
|
|
22
|
+
|
|
23
|
+
This should be an upload in .zip format. The zip should contain at least one
|
|
24
|
+
main_js_bundle.hbc file and optionally an assets folder next to it.
|
|
25
|
+
"""
|
|
26
|
+
|
|
27
|
+
checksum: Required[str]
|
|
28
|
+
"""Checksum of the app build file.
|
|
29
|
+
|
|
30
|
+
This is generated by the client and used to verify the integrity of the file
|
|
31
|
+
that is submitted when un-packaged later on a device.
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
platform: Required[AppBuildPlatforms]
|
|
35
|
+
"""The platform of the app build (ios, android, web)"""
|
|
36
|
+
|
|
37
|
+
ai_prompt_id: Optional[str]
|
|
38
|
+
"""The id of the ai prompt that created this build"""
|
|
39
|
+
|
|
40
|
+
app_id: Optional[str]
|
|
41
|
+
"""The ID of the app to create a build for.
|
|
42
|
+
|
|
43
|
+
By default the current app from the api key is used.
|
|
44
|
+
"""
|
|
45
|
+
|
|
46
|
+
supported_app_view_types: Optional[List[AppViewType]]
|
|
47
|
+
"""Supported app view types for the app build.
|
|
48
|
+
|
|
49
|
+
A build can specify multiple view types, but should only specify ones that its
|
|
50
|
+
code supports.
|
|
51
|
+
"""
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
class AttachmentAttachmentInputWithDirectUploadID(TypedDict, total=False):
|
|
55
|
+
direct_upload_id: Required[str]
|
|
56
|
+
"""This ID should be used the first time you upload an attachment.
|
|
57
|
+
|
|
58
|
+
It is the ID of the direct upload that was created when uploading the file to S3
|
|
59
|
+
via the mediaDirectUpload mutation.
|
|
60
|
+
"""
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
class AttachmentAttachmentInputWithID(TypedDict, total=False):
|
|
64
|
+
id: Required[str]
|
|
65
|
+
"""The ID of an existing attachment object.
|
|
66
|
+
|
|
67
|
+
Use this when updating a resource and keeping a subset of the attachments. Don't
|
|
68
|
+
use this unless you know what you're doing.
|
|
69
|
+
"""
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
Attachment: TypeAlias = Union[AttachmentAttachmentInputWithDirectUploadID, AttachmentAttachmentInputWithID]
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Union, Optional
|
|
6
|
+
from datetime import datetime
|
|
7
|
+
from typing_extensions import Required, Annotated, TypedDict
|
|
8
|
+
|
|
9
|
+
from .._utils import PropertyInfo
|
|
10
|
+
from .shared.app_build_statuses import AppBuildStatuses
|
|
11
|
+
from .shared.app_build_platforms import AppBuildPlatforms
|
|
12
|
+
|
|
13
|
+
__all__ = ["AppBuildListParams"]
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class AppBuildListParams(TypedDict, total=False):
|
|
17
|
+
app_id: Required[str]
|
|
18
|
+
"""The ID of the app to filter app builds by"""
|
|
19
|
+
|
|
20
|
+
after: Optional[str]
|
|
21
|
+
"""Returns the elements in the list that come after the specified cursor."""
|
|
22
|
+
|
|
23
|
+
before: Optional[str]
|
|
24
|
+
"""Returns the elements in the list that come before the specified cursor."""
|
|
25
|
+
|
|
26
|
+
created_after: Annotated[Union[str, datetime, None], PropertyInfo(format="iso8601")]
|
|
27
|
+
"""The minimum creation date to filter by"""
|
|
28
|
+
|
|
29
|
+
created_before: Annotated[Union[str, datetime, None], PropertyInfo(format="iso8601")]
|
|
30
|
+
"""The maximum creation date to filter by"""
|
|
31
|
+
|
|
32
|
+
first: Optional[int]
|
|
33
|
+
"""Returns the first _n_ elements from the list."""
|
|
34
|
+
|
|
35
|
+
last: Optional[int]
|
|
36
|
+
"""Returns the last _n_ elements from the list."""
|
|
37
|
+
|
|
38
|
+
platform: Optional[AppBuildPlatforms]
|
|
39
|
+
"""The different platforms an app build can target."""
|
|
40
|
+
|
|
41
|
+
status: Optional[AppBuildStatuses]
|
|
42
|
+
"""The different statuses an AppBuild can be in."""
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List, Optional
|
|
4
|
+
from datetime import datetime
|
|
5
|
+
|
|
6
|
+
from .._models import BaseModel
|
|
7
|
+
from .shared.app_view_type import AppViewType
|
|
8
|
+
from .shared.app_build_statuses import AppBuildStatuses
|
|
9
|
+
from .shared.app_build_platforms import AppBuildPlatforms
|
|
10
|
+
|
|
11
|
+
__all__ = ["AppBuildListResponse"]
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class AppBuildListResponse(BaseModel):
|
|
15
|
+
id: str
|
|
16
|
+
"""The ID of the app build. It will look like apbu_xxxxx."""
|
|
17
|
+
|
|
18
|
+
checksum: str
|
|
19
|
+
"""
|
|
20
|
+
This is generated by the client and used to verify the integrity of the file
|
|
21
|
+
that is submitted. It is a SHA256 hash of the app build file.
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
created_at: datetime
|
|
25
|
+
"""When this app build was created."""
|
|
26
|
+
|
|
27
|
+
file_url: str
|
|
28
|
+
"""The URL to download the app build .zip file."""
|
|
29
|
+
|
|
30
|
+
is_production: bool
|
|
31
|
+
"""Whether this app build is currently being used in production."""
|
|
32
|
+
|
|
33
|
+
platform: AppBuildPlatforms
|
|
34
|
+
"""The platform of the app build (ios, android, web)"""
|
|
35
|
+
|
|
36
|
+
review_message: Optional[str] = None
|
|
37
|
+
"""The review message for the app build, if any.
|
|
38
|
+
|
|
39
|
+
This is populated when the build is rejected and there is a reason specified by
|
|
40
|
+
the reviewer.
|
|
41
|
+
"""
|
|
42
|
+
|
|
43
|
+
status: AppBuildStatuses
|
|
44
|
+
"""The status of the app build (draft, approved, rejected, pending, etc)"""
|
|
45
|
+
|
|
46
|
+
supported_app_view_types: List[AppViewType]
|
|
47
|
+
"""The supported app view types for the app build.
|
|
48
|
+
|
|
49
|
+
These are the views that the developer has specified that this build supports.
|
|
50
|
+
"""
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Optional
|
|
6
|
+
from typing_extensions import Required, TypedDict
|
|
7
|
+
|
|
8
|
+
__all__ = ["AppCreateParams"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class AppCreateParams(TypedDict, total=False):
|
|
12
|
+
company_id: Required[str]
|
|
13
|
+
"""The ID of the company to create the app for"""
|
|
14
|
+
|
|
15
|
+
name: Required[str]
|
|
16
|
+
"""The name of the app to be created"""
|
|
17
|
+
|
|
18
|
+
base_url: Optional[str]
|
|
19
|
+
"""The base URL of the app to be created"""
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Optional
|
|
6
|
+
from typing_extensions import Literal, TypedDict
|
|
7
|
+
|
|
8
|
+
from .app_type import AppType
|
|
9
|
+
from .shared.direction import Direction
|
|
10
|
+
from .shared.app_view_type import AppViewType
|
|
11
|
+
|
|
12
|
+
__all__ = ["AppListParams"]
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class AppListParams(TypedDict, total=False):
|
|
16
|
+
after: Optional[str]
|
|
17
|
+
"""Returns the elements in the list that come after the specified cursor."""
|
|
18
|
+
|
|
19
|
+
app_type: Optional[AppType]
|
|
20
|
+
"""The type of end-user an app is built for"""
|
|
21
|
+
|
|
22
|
+
before: Optional[str]
|
|
23
|
+
"""Returns the elements in the list that come before the specified cursor."""
|
|
24
|
+
|
|
25
|
+
company_id: Optional[str]
|
|
26
|
+
"""The ID of the company to filter apps by"""
|
|
27
|
+
|
|
28
|
+
direction: Optional[Direction]
|
|
29
|
+
"""The direction of the sort."""
|
|
30
|
+
|
|
31
|
+
first: Optional[int]
|
|
32
|
+
"""Returns the first _n_ elements from the list."""
|
|
33
|
+
|
|
34
|
+
last: Optional[int]
|
|
35
|
+
"""Returns the last _n_ elements from the list."""
|
|
36
|
+
|
|
37
|
+
order: Optional[
|
|
38
|
+
Literal[
|
|
39
|
+
"discoverable_at",
|
|
40
|
+
"total_installs_last_30_days",
|
|
41
|
+
"total_installs_last_7_days",
|
|
42
|
+
"time_spent",
|
|
43
|
+
"time_spent_last_24_hours",
|
|
44
|
+
"daily_active_users",
|
|
45
|
+
]
|
|
46
|
+
]
|
|
47
|
+
"""The order to fetch the apps in for discovery."""
|
|
48
|
+
|
|
49
|
+
query: Optional[str]
|
|
50
|
+
"""The query to search for apps by name."""
|
|
51
|
+
|
|
52
|
+
verified_apps_only: Optional[bool]
|
|
53
|
+
"""If true, you will only get apps that are verified by Whop.
|
|
54
|
+
|
|
55
|
+
Use this to populate a 'featured apps' section on the app store.
|
|
56
|
+
"""
|
|
57
|
+
|
|
58
|
+
view_type: Optional[AppViewType]
|
|
59
|
+
"""The different types of an app view"""
|