@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
@@ -9,11 +9,12 @@ import { path } from '../internal/utils/path';
9
9
 
10
10
  export class Companies extends APIResource {
11
11
  /**
12
- * Create a new connected account for your platform
12
+ * Create a new company. Pass parent_company_id to create a sub-company under a
13
+ * platform, or omit it to create a company for the current user.
13
14
  *
14
15
  * Required permissions:
15
16
  *
16
- * - `company:create_child`
17
+ * - `company:create`
17
18
  * - `company:basic:read`
18
19
  */
19
20
  create(body: CompanyCreateParams, options?: RequestOptions): APIPromise<Shared.Company> {
@@ -49,14 +50,16 @@ export class Companies extends APIResource {
49
50
  }
50
51
 
51
52
  /**
52
- * Lists companies the current user has access to
53
+ * Lists companies. When parent_company_id is provided, lists connected accounts
54
+ * under that company. When omitted, lists companies the current user has access
55
+ * to.
53
56
  *
54
57
  * Required permissions:
55
58
  *
56
59
  * - `company:basic:read`
57
60
  */
58
61
  list(
59
- query: CompanyListParams,
62
+ query: CompanyListParams | null | undefined = {},
60
63
  options?: RequestOptions,
61
64
  ): PagePromise<CompanyListResponsesCursorPage, CompanyListResponse> {
62
65
  return this._client.getAPIList('/companies', CursorPage<CompanyListResponse>, { query, ...options });
@@ -66,11 +69,12 @@ export class Companies extends APIResource {
66
69
  export type CompanyListResponsesCursorPage = CursorPage<CompanyListResponse>;
67
70
 
68
71
  /**
69
- * An object representing a (sanitized) company.
72
+ * A company is a seller on Whop. Companies own products, manage members, and
73
+ * receive payouts.
70
74
  */
71
75
  export interface CompanyListResponse {
72
76
  /**
73
- * The ID (tag) of the company.
77
+ * The unique identifier for the company.
74
78
  */
75
79
  id: string;
76
80
 
@@ -80,7 +84,7 @@ export interface CompanyListResponse {
80
84
  business_type: Shared.BusinessTypes | null;
81
85
 
82
86
  /**
83
- * When the company was created (signed up)
87
+ * The datetime the company was created.
84
88
  */
85
89
  created_at: string;
86
90
 
@@ -136,7 +140,7 @@ export interface CompanyListResponse {
136
140
  title: string;
137
141
 
138
142
  /**
139
- * The time the company was last updated.
143
+ * The datetime the company was last updated.
140
144
  */
141
145
  updated_at: string;
142
146
 
@@ -163,7 +167,7 @@ export namespace CompanyListResponse {
163
167
  */
164
168
  export interface OwnerUser {
165
169
  /**
166
- * The internal ID of the user.
170
+ * The unique identifier for the user.
167
171
  */
168
172
  id: string;
169
173
 
@@ -181,24 +185,25 @@ export namespace CompanyListResponse {
181
185
 
182
186
  export interface CompanyCreateParams {
183
187
  /**
184
- * The email of the user who the company will belong to.
188
+ * The name of the company being created.
185
189
  */
186
- email: string;
190
+ title: string;
187
191
 
188
192
  /**
189
- * The company ID of the platform creating this company.
193
+ * The different business types a company can be.
190
194
  */
191
- parent_company_id: string;
195
+ business_type?: Shared.BusinessTypes | null;
192
196
 
193
197
  /**
194
- * The name of the company being created.
198
+ * A description of what the company offers or does.
195
199
  */
196
- title: string;
200
+ description?: string | null;
197
201
 
198
202
  /**
199
- * The different business types a company can be.
203
+ * The email of the user who the sub-company will belong to. Required when
204
+ * parent_company_id is provided.
200
205
  */
201
- business_type?: Shared.BusinessTypes | null;
206
+ email?: string | null;
202
207
 
203
208
  /**
204
209
  * The different industry types a company can be in.
@@ -211,15 +216,19 @@ export interface CompanyCreateParams {
211
216
  logo?: CompanyCreateParams.Logo | null;
212
217
 
213
218
  /**
214
- * Additional metadata for the account
219
+ * Additional metadata for the company
215
220
  */
216
221
  metadata?: { [key: string]: unknown } | null;
217
222
 
223
+ /**
224
+ * The company ID of the platform creating this sub-company. If omitted, the
225
+ * company is created for the current user.
226
+ */
227
+ parent_company_id?: string | null;
228
+
218
229
  /**
219
230
  * Whether Whop sends transactional emails to customers on behalf of this company.
220
- * Includes: order confirmations, payment failures, refund notifications, upcoming
221
- * renewals, and membership cancelations/expirations. When disabled, the platform
222
- * is responsible for handling these communications. This is defaulted to true.
231
+ * Only used when parent_company_id is provided.
223
232
  */
224
233
  send_customer_emails?: boolean | null;
225
234
  }
@@ -247,6 +256,11 @@ export interface CompanyUpdateParams {
247
256
  */
248
257
  business_type?: Shared.BusinessTypes | null;
249
258
 
259
+ /**
260
+ * A description of what the company offers or does.
261
+ */
262
+ description?: string | null;
263
+
250
264
  /**
251
265
  * The different industry types a company can be in.
252
266
  */
@@ -294,11 +308,6 @@ export namespace CompanyUpdateParams {
294
308
  }
295
309
 
296
310
  export interface CompanyListParams extends CursorPageParams {
297
- /**
298
- * The ID of the parent company to list connected accounts for
299
- */
300
- parent_company_id: string;
301
-
302
311
  /**
303
312
  * Returns the elements in the list that come before the specified cursor.
304
313
  */
@@ -328,6 +337,12 @@ export interface CompanyListParams extends CursorPageParams {
328
337
  * Returns the last _n_ elements from the list.
329
338
  */
330
339
  last?: number | null;
340
+
341
+ /**
342
+ * The ID of the parent company to list connected accounts for. Omit to list the
343
+ * current user's own companies.
344
+ */
345
+ parent_company_id?: string | null;
331
346
  }
332
347
 
333
348
  export declare namespace Companies {
@@ -81,7 +81,7 @@ export type BotTokenTransactionTypes = 'add' | 'subtract' | 'transfer';
81
81
  */
82
82
  export interface CompanyTokenTransaction {
83
83
  /**
84
- * The ID of the transaction
84
+ * The unique identifier for the company token transaction.
85
85
  */
86
86
  id: string;
87
87
 
@@ -96,7 +96,7 @@ export interface CompanyTokenTransaction {
96
96
  company: CompanyTokenTransaction.Company;
97
97
 
98
98
  /**
99
- * When the transaction was created
99
+ * The datetime the company token transaction was created.
100
100
  */
101
101
  created_at: string;
102
102
 
@@ -137,7 +137,7 @@ export namespace CompanyTokenTransaction {
137
137
  */
138
138
  export interface Company {
139
139
  /**
140
- * The ID of the company
140
+ * The unique identifier for the company.
141
141
  */
142
142
  id: string;
143
143
 
@@ -157,7 +157,7 @@ export namespace CompanyTokenTransaction {
157
157
  */
158
158
  export interface Member {
159
159
  /**
160
- * The ID of the member
160
+ * The unique identifier for the company member.
161
161
  */
162
162
  id: string;
163
163
  }
@@ -167,7 +167,7 @@ export namespace CompanyTokenTransaction {
167
167
  */
168
168
  export interface User {
169
169
  /**
170
- * The internal ID of the user.
170
+ * The unique identifier for the user.
171
171
  */
172
172
  id: string;
173
173
 
@@ -188,7 +188,7 @@ export namespace CompanyTokenTransaction {
188
188
  */
189
189
  export interface CompanyTokenTransactionListResponse {
190
190
  /**
191
- * The ID of the transaction
191
+ * The unique identifier for the company token transaction.
192
192
  */
193
193
  id: string;
194
194
 
@@ -203,7 +203,7 @@ export interface CompanyTokenTransactionListResponse {
203
203
  company: CompanyTokenTransactionListResponse.Company;
204
204
 
205
205
  /**
206
- * When the transaction was created
206
+ * The datetime the company token transaction was created.
207
207
  */
208
208
  created_at: string;
209
209
 
@@ -244,7 +244,7 @@ export namespace CompanyTokenTransactionListResponse {
244
244
  */
245
245
  export interface Company {
246
246
  /**
247
- * The ID of the company
247
+ * The unique identifier for the company.
248
248
  */
249
249
  id: string;
250
250
 
@@ -264,7 +264,7 @@ export namespace CompanyTokenTransactionListResponse {
264
264
  */
265
265
  export interface Member {
266
266
  /**
267
- * The ID of the member
267
+ * The unique identifier for the company member.
268
268
  */
269
269
  id: string;
270
270
  }
@@ -274,7 +274,7 @@ export namespace CompanyTokenTransactionListResponse {
274
274
  */
275
275
  export interface User {
276
276
  /**
277
- * The internal ID of the user.
277
+ * The unique identifier for the user.
278
278
  */
279
279
  id: string;
280
280
 
@@ -115,7 +115,7 @@ export type CourseChapterListResponsesCursorPage = CursorPage<CourseChapterListR
115
115
  */
116
116
  export interface CourseChapter {
117
117
  /**
118
- * The ID of the chapter. Looks like chap_XXX
118
+ * The unique identifier for the chapter.
119
119
  */
120
120
  id: string;
121
121
 
@@ -141,7 +141,7 @@ export namespace CourseChapter {
141
141
  */
142
142
  export interface Lesson {
143
143
  /**
144
- * The ID of the lesson
144
+ * The unique identifier for the lesson.
145
145
  */
146
146
  id: string;
147
147
 
@@ -162,7 +162,7 @@ export namespace CourseChapter {
162
162
  */
163
163
  export interface CourseChapterListResponse {
164
164
  /**
165
- * The ID of the chapter. Looks like chap_XXX
165
+ * The unique identifier for the chapter.
166
166
  */
167
167
  id: string;
168
168
 
@@ -178,7 +178,7 @@ export type EmbedType = 'youtube' | 'loom';
178
178
  */
179
179
  export interface Lesson {
180
180
  /**
181
- * The ID of the lesson
181
+ * The unique identifier for the lesson.
182
182
  */
183
183
  id: string;
184
184
 
@@ -198,7 +198,7 @@ export interface Lesson {
198
198
  content: string | null;
199
199
 
200
200
  /**
201
- * The timestamp of when the lesson was created
201
+ * The datetime the lesson was created.
202
202
  */
203
203
  created_at: string;
204
204
 
@@ -260,7 +260,7 @@ export namespace Lesson {
260
260
  */
261
261
  export interface AssessmentQuestion {
262
262
  /**
263
- * The ID of the assessment question
263
+ * The unique identifier for the assessment question.
264
264
  */
265
265
  id: string;
266
266
 
@@ -271,7 +271,7 @@ export namespace Lesson {
271
271
  correct_answer: string | null;
272
272
 
273
273
  /**
274
- * When the question was created
274
+ * The datetime the assessment question was created.
275
275
  */
276
276
  created_at: string;
277
277
 
@@ -333,7 +333,7 @@ export namespace Lesson {
333
333
  */
334
334
  export interface Option {
335
335
  /**
336
- * The ID of the assessment question option
336
+ * The unique identifier for the assessment question option.
337
337
  */
338
338
  id: string;
339
339
 
@@ -423,7 +423,7 @@ export namespace Lesson {
423
423
  */
424
424
  export interface VideoAsset {
425
425
  /**
426
- * The ID of the Mux asset
426
+ * The unique identifier for the mux asset.
427
427
  */
428
428
  id: string;
429
429
 
@@ -438,7 +438,7 @@ export namespace Lesson {
438
438
  audio_only: boolean;
439
439
 
440
440
  /**
441
- * The time at which the Mux asset was created
441
+ * The datetime the mux asset was created.
442
442
  */
443
443
  created_at: string;
444
444
 
@@ -483,7 +483,7 @@ export namespace Lesson {
483
483
  status: 'uploading' | 'created' | 'ready';
484
484
 
485
485
  /**
486
- * The time at which the Mux asset was last updated
486
+ * The datetime the mux asset was last updated.
487
487
  */
488
488
  updated_at: string;
489
489
  }
@@ -505,7 +505,7 @@ export type LessonVisibilities = 'visible' | 'hidden';
505
505
  */
506
506
  export interface CourseLessonListResponse {
507
507
  /**
508
- * The ID of the lesson
508
+ * The unique identifier for the lesson.
509
509
  */
510
510
  id: string;
511
511
 
@@ -515,7 +515,7 @@ export interface CourseLessonListResponse {
515
515
  content: string | null;
516
516
 
517
517
  /**
518
- * The timestamp of when the lesson was created
518
+ * The datetime the lesson was created.
519
519
  */
520
520
  created_at: string;
521
521
 
@@ -594,12 +594,12 @@ export type CourseLessonStartResponse = boolean;
594
594
  */
595
595
  export interface CourseLessonSubmitAssessmentResponse {
596
596
  /**
597
- * The ID of the assessment result
597
+ * The unique identifier for the assessment result.
598
598
  */
599
599
  id: string;
600
600
 
601
601
  /**
602
- * When the assessment was taken
602
+ * The datetime the assessment result was created.
603
603
  */
604
604
  created_at: string;
605
605
 
@@ -639,7 +639,7 @@ export interface CourseLessonSubmitAssessmentResponse {
639
639
  score_percent: number;
640
640
 
641
641
  /**
642
- * When the assessment result was last updated
642
+ * The datetime the assessment result was last updated.
643
643
  */
644
644
  updated_at: string;
645
645
 
@@ -655,7 +655,7 @@ export namespace CourseLessonSubmitAssessmentResponse {
655
655
  */
656
656
  export interface Lesson {
657
657
  /**
658
- * The ID of the lesson
658
+ * The unique identifier for the lesson.
659
659
  */
660
660
  id: string;
661
661
 
@@ -670,7 +670,7 @@ export namespace CourseLessonSubmitAssessmentResponse {
670
670
  */
671
671
  export interface User {
672
672
  /**
673
- * The internal ID of the user.
673
+ * The unique identifier for the user.
674
674
  */
675
675
  id: string;
676
676
 
@@ -45,7 +45,7 @@ export type CourseStudentListResponsesCursorPage = CursorPage<CourseStudentListR
45
45
  */
46
46
  export interface CourseStudentRetrieveResponse {
47
47
  /**
48
- * The ID of the course student. Looks like crsi_XXX
48
+ * The unique identifier for the course student type.
49
49
  */
50
50
  id: string;
51
51
 
@@ -91,7 +91,7 @@ export namespace CourseStudentRetrieveResponse {
91
91
  */
92
92
  export interface Course {
93
93
  /**
94
- * The ID of the course. Looks like cors_XXX
94
+ * The unique identifier for the course.
95
95
  */
96
96
  id: string;
97
97
 
@@ -112,7 +112,7 @@ export namespace CourseStudentRetrieveResponse {
112
112
  */
113
113
  export interface Experience {
114
114
  /**
115
- * The unique ID representing this experience
115
+ * The unique identifier for the experience.
116
116
  */
117
117
  id: string;
118
118
  }
@@ -123,7 +123,7 @@ export namespace CourseStudentRetrieveResponse {
123
123
  */
124
124
  export interface User {
125
125
  /**
126
- * The internal ID of the user.
126
+ * The unique identifier for the user.
127
127
  */
128
128
  id: string;
129
129
 
@@ -144,7 +144,7 @@ export namespace CourseStudentRetrieveResponse {
144
144
  */
145
145
  export interface CourseStudentListResponse {
146
146
  /**
147
- * The ID of the course student. Looks like crsi_XXX
147
+ * The unique identifier for the course student type.
148
148
  */
149
149
  id: string;
150
150
 
@@ -185,7 +185,7 @@ export namespace CourseStudentListResponse {
185
185
  */
186
186
  export interface User {
187
187
  /**
188
- * The internal ID of the user.
188
+ * The unique identifier for the user.
189
189
  */
190
190
  id: string;
191
191
 
@@ -115,7 +115,7 @@ export type CourseListResponsesCursorPage = CursorPage<CourseListResponse>;
115
115
  */
116
116
  export interface Course {
117
117
  /**
118
- * The ID of the course. Looks like cors_XXX
118
+ * The unique identifier for the course.
119
119
  */
120
120
  id: string;
121
121
 
@@ -136,7 +136,7 @@ export interface Course {
136
136
  cover_image: string | null;
137
137
 
138
138
  /**
139
- * The timestamp of when the course was created
139
+ * The datetime the course was created.
140
140
  */
141
141
  created_at: string;
142
142
 
@@ -178,7 +178,7 @@ export interface Course {
178
178
  title: string | null;
179
179
 
180
180
  /**
181
- * The timestamp of when the course was last updated
181
+ * The datetime the course was last updated.
182
182
  */
183
183
  updated_at: string;
184
184
 
@@ -195,7 +195,7 @@ export namespace Course {
195
195
  */
196
196
  export interface Chapter {
197
197
  /**
198
- * The ID of the chapter. Looks like chap_XXX
198
+ * The unique identifier for the chapter.
199
199
  */
200
200
  id: string;
201
201
 
@@ -221,7 +221,7 @@ export namespace Course {
221
221
  */
222
222
  export interface Lesson {
223
223
  /**
224
- * The ID of the lesson
224
+ * The unique identifier for the lesson.
225
225
  */
226
226
  id: string;
227
227
 
@@ -356,7 +356,7 @@ export type Languages =
356
356
  */
357
357
  export interface CourseListResponse {
358
358
  /**
359
- * The ID of the course. Looks like cors_XXX
359
+ * The unique identifier for the course.
360
360
  */
361
361
  id: string;
362
362
 
@@ -372,7 +372,7 @@ export interface CourseListResponse {
372
372
  cover_image: string | null;
373
373
 
374
374
  /**
375
- * The timestamp of when the course was created
375
+ * The datetime the course was created.
376
376
  */
377
377
  created_at: string;
378
378
 
@@ -414,7 +414,7 @@ export interface CourseListResponse {
414
414
  title: string | null;
415
415
 
416
416
  /**
417
- * The timestamp of when the course was last updated
417
+ * The datetime the course was last updated.
418
418
  */
419
419
  updated_at: string;
420
420
 
@@ -90,11 +90,12 @@ export class Disputes extends APIResource {
90
90
  export type DisputeListResponsesCursorPage = CursorPage<DisputeListResponse>;
91
91
 
92
92
  /**
93
- * An object representing a dispute against a company.
93
+ * A dispute is a chargeback or payment challenge filed against a company,
94
+ * including evidence and response status.
94
95
  */
95
96
  export interface Dispute {
96
97
  /**
97
- * The internal ID of the dispute.
98
+ * The unique identifier for the dispute.
98
99
  */
99
100
  id: string;
100
101
 
@@ -129,7 +130,7 @@ export interface Dispute {
129
130
  company: Dispute.Company | null;
130
131
 
131
132
  /**
132
- * When it was made.
133
+ * The datetime the dispute was created.
133
134
  */
134
135
  created_at: string | null;
135
136
 
@@ -265,7 +266,7 @@ export namespace Dispute {
265
266
  */
266
267
  export interface Company {
267
268
  /**
268
- * The ID of the company
269
+ * The unique identifier for the company.
269
270
  */
270
271
  id: string;
271
272
 
@@ -306,7 +307,7 @@ export namespace Dispute {
306
307
  */
307
308
  export interface Payment {
308
309
  /**
309
- * The payment ID
310
+ * The unique identifier for the payment.
310
311
  */
311
312
  id: string;
312
313
 
@@ -326,7 +327,7 @@ export namespace Dispute {
326
327
  card_last4: string | null;
327
328
 
328
329
  /**
329
- * The datetime the payment was created
330
+ * The datetime the payment was created.
330
331
  */
331
332
  created_at: string;
332
333
 
@@ -387,7 +388,7 @@ export namespace Dispute {
387
388
  */
388
389
  export interface Member {
389
390
  /**
390
- * The ID of the member
391
+ * The unique identifier for the company member.
391
392
  */
392
393
  id: string;
393
394
 
@@ -402,7 +403,7 @@ export namespace Dispute {
402
403
  */
403
404
  export interface Membership {
404
405
  /**
405
- * The internal ID of the membership.
406
+ * The unique identifier for the membership.
406
407
  */
407
408
  id: string;
408
409
 
@@ -417,7 +418,7 @@ export namespace Dispute {
417
418
  */
418
419
  export interface User {
419
420
  /**
420
- * The internal ID of the user.
421
+ * The unique identifier for the user.
421
422
  */
422
423
  id: string;
423
424
 
@@ -443,7 +444,7 @@ export namespace Dispute {
443
444
  */
444
445
  export interface Plan {
445
446
  /**
446
- * The internal ID of the plan.
447
+ * The unique identifier for the plan.
447
448
  */
448
449
  id: string;
449
450
  }
@@ -453,7 +454,7 @@ export namespace Dispute {
453
454
  */
454
455
  export interface Product {
455
456
  /**
456
- * The internal ID of the public product.
457
+ * The unique identifier for the product.
457
458
  */
458
459
  id: string;
459
460
 
@@ -531,11 +532,12 @@ export type DisputeStatuses =
531
532
  | 'other';
532
533
 
533
534
  /**
534
- * An object representing a dispute against a company.
535
+ * A dispute is a chargeback or payment challenge filed against a company,
536
+ * including evidence and response status.
535
537
  */
536
538
  export interface DisputeListResponse {
537
539
  /**
538
- * The internal ID of the dispute.
540
+ * The unique identifier for the dispute.
539
541
  */
540
542
  id: string;
541
543
 
@@ -550,7 +552,7 @@ export interface DisputeListResponse {
550
552
  company: DisputeListResponse.Company | null;
551
553
 
552
554
  /**
553
- * When it was made.
555
+ * The datetime the dispute was created.
554
556
  */
555
557
  created_at: string | null;
556
558
 
@@ -606,7 +608,7 @@ export namespace DisputeListResponse {
606
608
  */
607
609
  export interface Company {
608
610
  /**
609
- * The ID of the company
611
+ * The unique identifier for the company.
610
612
  */
611
613
  id: string;
612
614
 
@@ -621,7 +623,7 @@ export namespace DisputeListResponse {
621
623
  */
622
624
  export interface Payment {
623
625
  /**
624
- * The payment ID
626
+ * The unique identifier for the payment.
625
627
  */
626
628
  id: string;
627
629
  }
@@ -631,7 +633,7 @@ export namespace DisputeListResponse {
631
633
  */
632
634
  export interface Plan {
633
635
  /**
634
- * The internal ID of the plan.
636
+ * The unique identifier for the plan.
635
637
  */
636
638
  id: string;
637
639
  }
@@ -641,7 +643,7 @@ export namespace DisputeListResponse {
641
643
  */
642
644
  export interface Product {
643
645
  /**
644
- * The internal ID of the public product.
646
+ * The unique identifier for the product.
645
647
  */
646
648
  id: string;
647
649