@whop/sdk 0.0.26 → 0.0.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (219) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/client.d.mts +6 -5
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +6 -5
  5. package/client.d.ts.map +1 -1
  6. package/client.js +9 -2
  7. package/client.js.map +1 -1
  8. package/client.mjs +9 -2
  9. package/client.mjs.map +1 -1
  10. package/package.json +3 -3
  11. package/resources/access-tokens.d.mts +32 -51
  12. package/resources/access-tokens.d.mts.map +1 -1
  13. package/resources/access-tokens.d.ts +32 -51
  14. package/resources/access-tokens.d.ts.map +1 -1
  15. package/resources/access-tokens.js +6 -8
  16. package/resources/access-tokens.js.map +1 -1
  17. package/resources/access-tokens.mjs +6 -8
  18. package/resources/access-tokens.mjs.map +1 -1
  19. package/resources/ai-chats.d.mts +37 -9
  20. package/resources/ai-chats.d.mts.map +1 -1
  21. package/resources/ai-chats.d.ts +37 -9
  22. package/resources/ai-chats.d.ts.map +1 -1
  23. package/resources/ai-chats.js +1 -1
  24. package/resources/ai-chats.js.map +1 -1
  25. package/resources/ai-chats.mjs +1 -1
  26. package/resources/ai-chats.mjs.map +1 -1
  27. package/resources/app-builds.d.mts +2 -2
  28. package/resources/app-builds.d.ts +2 -2
  29. package/resources/apps.d.mts +5 -4
  30. package/resources/apps.d.mts.map +1 -1
  31. package/resources/apps.d.ts +5 -4
  32. package/resources/apps.d.ts.map +1 -1
  33. package/resources/authorized-users.d.mts +6 -6
  34. package/resources/authorized-users.d.ts +6 -6
  35. package/resources/chat-channels.d.mts +1 -1
  36. package/resources/chat-channels.d.ts +1 -1
  37. package/resources/checkout-configurations.d.mts +24 -16
  38. package/resources/checkout-configurations.d.mts.map +1 -1
  39. package/resources/checkout-configurations.d.ts +24 -16
  40. package/resources/checkout-configurations.d.ts.map +1 -1
  41. package/resources/companies.d.mts +38 -25
  42. package/resources/companies.d.mts.map +1 -1
  43. package/resources/companies.d.ts +38 -25
  44. package/resources/companies.d.ts.map +1 -1
  45. package/resources/companies.js +7 -4
  46. package/resources/companies.js.map +1 -1
  47. package/resources/companies.mjs +7 -4
  48. package/resources/companies.mjs.map +1 -1
  49. package/resources/company-token-transactions.d.mts +10 -10
  50. package/resources/company-token-transactions.d.ts +10 -10
  51. package/resources/course-chapters.d.mts +3 -3
  52. package/resources/course-chapters.d.ts +3 -3
  53. package/resources/course-lessons.d.mts +15 -15
  54. package/resources/course-lessons.d.ts +15 -15
  55. package/resources/course-students.d.mts +6 -6
  56. package/resources/course-students.d.ts +6 -6
  57. package/resources/courses.d.mts +8 -8
  58. package/resources/courses.d.ts +8 -8
  59. package/resources/disputes.d.mts +20 -18
  60. package/resources/disputes.d.mts.map +1 -1
  61. package/resources/disputes.d.ts +20 -18
  62. package/resources/disputes.d.ts.map +1 -1
  63. package/resources/entries.d.mts +6 -6
  64. package/resources/entries.d.ts +6 -6
  65. package/resources/experiences.d.mts +6 -5
  66. package/resources/experiences.d.mts.map +1 -1
  67. package/resources/experiences.d.ts +6 -5
  68. package/resources/experiences.d.ts.map +1 -1
  69. package/resources/fee-markups.d.mts +6 -6
  70. package/resources/fee-markups.d.ts +6 -6
  71. package/resources/files.d.mts +2 -2
  72. package/resources/files.d.ts +2 -2
  73. package/resources/forum-posts.d.mts +8 -4
  74. package/resources/forum-posts.d.mts.map +1 -1
  75. package/resources/forum-posts.d.ts +8 -4
  76. package/resources/forum-posts.d.ts.map +1 -1
  77. package/resources/forums.d.mts +1 -1
  78. package/resources/forums.d.ts +1 -1
  79. package/resources/index.d.mts +1 -1
  80. package/resources/index.d.mts.map +1 -1
  81. package/resources/index.d.ts +1 -1
  82. package/resources/index.d.ts.map +1 -1
  83. package/resources/index.js.map +1 -1
  84. package/resources/index.mjs.map +1 -1
  85. package/resources/invoices.d.mts +28 -20
  86. package/resources/invoices.d.mts.map +1 -1
  87. package/resources/invoices.d.ts +28 -20
  88. package/resources/invoices.d.ts.map +1 -1
  89. package/resources/leads.d.mts +12 -12
  90. package/resources/leads.d.ts +12 -12
  91. package/resources/ledger-accounts.d.mts +9 -7
  92. package/resources/ledger-accounts.d.mts.map +1 -1
  93. package/resources/ledger-accounts.d.ts +9 -7
  94. package/resources/ledger-accounts.d.ts.map +1 -1
  95. package/resources/members.d.mts +9 -9
  96. package/resources/members.d.ts +9 -9
  97. package/resources/memberships.d.mts +17 -12
  98. package/resources/memberships.d.mts.map +1 -1
  99. package/resources/memberships.d.ts +17 -12
  100. package/resources/memberships.d.ts.map +1 -1
  101. package/resources/messages.d.mts +7 -3
  102. package/resources/messages.d.mts.map +1 -1
  103. package/resources/messages.d.ts +7 -3
  104. package/resources/messages.d.ts.map +1 -1
  105. package/resources/payments.d.mts +27 -20
  106. package/resources/payments.d.mts.map +1 -1
  107. package/resources/payments.d.ts +27 -20
  108. package/resources/payments.d.ts.map +1 -1
  109. package/resources/payout-methods.d.mts +6 -6
  110. package/resources/payout-methods.d.ts +6 -6
  111. package/resources/plans.d.mts +34 -24
  112. package/resources/plans.d.mts.map +1 -1
  113. package/resources/plans.d.ts +34 -24
  114. package/resources/plans.d.ts.map +1 -1
  115. package/resources/products.d.mts +4 -2
  116. package/resources/products.d.mts.map +1 -1
  117. package/resources/products.d.ts +4 -2
  118. package/resources/products.d.ts.map +1 -1
  119. package/resources/promo-codes.d.mts +22 -12
  120. package/resources/promo-codes.d.mts.map +1 -1
  121. package/resources/promo-codes.d.ts +22 -12
  122. package/resources/promo-codes.d.ts.map +1 -1
  123. package/resources/reactions.d.mts +1 -1
  124. package/resources/reactions.d.ts +1 -1
  125. package/resources/refunds.d.mts +19 -15
  126. package/resources/refunds.d.mts.map +1 -1
  127. package/resources/refunds.d.ts +19 -15
  128. package/resources/refunds.d.ts.map +1 -1
  129. package/resources/reviews.d.mts +10 -10
  130. package/resources/reviews.d.ts +10 -10
  131. package/resources/setup-intents.d.mts +18 -20
  132. package/resources/setup-intents.d.mts.map +1 -1
  133. package/resources/setup-intents.d.ts +18 -20
  134. package/resources/setup-intents.d.ts.map +1 -1
  135. package/resources/shared.d.mts +175 -137
  136. package/resources/shared.d.mts.map +1 -1
  137. package/resources/shared.d.ts +175 -137
  138. package/resources/shared.d.ts.map +1 -1
  139. package/resources/shipments.d.mts +4 -4
  140. package/resources/shipments.d.ts +4 -4
  141. package/resources/support-channels.d.mts +1 -1
  142. package/resources/support-channels.d.ts +1 -1
  143. package/resources/topups.d.mts +6 -4
  144. package/resources/topups.d.mts.map +1 -1
  145. package/resources/topups.d.ts +6 -4
  146. package/resources/topups.d.ts.map +1 -1
  147. package/resources/transfers.d.mts +8 -5
  148. package/resources/transfers.d.mts.map +1 -1
  149. package/resources/transfers.d.ts +8 -5
  150. package/resources/transfers.d.ts.map +1 -1
  151. package/resources/users.d.mts +46 -8
  152. package/resources/users.d.mts.map +1 -1
  153. package/resources/users.d.ts +46 -8
  154. package/resources/users.d.ts.map +1 -1
  155. package/resources/users.js +10 -0
  156. package/resources/users.js.map +1 -1
  157. package/resources/users.mjs +10 -0
  158. package/resources/users.mjs.map +1 -1
  159. package/resources/verifications.d.mts +1 -1
  160. package/resources/verifications.d.ts +1 -1
  161. package/resources/webhooks.d.mts +71 -57
  162. package/resources/webhooks.d.mts.map +1 -1
  163. package/resources/webhooks.d.ts +71 -57
  164. package/resources/webhooks.d.ts.map +1 -1
  165. package/resources/withdrawals.d.mts +15 -11
  166. package/resources/withdrawals.d.mts.map +1 -1
  167. package/resources/withdrawals.d.ts +15 -11
  168. package/resources/withdrawals.d.ts.map +1 -1
  169. package/src/client.ts +20 -8
  170. package/src/resources/access-tokens.ts +35 -56
  171. package/src/resources/ai-chats.ts +42 -9
  172. package/src/resources/app-builds.ts +2 -2
  173. package/src/resources/apps.ts +5 -4
  174. package/src/resources/authorized-users.ts +6 -6
  175. package/src/resources/chat-channels.ts +1 -1
  176. package/src/resources/checkout-configurations.ts +24 -16
  177. package/src/resources/companies.ts +41 -26
  178. package/src/resources/company-token-transactions.ts +10 -10
  179. package/src/resources/course-chapters.ts +3 -3
  180. package/src/resources/course-lessons.ts +15 -15
  181. package/src/resources/course-students.ts +6 -6
  182. package/src/resources/courses.ts +8 -8
  183. package/src/resources/disputes.ts +20 -18
  184. package/src/resources/entries.ts +6 -6
  185. package/src/resources/experiences.ts +6 -5
  186. package/src/resources/fee-markups.ts +6 -6
  187. package/src/resources/files.ts +2 -2
  188. package/src/resources/forum-posts.ts +8 -4
  189. package/src/resources/forums.ts +1 -1
  190. package/src/resources/index.ts +2 -1
  191. package/src/resources/invoices.ts +28 -20
  192. package/src/resources/leads.ts +12 -12
  193. package/src/resources/ledger-accounts.ts +9 -7
  194. package/src/resources/members.ts +9 -9
  195. package/src/resources/memberships.ts +18 -12
  196. package/src/resources/messages.ts +7 -3
  197. package/src/resources/payments.ts +28 -18
  198. package/src/resources/payout-methods.ts +6 -6
  199. package/src/resources/plans.ts +34 -24
  200. package/src/resources/products.ts +4 -2
  201. package/src/resources/promo-codes.ts +22 -12
  202. package/src/resources/reactions.ts +1 -1
  203. package/src/resources/refunds.ts +20 -15
  204. package/src/resources/reviews.ts +10 -10
  205. package/src/resources/setup-intents.ts +18 -20
  206. package/src/resources/shared.ts +176 -137
  207. package/src/resources/shipments.ts +4 -4
  208. package/src/resources/support-channels.ts +1 -1
  209. package/src/resources/topups.ts +6 -4
  210. package/src/resources/transfers.ts +8 -5
  211. package/src/resources/users.ts +58 -8
  212. package/src/resources/verifications.ts +1 -1
  213. package/src/resources/webhooks.ts +71 -57
  214. package/src/resources/withdrawals.ts +15 -11
  215. package/src/version.ts +1 -1
  216. package/version.d.mts +1 -1
  217. package/version.d.ts +1 -1
  218. package/version.js +1 -1
  219. package/version.mjs +1 -1
@@ -19,11 +19,12 @@ export type AccessLevel = 'no_access' | 'admin' | 'customer';
19
19
  export type AccessPassType = 'regular' | 'app' | 'experience_upsell' | 'api_only';
20
20
 
21
21
  /**
22
- * 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.
23
24
  */
24
25
  export interface App {
25
26
  /**
26
- * The ID of the app
27
+ * The unique identifier for the app.
27
28
  */
28
29
  id: string;
29
30
 
@@ -126,7 +127,7 @@ export namespace App {
126
127
  */
127
128
  export interface APIKey {
128
129
  /**
129
- * The ID of this API key
130
+ * The unique identifier for the private api key.
130
131
  */
131
132
  id: string;
132
133
 
@@ -136,7 +137,7 @@ export namespace App {
136
137
  token: string;
137
138
 
138
139
  /**
139
- * When this API key was created at
140
+ * The datetime the private api key was created.
140
141
  */
141
142
  created_at: string;
142
143
  }
@@ -146,7 +147,7 @@ export namespace App {
146
147
  */
147
148
  export interface Company {
148
149
  /**
149
- * The ID (tag) of the company.
150
+ * The unique identifier for the company.
150
151
  */
151
152
  id: string;
152
153
 
@@ -161,7 +162,7 @@ export namespace App {
161
162
  */
162
163
  export interface Creator {
163
164
  /**
164
- * The internal ID of the user.
165
+ * The unique identifier for the user.
165
166
  */
166
167
  id: string;
167
168
 
@@ -260,7 +261,7 @@ export namespace App {
260
261
  */
261
262
  export interface AppBuild {
262
263
  /**
263
- * The ID of the app build. It will look like apbu_xxxxx.
264
+ * The unique identifier for the app build.
264
265
  */
265
266
  id: string;
266
267
 
@@ -271,7 +272,7 @@ export interface AppBuild {
271
272
  checksum: string;
272
273
 
273
274
  /**
274
- * When this app build was created.
275
+ * The datetime the app build was created.
275
276
  */
276
277
  created_at: string;
277
278
 
@@ -410,7 +411,7 @@ export namespace ChatChannel {
410
411
  */
411
412
  export interface Experience {
412
413
  /**
413
- * The unique ID representing this experience
414
+ * The unique identifier for the experience.
414
415
  */
415
416
  id: string;
416
417
 
@@ -422,14 +423,13 @@ export namespace ChatChannel {
422
423
  }
423
424
 
424
425
  /**
425
- * A checkout configuration object.
426
- * Can be used to create a reusable custom configuration for a checkout, including attaching plans, affiliates and custom metadata to the checkout.
427
- * This configuration can be re-used by multiple users.
428
- * 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.
429
429
  */
430
430
  export interface CheckoutConfiguration {
431
431
  /**
432
- * The ID of the checkout configuration
432
+ * The unique identifier for the checkout session.
433
433
  */
434
434
  id: string;
435
435
 
@@ -516,12 +516,12 @@ export namespace CheckoutConfiguration {
516
516
  */
517
517
  export interface Plan {
518
518
  /**
519
- * The internal ID of the plan.
519
+ * The unique identifier for the plan.
520
520
  */
521
521
  id: string;
522
522
 
523
523
  /**
524
- * The interval at which the plan charges (renewal plans).
524
+ * The interval in days at which the plan charges (renewal plans).
525
525
  */
526
526
  billing_period: number | null;
527
527
 
@@ -531,12 +531,15 @@ export namespace CheckoutConfiguration {
531
531
  currency: Shared.Currency;
532
532
 
533
533
  /**
534
- * 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.
535
536
  */
536
537
  expiration_days: number | null;
537
538
 
538
539
  /**
539
- * 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.
540
543
  */
541
544
  initial_price: number;
542
545
 
@@ -551,7 +554,8 @@ export namespace CheckoutConfiguration {
551
554
  release_method: Shared.ReleaseMethod;
552
555
 
553
556
  /**
554
- * 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.
555
559
  */
556
560
  renewal_price: number;
557
561
 
@@ -573,11 +577,12 @@ export namespace CheckoutConfiguration {
573
577
  export type CollectionMethod = 'send_invoice' | 'charge_automatically';
574
578
 
575
579
  /**
576
- * An object representing a (sanitized) company.
580
+ * A company is a seller on Whop. Companies own products, manage members, and
581
+ * receive payouts.
577
582
  */
578
583
  export interface Company {
579
584
  /**
580
- * The ID (tag) of the company.
585
+ * The unique identifier for the company.
581
586
  */
582
587
  id: string;
583
588
 
@@ -587,7 +592,7 @@ export interface Company {
587
592
  business_type: BusinessTypes | null;
588
593
 
589
594
  /**
590
- * When the company was created (signed up)
595
+ * The datetime the company was created.
591
596
  */
592
597
  created_at: string;
593
598
 
@@ -648,7 +653,7 @@ export interface Company {
648
653
  title: string;
649
654
 
650
655
  /**
651
- * The time the company was last updated.
656
+ * The datetime the company was last updated.
652
657
  */
653
658
  updated_at: string;
654
659
 
@@ -675,7 +680,7 @@ export namespace Company {
675
680
  */
676
681
  export interface OwnerUser {
677
682
  /**
678
- * The internal ID of the user.
683
+ * The unique identifier for the user.
679
684
  */
680
685
  id: string;
681
686
 
@@ -695,7 +700,7 @@ export namespace Company {
695
700
  */
696
701
  export interface SocialLink {
697
702
  /**
698
- * The ID
703
+ * The unique identifier for the social link.
699
704
  */
700
705
  id: string;
701
706
 
@@ -725,7 +730,7 @@ export namespace Company {
725
730
  */
726
731
  export interface CourseLessonInteraction {
727
732
  /**
728
- * The ID of the lesson interaction
733
+ * The unique identifier for the lesson interaction.
729
734
  */
730
735
  id: string;
731
736
 
@@ -740,7 +745,7 @@ export interface CourseLessonInteraction {
740
745
  course: CourseLessonInteraction.Course;
741
746
 
742
747
  /**
743
- * When the interaction was created
748
+ * The datetime the lesson interaction was created.
744
749
  */
745
750
  created_at: string;
746
751
 
@@ -761,7 +766,7 @@ export namespace CourseLessonInteraction {
761
766
  */
762
767
  export interface Course {
763
768
  /**
764
- * The ID of the course. Looks like cors_XXX
769
+ * The unique identifier for the course.
765
770
  */
766
771
  id: string;
767
772
 
@@ -782,7 +787,7 @@ export namespace CourseLessonInteraction {
782
787
  */
783
788
  export interface Experience {
784
789
  /**
785
- * The unique ID representing this experience
790
+ * The unique identifier for the experience.
786
791
  */
787
792
  id: string;
788
793
  }
@@ -793,7 +798,7 @@ export namespace CourseLessonInteraction {
793
798
  */
794
799
  export interface Lesson {
795
800
  /**
796
- * The ID of the lesson
801
+ * The unique identifier for the lesson.
797
802
  */
798
803
  id: string;
799
804
 
@@ -814,7 +819,7 @@ export namespace CourseLessonInteraction {
814
819
  */
815
820
  export interface Chapter {
816
821
  /**
817
- * The ID of the chapter. Looks like chap_XXX
822
+ * The unique identifier for the chapter.
818
823
  */
819
824
  id: string;
820
825
  }
@@ -825,7 +830,7 @@ export namespace CourseLessonInteraction {
825
830
  */
826
831
  export interface User {
827
832
  /**
828
- * The internal ID of the user.
833
+ * The unique identifier for the user.
829
834
  */
830
835
  id: string;
831
836
 
@@ -846,7 +851,7 @@ export namespace CourseLessonInteraction {
846
851
  */
847
852
  export interface CourseLessonInteractionListItem {
848
853
  /**
849
- * The ID of the lesson interaction
854
+ * The unique identifier for the lesson interaction.
850
855
  */
851
856
  id: string;
852
857
 
@@ -856,7 +861,7 @@ export interface CourseLessonInteractionListItem {
856
861
  completed: boolean;
857
862
 
858
863
  /**
859
- * When the interaction was created
864
+ * The datetime the lesson interaction was created.
860
865
  */
861
866
  created_at: string;
862
867
 
@@ -877,7 +882,7 @@ export namespace CourseLessonInteractionListItem {
877
882
  */
878
883
  export interface Lesson {
879
884
  /**
880
- * The ID of the lesson
885
+ * The unique identifier for the lesson.
881
886
  */
882
887
  id: string;
883
888
 
@@ -898,7 +903,7 @@ export namespace CourseLessonInteractionListItem {
898
903
  */
899
904
  export interface Chapter {
900
905
  /**
901
- * The ID of the chapter. Looks like chap_XXX
906
+ * The unique identifier for the chapter.
902
907
  */
903
908
  id: string;
904
909
  }
@@ -909,7 +914,7 @@ export namespace CourseLessonInteractionListItem {
909
914
  */
910
915
  export interface User {
911
916
  /**
912
- * The internal ID of the user.
917
+ * The unique identifier for the user.
913
918
  */
914
919
  id: string;
915
920
 
@@ -1049,16 +1054,16 @@ export type DmsPostTypes = 'regular' | 'system' | 'automated';
1049
1054
  export type EmailNotificationPreferences = 'all_admin_posts' | 'only_weekly_summary' | 'none';
1050
1055
 
1051
1056
  /**
1052
- * An object representing an entry in a waitlist.
1057
+ * An entry represents a user's signup for a waitlisted plan.
1053
1058
  */
1054
1059
  export interface Entry {
1055
1060
  /**
1056
- * The internal ID of the entry.
1061
+ * The unique identifier for the entry.
1057
1062
  */
1058
1063
  id: string;
1059
1064
 
1060
1065
  /**
1061
- * When the entry was created.
1066
+ * The datetime the entry was created.
1062
1067
  */
1063
1068
  created_at: string | null;
1064
1069
 
@@ -1094,7 +1099,7 @@ export namespace Entry {
1094
1099
  */
1095
1100
  export interface CustomFieldResponse {
1096
1101
  /**
1097
- * The ID of the custom field item
1102
+ * The unique identifier for the custom field response.
1098
1103
  */
1099
1104
  id: string;
1100
1105
 
@@ -1114,7 +1119,7 @@ export namespace Entry {
1114
1119
  */
1115
1120
  export interface Plan {
1116
1121
  /**
1117
- * The internal ID of the plan.
1122
+ * The unique identifier for the plan.
1118
1123
  */
1119
1124
  id: string;
1120
1125
  }
@@ -1124,7 +1129,7 @@ export namespace Entry {
1124
1129
  */
1125
1130
  export interface Product {
1126
1131
  /**
1127
- * The internal ID of the public product.
1132
+ * The unique identifier for the product.
1128
1133
  */
1129
1134
  id: string;
1130
1135
 
@@ -1139,7 +1144,7 @@ export namespace Entry {
1139
1144
  */
1140
1145
  export interface User {
1141
1146
  /**
1142
- * The internal ID of the user.
1147
+ * The unique identifier for the user.
1143
1148
  */
1144
1149
  id: string;
1145
1150
 
@@ -1166,11 +1171,12 @@ export namespace Entry {
1166
1171
  export type EntryStatus = 'drafted' | 'pending' | 'approved' | 'denied' | 'any';
1167
1172
 
1168
1173
  /**
1169
- * 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.
1170
1176
  */
1171
1177
  export interface Experience {
1172
1178
  /**
1173
- * The unique ID representing this experience
1179
+ * The unique identifier for the experience.
1174
1180
  */
1175
1181
  id: string;
1176
1182
 
@@ -1185,7 +1191,7 @@ export interface Experience {
1185
1191
  company: Experience.Company;
1186
1192
 
1187
1193
  /**
1188
- * The timestamp of when this experience was created.
1194
+ * The datetime the experience was created.
1189
1195
  */
1190
1196
  created_at: string;
1191
1197
 
@@ -1223,7 +1229,7 @@ export namespace Experience {
1223
1229
  */
1224
1230
  export interface App {
1225
1231
  /**
1226
- * The ID of the app
1232
+ * The unique identifier for the app.
1227
1233
  */
1228
1234
  id: string;
1229
1235
 
@@ -1258,7 +1264,7 @@ export namespace Experience {
1258
1264
  */
1259
1265
  export interface Company {
1260
1266
  /**
1261
- * The ID (tag) of the company.
1267
+ * The unique identifier for the company.
1262
1268
  */
1263
1269
  id: string;
1264
1270
 
@@ -1285,11 +1291,12 @@ export namespace Experience {
1285
1291
  }
1286
1292
 
1287
1293
  /**
1288
- * 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.
1289
1296
  */
1290
1297
  export interface Product {
1291
1298
  /**
1292
- * The internal ID of the public product.
1299
+ * The unique identifier for the product.
1293
1300
  */
1294
1301
  id: string;
1295
1302
 
@@ -1341,7 +1348,7 @@ export namespace Forum {
1341
1348
  */
1342
1349
  export interface Experience {
1343
1350
  /**
1344
- * The unique ID representing this experience
1351
+ * The unique identifier for the experience.
1345
1352
  */
1346
1353
  id: string;
1347
1354
 
@@ -1357,7 +1364,11 @@ export namespace Forum {
1357
1364
  */
1358
1365
  export interface ForumPost {
1359
1366
  /**
1360
- * 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.
1361
1372
  */
1362
1373
  id: string;
1363
1374
 
@@ -1428,7 +1439,7 @@ export namespace ForumPost {
1428
1439
  */
1429
1440
  export interface User {
1430
1441
  /**
1431
- * The internal ID of the user.
1442
+ * The unique identifier for the user.
1432
1443
  */
1433
1444
  id: string;
1434
1445
 
@@ -1445,7 +1456,9 @@ export namespace ForumPost {
1445
1456
  }
1446
1457
 
1447
1458
  /**
1448
- * 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.
1449
1462
  */
1450
1463
  export type FriendlyReceiptStatus =
1451
1464
  | 'succeeded'
@@ -1551,12 +1564,12 @@ export type IndustryTypes =
1551
1564
  */
1552
1565
  export interface Invoice {
1553
1566
  /**
1554
- * The ID of the invoice.
1567
+ * The unique identifier for the invoice.
1555
1568
  */
1556
1569
  id: string;
1557
1570
 
1558
1571
  /**
1559
- * The date the invoice was created.
1572
+ * The datetime the invoice was created.
1560
1573
  */
1561
1574
  created_at: string;
1562
1575
 
@@ -1603,7 +1616,7 @@ export namespace Invoice {
1603
1616
  */
1604
1617
  export interface CurrentPlan {
1605
1618
  /**
1606
- * The internal ID of the plan.
1619
+ * The unique identifier for the plan.
1607
1620
  */
1608
1621
  id: string;
1609
1622
 
@@ -1623,7 +1636,7 @@ export namespace Invoice {
1623
1636
  */
1624
1637
  export interface User {
1625
1638
  /**
1626
- * The internal ID of the user.
1639
+ * The unique identifier for the user.
1627
1640
  */
1628
1641
  id: string;
1629
1642
 
@@ -1644,12 +1657,12 @@ export namespace Invoice {
1644
1657
  */
1645
1658
  export interface InvoiceListItem {
1646
1659
  /**
1647
- * The ID of the invoice.
1660
+ * The unique identifier for the invoice.
1648
1661
  */
1649
1662
  id: string;
1650
1663
 
1651
1664
  /**
1652
- * The date the invoice was created.
1665
+ * The datetime the invoice was created.
1653
1666
  */
1654
1667
  created_at: string;
1655
1668
 
@@ -1696,7 +1709,7 @@ export namespace InvoiceListItem {
1696
1709
  */
1697
1710
  export interface CurrentPlan {
1698
1711
  /**
1699
- * The internal ID of the plan.
1712
+ * The unique identifier for the plan.
1700
1713
  */
1701
1714
  id: string;
1702
1715
 
@@ -1716,7 +1729,7 @@ export namespace InvoiceListItem {
1716
1729
  */
1717
1730
  export interface User {
1718
1731
  /**
1719
- * The internal ID of the user.
1732
+ * The unique identifier for the user.
1720
1733
  */
1721
1734
  id: string;
1722
1735
 
@@ -1762,12 +1775,12 @@ export type MemberMostRecentActions =
1762
1775
  export type MemberStatuses = 'drafted' | 'joined' | 'left';
1763
1776
 
1764
1777
  /**
1765
- * A membership represents a purchase between a User and a Company for a specific
1766
- * 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.
1767
1780
  */
1768
1781
  export interface Membership {
1769
1782
  /**
1770
- * The ID of the membership
1783
+ * The unique identifier for the membership.
1771
1784
  */
1772
1785
  id: string;
1773
1786
 
@@ -1799,7 +1812,7 @@ export interface Membership {
1799
1812
  company: Membership.Company;
1800
1813
 
1801
1814
  /**
1802
- * The timestamp, in seconds, that this Membership was created at.
1815
+ * The datetime the membership was created.
1803
1816
  */
1804
1817
  created_at: string;
1805
1818
 
@@ -1813,6 +1826,11 @@ export interface Membership {
1813
1826
  */
1814
1827
  custom_field_responses: Array<Membership.CustomFieldResponse>;
1815
1828
 
1829
+ /**
1830
+ * When the member joined the company.
1831
+ */
1832
+ joined_at: string | null;
1833
+
1816
1834
  /**
1817
1835
  * The license key for this Membership. This is only present if the membership
1818
1836
  * grants access to an instance of the Whop Software app.
@@ -1830,7 +1848,8 @@ export interface Membership {
1830
1848
  member: Membership.Member | null;
1831
1849
 
1832
1850
  /**
1833
- * 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.
1834
1853
  */
1835
1854
  metadata: { [key: string]: unknown };
1836
1855
 
@@ -1872,7 +1891,7 @@ export interface Membership {
1872
1891
  status: MembershipStatus;
1873
1892
 
1874
1893
  /**
1875
- * A timestamp of when the membership was last updated
1894
+ * The datetime the membership was last updated.
1876
1895
  */
1877
1896
  updated_at: string;
1878
1897
 
@@ -1888,7 +1907,7 @@ export namespace Membership {
1888
1907
  */
1889
1908
  export interface Company {
1890
1909
  /**
1891
- * The ID (tag) of the company.
1910
+ * The unique identifier for the company.
1892
1911
  */
1893
1912
  id: string;
1894
1913
 
@@ -1903,7 +1922,7 @@ export namespace Membership {
1903
1922
  */
1904
1923
  export interface CustomFieldResponse {
1905
1924
  /**
1906
- * The ID of the custom field item
1925
+ * The unique identifier for the custom field response.
1907
1926
  */
1908
1927
  id: string;
1909
1928
 
@@ -1923,7 +1942,7 @@ export namespace Membership {
1923
1942
  */
1924
1943
  export interface Member {
1925
1944
  /**
1926
- * The ID of the member
1945
+ * The unique identifier for the member.
1927
1946
  */
1928
1947
  id: string;
1929
1948
  }
@@ -1933,7 +1952,7 @@ export namespace Membership {
1933
1952
  */
1934
1953
  export interface Plan {
1935
1954
  /**
1936
- * The internal ID of the plan.
1955
+ * The unique identifier for the plan.
1937
1956
  */
1938
1957
  id: string;
1939
1958
  }
@@ -1943,7 +1962,7 @@ export namespace Membership {
1943
1962
  */
1944
1963
  export interface Product {
1945
1964
  /**
1946
- * The internal ID of the public product.
1965
+ * The unique identifier for the product.
1947
1966
  */
1948
1967
  id: string;
1949
1968
 
@@ -1958,7 +1977,7 @@ export namespace Membership {
1958
1977
  */
1959
1978
  export interface PromoCode {
1960
1979
  /**
1961
- * The ID of the promo.
1980
+ * The unique identifier for the promo code.
1962
1981
  */
1963
1982
  id: string;
1964
1983
  }
@@ -1968,7 +1987,7 @@ export namespace Membership {
1968
1987
  */
1969
1988
  export interface User {
1970
1989
  /**
1971
- * The internal ID of the user.
1990
+ * The unique identifier for the user.
1972
1991
  */
1973
1992
  id: string;
1974
1993
 
@@ -2008,7 +2027,11 @@ export type MembershipStatus =
2008
2027
  */
2009
2028
  export interface Message {
2010
2029
  /**
2011
- * 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.
2012
2035
  */
2013
2036
  id: string;
2014
2037
 
@@ -2090,7 +2113,7 @@ export namespace Message {
2090
2113
  */
2091
2114
  export interface Option {
2092
2115
  /**
2093
- * The ID of the poll option
2116
+ * The unique identifier for the poll option.
2094
2117
  */
2095
2118
  id: string;
2096
2119
 
@@ -2136,7 +2159,7 @@ export namespace Message {
2136
2159
  */
2137
2160
  export interface User {
2138
2161
  /**
2139
- * The internal ID of the user.
2162
+ * The unique identifier for the user.
2140
2163
  */
2141
2164
  id: string;
2142
2165
 
@@ -2178,11 +2201,12 @@ export interface PageInfo {
2178
2201
  }
2179
2202
 
2180
2203
  /**
2181
- * 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.
2182
2206
  */
2183
2207
  export interface Payment {
2184
2208
  /**
2185
- * The payment ID
2209
+ * The unique identifier for the payment.
2186
2210
  */
2187
2211
  id: string;
2188
2212
 
@@ -2227,7 +2251,7 @@ export interface Payment {
2227
2251
  company: Payment.Company | null;
2228
2252
 
2229
2253
  /**
2230
- * The datetime the payment was created
2254
+ * The datetime the payment was created.
2231
2255
  */
2232
2256
  created_at: string;
2233
2257
 
@@ -2393,7 +2417,7 @@ export namespace Payment {
2393
2417
  amount_refunded: number;
2394
2418
 
2395
2419
  /**
2396
- * When the application fee was created.
2420
+ * The datetime the application fee was created.
2397
2421
  */
2398
2422
  created_at: string;
2399
2423
 
@@ -2448,7 +2472,7 @@ export namespace Payment {
2448
2472
  */
2449
2473
  export interface Company {
2450
2474
  /**
2451
- * The ID of the company
2475
+ * The unique identifier for the company.
2452
2476
  */
2453
2477
  id: string;
2454
2478
 
@@ -2468,7 +2492,7 @@ export namespace Payment {
2468
2492
  */
2469
2493
  export interface Member {
2470
2494
  /**
2471
- * The ID of the member
2495
+ * The unique identifier for the company member.
2472
2496
  */
2473
2497
  id: string;
2474
2498
 
@@ -2483,7 +2507,7 @@ export namespace Payment {
2483
2507
  */
2484
2508
  export interface Membership {
2485
2509
  /**
2486
- * The internal ID of the membership.
2510
+ * The unique identifier for the membership.
2487
2511
  */
2488
2512
  id: string;
2489
2513
 
@@ -2498,7 +2522,7 @@ export namespace Payment {
2498
2522
  */
2499
2523
  export interface PaymentMethod {
2500
2524
  /**
2501
- * The ID of the payment method
2525
+ * The unique identifier for the payment token.
2502
2526
  */
2503
2527
  id: string;
2504
2528
 
@@ -2508,7 +2532,7 @@ export namespace Payment {
2508
2532
  card: PaymentMethod.Card | null;
2509
2533
 
2510
2534
  /**
2511
- * The date and time the payment method was created
2535
+ * The datetime the payment token was created.
2512
2536
  */
2513
2537
  created_at: string;
2514
2538
 
@@ -2550,7 +2574,7 @@ export namespace Payment {
2550
2574
  */
2551
2575
  export interface Plan {
2552
2576
  /**
2553
- * The internal ID of the plan.
2577
+ * The unique identifier for the plan.
2554
2578
  */
2555
2579
  id: string;
2556
2580
  }
@@ -2560,7 +2584,7 @@ export namespace Payment {
2560
2584
  */
2561
2585
  export interface Product {
2562
2586
  /**
2563
- * The internal ID of the public product.
2587
+ * The unique identifier for the product.
2564
2588
  */
2565
2589
  id: string;
2566
2590
 
@@ -2580,12 +2604,14 @@ export namespace Payment {
2580
2604
  */
2581
2605
  export interface PromoCode {
2582
2606
  /**
2583
- * The ID of the promo.
2607
+ * The unique identifier for the promo code.
2584
2608
  */
2585
2609
  id: string;
2586
2610
 
2587
2611
  /**
2588
- * 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).
2589
2615
  */
2590
2616
  amount_off: number;
2591
2617
 
@@ -2615,7 +2641,7 @@ export namespace Payment {
2615
2641
  */
2616
2642
  export interface User {
2617
2643
  /**
2618
- * The internal ID of the user.
2644
+ * The unique identifier for the user.
2619
2645
  */
2620
2646
  id: string;
2621
2647
 
@@ -2637,18 +2663,18 @@ export namespace Payment {
2637
2663
  }
2638
2664
 
2639
2665
  /**
2640
- * A plan for an product. Plans define the core parameters that define a checkout
2641
- * and payment on whop. Use plans to create different ways to price your products
2642
- * (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.
2643
2669
  */
2644
2670
  export interface Plan {
2645
2671
  /**
2646
- * The internal ID of the plan.
2672
+ * The unique identifier for the plan.
2647
2673
  */
2648
2674
  id: string;
2649
2675
 
2650
2676
  /**
2651
- * The interval at which the plan charges (renewal plans).
2677
+ * The interval in days at which the plan charges (renewal plans).
2652
2678
  */
2653
2679
  billing_period: number | null;
2654
2680
 
@@ -2663,7 +2689,7 @@ export interface Plan {
2663
2689
  company: Plan.Company | null;
2664
2690
 
2665
2691
  /**
2666
- * When the plan was created.
2692
+ * The datetime the plan was created.
2667
2693
  */
2668
2694
  created_at: string;
2669
2695
 
@@ -2683,12 +2709,15 @@ export interface Plan {
2683
2709
  description: string | null;
2684
2710
 
2685
2711
  /**
2686
- * 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.
2687
2714
  */
2688
2715
  expiration_days: number | null;
2689
2716
 
2690
2717
  /**
2691
- * 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.
2692
2721
  */
2693
2722
  initial_price: number;
2694
2723
 
@@ -2733,7 +2762,8 @@ export interface Plan {
2733
2762
  release_method: ReleaseMethod;
2734
2763
 
2735
2764
  /**
2736
- * 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.
2737
2767
  */
2738
2768
  renewal_price: number;
2739
2769
 
@@ -2763,12 +2793,13 @@ export interface Plan {
2763
2793
  trial_period_days: number | null;
2764
2794
 
2765
2795
  /**
2766
- * 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.
2767
2798
  */
2768
2799
  unlimited_stock: boolean;
2769
2800
 
2770
2801
  /**
2771
- * When the plan was last updated.
2802
+ * The datetime the plan was last updated.
2772
2803
  */
2773
2804
  updated_at: string;
2774
2805
 
@@ -2784,7 +2815,7 @@ export namespace Plan {
2784
2815
  */
2785
2816
  export interface Company {
2786
2817
  /**
2787
- * The ID (tag) of the company.
2818
+ * The unique identifier for the company.
2788
2819
  */
2789
2820
  id: string;
2790
2821
 
@@ -2799,7 +2830,7 @@ export namespace Plan {
2799
2830
  */
2800
2831
  export interface CustomField {
2801
2832
  /**
2802
- * The internal ID of the given custom field
2833
+ * The unique identifier for the custom field.
2803
2834
  */
2804
2835
  id: string;
2805
2836
 
@@ -2834,7 +2865,7 @@ export namespace Plan {
2834
2865
  */
2835
2866
  export interface Invoice {
2836
2867
  /**
2837
- * The ID of the invoice.
2868
+ * The unique identifier for the invoice.
2838
2869
  */
2839
2870
  id: string;
2840
2871
  }
@@ -2870,7 +2901,7 @@ export namespace Plan {
2870
2901
  */
2871
2902
  export interface Product {
2872
2903
  /**
2873
- * The internal ID of the public product.
2904
+ * The unique identifier for the product.
2874
2905
  */
2875
2906
  id: string;
2876
2907
 
@@ -2887,11 +2918,12 @@ export namespace Plan {
2887
2918
  export type PlanType = 'renewal' | 'one_time';
2888
2919
 
2889
2920
  /**
2890
- * 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.
2891
2923
  */
2892
2924
  export interface Product {
2893
2925
  /**
2894
- * The internal ID of the public product.
2926
+ * The unique identifier for the product.
2895
2927
  */
2896
2928
  id: string;
2897
2929
 
@@ -2906,7 +2938,7 @@ export interface Product {
2906
2938
  company: Product.Company;
2907
2939
 
2908
2940
  /**
2909
- * When the product was created.
2941
+ * The datetime the product was created.
2910
2942
  */
2911
2943
  created_at: string;
2912
2944
 
@@ -3000,7 +3032,7 @@ export interface Product {
3000
3032
  title: string;
3001
3033
 
3002
3034
  /**
3003
- * When the product was updated.
3035
+ * The datetime the product was last updated.
3004
3036
  */
3005
3037
  updated_at: string;
3006
3038
 
@@ -3021,7 +3053,7 @@ export namespace Product {
3021
3053
  */
3022
3054
  export interface Company {
3023
3055
  /**
3024
- * The ID (tag) of the company.
3056
+ * The unique identifier for the company.
3025
3057
  */
3026
3058
  id: string;
3027
3059
 
@@ -3041,7 +3073,7 @@ export namespace Product {
3041
3073
  */
3042
3074
  export interface OwnerUser {
3043
3075
  /**
3044
- * The internal ID of the user.
3076
+ * The unique identifier for the user.
3045
3077
  */
3046
3078
  id: string;
3047
3079
 
@@ -3061,7 +3093,7 @@ export namespace Product {
3061
3093
  */
3062
3094
  export interface ProductTaxCode {
3063
3095
  /**
3064
- * The internal ID of the product tax code.
3096
+ * The unique identifier for the product tax code.
3065
3097
  */
3066
3098
  id: string;
3067
3099
 
@@ -3078,11 +3110,12 @@ export namespace Product {
3078
3110
  }
3079
3111
 
3080
3112
  /**
3081
- * 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.
3082
3115
  */
3083
3116
  export interface ProductListItem {
3084
3117
  /**
3085
- * The internal ID of the public product.
3118
+ * The unique identifier for the product.
3086
3119
  */
3087
3120
  id: string;
3088
3121
 
@@ -3092,7 +3125,7 @@ export interface ProductListItem {
3092
3125
  business_type: BusinessTypes | null;
3093
3126
 
3094
3127
  /**
3095
- * When the product was created.
3128
+ * The datetime the product was created.
3096
3129
  */
3097
3130
  created_at: string;
3098
3131
 
@@ -3134,7 +3167,7 @@ export interface ProductListItem {
3134
3167
  title: string;
3135
3168
 
3136
3169
  /**
3137
- * When the product was updated.
3170
+ * The datetime the product was last updated.
3138
3171
  */
3139
3172
  updated_at: string;
3140
3173
 
@@ -3185,7 +3218,7 @@ export namespace Reaction {
3185
3218
  */
3186
3219
  export interface User {
3187
3220
  /**
3188
- * The internal ID of the user.
3221
+ * The unique identifier for the user.
3189
3222
  */
3190
3223
  id: string;
3191
3224
 
@@ -3216,7 +3249,7 @@ export type ReleaseMethod = 'buy_now' | 'waitlist';
3216
3249
  */
3217
3250
  export interface Shipment {
3218
3251
  /**
3219
- * The ID of the shipment
3252
+ * The unique identifier for the shipment.
3220
3253
  */
3221
3254
  id: string;
3222
3255
 
@@ -3226,7 +3259,7 @@ export interface Shipment {
3226
3259
  carrier: ShipmentCarrier;
3227
3260
 
3228
3261
  /**
3229
- * The date and time the shipment was created
3262
+ * The datetime the shipment was created.
3230
3263
  */
3231
3264
  created_at: string;
3232
3265
 
@@ -3261,7 +3294,7 @@ export interface Shipment {
3261
3294
  tracking_code: string;
3262
3295
 
3263
3296
  /**
3264
- * The date and time the shipment was last updated
3297
+ * The datetime the shipment was last updated.
3265
3298
  */
3266
3299
  updated_at: string;
3267
3300
  }
@@ -3272,7 +3305,7 @@ export namespace Shipment {
3272
3305
  */
3273
3306
  export interface Payment {
3274
3307
  /**
3275
- * The payment ID
3308
+ * The unique identifier for the payment.
3276
3309
  */
3277
3310
  id: string;
3278
3311
  }
@@ -3448,7 +3481,7 @@ export namespace SupportChannel {
3448
3481
  */
3449
3482
  export interface CustomerUser {
3450
3483
  /**
3451
- * The internal ID of the user.
3484
+ * The unique identifier for the user.
3452
3485
  */
3453
3486
  id: string;
3454
3487
 
@@ -3475,17 +3508,18 @@ export type TaxType = 'inclusive' | 'exclusive' | 'unspecified';
3475
3508
  */
3476
3509
  export interface Transfer {
3477
3510
  /**
3478
- * The unique identifier of the credit transaction transfer
3511
+ * The unique identifier for the credit transaction transfer.
3479
3512
  */
3480
3513
  id: string;
3481
3514
 
3482
3515
  /**
3483
- * 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.
3484
3518
  */
3485
3519
  amount: number;
3486
3520
 
3487
3521
  /**
3488
- * The timestamp when the credit transaction transfer was created
3522
+ * The datetime the credit transaction transfer was created.
3489
3523
  */
3490
3524
  created_at: string;
3491
3525
 
@@ -3510,7 +3544,8 @@ export interface Transfer {
3510
3544
  fee_amount: number | null;
3511
3545
 
3512
3546
  /**
3513
- * 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.
3514
3549
  */
3515
3550
  metadata: { [key: string]: unknown } | null;
3516
3551
 
@@ -3532,11 +3567,12 @@ export interface Transfer {
3532
3567
 
3533
3568
  export namespace Transfer {
3534
3569
  /**
3535
- * An object representing a (sanitized) user of the site.
3570
+ * A user account on Whop. Contains profile information, identity details, and
3571
+ * social connections.
3536
3572
  */
3537
3573
  export interface User {
3538
3574
  /**
3539
- * The internal ID of the user.
3575
+ * The unique identifier for the user.
3540
3576
  */
3541
3577
  id: string;
3542
3578
 
@@ -3557,11 +3593,12 @@ export namespace Transfer {
3557
3593
  }
3558
3594
 
3559
3595
  /**
3560
- * An object representing a (sanitized) company.
3596
+ * A company is a seller on Whop. Companies own products, manage members, and
3597
+ * receive payouts.
3561
3598
  */
3562
3599
  export interface Company {
3563
3600
  /**
3564
- * The ID (tag) of the company.
3601
+ * The unique identifier for the company.
3565
3602
  */
3566
3603
  id: string;
3567
3604
 
@@ -3582,11 +3619,12 @@ export namespace Transfer {
3582
3619
  }
3583
3620
 
3584
3621
  /**
3585
- * An object representing a (sanitized) user of the site.
3622
+ * A user account on Whop. Contains profile information, identity details, and
3623
+ * social connections.
3586
3624
  */
3587
3625
  export interface User {
3588
3626
  /**
3589
- * The internal ID of the user.
3627
+ * The unique identifier for the user.
3590
3628
  */
3591
3629
  id: string;
3592
3630
 
@@ -3607,11 +3645,12 @@ export namespace Transfer {
3607
3645
  }
3608
3646
 
3609
3647
  /**
3610
- * An object representing a (sanitized) company.
3648
+ * A company is a seller on Whop. Companies own products, manage members, and
3649
+ * receive payouts.
3611
3650
  */
3612
3651
  export interface Company {
3613
3652
  /**
3614
- * The ID (tag) of the company.
3653
+ * The unique identifier for the company.
3615
3654
  */
3616
3655
  id: string;
3617
3656