@whop/sdk 0.0.25 → 0.0.27
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.
- package/CHANGELOG.md +58 -0
- package/client.d.mts +29 -25
- package/client.d.mts.map +1 -1
- package/client.d.ts +29 -25
- package/client.d.ts.map +1 -1
- package/client.js +14 -3
- package/client.js.map +1 -1
- package/client.mjs +16 -5
- package/client.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +5 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +5 -0
- package/internal/parse.mjs.map +1 -1
- package/package.json +3 -3
- package/resources/access-tokens.d.mts +32 -51
- package/resources/access-tokens.d.mts.map +1 -1
- package/resources/access-tokens.d.ts +32 -51
- package/resources/access-tokens.d.ts.map +1 -1
- package/resources/access-tokens.js +6 -8
- package/resources/access-tokens.js.map +1 -1
- package/resources/access-tokens.mjs +6 -8
- package/resources/access-tokens.mjs.map +1 -1
- package/resources/ai-chats.d.mts +36 -104
- package/resources/ai-chats.d.mts.map +1 -1
- package/resources/ai-chats.d.ts +36 -104
- package/resources/ai-chats.d.ts.map +1 -1
- package/resources/ai-chats.js +1 -1
- package/resources/ai-chats.js.map +1 -1
- package/resources/ai-chats.mjs +1 -1
- package/resources/ai-chats.mjs.map +1 -1
- package/resources/app-builds.d.mts +2 -2
- package/resources/app-builds.d.ts +2 -2
- package/resources/apps.d.mts +5 -4
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +5 -4
- package/resources/apps.d.ts.map +1 -1
- package/resources/authorized-users.d.mts +43 -9
- package/resources/authorized-users.d.mts.map +1 -1
- package/resources/authorized-users.d.ts +43 -9
- package/resources/authorized-users.d.ts.map +1 -1
- package/resources/authorized-users.js +1 -1
- package/resources/authorized-users.js.map +1 -1
- package/resources/authorized-users.mjs +1 -1
- package/resources/authorized-users.mjs.map +1 -1
- package/resources/chat-channels.d.mts +1 -1
- package/resources/chat-channels.d.ts +1 -1
- package/resources/checkout-configurations.d.mts +24 -16
- package/resources/checkout-configurations.d.mts.map +1 -1
- package/resources/checkout-configurations.d.ts +24 -16
- package/resources/checkout-configurations.d.ts.map +1 -1
- package/resources/companies.d.mts +38 -25
- package/resources/companies.d.mts.map +1 -1
- package/resources/companies.d.ts +38 -25
- package/resources/companies.d.ts.map +1 -1
- package/resources/companies.js +7 -4
- package/resources/companies.js.map +1 -1
- package/resources/companies.mjs +7 -4
- package/resources/companies.mjs.map +1 -1
- package/resources/company-token-transactions.d.mts +23 -109
- package/resources/company-token-transactions.d.mts.map +1 -1
- package/resources/company-token-transactions.d.ts +23 -109
- package/resources/company-token-transactions.d.ts.map +1 -1
- package/resources/course-chapters.d.mts +3 -3
- package/resources/course-chapters.d.ts +3 -3
- package/resources/course-lessons.d.mts +15 -15
- package/resources/course-lessons.d.ts +15 -15
- package/resources/course-students.d.mts +6 -6
- package/resources/course-students.d.ts +6 -6
- package/resources/courses.d.mts +8 -8
- package/resources/courses.d.ts +8 -8
- package/resources/disputes.d.mts +20 -18
- package/resources/disputes.d.mts.map +1 -1
- package/resources/disputes.d.ts +20 -18
- package/resources/disputes.d.ts.map +1 -1
- package/resources/dm-channels.d.mts +161 -0
- package/resources/dm-channels.d.mts.map +1 -0
- package/resources/dm-channels.d.ts +161 -0
- package/resources/dm-channels.d.ts.map +1 -0
- package/resources/dm-channels.js +87 -0
- package/resources/dm-channels.js.map +1 -0
- package/resources/dm-channels.mjs +83 -0
- package/resources/dm-channels.mjs.map +1 -0
- package/resources/dm-members.d.mts +14 -66
- package/resources/dm-members.d.mts.map +1 -1
- package/resources/dm-members.d.ts +14 -66
- package/resources/dm-members.d.ts.map +1 -1
- package/resources/entries.d.mts +6 -6
- package/resources/entries.d.ts +6 -6
- package/resources/experiences.d.mts +6 -5
- package/resources/experiences.d.mts.map +1 -1
- package/resources/experiences.d.ts +6 -5
- package/resources/experiences.d.ts.map +1 -1
- package/resources/fee-markups.d.mts +6 -6
- package/resources/fee-markups.d.ts +6 -6
- package/resources/files.d.mts +9 -5
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +9 -5
- package/resources/files.d.ts.map +1 -1
- package/resources/forum-posts.d.mts +8 -4
- package/resources/forum-posts.d.mts.map +1 -1
- package/resources/forum-posts.d.ts +8 -4
- package/resources/forum-posts.d.ts.map +1 -1
- package/resources/forums.d.mts +1 -1
- package/resources/forums.d.ts +1 -1
- package/resources/index.d.mts +12 -11
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +12 -11
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -2
- package/resources/index.mjs.map +1 -1
- package/resources/invoices.d.mts +28 -20
- package/resources/invoices.d.mts.map +1 -1
- package/resources/invoices.d.ts +28 -20
- package/resources/invoices.d.ts.map +1 -1
- package/resources/leads.d.mts +21 -189
- package/resources/leads.d.mts.map +1 -1
- package/resources/leads.d.ts +21 -189
- package/resources/leads.d.ts.map +1 -1
- package/resources/ledger-accounts.d.mts +12 -9
- package/resources/ledger-accounts.d.mts.map +1 -1
- package/resources/ledger-accounts.d.ts +12 -9
- package/resources/ledger-accounts.d.ts.map +1 -1
- package/resources/ledger-accounts.js.map +1 -1
- package/resources/ledger-accounts.mjs.map +1 -1
- package/resources/members.d.mts +14 -14
- package/resources/members.d.mts.map +1 -1
- package/resources/members.d.ts +14 -14
- package/resources/members.d.ts.map +1 -1
- package/resources/members.js +1 -1
- package/resources/members.js.map +1 -1
- package/resources/members.mjs +1 -1
- package/resources/members.mjs.map +1 -1
- package/resources/memberships.d.mts +25 -15
- package/resources/memberships.d.mts.map +1 -1
- package/resources/memberships.d.ts +25 -15
- package/resources/memberships.d.ts.map +1 -1
- package/resources/messages.d.mts +7 -3
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +7 -3
- package/resources/messages.d.ts.map +1 -1
- package/resources/payments.d.mts +59 -19
- package/resources/payments.d.mts.map +1 -1
- package/resources/payments.d.ts +59 -19
- package/resources/payments.d.ts.map +1 -1
- package/resources/payout-methods.d.mts +14 -9
- package/resources/payout-methods.d.mts.map +1 -1
- package/resources/payout-methods.d.ts +14 -9
- package/resources/payout-methods.d.ts.map +1 -1
- package/resources/payout-methods.js.map +1 -1
- package/resources/payout-methods.mjs.map +1 -1
- package/resources/plans.d.mts +34 -24
- package/resources/plans.d.mts.map +1 -1
- package/resources/plans.d.ts +34 -24
- package/resources/plans.d.ts.map +1 -1
- package/resources/products.d.mts +4 -2
- package/resources/products.d.mts.map +1 -1
- package/resources/products.d.ts +4 -2
- package/resources/products.d.ts.map +1 -1
- package/resources/promo-codes.d.mts +22 -12
- package/resources/promo-codes.d.mts.map +1 -1
- package/resources/promo-codes.d.ts +22 -12
- package/resources/promo-codes.d.ts.map +1 -1
- package/resources/reactions.d.mts +1 -1
- package/resources/reactions.d.ts +1 -1
- package/resources/refunds.d.mts +19 -15
- package/resources/refunds.d.mts.map +1 -1
- package/resources/refunds.d.ts +19 -15
- package/resources/refunds.d.ts.map +1 -1
- package/resources/reviews.d.mts +10 -10
- package/resources/reviews.d.ts +10 -10
- package/resources/setup-intents.d.mts +18 -20
- package/resources/setup-intents.d.mts.map +1 -1
- package/resources/setup-intents.d.ts +18 -20
- package/resources/setup-intents.d.ts.map +1 -1
- package/resources/shared.d.mts +209 -137
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +209 -137
- package/resources/shared.d.ts.map +1 -1
- package/resources/shipments.d.mts +4 -4
- package/resources/shipments.d.ts +4 -4
- package/resources/support-channels.d.mts +1 -1
- package/resources/support-channels.d.ts +1 -1
- package/resources/topups.d.mts +6 -4
- package/resources/topups.d.mts.map +1 -1
- package/resources/topups.d.ts +6 -4
- package/resources/topups.d.ts.map +1 -1
- package/resources/transfers.d.mts +8 -5
- package/resources/transfers.d.mts.map +1 -1
- package/resources/transfers.d.ts +8 -5
- package/resources/transfers.d.ts.map +1 -1
- package/resources/users.d.mts +46 -8
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +46 -8
- package/resources/users.d.ts.map +1 -1
- package/resources/users.js +10 -0
- package/resources/users.js.map +1 -1
- package/resources/users.mjs +10 -0
- package/resources/users.mjs.map +1 -1
- package/resources/verifications.d.mts +12 -4
- package/resources/verifications.d.mts.map +1 -1
- package/resources/verifications.d.ts +12 -4
- package/resources/verifications.d.ts.map +1 -1
- package/resources/webhooks.d.mts +105 -350
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +105 -350
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +2 -2
- package/resources/webhooks.mjs.map +1 -1
- package/resources/withdrawals.d.mts +32 -139
- package/resources/withdrawals.d.mts.map +1 -1
- package/resources/withdrawals.d.ts +32 -139
- package/resources/withdrawals.d.ts.map +1 -1
- package/src/client.ts +87 -41
- package/src/internal/parse.ts +6 -0
- package/src/resources/access-tokens.ts +35 -56
- package/src/resources/ai-chats.ts +36 -122
- package/src/resources/app-builds.ts +2 -2
- package/src/resources/apps.ts +5 -4
- package/src/resources/authorized-users.ts +49 -9
- package/src/resources/chat-channels.ts +1 -1
- package/src/resources/checkout-configurations.ts +24 -16
- package/src/resources/companies.ts +41 -26
- package/src/resources/company-token-transactions.ts +24 -126
- package/src/resources/course-chapters.ts +3 -3
- package/src/resources/course-lessons.ts +15 -15
- package/src/resources/course-students.ts +6 -6
- package/src/resources/courses.ts +8 -8
- package/src/resources/disputes.ts +20 -18
- package/src/resources/dm-channels.ts +212 -0
- package/src/resources/dm-members.ts +16 -78
- package/src/resources/entries.ts +6 -6
- package/src/resources/experiences.ts +6 -5
- package/src/resources/fee-markups.ts +6 -6
- package/src/resources/files.ts +10 -4
- package/src/resources/forum-posts.ts +8 -4
- package/src/resources/forums.ts +1 -1
- package/src/resources/index.ts +38 -18
- package/src/resources/invoices.ts +28 -20
- package/src/resources/leads.ts +21 -217
- package/src/resources/ledger-accounts.ts +12 -42
- package/src/resources/members.ts +15 -15
- package/src/resources/memberships.ts +34 -30
- package/src/resources/messages.ts +7 -3
- package/src/resources/payments.ts +67 -17
- package/src/resources/payout-methods.ts +21 -8
- package/src/resources/plans.ts +34 -24
- package/src/resources/products.ts +4 -2
- package/src/resources/promo-codes.ts +22 -12
- package/src/resources/reactions.ts +1 -1
- package/src/resources/refunds.ts +20 -15
- package/src/resources/reviews.ts +10 -10
- package/src/resources/setup-intents.ts +18 -20
- package/src/resources/shared.ts +217 -145
- package/src/resources/shipments.ts +4 -4
- package/src/resources/support-channels.ts +1 -1
- package/src/resources/topups.ts +6 -4
- package/src/resources/transfers.ts +8 -5
- package/src/resources/users.ts +58 -8
- package/src/resources/verifications.ts +50 -37
- package/src/resources/webhooks.ts +138 -785
- package/src/resources/withdrawals.ts +39 -216
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/src/resources/shared.ts
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import * as Shared from './shared';
|
|
4
4
|
import * as AppsAPI from './apps';
|
|
5
5
|
import * as CheckoutConfigurationsAPI from './checkout-configurations';
|
|
6
|
+
import * as MembershipsAPI from './memberships';
|
|
6
7
|
import * as PaymentsAPI from './payments';
|
|
7
8
|
import { CursorPage } from '../core/pagination';
|
|
8
9
|
|
|
@@ -18,11 +19,12 @@ export type AccessLevel = 'no_access' | 'admin' | 'customer';
|
|
|
18
19
|
export type AccessPassType = 'regular' | 'app' | 'experience_upsell' | 'api_only';
|
|
19
20
|
|
|
20
21
|
/**
|
|
21
|
-
* An
|
|
22
|
+
* An app is an integration built on Whop. Apps can serve consumers as experiences
|
|
23
|
+
* within products, or serve companies as business tools.
|
|
22
24
|
*/
|
|
23
25
|
export interface App {
|
|
24
26
|
/**
|
|
25
|
-
* The
|
|
27
|
+
* The unique identifier for the app.
|
|
26
28
|
*/
|
|
27
29
|
id: string;
|
|
28
30
|
|
|
@@ -125,7 +127,7 @@ export namespace App {
|
|
|
125
127
|
*/
|
|
126
128
|
export interface APIKey {
|
|
127
129
|
/**
|
|
128
|
-
* The
|
|
130
|
+
* The unique identifier for the private api key.
|
|
129
131
|
*/
|
|
130
132
|
id: string;
|
|
131
133
|
|
|
@@ -135,7 +137,7 @@ export namespace App {
|
|
|
135
137
|
token: string;
|
|
136
138
|
|
|
137
139
|
/**
|
|
138
|
-
*
|
|
140
|
+
* The datetime the private api key was created.
|
|
139
141
|
*/
|
|
140
142
|
created_at: string;
|
|
141
143
|
}
|
|
@@ -145,7 +147,7 @@ export namespace App {
|
|
|
145
147
|
*/
|
|
146
148
|
export interface Company {
|
|
147
149
|
/**
|
|
148
|
-
* The
|
|
150
|
+
* The unique identifier for the company.
|
|
149
151
|
*/
|
|
150
152
|
id: string;
|
|
151
153
|
|
|
@@ -160,7 +162,7 @@ export namespace App {
|
|
|
160
162
|
*/
|
|
161
163
|
export interface Creator {
|
|
162
164
|
/**
|
|
163
|
-
* The
|
|
165
|
+
* The unique identifier for the user.
|
|
164
166
|
*/
|
|
165
167
|
id: string;
|
|
166
168
|
|
|
@@ -259,7 +261,7 @@ export namespace App {
|
|
|
259
261
|
*/
|
|
260
262
|
export interface AppBuild {
|
|
261
263
|
/**
|
|
262
|
-
* The
|
|
264
|
+
* The unique identifier for the app build.
|
|
263
265
|
*/
|
|
264
266
|
id: string;
|
|
265
267
|
|
|
@@ -270,7 +272,7 @@ export interface AppBuild {
|
|
|
270
272
|
checksum: string;
|
|
271
273
|
|
|
272
274
|
/**
|
|
273
|
-
*
|
|
275
|
+
* The datetime the app build was created.
|
|
274
276
|
*/
|
|
275
277
|
created_at: string;
|
|
276
278
|
|
|
@@ -409,7 +411,7 @@ export namespace ChatChannel {
|
|
|
409
411
|
*/
|
|
410
412
|
export interface Experience {
|
|
411
413
|
/**
|
|
412
|
-
* The unique
|
|
414
|
+
* The unique identifier for the experience.
|
|
413
415
|
*/
|
|
414
416
|
id: string;
|
|
415
417
|
|
|
@@ -421,14 +423,13 @@ export namespace ChatChannel {
|
|
|
421
423
|
}
|
|
422
424
|
|
|
423
425
|
/**
|
|
424
|
-
* A checkout configuration
|
|
425
|
-
*
|
|
426
|
-
*
|
|
427
|
-
* All successful payments and memberships resulting from a checkout will contain the passed metadata.
|
|
426
|
+
* A checkout session is a reusable configuration for a checkout, including the
|
|
427
|
+
* plan, affiliate, and custom metadata. Payments and memberships created from a
|
|
428
|
+
* checkout session inherit its metadata.
|
|
428
429
|
*/
|
|
429
430
|
export interface CheckoutConfiguration {
|
|
430
431
|
/**
|
|
431
|
-
* The
|
|
432
|
+
* The unique identifier for the checkout session.
|
|
432
433
|
*/
|
|
433
434
|
id: string;
|
|
434
435
|
|
|
@@ -515,12 +516,12 @@ export namespace CheckoutConfiguration {
|
|
|
515
516
|
*/
|
|
516
517
|
export interface Plan {
|
|
517
518
|
/**
|
|
518
|
-
* The
|
|
519
|
+
* The unique identifier for the plan.
|
|
519
520
|
*/
|
|
520
521
|
id: string;
|
|
521
522
|
|
|
522
523
|
/**
|
|
523
|
-
* The interval at which the plan charges (renewal plans).
|
|
524
|
+
* The interval in days at which the plan charges (renewal plans).
|
|
524
525
|
*/
|
|
525
526
|
billing_period: number | null;
|
|
526
527
|
|
|
@@ -530,12 +531,15 @@ export namespace CheckoutConfiguration {
|
|
|
530
531
|
currency: Shared.Currency;
|
|
531
532
|
|
|
532
533
|
/**
|
|
533
|
-
* The
|
|
534
|
+
* The number of days until the membership expires (for expiration-based plans).
|
|
535
|
+
* For example, 365 for a one-year access pass.
|
|
534
536
|
*/
|
|
535
537
|
expiration_days: number | null;
|
|
536
538
|
|
|
537
539
|
/**
|
|
538
|
-
* The
|
|
540
|
+
* The initial purchase price in the plan's base_currency (e.g., 49.99 for $49.99).
|
|
541
|
+
* For one-time plans, this is the full price. For renewal plans, this is charged
|
|
542
|
+
* on top of the first renewal_price.
|
|
539
543
|
*/
|
|
540
544
|
initial_price: number;
|
|
541
545
|
|
|
@@ -550,7 +554,8 @@ export namespace CheckoutConfiguration {
|
|
|
550
554
|
release_method: Shared.ReleaseMethod;
|
|
551
555
|
|
|
552
556
|
/**
|
|
553
|
-
* The price
|
|
557
|
+
* The recurring price charged every billing_period in the plan's base_currency
|
|
558
|
+
* (e.g., 9.99 for $9.99/period). Zero for one-time plans.
|
|
554
559
|
*/
|
|
555
560
|
renewal_price: number;
|
|
556
561
|
|
|
@@ -572,11 +577,12 @@ export namespace CheckoutConfiguration {
|
|
|
572
577
|
export type CollectionMethod = 'send_invoice' | 'charge_automatically';
|
|
573
578
|
|
|
574
579
|
/**
|
|
575
|
-
*
|
|
580
|
+
* A company is a seller on Whop. Companies own products, manage members, and
|
|
581
|
+
* receive payouts.
|
|
576
582
|
*/
|
|
577
583
|
export interface Company {
|
|
578
584
|
/**
|
|
579
|
-
* The
|
|
585
|
+
* The unique identifier for the company.
|
|
580
586
|
*/
|
|
581
587
|
id: string;
|
|
582
588
|
|
|
@@ -586,7 +592,7 @@ export interface Company {
|
|
|
586
592
|
business_type: BusinessTypes | null;
|
|
587
593
|
|
|
588
594
|
/**
|
|
589
|
-
*
|
|
595
|
+
* The datetime the company was created.
|
|
590
596
|
*/
|
|
591
597
|
created_at: string;
|
|
592
598
|
|
|
@@ -647,7 +653,7 @@ export interface Company {
|
|
|
647
653
|
title: string;
|
|
648
654
|
|
|
649
655
|
/**
|
|
650
|
-
* The
|
|
656
|
+
* The datetime the company was last updated.
|
|
651
657
|
*/
|
|
652
658
|
updated_at: string;
|
|
653
659
|
|
|
@@ -674,7 +680,7 @@ export namespace Company {
|
|
|
674
680
|
*/
|
|
675
681
|
export interface OwnerUser {
|
|
676
682
|
/**
|
|
677
|
-
* The
|
|
683
|
+
* The unique identifier for the user.
|
|
678
684
|
*/
|
|
679
685
|
id: string;
|
|
680
686
|
|
|
@@ -694,7 +700,7 @@ export namespace Company {
|
|
|
694
700
|
*/
|
|
695
701
|
export interface SocialLink {
|
|
696
702
|
/**
|
|
697
|
-
* The
|
|
703
|
+
* The unique identifier for the social link.
|
|
698
704
|
*/
|
|
699
705
|
id: string;
|
|
700
706
|
|
|
@@ -724,7 +730,7 @@ export namespace Company {
|
|
|
724
730
|
*/
|
|
725
731
|
export interface CourseLessonInteraction {
|
|
726
732
|
/**
|
|
727
|
-
* The
|
|
733
|
+
* The unique identifier for the lesson interaction.
|
|
728
734
|
*/
|
|
729
735
|
id: string;
|
|
730
736
|
|
|
@@ -739,7 +745,7 @@ export interface CourseLessonInteraction {
|
|
|
739
745
|
course: CourseLessonInteraction.Course;
|
|
740
746
|
|
|
741
747
|
/**
|
|
742
|
-
*
|
|
748
|
+
* The datetime the lesson interaction was created.
|
|
743
749
|
*/
|
|
744
750
|
created_at: string;
|
|
745
751
|
|
|
@@ -760,7 +766,7 @@ export namespace CourseLessonInteraction {
|
|
|
760
766
|
*/
|
|
761
767
|
export interface Course {
|
|
762
768
|
/**
|
|
763
|
-
* The
|
|
769
|
+
* The unique identifier for the course.
|
|
764
770
|
*/
|
|
765
771
|
id: string;
|
|
766
772
|
|
|
@@ -781,7 +787,7 @@ export namespace CourseLessonInteraction {
|
|
|
781
787
|
*/
|
|
782
788
|
export interface Experience {
|
|
783
789
|
/**
|
|
784
|
-
* The unique
|
|
790
|
+
* The unique identifier for the experience.
|
|
785
791
|
*/
|
|
786
792
|
id: string;
|
|
787
793
|
}
|
|
@@ -792,7 +798,7 @@ export namespace CourseLessonInteraction {
|
|
|
792
798
|
*/
|
|
793
799
|
export interface Lesson {
|
|
794
800
|
/**
|
|
795
|
-
* The
|
|
801
|
+
* The unique identifier for the lesson.
|
|
796
802
|
*/
|
|
797
803
|
id: string;
|
|
798
804
|
|
|
@@ -813,7 +819,7 @@ export namespace CourseLessonInteraction {
|
|
|
813
819
|
*/
|
|
814
820
|
export interface Chapter {
|
|
815
821
|
/**
|
|
816
|
-
* The
|
|
822
|
+
* The unique identifier for the chapter.
|
|
817
823
|
*/
|
|
818
824
|
id: string;
|
|
819
825
|
}
|
|
@@ -824,7 +830,7 @@ export namespace CourseLessonInteraction {
|
|
|
824
830
|
*/
|
|
825
831
|
export interface User {
|
|
826
832
|
/**
|
|
827
|
-
* The
|
|
833
|
+
* The unique identifier for the user.
|
|
828
834
|
*/
|
|
829
835
|
id: string;
|
|
830
836
|
|
|
@@ -845,7 +851,7 @@ export namespace CourseLessonInteraction {
|
|
|
845
851
|
*/
|
|
846
852
|
export interface CourseLessonInteractionListItem {
|
|
847
853
|
/**
|
|
848
|
-
* The
|
|
854
|
+
* The unique identifier for the lesson interaction.
|
|
849
855
|
*/
|
|
850
856
|
id: string;
|
|
851
857
|
|
|
@@ -855,7 +861,7 @@ export interface CourseLessonInteractionListItem {
|
|
|
855
861
|
completed: boolean;
|
|
856
862
|
|
|
857
863
|
/**
|
|
858
|
-
*
|
|
864
|
+
* The datetime the lesson interaction was created.
|
|
859
865
|
*/
|
|
860
866
|
created_at: string;
|
|
861
867
|
|
|
@@ -876,7 +882,7 @@ export namespace CourseLessonInteractionListItem {
|
|
|
876
882
|
*/
|
|
877
883
|
export interface Lesson {
|
|
878
884
|
/**
|
|
879
|
-
* The
|
|
885
|
+
* The unique identifier for the lesson.
|
|
880
886
|
*/
|
|
881
887
|
id: string;
|
|
882
888
|
|
|
@@ -897,7 +903,7 @@ export namespace CourseLessonInteractionListItem {
|
|
|
897
903
|
*/
|
|
898
904
|
export interface Chapter {
|
|
899
905
|
/**
|
|
900
|
-
* The
|
|
906
|
+
* The unique identifier for the chapter.
|
|
901
907
|
*/
|
|
902
908
|
id: string;
|
|
903
909
|
}
|
|
@@ -908,7 +914,7 @@ export namespace CourseLessonInteractionListItem {
|
|
|
908
914
|
*/
|
|
909
915
|
export interface User {
|
|
910
916
|
/**
|
|
911
|
-
* The
|
|
917
|
+
* The unique identifier for the user.
|
|
912
918
|
*/
|
|
913
919
|
id: string;
|
|
914
920
|
|
|
@@ -1048,16 +1054,16 @@ export type DmsPostTypes = 'regular' | 'system' | 'automated';
|
|
|
1048
1054
|
export type EmailNotificationPreferences = 'all_admin_posts' | 'only_weekly_summary' | 'none';
|
|
1049
1055
|
|
|
1050
1056
|
/**
|
|
1051
|
-
* An
|
|
1057
|
+
* An entry represents a user's signup for a waitlisted plan.
|
|
1052
1058
|
*/
|
|
1053
1059
|
export interface Entry {
|
|
1054
1060
|
/**
|
|
1055
|
-
* The
|
|
1061
|
+
* The unique identifier for the entry.
|
|
1056
1062
|
*/
|
|
1057
1063
|
id: string;
|
|
1058
1064
|
|
|
1059
1065
|
/**
|
|
1060
|
-
*
|
|
1066
|
+
* The datetime the entry was created.
|
|
1061
1067
|
*/
|
|
1062
1068
|
created_at: string | null;
|
|
1063
1069
|
|
|
@@ -1093,7 +1099,7 @@ export namespace Entry {
|
|
|
1093
1099
|
*/
|
|
1094
1100
|
export interface CustomFieldResponse {
|
|
1095
1101
|
/**
|
|
1096
|
-
* The
|
|
1102
|
+
* The unique identifier for the custom field response.
|
|
1097
1103
|
*/
|
|
1098
1104
|
id: string;
|
|
1099
1105
|
|
|
@@ -1113,7 +1119,7 @@ export namespace Entry {
|
|
|
1113
1119
|
*/
|
|
1114
1120
|
export interface Plan {
|
|
1115
1121
|
/**
|
|
1116
|
-
* The
|
|
1122
|
+
* The unique identifier for the plan.
|
|
1117
1123
|
*/
|
|
1118
1124
|
id: string;
|
|
1119
1125
|
}
|
|
@@ -1123,7 +1129,7 @@ export namespace Entry {
|
|
|
1123
1129
|
*/
|
|
1124
1130
|
export interface Product {
|
|
1125
1131
|
/**
|
|
1126
|
-
* The
|
|
1132
|
+
* The unique identifier for the product.
|
|
1127
1133
|
*/
|
|
1128
1134
|
id: string;
|
|
1129
1135
|
|
|
@@ -1138,7 +1144,7 @@ export namespace Entry {
|
|
|
1138
1144
|
*/
|
|
1139
1145
|
export interface User {
|
|
1140
1146
|
/**
|
|
1141
|
-
* The
|
|
1147
|
+
* The unique identifier for the user.
|
|
1142
1148
|
*/
|
|
1143
1149
|
id: string;
|
|
1144
1150
|
|
|
@@ -1165,11 +1171,12 @@ export namespace Entry {
|
|
|
1165
1171
|
export type EntryStatus = 'drafted' | 'pending' | 'approved' | 'denied' | 'any';
|
|
1166
1172
|
|
|
1167
1173
|
/**
|
|
1168
|
-
* An
|
|
1174
|
+
* An experience is a feature or content module within a product, such as a chat,
|
|
1175
|
+
* course, or app.
|
|
1169
1176
|
*/
|
|
1170
1177
|
export interface Experience {
|
|
1171
1178
|
/**
|
|
1172
|
-
* The unique
|
|
1179
|
+
* The unique identifier for the experience.
|
|
1173
1180
|
*/
|
|
1174
1181
|
id: string;
|
|
1175
1182
|
|
|
@@ -1184,7 +1191,7 @@ export interface Experience {
|
|
|
1184
1191
|
company: Experience.Company;
|
|
1185
1192
|
|
|
1186
1193
|
/**
|
|
1187
|
-
* The
|
|
1194
|
+
* The datetime the experience was created.
|
|
1188
1195
|
*/
|
|
1189
1196
|
created_at: string;
|
|
1190
1197
|
|
|
@@ -1222,7 +1229,7 @@ export namespace Experience {
|
|
|
1222
1229
|
*/
|
|
1223
1230
|
export interface App {
|
|
1224
1231
|
/**
|
|
1225
|
-
* The
|
|
1232
|
+
* The unique identifier for the app.
|
|
1226
1233
|
*/
|
|
1227
1234
|
id: string;
|
|
1228
1235
|
|
|
@@ -1257,7 +1264,7 @@ export namespace Experience {
|
|
|
1257
1264
|
*/
|
|
1258
1265
|
export interface Company {
|
|
1259
1266
|
/**
|
|
1260
|
-
* The
|
|
1267
|
+
* The unique identifier for the company.
|
|
1261
1268
|
*/
|
|
1262
1269
|
id: string;
|
|
1263
1270
|
|
|
@@ -1284,11 +1291,12 @@ export namespace Experience {
|
|
|
1284
1291
|
}
|
|
1285
1292
|
|
|
1286
1293
|
/**
|
|
1287
|
-
*
|
|
1294
|
+
* A product is a digital good or service sold on Whop. Products contain plans for
|
|
1295
|
+
* pricing and experiences for content delivery.
|
|
1288
1296
|
*/
|
|
1289
1297
|
export interface Product {
|
|
1290
1298
|
/**
|
|
1291
|
-
* The
|
|
1299
|
+
* The unique identifier for the product.
|
|
1292
1300
|
*/
|
|
1293
1301
|
id: string;
|
|
1294
1302
|
|
|
@@ -1340,7 +1348,7 @@ export namespace Forum {
|
|
|
1340
1348
|
*/
|
|
1341
1349
|
export interface Experience {
|
|
1342
1350
|
/**
|
|
1343
|
-
* The unique
|
|
1351
|
+
* The unique identifier for the experience.
|
|
1344
1352
|
*/
|
|
1345
1353
|
id: string;
|
|
1346
1354
|
|
|
@@ -1356,7 +1364,11 @@ export namespace Forum {
|
|
|
1356
1364
|
*/
|
|
1357
1365
|
export interface ForumPost {
|
|
1358
1366
|
/**
|
|
1359
|
-
*
|
|
1367
|
+
* Represents a unique identifier that is Base64 obfuscated. It is often used to
|
|
1368
|
+
* refetch an object or as key for a cache. The ID type appears in a JSON response
|
|
1369
|
+
* as a String; however, it is not intended to be human-readable. When expected as
|
|
1370
|
+
* an input type, any string (such as `"VXNlci0xMA=="`) or integer (such as `4`)
|
|
1371
|
+
* input value will be accepted as an ID.
|
|
1360
1372
|
*/
|
|
1361
1373
|
id: string;
|
|
1362
1374
|
|
|
@@ -1427,7 +1439,7 @@ export namespace ForumPost {
|
|
|
1427
1439
|
*/
|
|
1428
1440
|
export interface User {
|
|
1429
1441
|
/**
|
|
1430
|
-
* The
|
|
1442
|
+
* The unique identifier for the user.
|
|
1431
1443
|
*/
|
|
1432
1444
|
id: string;
|
|
1433
1445
|
|
|
@@ -1444,7 +1456,9 @@ export namespace ForumPost {
|
|
|
1444
1456
|
}
|
|
1445
1457
|
|
|
1446
1458
|
/**
|
|
1447
|
-
* The friendly status of a
|
|
1459
|
+
* The friendly status of a payment. This is a derived status that provides a
|
|
1460
|
+
* human-readable summary of the payment state, combining the underlying status and
|
|
1461
|
+
* substatus fields.
|
|
1448
1462
|
*/
|
|
1449
1463
|
export type FriendlyReceiptStatus =
|
|
1450
1464
|
| 'succeeded'
|
|
@@ -1550,12 +1564,12 @@ export type IndustryTypes =
|
|
|
1550
1564
|
*/
|
|
1551
1565
|
export interface Invoice {
|
|
1552
1566
|
/**
|
|
1553
|
-
* The
|
|
1567
|
+
* The unique identifier for the invoice.
|
|
1554
1568
|
*/
|
|
1555
1569
|
id: string;
|
|
1556
1570
|
|
|
1557
1571
|
/**
|
|
1558
|
-
* The
|
|
1572
|
+
* The datetime the invoice was created.
|
|
1559
1573
|
*/
|
|
1560
1574
|
created_at: string;
|
|
1561
1575
|
|
|
@@ -1602,7 +1616,7 @@ export namespace Invoice {
|
|
|
1602
1616
|
*/
|
|
1603
1617
|
export interface CurrentPlan {
|
|
1604
1618
|
/**
|
|
1605
|
-
* The
|
|
1619
|
+
* The unique identifier for the plan.
|
|
1606
1620
|
*/
|
|
1607
1621
|
id: string;
|
|
1608
1622
|
|
|
@@ -1622,7 +1636,7 @@ export namespace Invoice {
|
|
|
1622
1636
|
*/
|
|
1623
1637
|
export interface User {
|
|
1624
1638
|
/**
|
|
1625
|
-
* The
|
|
1639
|
+
* The unique identifier for the user.
|
|
1626
1640
|
*/
|
|
1627
1641
|
id: string;
|
|
1628
1642
|
|
|
@@ -1643,12 +1657,12 @@ export namespace Invoice {
|
|
|
1643
1657
|
*/
|
|
1644
1658
|
export interface InvoiceListItem {
|
|
1645
1659
|
/**
|
|
1646
|
-
* The
|
|
1660
|
+
* The unique identifier for the invoice.
|
|
1647
1661
|
*/
|
|
1648
1662
|
id: string;
|
|
1649
1663
|
|
|
1650
1664
|
/**
|
|
1651
|
-
* The
|
|
1665
|
+
* The datetime the invoice was created.
|
|
1652
1666
|
*/
|
|
1653
1667
|
created_at: string;
|
|
1654
1668
|
|
|
@@ -1695,7 +1709,7 @@ export namespace InvoiceListItem {
|
|
|
1695
1709
|
*/
|
|
1696
1710
|
export interface CurrentPlan {
|
|
1697
1711
|
/**
|
|
1698
|
-
* The
|
|
1712
|
+
* The unique identifier for the plan.
|
|
1699
1713
|
*/
|
|
1700
1714
|
id: string;
|
|
1701
1715
|
|
|
@@ -1715,7 +1729,7 @@ export namespace InvoiceListItem {
|
|
|
1715
1729
|
*/
|
|
1716
1730
|
export interface User {
|
|
1717
1731
|
/**
|
|
1718
|
-
* The
|
|
1732
|
+
* The unique identifier for the user.
|
|
1719
1733
|
*/
|
|
1720
1734
|
id: string;
|
|
1721
1735
|
|
|
@@ -1761,12 +1775,12 @@ export type MemberMostRecentActions =
|
|
|
1761
1775
|
export type MemberStatuses = 'drafted' | 'joined' | 'left';
|
|
1762
1776
|
|
|
1763
1777
|
/**
|
|
1764
|
-
* A membership represents
|
|
1765
|
-
*
|
|
1778
|
+
* A membership represents an active relationship between a user and a product. It
|
|
1779
|
+
* tracks the user's access, billing status, and renewal schedule.
|
|
1766
1780
|
*/
|
|
1767
1781
|
export interface Membership {
|
|
1768
1782
|
/**
|
|
1769
|
-
* The
|
|
1783
|
+
* The unique identifier for the membership.
|
|
1770
1784
|
*/
|
|
1771
1785
|
id: string;
|
|
1772
1786
|
|
|
@@ -1780,15 +1794,7 @@ export interface Membership {
|
|
|
1780
1794
|
* The different reasons a user can choose for why they are canceling their
|
|
1781
1795
|
* membership.
|
|
1782
1796
|
*/
|
|
1783
|
-
cancel_option:
|
|
1784
|
-
| 'too_expensive'
|
|
1785
|
-
| 'switching'
|
|
1786
|
-
| 'missing_features'
|
|
1787
|
-
| 'technical_issues'
|
|
1788
|
-
| 'bad_experience'
|
|
1789
|
-
| 'other'
|
|
1790
|
-
| 'testing'
|
|
1791
|
-
| null;
|
|
1797
|
+
cancel_option: MembershipsAPI.CancelOptions | null;
|
|
1792
1798
|
|
|
1793
1799
|
/**
|
|
1794
1800
|
* The epoch timestamp of when the customer initiated a cancellation.
|
|
@@ -1806,7 +1812,7 @@ export interface Membership {
|
|
|
1806
1812
|
company: Membership.Company;
|
|
1807
1813
|
|
|
1808
1814
|
/**
|
|
1809
|
-
* The
|
|
1815
|
+
* The datetime the membership was created.
|
|
1810
1816
|
*/
|
|
1811
1817
|
created_at: string;
|
|
1812
1818
|
|
|
@@ -1820,6 +1826,11 @@ export interface Membership {
|
|
|
1820
1826
|
*/
|
|
1821
1827
|
custom_field_responses: Array<Membership.CustomFieldResponse>;
|
|
1822
1828
|
|
|
1829
|
+
/**
|
|
1830
|
+
* When the member joined the company.
|
|
1831
|
+
*/
|
|
1832
|
+
joined_at: string | null;
|
|
1833
|
+
|
|
1823
1834
|
/**
|
|
1824
1835
|
* The license key for this Membership. This is only present if the membership
|
|
1825
1836
|
* grants access to an instance of the Whop Software app.
|
|
@@ -1837,7 +1848,8 @@ export interface Membership {
|
|
|
1837
1848
|
member: Membership.Member | null;
|
|
1838
1849
|
|
|
1839
1850
|
/**
|
|
1840
|
-
*
|
|
1851
|
+
* Custom key-value pairs for the membership (commonly used for software licensing,
|
|
1852
|
+
* e.g., HWID). Max 50 keys, 500 chars per key, 5000 chars per value.
|
|
1841
1853
|
*/
|
|
1842
1854
|
metadata: { [key: string]: unknown };
|
|
1843
1855
|
|
|
@@ -1879,7 +1891,7 @@ export interface Membership {
|
|
|
1879
1891
|
status: MembershipStatus;
|
|
1880
1892
|
|
|
1881
1893
|
/**
|
|
1882
|
-
*
|
|
1894
|
+
* The datetime the membership was last updated.
|
|
1883
1895
|
*/
|
|
1884
1896
|
updated_at: string;
|
|
1885
1897
|
|
|
@@ -1895,7 +1907,7 @@ export namespace Membership {
|
|
|
1895
1907
|
*/
|
|
1896
1908
|
export interface Company {
|
|
1897
1909
|
/**
|
|
1898
|
-
* The
|
|
1910
|
+
* The unique identifier for the company.
|
|
1899
1911
|
*/
|
|
1900
1912
|
id: string;
|
|
1901
1913
|
|
|
@@ -1910,7 +1922,7 @@ export namespace Membership {
|
|
|
1910
1922
|
*/
|
|
1911
1923
|
export interface CustomFieldResponse {
|
|
1912
1924
|
/**
|
|
1913
|
-
* The
|
|
1925
|
+
* The unique identifier for the custom field response.
|
|
1914
1926
|
*/
|
|
1915
1927
|
id: string;
|
|
1916
1928
|
|
|
@@ -1930,7 +1942,7 @@ export namespace Membership {
|
|
|
1930
1942
|
*/
|
|
1931
1943
|
export interface Member {
|
|
1932
1944
|
/**
|
|
1933
|
-
* The
|
|
1945
|
+
* The unique identifier for the member.
|
|
1934
1946
|
*/
|
|
1935
1947
|
id: string;
|
|
1936
1948
|
}
|
|
@@ -1940,7 +1952,7 @@ export namespace Membership {
|
|
|
1940
1952
|
*/
|
|
1941
1953
|
export interface Plan {
|
|
1942
1954
|
/**
|
|
1943
|
-
* The
|
|
1955
|
+
* The unique identifier for the plan.
|
|
1944
1956
|
*/
|
|
1945
1957
|
id: string;
|
|
1946
1958
|
}
|
|
@@ -1950,7 +1962,7 @@ export namespace Membership {
|
|
|
1950
1962
|
*/
|
|
1951
1963
|
export interface Product {
|
|
1952
1964
|
/**
|
|
1953
|
-
* The
|
|
1965
|
+
* The unique identifier for the product.
|
|
1954
1966
|
*/
|
|
1955
1967
|
id: string;
|
|
1956
1968
|
|
|
@@ -1965,7 +1977,7 @@ export namespace Membership {
|
|
|
1965
1977
|
*/
|
|
1966
1978
|
export interface PromoCode {
|
|
1967
1979
|
/**
|
|
1968
|
-
* The
|
|
1980
|
+
* The unique identifier for the promo code.
|
|
1969
1981
|
*/
|
|
1970
1982
|
id: string;
|
|
1971
1983
|
}
|
|
@@ -1975,7 +1987,7 @@ export namespace Membership {
|
|
|
1975
1987
|
*/
|
|
1976
1988
|
export interface User {
|
|
1977
1989
|
/**
|
|
1978
|
-
* The
|
|
1990
|
+
* The unique identifier for the user.
|
|
1979
1991
|
*/
|
|
1980
1992
|
id: string;
|
|
1981
1993
|
|
|
@@ -2015,7 +2027,11 @@ export type MembershipStatus =
|
|
|
2015
2027
|
*/
|
|
2016
2028
|
export interface Message {
|
|
2017
2029
|
/**
|
|
2018
|
-
*
|
|
2030
|
+
* Represents a unique identifier that is Base64 obfuscated. It is often used to
|
|
2031
|
+
* refetch an object or as key for a cache. The ID type appears in a JSON response
|
|
2032
|
+
* as a String; however, it is not intended to be human-readable. When expected as
|
|
2033
|
+
* an input type, any string (such as `"VXNlci0xMA=="`) or integer (such as `4`)
|
|
2034
|
+
* input value will be accepted as an ID.
|
|
2019
2035
|
*/
|
|
2020
2036
|
id: string;
|
|
2021
2037
|
|
|
@@ -2097,7 +2113,7 @@ export namespace Message {
|
|
|
2097
2113
|
*/
|
|
2098
2114
|
export interface Option {
|
|
2099
2115
|
/**
|
|
2100
|
-
* The
|
|
2116
|
+
* The unique identifier for the poll option.
|
|
2101
2117
|
*/
|
|
2102
2118
|
id: string;
|
|
2103
2119
|
|
|
@@ -2143,7 +2159,7 @@ export namespace Message {
|
|
|
2143
2159
|
*/
|
|
2144
2160
|
export interface User {
|
|
2145
2161
|
/**
|
|
2146
|
-
* The
|
|
2162
|
+
* The unique identifier for the user.
|
|
2147
2163
|
*/
|
|
2148
2164
|
id: string;
|
|
2149
2165
|
|
|
@@ -2185,11 +2201,12 @@ export interface PageInfo {
|
|
|
2185
2201
|
}
|
|
2186
2202
|
|
|
2187
2203
|
/**
|
|
2188
|
-
*
|
|
2204
|
+
* A payment represents a completed or attempted charge for a membership. Payments
|
|
2205
|
+
* track the amount, status, currency, and payment method used.
|
|
2189
2206
|
*/
|
|
2190
2207
|
export interface Payment {
|
|
2191
2208
|
/**
|
|
2192
|
-
* The payment
|
|
2209
|
+
* The unique identifier for the payment.
|
|
2193
2210
|
*/
|
|
2194
2211
|
id: string;
|
|
2195
2212
|
|
|
@@ -2198,6 +2215,11 @@ export interface Payment {
|
|
|
2198
2215
|
*/
|
|
2199
2216
|
amount_after_fees: number;
|
|
2200
2217
|
|
|
2218
|
+
/**
|
|
2219
|
+
* The application fee charged on this payment.
|
|
2220
|
+
*/
|
|
2221
|
+
application_fee: Payment.ApplicationFee | null;
|
|
2222
|
+
|
|
2201
2223
|
/**
|
|
2202
2224
|
* Whether this payment was auto refunded or not
|
|
2203
2225
|
*/
|
|
@@ -2229,7 +2251,7 @@ export interface Payment {
|
|
|
2229
2251
|
company: Payment.Company | null;
|
|
2230
2252
|
|
|
2231
2253
|
/**
|
|
2232
|
-
* The datetime the payment was created
|
|
2254
|
+
* The datetime the payment was created.
|
|
2233
2255
|
*/
|
|
2234
2256
|
created_at: string;
|
|
2235
2257
|
|
|
@@ -2370,6 +2392,41 @@ export interface Payment {
|
|
|
2370
2392
|
}
|
|
2371
2393
|
|
|
2372
2394
|
export namespace Payment {
|
|
2395
|
+
/**
|
|
2396
|
+
* The application fee charged on this payment.
|
|
2397
|
+
*/
|
|
2398
|
+
export interface ApplicationFee {
|
|
2399
|
+
/**
|
|
2400
|
+
* The unique identifier for the application fee.
|
|
2401
|
+
*/
|
|
2402
|
+
id: string;
|
|
2403
|
+
|
|
2404
|
+
/**
|
|
2405
|
+
* The application fee amount.
|
|
2406
|
+
*/
|
|
2407
|
+
amount: number;
|
|
2408
|
+
|
|
2409
|
+
/**
|
|
2410
|
+
* The amount of the application fee that has been captured.
|
|
2411
|
+
*/
|
|
2412
|
+
amount_captured: number;
|
|
2413
|
+
|
|
2414
|
+
/**
|
|
2415
|
+
* The amount of the application fee that has been refunded.
|
|
2416
|
+
*/
|
|
2417
|
+
amount_refunded: number;
|
|
2418
|
+
|
|
2419
|
+
/**
|
|
2420
|
+
* The datetime the application fee was created.
|
|
2421
|
+
*/
|
|
2422
|
+
created_at: string;
|
|
2423
|
+
|
|
2424
|
+
/**
|
|
2425
|
+
* The currency of the application fee.
|
|
2426
|
+
*/
|
|
2427
|
+
currency: Shared.Currency;
|
|
2428
|
+
}
|
|
2429
|
+
|
|
2373
2430
|
/**
|
|
2374
2431
|
* The address of the user who made the payment.
|
|
2375
2432
|
*/
|
|
@@ -2415,7 +2472,7 @@ export namespace Payment {
|
|
|
2415
2472
|
*/
|
|
2416
2473
|
export interface Company {
|
|
2417
2474
|
/**
|
|
2418
|
-
* The
|
|
2475
|
+
* The unique identifier for the company.
|
|
2419
2476
|
*/
|
|
2420
2477
|
id: string;
|
|
2421
2478
|
|
|
@@ -2435,7 +2492,7 @@ export namespace Payment {
|
|
|
2435
2492
|
*/
|
|
2436
2493
|
export interface Member {
|
|
2437
2494
|
/**
|
|
2438
|
-
* The
|
|
2495
|
+
* The unique identifier for the company member.
|
|
2439
2496
|
*/
|
|
2440
2497
|
id: string;
|
|
2441
2498
|
|
|
@@ -2450,7 +2507,7 @@ export namespace Payment {
|
|
|
2450
2507
|
*/
|
|
2451
2508
|
export interface Membership {
|
|
2452
2509
|
/**
|
|
2453
|
-
* The
|
|
2510
|
+
* The unique identifier for the membership.
|
|
2454
2511
|
*/
|
|
2455
2512
|
id: string;
|
|
2456
2513
|
|
|
@@ -2465,7 +2522,7 @@ export namespace Payment {
|
|
|
2465
2522
|
*/
|
|
2466
2523
|
export interface PaymentMethod {
|
|
2467
2524
|
/**
|
|
2468
|
-
* The
|
|
2525
|
+
* The unique identifier for the payment token.
|
|
2469
2526
|
*/
|
|
2470
2527
|
id: string;
|
|
2471
2528
|
|
|
@@ -2475,7 +2532,7 @@ export namespace Payment {
|
|
|
2475
2532
|
card: PaymentMethod.Card | null;
|
|
2476
2533
|
|
|
2477
2534
|
/**
|
|
2478
|
-
* The
|
|
2535
|
+
* The datetime the payment token was created.
|
|
2479
2536
|
*/
|
|
2480
2537
|
created_at: string;
|
|
2481
2538
|
|
|
@@ -2517,7 +2574,7 @@ export namespace Payment {
|
|
|
2517
2574
|
*/
|
|
2518
2575
|
export interface Plan {
|
|
2519
2576
|
/**
|
|
2520
|
-
* The
|
|
2577
|
+
* The unique identifier for the plan.
|
|
2521
2578
|
*/
|
|
2522
2579
|
id: string;
|
|
2523
2580
|
}
|
|
@@ -2527,7 +2584,7 @@ export namespace Payment {
|
|
|
2527
2584
|
*/
|
|
2528
2585
|
export interface Product {
|
|
2529
2586
|
/**
|
|
2530
|
-
* The
|
|
2587
|
+
* The unique identifier for the product.
|
|
2531
2588
|
*/
|
|
2532
2589
|
id: string;
|
|
2533
2590
|
|
|
@@ -2547,12 +2604,14 @@ export namespace Payment {
|
|
|
2547
2604
|
*/
|
|
2548
2605
|
export interface PromoCode {
|
|
2549
2606
|
/**
|
|
2550
|
-
* The
|
|
2607
|
+
* The unique identifier for the promo code.
|
|
2551
2608
|
*/
|
|
2552
2609
|
id: string;
|
|
2553
2610
|
|
|
2554
2611
|
/**
|
|
2555
|
-
* The amount
|
|
2612
|
+
* The discount amount. Interpretation depends on promo_type: if 'percentage', this
|
|
2613
|
+
* is the percentage (e.g., 20 means 20% off); if 'flat_amount', this is dollars
|
|
2614
|
+
* off (e.g., 10.00 means $10.00 off).
|
|
2556
2615
|
*/
|
|
2557
2616
|
amount_off: number;
|
|
2558
2617
|
|
|
@@ -2582,7 +2641,7 @@ export namespace Payment {
|
|
|
2582
2641
|
*/
|
|
2583
2642
|
export interface User {
|
|
2584
2643
|
/**
|
|
2585
|
-
* The
|
|
2644
|
+
* The unique identifier for the user.
|
|
2586
2645
|
*/
|
|
2587
2646
|
id: string;
|
|
2588
2647
|
|
|
@@ -2604,18 +2663,18 @@ export namespace Payment {
|
|
|
2604
2663
|
}
|
|
2605
2664
|
|
|
2606
2665
|
/**
|
|
2607
|
-
* A plan
|
|
2608
|
-
*
|
|
2609
|
-
*
|
|
2666
|
+
* A plan defines pricing and billing terms for a product. Each product can have
|
|
2667
|
+
* multiple plans representing different pricing options, such as one-time
|
|
2668
|
+
* payments, recurring subscriptions, or free trials.
|
|
2610
2669
|
*/
|
|
2611
2670
|
export interface Plan {
|
|
2612
2671
|
/**
|
|
2613
|
-
* The
|
|
2672
|
+
* The unique identifier for the plan.
|
|
2614
2673
|
*/
|
|
2615
2674
|
id: string;
|
|
2616
2675
|
|
|
2617
2676
|
/**
|
|
2618
|
-
* The interval at which the plan charges (renewal plans).
|
|
2677
|
+
* The interval in days at which the plan charges (renewal plans).
|
|
2619
2678
|
*/
|
|
2620
2679
|
billing_period: number | null;
|
|
2621
2680
|
|
|
@@ -2630,7 +2689,7 @@ export interface Plan {
|
|
|
2630
2689
|
company: Plan.Company | null;
|
|
2631
2690
|
|
|
2632
2691
|
/**
|
|
2633
|
-
*
|
|
2692
|
+
* The datetime the plan was created.
|
|
2634
2693
|
*/
|
|
2635
2694
|
created_at: string;
|
|
2636
2695
|
|
|
@@ -2650,12 +2709,15 @@ export interface Plan {
|
|
|
2650
2709
|
description: string | null;
|
|
2651
2710
|
|
|
2652
2711
|
/**
|
|
2653
|
-
* The
|
|
2712
|
+
* The number of days until the membership expires (for expiration-based plans).
|
|
2713
|
+
* For example, 365 for a one-year access pass.
|
|
2654
2714
|
*/
|
|
2655
2715
|
expiration_days: number | null;
|
|
2656
2716
|
|
|
2657
2717
|
/**
|
|
2658
|
-
* The
|
|
2718
|
+
* The initial purchase price in the plan's base_currency (e.g., 49.99 for $49.99).
|
|
2719
|
+
* For one-time plans, this is the full price. For renewal plans, this is charged
|
|
2720
|
+
* on top of the first renewal_price.
|
|
2659
2721
|
*/
|
|
2660
2722
|
initial_price: number;
|
|
2661
2723
|
|
|
@@ -2700,7 +2762,8 @@ export interface Plan {
|
|
|
2700
2762
|
release_method: ReleaseMethod;
|
|
2701
2763
|
|
|
2702
2764
|
/**
|
|
2703
|
-
* The price
|
|
2765
|
+
* The recurring price charged every billing_period in the plan's base_currency
|
|
2766
|
+
* (e.g., 9.99 for $9.99/period). Zero for one-time plans.
|
|
2704
2767
|
*/
|
|
2705
2768
|
renewal_price: number;
|
|
2706
2769
|
|
|
@@ -2730,12 +2793,13 @@ export interface Plan {
|
|
|
2730
2793
|
trial_period_days: number | null;
|
|
2731
2794
|
|
|
2732
2795
|
/**
|
|
2733
|
-
*
|
|
2796
|
+
* When true, the plan has unlimited stock (stock field is ignored). When false,
|
|
2797
|
+
* purchases are limited by the stock field.
|
|
2734
2798
|
*/
|
|
2735
2799
|
unlimited_stock: boolean;
|
|
2736
2800
|
|
|
2737
2801
|
/**
|
|
2738
|
-
*
|
|
2802
|
+
* The datetime the plan was last updated.
|
|
2739
2803
|
*/
|
|
2740
2804
|
updated_at: string;
|
|
2741
2805
|
|
|
@@ -2751,7 +2815,7 @@ export namespace Plan {
|
|
|
2751
2815
|
*/
|
|
2752
2816
|
export interface Company {
|
|
2753
2817
|
/**
|
|
2754
|
-
* The
|
|
2818
|
+
* The unique identifier for the company.
|
|
2755
2819
|
*/
|
|
2756
2820
|
id: string;
|
|
2757
2821
|
|
|
@@ -2766,7 +2830,7 @@ export namespace Plan {
|
|
|
2766
2830
|
*/
|
|
2767
2831
|
export interface CustomField {
|
|
2768
2832
|
/**
|
|
2769
|
-
* The
|
|
2833
|
+
* The unique identifier for the custom field.
|
|
2770
2834
|
*/
|
|
2771
2835
|
id: string;
|
|
2772
2836
|
|
|
@@ -2801,7 +2865,7 @@ export namespace Plan {
|
|
|
2801
2865
|
*/
|
|
2802
2866
|
export interface Invoice {
|
|
2803
2867
|
/**
|
|
2804
|
-
* The
|
|
2868
|
+
* The unique identifier for the invoice.
|
|
2805
2869
|
*/
|
|
2806
2870
|
id: string;
|
|
2807
2871
|
}
|
|
@@ -2837,7 +2901,7 @@ export namespace Plan {
|
|
|
2837
2901
|
*/
|
|
2838
2902
|
export interface Product {
|
|
2839
2903
|
/**
|
|
2840
|
-
* The
|
|
2904
|
+
* The unique identifier for the product.
|
|
2841
2905
|
*/
|
|
2842
2906
|
id: string;
|
|
2843
2907
|
|
|
@@ -2854,11 +2918,12 @@ export namespace Plan {
|
|
|
2854
2918
|
export type PlanType = 'renewal' | 'one_time';
|
|
2855
2919
|
|
|
2856
2920
|
/**
|
|
2857
|
-
*
|
|
2921
|
+
* A product is a digital good or service sold on Whop. Products contain plans for
|
|
2922
|
+
* pricing and experiences for content delivery.
|
|
2858
2923
|
*/
|
|
2859
2924
|
export interface Product {
|
|
2860
2925
|
/**
|
|
2861
|
-
* The
|
|
2926
|
+
* The unique identifier for the product.
|
|
2862
2927
|
*/
|
|
2863
2928
|
id: string;
|
|
2864
2929
|
|
|
@@ -2873,7 +2938,7 @@ export interface Product {
|
|
|
2873
2938
|
company: Product.Company;
|
|
2874
2939
|
|
|
2875
2940
|
/**
|
|
2876
|
-
*
|
|
2941
|
+
* The datetime the product was created.
|
|
2877
2942
|
*/
|
|
2878
2943
|
created_at: string;
|
|
2879
2944
|
|
|
@@ -2967,7 +3032,7 @@ export interface Product {
|
|
|
2967
3032
|
title: string;
|
|
2968
3033
|
|
|
2969
3034
|
/**
|
|
2970
|
-
*
|
|
3035
|
+
* The datetime the product was last updated.
|
|
2971
3036
|
*/
|
|
2972
3037
|
updated_at: string;
|
|
2973
3038
|
|
|
@@ -2988,7 +3053,7 @@ export namespace Product {
|
|
|
2988
3053
|
*/
|
|
2989
3054
|
export interface Company {
|
|
2990
3055
|
/**
|
|
2991
|
-
* The
|
|
3056
|
+
* The unique identifier for the company.
|
|
2992
3057
|
*/
|
|
2993
3058
|
id: string;
|
|
2994
3059
|
|
|
@@ -3008,7 +3073,7 @@ export namespace Product {
|
|
|
3008
3073
|
*/
|
|
3009
3074
|
export interface OwnerUser {
|
|
3010
3075
|
/**
|
|
3011
|
-
* The
|
|
3076
|
+
* The unique identifier for the user.
|
|
3012
3077
|
*/
|
|
3013
3078
|
id: string;
|
|
3014
3079
|
|
|
@@ -3028,7 +3093,7 @@ export namespace Product {
|
|
|
3028
3093
|
*/
|
|
3029
3094
|
export interface ProductTaxCode {
|
|
3030
3095
|
/**
|
|
3031
|
-
* The
|
|
3096
|
+
* The unique identifier for the product tax code.
|
|
3032
3097
|
*/
|
|
3033
3098
|
id: string;
|
|
3034
3099
|
|
|
@@ -3045,11 +3110,12 @@ export namespace Product {
|
|
|
3045
3110
|
}
|
|
3046
3111
|
|
|
3047
3112
|
/**
|
|
3048
|
-
*
|
|
3113
|
+
* A product is a digital good or service sold on Whop. Products contain plans for
|
|
3114
|
+
* pricing and experiences for content delivery.
|
|
3049
3115
|
*/
|
|
3050
3116
|
export interface ProductListItem {
|
|
3051
3117
|
/**
|
|
3052
|
-
* The
|
|
3118
|
+
* The unique identifier for the product.
|
|
3053
3119
|
*/
|
|
3054
3120
|
id: string;
|
|
3055
3121
|
|
|
@@ -3059,7 +3125,7 @@ export interface ProductListItem {
|
|
|
3059
3125
|
business_type: BusinessTypes | null;
|
|
3060
3126
|
|
|
3061
3127
|
/**
|
|
3062
|
-
*
|
|
3128
|
+
* The datetime the product was created.
|
|
3063
3129
|
*/
|
|
3064
3130
|
created_at: string;
|
|
3065
3131
|
|
|
@@ -3101,7 +3167,7 @@ export interface ProductListItem {
|
|
|
3101
3167
|
title: string;
|
|
3102
3168
|
|
|
3103
3169
|
/**
|
|
3104
|
-
*
|
|
3170
|
+
* The datetime the product was last updated.
|
|
3105
3171
|
*/
|
|
3106
3172
|
updated_at: string;
|
|
3107
3173
|
|
|
@@ -3152,7 +3218,7 @@ export namespace Reaction {
|
|
|
3152
3218
|
*/
|
|
3153
3219
|
export interface User {
|
|
3154
3220
|
/**
|
|
3155
|
-
* The
|
|
3221
|
+
* The unique identifier for the user.
|
|
3156
3222
|
*/
|
|
3157
3223
|
id: string;
|
|
3158
3224
|
|
|
@@ -3183,7 +3249,7 @@ export type ReleaseMethod = 'buy_now' | 'waitlist';
|
|
|
3183
3249
|
*/
|
|
3184
3250
|
export interface Shipment {
|
|
3185
3251
|
/**
|
|
3186
|
-
* The
|
|
3252
|
+
* The unique identifier for the shipment.
|
|
3187
3253
|
*/
|
|
3188
3254
|
id: string;
|
|
3189
3255
|
|
|
@@ -3193,7 +3259,7 @@ export interface Shipment {
|
|
|
3193
3259
|
carrier: ShipmentCarrier;
|
|
3194
3260
|
|
|
3195
3261
|
/**
|
|
3196
|
-
* The
|
|
3262
|
+
* The datetime the shipment was created.
|
|
3197
3263
|
*/
|
|
3198
3264
|
created_at: string;
|
|
3199
3265
|
|
|
@@ -3228,7 +3294,7 @@ export interface Shipment {
|
|
|
3228
3294
|
tracking_code: string;
|
|
3229
3295
|
|
|
3230
3296
|
/**
|
|
3231
|
-
* The
|
|
3297
|
+
* The datetime the shipment was last updated.
|
|
3232
3298
|
*/
|
|
3233
3299
|
updated_at: string;
|
|
3234
3300
|
}
|
|
@@ -3239,7 +3305,7 @@ export namespace Shipment {
|
|
|
3239
3305
|
*/
|
|
3240
3306
|
export interface Payment {
|
|
3241
3307
|
/**
|
|
3242
|
-
* The payment
|
|
3308
|
+
* The unique identifier for the payment.
|
|
3243
3309
|
*/
|
|
3244
3310
|
id: string;
|
|
3245
3311
|
}
|
|
@@ -3415,7 +3481,7 @@ export namespace SupportChannel {
|
|
|
3415
3481
|
*/
|
|
3416
3482
|
export interface CustomerUser {
|
|
3417
3483
|
/**
|
|
3418
|
-
* The
|
|
3484
|
+
* The unique identifier for the user.
|
|
3419
3485
|
*/
|
|
3420
3486
|
id: string;
|
|
3421
3487
|
|
|
@@ -3442,17 +3508,18 @@ export type TaxType = 'inclusive' | 'exclusive' | 'unspecified';
|
|
|
3442
3508
|
*/
|
|
3443
3509
|
export interface Transfer {
|
|
3444
3510
|
/**
|
|
3445
|
-
* The unique identifier
|
|
3511
|
+
* The unique identifier for the credit transaction transfer.
|
|
3446
3512
|
*/
|
|
3447
3513
|
id: string;
|
|
3448
3514
|
|
|
3449
3515
|
/**
|
|
3450
|
-
* The amount of the
|
|
3516
|
+
* The amount of the transfer. Provided as a number in the specified currency. Eg:
|
|
3517
|
+
* 10.43 for $10.43 USD.
|
|
3451
3518
|
*/
|
|
3452
3519
|
amount: number;
|
|
3453
3520
|
|
|
3454
3521
|
/**
|
|
3455
|
-
* The
|
|
3522
|
+
* The datetime the credit transaction transfer was created.
|
|
3456
3523
|
*/
|
|
3457
3524
|
created_at: string;
|
|
3458
3525
|
|
|
@@ -3477,7 +3544,8 @@ export interface Transfer {
|
|
|
3477
3544
|
fee_amount: number | null;
|
|
3478
3545
|
|
|
3479
3546
|
/**
|
|
3480
|
-
*
|
|
3547
|
+
* Custom key-value pairs attached to the transfer. Max 50 keys, 500 chars per key,
|
|
3548
|
+
* 5000 chars per value.
|
|
3481
3549
|
*/
|
|
3482
3550
|
metadata: { [key: string]: unknown } | null;
|
|
3483
3551
|
|
|
@@ -3499,11 +3567,12 @@ export interface Transfer {
|
|
|
3499
3567
|
|
|
3500
3568
|
export namespace Transfer {
|
|
3501
3569
|
/**
|
|
3502
|
-
*
|
|
3570
|
+
* A user account on Whop. Contains profile information, identity details, and
|
|
3571
|
+
* social connections.
|
|
3503
3572
|
*/
|
|
3504
3573
|
export interface User {
|
|
3505
3574
|
/**
|
|
3506
|
-
* The
|
|
3575
|
+
* The unique identifier for the user.
|
|
3507
3576
|
*/
|
|
3508
3577
|
id: string;
|
|
3509
3578
|
|
|
@@ -3524,11 +3593,12 @@ export namespace Transfer {
|
|
|
3524
3593
|
}
|
|
3525
3594
|
|
|
3526
3595
|
/**
|
|
3527
|
-
*
|
|
3596
|
+
* A company is a seller on Whop. Companies own products, manage members, and
|
|
3597
|
+
* receive payouts.
|
|
3528
3598
|
*/
|
|
3529
3599
|
export interface Company {
|
|
3530
3600
|
/**
|
|
3531
|
-
* The
|
|
3601
|
+
* The unique identifier for the company.
|
|
3532
3602
|
*/
|
|
3533
3603
|
id: string;
|
|
3534
3604
|
|
|
@@ -3549,11 +3619,12 @@ export namespace Transfer {
|
|
|
3549
3619
|
}
|
|
3550
3620
|
|
|
3551
3621
|
/**
|
|
3552
|
-
*
|
|
3622
|
+
* A user account on Whop. Contains profile information, identity details, and
|
|
3623
|
+
* social connections.
|
|
3553
3624
|
*/
|
|
3554
3625
|
export interface User {
|
|
3555
3626
|
/**
|
|
3556
|
-
* The
|
|
3627
|
+
* The unique identifier for the user.
|
|
3557
3628
|
*/
|
|
3558
3629
|
id: string;
|
|
3559
3630
|
|
|
@@ -3574,11 +3645,12 @@ export namespace Transfer {
|
|
|
3574
3645
|
}
|
|
3575
3646
|
|
|
3576
3647
|
/**
|
|
3577
|
-
*
|
|
3648
|
+
* A company is a seller on Whop. Companies own products, manage members, and
|
|
3649
|
+
* receive payouts.
|
|
3578
3650
|
*/
|
|
3579
3651
|
export interface Company {
|
|
3580
3652
|
/**
|
|
3581
|
-
* The
|
|
3653
|
+
* The unique identifier for the company.
|
|
3582
3654
|
*/
|
|
3583
3655
|
id: string;
|
|
3584
3656
|
|