@whop/sdk 0.0.8 → 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.
Files changed (114) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/client.d.mts +3 -0
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +3 -0
  5. package/client.d.ts.map +1 -1
  6. package/client.js +3 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +3 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/account-links.d.mts +59 -0
  12. package/resources/account-links.d.mts.map +1 -0
  13. package/resources/account-links.d.ts +59 -0
  14. package/resources/account-links.d.ts.map +1 -0
  15. package/resources/account-links.js +27 -0
  16. package/resources/account-links.js.map +1 -0
  17. package/resources/account-links.mjs +23 -0
  18. package/resources/account-links.mjs.map +1 -0
  19. package/resources/app-builds.d.mts +8 -0
  20. package/resources/app-builds.d.mts.map +1 -1
  21. package/resources/app-builds.d.ts +8 -0
  22. package/resources/app-builds.d.ts.map +1 -1
  23. package/resources/apps.d.mts +1 -1
  24. package/resources/apps.d.mts.map +1 -1
  25. package/resources/apps.d.ts +1 -1
  26. package/resources/apps.d.ts.map +1 -1
  27. package/resources/authorized-users.d.mts +8 -0
  28. package/resources/authorized-users.d.mts.map +1 -1
  29. package/resources/authorized-users.d.ts +8 -0
  30. package/resources/authorized-users.d.ts.map +1 -1
  31. package/resources/checkout-configurations.d.mts +8 -0
  32. package/resources/checkout-configurations.d.mts.map +1 -1
  33. package/resources/checkout-configurations.d.ts +8 -0
  34. package/resources/checkout-configurations.d.ts.map +1 -1
  35. package/resources/companies.d.mts +8 -0
  36. package/resources/companies.d.mts.map +1 -1
  37. package/resources/companies.d.ts +8 -0
  38. package/resources/companies.d.ts.map +1 -1
  39. package/resources/disputes.d.mts +8 -0
  40. package/resources/disputes.d.mts.map +1 -1
  41. package/resources/disputes.d.ts +8 -0
  42. package/resources/disputes.d.ts.map +1 -1
  43. package/resources/entries.d.mts +8 -0
  44. package/resources/entries.d.mts.map +1 -1
  45. package/resources/entries.d.ts +8 -0
  46. package/resources/entries.d.ts.map +1 -1
  47. package/resources/experiences.d.mts +8 -0
  48. package/resources/experiences.d.mts.map +1 -1
  49. package/resources/experiences.d.ts +8 -0
  50. package/resources/experiences.d.ts.map +1 -1
  51. package/resources/index.d.mts +1 -0
  52. package/resources/index.d.mts.map +1 -1
  53. package/resources/index.d.ts +1 -0
  54. package/resources/index.d.ts.map +1 -1
  55. package/resources/index.js +3 -1
  56. package/resources/index.js.map +1 -1
  57. package/resources/index.mjs +1 -0
  58. package/resources/index.mjs.map +1 -1
  59. package/resources/invoices.d.mts +8 -0
  60. package/resources/invoices.d.mts.map +1 -1
  61. package/resources/invoices.d.ts +8 -0
  62. package/resources/invoices.d.ts.map +1 -1
  63. package/resources/payments.d.mts +1 -1
  64. package/resources/payments.d.mts.map +1 -1
  65. package/resources/payments.d.ts +1 -1
  66. package/resources/payments.d.ts.map +1 -1
  67. package/resources/plans.d.mts +9 -11
  68. package/resources/plans.d.mts.map +1 -1
  69. package/resources/plans.d.ts +9 -11
  70. package/resources/plans.d.ts.map +1 -1
  71. package/resources/products.d.mts +8 -26
  72. package/resources/products.d.mts.map +1 -1
  73. package/resources/products.d.ts +8 -26
  74. package/resources/products.d.ts.map +1 -1
  75. package/resources/promo-codes.d.mts +8 -0
  76. package/resources/promo-codes.d.mts.map +1 -1
  77. package/resources/promo-codes.d.ts +8 -0
  78. package/resources/promo-codes.d.ts.map +1 -1
  79. package/resources/refunds.d.mts +8 -0
  80. package/resources/refunds.d.mts.map +1 -1
  81. package/resources/refunds.d.ts +8 -0
  82. package/resources/refunds.d.ts.map +1 -1
  83. package/resources/reviews.d.mts +8 -0
  84. package/resources/reviews.d.mts.map +1 -1
  85. package/resources/reviews.d.ts +8 -0
  86. package/resources/reviews.d.ts.map +1 -1
  87. package/resources/transfers.d.mts +8 -0
  88. package/resources/transfers.d.mts.map +1 -1
  89. package/resources/transfers.d.ts +8 -0
  90. package/resources/transfers.d.ts.map +1 -1
  91. package/src/client.ts +9 -0
  92. package/src/resources/account-links.ts +73 -0
  93. package/src/resources/app-builds.ts +10 -0
  94. package/src/resources/apps.ts +1 -0
  95. package/src/resources/authorized-users.ts +10 -0
  96. package/src/resources/checkout-configurations.ts +10 -0
  97. package/src/resources/companies.ts +10 -0
  98. package/src/resources/disputes.ts +10 -0
  99. package/src/resources/entries.ts +10 -0
  100. package/src/resources/experiences.ts +10 -0
  101. package/src/resources/index.ts +1 -0
  102. package/src/resources/invoices.ts +10 -0
  103. package/src/resources/payments.ts +1 -0
  104. package/src/resources/plans.ts +11 -13
  105. package/src/resources/products.ts +10 -32
  106. package/src/resources/promo-codes.ts +10 -0
  107. package/src/resources/refunds.ts +10 -0
  108. package/src/resources/reviews.ts +10 -0
  109. package/src/resources/transfers.ts +10 -0
  110. package/src/version.ts +1 -1
  111. package/version.d.mts +1 -1
  112. package/version.d.ts +1 -1
  113. package/version.js +1 -1
  114. package/version.mjs +1 -1
@@ -146,6 +146,16 @@ export interface AuthorizedUserListParams extends CursorPageParams {
146
146
  */
147
147
  before?: string | null;
148
148
 
149
+ /**
150
+ * The minimum creation date to filter by
151
+ */
152
+ created_after?: string | null;
153
+
154
+ /**
155
+ * The maximum creation date to filter by
156
+ */
157
+ created_before?: string | null;
158
+
149
159
  /**
150
160
  * Returns the first _n_ elements from the list.
151
161
  */
@@ -684,6 +684,16 @@ export interface CheckoutConfigurationListParams extends CursorPageParams {
684
684
  */
685
685
  before?: string | null;
686
686
 
687
+ /**
688
+ * The minimum creation date to filter by
689
+ */
690
+ created_after?: string | null;
691
+
692
+ /**
693
+ * The maximum creation date to filter by
694
+ */
695
+ created_before?: string | null;
696
+
687
697
  /**
688
698
  * The direction of the sort.
689
699
  */
@@ -190,6 +190,16 @@ export interface CompanyListParams extends CursorPageParams {
190
190
  */
191
191
  before?: string | null;
192
192
 
193
+ /**
194
+ * The minimum creation date to filter by
195
+ */
196
+ created_after?: string | null;
197
+
198
+ /**
199
+ * The maximum creation date to filter by
200
+ */
201
+ created_before?: string | null;
202
+
193
203
  /**
194
204
  * The direction of the sort.
195
205
  */
@@ -663,6 +663,16 @@ export interface DisputeListParams extends CursorPageParams {
663
663
  */
664
664
  before?: string | null;
665
665
 
666
+ /**
667
+ * The minimum creation date to filter by
668
+ */
669
+ created_after?: string | null;
670
+
671
+ /**
672
+ * The maximum creation date to filter by
673
+ */
674
+ created_before?: string | null;
675
+
666
676
  /**
667
677
  * The direction of the sort.
668
678
  */
@@ -170,6 +170,16 @@ export interface EntryListParams extends CursorPageParams {
170
170
  */
171
171
  before?: string | null;
172
172
 
173
+ /**
174
+ * The minimum creation date to filter by
175
+ */
176
+ created_after?: string | null;
177
+
178
+ /**
179
+ * The maximum creation date to filter by
180
+ */
181
+ created_before?: string | null;
182
+
173
183
  /**
174
184
  * The direction of the sort.
175
185
  */
@@ -376,6 +376,16 @@ export interface ExperienceListParams extends CursorPageParams {
376
376
  */
377
377
  before?: string | null;
378
378
 
379
+ /**
380
+ * The minimum creation date to filter by
381
+ */
382
+ created_after?: string | null;
383
+
384
+ /**
385
+ * The maximum creation date to filter by
386
+ */
387
+ created_before?: string | null;
388
+
379
389
  /**
380
390
  * Returns the first _n_ elements from the list.
381
391
  */
@@ -2,6 +2,7 @@
2
2
 
3
3
  export * from './shared';
4
4
  export { AccessTokens, type AccessTokenCreateResponse, type AccessTokenCreateParams } from './access-tokens';
5
+ export { AccountLinks, type AccountLinkCreateResponse, type AccountLinkCreateParams } from './account-links';
5
6
  export {
6
7
  AppBuilds,
7
8
  type AppBuildListResponse,
@@ -783,6 +783,16 @@ export interface InvoiceListParams extends CursorPageParams {
783
783
  */
784
784
  collection_methods?: Array<Shared.CollectionMethod> | null;
785
785
 
786
+ /**
787
+ * The minimum creation date to filter by
788
+ */
789
+ created_after?: string | null;
790
+
791
+ /**
792
+ * The maximum creation date to filter by
793
+ */
794
+ created_before?: string | null;
795
+
786
796
  /**
787
797
  * The direction of the sort.
788
798
  */
@@ -262,6 +262,7 @@ export type PaymentMethodTypes =
262
262
  | 'splitit'
263
263
  | 'platform_balance'
264
264
  | 'apple'
265
+ | 'venmo'
265
266
  | 'unknown';
266
267
 
267
268
  /**
@@ -344,7 +344,7 @@ export interface PlanCreateParams {
344
344
  description?: string | null;
345
345
 
346
346
  /**
347
- * The interval at which the plan charges (expiration plans).
347
+ * The interval at which the plan expires and revokes access (expiration plans).
348
348
  */
349
349
  expiration_days?: number | null;
350
350
 
@@ -398,18 +398,6 @@ export interface PlanCreateParams {
398
398
  */
399
399
  stock?: number | null;
400
400
 
401
- /**
402
- * The price to display with a strikethrough for the initial price. Provided as a
403
- * number in dollars. Eg: 19.99 for $19.99
404
- */
405
- strike_through_initial_price?: number | null;
406
-
407
- /**
408
- * The price to display with a strikethrough for the renewal price. Provided as a
409
- * number in dollars. Eg: 19.99 for $19.99
410
- */
411
- strike_through_renewal_price?: number | null;
412
-
413
401
  /**
414
402
  * The title of the plan. This will be visible on the product page to customers.
415
403
  */
@@ -713,6 +701,16 @@ export interface PlanListParams extends CursorPageParams {
713
701
  */
714
702
  before?: string | null;
715
703
 
704
+ /**
705
+ * The minimum creation date to filter by
706
+ */
707
+ created_after?: string | null;
708
+
709
+ /**
710
+ * The maximum creation date to filter by
711
+ */
712
+ created_before?: string | null;
713
+
716
714
  /**
717
715
  * The direction of the sort.
718
716
  */
@@ -330,14 +330,6 @@ export namespace ProductCreateParams {
330
330
  }
331
331
 
332
332
  export interface ProductUpdateParams {
333
- /**
334
- * A banner image for the product in png, jpeg format
335
- */
336
- banner_image?:
337
- | ProductUpdateParams.AttachmentInputWithDirectUploadID
338
- | ProductUpdateParams.AttachmentInputWithID
339
- | null;
340
-
341
333
  /**
342
334
  * The different business types a company can be.
343
335
  */
@@ -432,30 +424,6 @@ export interface ProductUpdateParams {
432
424
  }
433
425
 
434
426
  export namespace ProductUpdateParams {
435
- /**
436
- * Input for an attachment
437
- */
438
- export interface AttachmentInputWithDirectUploadID {
439
- /**
440
- * This ID should be used the first time you upload an attachment. It is the ID of
441
- * the direct upload that was created when uploading the file to S3 via the
442
- * mediaDirectUpload mutation.
443
- */
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;
457
- }
458
-
459
427
  /**
460
428
  * Configuration for a product on the company's store page.
461
429
  */
@@ -483,6 +451,16 @@ export interface ProductListParams extends CursorPageParams {
483
451
  */
484
452
  before?: string | null;
485
453
 
454
+ /**
455
+ * The minimum creation date to filter by
456
+ */
457
+ created_after?: string | null;
458
+
459
+ /**
460
+ * The maximum creation date to filter by
461
+ */
462
+ created_before?: string | null;
463
+
486
464
  /**
487
465
  * The direction of the sort.
488
466
  */
@@ -450,6 +450,16 @@ export interface PromoCodeListParams extends CursorPageParams {
450
450
  */
451
451
  before?: string | null;
452
452
 
453
+ /**
454
+ * The minimum creation date to filter by
455
+ */
456
+ created_after?: string | null;
457
+
458
+ /**
459
+ * The maximum creation date to filter by
460
+ */
461
+ created_before?: string | null;
462
+
453
463
  /**
454
464
  * Returns the first _n_ elements from the list.
455
465
  */
@@ -353,6 +353,16 @@ export interface RefundListParams extends CursorPageParams {
353
353
  */
354
354
  before?: string | null;
355
355
 
356
+ /**
357
+ * The minimum creation date to filter by
358
+ */
359
+ created_after?: string | null;
360
+
361
+ /**
362
+ * The maximum creation date to filter by
363
+ */
364
+ created_before?: string | null;
365
+
356
366
  /**
357
367
  * The direction of the sort.
358
368
  */
@@ -316,6 +316,16 @@ export interface ReviewListParams extends CursorPageParams {
316
316
  */
317
317
  before?: string | null;
318
318
 
319
+ /**
320
+ * The minimum creation date to filter by
321
+ */
322
+ created_after?: string | null;
323
+
324
+ /**
325
+ * The maximum creation date to filter by
326
+ */
327
+ created_before?: string | null;
328
+
319
329
  /**
320
330
  * Returns the first _n_ elements from the list.
321
331
  */
@@ -167,6 +167,16 @@ export interface TransferListParams extends CursorPageParams {
167
167
  */
168
168
  before?: string | null;
169
169
 
170
+ /**
171
+ * The minimum creation date to filter by
172
+ */
173
+ created_after?: string | null;
174
+
175
+ /**
176
+ * The maximum creation date to filter by
177
+ */
178
+ created_before?: string | null;
179
+
170
180
  /**
171
181
  * Filter transfers to only those that were sent to this destination account.
172
182
  * (user_xxx, biz_xxx, ldgr_xxx)
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.0.8'; // x-release-please-version
1
+ export const VERSION = '0.0.9'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.0.8";
1
+ export declare const VERSION = "0.0.9";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.0.8";
1
+ export declare const VERSION = "0.0.9";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.0.8'; // x-release-please-version
4
+ exports.VERSION = '0.0.9'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.0.8'; // x-release-please-version
1
+ export const VERSION = '0.0.9'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map