@whop/sdk 0.0.7 → 0.0.9
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 +36 -0
- package/client.d.mts +19 -10
- package/client.d.mts.map +1 -1
- package/client.d.ts +19 -10
- package/client.d.ts.map +1 -1
- package/client.js +9 -0
- package/client.js.map +1 -1
- package/client.mjs +9 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/account-links.d.mts +59 -0
- package/resources/account-links.d.mts.map +1 -0
- package/resources/account-links.d.ts +59 -0
- package/resources/account-links.d.ts.map +1 -0
- package/resources/account-links.js +27 -0
- package/resources/account-links.js.map +1 -0
- package/resources/account-links.mjs +23 -0
- package/resources/account-links.mjs.map +1 -0
- package/resources/app-builds.d.mts +8 -0
- package/resources/app-builds.d.mts.map +1 -1
- package/resources/app-builds.d.ts +8 -0
- package/resources/app-builds.d.ts.map +1 -1
- package/resources/apps.d.mts +18 -2
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +18 -2
- package/resources/apps.d.ts.map +1 -1
- package/resources/authorized-users.d.mts +8 -0
- package/resources/authorized-users.d.mts.map +1 -1
- package/resources/authorized-users.d.ts +8 -0
- package/resources/authorized-users.d.ts.map +1 -1
- package/resources/checkout-configurations.d.mts +173 -8
- package/resources/checkout-configurations.d.mts.map +1 -1
- package/resources/checkout-configurations.d.ts +173 -8
- package/resources/checkout-configurations.d.ts.map +1 -1
- package/resources/checkout-configurations.js +1 -0
- package/resources/checkout-configurations.js.map +1 -1
- package/resources/checkout-configurations.mjs +1 -0
- package/resources/checkout-configurations.mjs.map +1 -1
- package/resources/companies.d.mts +8 -0
- package/resources/companies.d.mts.map +1 -1
- package/resources/companies.d.ts +8 -0
- package/resources/companies.d.ts.map +1 -1
- package/resources/course-lessons.d.mts +199 -1
- package/resources/course-lessons.d.mts.map +1 -1
- package/resources/course-lessons.d.ts +199 -1
- package/resources/course-lessons.d.ts.map +1 -1
- package/resources/course-lessons.js +40 -0
- package/resources/course-lessons.js.map +1 -1
- package/resources/course-lessons.mjs +40 -0
- package/resources/course-lessons.mjs.map +1 -1
- package/resources/courses.d.mts +8 -0
- package/resources/courses.d.mts.map +1 -1
- package/resources/courses.d.ts +8 -0
- package/resources/courses.d.ts.map +1 -1
- package/resources/disputes.d.mts +8 -0
- package/resources/disputes.d.mts.map +1 -1
- package/resources/disputes.d.ts +8 -0
- package/resources/disputes.d.ts.map +1 -1
- package/resources/entries.d.mts +8 -0
- package/resources/entries.d.mts.map +1 -1
- package/resources/entries.d.ts +8 -0
- package/resources/entries.d.ts.map +1 -1
- package/resources/experiences.d.mts +8 -0
- package/resources/experiences.d.mts.map +1 -1
- package/resources/experiences.d.ts +8 -0
- package/resources/experiences.d.ts.map +1 -1
- package/resources/forum-posts.d.mts +7 -3
- package/resources/forum-posts.d.mts.map +1 -1
- package/resources/forum-posts.d.ts +7 -3
- package/resources/forum-posts.d.ts.map +1 -1
- package/resources/index.d.mts +8 -5
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +8 -5
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -1
- package/resources/invoices.d.mts +8 -0
- package/resources/invoices.d.mts.map +1 -1
- package/resources/invoices.d.ts +8 -0
- package/resources/invoices.d.ts.map +1 -1
- package/resources/payments.d.mts +1 -1
- package/resources/payments.d.mts.map +1 -1
- package/resources/payments.d.ts +1 -1
- package/resources/payments.d.ts.map +1 -1
- package/resources/plans.d.mts +9 -11
- package/resources/plans.d.mts.map +1 -1
- package/resources/plans.d.ts +9 -11
- package/resources/plans.d.ts.map +1 -1
- package/resources/products.d.mts +8 -26
- package/resources/products.d.mts.map +1 -1
- package/resources/products.d.ts +8 -26
- package/resources/products.d.ts.map +1 -1
- package/resources/promo-codes.d.mts +8 -0
- package/resources/promo-codes.d.mts.map +1 -1
- package/resources/promo-codes.d.ts +8 -0
- package/resources/promo-codes.d.ts.map +1 -1
- package/resources/refunds.d.mts +303 -0
- package/resources/refunds.d.mts.map +1 -0
- package/resources/refunds.d.ts +303 -0
- package/resources/refunds.d.ts.map +1 -0
- package/resources/refunds.js +34 -0
- package/resources/refunds.js.map +1 -0
- package/resources/refunds.mjs +30 -0
- package/resources/refunds.mjs.map +1 -0
- package/resources/reviews.d.mts +8 -0
- package/resources/reviews.d.mts.map +1 -1
- package/resources/reviews.d.ts +8 -0
- package/resources/reviews.d.ts.map +1 -1
- package/resources/shared.d.mts +43 -2
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +43 -2
- package/resources/shared.d.ts.map +1 -1
- package/resources/transfers.d.mts +8 -0
- package/resources/transfers.d.mts.map +1 -1
- package/resources/transfers.d.ts +8 -0
- package/resources/transfers.d.ts.map +1 -1
- package/resources/webhooks.d.mts +382 -2
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +382 -2
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs.map +1 -1
- package/resources/withdrawals.d.mts +233 -0
- package/resources/withdrawals.d.mts.map +1 -0
- package/resources/withdrawals.d.ts +233 -0
- package/resources/withdrawals.d.ts.map +1 -0
- package/resources/withdrawals.js +31 -0
- package/resources/withdrawals.js.map +1 -0
- package/resources/withdrawals.mjs +27 -0
- package/resources/withdrawals.mjs.map +1 -0
- package/src/client.ts +77 -0
- package/src/resources/account-links.ts +73 -0
- package/src/resources/app-builds.ts +10 -0
- package/src/resources/apps.ts +22 -0
- package/src/resources/authorized-users.ts +10 -0
- package/src/resources/checkout-configurations.ts +199 -8
- package/src/resources/companies.ts +10 -0
- package/src/resources/course-lessons.ts +250 -0
- package/src/resources/courses.ts +10 -0
- package/src/resources/disputes.ts +10 -0
- package/src/resources/entries.ts +10 -0
- package/src/resources/experiences.ts +10 -0
- package/src/resources/forum-posts.ts +8 -2
- package/src/resources/index.ts +32 -0
- package/src/resources/invoices.ts +10 -0
- package/src/resources/payments.ts +1 -0
- package/src/resources/plans.ts +11 -13
- package/src/resources/products.ts +10 -32
- package/src/resources/promo-codes.ts +10 -0
- package/src/resources/refunds.ts +393 -0
- package/src/resources/reviews.ts +10 -0
- package/src/resources/shared.ts +49 -2
- package/src/resources/transfers.ts +10 -0
- package/src/resources/webhooks.ts +463 -1
- package/src/resources/withdrawals.ts +361 -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
|
@@ -14,6 +14,7 @@ export declare class CheckoutConfigurations extends APIResource {
|
|
|
14
14
|
* - `plan:create`
|
|
15
15
|
* - `access_pass:create`
|
|
16
16
|
* - `access_pass:update`
|
|
17
|
+
* - `checkout_configuration:basic:read`
|
|
17
18
|
*
|
|
18
19
|
* @example
|
|
19
20
|
* ```ts
|
|
@@ -42,6 +43,10 @@ export declare class CheckoutConfigurations extends APIResource {
|
|
|
42
43
|
list(query: CheckoutConfigurationListParams, options?: RequestOptions): PagePromise<CheckoutConfigurationListResponsesCursorPage, CheckoutConfigurationListResponse>;
|
|
43
44
|
}
|
|
44
45
|
export type CheckoutConfigurationListResponsesCursorPage = CursorPage<CheckoutConfigurationListResponse>;
|
|
46
|
+
/**
|
|
47
|
+
* The different modes a checkout can be set to.
|
|
48
|
+
*/
|
|
49
|
+
export type CheckoutModes = 'payment' | 'setup';
|
|
45
50
|
/**
|
|
46
51
|
* A checkout configuration object.
|
|
47
52
|
* Can be used to create a reusable custom configuration for a checkout, including attaching plans, affiliates and custom metadata to the checkout.
|
|
@@ -66,11 +71,21 @@ export interface CheckoutConfigurationListResponse {
|
|
|
66
71
|
*/
|
|
67
72
|
metadata: {
|
|
68
73
|
[key: string]: unknown;
|
|
69
|
-
};
|
|
74
|
+
} | null;
|
|
75
|
+
/**
|
|
76
|
+
* The mode of the checkout session.
|
|
77
|
+
*/
|
|
78
|
+
mode: CheckoutModes;
|
|
79
|
+
/**
|
|
80
|
+
* The explicit payment method configuration for the session, if any. This
|
|
81
|
+
* currently only works in 'setup' mode. Use the plan's
|
|
82
|
+
* payment_method_configuration for payment method.
|
|
83
|
+
*/
|
|
84
|
+
payment_method_configuration: CheckoutConfigurationListResponse.PaymentMethodConfiguration | null;
|
|
70
85
|
/**
|
|
71
86
|
* The plan to use for the checkout configuration
|
|
72
87
|
*/
|
|
73
|
-
plan: CheckoutConfigurationListResponse.Plan;
|
|
88
|
+
plan: CheckoutConfigurationListResponse.Plan | null;
|
|
74
89
|
/**
|
|
75
90
|
* A URL you can send to customers to complete a checkout. It looks like
|
|
76
91
|
* `/checkout/plan_xxxx?session={id}`
|
|
@@ -82,6 +97,31 @@ export interface CheckoutConfigurationListResponse {
|
|
|
82
97
|
redirect_url: string | null;
|
|
83
98
|
}
|
|
84
99
|
export declare namespace CheckoutConfigurationListResponse {
|
|
100
|
+
/**
|
|
101
|
+
* The explicit payment method configuration for the session, if any. This
|
|
102
|
+
* currently only works in 'setup' mode. Use the plan's
|
|
103
|
+
* payment_method_configuration for payment method.
|
|
104
|
+
*/
|
|
105
|
+
interface PaymentMethodConfiguration {
|
|
106
|
+
/**
|
|
107
|
+
* An array of payment method identifiers that are explicitly disabled. Only
|
|
108
|
+
* applies if the include_platform_defaults is true.
|
|
109
|
+
*/
|
|
110
|
+
disabled: Array<PaymentsAPI.PaymentMethodTypes>;
|
|
111
|
+
/**
|
|
112
|
+
* An array of payment method identifiers that are explicitly enabled. This means
|
|
113
|
+
* these payment methods will be shown on checkout. Example use case is to only
|
|
114
|
+
* enable a specific payment method like cashapp, or extending the platform
|
|
115
|
+
* defaults with additional methods.
|
|
116
|
+
*/
|
|
117
|
+
enabled: Array<PaymentsAPI.PaymentMethodTypes>;
|
|
118
|
+
/**
|
|
119
|
+
* Whether Whop's platform default payment method enablement settings are included
|
|
120
|
+
* in this configuration. The full list of default payment methods can be found in
|
|
121
|
+
* the documentation at docs.whop.com/payments.
|
|
122
|
+
*/
|
|
123
|
+
include_platform_defaults: boolean;
|
|
124
|
+
}
|
|
85
125
|
/**
|
|
86
126
|
* The plan to use for the checkout configuration
|
|
87
127
|
*/
|
|
@@ -128,13 +168,13 @@ export declare namespace CheckoutConfigurationListResponse {
|
|
|
128
168
|
visibility: Shared.Visibility;
|
|
129
169
|
}
|
|
130
170
|
}
|
|
131
|
-
export type CheckoutConfigurationCreateParams = CheckoutConfigurationCreateParams.
|
|
171
|
+
export type CheckoutConfigurationCreateParams = CheckoutConfigurationCreateParams.CreateCheckoutSessionInputModePaymentWithPlan | CheckoutConfigurationCreateParams.CreateCheckoutSessionInputModePaymentWithPlanID | CheckoutConfigurationCreateParams.CreateCheckoutSessionInputModeSetup;
|
|
132
172
|
export declare namespace CheckoutConfigurationCreateParams {
|
|
133
|
-
interface
|
|
173
|
+
interface CreateCheckoutSessionInputModePaymentWithPlan {
|
|
134
174
|
/**
|
|
135
175
|
* Pass this object to create a new plan for this checkout configuration
|
|
136
176
|
*/
|
|
137
|
-
plan:
|
|
177
|
+
plan: CreateCheckoutSessionInputModePaymentWithPlan.Plan;
|
|
138
178
|
/**
|
|
139
179
|
* The affiliate code to use for the checkout configuration
|
|
140
180
|
*/
|
|
@@ -145,12 +185,19 @@ export declare namespace CheckoutConfigurationCreateParams {
|
|
|
145
185
|
metadata?: {
|
|
146
186
|
[key: string]: unknown;
|
|
147
187
|
} | null;
|
|
188
|
+
mode?: 'payment';
|
|
189
|
+
/**
|
|
190
|
+
* This currently only works for configurations made in 'setup' mode. The explicit
|
|
191
|
+
* payment method configuration for the checkout session. If not provided, the
|
|
192
|
+
* platform or company's defaults will apply.
|
|
193
|
+
*/
|
|
194
|
+
payment_method_configuration?: CreateCheckoutSessionInputModePaymentWithPlan.PaymentMethodConfiguration | null;
|
|
148
195
|
/**
|
|
149
196
|
* The URL to redirect the user to after the checkout configuration is created
|
|
150
197
|
*/
|
|
151
198
|
redirect_url?: string | null;
|
|
152
199
|
}
|
|
153
|
-
namespace
|
|
200
|
+
namespace CreateCheckoutSessionInputModePaymentWithPlan {
|
|
154
201
|
/**
|
|
155
202
|
* Pass this object to create a new plan for this checkout configuration
|
|
156
203
|
*/
|
|
@@ -380,8 +427,33 @@ export declare namespace CheckoutConfigurationCreateParams {
|
|
|
380
427
|
visibility?: Shared.Visibility | null;
|
|
381
428
|
}
|
|
382
429
|
}
|
|
430
|
+
/**
|
|
431
|
+
* This currently only works for configurations made in 'setup' mode. The explicit
|
|
432
|
+
* payment method configuration for the checkout session. If not provided, the
|
|
433
|
+
* platform or company's defaults will apply.
|
|
434
|
+
*/
|
|
435
|
+
interface PaymentMethodConfiguration {
|
|
436
|
+
/**
|
|
437
|
+
* An array of payment method identifiers that are explicitly disabled. Only
|
|
438
|
+
* applies if the include_platform_defaults is true.
|
|
439
|
+
*/
|
|
440
|
+
disabled: Array<PaymentsAPI.PaymentMethodTypes>;
|
|
441
|
+
/**
|
|
442
|
+
* An array of payment method identifiers that are explicitly enabled. This means
|
|
443
|
+
* these payment methods will be shown on checkout. Example use case is to only
|
|
444
|
+
* enable a specific payment method like cashapp, or extending the platform
|
|
445
|
+
* defaults with additional methods.
|
|
446
|
+
*/
|
|
447
|
+
enabled: Array<PaymentsAPI.PaymentMethodTypes>;
|
|
448
|
+
/**
|
|
449
|
+
* Whether Whop's platform default payment method enablement settings are included
|
|
450
|
+
* in this configuration. The full list of default payment methods can be found in
|
|
451
|
+
* the documentation at docs.whop.com/payments.
|
|
452
|
+
*/
|
|
453
|
+
include_platform_defaults: boolean;
|
|
454
|
+
}
|
|
383
455
|
}
|
|
384
|
-
interface
|
|
456
|
+
interface CreateCheckoutSessionInputModePaymentWithPlanID {
|
|
385
457
|
/**
|
|
386
458
|
* The ID of the plan to use for the checkout configuration
|
|
387
459
|
*/
|
|
@@ -396,11 +468,96 @@ export declare namespace CheckoutConfigurationCreateParams {
|
|
|
396
468
|
metadata?: {
|
|
397
469
|
[key: string]: unknown;
|
|
398
470
|
} | null;
|
|
471
|
+
mode?: 'payment';
|
|
472
|
+
/**
|
|
473
|
+
* This currently only works for configurations made in 'setup' mode. The explicit
|
|
474
|
+
* payment method configuration for the checkout session. If not provided, the
|
|
475
|
+
* platform or company's defaults will apply.
|
|
476
|
+
*/
|
|
477
|
+
payment_method_configuration?: CreateCheckoutSessionInputModePaymentWithPlanID.PaymentMethodConfiguration | null;
|
|
478
|
+
/**
|
|
479
|
+
* The URL to redirect the user to after the checkout configuration is created
|
|
480
|
+
*/
|
|
481
|
+
redirect_url?: string | null;
|
|
482
|
+
}
|
|
483
|
+
namespace CreateCheckoutSessionInputModePaymentWithPlanID {
|
|
484
|
+
/**
|
|
485
|
+
* This currently only works for configurations made in 'setup' mode. The explicit
|
|
486
|
+
* payment method configuration for the checkout session. If not provided, the
|
|
487
|
+
* platform or company's defaults will apply.
|
|
488
|
+
*/
|
|
489
|
+
interface PaymentMethodConfiguration {
|
|
490
|
+
/**
|
|
491
|
+
* An array of payment method identifiers that are explicitly disabled. Only
|
|
492
|
+
* applies if the include_platform_defaults is true.
|
|
493
|
+
*/
|
|
494
|
+
disabled: Array<PaymentsAPI.PaymentMethodTypes>;
|
|
495
|
+
/**
|
|
496
|
+
* An array of payment method identifiers that are explicitly enabled. This means
|
|
497
|
+
* these payment methods will be shown on checkout. Example use case is to only
|
|
498
|
+
* enable a specific payment method like cashapp, or extending the platform
|
|
499
|
+
* defaults with additional methods.
|
|
500
|
+
*/
|
|
501
|
+
enabled: Array<PaymentsAPI.PaymentMethodTypes>;
|
|
502
|
+
/**
|
|
503
|
+
* Whether Whop's platform default payment method enablement settings are included
|
|
504
|
+
* in this configuration. The full list of default payment methods can be found in
|
|
505
|
+
* the documentation at docs.whop.com/payments.
|
|
506
|
+
*/
|
|
507
|
+
include_platform_defaults: boolean;
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
interface CreateCheckoutSessionInputModeSetup {
|
|
511
|
+
/**
|
|
512
|
+
* The ID of the company for which to generate the checkout configuration. Only
|
|
513
|
+
* required in setup mode.
|
|
514
|
+
*/
|
|
515
|
+
company_id: string;
|
|
516
|
+
mode: 'setup';
|
|
517
|
+
/**
|
|
518
|
+
* The metadata to use for the checkout configuration
|
|
519
|
+
*/
|
|
520
|
+
metadata?: {
|
|
521
|
+
[key: string]: unknown;
|
|
522
|
+
} | null;
|
|
523
|
+
/**
|
|
524
|
+
* This currently only works for configurations made in 'setup' mode. The explicit
|
|
525
|
+
* payment method configuration for the checkout session. If not provided, the
|
|
526
|
+
* platform or company's defaults will apply.
|
|
527
|
+
*/
|
|
528
|
+
payment_method_configuration?: CreateCheckoutSessionInputModeSetup.PaymentMethodConfiguration | null;
|
|
399
529
|
/**
|
|
400
530
|
* The URL to redirect the user to after the checkout configuration is created
|
|
401
531
|
*/
|
|
402
532
|
redirect_url?: string | null;
|
|
403
533
|
}
|
|
534
|
+
namespace CreateCheckoutSessionInputModeSetup {
|
|
535
|
+
/**
|
|
536
|
+
* This currently only works for configurations made in 'setup' mode. The explicit
|
|
537
|
+
* payment method configuration for the checkout session. If not provided, the
|
|
538
|
+
* platform or company's defaults will apply.
|
|
539
|
+
*/
|
|
540
|
+
interface PaymentMethodConfiguration {
|
|
541
|
+
/**
|
|
542
|
+
* An array of payment method identifiers that are explicitly disabled. Only
|
|
543
|
+
* applies if the include_platform_defaults is true.
|
|
544
|
+
*/
|
|
545
|
+
disabled: Array<PaymentsAPI.PaymentMethodTypes>;
|
|
546
|
+
/**
|
|
547
|
+
* An array of payment method identifiers that are explicitly enabled. This means
|
|
548
|
+
* these payment methods will be shown on checkout. Example use case is to only
|
|
549
|
+
* enable a specific payment method like cashapp, or extending the platform
|
|
550
|
+
* defaults with additional methods.
|
|
551
|
+
*/
|
|
552
|
+
enabled: Array<PaymentsAPI.PaymentMethodTypes>;
|
|
553
|
+
/**
|
|
554
|
+
* Whether Whop's platform default payment method enablement settings are included
|
|
555
|
+
* in this configuration. The full list of default payment methods can be found in
|
|
556
|
+
* the documentation at docs.whop.com/payments.
|
|
557
|
+
*/
|
|
558
|
+
include_platform_defaults: boolean;
|
|
559
|
+
}
|
|
560
|
+
}
|
|
404
561
|
}
|
|
405
562
|
export interface CheckoutConfigurationListParams extends CursorPageParams {
|
|
406
563
|
/**
|
|
@@ -411,6 +568,14 @@ export interface CheckoutConfigurationListParams extends CursorPageParams {
|
|
|
411
568
|
* Returns the elements in the list that come before the specified cursor.
|
|
412
569
|
*/
|
|
413
570
|
before?: string | null;
|
|
571
|
+
/**
|
|
572
|
+
* The minimum creation date to filter by
|
|
573
|
+
*/
|
|
574
|
+
created_after?: string | null;
|
|
575
|
+
/**
|
|
576
|
+
* The maximum creation date to filter by
|
|
577
|
+
*/
|
|
578
|
+
created_before?: string | null;
|
|
414
579
|
/**
|
|
415
580
|
* The direction of the sort.
|
|
416
581
|
*/
|
|
@@ -429,6 +594,6 @@ export interface CheckoutConfigurationListParams extends CursorPageParams {
|
|
|
429
594
|
plan_id?: string | null;
|
|
430
595
|
}
|
|
431
596
|
export declare namespace CheckoutConfigurations {
|
|
432
|
-
export { type CheckoutConfigurationListResponse as CheckoutConfigurationListResponse, type CheckoutConfigurationListResponsesCursorPage as CheckoutConfigurationListResponsesCursorPage, type CheckoutConfigurationCreateParams as CheckoutConfigurationCreateParams, type CheckoutConfigurationListParams as CheckoutConfigurationListParams, };
|
|
597
|
+
export { type CheckoutModes as CheckoutModes, type CheckoutConfigurationListResponse as CheckoutConfigurationListResponse, type CheckoutConfigurationListResponsesCursorPage as CheckoutConfigurationListResponsesCursorPage, type CheckoutConfigurationCreateParams as CheckoutConfigurationCreateParams, type CheckoutConfigurationListParams as CheckoutConfigurationListParams, };
|
|
433
598
|
}
|
|
434
599
|
//# sourceMappingURL=checkout-configurations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkout-configurations.d.ts","sourceRoot":"","sources":["../src/resources/checkout-configurations.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB,qBAAa,sBAAuB,SAAQ,WAAW;IACrD
|
|
1
|
+
{"version":3,"file":"checkout-configurations.d.ts","sourceRoot":"","sources":["../src/resources/checkout-configurations.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB,qBAAa,sBAAuB,SAAQ,WAAW;IACrD;;;;;;;;;;;;;;;;;;OAkBG;IACH,MAAM,CACJ,IAAI,EAAE,iCAAiC,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,MAAM,CAAC,qBAAqB,CAAC;IAI3C;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,qBAAqB,CAAC;IAIxF;;;;;;OAMG;IACH,IAAI,CACF,KAAK,EAAE,+BAA+B,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,4CAA4C,EAAE,iCAAiC,CAAC;CAOhG;AAED,MAAM,MAAM,4CAA4C,GAAG,UAAU,CAAC,iCAAiC,CAAC,CAAC;AAEzG;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,OAAO,CAAC;AAEhD;;;;;GAKG;AACH,MAAM,WAAW,iCAAiC;IAChD;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAE9B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,QAAQ,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAA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}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkout-configurations.js","sourceRoot":"","sources":["../src/resources/checkout-configurations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,sDAAoF;AAEpF,oDAA8C;AAE9C,MAAa,sBAAuB,SAAQ,sBAAW;IACrD
|
|
1
|
+
{"version":3,"file":"checkout-configurations.js","sourceRoot":"","sources":["../src/resources/checkout-configurations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,sDAAoF;AAEpF,oDAA8C;AAE9C,MAAa,sBAAuB,SAAQ,sBAAW;IACrD;;;;;;;;;;;;;;;;;;OAkBG;IACH,MAAM,CACJ,IAAuC,EACvC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;OAMG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,4BAA4B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IAED;;;;;;OAMG;IACH,IAAI,CACF,KAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,0BAA0B,EAC1B,CAAA,uBAA6C,CAAA,EAC7C,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;CACF;AAvDD,wDAuDC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkout-configurations.mjs","sourceRoot":"","sources":["../src/resources/checkout-configurations.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,UAAU,EAAsC;OAElD,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,sBAAuB,SAAQ,WAAW;IACrD
|
|
1
|
+
{"version":3,"file":"checkout-configurations.mjs","sourceRoot":"","sources":["../src/resources/checkout-configurations.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,UAAU,EAAsC;OAElD,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,sBAAuB,SAAQ,WAAW;IACrD;;;;;;;;;;;;;;;;;;OAkBG;IACH,MAAM,CACJ,IAAuC,EACvC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;OAMG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,4BAA4B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IAED;;;;;;OAMG;IACH,IAAI,CACF,KAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,0BAA0B,EAC1B,CAAA,UAA6C,CAAA,EAC7C,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -153,6 +153,14 @@ export interface CompanyListParams extends CursorPageParams {
|
|
|
153
153
|
* Returns the elements in the list that come before the specified cursor.
|
|
154
154
|
*/
|
|
155
155
|
before?: string | null;
|
|
156
|
+
/**
|
|
157
|
+
* The minimum creation date to filter by
|
|
158
|
+
*/
|
|
159
|
+
created_after?: string | null;
|
|
160
|
+
/**
|
|
161
|
+
* The maximum creation date to filter by
|
|
162
|
+
*/
|
|
163
|
+
created_before?: string | null;
|
|
156
164
|
/**
|
|
157
165
|
* The direction of the sort.
|
|
158
166
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"companies.d.mts","sourceRoot":"","sources":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AE9B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,SAAS,GAAG,IAAI,CAAC;IAEpC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
package/resources/companies.d.ts
CHANGED
|
@@ -153,6 +153,14 @@ export interface CompanyListParams extends CursorPageParams {
|
|
|
153
153
|
* Returns the elements in the list that come before the specified cursor.
|
|
154
154
|
*/
|
|
155
155
|
before?: string | null;
|
|
156
|
+
/**
|
|
157
|
+
* The minimum creation date to filter by
|
|
158
|
+
*/
|
|
159
|
+
created_after?: string | null;
|
|
160
|
+
/**
|
|
161
|
+
* The maximum creation date to filter by
|
|
162
|
+
*/
|
|
163
|
+
created_before?: string | null;
|
|
156
164
|
/**
|
|
157
165
|
* The direction of the sort.
|
|
158
166
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"companies.d.ts","sourceRoot":"","sources":["../src/resources/companies.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;OAOG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAA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EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -81,6 +81,40 @@ export declare class CourseLessons extends APIResource {
|
|
|
81
81
|
* ```
|
|
82
82
|
*/
|
|
83
83
|
delete(id: string, options?: RequestOptions): APIPromise<CourseLessonDeleteResponse>;
|
|
84
|
+
/**
|
|
85
|
+
* Marks a course lesson as completed
|
|
86
|
+
*
|
|
87
|
+
* @example
|
|
88
|
+
* ```ts
|
|
89
|
+
* const response = await client.courseLessons.markAsCompleted(
|
|
90
|
+
* 'lesson_id',
|
|
91
|
+
* );
|
|
92
|
+
* ```
|
|
93
|
+
*/
|
|
94
|
+
markAsCompleted(lessonID: string, options?: RequestOptions): APIPromise<CourseLessonMarkAsCompletedResponse>;
|
|
95
|
+
/**
|
|
96
|
+
* Starts a course lesson
|
|
97
|
+
*
|
|
98
|
+
* @example
|
|
99
|
+
* ```ts
|
|
100
|
+
* const response = await client.courseLessons.start(
|
|
101
|
+
* 'lesson_id',
|
|
102
|
+
* );
|
|
103
|
+
* ```
|
|
104
|
+
*/
|
|
105
|
+
start(lessonID: string, options?: RequestOptions): APIPromise<CourseLessonStartResponse>;
|
|
106
|
+
/**
|
|
107
|
+
* Submits answers for a course assessment
|
|
108
|
+
*
|
|
109
|
+
* @example
|
|
110
|
+
* ```ts
|
|
111
|
+
* const response =
|
|
112
|
+
* await client.courseLessons.submitAssessment('lesson_id', {
|
|
113
|
+
* answers: [{ question_id: 'question_id' }],
|
|
114
|
+
* });
|
|
115
|
+
* ```
|
|
116
|
+
*/
|
|
117
|
+
submitAssessment(lessonID: string, body: CourseLessonSubmitAssessmentParams, options?: RequestOptions): APIPromise<CourseLessonSubmitAssessmentResponse>;
|
|
84
118
|
}
|
|
85
119
|
export type CourseLessonListResponsesCursorPage = CursorPage<CourseLessonListResponse>;
|
|
86
120
|
/**
|
|
@@ -111,6 +145,10 @@ export interface Lesson {
|
|
|
111
145
|
* The content of the lesson
|
|
112
146
|
*/
|
|
113
147
|
content: string | null;
|
|
148
|
+
/**
|
|
149
|
+
* The timestamp of when the lesson was created
|
|
150
|
+
*/
|
|
151
|
+
created_at: string;
|
|
114
152
|
/**
|
|
115
153
|
* Number of days from course start until the lesson is unlocked
|
|
116
154
|
*/
|
|
@@ -304,10 +342,50 @@ export declare namespace Lesson {
|
|
|
304
342
|
* The Mux-provided ID of the asset
|
|
305
343
|
*/
|
|
306
344
|
asset_id: string | null;
|
|
345
|
+
/**
|
|
346
|
+
* Whether this asset contains only audio
|
|
347
|
+
*/
|
|
348
|
+
audio_only: boolean;
|
|
349
|
+
/**
|
|
350
|
+
* The time at which the Mux asset was created
|
|
351
|
+
*/
|
|
352
|
+
created_at: string;
|
|
353
|
+
/**
|
|
354
|
+
* The duration of the video in seconds
|
|
355
|
+
*/
|
|
356
|
+
duration_seconds: number | null;
|
|
357
|
+
/**
|
|
358
|
+
* The time at which the video finished uploading
|
|
359
|
+
*/
|
|
360
|
+
finished_uploading_at: string | null;
|
|
307
361
|
/**
|
|
308
362
|
* The public playback ID of the Mux asset
|
|
309
363
|
*/
|
|
310
364
|
playback_id: string | null;
|
|
365
|
+
/**
|
|
366
|
+
* The signed playback ID of the Mux asset
|
|
367
|
+
*/
|
|
368
|
+
signed_playback_id: string | null;
|
|
369
|
+
/**
|
|
370
|
+
* The signed storyboard playback token of the Mux asset
|
|
371
|
+
*/
|
|
372
|
+
signed_storyboard_playback_token: string | null;
|
|
373
|
+
/**
|
|
374
|
+
* The signed thumbnail playback token of the Mux asset
|
|
375
|
+
*/
|
|
376
|
+
signed_thumbnail_playback_token: string | null;
|
|
377
|
+
/**
|
|
378
|
+
* The signed video playback token of the Mux asset
|
|
379
|
+
*/
|
|
380
|
+
signed_video_playback_token: string | null;
|
|
381
|
+
/**
|
|
382
|
+
* The status of the Mux asset
|
|
383
|
+
*/
|
|
384
|
+
status: 'uploading' | 'created' | 'ready';
|
|
385
|
+
/**
|
|
386
|
+
* The time at which the Mux asset was last updated
|
|
387
|
+
*/
|
|
388
|
+
updated_at: string;
|
|
311
389
|
}
|
|
312
390
|
}
|
|
313
391
|
/**
|
|
@@ -331,6 +409,10 @@ export interface CourseLessonListResponse {
|
|
|
331
409
|
* The content of the lesson
|
|
332
410
|
*/
|
|
333
411
|
content: string | null;
|
|
412
|
+
/**
|
|
413
|
+
* The timestamp of when the lesson was created
|
|
414
|
+
*/
|
|
415
|
+
created_at: string;
|
|
334
416
|
/**
|
|
335
417
|
* Number of days from course start until the lesson is unlocked
|
|
336
418
|
*/
|
|
@@ -381,6 +463,97 @@ export declare namespace CourseLessonListResponse {
|
|
|
381
463
|
* Represents `true` or `false` values.
|
|
382
464
|
*/
|
|
383
465
|
export type CourseLessonDeleteResponse = boolean;
|
|
466
|
+
/**
|
|
467
|
+
* Represents `true` or `false` values.
|
|
468
|
+
*/
|
|
469
|
+
export type CourseLessonMarkAsCompletedResponse = boolean;
|
|
470
|
+
/**
|
|
471
|
+
* Represents `true` or `false` values.
|
|
472
|
+
*/
|
|
473
|
+
export type CourseLessonStartResponse = boolean;
|
|
474
|
+
/**
|
|
475
|
+
* The result of a user's assessment attempt
|
|
476
|
+
*/
|
|
477
|
+
export interface CourseLessonSubmitAssessmentResponse {
|
|
478
|
+
/**
|
|
479
|
+
* The ID of the assessment result
|
|
480
|
+
*/
|
|
481
|
+
id: string;
|
|
482
|
+
/**
|
|
483
|
+
* When the assessment was taken
|
|
484
|
+
*/
|
|
485
|
+
created_at: string;
|
|
486
|
+
/**
|
|
487
|
+
* The lesson this assessment result is for
|
|
488
|
+
*/
|
|
489
|
+
lesson: CourseLessonSubmitAssessmentResponse.Lesson;
|
|
490
|
+
/**
|
|
491
|
+
* The number of correct answers
|
|
492
|
+
*/
|
|
493
|
+
result_correct: number;
|
|
494
|
+
/**
|
|
495
|
+
* The grade achieved on the assessment
|
|
496
|
+
*/
|
|
497
|
+
result_grade: number;
|
|
498
|
+
/**
|
|
499
|
+
* Array of graded questions with details
|
|
500
|
+
*/
|
|
501
|
+
result_graded_questions: {
|
|
502
|
+
[key: string]: unknown;
|
|
503
|
+
};
|
|
504
|
+
/**
|
|
505
|
+
* Whether the user achieved a passing grade
|
|
506
|
+
*/
|
|
507
|
+
result_passing_grade: boolean;
|
|
508
|
+
/**
|
|
509
|
+
* The total number of questions in the assessment
|
|
510
|
+
*/
|
|
511
|
+
result_question_count: number;
|
|
512
|
+
/**
|
|
513
|
+
* The percentage score achieved on the assessment
|
|
514
|
+
*/
|
|
515
|
+
score_percent: number;
|
|
516
|
+
/**
|
|
517
|
+
* When the assessment result was last updated
|
|
518
|
+
*/
|
|
519
|
+
updated_at: string;
|
|
520
|
+
/**
|
|
521
|
+
* The user who took the assessment
|
|
522
|
+
*/
|
|
523
|
+
user: CourseLessonSubmitAssessmentResponse.User;
|
|
524
|
+
}
|
|
525
|
+
export declare namespace CourseLessonSubmitAssessmentResponse {
|
|
526
|
+
/**
|
|
527
|
+
* The lesson this assessment result is for
|
|
528
|
+
*/
|
|
529
|
+
interface Lesson {
|
|
530
|
+
/**
|
|
531
|
+
* The ID of the lesson
|
|
532
|
+
*/
|
|
533
|
+
id: string;
|
|
534
|
+
/**
|
|
535
|
+
* The title of the lesson
|
|
536
|
+
*/
|
|
537
|
+
title: string;
|
|
538
|
+
}
|
|
539
|
+
/**
|
|
540
|
+
* The user who took the assessment
|
|
541
|
+
*/
|
|
542
|
+
interface User {
|
|
543
|
+
/**
|
|
544
|
+
* The internal ID of the user.
|
|
545
|
+
*/
|
|
546
|
+
id: string;
|
|
547
|
+
/**
|
|
548
|
+
* The name of the user from their Whop account.
|
|
549
|
+
*/
|
|
550
|
+
name: string | null;
|
|
551
|
+
/**
|
|
552
|
+
* The username of the user from their Whop account.
|
|
553
|
+
*/
|
|
554
|
+
username: string;
|
|
555
|
+
}
|
|
556
|
+
}
|
|
384
557
|
export interface CourseLessonCreateParams {
|
|
385
558
|
/**
|
|
386
559
|
* The ID of the chapter to create the lesson in
|
|
@@ -677,7 +850,32 @@ export interface CourseLessonListParams extends CursorPageParams {
|
|
|
677
850
|
*/
|
|
678
851
|
last?: number | null;
|
|
679
852
|
}
|
|
853
|
+
export interface CourseLessonSubmitAssessmentParams {
|
|
854
|
+
/**
|
|
855
|
+
* The answers to the assessment questions
|
|
856
|
+
*/
|
|
857
|
+
answers: Array<CourseLessonSubmitAssessmentParams.Answer>;
|
|
858
|
+
}
|
|
859
|
+
export declare namespace CourseLessonSubmitAssessmentParams {
|
|
860
|
+
/**
|
|
861
|
+
* Input for a single question's answer in an assessment submission
|
|
862
|
+
*/
|
|
863
|
+
interface Answer {
|
|
864
|
+
/**
|
|
865
|
+
* The ID of the question being answered
|
|
866
|
+
*/
|
|
867
|
+
question_id: string;
|
|
868
|
+
/**
|
|
869
|
+
* The text answer provided by the user (for short answer questions)
|
|
870
|
+
*/
|
|
871
|
+
answer_text?: string | null;
|
|
872
|
+
/**
|
|
873
|
+
* The IDs of the selected options (for multiple choice/select questions)
|
|
874
|
+
*/
|
|
875
|
+
selected_option_ids?: Array<string> | null;
|
|
876
|
+
}
|
|
877
|
+
}
|
|
680
878
|
export declare namespace CourseLessons {
|
|
681
|
-
export { type AssessmentQuestionTypes as AssessmentQuestionTypes, type EmbedType as EmbedType, type Lesson as Lesson, type LessonTypes as LessonTypes, type LessonVisibilities as LessonVisibilities, type CourseLessonListResponse as CourseLessonListResponse, type CourseLessonDeleteResponse as CourseLessonDeleteResponse, type CourseLessonListResponsesCursorPage as CourseLessonListResponsesCursorPage, type CourseLessonCreateParams as CourseLessonCreateParams, type CourseLessonUpdateParams as CourseLessonUpdateParams, type CourseLessonListParams as CourseLessonListParams, };
|
|
879
|
+
export { type AssessmentQuestionTypes as AssessmentQuestionTypes, type EmbedType as EmbedType, type Lesson as Lesson, type LessonTypes as LessonTypes, type LessonVisibilities as LessonVisibilities, type CourseLessonListResponse as CourseLessonListResponse, type CourseLessonDeleteResponse as CourseLessonDeleteResponse, type CourseLessonMarkAsCompletedResponse as CourseLessonMarkAsCompletedResponse, type CourseLessonStartResponse as CourseLessonStartResponse, type CourseLessonSubmitAssessmentResponse as CourseLessonSubmitAssessmentResponse, type CourseLessonListResponsesCursorPage as CourseLessonListResponsesCursorPage, type CourseLessonCreateParams as CourseLessonCreateParams, type CourseLessonUpdateParams as CourseLessonUpdateParams, type CourseLessonListParams as CourseLessonListParams, type CourseLessonSubmitAssessmentParams as CourseLessonSubmitAssessmentParams, };
|
|
682
880
|
}
|
|
683
881
|
//# sourceMappingURL=course-lessons.d.mts.map
|