@whop/sdk 0.0.26 → 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 +37 -0
- package/client.d.mts +6 -5
- package/client.d.mts.map +1 -1
- package/client.d.ts +6 -5
- package/client.d.ts.map +1 -1
- package/client.js +9 -2
- package/client.js.map +1 -1
- package/client.mjs +9 -2
- package/client.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 +37 -9
- package/resources/ai-chats.d.mts.map +1 -1
- package/resources/ai-chats.d.ts +37 -9
- 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 +6 -6
- package/resources/authorized-users.d.ts +6 -6
- 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 +10 -10
- package/resources/company-token-transactions.d.ts +10 -10
- 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/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 +2 -2
- package/resources/files.d.ts +2 -2
- 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 +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- 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 +12 -12
- package/resources/leads.d.ts +12 -12
- package/resources/ledger-accounts.d.mts +9 -7
- package/resources/ledger-accounts.d.mts.map +1 -1
- package/resources/ledger-accounts.d.ts +9 -7
- package/resources/ledger-accounts.d.ts.map +1 -1
- package/resources/members.d.mts +9 -9
- package/resources/members.d.ts +9 -9
- package/resources/memberships.d.mts +17 -12
- package/resources/memberships.d.mts.map +1 -1
- package/resources/memberships.d.ts +17 -12
- 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 +27 -20
- package/resources/payments.d.mts.map +1 -1
- package/resources/payments.d.ts +27 -20
- package/resources/payments.d.ts.map +1 -1
- package/resources/payout-methods.d.mts +6 -6
- package/resources/payout-methods.d.ts +6 -6
- 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 +175 -137
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +175 -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 +1 -1
- package/resources/verifications.d.ts +1 -1
- package/resources/webhooks.d.mts +71 -57
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +71 -57
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/withdrawals.d.mts +15 -11
- package/resources/withdrawals.d.mts.map +1 -1
- package/resources/withdrawals.d.ts +15 -11
- package/resources/withdrawals.d.ts.map +1 -1
- package/src/client.ts +20 -8
- package/src/resources/access-tokens.ts +35 -56
- package/src/resources/ai-chats.ts +42 -9
- package/src/resources/app-builds.ts +2 -2
- package/src/resources/apps.ts +5 -4
- package/src/resources/authorized-users.ts +6 -6
- 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 +10 -10
- 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/entries.ts +6 -6
- package/src/resources/experiences.ts +6 -5
- package/src/resources/fee-markups.ts +6 -6
- package/src/resources/files.ts +2 -2
- package/src/resources/forum-posts.ts +8 -4
- package/src/resources/forums.ts +1 -1
- package/src/resources/index.ts +2 -1
- package/src/resources/invoices.ts +28 -20
- package/src/resources/leads.ts +12 -12
- package/src/resources/ledger-accounts.ts +9 -7
- package/src/resources/members.ts +9 -9
- package/src/resources/memberships.ts +18 -12
- package/src/resources/messages.ts +7 -3
- package/src/resources/payments.ts +28 -18
- package/src/resources/payout-methods.ts +6 -6
- 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 +176 -137
- 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 +1 -1
- package/src/resources/webhooks.ts +71 -57
- package/src/resources/withdrawals.ts +15 -11
- 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/resources/shared.d.ts
CHANGED
|
@@ -14,11 +14,12 @@ export type AccessLevel = 'no_access' | 'admin' | 'customer';
|
|
|
14
14
|
*/
|
|
15
15
|
export type AccessPassType = 'regular' | 'app' | 'experience_upsell' | 'api_only';
|
|
16
16
|
/**
|
|
17
|
-
* An
|
|
17
|
+
* An app is an integration built on Whop. Apps can serve consumers as experiences
|
|
18
|
+
* within products, or serve companies as business tools.
|
|
18
19
|
*/
|
|
19
20
|
export interface App {
|
|
20
21
|
/**
|
|
21
|
-
* The
|
|
22
|
+
* The unique identifier for the app.
|
|
22
23
|
*/
|
|
23
24
|
id: string;
|
|
24
25
|
/**
|
|
@@ -104,7 +105,7 @@ export declare namespace App {
|
|
|
104
105
|
*/
|
|
105
106
|
interface APIKey {
|
|
106
107
|
/**
|
|
107
|
-
* The
|
|
108
|
+
* The unique identifier for the private api key.
|
|
108
109
|
*/
|
|
109
110
|
id: string;
|
|
110
111
|
/**
|
|
@@ -112,7 +113,7 @@ export declare namespace App {
|
|
|
112
113
|
*/
|
|
113
114
|
token: string;
|
|
114
115
|
/**
|
|
115
|
-
*
|
|
116
|
+
* The datetime the private api key was created.
|
|
116
117
|
*/
|
|
117
118
|
created_at: string;
|
|
118
119
|
}
|
|
@@ -121,7 +122,7 @@ export declare namespace App {
|
|
|
121
122
|
*/
|
|
122
123
|
interface Company {
|
|
123
124
|
/**
|
|
124
|
-
* The
|
|
125
|
+
* The unique identifier for the company.
|
|
125
126
|
*/
|
|
126
127
|
id: string;
|
|
127
128
|
/**
|
|
@@ -134,7 +135,7 @@ export declare namespace App {
|
|
|
134
135
|
*/
|
|
135
136
|
interface Creator {
|
|
136
137
|
/**
|
|
137
|
-
* The
|
|
138
|
+
* The unique identifier for the user.
|
|
138
139
|
*/
|
|
139
140
|
id: string;
|
|
140
141
|
/**
|
|
@@ -220,7 +221,7 @@ export declare namespace App {
|
|
|
220
221
|
*/
|
|
221
222
|
export interface AppBuild {
|
|
222
223
|
/**
|
|
223
|
-
* The
|
|
224
|
+
* The unique identifier for the app build.
|
|
224
225
|
*/
|
|
225
226
|
id: string;
|
|
226
227
|
/**
|
|
@@ -229,7 +230,7 @@ export interface AppBuild {
|
|
|
229
230
|
*/
|
|
230
231
|
checksum: string;
|
|
231
232
|
/**
|
|
232
|
-
*
|
|
233
|
+
* The datetime the app build was created.
|
|
233
234
|
*/
|
|
234
235
|
created_at: string;
|
|
235
236
|
/**
|
|
@@ -326,7 +327,7 @@ export declare namespace ChatChannel {
|
|
|
326
327
|
*/
|
|
327
328
|
interface Experience {
|
|
328
329
|
/**
|
|
329
|
-
* The unique
|
|
330
|
+
* The unique identifier for the experience.
|
|
330
331
|
*/
|
|
331
332
|
id: string;
|
|
332
333
|
/**
|
|
@@ -336,14 +337,13 @@ export declare namespace ChatChannel {
|
|
|
336
337
|
}
|
|
337
338
|
}
|
|
338
339
|
/**
|
|
339
|
-
* A checkout configuration
|
|
340
|
-
*
|
|
341
|
-
*
|
|
342
|
-
* All successful payments and memberships resulting from a checkout will contain the passed metadata.
|
|
340
|
+
* A checkout session is a reusable configuration for a checkout, including the
|
|
341
|
+
* plan, affiliate, and custom metadata. Payments and memberships created from a
|
|
342
|
+
* checkout session inherit its metadata.
|
|
343
343
|
*/
|
|
344
344
|
export interface CheckoutConfiguration {
|
|
345
345
|
/**
|
|
346
|
-
* The
|
|
346
|
+
* The unique identifier for the checkout session.
|
|
347
347
|
*/
|
|
348
348
|
id: string;
|
|
349
349
|
/**
|
|
@@ -419,11 +419,11 @@ export declare namespace CheckoutConfiguration {
|
|
|
419
419
|
*/
|
|
420
420
|
interface Plan {
|
|
421
421
|
/**
|
|
422
|
-
* The
|
|
422
|
+
* The unique identifier for the plan.
|
|
423
423
|
*/
|
|
424
424
|
id: string;
|
|
425
425
|
/**
|
|
426
|
-
* The interval at which the plan charges (renewal plans).
|
|
426
|
+
* The interval in days at which the plan charges (renewal plans).
|
|
427
427
|
*/
|
|
428
428
|
billing_period: number | null;
|
|
429
429
|
/**
|
|
@@ -431,11 +431,14 @@ export declare namespace CheckoutConfiguration {
|
|
|
431
431
|
*/
|
|
432
432
|
currency: Shared.Currency;
|
|
433
433
|
/**
|
|
434
|
-
* The
|
|
434
|
+
* The number of days until the membership expires (for expiration-based plans).
|
|
435
|
+
* For example, 365 for a one-year access pass.
|
|
435
436
|
*/
|
|
436
437
|
expiration_days: number | null;
|
|
437
438
|
/**
|
|
438
|
-
* The
|
|
439
|
+
* The initial purchase price in the plan's base_currency (e.g., 49.99 for $49.99).
|
|
440
|
+
* For one-time plans, this is the full price. For renewal plans, this is charged
|
|
441
|
+
* on top of the first renewal_price.
|
|
439
442
|
*/
|
|
440
443
|
initial_price: number;
|
|
441
444
|
/**
|
|
@@ -447,7 +450,8 @@ export declare namespace CheckoutConfiguration {
|
|
|
447
450
|
*/
|
|
448
451
|
release_method: Shared.ReleaseMethod;
|
|
449
452
|
/**
|
|
450
|
-
* The price
|
|
453
|
+
* The recurring price charged every billing_period in the plan's base_currency
|
|
454
|
+
* (e.g., 9.99 for $9.99/period). Zero for one-time plans.
|
|
451
455
|
*/
|
|
452
456
|
renewal_price: number;
|
|
453
457
|
/**
|
|
@@ -465,11 +469,12 @@ export declare namespace CheckoutConfiguration {
|
|
|
465
469
|
*/
|
|
466
470
|
export type CollectionMethod = 'send_invoice' | 'charge_automatically';
|
|
467
471
|
/**
|
|
468
|
-
*
|
|
472
|
+
* A company is a seller on Whop. Companies own products, manage members, and
|
|
473
|
+
* receive payouts.
|
|
469
474
|
*/
|
|
470
475
|
export interface Company {
|
|
471
476
|
/**
|
|
472
|
-
* The
|
|
477
|
+
* The unique identifier for the company.
|
|
473
478
|
*/
|
|
474
479
|
id: string;
|
|
475
480
|
/**
|
|
@@ -477,7 +482,7 @@ export interface Company {
|
|
|
477
482
|
*/
|
|
478
483
|
business_type: BusinessTypes | null;
|
|
479
484
|
/**
|
|
480
|
-
*
|
|
485
|
+
* The datetime the company was created.
|
|
481
486
|
*/
|
|
482
487
|
created_at: string;
|
|
483
488
|
/**
|
|
@@ -528,7 +533,7 @@ export interface Company {
|
|
|
528
533
|
*/
|
|
529
534
|
title: string;
|
|
530
535
|
/**
|
|
531
|
-
* The
|
|
536
|
+
* The datetime the company was last updated.
|
|
532
537
|
*/
|
|
533
538
|
updated_at: string;
|
|
534
539
|
/**
|
|
@@ -552,7 +557,7 @@ export declare namespace Company {
|
|
|
552
557
|
*/
|
|
553
558
|
interface OwnerUser {
|
|
554
559
|
/**
|
|
555
|
-
* The
|
|
560
|
+
* The unique identifier for the user.
|
|
556
561
|
*/
|
|
557
562
|
id: string;
|
|
558
563
|
/**
|
|
@@ -569,7 +574,7 @@ export declare namespace Company {
|
|
|
569
574
|
*/
|
|
570
575
|
interface SocialLink {
|
|
571
576
|
/**
|
|
572
|
-
* The
|
|
577
|
+
* The unique identifier for the social link.
|
|
573
578
|
*/
|
|
574
579
|
id: string;
|
|
575
580
|
/**
|
|
@@ -587,7 +592,7 @@ export declare namespace Company {
|
|
|
587
592
|
*/
|
|
588
593
|
export interface CourseLessonInteraction {
|
|
589
594
|
/**
|
|
590
|
-
* The
|
|
595
|
+
* The unique identifier for the lesson interaction.
|
|
591
596
|
*/
|
|
592
597
|
id: string;
|
|
593
598
|
/**
|
|
@@ -599,7 +604,7 @@ export interface CourseLessonInteraction {
|
|
|
599
604
|
*/
|
|
600
605
|
course: CourseLessonInteraction.Course;
|
|
601
606
|
/**
|
|
602
|
-
*
|
|
607
|
+
* The datetime the lesson interaction was created.
|
|
603
608
|
*/
|
|
604
609
|
created_at: string;
|
|
605
610
|
/**
|
|
@@ -617,7 +622,7 @@ export declare namespace CourseLessonInteraction {
|
|
|
617
622
|
*/
|
|
618
623
|
interface Course {
|
|
619
624
|
/**
|
|
620
|
-
* The
|
|
625
|
+
* The unique identifier for the course.
|
|
621
626
|
*/
|
|
622
627
|
id: string;
|
|
623
628
|
/**
|
|
@@ -635,7 +640,7 @@ export declare namespace CourseLessonInteraction {
|
|
|
635
640
|
*/
|
|
636
641
|
interface Experience {
|
|
637
642
|
/**
|
|
638
|
-
* The unique
|
|
643
|
+
* The unique identifier for the experience.
|
|
639
644
|
*/
|
|
640
645
|
id: string;
|
|
641
646
|
}
|
|
@@ -645,7 +650,7 @@ export declare namespace CourseLessonInteraction {
|
|
|
645
650
|
*/
|
|
646
651
|
interface Lesson {
|
|
647
652
|
/**
|
|
648
|
-
* The
|
|
653
|
+
* The unique identifier for the lesson.
|
|
649
654
|
*/
|
|
650
655
|
id: string;
|
|
651
656
|
/**
|
|
@@ -663,7 +668,7 @@ export declare namespace CourseLessonInteraction {
|
|
|
663
668
|
*/
|
|
664
669
|
interface Chapter {
|
|
665
670
|
/**
|
|
666
|
-
* The
|
|
671
|
+
* The unique identifier for the chapter.
|
|
667
672
|
*/
|
|
668
673
|
id: string;
|
|
669
674
|
}
|
|
@@ -673,7 +678,7 @@ export declare namespace CourseLessonInteraction {
|
|
|
673
678
|
*/
|
|
674
679
|
interface User {
|
|
675
680
|
/**
|
|
676
|
-
* The
|
|
681
|
+
* The unique identifier for the user.
|
|
677
682
|
*/
|
|
678
683
|
id: string;
|
|
679
684
|
/**
|
|
@@ -691,7 +696,7 @@ export declare namespace CourseLessonInteraction {
|
|
|
691
696
|
*/
|
|
692
697
|
export interface CourseLessonInteractionListItem {
|
|
693
698
|
/**
|
|
694
|
-
* The
|
|
699
|
+
* The unique identifier for the lesson interaction.
|
|
695
700
|
*/
|
|
696
701
|
id: string;
|
|
697
702
|
/**
|
|
@@ -699,7 +704,7 @@ export interface CourseLessonInteractionListItem {
|
|
|
699
704
|
*/
|
|
700
705
|
completed: boolean;
|
|
701
706
|
/**
|
|
702
|
-
*
|
|
707
|
+
* The datetime the lesson interaction was created.
|
|
703
708
|
*/
|
|
704
709
|
created_at: string;
|
|
705
710
|
/**
|
|
@@ -717,7 +722,7 @@ export declare namespace CourseLessonInteractionListItem {
|
|
|
717
722
|
*/
|
|
718
723
|
interface Lesson {
|
|
719
724
|
/**
|
|
720
|
-
* The
|
|
725
|
+
* The unique identifier for the lesson.
|
|
721
726
|
*/
|
|
722
727
|
id: string;
|
|
723
728
|
/**
|
|
@@ -735,7 +740,7 @@ export declare namespace CourseLessonInteractionListItem {
|
|
|
735
740
|
*/
|
|
736
741
|
interface Chapter {
|
|
737
742
|
/**
|
|
738
|
-
* The
|
|
743
|
+
* The unique identifier for the chapter.
|
|
739
744
|
*/
|
|
740
745
|
id: string;
|
|
741
746
|
}
|
|
@@ -745,7 +750,7 @@ export declare namespace CourseLessonInteractionListItem {
|
|
|
745
750
|
*/
|
|
746
751
|
interface User {
|
|
747
752
|
/**
|
|
748
|
-
* The
|
|
753
|
+
* The unique identifier for the user.
|
|
749
754
|
*/
|
|
750
755
|
id: string;
|
|
751
756
|
/**
|
|
@@ -779,15 +784,15 @@ export type DmsPostTypes = 'regular' | 'system' | 'automated';
|
|
|
779
784
|
*/
|
|
780
785
|
export type EmailNotificationPreferences = 'all_admin_posts' | 'only_weekly_summary' | 'none';
|
|
781
786
|
/**
|
|
782
|
-
* An
|
|
787
|
+
* An entry represents a user's signup for a waitlisted plan.
|
|
783
788
|
*/
|
|
784
789
|
export interface Entry {
|
|
785
790
|
/**
|
|
786
|
-
* The
|
|
791
|
+
* The unique identifier for the entry.
|
|
787
792
|
*/
|
|
788
793
|
id: string;
|
|
789
794
|
/**
|
|
790
|
-
*
|
|
795
|
+
* The datetime the entry was created.
|
|
791
796
|
*/
|
|
792
797
|
created_at: string | null;
|
|
793
798
|
/**
|
|
@@ -817,7 +822,7 @@ export declare namespace Entry {
|
|
|
817
822
|
*/
|
|
818
823
|
interface CustomFieldResponse {
|
|
819
824
|
/**
|
|
820
|
-
* The
|
|
825
|
+
* The unique identifier for the custom field response.
|
|
821
826
|
*/
|
|
822
827
|
id: string;
|
|
823
828
|
/**
|
|
@@ -834,7 +839,7 @@ export declare namespace Entry {
|
|
|
834
839
|
*/
|
|
835
840
|
interface Plan {
|
|
836
841
|
/**
|
|
837
|
-
* The
|
|
842
|
+
* The unique identifier for the plan.
|
|
838
843
|
*/
|
|
839
844
|
id: string;
|
|
840
845
|
}
|
|
@@ -843,7 +848,7 @@ export declare namespace Entry {
|
|
|
843
848
|
*/
|
|
844
849
|
interface Product {
|
|
845
850
|
/**
|
|
846
|
-
* The
|
|
851
|
+
* The unique identifier for the product.
|
|
847
852
|
*/
|
|
848
853
|
id: string;
|
|
849
854
|
/**
|
|
@@ -856,7 +861,7 @@ export declare namespace Entry {
|
|
|
856
861
|
*/
|
|
857
862
|
interface User {
|
|
858
863
|
/**
|
|
859
|
-
* The
|
|
864
|
+
* The unique identifier for the user.
|
|
860
865
|
*/
|
|
861
866
|
id: string;
|
|
862
867
|
/**
|
|
@@ -878,11 +883,12 @@ export declare namespace Entry {
|
|
|
878
883
|
*/
|
|
879
884
|
export type EntryStatus = 'drafted' | 'pending' | 'approved' | 'denied' | 'any';
|
|
880
885
|
/**
|
|
881
|
-
* An
|
|
886
|
+
* An experience is a feature or content module within a product, such as a chat,
|
|
887
|
+
* course, or app.
|
|
882
888
|
*/
|
|
883
889
|
export interface Experience {
|
|
884
890
|
/**
|
|
885
|
-
* The unique
|
|
891
|
+
* The unique identifier for the experience.
|
|
886
892
|
*/
|
|
887
893
|
id: string;
|
|
888
894
|
/**
|
|
@@ -894,7 +900,7 @@ export interface Experience {
|
|
|
894
900
|
*/
|
|
895
901
|
company: Experience.Company;
|
|
896
902
|
/**
|
|
897
|
-
* The
|
|
903
|
+
* The datetime the experience was created.
|
|
898
904
|
*/
|
|
899
905
|
created_at: string;
|
|
900
906
|
/**
|
|
@@ -926,7 +932,7 @@ export declare namespace Experience {
|
|
|
926
932
|
*/
|
|
927
933
|
interface App {
|
|
928
934
|
/**
|
|
929
|
-
* The
|
|
935
|
+
* The unique identifier for the app.
|
|
930
936
|
*/
|
|
931
937
|
id: string;
|
|
932
938
|
/**
|
|
@@ -957,7 +963,7 @@ export declare namespace Experience {
|
|
|
957
963
|
*/
|
|
958
964
|
interface Company {
|
|
959
965
|
/**
|
|
960
|
-
* The
|
|
966
|
+
* The unique identifier for the company.
|
|
961
967
|
*/
|
|
962
968
|
id: string;
|
|
963
969
|
/**
|
|
@@ -980,11 +986,12 @@ export declare namespace Experience {
|
|
|
980
986
|
url: string | null;
|
|
981
987
|
}
|
|
982
988
|
/**
|
|
983
|
-
*
|
|
989
|
+
* A product is a digital good or service sold on Whop. Products contain plans for
|
|
990
|
+
* pricing and experiences for content delivery.
|
|
984
991
|
*/
|
|
985
992
|
interface Product {
|
|
986
993
|
/**
|
|
987
|
-
* The
|
|
994
|
+
* The unique identifier for the product.
|
|
988
995
|
*/
|
|
989
996
|
id: string;
|
|
990
997
|
/**
|
|
@@ -1028,7 +1035,7 @@ export declare namespace Forum {
|
|
|
1028
1035
|
*/
|
|
1029
1036
|
interface Experience {
|
|
1030
1037
|
/**
|
|
1031
|
-
* The unique
|
|
1038
|
+
* The unique identifier for the experience.
|
|
1032
1039
|
*/
|
|
1033
1040
|
id: string;
|
|
1034
1041
|
/**
|
|
@@ -1042,7 +1049,11 @@ export declare namespace Forum {
|
|
|
1042
1049
|
*/
|
|
1043
1050
|
export interface ForumPost {
|
|
1044
1051
|
/**
|
|
1045
|
-
*
|
|
1052
|
+
* Represents a unique identifier that is Base64 obfuscated. It is often used to
|
|
1053
|
+
* refetch an object or as key for a cache. The ID type appears in a JSON response
|
|
1054
|
+
* as a String; however, it is not intended to be human-readable. When expected as
|
|
1055
|
+
* an input type, any string (such as `"VXNlci0xMA=="`) or integer (such as `4`)
|
|
1056
|
+
* input value will be accepted as an ID.
|
|
1046
1057
|
*/
|
|
1047
1058
|
id: string;
|
|
1048
1059
|
/**
|
|
@@ -1100,7 +1111,7 @@ export declare namespace ForumPost {
|
|
|
1100
1111
|
*/
|
|
1101
1112
|
interface User {
|
|
1102
1113
|
/**
|
|
1103
|
-
* The
|
|
1114
|
+
* The unique identifier for the user.
|
|
1104
1115
|
*/
|
|
1105
1116
|
id: string;
|
|
1106
1117
|
/**
|
|
@@ -1114,7 +1125,9 @@ export declare namespace ForumPost {
|
|
|
1114
1125
|
}
|
|
1115
1126
|
}
|
|
1116
1127
|
/**
|
|
1117
|
-
* The friendly status of a
|
|
1128
|
+
* The friendly status of a payment. This is a derived status that provides a
|
|
1129
|
+
* human-readable summary of the payment state, combining the underlying status and
|
|
1130
|
+
* substatus fields.
|
|
1118
1131
|
*/
|
|
1119
1132
|
export type FriendlyReceiptStatus = 'succeeded' | 'pending' | 'failed' | 'past_due' | 'canceled' | 'price_too_low' | 'uncollectible' | 'refunded' | 'auto_refunded' | 'partially_refunded' | 'dispute_warning' | 'dispute_needs_response' | 'dispute_warning_needs_response' | 'resolution_needs_response' | 'dispute_under_review' | 'dispute_warning_under_review' | 'resolution_under_review' | 'dispute_won' | 'dispute_warning_closed' | 'resolution_won' | 'dispute_lost' | 'dispute_closed' | 'resolution_lost' | 'drafted' | 'incomplete' | 'unresolved' | 'open_dispute' | 'open_resolution';
|
|
1120
1133
|
/**
|
|
@@ -1130,11 +1143,11 @@ export type IndustryTypes = 'trading' | 'sports_betting' | 'reselling' | 'fitnes
|
|
|
1130
1143
|
*/
|
|
1131
1144
|
export interface Invoice {
|
|
1132
1145
|
/**
|
|
1133
|
-
* The
|
|
1146
|
+
* The unique identifier for the invoice.
|
|
1134
1147
|
*/
|
|
1135
1148
|
id: string;
|
|
1136
1149
|
/**
|
|
1137
|
-
* The
|
|
1150
|
+
* The datetime the invoice was created.
|
|
1138
1151
|
*/
|
|
1139
1152
|
created_at: string;
|
|
1140
1153
|
/**
|
|
@@ -1173,7 +1186,7 @@ export declare namespace Invoice {
|
|
|
1173
1186
|
*/
|
|
1174
1187
|
interface CurrentPlan {
|
|
1175
1188
|
/**
|
|
1176
|
-
* The
|
|
1189
|
+
* The unique identifier for the plan.
|
|
1177
1190
|
*/
|
|
1178
1191
|
id: string;
|
|
1179
1192
|
/**
|
|
@@ -1190,7 +1203,7 @@ export declare namespace Invoice {
|
|
|
1190
1203
|
*/
|
|
1191
1204
|
interface User {
|
|
1192
1205
|
/**
|
|
1193
|
-
* The
|
|
1206
|
+
* The unique identifier for the user.
|
|
1194
1207
|
*/
|
|
1195
1208
|
id: string;
|
|
1196
1209
|
/**
|
|
@@ -1208,11 +1221,11 @@ export declare namespace Invoice {
|
|
|
1208
1221
|
*/
|
|
1209
1222
|
export interface InvoiceListItem {
|
|
1210
1223
|
/**
|
|
1211
|
-
* The
|
|
1224
|
+
* The unique identifier for the invoice.
|
|
1212
1225
|
*/
|
|
1213
1226
|
id: string;
|
|
1214
1227
|
/**
|
|
1215
|
-
* The
|
|
1228
|
+
* The datetime the invoice was created.
|
|
1216
1229
|
*/
|
|
1217
1230
|
created_at: string;
|
|
1218
1231
|
/**
|
|
@@ -1251,7 +1264,7 @@ export declare namespace InvoiceListItem {
|
|
|
1251
1264
|
*/
|
|
1252
1265
|
interface CurrentPlan {
|
|
1253
1266
|
/**
|
|
1254
|
-
* The
|
|
1267
|
+
* The unique identifier for the plan.
|
|
1255
1268
|
*/
|
|
1256
1269
|
id: string;
|
|
1257
1270
|
/**
|
|
@@ -1268,7 +1281,7 @@ export declare namespace InvoiceListItem {
|
|
|
1268
1281
|
*/
|
|
1269
1282
|
interface User {
|
|
1270
1283
|
/**
|
|
1271
|
-
* The
|
|
1284
|
+
* The unique identifier for the user.
|
|
1272
1285
|
*/
|
|
1273
1286
|
id: string;
|
|
1274
1287
|
/**
|
|
@@ -1294,12 +1307,12 @@ export type MemberMostRecentActions = 'canceling' | 'churned' | 'finished_split_
|
|
|
1294
1307
|
*/
|
|
1295
1308
|
export type MemberStatuses = 'drafted' | 'joined' | 'left';
|
|
1296
1309
|
/**
|
|
1297
|
-
* A membership represents
|
|
1298
|
-
*
|
|
1310
|
+
* A membership represents an active relationship between a user and a product. It
|
|
1311
|
+
* tracks the user's access, billing status, and renewal schedule.
|
|
1299
1312
|
*/
|
|
1300
1313
|
export interface Membership {
|
|
1301
1314
|
/**
|
|
1302
|
-
* The
|
|
1315
|
+
* The unique identifier for the membership.
|
|
1303
1316
|
*/
|
|
1304
1317
|
id: string;
|
|
1305
1318
|
/**
|
|
@@ -1325,7 +1338,7 @@ export interface Membership {
|
|
|
1325
1338
|
*/
|
|
1326
1339
|
company: Membership.Company;
|
|
1327
1340
|
/**
|
|
1328
|
-
* The
|
|
1341
|
+
* The datetime the membership was created.
|
|
1329
1342
|
*/
|
|
1330
1343
|
created_at: string;
|
|
1331
1344
|
/**
|
|
@@ -1336,6 +1349,10 @@ export interface Membership {
|
|
|
1336
1349
|
* The responses to custom checkout questions for this membership.
|
|
1337
1350
|
*/
|
|
1338
1351
|
custom_field_responses: Array<Membership.CustomFieldResponse>;
|
|
1352
|
+
/**
|
|
1353
|
+
* When the member joined the company.
|
|
1354
|
+
*/
|
|
1355
|
+
joined_at: string | null;
|
|
1339
1356
|
/**
|
|
1340
1357
|
* The license key for this Membership. This is only present if the membership
|
|
1341
1358
|
* grants access to an instance of the Whop Software app.
|
|
@@ -1350,7 +1367,8 @@ export interface Membership {
|
|
|
1350
1367
|
*/
|
|
1351
1368
|
member: Membership.Member | null;
|
|
1352
1369
|
/**
|
|
1353
|
-
*
|
|
1370
|
+
* Custom key-value pairs for the membership (commonly used for software licensing,
|
|
1371
|
+
* e.g., HWID). Max 50 keys, 500 chars per key, 5000 chars per value.
|
|
1354
1372
|
*/
|
|
1355
1373
|
metadata: {
|
|
1356
1374
|
[key: string]: unknown;
|
|
@@ -1386,7 +1404,7 @@ export interface Membership {
|
|
|
1386
1404
|
*/
|
|
1387
1405
|
status: MembershipStatus;
|
|
1388
1406
|
/**
|
|
1389
|
-
*
|
|
1407
|
+
* The datetime the membership was last updated.
|
|
1390
1408
|
*/
|
|
1391
1409
|
updated_at: string;
|
|
1392
1410
|
/**
|
|
@@ -1400,7 +1418,7 @@ export declare namespace Membership {
|
|
|
1400
1418
|
*/
|
|
1401
1419
|
interface Company {
|
|
1402
1420
|
/**
|
|
1403
|
-
* The
|
|
1421
|
+
* The unique identifier for the company.
|
|
1404
1422
|
*/
|
|
1405
1423
|
id: string;
|
|
1406
1424
|
/**
|
|
@@ -1413,7 +1431,7 @@ export declare namespace Membership {
|
|
|
1413
1431
|
*/
|
|
1414
1432
|
interface CustomFieldResponse {
|
|
1415
1433
|
/**
|
|
1416
|
-
* The
|
|
1434
|
+
* The unique identifier for the custom field response.
|
|
1417
1435
|
*/
|
|
1418
1436
|
id: string;
|
|
1419
1437
|
/**
|
|
@@ -1430,7 +1448,7 @@ export declare namespace Membership {
|
|
|
1430
1448
|
*/
|
|
1431
1449
|
interface Member {
|
|
1432
1450
|
/**
|
|
1433
|
-
* The
|
|
1451
|
+
* The unique identifier for the member.
|
|
1434
1452
|
*/
|
|
1435
1453
|
id: string;
|
|
1436
1454
|
}
|
|
@@ -1439,7 +1457,7 @@ export declare namespace Membership {
|
|
|
1439
1457
|
*/
|
|
1440
1458
|
interface Plan {
|
|
1441
1459
|
/**
|
|
1442
|
-
* The
|
|
1460
|
+
* The unique identifier for the plan.
|
|
1443
1461
|
*/
|
|
1444
1462
|
id: string;
|
|
1445
1463
|
}
|
|
@@ -1448,7 +1466,7 @@ export declare namespace Membership {
|
|
|
1448
1466
|
*/
|
|
1449
1467
|
interface Product {
|
|
1450
1468
|
/**
|
|
1451
|
-
* The
|
|
1469
|
+
* The unique identifier for the product.
|
|
1452
1470
|
*/
|
|
1453
1471
|
id: string;
|
|
1454
1472
|
/**
|
|
@@ -1461,7 +1479,7 @@ export declare namespace Membership {
|
|
|
1461
1479
|
*/
|
|
1462
1480
|
interface PromoCode {
|
|
1463
1481
|
/**
|
|
1464
|
-
* The
|
|
1482
|
+
* The unique identifier for the promo code.
|
|
1465
1483
|
*/
|
|
1466
1484
|
id: string;
|
|
1467
1485
|
}
|
|
@@ -1470,7 +1488,7 @@ export declare namespace Membership {
|
|
|
1470
1488
|
*/
|
|
1471
1489
|
interface User {
|
|
1472
1490
|
/**
|
|
1473
|
-
* The
|
|
1491
|
+
* The unique identifier for the user.
|
|
1474
1492
|
*/
|
|
1475
1493
|
id: string;
|
|
1476
1494
|
/**
|
|
@@ -1496,7 +1514,11 @@ export type MembershipStatus = 'trialing' | 'active' | 'past_due' | 'completed'
|
|
|
1496
1514
|
*/
|
|
1497
1515
|
export interface Message {
|
|
1498
1516
|
/**
|
|
1499
|
-
*
|
|
1517
|
+
* Represents a unique identifier that is Base64 obfuscated. It is often used to
|
|
1518
|
+
* refetch an object or as key for a cache. The ID type appears in a JSON response
|
|
1519
|
+
* as a String; however, it is not intended to be human-readable. When expected as
|
|
1520
|
+
* an input type, any string (such as `"VXNlci0xMA=="`) or integer (such as `4`)
|
|
1521
|
+
* input value will be accepted as an ID.
|
|
1500
1522
|
*/
|
|
1501
1523
|
id: string;
|
|
1502
1524
|
/**
|
|
@@ -1564,7 +1586,7 @@ export declare namespace Message {
|
|
|
1564
1586
|
*/
|
|
1565
1587
|
interface Option {
|
|
1566
1588
|
/**
|
|
1567
|
-
* The
|
|
1589
|
+
* The unique identifier for the poll option.
|
|
1568
1590
|
*/
|
|
1569
1591
|
id: string;
|
|
1570
1592
|
/**
|
|
@@ -1604,7 +1626,7 @@ export declare namespace Message {
|
|
|
1604
1626
|
*/
|
|
1605
1627
|
interface User {
|
|
1606
1628
|
/**
|
|
1607
|
-
* The
|
|
1629
|
+
* The unique identifier for the user.
|
|
1608
1630
|
*/
|
|
1609
1631
|
id: string;
|
|
1610
1632
|
/**
|
|
@@ -1639,11 +1661,12 @@ export interface PageInfo {
|
|
|
1639
1661
|
start_cursor: string | null;
|
|
1640
1662
|
}
|
|
1641
1663
|
/**
|
|
1642
|
-
*
|
|
1664
|
+
* A payment represents a completed or attempted charge for a membership. Payments
|
|
1665
|
+
* track the amount, status, currency, and payment method used.
|
|
1643
1666
|
*/
|
|
1644
1667
|
export interface Payment {
|
|
1645
1668
|
/**
|
|
1646
|
-
* The payment
|
|
1669
|
+
* The unique identifier for the payment.
|
|
1647
1670
|
*/
|
|
1648
1671
|
id: string;
|
|
1649
1672
|
/**
|
|
@@ -1679,7 +1702,7 @@ export interface Payment {
|
|
|
1679
1702
|
*/
|
|
1680
1703
|
company: Payment.Company | null;
|
|
1681
1704
|
/**
|
|
1682
|
-
* The datetime the payment was created
|
|
1705
|
+
* The datetime the payment was created.
|
|
1683
1706
|
*/
|
|
1684
1707
|
created_at: string;
|
|
1685
1708
|
/**
|
|
@@ -1816,7 +1839,7 @@ export declare namespace Payment {
|
|
|
1816
1839
|
*/
|
|
1817
1840
|
amount_refunded: number;
|
|
1818
1841
|
/**
|
|
1819
|
-
*
|
|
1842
|
+
* The datetime the application fee was created.
|
|
1820
1843
|
*/
|
|
1821
1844
|
created_at: string;
|
|
1822
1845
|
/**
|
|
@@ -1862,7 +1885,7 @@ export declare namespace Payment {
|
|
|
1862
1885
|
*/
|
|
1863
1886
|
interface Company {
|
|
1864
1887
|
/**
|
|
1865
|
-
* The
|
|
1888
|
+
* The unique identifier for the company.
|
|
1866
1889
|
*/
|
|
1867
1890
|
id: string;
|
|
1868
1891
|
/**
|
|
@@ -1879,7 +1902,7 @@ export declare namespace Payment {
|
|
|
1879
1902
|
*/
|
|
1880
1903
|
interface Member {
|
|
1881
1904
|
/**
|
|
1882
|
-
* The
|
|
1905
|
+
* The unique identifier for the company member.
|
|
1883
1906
|
*/
|
|
1884
1907
|
id: string;
|
|
1885
1908
|
/**
|
|
@@ -1892,7 +1915,7 @@ export declare namespace Payment {
|
|
|
1892
1915
|
*/
|
|
1893
1916
|
interface Membership {
|
|
1894
1917
|
/**
|
|
1895
|
-
* The
|
|
1918
|
+
* The unique identifier for the membership.
|
|
1896
1919
|
*/
|
|
1897
1920
|
id: string;
|
|
1898
1921
|
/**
|
|
@@ -1905,7 +1928,7 @@ export declare namespace Payment {
|
|
|
1905
1928
|
*/
|
|
1906
1929
|
interface PaymentMethod {
|
|
1907
1930
|
/**
|
|
1908
|
-
* The
|
|
1931
|
+
* The unique identifier for the payment token.
|
|
1909
1932
|
*/
|
|
1910
1933
|
id: string;
|
|
1911
1934
|
/**
|
|
@@ -1913,7 +1936,7 @@ export declare namespace Payment {
|
|
|
1913
1936
|
*/
|
|
1914
1937
|
card: PaymentMethod.Card | null;
|
|
1915
1938
|
/**
|
|
1916
|
-
* The
|
|
1939
|
+
* The datetime the payment token was created.
|
|
1917
1940
|
*/
|
|
1918
1941
|
created_at: string;
|
|
1919
1942
|
/**
|
|
@@ -1949,7 +1972,7 @@ export declare namespace Payment {
|
|
|
1949
1972
|
*/
|
|
1950
1973
|
interface Plan {
|
|
1951
1974
|
/**
|
|
1952
|
-
* The
|
|
1975
|
+
* The unique identifier for the plan.
|
|
1953
1976
|
*/
|
|
1954
1977
|
id: string;
|
|
1955
1978
|
}
|
|
@@ -1958,7 +1981,7 @@ export declare namespace Payment {
|
|
|
1958
1981
|
*/
|
|
1959
1982
|
interface Product {
|
|
1960
1983
|
/**
|
|
1961
|
-
* The
|
|
1984
|
+
* The unique identifier for the product.
|
|
1962
1985
|
*/
|
|
1963
1986
|
id: string;
|
|
1964
1987
|
/**
|
|
@@ -1975,11 +1998,13 @@ export declare namespace Payment {
|
|
|
1975
1998
|
*/
|
|
1976
1999
|
interface PromoCode {
|
|
1977
2000
|
/**
|
|
1978
|
-
* The
|
|
2001
|
+
* The unique identifier for the promo code.
|
|
1979
2002
|
*/
|
|
1980
2003
|
id: string;
|
|
1981
2004
|
/**
|
|
1982
|
-
* The amount
|
|
2005
|
+
* The discount amount. Interpretation depends on promo_type: if 'percentage', this
|
|
2006
|
+
* is the percentage (e.g., 20 means 20% off); if 'flat_amount', this is dollars
|
|
2007
|
+
* off (e.g., 10.00 means $10.00 off).
|
|
1983
2008
|
*/
|
|
1984
2009
|
amount_off: number;
|
|
1985
2010
|
/**
|
|
@@ -2004,7 +2029,7 @@ export declare namespace Payment {
|
|
|
2004
2029
|
*/
|
|
2005
2030
|
interface User {
|
|
2006
2031
|
/**
|
|
2007
|
-
* The
|
|
2032
|
+
* The unique identifier for the user.
|
|
2008
2033
|
*/
|
|
2009
2034
|
id: string;
|
|
2010
2035
|
/**
|
|
@@ -2022,17 +2047,17 @@ export declare namespace Payment {
|
|
|
2022
2047
|
}
|
|
2023
2048
|
}
|
|
2024
2049
|
/**
|
|
2025
|
-
* A plan
|
|
2026
|
-
*
|
|
2027
|
-
*
|
|
2050
|
+
* A plan defines pricing and billing terms for a product. Each product can have
|
|
2051
|
+
* multiple plans representing different pricing options, such as one-time
|
|
2052
|
+
* payments, recurring subscriptions, or free trials.
|
|
2028
2053
|
*/
|
|
2029
2054
|
export interface Plan {
|
|
2030
2055
|
/**
|
|
2031
|
-
* The
|
|
2056
|
+
* The unique identifier for the plan.
|
|
2032
2057
|
*/
|
|
2033
2058
|
id: string;
|
|
2034
2059
|
/**
|
|
2035
|
-
* The interval at which the plan charges (renewal plans).
|
|
2060
|
+
* The interval in days at which the plan charges (renewal plans).
|
|
2036
2061
|
*/
|
|
2037
2062
|
billing_period: number | null;
|
|
2038
2063
|
/**
|
|
@@ -2044,7 +2069,7 @@ export interface Plan {
|
|
|
2044
2069
|
*/
|
|
2045
2070
|
company: Plan.Company | null;
|
|
2046
2071
|
/**
|
|
2047
|
-
*
|
|
2072
|
+
* The datetime the plan was created.
|
|
2048
2073
|
*/
|
|
2049
2074
|
created_at: string;
|
|
2050
2075
|
/**
|
|
@@ -2060,11 +2085,14 @@ export interface Plan {
|
|
|
2060
2085
|
*/
|
|
2061
2086
|
description: string | null;
|
|
2062
2087
|
/**
|
|
2063
|
-
* The
|
|
2088
|
+
* The number of days until the membership expires (for expiration-based plans).
|
|
2089
|
+
* For example, 365 for a one-year access pass.
|
|
2064
2090
|
*/
|
|
2065
2091
|
expiration_days: number | null;
|
|
2066
2092
|
/**
|
|
2067
|
-
* The
|
|
2093
|
+
* The initial purchase price in the plan's base_currency (e.g., 49.99 for $49.99).
|
|
2094
|
+
* For one-time plans, this is the full price. For renewal plans, this is charged
|
|
2095
|
+
* on top of the first renewal_price.
|
|
2068
2096
|
*/
|
|
2069
2097
|
initial_price: number;
|
|
2070
2098
|
/**
|
|
@@ -2100,7 +2128,8 @@ export interface Plan {
|
|
|
2100
2128
|
*/
|
|
2101
2129
|
release_method: ReleaseMethod;
|
|
2102
2130
|
/**
|
|
2103
|
-
* The price
|
|
2131
|
+
* The recurring price charged every billing_period in the plan's base_currency
|
|
2132
|
+
* (e.g., 9.99 for $9.99/period). Zero for one-time plans.
|
|
2104
2133
|
*/
|
|
2105
2134
|
renewal_price: number;
|
|
2106
2135
|
/**
|
|
@@ -2124,11 +2153,12 @@ export interface Plan {
|
|
|
2124
2153
|
*/
|
|
2125
2154
|
trial_period_days: number | null;
|
|
2126
2155
|
/**
|
|
2127
|
-
*
|
|
2156
|
+
* When true, the plan has unlimited stock (stock field is ignored). When false,
|
|
2157
|
+
* purchases are limited by the stock field.
|
|
2128
2158
|
*/
|
|
2129
2159
|
unlimited_stock: boolean;
|
|
2130
2160
|
/**
|
|
2131
|
-
*
|
|
2161
|
+
* The datetime the plan was last updated.
|
|
2132
2162
|
*/
|
|
2133
2163
|
updated_at: string;
|
|
2134
2164
|
/**
|
|
@@ -2142,7 +2172,7 @@ export declare namespace Plan {
|
|
|
2142
2172
|
*/
|
|
2143
2173
|
interface Company {
|
|
2144
2174
|
/**
|
|
2145
|
-
* The
|
|
2175
|
+
* The unique identifier for the company.
|
|
2146
2176
|
*/
|
|
2147
2177
|
id: string;
|
|
2148
2178
|
/**
|
|
@@ -2155,7 +2185,7 @@ export declare namespace Plan {
|
|
|
2155
2185
|
*/
|
|
2156
2186
|
interface CustomField {
|
|
2157
2187
|
/**
|
|
2158
|
-
* The
|
|
2188
|
+
* The unique identifier for the custom field.
|
|
2159
2189
|
*/
|
|
2160
2190
|
id: string;
|
|
2161
2191
|
/**
|
|
@@ -2184,7 +2214,7 @@ export declare namespace Plan {
|
|
|
2184
2214
|
*/
|
|
2185
2215
|
interface Invoice {
|
|
2186
2216
|
/**
|
|
2187
|
-
* The
|
|
2217
|
+
* The unique identifier for the invoice.
|
|
2188
2218
|
*/
|
|
2189
2219
|
id: string;
|
|
2190
2220
|
}
|
|
@@ -2216,7 +2246,7 @@ export declare namespace Plan {
|
|
|
2216
2246
|
*/
|
|
2217
2247
|
interface Product {
|
|
2218
2248
|
/**
|
|
2219
|
-
* The
|
|
2249
|
+
* The unique identifier for the product.
|
|
2220
2250
|
*/
|
|
2221
2251
|
id: string;
|
|
2222
2252
|
/**
|
|
@@ -2230,11 +2260,12 @@ export declare namespace Plan {
|
|
|
2230
2260
|
*/
|
|
2231
2261
|
export type PlanType = 'renewal' | 'one_time';
|
|
2232
2262
|
/**
|
|
2233
|
-
*
|
|
2263
|
+
* A product is a digital good or service sold on Whop. Products contain plans for
|
|
2264
|
+
* pricing and experiences for content delivery.
|
|
2234
2265
|
*/
|
|
2235
2266
|
export interface Product {
|
|
2236
2267
|
/**
|
|
2237
|
-
* The
|
|
2268
|
+
* The unique identifier for the product.
|
|
2238
2269
|
*/
|
|
2239
2270
|
id: string;
|
|
2240
2271
|
/**
|
|
@@ -2246,7 +2277,7 @@ export interface Product {
|
|
|
2246
2277
|
*/
|
|
2247
2278
|
company: Product.Company;
|
|
2248
2279
|
/**
|
|
2249
|
-
*
|
|
2280
|
+
* The datetime the product was created.
|
|
2250
2281
|
*/
|
|
2251
2282
|
created_at: string;
|
|
2252
2283
|
/**
|
|
@@ -2322,7 +2353,7 @@ export interface Product {
|
|
|
2322
2353
|
*/
|
|
2323
2354
|
title: string;
|
|
2324
2355
|
/**
|
|
2325
|
-
*
|
|
2356
|
+
* The datetime the product was last updated.
|
|
2326
2357
|
*/
|
|
2327
2358
|
updated_at: string;
|
|
2328
2359
|
/**
|
|
@@ -2340,7 +2371,7 @@ export declare namespace Product {
|
|
|
2340
2371
|
*/
|
|
2341
2372
|
interface Company {
|
|
2342
2373
|
/**
|
|
2343
|
-
* The
|
|
2374
|
+
* The unique identifier for the company.
|
|
2344
2375
|
*/
|
|
2345
2376
|
id: string;
|
|
2346
2377
|
/**
|
|
@@ -2357,7 +2388,7 @@ export declare namespace Product {
|
|
|
2357
2388
|
*/
|
|
2358
2389
|
interface OwnerUser {
|
|
2359
2390
|
/**
|
|
2360
|
-
* The
|
|
2391
|
+
* The unique identifier for the user.
|
|
2361
2392
|
*/
|
|
2362
2393
|
id: string;
|
|
2363
2394
|
/**
|
|
@@ -2374,7 +2405,7 @@ export declare namespace Product {
|
|
|
2374
2405
|
*/
|
|
2375
2406
|
interface ProductTaxCode {
|
|
2376
2407
|
/**
|
|
2377
|
-
* The
|
|
2408
|
+
* The unique identifier for the product tax code.
|
|
2378
2409
|
*/
|
|
2379
2410
|
id: string;
|
|
2380
2411
|
/**
|
|
@@ -2388,11 +2419,12 @@ export declare namespace Product {
|
|
|
2388
2419
|
}
|
|
2389
2420
|
}
|
|
2390
2421
|
/**
|
|
2391
|
-
*
|
|
2422
|
+
* A product is a digital good or service sold on Whop. Products contain plans for
|
|
2423
|
+
* pricing and experiences for content delivery.
|
|
2392
2424
|
*/
|
|
2393
2425
|
export interface ProductListItem {
|
|
2394
2426
|
/**
|
|
2395
|
-
* The
|
|
2427
|
+
* The unique identifier for the product.
|
|
2396
2428
|
*/
|
|
2397
2429
|
id: string;
|
|
2398
2430
|
/**
|
|
@@ -2400,7 +2432,7 @@ export interface ProductListItem {
|
|
|
2400
2432
|
*/
|
|
2401
2433
|
business_type: BusinessTypes | null;
|
|
2402
2434
|
/**
|
|
2403
|
-
*
|
|
2435
|
+
* The datetime the product was created.
|
|
2404
2436
|
*/
|
|
2405
2437
|
created_at: string;
|
|
2406
2438
|
/**
|
|
@@ -2434,7 +2466,7 @@ export interface ProductListItem {
|
|
|
2434
2466
|
*/
|
|
2435
2467
|
title: string;
|
|
2436
2468
|
/**
|
|
2437
|
-
*
|
|
2469
|
+
* The datetime the product was last updated.
|
|
2438
2470
|
*/
|
|
2439
2471
|
updated_at: string;
|
|
2440
2472
|
/**
|
|
@@ -2477,7 +2509,7 @@ export declare namespace Reaction {
|
|
|
2477
2509
|
*/
|
|
2478
2510
|
interface User {
|
|
2479
2511
|
/**
|
|
2480
|
-
* The
|
|
2512
|
+
* The unique identifier for the user.
|
|
2481
2513
|
*/
|
|
2482
2514
|
id: string;
|
|
2483
2515
|
/**
|
|
@@ -2503,7 +2535,7 @@ export type ReleaseMethod = 'buy_now' | 'waitlist';
|
|
|
2503
2535
|
*/
|
|
2504
2536
|
export interface Shipment {
|
|
2505
2537
|
/**
|
|
2506
|
-
* The
|
|
2538
|
+
* The unique identifier for the shipment.
|
|
2507
2539
|
*/
|
|
2508
2540
|
id: string;
|
|
2509
2541
|
/**
|
|
@@ -2511,7 +2543,7 @@ export interface Shipment {
|
|
|
2511
2543
|
*/
|
|
2512
2544
|
carrier: ShipmentCarrier;
|
|
2513
2545
|
/**
|
|
2514
|
-
* The
|
|
2546
|
+
* The datetime the shipment was created.
|
|
2515
2547
|
*/
|
|
2516
2548
|
created_at: string;
|
|
2517
2549
|
/**
|
|
@@ -2539,7 +2571,7 @@ export interface Shipment {
|
|
|
2539
2571
|
*/
|
|
2540
2572
|
tracking_code: string;
|
|
2541
2573
|
/**
|
|
2542
|
-
* The
|
|
2574
|
+
* The datetime the shipment was last updated.
|
|
2543
2575
|
*/
|
|
2544
2576
|
updated_at: string;
|
|
2545
2577
|
}
|
|
@@ -2549,7 +2581,7 @@ export declare namespace Shipment {
|
|
|
2549
2581
|
*/
|
|
2550
2582
|
interface Payment {
|
|
2551
2583
|
/**
|
|
2552
|
-
* The payment
|
|
2584
|
+
* The unique identifier for the payment.
|
|
2553
2585
|
*/
|
|
2554
2586
|
id: string;
|
|
2555
2587
|
}
|
|
@@ -2601,7 +2633,7 @@ export declare namespace SupportChannel {
|
|
|
2601
2633
|
*/
|
|
2602
2634
|
interface CustomerUser {
|
|
2603
2635
|
/**
|
|
2604
|
-
* The
|
|
2636
|
+
* The unique identifier for the user.
|
|
2605
2637
|
*/
|
|
2606
2638
|
id: string;
|
|
2607
2639
|
/**
|
|
@@ -2624,15 +2656,16 @@ export type TaxType = 'inclusive' | 'exclusive' | 'unspecified';
|
|
|
2624
2656
|
*/
|
|
2625
2657
|
export interface Transfer {
|
|
2626
2658
|
/**
|
|
2627
|
-
* The unique identifier
|
|
2659
|
+
* The unique identifier for the credit transaction transfer.
|
|
2628
2660
|
*/
|
|
2629
2661
|
id: string;
|
|
2630
2662
|
/**
|
|
2631
|
-
* The amount of the
|
|
2663
|
+
* The amount of the transfer. Provided as a number in the specified currency. Eg:
|
|
2664
|
+
* 10.43 for $10.43 USD.
|
|
2632
2665
|
*/
|
|
2633
2666
|
amount: number;
|
|
2634
2667
|
/**
|
|
2635
|
-
* The
|
|
2668
|
+
* The datetime the credit transaction transfer was created.
|
|
2636
2669
|
*/
|
|
2637
2670
|
created_at: string;
|
|
2638
2671
|
/**
|
|
@@ -2652,7 +2685,8 @@ export interface Transfer {
|
|
|
2652
2685
|
*/
|
|
2653
2686
|
fee_amount: number | null;
|
|
2654
2687
|
/**
|
|
2655
|
-
*
|
|
2688
|
+
* Custom key-value pairs attached to the transfer. Max 50 keys, 500 chars per key,
|
|
2689
|
+
* 5000 chars per value.
|
|
2656
2690
|
*/
|
|
2657
2691
|
metadata: {
|
|
2658
2692
|
[key: string]: unknown;
|
|
@@ -2672,11 +2706,12 @@ export interface Transfer {
|
|
|
2672
2706
|
}
|
|
2673
2707
|
export declare namespace Transfer {
|
|
2674
2708
|
/**
|
|
2675
|
-
*
|
|
2709
|
+
* A user account on Whop. Contains profile information, identity details, and
|
|
2710
|
+
* social connections.
|
|
2676
2711
|
*/
|
|
2677
2712
|
interface User {
|
|
2678
2713
|
/**
|
|
2679
|
-
* The
|
|
2714
|
+
* The unique identifier for the user.
|
|
2680
2715
|
*/
|
|
2681
2716
|
id: string;
|
|
2682
2717
|
/**
|
|
@@ -2693,11 +2728,12 @@ export declare namespace Transfer {
|
|
|
2693
2728
|
username: string;
|
|
2694
2729
|
}
|
|
2695
2730
|
/**
|
|
2696
|
-
*
|
|
2731
|
+
* A company is a seller on Whop. Companies own products, manage members, and
|
|
2732
|
+
* receive payouts.
|
|
2697
2733
|
*/
|
|
2698
2734
|
interface Company {
|
|
2699
2735
|
/**
|
|
2700
|
-
* The
|
|
2736
|
+
* The unique identifier for the company.
|
|
2701
2737
|
*/
|
|
2702
2738
|
id: string;
|
|
2703
2739
|
/**
|
|
@@ -2714,11 +2750,12 @@ export declare namespace Transfer {
|
|
|
2714
2750
|
typename: 'Company';
|
|
2715
2751
|
}
|
|
2716
2752
|
/**
|
|
2717
|
-
*
|
|
2753
|
+
* A user account on Whop. Contains profile information, identity details, and
|
|
2754
|
+
* social connections.
|
|
2718
2755
|
*/
|
|
2719
2756
|
interface User {
|
|
2720
2757
|
/**
|
|
2721
|
-
* The
|
|
2758
|
+
* The unique identifier for the user.
|
|
2722
2759
|
*/
|
|
2723
2760
|
id: string;
|
|
2724
2761
|
/**
|
|
@@ -2735,11 +2772,12 @@ export declare namespace Transfer {
|
|
|
2735
2772
|
username: string;
|
|
2736
2773
|
}
|
|
2737
2774
|
/**
|
|
2738
|
-
*
|
|
2775
|
+
* A company is a seller on Whop. Companies own products, manage members, and
|
|
2776
|
+
* receive payouts.
|
|
2739
2777
|
*/
|
|
2740
2778
|
interface Company {
|
|
2741
2779
|
/**
|
|
2742
|
-
* The
|
|
2780
|
+
* The unique identifier for the company.
|
|
2743
2781
|
*/
|
|
2744
2782
|
id: string;
|
|
2745
2783
|
/**
|