@whop/sdk 0.0.34 → 0.0.36

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 (139) hide show
  1. package/CHANGELOG.md +68 -0
  2. package/client.d.mts +12 -6
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +12 -6
  5. package/client.d.ts.map +1 -1
  6. package/client.js +6 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +7 -1
  9. package/client.mjs.map +1 -1
  10. package/internal/utils/env.js +2 -2
  11. package/internal/utils/env.js.map +1 -1
  12. package/internal/utils/env.mjs +2 -2
  13. package/internal/utils/env.mjs.map +1 -1
  14. package/package.json +1 -1
  15. package/resources/affiliates/affiliates.d.mts +353 -0
  16. package/resources/affiliates/affiliates.d.mts.map +1 -0
  17. package/resources/affiliates/affiliates.d.ts +353 -0
  18. package/resources/affiliates/affiliates.d.ts.map +1 -0
  19. package/resources/affiliates/affiliates.js +112 -0
  20. package/resources/affiliates/affiliates.js.map +1 -0
  21. package/resources/affiliates/affiliates.mjs +107 -0
  22. package/resources/affiliates/affiliates.mjs.map +1 -0
  23. package/resources/affiliates/index.d.mts +3 -0
  24. package/resources/affiliates/index.d.mts.map +1 -0
  25. package/resources/affiliates/index.d.ts +3 -0
  26. package/resources/affiliates/index.d.ts.map +1 -0
  27. package/resources/affiliates/index.js +9 -0
  28. package/resources/affiliates/index.js.map +1 -0
  29. package/resources/affiliates/index.mjs +4 -0
  30. package/resources/affiliates/index.mjs.map +1 -0
  31. package/resources/affiliates/overrides.d.mts +451 -0
  32. package/resources/affiliates/overrides.d.mts.map +1 -0
  33. package/resources/affiliates/overrides.d.ts +451 -0
  34. package/resources/affiliates/overrides.d.ts.map +1 -0
  35. package/resources/affiliates/overrides.js +117 -0
  36. package/resources/affiliates/overrides.js.map +1 -0
  37. package/resources/affiliates/overrides.mjs +113 -0
  38. package/resources/affiliates/overrides.mjs.map +1 -0
  39. package/resources/affiliates.d.mts +2 -0
  40. package/resources/affiliates.d.mts.map +1 -0
  41. package/resources/affiliates.d.ts +2 -0
  42. package/resources/affiliates.d.ts.map +1 -0
  43. package/resources/affiliates.js +6 -0
  44. package/resources/affiliates.js.map +1 -0
  45. package/resources/affiliates.mjs +3 -0
  46. package/resources/affiliates.mjs.map +1 -0
  47. package/resources/ai-chats.d.mts +21 -2
  48. package/resources/ai-chats.d.mts.map +1 -1
  49. package/resources/ai-chats.d.ts +21 -2
  50. package/resources/ai-chats.d.ts.map +1 -1
  51. package/resources/ai-chats.js +2 -1
  52. package/resources/ai-chats.js.map +1 -1
  53. package/resources/ai-chats.mjs +2 -1
  54. package/resources/ai-chats.mjs.map +1 -1
  55. package/resources/apps.d.mts +26 -0
  56. package/resources/apps.d.mts.map +1 -1
  57. package/resources/apps.d.ts +26 -0
  58. package/resources/apps.d.ts.map +1 -1
  59. package/resources/checkout-configurations.d.mts +69 -0
  60. package/resources/checkout-configurations.d.mts.map +1 -1
  61. package/resources/checkout-configurations.d.ts +69 -0
  62. package/resources/checkout-configurations.d.ts.map +1 -1
  63. package/resources/companies.d.mts +19 -0
  64. package/resources/companies.d.mts.map +1 -1
  65. package/resources/companies.d.ts +19 -0
  66. package/resources/companies.d.ts.map +1 -1
  67. package/resources/index.d.mts +4 -3
  68. package/resources/index.d.mts.map +1 -1
  69. package/resources/index.d.ts +4 -3
  70. package/resources/index.d.ts.map +1 -1
  71. package/resources/index.js +4 -2
  72. package/resources/index.js.map +1 -1
  73. package/resources/index.mjs +1 -0
  74. package/resources/index.mjs.map +1 -1
  75. package/resources/invoices.d.mts +179 -345
  76. package/resources/invoices.d.mts.map +1 -1
  77. package/resources/invoices.d.ts +179 -345
  78. package/resources/invoices.d.ts.map +1 -1
  79. package/resources/invoices.js +20 -2
  80. package/resources/invoices.js.map +1 -1
  81. package/resources/invoices.mjs +20 -2
  82. package/resources/invoices.mjs.map +1 -1
  83. package/resources/memberships.d.mts +1 -1
  84. package/resources/memberships.d.mts.map +1 -1
  85. package/resources/memberships.d.ts +1 -1
  86. package/resources/memberships.d.ts.map +1 -1
  87. package/resources/payments.d.mts +21 -2
  88. package/resources/payments.d.mts.map +1 -1
  89. package/resources/payments.d.ts +21 -2
  90. package/resources/payments.d.ts.map +1 -1
  91. package/resources/plans.d.mts +46 -0
  92. package/resources/plans.d.mts.map +1 -1
  93. package/resources/plans.d.ts +46 -0
  94. package/resources/plans.d.ts.map +1 -1
  95. package/resources/products.d.mts +2 -2
  96. package/resources/products.d.ts +2 -2
  97. package/resources/refunds.d.mts +1 -1
  98. package/resources/refunds.d.mts.map +1 -1
  99. package/resources/refunds.d.ts +1 -1
  100. package/resources/refunds.d.ts.map +1 -1
  101. package/resources/setup-intents.d.mts +74 -0
  102. package/resources/setup-intents.d.mts.map +1 -1
  103. package/resources/setup-intents.d.ts +74 -0
  104. package/resources/setup-intents.d.ts.map +1 -1
  105. package/resources/shared.d.mts +54 -5
  106. package/resources/shared.d.mts.map +1 -1
  107. package/resources/shared.d.ts +54 -5
  108. package/resources/shared.d.ts.map +1 -1
  109. package/resources/webhooks.d.mts +653 -3
  110. package/resources/webhooks.d.mts.map +1 -1
  111. package/resources/webhooks.d.ts +653 -3
  112. package/resources/webhooks.d.ts.map +1 -1
  113. package/resources/webhooks.js.map +1 -1
  114. package/resources/webhooks.mjs.map +1 -1
  115. package/src/client.ts +50 -1
  116. package/src/internal/utils/env.ts +2 -2
  117. package/src/resources/affiliates/affiliates.ts +475 -0
  118. package/src/resources/affiliates/index.ts +32 -0
  119. package/src/resources/affiliates/overrides.ts +593 -0
  120. package/src/resources/affiliates.ts +3 -0
  121. package/src/resources/ai-chats.ts +25 -1
  122. package/src/resources/apps.ts +31 -0
  123. package/src/resources/checkout-configurations.ts +81 -0
  124. package/src/resources/companies.ts +23 -0
  125. package/src/resources/index.ts +19 -0
  126. package/src/resources/invoices.ts +316 -397
  127. package/src/resources/memberships.ts +1 -1
  128. package/src/resources/payments.ts +26 -1
  129. package/src/resources/plans.ts +54 -0
  130. package/src/resources/products.ts +2 -2
  131. package/src/resources/refunds.ts +2 -1
  132. package/src/resources/setup-intents.ts +90 -0
  133. package/src/resources/shared.ts +65 -5
  134. package/src/resources/webhooks.ts +818 -0
  135. package/src/version.ts +1 -1
  136. package/version.d.mts +1 -1
  137. package/version.d.ts +1 -1
  138. package/version.js +1 -1
  139. package/version.mjs +1 -1
@@ -0,0 +1,353 @@
1
+ import { APIResource } from "../../core/resource.mjs";
2
+ import * as Shared from "../shared.mjs";
3
+ import * as OverridesAPI from "./overrides.mjs";
4
+ import { AffiliateAppliesToPayments, AffiliateAppliesToProducts, AffiliateOverrideRoles, AffiliatePayoutTypes, AffiliateRevenueBases, OverrideCreateParams, OverrideCreateResponse, OverrideDeleteParams, OverrideDeleteResponse, OverrideListParams, OverrideListResponse, OverrideListResponsesCursorPage, OverrideRetrieveParams, OverrideRetrieveResponse, OverrideUpdateParams, OverrideUpdateResponse, Overrides } from "./overrides.mjs";
5
+ import { APIPromise } from "../../core/api-promise.mjs";
6
+ import { CursorPage, type CursorPageParams, PagePromise } from "../../core/pagination.mjs";
7
+ import { RequestOptions } from "../../internal/request-options.mjs";
8
+ /**
9
+ * Affiliates
10
+ */
11
+ export declare class Affiliates extends APIResource {
12
+ overrides: OverridesAPI.Overrides;
13
+ /**
14
+ * Creates or finds an affiliate for a company and user.
15
+ *
16
+ * Required permissions:
17
+ *
18
+ * - `affiliate:create`
19
+ *
20
+ * @example
21
+ * ```ts
22
+ * const affiliate = await client.affiliates.create({
23
+ * company_id: 'biz_xxxxxxxxxxxxxx',
24
+ * user_identifier: 'user_identifier',
25
+ * });
26
+ * ```
27
+ */
28
+ create(body: AffiliateCreateParams, options?: RequestOptions): APIPromise<Affiliate>;
29
+ /**
30
+ * Retrieves the details of an existing affiliate.
31
+ *
32
+ * Required permissions:
33
+ *
34
+ * - `affiliate:basic:read`
35
+ *
36
+ * @example
37
+ * ```ts
38
+ * const affiliate = await client.affiliates.retrieve(
39
+ * 'aff_xxxxxxxxxxxxxx',
40
+ * );
41
+ * ```
42
+ */
43
+ retrieve(id: string, options?: RequestOptions): APIPromise<Affiliate>;
44
+ /**
45
+ * Returns a paginated list of affiliates for the actor in context, with optional
46
+ * filtering by status, search, and sorting.
47
+ *
48
+ * Required permissions:
49
+ *
50
+ * - `affiliate:basic:read`
51
+ *
52
+ * @example
53
+ * ```ts
54
+ * // Automatically fetches more pages as needed.
55
+ * for await (const affiliateListResponse of client.affiliates.list(
56
+ * { company_id: 'biz_xxxxxxxxxxxxxx' },
57
+ * )) {
58
+ * // ...
59
+ * }
60
+ * ```
61
+ */
62
+ list(query: AffiliateListParams, options?: RequestOptions): PagePromise<AffiliateListResponsesCursorPage, AffiliateListResponse>;
63
+ /**
64
+ * Archives an existing Affiliate
65
+ *
66
+ * Required permissions:
67
+ *
68
+ * - `affiliate:update`
69
+ *
70
+ * @example
71
+ * ```ts
72
+ * const response = await client.affiliates.archive(
73
+ * 'aff_xxxxxxxxxxxxxx',
74
+ * );
75
+ * ```
76
+ */
77
+ archive(id: string, options?: RequestOptions): APIPromise<AffiliateArchiveResponse>;
78
+ /**
79
+ * Unarchives an existing Affiliate
80
+ *
81
+ * Required permissions:
82
+ *
83
+ * - `affiliate:update`
84
+ *
85
+ * @example
86
+ * ```ts
87
+ * const response = await client.affiliates.unarchive(
88
+ * 'aff_xxxxxxxxxxxxxx',
89
+ * );
90
+ * ```
91
+ */
92
+ unarchive(id: string, options?: RequestOptions): APIPromise<AffiliateUnarchiveResponse>;
93
+ }
94
+ export type AffiliateListResponsesCursorPage = CursorPage<AffiliateListResponse>;
95
+ /**
96
+ * An affiliate tracks a user's referral performance and commission earnings for a
97
+ * company, including retention rates, revenue metrics, and payout configurations.
98
+ */
99
+ export interface Affiliate {
100
+ /**
101
+ * The unique identifier for the affiliate.
102
+ */
103
+ id: string;
104
+ /**
105
+ * The total active members of the affiliate
106
+ */
107
+ active_members_count: number;
108
+ /**
109
+ * The company attached to this affiliate
110
+ */
111
+ company: Affiliate.Company;
112
+ /**
113
+ * The datetime the affiliate was created.
114
+ */
115
+ created_at: string;
116
+ /**
117
+ * The percentage of referred customers who are still active members
118
+ */
119
+ customer_retention_rate: string;
120
+ /**
121
+ * The percentage of referred customers who remained active over the last 90 days
122
+ */
123
+ customer_retention_rate_ninety_days: string;
124
+ /**
125
+ * The monthly recurring revenue generated by this affiliate's referrals, formatted
126
+ * as a USD currency string
127
+ */
128
+ monthly_recurring_revenue_usd: string;
129
+ /**
130
+ * Statuses for resources
131
+ */
132
+ status: Status | null;
133
+ /**
134
+ * The total count of all overrides for this affiliate
135
+ */
136
+ total_overrides_count: number;
137
+ /**
138
+ * The total commission earnings paid to this affiliate, formatted as a USD
139
+ * currency string
140
+ */
141
+ total_referral_earnings_usd: string;
142
+ /**
143
+ * The total referrals of the affiliate
144
+ */
145
+ total_referrals_count: number;
146
+ /**
147
+ * The total revenue generated from this affiliate's referrals, formatted as a USD
148
+ * currency string
149
+ */
150
+ total_revenue_usd: string;
151
+ /**
152
+ * The datetime the affiliate was last updated.
153
+ */
154
+ updated_at: string;
155
+ /**
156
+ * The user attached to this affiliate
157
+ */
158
+ user: Affiliate.User;
159
+ }
160
+ export declare namespace Affiliate {
161
+ /**
162
+ * The company attached to this affiliate
163
+ */
164
+ interface Company {
165
+ /**
166
+ * The unique identifier for the company.
167
+ */
168
+ id: string;
169
+ /**
170
+ * The written name of the company.
171
+ */
172
+ title: string;
173
+ }
174
+ /**
175
+ * The user attached to this affiliate
176
+ */
177
+ interface User {
178
+ /**
179
+ * The unique identifier for the user.
180
+ */
181
+ id: string;
182
+ /**
183
+ * The display name set on the user's Whop profile. Null if the user has not set a
184
+ * name.
185
+ */
186
+ name: string | null;
187
+ /**
188
+ * The unique username chosen by the user for their Whop profile. Null if the user
189
+ * has not set a username.
190
+ */
191
+ username: string | null;
192
+ }
193
+ }
194
+ /**
195
+ * Statuses for resources
196
+ */
197
+ export type Status = 'active' | 'archived' | 'deleted';
198
+ /**
199
+ * An affiliate tracks a user's referral performance and commission earnings for a
200
+ * company, including retention rates, revenue metrics, and payout configurations.
201
+ */
202
+ export interface AffiliateListResponse {
203
+ /**
204
+ * The unique identifier for the affiliate.
205
+ */
206
+ id: string;
207
+ /**
208
+ * The total active members of the affiliate
209
+ */
210
+ active_members_count: number;
211
+ /**
212
+ * The company attached to this affiliate
213
+ */
214
+ company: AffiliateListResponse.Company;
215
+ /**
216
+ * The datetime the affiliate was created.
217
+ */
218
+ created_at: string;
219
+ /**
220
+ * The percentage of referred customers who are still active members
221
+ */
222
+ customer_retention_rate: string;
223
+ /**
224
+ * The percentage of referred customers who remained active over the last 90 days
225
+ */
226
+ customer_retention_rate_ninety_days: string;
227
+ /**
228
+ * The monthly recurring revenue generated by this affiliate's referrals, formatted
229
+ * as a USD currency string
230
+ */
231
+ monthly_recurring_revenue_usd: string;
232
+ /**
233
+ * Statuses for resources
234
+ */
235
+ status: Status | null;
236
+ /**
237
+ * The total count of all overrides for this affiliate
238
+ */
239
+ total_overrides_count: number;
240
+ /**
241
+ * The total commission earnings paid to this affiliate, formatted as a USD
242
+ * currency string
243
+ */
244
+ total_referral_earnings_usd: string;
245
+ /**
246
+ * The total referrals of the affiliate
247
+ */
248
+ total_referrals_count: number;
249
+ /**
250
+ * The total revenue generated from this affiliate's referrals, formatted as a USD
251
+ * currency string
252
+ */
253
+ total_revenue_usd: string;
254
+ /**
255
+ * The datetime the affiliate was last updated.
256
+ */
257
+ updated_at: string;
258
+ /**
259
+ * The user attached to this affiliate
260
+ */
261
+ user: AffiliateListResponse.User;
262
+ }
263
+ export declare namespace AffiliateListResponse {
264
+ /**
265
+ * The company attached to this affiliate
266
+ */
267
+ interface Company {
268
+ /**
269
+ * The unique identifier for the company.
270
+ */
271
+ id: string;
272
+ /**
273
+ * The written name of the company.
274
+ */
275
+ title: string;
276
+ }
277
+ /**
278
+ * The user attached to this affiliate
279
+ */
280
+ interface User {
281
+ /**
282
+ * The unique identifier for the user.
283
+ */
284
+ id: string;
285
+ /**
286
+ * The display name set on the user's Whop profile. Null if the user has not set a
287
+ * name.
288
+ */
289
+ name: string | null;
290
+ /**
291
+ * The unique username chosen by the user for their Whop profile. Null if the user
292
+ * has not set a username.
293
+ */
294
+ username: string | null;
295
+ }
296
+ }
297
+ /**
298
+ * Represents `true` or `false` values.
299
+ */
300
+ export type AffiliateArchiveResponse = boolean;
301
+ /**
302
+ * Represents `true` or `false` values.
303
+ */
304
+ export type AffiliateUnarchiveResponse = boolean;
305
+ export interface AffiliateCreateParams {
306
+ /**
307
+ * The ID of the company to create the affiliate for.
308
+ */
309
+ company_id: string;
310
+ /**
311
+ * The user identifier (username, email, user ID, or Discord ID).
312
+ */
313
+ user_identifier: string;
314
+ }
315
+ export interface AffiliateListParams extends CursorPageParams {
316
+ /**
317
+ * The unique identifier of the company to list affiliates for.
318
+ */
319
+ company_id: string;
320
+ /**
321
+ * Returns the elements in the list that come before the specified cursor.
322
+ */
323
+ before?: string | null;
324
+ /**
325
+ * The direction of the sort.
326
+ */
327
+ direction?: Shared.Direction | null;
328
+ /**
329
+ * Returns the first _n_ elements from the list.
330
+ */
331
+ first?: number | null;
332
+ /**
333
+ * Returns the last _n_ elements from the list.
334
+ */
335
+ last?: number | null;
336
+ /**
337
+ * Which columns can be used to sort.
338
+ */
339
+ order?: 'id' | 'created_at' | 'cached_total_referrals' | 'cached_total_rewards' | null;
340
+ /**
341
+ * Search affiliates by username.
342
+ */
343
+ query?: string | null;
344
+ /**
345
+ * Statuses for resources
346
+ */
347
+ status?: Status | null;
348
+ }
349
+ export declare namespace Affiliates {
350
+ export { type Affiliate as Affiliate, type Status as Status, type AffiliateListResponse as AffiliateListResponse, type AffiliateArchiveResponse as AffiliateArchiveResponse, type AffiliateUnarchiveResponse as AffiliateUnarchiveResponse, type AffiliateListResponsesCursorPage as AffiliateListResponsesCursorPage, type AffiliateCreateParams as AffiliateCreateParams, type AffiliateListParams as AffiliateListParams, };
351
+ export { Overrides as Overrides, type AffiliateAppliesToPayments as AffiliateAppliesToPayments, type AffiliateAppliesToProducts as AffiliateAppliesToProducts, type AffiliateOverrideRoles as AffiliateOverrideRoles, type AffiliatePayoutTypes as AffiliatePayoutTypes, type AffiliateRevenueBases as AffiliateRevenueBases, type OverrideCreateResponse as OverrideCreateResponse, type OverrideRetrieveResponse as OverrideRetrieveResponse, type OverrideUpdateResponse as OverrideUpdateResponse, type OverrideListResponse as OverrideListResponse, type OverrideDeleteResponse as OverrideDeleteResponse, type OverrideListResponsesCursorPage as OverrideListResponsesCursorPage, type OverrideCreateParams as OverrideCreateParams, type OverrideRetrieveParams as OverrideRetrieveParams, type OverrideUpdateParams as OverrideUpdateParams, type OverrideListParams as OverrideListParams, type OverrideDeleteParams as OverrideDeleteParams, };
352
+ }
353
+ //# sourceMappingURL=affiliates.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"affiliates.d.mts","sourceRoot":"","sources":["../../src/resources/affiliates/affiliates.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,YAAY;OACjB,EACL,0BAA0B,EAC1B,0BAA0B,EAC1B,sBAAsB,EACtB,oBAAoB,EACpB,qBAAqB,EACrB,oBAAoB,EACpB,sBAAsB,EACtB,oBAAoB,EACpB,sBAAsB,EACtB,kBAAkB,EAClB,oBAAoB,EACpB,+BAA+B,EAC/B,sBAAsB,EACtB,wBAAwB,EACxB,oBAAoB,EACpB,sBAAsB,EACtB,SAAS,EACV;OACM,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,UAAW,SAAQ,WAAW;IACzC,SAAS,EAAE,YAAY,CAAC,SAAS,CAA4C;IAE7E;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAAI,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC;IAIpF;;;;;;;;;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