@whop/sdk 0.0.1-canary.0 → 0.0.2
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.
- package/CHANGELOG.md +21 -0
- package/client.d.mts +16 -3
- package/client.d.mts.map +1 -1
- package/client.d.ts +16 -3
- package/client.d.ts.map +1 -1
- package/client.js +7 -1
- package/client.js.map +1 -1
- package/client.mjs +7 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/apps.d.mts +16 -0
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +16 -0
- package/resources/apps.d.ts.map +1 -1
- package/resources/checkout-configurations.d.mts +21 -18
- package/resources/checkout-configurations.d.mts.map +1 -1
- package/resources/checkout-configurations.d.ts +21 -18
- package/resources/checkout-configurations.d.ts.map +1 -1
- package/resources/checkout-configurations.js +1 -1
- package/resources/checkout-configurations.mjs +1 -1
- package/resources/experiences.d.mts +32 -0
- package/resources/experiences.d.mts.map +1 -1
- package/resources/experiences.d.ts +32 -0
- package/resources/experiences.d.ts.map +1 -1
- package/resources/forums.d.mts +112 -0
- package/resources/forums.d.mts.map +1 -0
- package/resources/forums.d.ts +112 -0
- package/resources/forums.d.ts.map +1 -0
- package/resources/forums.js +41 -0
- package/resources/forums.js.map +1 -0
- package/resources/forums.mjs +37 -0
- package/resources/forums.mjs.map +1 -0
- package/resources/index.d.mts +3 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/invoices.d.mts +5 -2
- package/resources/invoices.d.mts.map +1 -1
- package/resources/invoices.d.ts +5 -2
- package/resources/invoices.d.ts.map +1 -1
- package/resources/members.d.mts +270 -0
- package/resources/members.d.mts.map +1 -0
- package/resources/members.d.ts +270 -0
- package/resources/members.d.ts.map +1 -0
- package/resources/members.js +35 -0
- package/resources/members.js.map +1 -0
- package/resources/members.mjs +31 -0
- package/resources/members.mjs.map +1 -0
- package/resources/plans.d.mts +5 -2
- package/resources/plans.d.mts.map +1 -1
- package/resources/plans.d.ts +5 -2
- package/resources/plans.d.ts.map +1 -1
- package/resources/shared.d.mts +176 -11
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +176 -11
- package/resources/shared.d.ts.map +1 -1
- package/resources/users.d.mts +18 -1
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +18 -1
- package/resources/users.d.ts.map +1 -1
- package/resources/users.js.map +1 -1
- package/resources/users.mjs.map +1 -1
- package/resources/webhooks.d.mts +224 -2
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +224 -2
- package/resources/webhooks.d.ts.map +1 -1
- package/src/client.ts +63 -2
- package/src/resources/apps.ts +18 -0
- package/src/resources/checkout-configurations.ts +21 -18
- package/src/resources/experiences.ts +36 -0
- package/src/resources/forums.ts +152 -0
- package/src/resources/index.ts +24 -0
- package/src/resources/invoices.ts +5 -2
- package/src/resources/members.ts +337 -0
- package/src/resources/plans.ts +5 -2
- package/src/resources/shared.ts +217 -11
- package/src/resources/users.ts +20 -1
- package/src/resources/webhooks.ts +293 -1
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
package/resources/webhooks.d.mts
CHANGED
|
@@ -94,8 +94,230 @@ export interface InvoiceVoidedWebhookEvent {
|
|
|
94
94
|
*/
|
|
95
95
|
type: 'invoice.voided';
|
|
96
96
|
}
|
|
97
|
-
export
|
|
97
|
+
export interface MembershipActivatedWebhookEvent {
|
|
98
|
+
/**
|
|
99
|
+
* A unique ID for every single webhook request
|
|
100
|
+
*/
|
|
101
|
+
id: string;
|
|
102
|
+
/**
|
|
103
|
+
* The API version for this webhook
|
|
104
|
+
*/
|
|
105
|
+
api_version: 'v1';
|
|
106
|
+
/**
|
|
107
|
+
* A membership represents a purchase between a User and a Company for a specific
|
|
108
|
+
* Product.
|
|
109
|
+
*/
|
|
110
|
+
data: Shared.Membership;
|
|
111
|
+
/**
|
|
112
|
+
* The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
113
|
+
*/
|
|
114
|
+
timestamp: string;
|
|
115
|
+
/**
|
|
116
|
+
* The webhook event type
|
|
117
|
+
*/
|
|
118
|
+
type: 'membership.activated';
|
|
119
|
+
}
|
|
120
|
+
export interface MembershipDeactivatedWebhookEvent {
|
|
121
|
+
/**
|
|
122
|
+
* A unique ID for every single webhook request
|
|
123
|
+
*/
|
|
124
|
+
id: string;
|
|
125
|
+
/**
|
|
126
|
+
* The API version for this webhook
|
|
127
|
+
*/
|
|
128
|
+
api_version: 'v1';
|
|
129
|
+
/**
|
|
130
|
+
* A membership represents a purchase between a User and a Company for a specific
|
|
131
|
+
* Product.
|
|
132
|
+
*/
|
|
133
|
+
data: Shared.Membership;
|
|
134
|
+
/**
|
|
135
|
+
* The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
136
|
+
*/
|
|
137
|
+
timestamp: string;
|
|
138
|
+
/**
|
|
139
|
+
* The webhook event type
|
|
140
|
+
*/
|
|
141
|
+
type: 'membership.deactivated';
|
|
142
|
+
}
|
|
143
|
+
export interface EntryCreatedWebhookEvent {
|
|
144
|
+
/**
|
|
145
|
+
* A unique ID for every single webhook request
|
|
146
|
+
*/
|
|
147
|
+
id: string;
|
|
148
|
+
/**
|
|
149
|
+
* The API version for this webhook
|
|
150
|
+
*/
|
|
151
|
+
api_version: 'v1';
|
|
152
|
+
/**
|
|
153
|
+
* An object representing an entry in a waitlist.
|
|
154
|
+
*/
|
|
155
|
+
data: Shared.Entry;
|
|
156
|
+
/**
|
|
157
|
+
* The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
158
|
+
*/
|
|
159
|
+
timestamp: string;
|
|
160
|
+
/**
|
|
161
|
+
* The webhook event type
|
|
162
|
+
*/
|
|
163
|
+
type: 'entry.created';
|
|
164
|
+
}
|
|
165
|
+
export interface EntryApprovedWebhookEvent {
|
|
166
|
+
/**
|
|
167
|
+
* A unique ID for every single webhook request
|
|
168
|
+
*/
|
|
169
|
+
id: string;
|
|
170
|
+
/**
|
|
171
|
+
* The API version for this webhook
|
|
172
|
+
*/
|
|
173
|
+
api_version: 'v1';
|
|
174
|
+
/**
|
|
175
|
+
* An object representing an entry in a waitlist.
|
|
176
|
+
*/
|
|
177
|
+
data: Shared.Entry;
|
|
178
|
+
/**
|
|
179
|
+
* The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
180
|
+
*/
|
|
181
|
+
timestamp: string;
|
|
182
|
+
/**
|
|
183
|
+
* The webhook event type
|
|
184
|
+
*/
|
|
185
|
+
type: 'entry.approved';
|
|
186
|
+
}
|
|
187
|
+
export interface EntryDeniedWebhookEvent {
|
|
188
|
+
/**
|
|
189
|
+
* A unique ID for every single webhook request
|
|
190
|
+
*/
|
|
191
|
+
id: string;
|
|
192
|
+
/**
|
|
193
|
+
* The API version for this webhook
|
|
194
|
+
*/
|
|
195
|
+
api_version: 'v1';
|
|
196
|
+
/**
|
|
197
|
+
* An object representing an entry in a waitlist.
|
|
198
|
+
*/
|
|
199
|
+
data: Shared.Entry;
|
|
200
|
+
/**
|
|
201
|
+
* The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
202
|
+
*/
|
|
203
|
+
timestamp: string;
|
|
204
|
+
/**
|
|
205
|
+
* The webhook event type
|
|
206
|
+
*/
|
|
207
|
+
type: 'entry.denied';
|
|
208
|
+
}
|
|
209
|
+
export interface EntryDeletedWebhookEvent {
|
|
210
|
+
/**
|
|
211
|
+
* A unique ID for every single webhook request
|
|
212
|
+
*/
|
|
213
|
+
id: string;
|
|
214
|
+
/**
|
|
215
|
+
* The API version for this webhook
|
|
216
|
+
*/
|
|
217
|
+
api_version: 'v1';
|
|
218
|
+
/**
|
|
219
|
+
* An object representing an entry in a waitlist.
|
|
220
|
+
*/
|
|
221
|
+
data: Shared.Entry;
|
|
222
|
+
/**
|
|
223
|
+
* The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
224
|
+
*/
|
|
225
|
+
timestamp: string;
|
|
226
|
+
/**
|
|
227
|
+
* The webhook event type
|
|
228
|
+
*/
|
|
229
|
+
type: 'entry.deleted';
|
|
230
|
+
}
|
|
231
|
+
export interface CourseLessonInteractionCompletedWebhookEvent {
|
|
232
|
+
/**
|
|
233
|
+
* A unique ID for every single webhook request
|
|
234
|
+
*/
|
|
235
|
+
id: string;
|
|
236
|
+
/**
|
|
237
|
+
* The API version for this webhook
|
|
238
|
+
*/
|
|
239
|
+
api_version: 'v1';
|
|
240
|
+
/**
|
|
241
|
+
* A lesson interaction tracking user progress in courses
|
|
242
|
+
*/
|
|
243
|
+
data: Shared.CourseLessonInteraction;
|
|
244
|
+
/**
|
|
245
|
+
* The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
246
|
+
*/
|
|
247
|
+
timestamp: string;
|
|
248
|
+
/**
|
|
249
|
+
* The webhook event type
|
|
250
|
+
*/
|
|
251
|
+
type: 'course_lesson_interaction.completed';
|
|
252
|
+
}
|
|
253
|
+
export interface PaymentSucceededWebhookEvent {
|
|
254
|
+
/**
|
|
255
|
+
* A unique ID for every single webhook request
|
|
256
|
+
*/
|
|
257
|
+
id: string;
|
|
258
|
+
/**
|
|
259
|
+
* The API version for this webhook
|
|
260
|
+
*/
|
|
261
|
+
api_version: 'v1';
|
|
262
|
+
/**
|
|
263
|
+
* An object representing a receipt for a membership.
|
|
264
|
+
*/
|
|
265
|
+
data: Shared.Payment;
|
|
266
|
+
/**
|
|
267
|
+
* The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
268
|
+
*/
|
|
269
|
+
timestamp: string;
|
|
270
|
+
/**
|
|
271
|
+
* The webhook event type
|
|
272
|
+
*/
|
|
273
|
+
type: 'payment.succeeded';
|
|
274
|
+
}
|
|
275
|
+
export interface PaymentFailedWebhookEvent {
|
|
276
|
+
/**
|
|
277
|
+
* A unique ID for every single webhook request
|
|
278
|
+
*/
|
|
279
|
+
id: string;
|
|
280
|
+
/**
|
|
281
|
+
* The API version for this webhook
|
|
282
|
+
*/
|
|
283
|
+
api_version: 'v1';
|
|
284
|
+
/**
|
|
285
|
+
* An object representing a receipt for a membership.
|
|
286
|
+
*/
|
|
287
|
+
data: Shared.Payment;
|
|
288
|
+
/**
|
|
289
|
+
* The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
290
|
+
*/
|
|
291
|
+
timestamp: string;
|
|
292
|
+
/**
|
|
293
|
+
* The webhook event type
|
|
294
|
+
*/
|
|
295
|
+
type: 'payment.failed';
|
|
296
|
+
}
|
|
297
|
+
export interface PaymentPendingWebhookEvent {
|
|
298
|
+
/**
|
|
299
|
+
* A unique ID for every single webhook request
|
|
300
|
+
*/
|
|
301
|
+
id: string;
|
|
302
|
+
/**
|
|
303
|
+
* The API version for this webhook
|
|
304
|
+
*/
|
|
305
|
+
api_version: 'v1';
|
|
306
|
+
/**
|
|
307
|
+
* An object representing a receipt for a membership.
|
|
308
|
+
*/
|
|
309
|
+
data: Shared.Payment;
|
|
310
|
+
/**
|
|
311
|
+
* The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
312
|
+
*/
|
|
313
|
+
timestamp: string;
|
|
314
|
+
/**
|
|
315
|
+
* The webhook event type
|
|
316
|
+
*/
|
|
317
|
+
type: 'payment.pending';
|
|
318
|
+
}
|
|
319
|
+
export type UnwrapWebhookEvent = InvoiceCreatedWebhookEvent | InvoicePaidWebhookEvent | InvoicePastDueWebhookEvent | InvoiceVoidedWebhookEvent | MembershipActivatedWebhookEvent | MembershipDeactivatedWebhookEvent | EntryCreatedWebhookEvent | EntryApprovedWebhookEvent | EntryDeniedWebhookEvent | EntryDeletedWebhookEvent | CourseLessonInteractionCompletedWebhookEvent | PaymentSucceededWebhookEvent | PaymentFailedWebhookEvent | PaymentPendingWebhookEvent;
|
|
98
320
|
export declare namespace Webhooks {
|
|
99
|
-
export { type InvoiceCreatedWebhookEvent as InvoiceCreatedWebhookEvent, type InvoicePaidWebhookEvent as InvoicePaidWebhookEvent, type InvoicePastDueWebhookEvent as InvoicePastDueWebhookEvent, type InvoiceVoidedWebhookEvent as InvoiceVoidedWebhookEvent, type UnwrapWebhookEvent as UnwrapWebhookEvent, };
|
|
321
|
+
export { type InvoiceCreatedWebhookEvent as InvoiceCreatedWebhookEvent, type InvoicePaidWebhookEvent as InvoicePaidWebhookEvent, type InvoicePastDueWebhookEvent as InvoicePastDueWebhookEvent, type InvoiceVoidedWebhookEvent as InvoiceVoidedWebhookEvent, type MembershipActivatedWebhookEvent as MembershipActivatedWebhookEvent, type MembershipDeactivatedWebhookEvent as MembershipDeactivatedWebhookEvent, type EntryCreatedWebhookEvent as EntryCreatedWebhookEvent, type EntryApprovedWebhookEvent as EntryApprovedWebhookEvent, type EntryDeniedWebhookEvent as EntryDeniedWebhookEvent, type EntryDeletedWebhookEvent as EntryDeletedWebhookEvent, type CourseLessonInteractionCompletedWebhookEvent as CourseLessonInteractionCompletedWebhookEvent, type PaymentSucceededWebhookEvent as PaymentSucceededWebhookEvent, type PaymentFailedWebhookEvent as PaymentFailedWebhookEvent, type PaymentPendingWebhookEvent as PaymentPendingWebhookEvent, type UnwrapWebhookEvent as UnwrapWebhookEvent, };
|
|
100
322
|
}
|
|
101
323
|
//# sourceMappingURL=webhooks.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.d.mts","sourceRoot":"","sources":["../src/resources/webhooks.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;AAGlB,qBAAa,QAAS,SAAQ,WAAW;IACvC,MAAM,CACJ,IAAI,EAAE,MAAM,EACZ,EAAE,OAAO,EAAE,GAAG,EAAE,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE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+
export interface MembershipActivatedWebhookEvent {
|
|
98
|
+
/**
|
|
99
|
+
* A unique ID for every single webhook request
|
|
100
|
+
*/
|
|
101
|
+
id: string;
|
|
102
|
+
/**
|
|
103
|
+
* The API version for this webhook
|
|
104
|
+
*/
|
|
105
|
+
api_version: 'v1';
|
|
106
|
+
/**
|
|
107
|
+
* A membership represents a purchase between a User and a Company for a specific
|
|
108
|
+
* Product.
|
|
109
|
+
*/
|
|
110
|
+
data: Shared.Membership;
|
|
111
|
+
/**
|
|
112
|
+
* The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
113
|
+
*/
|
|
114
|
+
timestamp: string;
|
|
115
|
+
/**
|
|
116
|
+
* The webhook event type
|
|
117
|
+
*/
|
|
118
|
+
type: 'membership.activated';
|
|
119
|
+
}
|
|
120
|
+
export interface MembershipDeactivatedWebhookEvent {
|
|
121
|
+
/**
|
|
122
|
+
* A unique ID for every single webhook request
|
|
123
|
+
*/
|
|
124
|
+
id: string;
|
|
125
|
+
/**
|
|
126
|
+
* The API version for this webhook
|
|
127
|
+
*/
|
|
128
|
+
api_version: 'v1';
|
|
129
|
+
/**
|
|
130
|
+
* A membership represents a purchase between a User and a Company for a specific
|
|
131
|
+
* Product.
|
|
132
|
+
*/
|
|
133
|
+
data: Shared.Membership;
|
|
134
|
+
/**
|
|
135
|
+
* The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
136
|
+
*/
|
|
137
|
+
timestamp: string;
|
|
138
|
+
/**
|
|
139
|
+
* The webhook event type
|
|
140
|
+
*/
|
|
141
|
+
type: 'membership.deactivated';
|
|
142
|
+
}
|
|
143
|
+
export interface EntryCreatedWebhookEvent {
|
|
144
|
+
/**
|
|
145
|
+
* A unique ID for every single webhook request
|
|
146
|
+
*/
|
|
147
|
+
id: string;
|
|
148
|
+
/**
|
|
149
|
+
* The API version for this webhook
|
|
150
|
+
*/
|
|
151
|
+
api_version: 'v1';
|
|
152
|
+
/**
|
|
153
|
+
* An object representing an entry in a waitlist.
|
|
154
|
+
*/
|
|
155
|
+
data: Shared.Entry;
|
|
156
|
+
/**
|
|
157
|
+
* The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
158
|
+
*/
|
|
159
|
+
timestamp: string;
|
|
160
|
+
/**
|
|
161
|
+
* The webhook event type
|
|
162
|
+
*/
|
|
163
|
+
type: 'entry.created';
|
|
164
|
+
}
|
|
165
|
+
export interface EntryApprovedWebhookEvent {
|
|
166
|
+
/**
|
|
167
|
+
* A unique ID for every single webhook request
|
|
168
|
+
*/
|
|
169
|
+
id: string;
|
|
170
|
+
/**
|
|
171
|
+
* The API version for this webhook
|
|
172
|
+
*/
|
|
173
|
+
api_version: 'v1';
|
|
174
|
+
/**
|
|
175
|
+
* An object representing an entry in a waitlist.
|
|
176
|
+
*/
|
|
177
|
+
data: Shared.Entry;
|
|
178
|
+
/**
|
|
179
|
+
* The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
180
|
+
*/
|
|
181
|
+
timestamp: string;
|
|
182
|
+
/**
|
|
183
|
+
* The webhook event type
|
|
184
|
+
*/
|
|
185
|
+
type: 'entry.approved';
|
|
186
|
+
}
|
|
187
|
+
export interface EntryDeniedWebhookEvent {
|
|
188
|
+
/**
|
|
189
|
+
* A unique ID for every single webhook request
|
|
190
|
+
*/
|
|
191
|
+
id: string;
|
|
192
|
+
/**
|
|
193
|
+
* The API version for this webhook
|
|
194
|
+
*/
|
|
195
|
+
api_version: 'v1';
|
|
196
|
+
/**
|
|
197
|
+
* An object representing an entry in a waitlist.
|
|
198
|
+
*/
|
|
199
|
+
data: Shared.Entry;
|
|
200
|
+
/**
|
|
201
|
+
* The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
202
|
+
*/
|
|
203
|
+
timestamp: string;
|
|
204
|
+
/**
|
|
205
|
+
* The webhook event type
|
|
206
|
+
*/
|
|
207
|
+
type: 'entry.denied';
|
|
208
|
+
}
|
|
209
|
+
export interface EntryDeletedWebhookEvent {
|
|
210
|
+
/**
|
|
211
|
+
* A unique ID for every single webhook request
|
|
212
|
+
*/
|
|
213
|
+
id: string;
|
|
214
|
+
/**
|
|
215
|
+
* The API version for this webhook
|
|
216
|
+
*/
|
|
217
|
+
api_version: 'v1';
|
|
218
|
+
/**
|
|
219
|
+
* An object representing an entry in a waitlist.
|
|
220
|
+
*/
|
|
221
|
+
data: Shared.Entry;
|
|
222
|
+
/**
|
|
223
|
+
* The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
224
|
+
*/
|
|
225
|
+
timestamp: string;
|
|
226
|
+
/**
|
|
227
|
+
* The webhook event type
|
|
228
|
+
*/
|
|
229
|
+
type: 'entry.deleted';
|
|
230
|
+
}
|
|
231
|
+
export interface CourseLessonInteractionCompletedWebhookEvent {
|
|
232
|
+
/**
|
|
233
|
+
* A unique ID for every single webhook request
|
|
234
|
+
*/
|
|
235
|
+
id: string;
|
|
236
|
+
/**
|
|
237
|
+
* The API version for this webhook
|
|
238
|
+
*/
|
|
239
|
+
api_version: 'v1';
|
|
240
|
+
/**
|
|
241
|
+
* A lesson interaction tracking user progress in courses
|
|
242
|
+
*/
|
|
243
|
+
data: Shared.CourseLessonInteraction;
|
|
244
|
+
/**
|
|
245
|
+
* The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
246
|
+
*/
|
|
247
|
+
timestamp: string;
|
|
248
|
+
/**
|
|
249
|
+
* The webhook event type
|
|
250
|
+
*/
|
|
251
|
+
type: 'course_lesson_interaction.completed';
|
|
252
|
+
}
|
|
253
|
+
export interface PaymentSucceededWebhookEvent {
|
|
254
|
+
/**
|
|
255
|
+
* A unique ID for every single webhook request
|
|
256
|
+
*/
|
|
257
|
+
id: string;
|
|
258
|
+
/**
|
|
259
|
+
* The API version for this webhook
|
|
260
|
+
*/
|
|
261
|
+
api_version: 'v1';
|
|
262
|
+
/**
|
|
263
|
+
* An object representing a receipt for a membership.
|
|
264
|
+
*/
|
|
265
|
+
data: Shared.Payment;
|
|
266
|
+
/**
|
|
267
|
+
* The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
268
|
+
*/
|
|
269
|
+
timestamp: string;
|
|
270
|
+
/**
|
|
271
|
+
* The webhook event type
|
|
272
|
+
*/
|
|
273
|
+
type: 'payment.succeeded';
|
|
274
|
+
}
|
|
275
|
+
export interface PaymentFailedWebhookEvent {
|
|
276
|
+
/**
|
|
277
|
+
* A unique ID for every single webhook request
|
|
278
|
+
*/
|
|
279
|
+
id: string;
|
|
280
|
+
/**
|
|
281
|
+
* The API version for this webhook
|
|
282
|
+
*/
|
|
283
|
+
api_version: 'v1';
|
|
284
|
+
/**
|
|
285
|
+
* An object representing a receipt for a membership.
|
|
286
|
+
*/
|
|
287
|
+
data: Shared.Payment;
|
|
288
|
+
/**
|
|
289
|
+
* The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
290
|
+
*/
|
|
291
|
+
timestamp: string;
|
|
292
|
+
/**
|
|
293
|
+
* The webhook event type
|
|
294
|
+
*/
|
|
295
|
+
type: 'payment.failed';
|
|
296
|
+
}
|
|
297
|
+
export interface PaymentPendingWebhookEvent {
|
|
298
|
+
/**
|
|
299
|
+
* A unique ID for every single webhook request
|
|
300
|
+
*/
|
|
301
|
+
id: string;
|
|
302
|
+
/**
|
|
303
|
+
* The API version for this webhook
|
|
304
|
+
*/
|
|
305
|
+
api_version: 'v1';
|
|
306
|
+
/**
|
|
307
|
+
* An object representing a receipt for a membership.
|
|
308
|
+
*/
|
|
309
|
+
data: Shared.Payment;
|
|
310
|
+
/**
|
|
311
|
+
* The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
312
|
+
*/
|
|
313
|
+
timestamp: string;
|
|
314
|
+
/**
|
|
315
|
+
* The webhook event type
|
|
316
|
+
*/
|
|
317
|
+
type: 'payment.pending';
|
|
318
|
+
}
|
|
319
|
+
export type UnwrapWebhookEvent = InvoiceCreatedWebhookEvent | InvoicePaidWebhookEvent | InvoicePastDueWebhookEvent | InvoiceVoidedWebhookEvent | MembershipActivatedWebhookEvent | MembershipDeactivatedWebhookEvent | EntryCreatedWebhookEvent | EntryApprovedWebhookEvent | EntryDeniedWebhookEvent | EntryDeletedWebhookEvent | CourseLessonInteractionCompletedWebhookEvent | PaymentSucceededWebhookEvent | PaymentFailedWebhookEvent | PaymentPendingWebhookEvent;
|
|
98
320
|
export declare namespace Webhooks {
|
|
99
|
-
export { type InvoiceCreatedWebhookEvent as InvoiceCreatedWebhookEvent, type InvoicePaidWebhookEvent as InvoicePaidWebhookEvent, type InvoicePastDueWebhookEvent as InvoicePastDueWebhookEvent, type InvoiceVoidedWebhookEvent as InvoiceVoidedWebhookEvent, type UnwrapWebhookEvent as UnwrapWebhookEvent, };
|
|
321
|
+
export { type InvoiceCreatedWebhookEvent as InvoiceCreatedWebhookEvent, type InvoicePaidWebhookEvent as InvoicePaidWebhookEvent, type InvoicePastDueWebhookEvent as InvoicePastDueWebhookEvent, type InvoiceVoidedWebhookEvent as InvoiceVoidedWebhookEvent, type MembershipActivatedWebhookEvent as MembershipActivatedWebhookEvent, type MembershipDeactivatedWebhookEvent as MembershipDeactivatedWebhookEvent, type EntryCreatedWebhookEvent as EntryCreatedWebhookEvent, type EntryApprovedWebhookEvent as EntryApprovedWebhookEvent, type EntryDeniedWebhookEvent as EntryDeniedWebhookEvent, type EntryDeletedWebhookEvent as EntryDeletedWebhookEvent, type CourseLessonInteractionCompletedWebhookEvent as CourseLessonInteractionCompletedWebhookEvent, type PaymentSucceededWebhookEvent as PaymentSucceededWebhookEvent, type PaymentFailedWebhookEvent as PaymentFailedWebhookEvent, type PaymentPendingWebhookEvent as PaymentPendingWebhookEvent, type UnwrapWebhookEvent as UnwrapWebhookEvent, };
|
|
100
322
|
}
|
|
101
323
|
//# sourceMappingURL=webhooks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../src/resources/webhooks.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;AAGlB,qBAAa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ED
|
@@ -85,6 +85,13 @@ import {
|
|
|
85
85
|
ForumPostListResponsesCursorPage,
|
|
86
86
|
ForumPosts,
|
|
87
87
|
} from './resources/forum-posts';
|
|
88
|
+
import {
|
|
89
|
+
ForumListParams,
|
|
90
|
+
ForumListResponse,
|
|
91
|
+
ForumListResponsesCursorPage,
|
|
92
|
+
ForumUpdateParams,
|
|
93
|
+
Forums,
|
|
94
|
+
} from './resources/forums';
|
|
88
95
|
import {
|
|
89
96
|
InvoiceCreateParams,
|
|
90
97
|
InvoiceCreateResponse,
|
|
@@ -93,6 +100,13 @@ import {
|
|
|
93
100
|
Invoices,
|
|
94
101
|
} from './resources/invoices';
|
|
95
102
|
import { LedgerAccountRetrieveResponse, LedgerAccounts } from './resources/ledger-accounts';
|
|
103
|
+
import {
|
|
104
|
+
MemberListParams,
|
|
105
|
+
MemberListResponse,
|
|
106
|
+
MemberListResponsesCursorPage,
|
|
107
|
+
MemberRetrieveResponse,
|
|
108
|
+
Members,
|
|
109
|
+
} from './resources/members';
|
|
96
110
|
import {
|
|
97
111
|
MembershipCancelParams,
|
|
98
112
|
MembershipListParams,
|
|
@@ -167,10 +181,20 @@ import {
|
|
|
167
181
|
Users,
|
|
168
182
|
} from './resources/users';
|
|
169
183
|
import {
|
|
184
|
+
CourseLessonInteractionCompletedWebhookEvent,
|
|
185
|
+
EntryApprovedWebhookEvent,
|
|
186
|
+
EntryCreatedWebhookEvent,
|
|
187
|
+
EntryDeletedWebhookEvent,
|
|
188
|
+
EntryDeniedWebhookEvent,
|
|
170
189
|
InvoiceCreatedWebhookEvent,
|
|
171
190
|
InvoicePaidWebhookEvent,
|
|
172
191
|
InvoicePastDueWebhookEvent,
|
|
173
192
|
InvoiceVoidedWebhookEvent,
|
|
193
|
+
MembershipActivatedWebhookEvent,
|
|
194
|
+
MembershipDeactivatedWebhookEvent,
|
|
195
|
+
PaymentFailedWebhookEvent,
|
|
196
|
+
PaymentPendingWebhookEvent,
|
|
197
|
+
PaymentSucceededWebhookEvent,
|
|
174
198
|
UnwrapWebhookEvent,
|
|
175
199
|
Webhooks,
|
|
176
200
|
} from './resources/webhooks';
|
|
@@ -884,6 +908,8 @@ export class Whop {
|
|
|
884
908
|
}
|
|
885
909
|
}
|
|
886
910
|
|
|
911
|
+
verifyUserToken: ReturnType<typeof makeUserTokenVerifierFromSdk> = makeUserTokenVerifierFromSdk(this);
|
|
912
|
+
|
|
887
913
|
static Whop = this;
|
|
888
914
|
static DEFAULT_TIMEOUT = 60000; // 1 minute
|
|
889
915
|
|
|
@@ -926,8 +952,8 @@ export class Whop {
|
|
|
926
952
|
supportChannels: API.SupportChannels = new API.SupportChannels(this);
|
|
927
953
|
experiences: API.Experiences = new API.Experiences(this);
|
|
928
954
|
reactions: API.Reactions = new API.Reactions(this);
|
|
929
|
-
|
|
930
|
-
|
|
955
|
+
members: API.Members = new API.Members(this);
|
|
956
|
+
forums: API.Forums = new API.Forums(this);
|
|
931
957
|
}
|
|
932
958
|
|
|
933
959
|
Whop.Apps = Apps;
|
|
@@ -953,6 +979,8 @@ Whop.Payments = Payments;
|
|
|
953
979
|
Whop.SupportChannels = SupportChannels;
|
|
954
980
|
Whop.Experiences = Experiences;
|
|
955
981
|
Whop.Reactions = Reactions;
|
|
982
|
+
Whop.Members = Members;
|
|
983
|
+
Whop.Forums = Forums;
|
|
956
984
|
|
|
957
985
|
export declare namespace Whop {
|
|
958
986
|
export type RequestOptions = Opts.RequestOptions;
|
|
@@ -998,6 +1026,16 @@ export declare namespace Whop {
|
|
|
998
1026
|
type InvoicePaidWebhookEvent as InvoicePaidWebhookEvent,
|
|
999
1027
|
type InvoicePastDueWebhookEvent as InvoicePastDueWebhookEvent,
|
|
1000
1028
|
type InvoiceVoidedWebhookEvent as InvoiceVoidedWebhookEvent,
|
|
1029
|
+
type MembershipActivatedWebhookEvent as MembershipActivatedWebhookEvent,
|
|
1030
|
+
type MembershipDeactivatedWebhookEvent as MembershipDeactivatedWebhookEvent,
|
|
1031
|
+
type EntryCreatedWebhookEvent as EntryCreatedWebhookEvent,
|
|
1032
|
+
type EntryApprovedWebhookEvent as EntryApprovedWebhookEvent,
|
|
1033
|
+
type EntryDeniedWebhookEvent as EntryDeniedWebhookEvent,
|
|
1034
|
+
type EntryDeletedWebhookEvent as EntryDeletedWebhookEvent,
|
|
1035
|
+
type CourseLessonInteractionCompletedWebhookEvent as CourseLessonInteractionCompletedWebhookEvent,
|
|
1036
|
+
type PaymentSucceededWebhookEvent as PaymentSucceededWebhookEvent,
|
|
1037
|
+
type PaymentFailedWebhookEvent as PaymentFailedWebhookEvent,
|
|
1038
|
+
type PaymentPendingWebhookEvent as PaymentPendingWebhookEvent,
|
|
1001
1039
|
type UnwrapWebhookEvent as UnwrapWebhookEvent,
|
|
1002
1040
|
};
|
|
1003
1041
|
|
|
@@ -1141,6 +1179,23 @@ export declare namespace Whop {
|
|
|
1141
1179
|
type ReactionListParams as ReactionListParams,
|
|
1142
1180
|
};
|
|
1143
1181
|
|
|
1182
|
+
export {
|
|
1183
|
+
Members as Members,
|
|
1184
|
+
type MemberRetrieveResponse as MemberRetrieveResponse,
|
|
1185
|
+
type MemberListResponse as MemberListResponse,
|
|
1186
|
+
type MemberListResponsesCursorPage as MemberListResponsesCursorPage,
|
|
1187
|
+
type MemberListParams as MemberListParams,
|
|
1188
|
+
};
|
|
1189
|
+
|
|
1190
|
+
export {
|
|
1191
|
+
Forums as Forums,
|
|
1192
|
+
type ForumListResponse as ForumListResponse,
|
|
1193
|
+
type ForumListResponsesCursorPage as ForumListResponsesCursorPage,
|
|
1194
|
+
type ForumUpdateParams as ForumUpdateParams,
|
|
1195
|
+
type ForumListParams as ForumListParams,
|
|
1196
|
+
};
|
|
1197
|
+
|
|
1198
|
+
export type AccessLevel = API.AccessLevel;
|
|
1144
1199
|
export type AccessPassType = API.AccessPassType;
|
|
1145
1200
|
export type App = API.App;
|
|
1146
1201
|
export type AppBuild = API.AppBuild;
|
|
@@ -1160,9 +1215,11 @@ export declare namespace Whop {
|
|
|
1160
1215
|
export type CustomCta = API.CustomCta;
|
|
1161
1216
|
export type Direction = API.Direction;
|
|
1162
1217
|
export type DmsPostTypes = API.DmsPostTypes;
|
|
1218
|
+
export type EmailNotificationPreferences = API.EmailNotificationPreferences;
|
|
1163
1219
|
export type Entry = API.Entry;
|
|
1164
1220
|
export type EntryStatus = API.EntryStatus;
|
|
1165
1221
|
export type Experience = API.Experience;
|
|
1222
|
+
export type Forum = API.Forum;
|
|
1166
1223
|
export type ForumPost = API.ForumPost;
|
|
1167
1224
|
export type FriendlyReceiptStatus = API.FriendlyReceiptStatus;
|
|
1168
1225
|
export type GlobalAffiliateStatus = API.GlobalAffiliateStatus;
|
|
@@ -1170,6 +1227,8 @@ export declare namespace Whop {
|
|
|
1170
1227
|
export type Invoice = API.Invoice;
|
|
1171
1228
|
export type InvoiceListItem = API.InvoiceListItem;
|
|
1172
1229
|
export type InvoiceStatus = API.InvoiceStatus;
|
|
1230
|
+
export type MemberMostRecentActions = API.MemberMostRecentActions;
|
|
1231
|
+
export type MemberStatuses = API.MemberStatuses;
|
|
1173
1232
|
export type Membership = API.Membership;
|
|
1174
1233
|
export type MembershipStatus = API.MembershipStatus;
|
|
1175
1234
|
export type Message = API.Message;
|
|
@@ -1192,6 +1251,8 @@ export declare namespace Whop {
|
|
|
1192
1251
|
export type Transfer = API.Transfer;
|
|
1193
1252
|
export type Visibility = API.Visibility;
|
|
1194
1253
|
export type VisibilityFilter = API.VisibilityFilter;
|
|
1254
|
+
export type WhoCanCommentTypes = API.WhoCanCommentTypes;
|
|
1195
1255
|
export type WhoCanPost = API.WhoCanPost;
|
|
1256
|
+
export type WhoCanPostTypes = API.WhoCanPostTypes;
|
|
1196
1257
|
export type WhoCanReact = API.WhoCanReact;
|
|
1197
1258
|
}
|
package/src/resources/apps.ts
CHANGED
|
@@ -142,6 +142,12 @@ export interface AppListResponse {
|
|
|
142
142
|
*/
|
|
143
143
|
experience_path: string | null;
|
|
144
144
|
|
|
145
|
+
/**
|
|
146
|
+
* The icon for the app. This icon is shown on discovery, on the product page, on
|
|
147
|
+
* checkout, and as a default icon for the experiences.
|
|
148
|
+
*/
|
|
149
|
+
icon: AppListResponse.Icon | null;
|
|
150
|
+
|
|
145
151
|
/**
|
|
146
152
|
* The name of the app
|
|
147
153
|
*/
|
|
@@ -198,6 +204,18 @@ export namespace AppListResponse {
|
|
|
198
204
|
*/
|
|
199
205
|
username: string;
|
|
200
206
|
}
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* The icon for the app. This icon is shown on discovery, on the product page, on
|
|
210
|
+
* checkout, and as a default icon for the experiences.
|
|
211
|
+
*/
|
|
212
|
+
export interface Icon {
|
|
213
|
+
/**
|
|
214
|
+
* This is the URL you use to render optimized attachments on the client. This
|
|
215
|
+
* should be used for apps.
|
|
216
|
+
*/
|
|
217
|
+
url: string | null;
|
|
218
|
+
}
|
|
201
219
|
}
|
|
202
220
|
|
|
203
221
|
export interface AppCreateParams {
|