@whop/sdk 0.0.3 → 0.0.4
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 +32 -0
- package/client.d.mts +7 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +7 -4
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +5 -2
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/app-builds.d.mts +16 -13
- package/resources/app-builds.d.mts.map +1 -1
- package/resources/app-builds.d.ts +16 -13
- package/resources/app-builds.d.ts.map +1 -1
- package/resources/app-builds.js +1 -1
- package/resources/app-builds.mjs +1 -1
- package/resources/apps.d.mts +15 -10
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +15 -10
- package/resources/apps.d.ts.map +1 -1
- package/resources/checkout-configurations.d.mts +221 -183
- package/resources/checkout-configurations.d.mts.map +1 -1
- package/resources/checkout-configurations.d.ts +221 -183
- package/resources/checkout-configurations.d.ts.map +1 -1
- package/resources/checkout-configurations.js +4 -20
- package/resources/checkout-configurations.js.map +1 -1
- package/resources/checkout-configurations.mjs +4 -20
- package/resources/checkout-configurations.mjs.map +1 -1
- package/resources/companies.d.mts +157 -0
- package/resources/companies.d.mts.map +1 -1
- package/resources/companies.d.ts +157 -0
- package/resources/companies.d.ts.map +1 -1
- package/resources/companies.js +22 -0
- package/resources/companies.js.map +1 -1
- package/resources/companies.mjs +22 -0
- package/resources/companies.mjs.map +1 -1
- package/resources/course-lesson-interactions.d.mts +2 -2
- package/resources/course-lesson-interactions.d.ts +2 -2
- package/resources/course-lesson-interactions.js +2 -2
- package/resources/course-lesson-interactions.mjs +2 -2
- package/resources/course-lessons.d.mts +68 -28
- package/resources/course-lessons.d.mts.map +1 -1
- package/resources/course-lessons.d.ts +68 -28
- package/resources/course-lessons.d.ts.map +1 -1
- package/resources/course-students.d.mts +187 -0
- package/resources/course-students.d.mts.map +1 -0
- package/resources/course-students.d.ts +187 -0
- package/resources/course-students.d.ts.map +1 -0
- package/resources/course-students.js +36 -0
- package/resources/course-students.js.map +1 -0
- package/resources/course-students.mjs +32 -0
- package/resources/course-students.mjs.map +1 -0
- package/resources/courses.d.mts +40 -20
- package/resources/courses.d.mts.map +1 -1
- package/resources/courses.d.ts +40 -20
- package/resources/courses.d.ts.map +1 -1
- package/resources/experiences.d.mts +15 -10
- package/resources/experiences.d.mts.map +1 -1
- package/resources/experiences.d.ts +15 -10
- package/resources/experiences.d.ts.map +1 -1
- package/resources/forum-posts.d.mts +28 -18
- package/resources/forum-posts.d.mts.map +1 -1
- package/resources/forum-posts.d.ts +28 -18
- package/resources/forum-posts.d.ts.map +1 -1
- package/resources/index.d.mts +3 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -1
- package/resources/index.mjs.map +1 -1
- package/resources/invoices.d.mts +529 -146
- package/resources/invoices.d.mts.map +1 -1
- package/resources/invoices.d.ts +529 -146
- package/resources/invoices.d.ts.map +1 -1
- package/resources/invoices.js +2 -24
- package/resources/invoices.js.map +1 -1
- package/resources/invoices.mjs +2 -24
- package/resources/invoices.mjs.map +1 -1
- package/resources/messages.d.mts +28 -18
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +28 -18
- package/resources/messages.d.ts.map +1 -1
- package/resources/payments.d.mts +8 -1
- package/resources/payments.d.mts.map +1 -1
- package/resources/payments.d.ts +8 -1
- package/resources/payments.d.ts.map +1 -1
- package/resources/plans.d.mts +112 -16
- package/resources/plans.d.mts.map +1 -1
- package/resources/plans.d.ts +112 -16
- package/resources/plans.d.ts.map +1 -1
- package/resources/plans.js.map +1 -1
- package/resources/plans.mjs.map +1 -1
- package/resources/products.d.mts +15 -10
- package/resources/products.d.mts.map +1 -1
- package/resources/products.d.ts +15 -10
- package/resources/products.d.ts.map +1 -1
- package/resources/shared.d.mts +47 -0
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +47 -0
- package/resources/shared.d.ts.map +1 -1
- package/resources/transfers.d.mts +12 -0
- package/resources/transfers.d.mts.map +1 -1
- package/resources/transfers.d.ts +12 -0
- package/resources/transfers.d.ts.map +1 -1
- package/src/client.ts +32 -10
- package/src/resources/app-builds.ts +19 -14
- package/src/resources/apps.ts +16 -11
- package/src/resources/checkout-configurations.ts +245 -199
- package/src/resources/companies.ts +196 -0
- package/src/resources/course-lesson-interactions.ts +2 -2
- package/src/resources/course-lessons.ts +83 -30
- package/src/resources/course-students.ts +238 -0
- package/src/resources/courses.ts +50 -22
- package/src/resources/experiences.ts +19 -11
- package/src/resources/forum-posts.ts +34 -20
- package/src/resources/index.ts +14 -2
- package/src/resources/invoices.ts +620 -149
- package/src/resources/messages.ts +34 -20
- package/src/resources/payments.ts +8 -1
- package/src/resources/plans.ts +124 -16
- package/src/resources/products.ts +19 -11
- package/src/resources/shared.ts +48 -0
- package/src/resources/transfers.ts +10 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -221,7 +221,9 @@ export interface MessageCreateParams {
|
|
|
221
221
|
/**
|
|
222
222
|
* The attachments for this message, such as videos or images.
|
|
223
223
|
*/
|
|
224
|
-
attachments?: Array<
|
|
224
|
+
attachments?: Array<
|
|
225
|
+
MessageCreateParams.AttachmentInputWithDirectUploadID | MessageCreateParams.AttachmentInputWithID
|
|
226
|
+
> | null;
|
|
225
227
|
|
|
226
228
|
/**
|
|
227
229
|
* The poll for this message
|
|
@@ -233,20 +235,25 @@ export namespace MessageCreateParams {
|
|
|
233
235
|
/**
|
|
234
236
|
* Input for an attachment
|
|
235
237
|
*/
|
|
236
|
-
export interface
|
|
237
|
-
/**
|
|
238
|
-
* The ID of an existing attachment object. Use this when updating a resource and
|
|
239
|
-
* keeping a subset of the attachments. Don't use this unless you know what you're
|
|
240
|
-
* doing.
|
|
241
|
-
*/
|
|
242
|
-
id?: string | null;
|
|
243
|
-
|
|
238
|
+
export interface AttachmentInputWithDirectUploadID {
|
|
244
239
|
/**
|
|
245
240
|
* This ID should be used the first time you upload an attachment. It is the ID of
|
|
246
241
|
* the direct upload that was created when uploading the file to S3 via the
|
|
247
242
|
* mediaDirectUpload mutation.
|
|
248
243
|
*/
|
|
249
|
-
direct_upload_id
|
|
244
|
+
direct_upload_id: string;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* Input for an attachment
|
|
249
|
+
*/
|
|
250
|
+
export interface AttachmentInputWithID {
|
|
251
|
+
/**
|
|
252
|
+
* The ID of an existing attachment object. Use this when updating a resource and
|
|
253
|
+
* keeping a subset of the attachments. Don't use this unless you know what you're
|
|
254
|
+
* doing.
|
|
255
|
+
*/
|
|
256
|
+
id: string;
|
|
250
257
|
}
|
|
251
258
|
|
|
252
259
|
/**
|
|
@@ -281,7 +288,9 @@ export interface MessageUpdateParams {
|
|
|
281
288
|
/**
|
|
282
289
|
* The attachments for this message
|
|
283
290
|
*/
|
|
284
|
-
attachments?: Array<
|
|
291
|
+
attachments?: Array<
|
|
292
|
+
MessageUpdateParams.AttachmentInputWithDirectUploadID | MessageUpdateParams.AttachmentInputWithID
|
|
293
|
+
> | null;
|
|
285
294
|
|
|
286
295
|
/**
|
|
287
296
|
* The content of the message in Markdown format
|
|
@@ -298,20 +307,25 @@ export namespace MessageUpdateParams {
|
|
|
298
307
|
/**
|
|
299
308
|
* Input for an attachment
|
|
300
309
|
*/
|
|
301
|
-
export interface
|
|
302
|
-
/**
|
|
303
|
-
* The ID of an existing attachment object. Use this when updating a resource and
|
|
304
|
-
* keeping a subset of the attachments. Don't use this unless you know what you're
|
|
305
|
-
* doing.
|
|
306
|
-
*/
|
|
307
|
-
id?: string | null;
|
|
308
|
-
|
|
310
|
+
export interface AttachmentInputWithDirectUploadID {
|
|
309
311
|
/**
|
|
310
312
|
* This ID should be used the first time you upload an attachment. It is the ID of
|
|
311
313
|
* the direct upload that was created when uploading the file to S3 via the
|
|
312
314
|
* mediaDirectUpload mutation.
|
|
313
315
|
*/
|
|
314
|
-
direct_upload_id
|
|
316
|
+
direct_upload_id: string;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* Input for an attachment
|
|
321
|
+
*/
|
|
322
|
+
export interface AttachmentInputWithID {
|
|
323
|
+
/**
|
|
324
|
+
* The ID of an existing attachment object. Use this when updating a resource and
|
|
325
|
+
* keeping a subset of the attachments. Don't use this unless you know what you're
|
|
326
|
+
* doing.
|
|
327
|
+
*/
|
|
328
|
+
id: string;
|
|
315
329
|
}
|
|
316
330
|
}
|
|
317
331
|
|
|
@@ -256,10 +256,11 @@ export type PaymentMethodTypes =
|
|
|
256
256
|
| 'id_bank_transfer'
|
|
257
257
|
| 'demo_pay'
|
|
258
258
|
| 'shop_pay'
|
|
259
|
-
| 'apple'
|
|
260
259
|
| 'sezzle'
|
|
261
260
|
| 'coinbase'
|
|
262
261
|
| 'splitit'
|
|
262
|
+
| 'platform_balance'
|
|
263
|
+
| 'apple'
|
|
263
264
|
| 'unknown';
|
|
264
265
|
|
|
265
266
|
/**
|
|
@@ -341,6 +342,12 @@ export interface PaymentListResponse {
|
|
|
341
342
|
*/
|
|
342
343
|
membership: PaymentListResponse.Membership | null;
|
|
343
344
|
|
|
345
|
+
/**
|
|
346
|
+
* The custom metadata stored on this payment. This will be copied the checkout
|
|
347
|
+
* configuration for which this payment was made
|
|
348
|
+
*/
|
|
349
|
+
metadata: { [key: string]: unknown } | null;
|
|
350
|
+
|
|
344
351
|
/**
|
|
345
352
|
* The datetime the payment was paid
|
|
346
353
|
*/
|
package/src/resources/plans.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../core/resource';
|
|
4
|
+
import * as PaymentsAPI from './payments';
|
|
4
5
|
import * as Shared from './shared';
|
|
5
6
|
import { APIPromise } from '../core/api-promise';
|
|
6
7
|
import { CursorPage, type CursorPageParams, PagePromise } from '../core/pagination';
|
|
@@ -175,6 +176,11 @@ export interface PlanListResponse {
|
|
|
175
176
|
*/
|
|
176
177
|
member_count: number | null;
|
|
177
178
|
|
|
179
|
+
/**
|
|
180
|
+
* The explicit payment method configuration for the plan, if any.
|
|
181
|
+
*/
|
|
182
|
+
payment_method_configuration: PlanListResponse.PaymentMethodConfiguration | null;
|
|
183
|
+
|
|
178
184
|
/**
|
|
179
185
|
* Indicates if the plan is a one time payment or recurring.
|
|
180
186
|
*/
|
|
@@ -257,6 +263,32 @@ export namespace PlanListResponse {
|
|
|
257
263
|
id: string;
|
|
258
264
|
}
|
|
259
265
|
|
|
266
|
+
/**
|
|
267
|
+
* The explicit payment method configuration for the plan, if any.
|
|
268
|
+
*/
|
|
269
|
+
export interface PaymentMethodConfiguration {
|
|
270
|
+
/**
|
|
271
|
+
* An array of payment method identifiers that are explicitly disabled. Only
|
|
272
|
+
* applies if the include_platform_defaults is true.
|
|
273
|
+
*/
|
|
274
|
+
disabled: Array<PaymentsAPI.PaymentMethodTypes>;
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* An array of payment method identifiers that are explicitly enabled. This means
|
|
278
|
+
* these payment methods will be shown on checkout. Example use case is to only
|
|
279
|
+
* enable a specific payment method like cashapp, or extending the platform
|
|
280
|
+
* defaults with additional methods.
|
|
281
|
+
*/
|
|
282
|
+
enabled: Array<PaymentsAPI.PaymentMethodTypes>;
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* Whether Whop's platform default payment method enablement settings are included
|
|
286
|
+
* in this configuration. The full list of default payment methods can be found in
|
|
287
|
+
* the documentation at docs.whop.com/payments.
|
|
288
|
+
*/
|
|
289
|
+
include_platform_defaults: boolean;
|
|
290
|
+
}
|
|
291
|
+
|
|
260
292
|
/**
|
|
261
293
|
* The access pass for the plan.
|
|
262
294
|
*/
|
|
@@ -317,7 +349,7 @@ export interface PlanCreateParams {
|
|
|
317
349
|
/**
|
|
318
350
|
* An image for the plan. This will be visible on the product page to customers.
|
|
319
351
|
*/
|
|
320
|
-
image?: PlanCreateParams.
|
|
352
|
+
image?: PlanCreateParams.AttachmentInputWithDirectUploadID | PlanCreateParams.AttachmentInputWithID | null;
|
|
321
353
|
|
|
322
354
|
/**
|
|
323
355
|
* An additional amount charged upon first purchase. Use only if a one time payment
|
|
@@ -337,6 +369,12 @@ export interface PlanCreateParams {
|
|
|
337
369
|
*/
|
|
338
370
|
override_tax_type?: Shared.TaxType | null;
|
|
339
371
|
|
|
372
|
+
/**
|
|
373
|
+
* The explicit payment method configuration for the plan. If not provided, the
|
|
374
|
+
* platform or company's defaults will apply.
|
|
375
|
+
*/
|
|
376
|
+
payment_method_configuration?: PlanCreateParams.PaymentMethodConfiguration | null;
|
|
377
|
+
|
|
340
378
|
/**
|
|
341
379
|
* The type of plan that can be attached to an access pass
|
|
342
380
|
*/
|
|
@@ -425,22 +463,54 @@ export namespace PlanCreateParams {
|
|
|
425
463
|
}
|
|
426
464
|
|
|
427
465
|
/**
|
|
428
|
-
*
|
|
466
|
+
* Input for an attachment
|
|
429
467
|
*/
|
|
430
|
-
export interface
|
|
468
|
+
export interface AttachmentInputWithDirectUploadID {
|
|
469
|
+
/**
|
|
470
|
+
* This ID should be used the first time you upload an attachment. It is the ID of
|
|
471
|
+
* the direct upload that was created when uploading the file to S3 via the
|
|
472
|
+
* mediaDirectUpload mutation.
|
|
473
|
+
*/
|
|
474
|
+
direct_upload_id: string;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
/**
|
|
478
|
+
* Input for an attachment
|
|
479
|
+
*/
|
|
480
|
+
export interface AttachmentInputWithID {
|
|
431
481
|
/**
|
|
432
482
|
* The ID of an existing attachment object. Use this when updating a resource and
|
|
433
483
|
* keeping a subset of the attachments. Don't use this unless you know what you're
|
|
434
484
|
* doing.
|
|
435
485
|
*/
|
|
436
|
-
id
|
|
486
|
+
id: string;
|
|
487
|
+
}
|
|
437
488
|
|
|
489
|
+
/**
|
|
490
|
+
* The explicit payment method configuration for the plan. If not provided, the
|
|
491
|
+
* platform or company's defaults will apply.
|
|
492
|
+
*/
|
|
493
|
+
export interface PaymentMethodConfiguration {
|
|
438
494
|
/**
|
|
439
|
-
*
|
|
440
|
-
*
|
|
441
|
-
* mediaDirectUpload mutation.
|
|
495
|
+
* An array of payment method identifiers that are explicitly disabled. Only
|
|
496
|
+
* applies if the include_platform_defaults is true.
|
|
442
497
|
*/
|
|
443
|
-
|
|
498
|
+
disabled: Array<PaymentsAPI.PaymentMethodTypes>;
|
|
499
|
+
|
|
500
|
+
/**
|
|
501
|
+
* An array of payment method identifiers that are explicitly enabled. This means
|
|
502
|
+
* these payment methods will be shown on checkout. Example use case is to only
|
|
503
|
+
* enable a specific payment method like cashapp, or extending the platform
|
|
504
|
+
* defaults with additional methods.
|
|
505
|
+
*/
|
|
506
|
+
enabled: Array<PaymentsAPI.PaymentMethodTypes>;
|
|
507
|
+
|
|
508
|
+
/**
|
|
509
|
+
* Whether Whop's platform default payment method enablement settings are included
|
|
510
|
+
* in this configuration. The full list of default payment methods can be found in
|
|
511
|
+
* the documentation at docs.whop.com/payments.
|
|
512
|
+
*/
|
|
513
|
+
include_platform_defaults: boolean;
|
|
444
514
|
}
|
|
445
515
|
}
|
|
446
516
|
|
|
@@ -473,7 +543,7 @@ export interface PlanUpdateParams {
|
|
|
473
543
|
/**
|
|
474
544
|
* An image for the plan. This will be visible on the product page to customers.
|
|
475
545
|
*/
|
|
476
|
-
image?: PlanUpdateParams.
|
|
546
|
+
image?: PlanUpdateParams.AttachmentInputWithDirectUploadID | PlanUpdateParams.AttachmentInputWithID | null;
|
|
477
547
|
|
|
478
548
|
/**
|
|
479
549
|
* An additional amount charged upon first purchase.
|
|
@@ -496,6 +566,12 @@ export interface PlanUpdateParams {
|
|
|
496
566
|
*/
|
|
497
567
|
override_tax_type?: Shared.TaxType | null;
|
|
498
568
|
|
|
569
|
+
/**
|
|
570
|
+
* The explicit payment method configuration for the plan. If sent as null, the
|
|
571
|
+
* custom configuration will be removed.
|
|
572
|
+
*/
|
|
573
|
+
payment_method_configuration?: PlanUpdateParams.PaymentMethodConfiguration | null;
|
|
574
|
+
|
|
499
575
|
/**
|
|
500
576
|
* The amount the customer is charged every billing period.
|
|
501
577
|
*/
|
|
@@ -573,22 +649,54 @@ export namespace PlanUpdateParams {
|
|
|
573
649
|
}
|
|
574
650
|
|
|
575
651
|
/**
|
|
576
|
-
*
|
|
652
|
+
* Input for an attachment
|
|
653
|
+
*/
|
|
654
|
+
export interface AttachmentInputWithDirectUploadID {
|
|
655
|
+
/**
|
|
656
|
+
* This ID should be used the first time you upload an attachment. It is the ID of
|
|
657
|
+
* the direct upload that was created when uploading the file to S3 via the
|
|
658
|
+
* mediaDirectUpload mutation.
|
|
659
|
+
*/
|
|
660
|
+
direct_upload_id: string;
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
/**
|
|
664
|
+
* Input for an attachment
|
|
577
665
|
*/
|
|
578
|
-
export interface
|
|
666
|
+
export interface AttachmentInputWithID {
|
|
579
667
|
/**
|
|
580
668
|
* The ID of an existing attachment object. Use this when updating a resource and
|
|
581
669
|
* keeping a subset of the attachments. Don't use this unless you know what you're
|
|
582
670
|
* doing.
|
|
583
671
|
*/
|
|
584
|
-
id
|
|
672
|
+
id: string;
|
|
673
|
+
}
|
|
585
674
|
|
|
675
|
+
/**
|
|
676
|
+
* The explicit payment method configuration for the plan. If sent as null, the
|
|
677
|
+
* custom configuration will be removed.
|
|
678
|
+
*/
|
|
679
|
+
export interface PaymentMethodConfiguration {
|
|
586
680
|
/**
|
|
587
|
-
*
|
|
588
|
-
*
|
|
589
|
-
|
|
681
|
+
* An array of payment method identifiers that are explicitly disabled. Only
|
|
682
|
+
* applies if the include_platform_defaults is true.
|
|
683
|
+
*/
|
|
684
|
+
disabled: Array<PaymentsAPI.PaymentMethodTypes>;
|
|
685
|
+
|
|
686
|
+
/**
|
|
687
|
+
* An array of payment method identifiers that are explicitly enabled. This means
|
|
688
|
+
* these payment methods will be shown on checkout. Example use case is to only
|
|
689
|
+
* enable a specific payment method like cashapp, or extending the platform
|
|
690
|
+
* defaults with additional methods.
|
|
691
|
+
*/
|
|
692
|
+
enabled: Array<PaymentsAPI.PaymentMethodTypes>;
|
|
693
|
+
|
|
694
|
+
/**
|
|
695
|
+
* Whether Whop's platform default payment method enablement settings are included
|
|
696
|
+
* in this configuration. The full list of default payment methods can be found in
|
|
697
|
+
* the documentation at docs.whop.com/payments.
|
|
590
698
|
*/
|
|
591
|
-
|
|
699
|
+
include_platform_defaults: boolean;
|
|
592
700
|
}
|
|
593
701
|
}
|
|
594
702
|
|
|
@@ -333,7 +333,10 @@ export interface ProductUpdateParams {
|
|
|
333
333
|
/**
|
|
334
334
|
* A banner image for the product in png, jpeg format
|
|
335
335
|
*/
|
|
336
|
-
banner_image?:
|
|
336
|
+
banner_image?:
|
|
337
|
+
| ProductUpdateParams.AttachmentInputWithDirectUploadID
|
|
338
|
+
| ProductUpdateParams.AttachmentInputWithID
|
|
339
|
+
| null;
|
|
337
340
|
|
|
338
341
|
/**
|
|
339
342
|
* The different business types a company can be.
|
|
@@ -430,22 +433,27 @@ export interface ProductUpdateParams {
|
|
|
430
433
|
|
|
431
434
|
export namespace ProductUpdateParams {
|
|
432
435
|
/**
|
|
433
|
-
*
|
|
436
|
+
* Input for an attachment
|
|
434
437
|
*/
|
|
435
|
-
export interface
|
|
436
|
-
/**
|
|
437
|
-
* The ID of an existing attachment object. Use this when updating a resource and
|
|
438
|
-
* keeping a subset of the attachments. Don't use this unless you know what you're
|
|
439
|
-
* doing.
|
|
440
|
-
*/
|
|
441
|
-
id?: string | null;
|
|
442
|
-
|
|
438
|
+
export interface AttachmentInputWithDirectUploadID {
|
|
443
439
|
/**
|
|
444
440
|
* This ID should be used the first time you upload an attachment. It is the ID of
|
|
445
441
|
* the direct upload that was created when uploading the file to S3 via the
|
|
446
442
|
* mediaDirectUpload mutation.
|
|
447
443
|
*/
|
|
448
|
-
direct_upload_id
|
|
444
|
+
direct_upload_id: string;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
/**
|
|
448
|
+
* Input for an attachment
|
|
449
|
+
*/
|
|
450
|
+
export interface AttachmentInputWithID {
|
|
451
|
+
/**
|
|
452
|
+
* The ID of an existing attachment object. Use this when updating a resource and
|
|
453
|
+
* keeping a subset of the attachments. Don't use this unless you know what you're
|
|
454
|
+
* doing.
|
|
455
|
+
*/
|
|
456
|
+
id: string;
|
|
449
457
|
}
|
|
450
458
|
|
|
451
459
|
/**
|
package/src/resources/shared.ts
CHANGED
|
@@ -557,6 +557,12 @@ export interface Company {
|
|
|
557
557
|
*/
|
|
558
558
|
member_count: number;
|
|
559
559
|
|
|
560
|
+
/**
|
|
561
|
+
* A key-value store of data for the account, created/updated by the platform that
|
|
562
|
+
* made the account.
|
|
563
|
+
*/
|
|
564
|
+
metadata: { [key: string]: unknown } | null;
|
|
565
|
+
|
|
560
566
|
/**
|
|
561
567
|
* The user who owns this company
|
|
562
568
|
*/
|
|
@@ -2094,6 +2100,12 @@ export interface Payment {
|
|
|
2094
2100
|
*/
|
|
2095
2101
|
membership: Payment.Membership | null;
|
|
2096
2102
|
|
|
2103
|
+
/**
|
|
2104
|
+
* The custom metadata stored on this payment. This will be copied the checkout
|
|
2105
|
+
* configuration for which this payment was made
|
|
2106
|
+
*/
|
|
2107
|
+
metadata: { [key: string]: unknown } | null;
|
|
2108
|
+
|
|
2097
2109
|
/**
|
|
2098
2110
|
* The datetime the payment was paid
|
|
2099
2111
|
*/
|
|
@@ -2430,6 +2442,11 @@ export interface Plan {
|
|
|
2430
2442
|
*/
|
|
2431
2443
|
member_count: number | null;
|
|
2432
2444
|
|
|
2445
|
+
/**
|
|
2446
|
+
* The explicit payment method configuration for the plan, if any.
|
|
2447
|
+
*/
|
|
2448
|
+
payment_method_configuration: Plan.PaymentMethodConfiguration | null;
|
|
2449
|
+
|
|
2433
2450
|
/**
|
|
2434
2451
|
* Indicates if the plan is a one time payment or recurring.
|
|
2435
2452
|
*/
|
|
@@ -2552,6 +2569,32 @@ export namespace Plan {
|
|
|
2552
2569
|
id: string;
|
|
2553
2570
|
}
|
|
2554
2571
|
|
|
2572
|
+
/**
|
|
2573
|
+
* The explicit payment method configuration for the plan, if any.
|
|
2574
|
+
*/
|
|
2575
|
+
export interface PaymentMethodConfiguration {
|
|
2576
|
+
/**
|
|
2577
|
+
* An array of payment method identifiers that are explicitly disabled. Only
|
|
2578
|
+
* applies if the include_platform_defaults is true.
|
|
2579
|
+
*/
|
|
2580
|
+
disabled: Array<PaymentsAPI.PaymentMethodTypes>;
|
|
2581
|
+
|
|
2582
|
+
/**
|
|
2583
|
+
* An array of payment method identifiers that are explicitly enabled. This means
|
|
2584
|
+
* these payment methods will be shown on checkout. Example use case is to only
|
|
2585
|
+
* enable a specific payment method like cashapp, or extending the platform
|
|
2586
|
+
* defaults with additional methods.
|
|
2587
|
+
*/
|
|
2588
|
+
enabled: Array<PaymentsAPI.PaymentMethodTypes>;
|
|
2589
|
+
|
|
2590
|
+
/**
|
|
2591
|
+
* Whether Whop's platform default payment method enablement settings are included
|
|
2592
|
+
* in this configuration. The full list of default payment methods can be found in
|
|
2593
|
+
* the documentation at docs.whop.com/payments.
|
|
2594
|
+
*/
|
|
2595
|
+
include_platform_defaults: boolean;
|
|
2596
|
+
}
|
|
2597
|
+
|
|
2555
2598
|
/**
|
|
2556
2599
|
* The access pass for the plan.
|
|
2557
2600
|
*/
|
|
@@ -3196,6 +3239,11 @@ export interface Transfer {
|
|
|
3196
3239
|
*/
|
|
3197
3240
|
fee_amount: number | null;
|
|
3198
3241
|
|
|
3242
|
+
/**
|
|
3243
|
+
* A hash of metadata attached to the transfer
|
|
3244
|
+
*/
|
|
3245
|
+
metadata: { [key: string]: unknown } | null;
|
|
3246
|
+
|
|
3199
3247
|
/**
|
|
3200
3248
|
* The notes of the credit transaction transfer
|
|
3201
3249
|
*/
|
|
@@ -106,6 +106,11 @@ export interface TransferListResponse {
|
|
|
106
106
|
*/
|
|
107
107
|
fee_amount: number | null;
|
|
108
108
|
|
|
109
|
+
/**
|
|
110
|
+
* A hash of metadata attached to the transfer
|
|
111
|
+
*/
|
|
112
|
+
metadata: { [key: string]: unknown } | null;
|
|
113
|
+
|
|
109
114
|
/**
|
|
110
115
|
* The notes of the credit transaction transfer
|
|
111
116
|
*/
|
|
@@ -145,6 +150,11 @@ export interface TransferCreateParams {
|
|
|
145
150
|
*/
|
|
146
151
|
idempotence_key?: string | null;
|
|
147
152
|
|
|
153
|
+
/**
|
|
154
|
+
* A hash of metadata to attach to the transfer.
|
|
155
|
+
*/
|
|
156
|
+
metadata?: { [key: string]: unknown } | null;
|
|
157
|
+
|
|
148
158
|
/**
|
|
149
159
|
* Notes for the transfer. Maximum of 50 characters.
|
|
150
160
|
*/
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.0.
|
|
1
|
+
export const VERSION = '0.0.4'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.0.
|
|
1
|
+
export declare const VERSION = "0.0.4";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.0.
|
|
1
|
+
export declare const VERSION = "0.0.4";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.0.
|
|
1
|
+
export const VERSION = '0.0.4'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|