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