@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
@@ -63,16 +63,16 @@ export class Entries extends APIResource {
63
63
  export type EntryListResponsesCursorPage = CursorPage<EntryListResponse>;
64
64
 
65
65
  /**
66
- * An object representing an entry in a waitlist.
66
+ * An entry represents a user's signup for a waitlisted plan.
67
67
  */
68
68
  export interface EntryListResponse {
69
69
  /**
70
- * The internal ID of the entry.
70
+ * The unique identifier for the entry.
71
71
  */
72
72
  id: string;
73
73
 
74
74
  /**
75
- * When the entry was created.
75
+ * The datetime the entry was created.
76
76
  */
77
77
  created_at: string | null;
78
78
 
@@ -103,7 +103,7 @@ export namespace EntryListResponse {
103
103
  */
104
104
  export interface Plan {
105
105
  /**
106
- * The internal ID of the plan.
106
+ * The unique identifier for the plan.
107
107
  */
108
108
  id: string;
109
109
  }
@@ -113,7 +113,7 @@ export namespace EntryListResponse {
113
113
  */
114
114
  export interface Product {
115
115
  /**
116
- * The internal ID of the public product.
116
+ * The unique identifier for the product.
117
117
  */
118
118
  id: string;
119
119
 
@@ -128,7 +128,7 @@ export namespace EntryListResponse {
128
128
  */
129
129
  export interface User {
130
130
  /**
131
- * The internal ID of the user.
131
+ * The unique identifier for the user.
132
132
  */
133
133
  id: string;
134
134
 
@@ -170,11 +170,12 @@ export class Experiences extends APIResource {
170
170
  export type ExperienceListResponsesCursorPage = CursorPage<ExperienceListResponse>;
171
171
 
172
172
  /**
173
- * An object representing an experience belonging to a company.
173
+ * An experience is a feature or content module within a product, such as a chat,
174
+ * course, or app.
174
175
  */
175
176
  export interface ExperienceListResponse {
176
177
  /**
177
- * The unique ID representing this experience
178
+ * The unique identifier for the experience.
178
179
  */
179
180
  id: string;
180
181
 
@@ -189,7 +190,7 @@ export interface ExperienceListResponse {
189
190
  company: ExperienceListResponse.Company;
190
191
 
191
192
  /**
192
- * The timestamp of when this experience was created.
193
+ * The datetime the experience was created.
193
194
  */
194
195
  created_at: string;
195
196
 
@@ -220,7 +221,7 @@ export namespace ExperienceListResponse {
220
221
  */
221
222
  export interface App {
222
223
  /**
223
- * The ID of the app
224
+ * The unique identifier for the app.
224
225
  */
225
226
  id: string;
226
227
 
@@ -255,7 +256,7 @@ export namespace ExperienceListResponse {
255
256
  */
256
257
  export interface Company {
257
258
  /**
258
- * The ID (tag) of the company.
259
+ * The unique identifier for the company.
259
260
  */
260
261
  id: string;
261
262
 
@@ -84,12 +84,12 @@ export type FeeMarkupType =
84
84
  */
85
85
  export interface FeeMarkupCreateResponse {
86
86
  /**
87
- * The unique identifier of the fee markup.
87
+ * The unique identifier for the fee markup.
88
88
  */
89
89
  id: string;
90
90
 
91
91
  /**
92
- * When this fee markup was created.
92
+ * The datetime the fee markup was created.
93
93
  */
94
94
  created_at: string;
95
95
 
@@ -114,7 +114,7 @@ export interface FeeMarkupCreateResponse {
114
114
  percentage_fee: number | null;
115
115
 
116
116
  /**
117
- * When this fee markup was last updated.
117
+ * The datetime the fee markup was last updated.
118
118
  */
119
119
  updated_at: string;
120
120
  }
@@ -124,12 +124,12 @@ export interface FeeMarkupCreateResponse {
124
124
  */
125
125
  export interface FeeMarkupListResponse {
126
126
  /**
127
- * The unique identifier of the fee markup.
127
+ * The unique identifier for the fee markup.
128
128
  */
129
129
  id: string;
130
130
 
131
131
  /**
132
- * When this fee markup was created.
132
+ * The datetime the fee markup was created.
133
133
  */
134
134
  created_at: string;
135
135
 
@@ -154,7 +154,7 @@ export interface FeeMarkupListResponse {
154
154
  percentage_fee: number | null;
155
155
 
156
156
  /**
157
- * When this fee markup was last updated.
157
+ * The datetime the fee markup was last updated.
158
158
  */
159
159
  updated_at: string;
160
160
  }
@@ -46,7 +46,7 @@ export type UploadStatus = 'pending' | 'processing' | 'ready' | 'failed';
46
46
  */
47
47
  export interface FileCreateResponse {
48
48
  /**
49
- * The ID of the file
49
+ * The unique identifier for the file.
50
50
  */
51
51
  id: string;
52
52
 
@@ -91,7 +91,7 @@ export interface FileCreateResponse {
91
91
  */
92
92
  export interface FileRetrieveResponse {
93
93
  /**
94
- * The ID of the file
94
+ * The unique identifier for the file.
95
95
  */
96
96
  id: string;
97
97
 
@@ -95,7 +95,11 @@ export type ForumPostVisibilityType = 'members_only' | 'globally_visible';
95
95
  */
96
96
  export interface ForumPostListResponse {
97
97
  /**
98
- * The unique identifier of the resource.
98
+ * Represents a unique identifier that is Base64 obfuscated. It is often used to
99
+ * refetch an object or as key for a cache. The ID type appears in a JSON response
100
+ * as a String; however, it is not intended to be human-readable. When expected as
101
+ * an input type, any string (such as `"VXNlci0xMA=="`) or integer (such as `4`)
102
+ * input value will be accepted as an ID.
99
103
  */
100
104
  id: string;
101
105
 
@@ -166,7 +170,7 @@ export namespace ForumPostListResponse {
166
170
  */
167
171
  export interface User {
168
172
  /**
169
- * The internal ID of the user.
173
+ * The unique identifier for the user.
170
174
  */
171
175
  id: string;
172
176
 
@@ -213,8 +217,8 @@ export interface ForumPostCreateParams {
213
217
  parent_id?: string | null;
214
218
 
215
219
  /**
216
- * The amount to paywall this post by. A paywalled post requires the user to
217
- * purchase it in order to view its content.
220
+ * The price in paywall_currency to unlock this post (e.g., 5.00 for $5.00). If
221
+ * set, users must purchase access to view the post content.
218
222
  */
219
223
  paywall_amount?: number | null;
220
224
 
@@ -87,7 +87,7 @@ export namespace ForumListResponse {
87
87
  */
88
88
  export interface Experience {
89
89
  /**
90
- * The unique ID representing this experience
90
+ * The unique identifier for the experience.
91
91
  */
92
92
  id: string;
93
93
 
@@ -366,9 +366,10 @@ export {
366
366
  } from './transfers';
367
367
  export {
368
368
  Users,
369
- type UserRetrieveResponse,
369
+ type User,
370
370
  type UserCheckAccessResponse,
371
371
  type UserCheckAccessParams,
372
+ type UserUpdateProfileParams,
372
373
  } from './users';
373
374
  export {
374
375
  Verifications,
@@ -150,7 +150,7 @@ export declare namespace InvoiceCreateParams {
150
150
  */
151
151
  export interface Plan {
152
152
  /**
153
- * The interval at which the plan charges (renewal plans).
153
+ * The interval in days at which the plan charges (renewal plans).
154
154
  */
155
155
  billing_period?: number | null;
156
156
 
@@ -165,14 +165,15 @@ export declare namespace InvoiceCreateParams {
165
165
  description?: string | null;
166
166
 
167
167
  /**
168
- * The interval at which the plan charges (expiration plans).
168
+ * The number of days until the membership expires and revokes access (expiration
169
+ * plans). For example, 365 for a one-year access period.
169
170
  */
170
171
  expiration_days?: number | null;
171
172
 
172
173
  /**
173
174
  * An additional amount charged upon first purchase. Use only if a one time payment
174
175
  * OR you want to charge an additional amount on top of the renewal price. Provided
175
- * as a number in dollars. Eg: 10.43 for $10.43
176
+ * as a number in the specified currency. Eg: 10.43 for $10.43
176
177
  */
177
178
  initial_price?: number | null;
178
179
 
@@ -193,7 +194,7 @@ export declare namespace InvoiceCreateParams {
193
194
 
194
195
  /**
195
196
  * The amount the customer is charged every billing period. Use only if a recurring
196
- * payment. Provided as a number in dollars. Eg: 10.43 for $10.43
197
+ * payment. Provided as a number in the specified currency. Eg: 10.43 for $10.43
197
198
  */
198
199
  renewal_price?: number | null;
199
200
 
@@ -208,7 +209,8 @@ export declare namespace InvoiceCreateParams {
208
209
  trial_period_days?: number | null;
209
210
 
210
211
  /**
211
- * Limits/doesn't limit the number of units available for purchase.
212
+ * When true, the plan has unlimited stock (stock field is ignored). When false,
213
+ * purchases are limited by the stock field.
212
214
  */
213
215
  unlimited_stock?: boolean | null;
214
216
 
@@ -334,7 +336,7 @@ export declare namespace InvoiceCreateParams {
334
336
  */
335
337
  export interface Plan {
336
338
  /**
337
- * The interval at which the plan charges (renewal plans).
339
+ * The interval in days at which the plan charges (renewal plans).
338
340
  */
339
341
  billing_period?: number | null;
340
342
 
@@ -349,14 +351,15 @@ export declare namespace InvoiceCreateParams {
349
351
  description?: string | null;
350
352
 
351
353
  /**
352
- * The interval at which the plan charges (expiration plans).
354
+ * The number of days until the membership expires and revokes access (expiration
355
+ * plans). For example, 365 for a one-year access period.
353
356
  */
354
357
  expiration_days?: number | null;
355
358
 
356
359
  /**
357
360
  * An additional amount charged upon first purchase. Use only if a one time payment
358
361
  * OR you want to charge an additional amount on top of the renewal price. Provided
359
- * as a number in dollars. Eg: 10.43 for $10.43
362
+ * as a number in the specified currency. Eg: 10.43 for $10.43
360
363
  */
361
364
  initial_price?: number | null;
362
365
 
@@ -377,7 +380,7 @@ export declare namespace InvoiceCreateParams {
377
380
 
378
381
  /**
379
382
  * The amount the customer is charged every billing period. Use only if a recurring
380
- * payment. Provided as a number in dollars. Eg: 10.43 for $10.43
383
+ * payment. Provided as a number in the specified currency. Eg: 10.43 for $10.43
381
384
  */
382
385
  renewal_price?: number | null;
383
386
 
@@ -392,7 +395,8 @@ export declare namespace InvoiceCreateParams {
392
395
  trial_period_days?: number | null;
393
396
 
394
397
  /**
395
- * Limits/doesn't limit the number of units available for purchase.
398
+ * When true, the plan has unlimited stock (stock field is ignored). When false,
399
+ * purchases are limited by the stock field.
396
400
  */
397
401
  unlimited_stock?: boolean | null;
398
402
 
@@ -519,7 +523,7 @@ export declare namespace InvoiceCreateParams {
519
523
  */
520
524
  export interface Plan {
521
525
  /**
522
- * The interval at which the plan charges (renewal plans).
526
+ * The interval in days at which the plan charges (renewal plans).
523
527
  */
524
528
  billing_period?: number | null;
525
529
 
@@ -534,14 +538,15 @@ export declare namespace InvoiceCreateParams {
534
538
  description?: string | null;
535
539
 
536
540
  /**
537
- * The interval at which the plan charges (expiration plans).
541
+ * The number of days until the membership expires and revokes access (expiration
542
+ * plans). For example, 365 for a one-year access period.
538
543
  */
539
544
  expiration_days?: number | null;
540
545
 
541
546
  /**
542
547
  * An additional amount charged upon first purchase. Use only if a one time payment
543
548
  * OR you want to charge an additional amount on top of the renewal price. Provided
544
- * as a number in dollars. Eg: 10.43 for $10.43
549
+ * as a number in the specified currency. Eg: 10.43 for $10.43
545
550
  */
546
551
  initial_price?: number | null;
547
552
 
@@ -562,7 +567,7 @@ export declare namespace InvoiceCreateParams {
562
567
 
563
568
  /**
564
569
  * The amount the customer is charged every billing period. Use only if a recurring
565
- * payment. Provided as a number in dollars. Eg: 10.43 for $10.43
570
+ * payment. Provided as a number in the specified currency. Eg: 10.43 for $10.43
566
571
  */
567
572
  renewal_price?: number | null;
568
573
 
@@ -577,7 +582,8 @@ export declare namespace InvoiceCreateParams {
577
582
  trial_period_days?: number | null;
578
583
 
579
584
  /**
580
- * Limits/doesn't limit the number of units available for purchase.
585
+ * When true, the plan has unlimited stock (stock field is ignored). When false,
586
+ * purchases are limited by the stock field.
581
587
  */
582
588
  unlimited_stock?: boolean | null;
583
589
 
@@ -687,7 +693,7 @@ export declare namespace InvoiceCreateParams {
687
693
  */
688
694
  export interface Plan {
689
695
  /**
690
- * The interval at which the plan charges (renewal plans).
696
+ * The interval in days at which the plan charges (renewal plans).
691
697
  */
692
698
  billing_period?: number | null;
693
699
 
@@ -702,14 +708,15 @@ export declare namespace InvoiceCreateParams {
702
708
  description?: string | null;
703
709
 
704
710
  /**
705
- * The interval at which the plan charges (expiration plans).
711
+ * The number of days until the membership expires and revokes access (expiration
712
+ * plans). For example, 365 for a one-year access period.
706
713
  */
707
714
  expiration_days?: number | null;
708
715
 
709
716
  /**
710
717
  * An additional amount charged upon first purchase. Use only if a one time payment
711
718
  * OR you want to charge an additional amount on top of the renewal price. Provided
712
- * as a number in dollars. Eg: 10.43 for $10.43
719
+ * as a number in the specified currency. Eg: 10.43 for $10.43
713
720
  */
714
721
  initial_price?: number | null;
715
722
 
@@ -730,7 +737,7 @@ export declare namespace InvoiceCreateParams {
730
737
 
731
738
  /**
732
739
  * The amount the customer is charged every billing period. Use only if a recurring
733
- * payment. Provided as a number in dollars. Eg: 10.43 for $10.43
740
+ * payment. Provided as a number in the specified currency. Eg: 10.43 for $10.43
734
741
  */
735
742
  renewal_price?: number | null;
736
743
 
@@ -745,7 +752,8 @@ export declare namespace InvoiceCreateParams {
745
752
  trial_period_days?: number | null;
746
753
 
747
754
  /**
748
- * Limits/doesn't limit the number of units available for purchase.
755
+ * When true, the plan has unlimited stock (stock field is ignored). When false,
756
+ * purchases are limited by the stock field.
749
757
  */
750
758
  unlimited_stock?: boolean | null;
751
759
 
@@ -109,12 +109,12 @@ export type LeadListResponsesCursorPage = CursorPage<LeadListResponse>;
109
109
  */
110
110
  export interface Lead {
111
111
  /**
112
- * The ID of the lead.
112
+ * The unique identifier for the lead.
113
113
  */
114
114
  id: string;
115
115
 
116
116
  /**
117
- * The timestamp of when the lead was created.
117
+ * The datetime the lead was created.
118
118
  */
119
119
  created_at: string;
120
120
 
@@ -139,7 +139,7 @@ export interface Lead {
139
139
  referrer: string | null;
140
140
 
141
141
  /**
142
- * The timestamp of when the lead was last updated.
142
+ * The datetime the lead was last updated.
143
143
  */
144
144
  updated_at: string;
145
145
 
@@ -155,7 +155,7 @@ export namespace Lead {
155
155
  */
156
156
  export interface Member {
157
157
  /**
158
- * The ID of the member
158
+ * The unique identifier for the company member.
159
159
  */
160
160
  id: string;
161
161
  }
@@ -165,7 +165,7 @@ export namespace Lead {
165
165
  */
166
166
  export interface Product {
167
167
  /**
168
- * The internal ID of the public product.
168
+ * The unique identifier for the product.
169
169
  */
170
170
  id: string;
171
171
 
@@ -180,7 +180,7 @@ export namespace Lead {
180
180
  */
181
181
  export interface User {
182
182
  /**
183
- * The internal ID of the user.
183
+ * The unique identifier for the user.
184
184
  */
185
185
  id: string;
186
186
 
@@ -206,12 +206,12 @@ export namespace Lead {
206
206
  */
207
207
  export interface LeadListResponse {
208
208
  /**
209
- * The ID of the lead.
209
+ * The unique identifier for the lead.
210
210
  */
211
211
  id: string;
212
212
 
213
213
  /**
214
- * The timestamp of when the lead was created.
214
+ * The datetime the lead was created.
215
215
  */
216
216
  created_at: string;
217
217
 
@@ -236,7 +236,7 @@ export interface LeadListResponse {
236
236
  referrer: string | null;
237
237
 
238
238
  /**
239
- * The timestamp of when the lead was last updated.
239
+ * The datetime the lead was last updated.
240
240
  */
241
241
  updated_at: string;
242
242
 
@@ -252,7 +252,7 @@ export namespace LeadListResponse {
252
252
  */
253
253
  export interface Member {
254
254
  /**
255
- * The ID of the member
255
+ * The unique identifier for the company member.
256
256
  */
257
257
  id: string;
258
258
  }
@@ -262,7 +262,7 @@ export namespace LeadListResponse {
262
262
  */
263
263
  export interface Product {
264
264
  /**
265
- * The internal ID of the public product.
265
+ * The unique identifier for the product.
266
266
  */
267
267
  id: string;
268
268
 
@@ -277,7 +277,7 @@ export namespace LeadListResponse {
277
277
  */
278
278
  export interface User {
279
279
  /**
280
- * The internal ID of the user.
280
+ * The unique identifier for the user.
281
281
  */
282
282
  id: string;
283
283
 
@@ -26,7 +26,7 @@ export class LedgerAccounts extends APIResource {
26
26
  */
27
27
  export interface LedgerAccountRetrieveResponse {
28
28
  /**
29
- * The ID of the LedgerAccount.
29
+ * The unique identifier for the ledger account.
30
30
  */
31
31
  id: string;
32
32
 
@@ -88,11 +88,12 @@ export namespace LedgerAccountRetrieveResponse {
88
88
  }
89
89
 
90
90
  /**
91
- * An object representing a (sanitized) user of the site.
91
+ * A user account on Whop. Contains profile information, identity details, and
92
+ * social connections.
92
93
  */
93
94
  export interface User {
94
95
  /**
95
- * The internal ID of the user.
96
+ * The unique identifier for the user.
96
97
  */
97
98
  id: string;
98
99
 
@@ -113,11 +114,12 @@ export namespace LedgerAccountRetrieveResponse {
113
114
  }
114
115
 
115
116
  /**
116
- * An object representing a (sanitized) company.
117
+ * A company is a seller on Whop. Companies own products, manage members, and
118
+ * receive payouts.
117
119
  */
118
120
  export interface Company {
119
121
  /**
120
- * The ID (tag) of the company.
122
+ * The unique identifier for the company.
121
123
  */
122
124
  id: string;
123
125
 
@@ -142,7 +144,7 @@ export namespace LedgerAccountRetrieveResponse {
142
144
  */
143
145
  export interface PayoutAccountDetails {
144
146
  /**
145
- * Unique identifier for the object
147
+ * The unique identifier for the payout account.
146
148
  */
147
149
  id: string;
148
150
 
@@ -244,7 +246,7 @@ export namespace LedgerAccountRetrieveResponse {
244
246
  */
245
247
  export interface LatestVerification {
246
248
  /**
247
- * A unique identifier for the verification.
249
+ * The unique identifier for the verification.
248
250
  */
249
251
  id: string;
250
252
 
@@ -47,7 +47,7 @@ export type MemberListResponsesCursorPage = CursorPage<MemberListResponse>;
47
47
  */
48
48
  export interface MemberRetrieveResponse {
49
49
  /**
50
- * The ID of the member
50
+ * The unique identifier for the company member.
51
51
  */
52
52
  id: string;
53
53
 
@@ -70,7 +70,7 @@ export interface MemberRetrieveResponse {
70
70
  company_token_balance: number;
71
71
 
72
72
  /**
73
- * When the member was created
73
+ * The datetime the company member was created.
74
74
  */
75
75
  created_at: string;
76
76
 
@@ -100,7 +100,7 @@ export interface MemberRetrieveResponse {
100
100
  status: Shared.MemberStatuses;
101
101
 
102
102
  /**
103
- * The timestamp of when this member was last updated
103
+ * The datetime the company member was last updated.
104
104
  */
105
105
  updated_at: string;
106
106
 
@@ -121,7 +121,7 @@ export namespace MemberRetrieveResponse {
121
121
  */
122
122
  export interface Company {
123
123
  /**
124
- * The ID of the company
124
+ * The unique identifier for the company.
125
125
  */
126
126
  id: string;
127
127
 
@@ -141,7 +141,7 @@ export namespace MemberRetrieveResponse {
141
141
  */
142
142
  export interface User {
143
143
  /**
144
- * The internal ID of the user account.
144
+ * The unique identifier for the company member user.
145
145
  */
146
146
  id: string;
147
147
 
@@ -169,7 +169,7 @@ export namespace MemberRetrieveResponse {
169
169
  */
170
170
  export interface MemberListResponse {
171
171
  /**
172
- * The ID of the member
172
+ * The unique identifier for the company member.
173
173
  */
174
174
  id: string;
175
175
 
@@ -187,7 +187,7 @@ export interface MemberListResponse {
187
187
  company_token_balance: number;
188
188
 
189
189
  /**
190
- * When the member was created
190
+ * The datetime the company member was created.
191
191
  */
192
192
  created_at: string;
193
193
 
@@ -217,7 +217,7 @@ export interface MemberListResponse {
217
217
  status: Shared.MemberStatuses;
218
218
 
219
219
  /**
220
- * The timestamp of when this member was last updated
220
+ * The datetime the company member was last updated.
221
221
  */
222
222
  updated_at: string;
223
223
 
@@ -238,7 +238,7 @@ export namespace MemberListResponse {
238
238
  */
239
239
  export interface User {
240
240
  /**
241
- * The internal ID of the user account.
241
+ * The unique identifier for the company member user.
242
242
  */
243
243
  id: string;
244
244