@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.
Files changed (271) hide show
  1. package/CHANGELOG.md +58 -0
  2. package/client.d.mts +29 -25
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +29 -25
  5. package/client.d.ts.map +1 -1
  6. package/client.js +14 -3
  7. package/client.js.map +1 -1
  8. package/client.mjs +16 -5
  9. package/client.mjs.map +1 -1
  10. package/internal/parse.d.mts.map +1 -1
  11. package/internal/parse.d.ts.map +1 -1
  12. package/internal/parse.js +5 -0
  13. package/internal/parse.js.map +1 -1
  14. package/internal/parse.mjs +5 -0
  15. package/internal/parse.mjs.map +1 -1
  16. package/package.json +3 -3
  17. package/resources/access-tokens.d.mts +32 -51
  18. package/resources/access-tokens.d.mts.map +1 -1
  19. package/resources/access-tokens.d.ts +32 -51
  20. package/resources/access-tokens.d.ts.map +1 -1
  21. package/resources/access-tokens.js +6 -8
  22. package/resources/access-tokens.js.map +1 -1
  23. package/resources/access-tokens.mjs +6 -8
  24. package/resources/access-tokens.mjs.map +1 -1
  25. package/resources/ai-chats.d.mts +36 -104
  26. package/resources/ai-chats.d.mts.map +1 -1
  27. package/resources/ai-chats.d.ts +36 -104
  28. package/resources/ai-chats.d.ts.map +1 -1
  29. package/resources/ai-chats.js +1 -1
  30. package/resources/ai-chats.js.map +1 -1
  31. package/resources/ai-chats.mjs +1 -1
  32. package/resources/ai-chats.mjs.map +1 -1
  33. package/resources/app-builds.d.mts +2 -2
  34. package/resources/app-builds.d.ts +2 -2
  35. package/resources/apps.d.mts +5 -4
  36. package/resources/apps.d.mts.map +1 -1
  37. package/resources/apps.d.ts +5 -4
  38. package/resources/apps.d.ts.map +1 -1
  39. package/resources/authorized-users.d.mts +43 -9
  40. package/resources/authorized-users.d.mts.map +1 -1
  41. package/resources/authorized-users.d.ts +43 -9
  42. package/resources/authorized-users.d.ts.map +1 -1
  43. package/resources/authorized-users.js +1 -1
  44. package/resources/authorized-users.js.map +1 -1
  45. package/resources/authorized-users.mjs +1 -1
  46. package/resources/authorized-users.mjs.map +1 -1
  47. package/resources/chat-channels.d.mts +1 -1
  48. package/resources/chat-channels.d.ts +1 -1
  49. package/resources/checkout-configurations.d.mts +24 -16
  50. package/resources/checkout-configurations.d.mts.map +1 -1
  51. package/resources/checkout-configurations.d.ts +24 -16
  52. package/resources/checkout-configurations.d.ts.map +1 -1
  53. package/resources/companies.d.mts +38 -25
  54. package/resources/companies.d.mts.map +1 -1
  55. package/resources/companies.d.ts +38 -25
  56. package/resources/companies.d.ts.map +1 -1
  57. package/resources/companies.js +7 -4
  58. package/resources/companies.js.map +1 -1
  59. package/resources/companies.mjs +7 -4
  60. package/resources/companies.mjs.map +1 -1
  61. package/resources/company-token-transactions.d.mts +23 -109
  62. package/resources/company-token-transactions.d.mts.map +1 -1
  63. package/resources/company-token-transactions.d.ts +23 -109
  64. package/resources/company-token-transactions.d.ts.map +1 -1
  65. package/resources/course-chapters.d.mts +3 -3
  66. package/resources/course-chapters.d.ts +3 -3
  67. package/resources/course-lessons.d.mts +15 -15
  68. package/resources/course-lessons.d.ts +15 -15
  69. package/resources/course-students.d.mts +6 -6
  70. package/resources/course-students.d.ts +6 -6
  71. package/resources/courses.d.mts +8 -8
  72. package/resources/courses.d.ts +8 -8
  73. package/resources/disputes.d.mts +20 -18
  74. package/resources/disputes.d.mts.map +1 -1
  75. package/resources/disputes.d.ts +20 -18
  76. package/resources/disputes.d.ts.map +1 -1
  77. package/resources/dm-channels.d.mts +161 -0
  78. package/resources/dm-channels.d.mts.map +1 -0
  79. package/resources/dm-channels.d.ts +161 -0
  80. package/resources/dm-channels.d.ts.map +1 -0
  81. package/resources/dm-channels.js +87 -0
  82. package/resources/dm-channels.js.map +1 -0
  83. package/resources/dm-channels.mjs +83 -0
  84. package/resources/dm-channels.mjs.map +1 -0
  85. package/resources/dm-members.d.mts +14 -66
  86. package/resources/dm-members.d.mts.map +1 -1
  87. package/resources/dm-members.d.ts +14 -66
  88. package/resources/dm-members.d.ts.map +1 -1
  89. package/resources/entries.d.mts +6 -6
  90. package/resources/entries.d.ts +6 -6
  91. package/resources/experiences.d.mts +6 -5
  92. package/resources/experiences.d.mts.map +1 -1
  93. package/resources/experiences.d.ts +6 -5
  94. package/resources/experiences.d.ts.map +1 -1
  95. package/resources/fee-markups.d.mts +6 -6
  96. package/resources/fee-markups.d.ts +6 -6
  97. package/resources/files.d.mts +9 -5
  98. package/resources/files.d.mts.map +1 -1
  99. package/resources/files.d.ts +9 -5
  100. package/resources/files.d.ts.map +1 -1
  101. package/resources/forum-posts.d.mts +8 -4
  102. package/resources/forum-posts.d.mts.map +1 -1
  103. package/resources/forum-posts.d.ts +8 -4
  104. package/resources/forum-posts.d.ts.map +1 -1
  105. package/resources/forums.d.mts +1 -1
  106. package/resources/forums.d.ts +1 -1
  107. package/resources/index.d.mts +12 -11
  108. package/resources/index.d.mts.map +1 -1
  109. package/resources/index.d.ts +12 -11
  110. package/resources/index.d.ts.map +1 -1
  111. package/resources/index.js +3 -1
  112. package/resources/index.js.map +1 -1
  113. package/resources/index.mjs +3 -2
  114. package/resources/index.mjs.map +1 -1
  115. package/resources/invoices.d.mts +28 -20
  116. package/resources/invoices.d.mts.map +1 -1
  117. package/resources/invoices.d.ts +28 -20
  118. package/resources/invoices.d.ts.map +1 -1
  119. package/resources/leads.d.mts +21 -189
  120. package/resources/leads.d.mts.map +1 -1
  121. package/resources/leads.d.ts +21 -189
  122. package/resources/leads.d.ts.map +1 -1
  123. package/resources/ledger-accounts.d.mts +12 -9
  124. package/resources/ledger-accounts.d.mts.map +1 -1
  125. package/resources/ledger-accounts.d.ts +12 -9
  126. package/resources/ledger-accounts.d.ts.map +1 -1
  127. package/resources/ledger-accounts.js.map +1 -1
  128. package/resources/ledger-accounts.mjs.map +1 -1
  129. package/resources/members.d.mts +14 -14
  130. package/resources/members.d.mts.map +1 -1
  131. package/resources/members.d.ts +14 -14
  132. package/resources/members.d.ts.map +1 -1
  133. package/resources/members.js +1 -1
  134. package/resources/members.js.map +1 -1
  135. package/resources/members.mjs +1 -1
  136. package/resources/members.mjs.map +1 -1
  137. package/resources/memberships.d.mts +25 -15
  138. package/resources/memberships.d.mts.map +1 -1
  139. package/resources/memberships.d.ts +25 -15
  140. package/resources/memberships.d.ts.map +1 -1
  141. package/resources/messages.d.mts +7 -3
  142. package/resources/messages.d.mts.map +1 -1
  143. package/resources/messages.d.ts +7 -3
  144. package/resources/messages.d.ts.map +1 -1
  145. package/resources/payments.d.mts +59 -19
  146. package/resources/payments.d.mts.map +1 -1
  147. package/resources/payments.d.ts +59 -19
  148. package/resources/payments.d.ts.map +1 -1
  149. package/resources/payout-methods.d.mts +14 -9
  150. package/resources/payout-methods.d.mts.map +1 -1
  151. package/resources/payout-methods.d.ts +14 -9
  152. package/resources/payout-methods.d.ts.map +1 -1
  153. package/resources/payout-methods.js.map +1 -1
  154. package/resources/payout-methods.mjs.map +1 -1
  155. package/resources/plans.d.mts +34 -24
  156. package/resources/plans.d.mts.map +1 -1
  157. package/resources/plans.d.ts +34 -24
  158. package/resources/plans.d.ts.map +1 -1
  159. package/resources/products.d.mts +4 -2
  160. package/resources/products.d.mts.map +1 -1
  161. package/resources/products.d.ts +4 -2
  162. package/resources/products.d.ts.map +1 -1
  163. package/resources/promo-codes.d.mts +22 -12
  164. package/resources/promo-codes.d.mts.map +1 -1
  165. package/resources/promo-codes.d.ts +22 -12
  166. package/resources/promo-codes.d.ts.map +1 -1
  167. package/resources/reactions.d.mts +1 -1
  168. package/resources/reactions.d.ts +1 -1
  169. package/resources/refunds.d.mts +19 -15
  170. package/resources/refunds.d.mts.map +1 -1
  171. package/resources/refunds.d.ts +19 -15
  172. package/resources/refunds.d.ts.map +1 -1
  173. package/resources/reviews.d.mts +10 -10
  174. package/resources/reviews.d.ts +10 -10
  175. package/resources/setup-intents.d.mts +18 -20
  176. package/resources/setup-intents.d.mts.map +1 -1
  177. package/resources/setup-intents.d.ts +18 -20
  178. package/resources/setup-intents.d.ts.map +1 -1
  179. package/resources/shared.d.mts +209 -137
  180. package/resources/shared.d.mts.map +1 -1
  181. package/resources/shared.d.ts +209 -137
  182. package/resources/shared.d.ts.map +1 -1
  183. package/resources/shipments.d.mts +4 -4
  184. package/resources/shipments.d.ts +4 -4
  185. package/resources/support-channels.d.mts +1 -1
  186. package/resources/support-channels.d.ts +1 -1
  187. package/resources/topups.d.mts +6 -4
  188. package/resources/topups.d.mts.map +1 -1
  189. package/resources/topups.d.ts +6 -4
  190. package/resources/topups.d.ts.map +1 -1
  191. package/resources/transfers.d.mts +8 -5
  192. package/resources/transfers.d.mts.map +1 -1
  193. package/resources/transfers.d.ts +8 -5
  194. package/resources/transfers.d.ts.map +1 -1
  195. package/resources/users.d.mts +46 -8
  196. package/resources/users.d.mts.map +1 -1
  197. package/resources/users.d.ts +46 -8
  198. package/resources/users.d.ts.map +1 -1
  199. package/resources/users.js +10 -0
  200. package/resources/users.js.map +1 -1
  201. package/resources/users.mjs +10 -0
  202. package/resources/users.mjs.map +1 -1
  203. package/resources/verifications.d.mts +12 -4
  204. package/resources/verifications.d.mts.map +1 -1
  205. package/resources/verifications.d.ts +12 -4
  206. package/resources/verifications.d.ts.map +1 -1
  207. package/resources/webhooks.d.mts +105 -350
  208. package/resources/webhooks.d.mts.map +1 -1
  209. package/resources/webhooks.d.ts +105 -350
  210. package/resources/webhooks.d.ts.map +1 -1
  211. package/resources/webhooks.js.map +1 -1
  212. package/resources/webhooks.mjs +2 -2
  213. package/resources/webhooks.mjs.map +1 -1
  214. package/resources/withdrawals.d.mts +32 -139
  215. package/resources/withdrawals.d.mts.map +1 -1
  216. package/resources/withdrawals.d.ts +32 -139
  217. package/resources/withdrawals.d.ts.map +1 -1
  218. package/src/client.ts +87 -41
  219. package/src/internal/parse.ts +6 -0
  220. package/src/resources/access-tokens.ts +35 -56
  221. package/src/resources/ai-chats.ts +36 -122
  222. package/src/resources/app-builds.ts +2 -2
  223. package/src/resources/apps.ts +5 -4
  224. package/src/resources/authorized-users.ts +49 -9
  225. package/src/resources/chat-channels.ts +1 -1
  226. package/src/resources/checkout-configurations.ts +24 -16
  227. package/src/resources/companies.ts +41 -26
  228. package/src/resources/company-token-transactions.ts +24 -126
  229. package/src/resources/course-chapters.ts +3 -3
  230. package/src/resources/course-lessons.ts +15 -15
  231. package/src/resources/course-students.ts +6 -6
  232. package/src/resources/courses.ts +8 -8
  233. package/src/resources/disputes.ts +20 -18
  234. package/src/resources/dm-channels.ts +212 -0
  235. package/src/resources/dm-members.ts +16 -78
  236. package/src/resources/entries.ts +6 -6
  237. package/src/resources/experiences.ts +6 -5
  238. package/src/resources/fee-markups.ts +6 -6
  239. package/src/resources/files.ts +10 -4
  240. package/src/resources/forum-posts.ts +8 -4
  241. package/src/resources/forums.ts +1 -1
  242. package/src/resources/index.ts +38 -18
  243. package/src/resources/invoices.ts +28 -20
  244. package/src/resources/leads.ts +21 -217
  245. package/src/resources/ledger-accounts.ts +12 -42
  246. package/src/resources/members.ts +15 -15
  247. package/src/resources/memberships.ts +34 -30
  248. package/src/resources/messages.ts +7 -3
  249. package/src/resources/payments.ts +67 -17
  250. package/src/resources/payout-methods.ts +21 -8
  251. package/src/resources/plans.ts +34 -24
  252. package/src/resources/products.ts +4 -2
  253. package/src/resources/promo-codes.ts +22 -12
  254. package/src/resources/reactions.ts +1 -1
  255. package/src/resources/refunds.ts +20 -15
  256. package/src/resources/reviews.ts +10 -10
  257. package/src/resources/setup-intents.ts +18 -20
  258. package/src/resources/shared.ts +217 -145
  259. package/src/resources/shipments.ts +4 -4
  260. package/src/resources/support-channels.ts +1 -1
  261. package/src/resources/topups.ts +6 -4
  262. package/src/resources/transfers.ts +8 -5
  263. package/src/resources/users.ts +58 -8
  264. package/src/resources/verifications.ts +50 -37
  265. package/src/resources/webhooks.ts +138 -785
  266. package/src/resources/withdrawals.ts +39 -216
  267. package/src/version.ts +1 -1
  268. package/version.d.mts +1 -1
  269. package/version.d.ts +1 -1
  270. package/version.js +1 -1
  271. package/version.mjs +1 -1
@@ -1,6 +1,7 @@
1
1
  import * as Shared from "./shared.mjs";
2
2
  import * as AppsAPI from "./apps.mjs";
3
3
  import * as CheckoutConfigurationsAPI from "./checkout-configurations.mjs";
4
+ import * as MembershipsAPI from "./memberships.mjs";
4
5
  import * as PaymentsAPI from "./payments.mjs";
5
6
  import { CursorPage } from "../core/pagination.mjs";
6
7
  /**
@@ -13,11 +14,12 @@ export type AccessLevel = 'no_access' | 'admin' | 'customer';
13
14
  */
14
15
  export type AccessPassType = 'regular' | 'app' | 'experience_upsell' | 'api_only';
15
16
  /**
16
- * An object representing an app
17
+ * An app is an integration built on Whop. Apps can serve consumers as experiences
18
+ * within products, or serve companies as business tools.
17
19
  */
18
20
  export interface App {
19
21
  /**
20
- * The ID of the app
22
+ * The unique identifier for the app.
21
23
  */
22
24
  id: string;
23
25
  /**
@@ -103,7 +105,7 @@ export declare namespace App {
103
105
  */
104
106
  interface APIKey {
105
107
  /**
106
- * The ID of this API key
108
+ * The unique identifier for the private api key.
107
109
  */
108
110
  id: string;
109
111
  /**
@@ -111,7 +113,7 @@ export declare namespace App {
111
113
  */
112
114
  token: string;
113
115
  /**
114
- * When this API key was created at
116
+ * The datetime the private api key was created.
115
117
  */
116
118
  created_at: string;
117
119
  }
@@ -120,7 +122,7 @@ export declare namespace App {
120
122
  */
121
123
  interface Company {
122
124
  /**
123
- * The ID (tag) of the company.
125
+ * The unique identifier for the company.
124
126
  */
125
127
  id: string;
126
128
  /**
@@ -133,7 +135,7 @@ export declare namespace App {
133
135
  */
134
136
  interface Creator {
135
137
  /**
136
- * The internal ID of the user.
138
+ * The unique identifier for the user.
137
139
  */
138
140
  id: string;
139
141
  /**
@@ -219,7 +221,7 @@ export declare namespace App {
219
221
  */
220
222
  export interface AppBuild {
221
223
  /**
222
- * The ID of the app build. It will look like apbu_xxxxx.
224
+ * The unique identifier for the app build.
223
225
  */
224
226
  id: string;
225
227
  /**
@@ -228,7 +230,7 @@ export interface AppBuild {
228
230
  */
229
231
  checksum: string;
230
232
  /**
231
- * When this app build was created.
233
+ * The datetime the app build was created.
232
234
  */
233
235
  created_at: string;
234
236
  /**
@@ -325,7 +327,7 @@ export declare namespace ChatChannel {
325
327
  */
326
328
  interface Experience {
327
329
  /**
328
- * The unique ID representing this experience
330
+ * The unique identifier for the experience.
329
331
  */
330
332
  id: string;
331
333
  /**
@@ -335,14 +337,13 @@ export declare namespace ChatChannel {
335
337
  }
336
338
  }
337
339
  /**
338
- * A checkout configuration object.
339
- * Can be used to create a reusable custom configuration for a checkout, including attaching plans, affiliates and custom metadata to the checkout.
340
- * This configuration can be re-used by multiple users.
341
- * 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.
342
343
  */
343
344
  export interface CheckoutConfiguration {
344
345
  /**
345
- * The ID of the checkout configuration
346
+ * The unique identifier for the checkout session.
346
347
  */
347
348
  id: string;
348
349
  /**
@@ -418,11 +419,11 @@ export declare namespace CheckoutConfiguration {
418
419
  */
419
420
  interface Plan {
420
421
  /**
421
- * The internal ID of the plan.
422
+ * The unique identifier for the plan.
422
423
  */
423
424
  id: string;
424
425
  /**
425
- * The interval at which the plan charges (renewal plans).
426
+ * The interval in days at which the plan charges (renewal plans).
426
427
  */
427
428
  billing_period: number | null;
428
429
  /**
@@ -430,11 +431,14 @@ export declare namespace CheckoutConfiguration {
430
431
  */
431
432
  currency: Shared.Currency;
432
433
  /**
433
- * The interval at which the plan charges (expiration plans).
434
+ * The number of days until the membership expires (for expiration-based plans).
435
+ * For example, 365 for a one-year access pass.
434
436
  */
435
437
  expiration_days: number | null;
436
438
  /**
437
- * The price a person has to pay for a plan on the initial purchase.
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.
438
442
  */
439
443
  initial_price: number;
440
444
  /**
@@ -446,7 +450,8 @@ export declare namespace CheckoutConfiguration {
446
450
  */
447
451
  release_method: Shared.ReleaseMethod;
448
452
  /**
449
- * The price a person has to pay for a plan on the renewal purchase.
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.
450
455
  */
451
456
  renewal_price: number;
452
457
  /**
@@ -464,11 +469,12 @@ export declare namespace CheckoutConfiguration {
464
469
  */
465
470
  export type CollectionMethod = 'send_invoice' | 'charge_automatically';
466
471
  /**
467
- * An object representing a (sanitized) company.
472
+ * A company is a seller on Whop. Companies own products, manage members, and
473
+ * receive payouts.
468
474
  */
469
475
  export interface Company {
470
476
  /**
471
- * The ID (tag) of the company.
477
+ * The unique identifier for the company.
472
478
  */
473
479
  id: string;
474
480
  /**
@@ -476,7 +482,7 @@ export interface Company {
476
482
  */
477
483
  business_type: BusinessTypes | null;
478
484
  /**
479
- * When the company was created (signed up)
485
+ * The datetime the company was created.
480
486
  */
481
487
  created_at: string;
482
488
  /**
@@ -527,7 +533,7 @@ export interface Company {
527
533
  */
528
534
  title: string;
529
535
  /**
530
- * The time the company was last updated.
536
+ * The datetime the company was last updated.
531
537
  */
532
538
  updated_at: string;
533
539
  /**
@@ -551,7 +557,7 @@ export declare namespace Company {
551
557
  */
552
558
  interface OwnerUser {
553
559
  /**
554
- * The internal ID of the user.
560
+ * The unique identifier for the user.
555
561
  */
556
562
  id: string;
557
563
  /**
@@ -568,7 +574,7 @@ export declare namespace Company {
568
574
  */
569
575
  interface SocialLink {
570
576
  /**
571
- * The ID
577
+ * The unique identifier for the social link.
572
578
  */
573
579
  id: string;
574
580
  /**
@@ -586,7 +592,7 @@ export declare namespace Company {
586
592
  */
587
593
  export interface CourseLessonInteraction {
588
594
  /**
589
- * The ID of the lesson interaction
595
+ * The unique identifier for the lesson interaction.
590
596
  */
591
597
  id: string;
592
598
  /**
@@ -598,7 +604,7 @@ export interface CourseLessonInteraction {
598
604
  */
599
605
  course: CourseLessonInteraction.Course;
600
606
  /**
601
- * When the interaction was created
607
+ * The datetime the lesson interaction was created.
602
608
  */
603
609
  created_at: string;
604
610
  /**
@@ -616,7 +622,7 @@ export declare namespace CourseLessonInteraction {
616
622
  */
617
623
  interface Course {
618
624
  /**
619
- * The ID of the course. Looks like cors_XXX
625
+ * The unique identifier for the course.
620
626
  */
621
627
  id: string;
622
628
  /**
@@ -634,7 +640,7 @@ export declare namespace CourseLessonInteraction {
634
640
  */
635
641
  interface Experience {
636
642
  /**
637
- * The unique ID representing this experience
643
+ * The unique identifier for the experience.
638
644
  */
639
645
  id: string;
640
646
  }
@@ -644,7 +650,7 @@ export declare namespace CourseLessonInteraction {
644
650
  */
645
651
  interface Lesson {
646
652
  /**
647
- * The ID of the lesson
653
+ * The unique identifier for the lesson.
648
654
  */
649
655
  id: string;
650
656
  /**
@@ -662,7 +668,7 @@ export declare namespace CourseLessonInteraction {
662
668
  */
663
669
  interface Chapter {
664
670
  /**
665
- * The ID of the chapter. Looks like chap_XXX
671
+ * The unique identifier for the chapter.
666
672
  */
667
673
  id: string;
668
674
  }
@@ -672,7 +678,7 @@ export declare namespace CourseLessonInteraction {
672
678
  */
673
679
  interface User {
674
680
  /**
675
- * The internal ID of the user.
681
+ * The unique identifier for the user.
676
682
  */
677
683
  id: string;
678
684
  /**
@@ -690,7 +696,7 @@ export declare namespace CourseLessonInteraction {
690
696
  */
691
697
  export interface CourseLessonInteractionListItem {
692
698
  /**
693
- * The ID of the lesson interaction
699
+ * The unique identifier for the lesson interaction.
694
700
  */
695
701
  id: string;
696
702
  /**
@@ -698,7 +704,7 @@ export interface CourseLessonInteractionListItem {
698
704
  */
699
705
  completed: boolean;
700
706
  /**
701
- * When the interaction was created
707
+ * The datetime the lesson interaction was created.
702
708
  */
703
709
  created_at: string;
704
710
  /**
@@ -716,7 +722,7 @@ export declare namespace CourseLessonInteractionListItem {
716
722
  */
717
723
  interface Lesson {
718
724
  /**
719
- * The ID of the lesson
725
+ * The unique identifier for the lesson.
720
726
  */
721
727
  id: string;
722
728
  /**
@@ -734,7 +740,7 @@ export declare namespace CourseLessonInteractionListItem {
734
740
  */
735
741
  interface Chapter {
736
742
  /**
737
- * The ID of the chapter. Looks like chap_XXX
743
+ * The unique identifier for the chapter.
738
744
  */
739
745
  id: string;
740
746
  }
@@ -744,7 +750,7 @@ export declare namespace CourseLessonInteractionListItem {
744
750
  */
745
751
  interface User {
746
752
  /**
747
- * The internal ID of the user.
753
+ * The unique identifier for the user.
748
754
  */
749
755
  id: string;
750
756
  /**
@@ -778,15 +784,15 @@ export type DmsPostTypes = 'regular' | 'system' | 'automated';
778
784
  */
779
785
  export type EmailNotificationPreferences = 'all_admin_posts' | 'only_weekly_summary' | 'none';
780
786
  /**
781
- * An object representing an entry in a waitlist.
787
+ * An entry represents a user's signup for a waitlisted plan.
782
788
  */
783
789
  export interface Entry {
784
790
  /**
785
- * The internal ID of the entry.
791
+ * The unique identifier for the entry.
786
792
  */
787
793
  id: string;
788
794
  /**
789
- * When the entry was created.
795
+ * The datetime the entry was created.
790
796
  */
791
797
  created_at: string | null;
792
798
  /**
@@ -816,7 +822,7 @@ export declare namespace Entry {
816
822
  */
817
823
  interface CustomFieldResponse {
818
824
  /**
819
- * The ID of the custom field item
825
+ * The unique identifier for the custom field response.
820
826
  */
821
827
  id: string;
822
828
  /**
@@ -833,7 +839,7 @@ export declare namespace Entry {
833
839
  */
834
840
  interface Plan {
835
841
  /**
836
- * The internal ID of the plan.
842
+ * The unique identifier for the plan.
837
843
  */
838
844
  id: string;
839
845
  }
@@ -842,7 +848,7 @@ export declare namespace Entry {
842
848
  */
843
849
  interface Product {
844
850
  /**
845
- * The internal ID of the public product.
851
+ * The unique identifier for the product.
846
852
  */
847
853
  id: string;
848
854
  /**
@@ -855,7 +861,7 @@ export declare namespace Entry {
855
861
  */
856
862
  interface User {
857
863
  /**
858
- * The internal ID of the user.
864
+ * The unique identifier for the user.
859
865
  */
860
866
  id: string;
861
867
  /**
@@ -877,11 +883,12 @@ export declare namespace Entry {
877
883
  */
878
884
  export type EntryStatus = 'drafted' | 'pending' | 'approved' | 'denied' | 'any';
879
885
  /**
880
- * An object representing an experience belonging to a company.
886
+ * An experience is a feature or content module within a product, such as a chat,
887
+ * course, or app.
881
888
  */
882
889
  export interface Experience {
883
890
  /**
884
- * The unique ID representing this experience
891
+ * The unique identifier for the experience.
885
892
  */
886
893
  id: string;
887
894
  /**
@@ -893,7 +900,7 @@ export interface Experience {
893
900
  */
894
901
  company: Experience.Company;
895
902
  /**
896
- * The timestamp of when this experience was created.
903
+ * The datetime the experience was created.
897
904
  */
898
905
  created_at: string;
899
906
  /**
@@ -925,7 +932,7 @@ export declare namespace Experience {
925
932
  */
926
933
  interface App {
927
934
  /**
928
- * The ID of the app
935
+ * The unique identifier for the app.
929
936
  */
930
937
  id: string;
931
938
  /**
@@ -956,7 +963,7 @@ export declare namespace Experience {
956
963
  */
957
964
  interface Company {
958
965
  /**
959
- * The ID (tag) of the company.
966
+ * The unique identifier for the company.
960
967
  */
961
968
  id: string;
962
969
  /**
@@ -979,11 +986,12 @@ export declare namespace Experience {
979
986
  url: string | null;
980
987
  }
981
988
  /**
982
- * Represents a product on whop. Use products to sell anything on the platform.
989
+ * A product is a digital good or service sold on Whop. Products contain plans for
990
+ * pricing and experiences for content delivery.
983
991
  */
984
992
  interface Product {
985
993
  /**
986
- * The internal ID of the public product.
994
+ * The unique identifier for the product.
987
995
  */
988
996
  id: string;
989
997
  /**
@@ -1027,7 +1035,7 @@ export declare namespace Forum {
1027
1035
  */
1028
1036
  interface Experience {
1029
1037
  /**
1030
- * The unique ID representing this experience
1038
+ * The unique identifier for the experience.
1031
1039
  */
1032
1040
  id: string;
1033
1041
  /**
@@ -1041,7 +1049,11 @@ export declare namespace Forum {
1041
1049
  */
1042
1050
  export interface ForumPost {
1043
1051
  /**
1044
- * The unique identifier of the resource.
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.
1045
1057
  */
1046
1058
  id: string;
1047
1059
  /**
@@ -1099,7 +1111,7 @@ export declare namespace ForumPost {
1099
1111
  */
1100
1112
  interface User {
1101
1113
  /**
1102
- * The internal ID of the user.
1114
+ * The unique identifier for the user.
1103
1115
  */
1104
1116
  id: string;
1105
1117
  /**
@@ -1113,7 +1125,9 @@ export declare namespace ForumPost {
1113
1125
  }
1114
1126
  }
1115
1127
  /**
1116
- * The friendly status of a receipt
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.
1117
1131
  */
1118
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';
1119
1133
  /**
@@ -1129,11 +1143,11 @@ export type IndustryTypes = 'trading' | 'sports_betting' | 'reselling' | 'fitnes
1129
1143
  */
1130
1144
  export interface Invoice {
1131
1145
  /**
1132
- * The ID of the invoice.
1146
+ * The unique identifier for the invoice.
1133
1147
  */
1134
1148
  id: string;
1135
1149
  /**
1136
- * The date the invoice was created.
1150
+ * The datetime the invoice was created.
1137
1151
  */
1138
1152
  created_at: string;
1139
1153
  /**
@@ -1172,7 +1186,7 @@ export declare namespace Invoice {
1172
1186
  */
1173
1187
  interface CurrentPlan {
1174
1188
  /**
1175
- * The internal ID of the plan.
1189
+ * The unique identifier for the plan.
1176
1190
  */
1177
1191
  id: string;
1178
1192
  /**
@@ -1189,7 +1203,7 @@ export declare namespace Invoice {
1189
1203
  */
1190
1204
  interface User {
1191
1205
  /**
1192
- * The internal ID of the user.
1206
+ * The unique identifier for the user.
1193
1207
  */
1194
1208
  id: string;
1195
1209
  /**
@@ -1207,11 +1221,11 @@ export declare namespace Invoice {
1207
1221
  */
1208
1222
  export interface InvoiceListItem {
1209
1223
  /**
1210
- * The ID of the invoice.
1224
+ * The unique identifier for the invoice.
1211
1225
  */
1212
1226
  id: string;
1213
1227
  /**
1214
- * The date the invoice was created.
1228
+ * The datetime the invoice was created.
1215
1229
  */
1216
1230
  created_at: string;
1217
1231
  /**
@@ -1250,7 +1264,7 @@ export declare namespace InvoiceListItem {
1250
1264
  */
1251
1265
  interface CurrentPlan {
1252
1266
  /**
1253
- * The internal ID of the plan.
1267
+ * The unique identifier for the plan.
1254
1268
  */
1255
1269
  id: string;
1256
1270
  /**
@@ -1267,7 +1281,7 @@ export declare namespace InvoiceListItem {
1267
1281
  */
1268
1282
  interface User {
1269
1283
  /**
1270
- * The internal ID of the user.
1284
+ * The unique identifier for the user.
1271
1285
  */
1272
1286
  id: string;
1273
1287
  /**
@@ -1293,12 +1307,12 @@ export type MemberMostRecentActions = 'canceling' | 'churned' | 'finished_split_
1293
1307
  */
1294
1308
  export type MemberStatuses = 'drafted' | 'joined' | 'left';
1295
1309
  /**
1296
- * A membership represents a purchase between a User and a Company for a specific
1297
- * Product.
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.
1298
1312
  */
1299
1313
  export interface Membership {
1300
1314
  /**
1301
- * The ID of the membership
1315
+ * The unique identifier for the membership.
1302
1316
  */
1303
1317
  id: string;
1304
1318
  /**
@@ -1310,7 +1324,7 @@ export interface Membership {
1310
1324
  * The different reasons a user can choose for why they are canceling their
1311
1325
  * membership.
1312
1326
  */
1313
- cancel_option: 'too_expensive' | 'switching' | 'missing_features' | 'technical_issues' | 'bad_experience' | 'other' | 'testing' | null;
1327
+ cancel_option: MembershipsAPI.CancelOptions | null;
1314
1328
  /**
1315
1329
  * The epoch timestamp of when the customer initiated a cancellation.
1316
1330
  */
@@ -1324,7 +1338,7 @@ export interface Membership {
1324
1338
  */
1325
1339
  company: Membership.Company;
1326
1340
  /**
1327
- * The timestamp, in seconds, that this Membership was created at.
1341
+ * The datetime the membership was created.
1328
1342
  */
1329
1343
  created_at: string;
1330
1344
  /**
@@ -1335,6 +1349,10 @@ export interface Membership {
1335
1349
  * The responses to custom checkout questions for this membership.
1336
1350
  */
1337
1351
  custom_field_responses: Array<Membership.CustomFieldResponse>;
1352
+ /**
1353
+ * When the member joined the company.
1354
+ */
1355
+ joined_at: string | null;
1338
1356
  /**
1339
1357
  * The license key for this Membership. This is only present if the membership
1340
1358
  * grants access to an instance of the Whop Software app.
@@ -1349,7 +1367,8 @@ export interface Membership {
1349
1367
  */
1350
1368
  member: Membership.Member | null;
1351
1369
  /**
1352
- * A JSON object used to store software licensing information. Ex. HWID
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.
1353
1372
  */
1354
1373
  metadata: {
1355
1374
  [key: string]: unknown;
@@ -1385,7 +1404,7 @@ export interface Membership {
1385
1404
  */
1386
1405
  status: MembershipStatus;
1387
1406
  /**
1388
- * A timestamp of when the membership was last updated
1407
+ * The datetime the membership was last updated.
1389
1408
  */
1390
1409
  updated_at: string;
1391
1410
  /**
@@ -1399,7 +1418,7 @@ export declare namespace Membership {
1399
1418
  */
1400
1419
  interface Company {
1401
1420
  /**
1402
- * The ID (tag) of the company.
1421
+ * The unique identifier for the company.
1403
1422
  */
1404
1423
  id: string;
1405
1424
  /**
@@ -1412,7 +1431,7 @@ export declare namespace Membership {
1412
1431
  */
1413
1432
  interface CustomFieldResponse {
1414
1433
  /**
1415
- * The ID of the custom field item
1434
+ * The unique identifier for the custom field response.
1416
1435
  */
1417
1436
  id: string;
1418
1437
  /**
@@ -1429,7 +1448,7 @@ export declare namespace Membership {
1429
1448
  */
1430
1449
  interface Member {
1431
1450
  /**
1432
- * The ID of the member
1451
+ * The unique identifier for the member.
1433
1452
  */
1434
1453
  id: string;
1435
1454
  }
@@ -1438,7 +1457,7 @@ export declare namespace Membership {
1438
1457
  */
1439
1458
  interface Plan {
1440
1459
  /**
1441
- * The internal ID of the plan.
1460
+ * The unique identifier for the plan.
1442
1461
  */
1443
1462
  id: string;
1444
1463
  }
@@ -1447,7 +1466,7 @@ export declare namespace Membership {
1447
1466
  */
1448
1467
  interface Product {
1449
1468
  /**
1450
- * The internal ID of the public product.
1469
+ * The unique identifier for the product.
1451
1470
  */
1452
1471
  id: string;
1453
1472
  /**
@@ -1460,7 +1479,7 @@ export declare namespace Membership {
1460
1479
  */
1461
1480
  interface PromoCode {
1462
1481
  /**
1463
- * The ID of the promo.
1482
+ * The unique identifier for the promo code.
1464
1483
  */
1465
1484
  id: string;
1466
1485
  }
@@ -1469,7 +1488,7 @@ export declare namespace Membership {
1469
1488
  */
1470
1489
  interface User {
1471
1490
  /**
1472
- * The internal ID of the user.
1491
+ * The unique identifier for the user.
1473
1492
  */
1474
1493
  id: string;
1475
1494
  /**
@@ -1495,7 +1514,11 @@ export type MembershipStatus = 'trialing' | 'active' | 'past_due' | 'completed'
1495
1514
  */
1496
1515
  export interface Message {
1497
1516
  /**
1498
- * The unique identifier of the resource.
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.
1499
1522
  */
1500
1523
  id: string;
1501
1524
  /**
@@ -1563,7 +1586,7 @@ export declare namespace Message {
1563
1586
  */
1564
1587
  interface Option {
1565
1588
  /**
1566
- * The ID of the poll option
1589
+ * The unique identifier for the poll option.
1567
1590
  */
1568
1591
  id: string;
1569
1592
  /**
@@ -1603,7 +1626,7 @@ export declare namespace Message {
1603
1626
  */
1604
1627
  interface User {
1605
1628
  /**
1606
- * The internal ID of the user.
1629
+ * The unique identifier for the user.
1607
1630
  */
1608
1631
  id: string;
1609
1632
  /**
@@ -1638,17 +1661,22 @@ export interface PageInfo {
1638
1661
  start_cursor: string | null;
1639
1662
  }
1640
1663
  /**
1641
- * An object representing a receipt for a membership.
1664
+ * A payment represents a completed or attempted charge for a membership. Payments
1665
+ * track the amount, status, currency, and payment method used.
1642
1666
  */
1643
1667
  export interface Payment {
1644
1668
  /**
1645
- * The payment ID
1669
+ * The unique identifier for the payment.
1646
1670
  */
1647
1671
  id: string;
1648
1672
  /**
1649
1673
  * How much the payment is for after fees
1650
1674
  */
1651
1675
  amount_after_fees: number;
1676
+ /**
1677
+ * The application fee charged on this payment.
1678
+ */
1679
+ application_fee: Payment.ApplicationFee | null;
1652
1680
  /**
1653
1681
  * Whether this payment was auto refunded or not
1654
1682
  */
@@ -1674,7 +1702,7 @@ export interface Payment {
1674
1702
  */
1675
1703
  company: Payment.Company | null;
1676
1704
  /**
1677
- * The datetime the payment was created
1705
+ * The datetime the payment was created.
1678
1706
  */
1679
1707
  created_at: string;
1680
1708
  /**
@@ -1790,6 +1818,35 @@ export interface Payment {
1790
1818
  voidable: boolean;
1791
1819
  }
1792
1820
  export declare namespace Payment {
1821
+ /**
1822
+ * The application fee charged on this payment.
1823
+ */
1824
+ interface ApplicationFee {
1825
+ /**
1826
+ * The unique identifier for the application fee.
1827
+ */
1828
+ id: string;
1829
+ /**
1830
+ * The application fee amount.
1831
+ */
1832
+ amount: number;
1833
+ /**
1834
+ * The amount of the application fee that has been captured.
1835
+ */
1836
+ amount_captured: number;
1837
+ /**
1838
+ * The amount of the application fee that has been refunded.
1839
+ */
1840
+ amount_refunded: number;
1841
+ /**
1842
+ * The datetime the application fee was created.
1843
+ */
1844
+ created_at: string;
1845
+ /**
1846
+ * The currency of the application fee.
1847
+ */
1848
+ currency: Shared.Currency;
1849
+ }
1793
1850
  /**
1794
1851
  * The address of the user who made the payment.
1795
1852
  */
@@ -1828,7 +1885,7 @@ export declare namespace Payment {
1828
1885
  */
1829
1886
  interface Company {
1830
1887
  /**
1831
- * The ID of the company
1888
+ * The unique identifier for the company.
1832
1889
  */
1833
1890
  id: string;
1834
1891
  /**
@@ -1845,7 +1902,7 @@ export declare namespace Payment {
1845
1902
  */
1846
1903
  interface Member {
1847
1904
  /**
1848
- * The ID of the member
1905
+ * The unique identifier for the company member.
1849
1906
  */
1850
1907
  id: string;
1851
1908
  /**
@@ -1858,7 +1915,7 @@ export declare namespace Payment {
1858
1915
  */
1859
1916
  interface Membership {
1860
1917
  /**
1861
- * The internal ID of the membership.
1918
+ * The unique identifier for the membership.
1862
1919
  */
1863
1920
  id: string;
1864
1921
  /**
@@ -1871,7 +1928,7 @@ export declare namespace Payment {
1871
1928
  */
1872
1929
  interface PaymentMethod {
1873
1930
  /**
1874
- * The ID of the payment method
1931
+ * The unique identifier for the payment token.
1875
1932
  */
1876
1933
  id: string;
1877
1934
  /**
@@ -1879,7 +1936,7 @@ export declare namespace Payment {
1879
1936
  */
1880
1937
  card: PaymentMethod.Card | null;
1881
1938
  /**
1882
- * The date and time the payment method was created
1939
+ * The datetime the payment token was created.
1883
1940
  */
1884
1941
  created_at: string;
1885
1942
  /**
@@ -1915,7 +1972,7 @@ export declare namespace Payment {
1915
1972
  */
1916
1973
  interface Plan {
1917
1974
  /**
1918
- * The internal ID of the plan.
1975
+ * The unique identifier for the plan.
1919
1976
  */
1920
1977
  id: string;
1921
1978
  }
@@ -1924,7 +1981,7 @@ export declare namespace Payment {
1924
1981
  */
1925
1982
  interface Product {
1926
1983
  /**
1927
- * The internal ID of the public product.
1984
+ * The unique identifier for the product.
1928
1985
  */
1929
1986
  id: string;
1930
1987
  /**
@@ -1941,11 +1998,13 @@ export declare namespace Payment {
1941
1998
  */
1942
1999
  interface PromoCode {
1943
2000
  /**
1944
- * The ID of the promo.
2001
+ * The unique identifier for the promo code.
1945
2002
  */
1946
2003
  id: string;
1947
2004
  /**
1948
- * The amount off (% or flat amount) for the promo.
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).
1949
2008
  */
1950
2009
  amount_off: number;
1951
2010
  /**
@@ -1970,7 +2029,7 @@ export declare namespace Payment {
1970
2029
  */
1971
2030
  interface User {
1972
2031
  /**
1973
- * The internal ID of the user.
2032
+ * The unique identifier for the user.
1974
2033
  */
1975
2034
  id: string;
1976
2035
  /**
@@ -1988,17 +2047,17 @@ export declare namespace Payment {
1988
2047
  }
1989
2048
  }
1990
2049
  /**
1991
- * A plan for an product. Plans define the core parameters that define a checkout
1992
- * and payment on whop. Use plans to create different ways to price your products
1993
- * (Eg renewal / one_time)
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.
1994
2053
  */
1995
2054
  export interface Plan {
1996
2055
  /**
1997
- * The internal ID of the plan.
2056
+ * The unique identifier for the plan.
1998
2057
  */
1999
2058
  id: string;
2000
2059
  /**
2001
- * The interval at which the plan charges (renewal plans).
2060
+ * The interval in days at which the plan charges (renewal plans).
2002
2061
  */
2003
2062
  billing_period: number | null;
2004
2063
  /**
@@ -2010,7 +2069,7 @@ export interface Plan {
2010
2069
  */
2011
2070
  company: Plan.Company | null;
2012
2071
  /**
2013
- * When the plan was created.
2072
+ * The datetime the plan was created.
2014
2073
  */
2015
2074
  created_at: string;
2016
2075
  /**
@@ -2026,11 +2085,14 @@ export interface Plan {
2026
2085
  */
2027
2086
  description: string | null;
2028
2087
  /**
2029
- * The interval at which the plan charges (expiration plans).
2088
+ * The number of days until the membership expires (for expiration-based plans).
2089
+ * For example, 365 for a one-year access pass.
2030
2090
  */
2031
2091
  expiration_days: number | null;
2032
2092
  /**
2033
- * The price a person has to pay for a plan on the initial purchase.
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.
2034
2096
  */
2035
2097
  initial_price: number;
2036
2098
  /**
@@ -2066,7 +2128,8 @@ export interface Plan {
2066
2128
  */
2067
2129
  release_method: ReleaseMethod;
2068
2130
  /**
2069
- * The price a person has to pay for a plan on the renewal purchase.
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.
2070
2133
  */
2071
2134
  renewal_price: number;
2072
2135
  /**
@@ -2090,11 +2153,12 @@ export interface Plan {
2090
2153
  */
2091
2154
  trial_period_days: number | null;
2092
2155
  /**
2093
- * Limits/doesn't limit the number of units available for purchase.
2156
+ * When true, the plan has unlimited stock (stock field is ignored). When false,
2157
+ * purchases are limited by the stock field.
2094
2158
  */
2095
2159
  unlimited_stock: boolean;
2096
2160
  /**
2097
- * When the plan was last updated.
2161
+ * The datetime the plan was last updated.
2098
2162
  */
2099
2163
  updated_at: string;
2100
2164
  /**
@@ -2108,7 +2172,7 @@ export declare namespace Plan {
2108
2172
  */
2109
2173
  interface Company {
2110
2174
  /**
2111
- * The ID (tag) of the company.
2175
+ * The unique identifier for the company.
2112
2176
  */
2113
2177
  id: string;
2114
2178
  /**
@@ -2121,7 +2185,7 @@ export declare namespace Plan {
2121
2185
  */
2122
2186
  interface CustomField {
2123
2187
  /**
2124
- * The internal ID of the given custom field
2188
+ * The unique identifier for the custom field.
2125
2189
  */
2126
2190
  id: string;
2127
2191
  /**
@@ -2150,7 +2214,7 @@ export declare namespace Plan {
2150
2214
  */
2151
2215
  interface Invoice {
2152
2216
  /**
2153
- * The ID of the invoice.
2217
+ * The unique identifier for the invoice.
2154
2218
  */
2155
2219
  id: string;
2156
2220
  }
@@ -2182,7 +2246,7 @@ export declare namespace Plan {
2182
2246
  */
2183
2247
  interface Product {
2184
2248
  /**
2185
- * The internal ID of the public product.
2249
+ * The unique identifier for the product.
2186
2250
  */
2187
2251
  id: string;
2188
2252
  /**
@@ -2196,11 +2260,12 @@ export declare namespace Plan {
2196
2260
  */
2197
2261
  export type PlanType = 'renewal' | 'one_time';
2198
2262
  /**
2199
- * Represents a product on whop. Use products to sell anything on the platform.
2263
+ * A product is a digital good or service sold on Whop. Products contain plans for
2264
+ * pricing and experiences for content delivery.
2200
2265
  */
2201
2266
  export interface Product {
2202
2267
  /**
2203
- * The internal ID of the public product.
2268
+ * The unique identifier for the product.
2204
2269
  */
2205
2270
  id: string;
2206
2271
  /**
@@ -2212,7 +2277,7 @@ export interface Product {
2212
2277
  */
2213
2278
  company: Product.Company;
2214
2279
  /**
2215
- * When the product was created.
2280
+ * The datetime the product was created.
2216
2281
  */
2217
2282
  created_at: string;
2218
2283
  /**
@@ -2288,7 +2353,7 @@ export interface Product {
2288
2353
  */
2289
2354
  title: string;
2290
2355
  /**
2291
- * When the product was updated.
2356
+ * The datetime the product was last updated.
2292
2357
  */
2293
2358
  updated_at: string;
2294
2359
  /**
@@ -2306,7 +2371,7 @@ export declare namespace Product {
2306
2371
  */
2307
2372
  interface Company {
2308
2373
  /**
2309
- * The ID (tag) of the company.
2374
+ * The unique identifier for the company.
2310
2375
  */
2311
2376
  id: string;
2312
2377
  /**
@@ -2323,7 +2388,7 @@ export declare namespace Product {
2323
2388
  */
2324
2389
  interface OwnerUser {
2325
2390
  /**
2326
- * The internal ID of the user.
2391
+ * The unique identifier for the user.
2327
2392
  */
2328
2393
  id: string;
2329
2394
  /**
@@ -2340,7 +2405,7 @@ export declare namespace Product {
2340
2405
  */
2341
2406
  interface ProductTaxCode {
2342
2407
  /**
2343
- * The internal ID of the product tax code.
2408
+ * The unique identifier for the product tax code.
2344
2409
  */
2345
2410
  id: string;
2346
2411
  /**
@@ -2354,11 +2419,12 @@ export declare namespace Product {
2354
2419
  }
2355
2420
  }
2356
2421
  /**
2357
- * Represents a product on whop. Use products to sell anything on the platform.
2422
+ * A product is a digital good or service sold on Whop. Products contain plans for
2423
+ * pricing and experiences for content delivery.
2358
2424
  */
2359
2425
  export interface ProductListItem {
2360
2426
  /**
2361
- * The internal ID of the public product.
2427
+ * The unique identifier for the product.
2362
2428
  */
2363
2429
  id: string;
2364
2430
  /**
@@ -2366,7 +2432,7 @@ export interface ProductListItem {
2366
2432
  */
2367
2433
  business_type: BusinessTypes | null;
2368
2434
  /**
2369
- * When the product was created.
2435
+ * The datetime the product was created.
2370
2436
  */
2371
2437
  created_at: string;
2372
2438
  /**
@@ -2400,7 +2466,7 @@ export interface ProductListItem {
2400
2466
  */
2401
2467
  title: string;
2402
2468
  /**
2403
- * When the product was updated.
2469
+ * The datetime the product was last updated.
2404
2470
  */
2405
2471
  updated_at: string;
2406
2472
  /**
@@ -2443,7 +2509,7 @@ export declare namespace Reaction {
2443
2509
  */
2444
2510
  interface User {
2445
2511
  /**
2446
- * The internal ID of the user.
2512
+ * The unique identifier for the user.
2447
2513
  */
2448
2514
  id: string;
2449
2515
  /**
@@ -2469,7 +2535,7 @@ export type ReleaseMethod = 'buy_now' | 'waitlist';
2469
2535
  */
2470
2536
  export interface Shipment {
2471
2537
  /**
2472
- * The ID of the shipment
2538
+ * The unique identifier for the shipment.
2473
2539
  */
2474
2540
  id: string;
2475
2541
  /**
@@ -2477,7 +2543,7 @@ export interface Shipment {
2477
2543
  */
2478
2544
  carrier: ShipmentCarrier;
2479
2545
  /**
2480
- * The date and time the shipment was created
2546
+ * The datetime the shipment was created.
2481
2547
  */
2482
2548
  created_at: string;
2483
2549
  /**
@@ -2505,7 +2571,7 @@ export interface Shipment {
2505
2571
  */
2506
2572
  tracking_code: string;
2507
2573
  /**
2508
- * The date and time the shipment was last updated
2574
+ * The datetime the shipment was last updated.
2509
2575
  */
2510
2576
  updated_at: string;
2511
2577
  }
@@ -2515,7 +2581,7 @@ export declare namespace Shipment {
2515
2581
  */
2516
2582
  interface Payment {
2517
2583
  /**
2518
- * The payment ID
2584
+ * The unique identifier for the payment.
2519
2585
  */
2520
2586
  id: string;
2521
2587
  }
@@ -2567,7 +2633,7 @@ export declare namespace SupportChannel {
2567
2633
  */
2568
2634
  interface CustomerUser {
2569
2635
  /**
2570
- * The internal ID of the user.
2636
+ * The unique identifier for the user.
2571
2637
  */
2572
2638
  id: string;
2573
2639
  /**
@@ -2590,15 +2656,16 @@ export type TaxType = 'inclusive' | 'exclusive' | 'unspecified';
2590
2656
  */
2591
2657
  export interface Transfer {
2592
2658
  /**
2593
- * The unique identifier of the credit transaction transfer
2659
+ * The unique identifier for the credit transaction transfer.
2594
2660
  */
2595
2661
  id: string;
2596
2662
  /**
2597
- * The amount of the credit transaction transfer
2663
+ * The amount of the transfer. Provided as a number in the specified currency. Eg:
2664
+ * 10.43 for $10.43 USD.
2598
2665
  */
2599
2666
  amount: number;
2600
2667
  /**
2601
- * The timestamp when the credit transaction transfer was created
2668
+ * The datetime the credit transaction transfer was created.
2602
2669
  */
2603
2670
  created_at: string;
2604
2671
  /**
@@ -2618,7 +2685,8 @@ export interface Transfer {
2618
2685
  */
2619
2686
  fee_amount: number | null;
2620
2687
  /**
2621
- * A hash of metadata attached to the transfer
2688
+ * Custom key-value pairs attached to the transfer. Max 50 keys, 500 chars per key,
2689
+ * 5000 chars per value.
2622
2690
  */
2623
2691
  metadata: {
2624
2692
  [key: string]: unknown;
@@ -2638,11 +2706,12 @@ export interface Transfer {
2638
2706
  }
2639
2707
  export declare namespace Transfer {
2640
2708
  /**
2641
- * An object representing a (sanitized) user of the site.
2709
+ * A user account on Whop. Contains profile information, identity details, and
2710
+ * social connections.
2642
2711
  */
2643
2712
  interface User {
2644
2713
  /**
2645
- * The internal ID of the user.
2714
+ * The unique identifier for the user.
2646
2715
  */
2647
2716
  id: string;
2648
2717
  /**
@@ -2659,11 +2728,12 @@ export declare namespace Transfer {
2659
2728
  username: string;
2660
2729
  }
2661
2730
  /**
2662
- * An object representing a (sanitized) company.
2731
+ * A company is a seller on Whop. Companies own products, manage members, and
2732
+ * receive payouts.
2663
2733
  */
2664
2734
  interface Company {
2665
2735
  /**
2666
- * The ID (tag) of the company.
2736
+ * The unique identifier for the company.
2667
2737
  */
2668
2738
  id: string;
2669
2739
  /**
@@ -2680,11 +2750,12 @@ export declare namespace Transfer {
2680
2750
  typename: 'Company';
2681
2751
  }
2682
2752
  /**
2683
- * An object representing a (sanitized) user of the site.
2753
+ * A user account on Whop. Contains profile information, identity details, and
2754
+ * social connections.
2684
2755
  */
2685
2756
  interface User {
2686
2757
  /**
2687
- * The internal ID of the user.
2758
+ * The unique identifier for the user.
2688
2759
  */
2689
2760
  id: string;
2690
2761
  /**
@@ -2701,11 +2772,12 @@ export declare namespace Transfer {
2701
2772
  username: string;
2702
2773
  }
2703
2774
  /**
2704
- * An object representing a (sanitized) company.
2775
+ * A company is a seller on Whop. Companies own products, manage members, and
2776
+ * receive payouts.
2705
2777
  */
2706
2778
  interface Company {
2707
2779
  /**
2708
- * The ID (tag) of the company.
2780
+ * The unique identifier for the company.
2709
2781
  */
2710
2782
  id: string;
2711
2783
  /**