@whop/sdk 0.0.23 → 0.0.24

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 (112) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/client.d.mts +2 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +2 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/package.json +1 -1
  9. package/resources/app-builds.d.mts +7 -18
  10. package/resources/app-builds.d.mts.map +1 -1
  11. package/resources/app-builds.d.ts +7 -18
  12. package/resources/app-builds.d.ts.map +1 -1
  13. package/resources/app-builds.js +1 -1
  14. package/resources/app-builds.mjs +1 -1
  15. package/resources/apps.d.mts +19 -17
  16. package/resources/apps.d.mts.map +1 -1
  17. package/resources/apps.d.ts +19 -17
  18. package/resources/apps.d.ts.map +1 -1
  19. package/resources/checkout-configurations.d.mts +8 -17
  20. package/resources/checkout-configurations.d.mts.map +1 -1
  21. package/resources/checkout-configurations.d.ts +8 -17
  22. package/resources/checkout-configurations.d.ts.map +1 -1
  23. package/resources/companies.d.mts +23 -34
  24. package/resources/companies.d.mts.map +1 -1
  25. package/resources/companies.d.ts +23 -34
  26. package/resources/companies.d.ts.map +1 -1
  27. package/resources/course-lessons.d.mts +19 -84
  28. package/resources/course-lessons.d.mts.map +1 -1
  29. package/resources/course-lessons.d.ts +19 -84
  30. package/resources/course-lessons.d.ts.map +1 -1
  31. package/resources/courses.d.mts +8 -42
  32. package/resources/courses.d.mts.map +1 -1
  33. package/resources/courses.d.ts +8 -42
  34. package/resources/courses.d.ts.map +1 -1
  35. package/resources/disputes.d.mts +16 -68
  36. package/resources/disputes.d.mts.map +1 -1
  37. package/resources/disputes.d.ts +16 -68
  38. package/resources/disputes.d.ts.map +1 -1
  39. package/resources/experiences.d.mts +19 -17
  40. package/resources/experiences.d.mts.map +1 -1
  41. package/resources/experiences.d.ts +19 -17
  42. package/resources/experiences.d.ts.map +1 -1
  43. package/resources/forum-posts.d.mts +6 -32
  44. package/resources/forum-posts.d.mts.map +1 -1
  45. package/resources/forum-posts.d.ts +6 -32
  46. package/resources/forum-posts.d.ts.map +1 -1
  47. package/resources/index.d.mts +1 -1
  48. package/resources/index.d.mts.map +1 -1
  49. package/resources/index.d.ts +1 -1
  50. package/resources/index.d.ts.map +1 -1
  51. package/resources/index.js.map +1 -1
  52. package/resources/index.mjs.map +1 -1
  53. package/resources/ledger-accounts.d.mts +0 -4
  54. package/resources/ledger-accounts.d.mts.map +1 -1
  55. package/resources/ledger-accounts.d.ts +0 -4
  56. package/resources/ledger-accounts.d.ts.map +1 -1
  57. package/resources/messages.d.mts +6 -32
  58. package/resources/messages.d.mts.map +1 -1
  59. package/resources/messages.d.ts +6 -32
  60. package/resources/messages.d.ts.map +1 -1
  61. package/resources/notifications.d.mts +4 -0
  62. package/resources/notifications.d.mts.map +1 -1
  63. package/resources/notifications.d.ts +4 -0
  64. package/resources/notifications.d.ts.map +1 -1
  65. package/resources/notifications.js +4 -0
  66. package/resources/notifications.js.map +1 -1
  67. package/resources/notifications.mjs +4 -0
  68. package/resources/notifications.mjs.map +1 -1
  69. package/resources/payments.d.mts +1 -1
  70. package/resources/payments.d.mts.map +1 -1
  71. package/resources/payments.d.ts +1 -1
  72. package/resources/payments.d.ts.map +1 -1
  73. package/resources/payout-methods.d.mts +8 -0
  74. package/resources/payout-methods.d.mts.map +1 -1
  75. package/resources/payout-methods.d.ts +8 -0
  76. package/resources/payout-methods.d.ts.map +1 -1
  77. package/resources/plans.d.mts +8 -34
  78. package/resources/plans.d.mts.map +1 -1
  79. package/resources/plans.d.ts +8 -34
  80. package/resources/plans.d.ts.map +1 -1
  81. package/resources/webhooks.d.mts +6 -10
  82. package/resources/webhooks.d.mts.map +1 -1
  83. package/resources/webhooks.d.ts +6 -10
  84. package/resources/webhooks.d.ts.map +1 -1
  85. package/resources/withdrawals.d.mts +8 -19
  86. package/resources/withdrawals.d.mts.map +1 -1
  87. package/resources/withdrawals.d.ts +8 -19
  88. package/resources/withdrawals.d.ts.map +1 -1
  89. package/src/client.ts +0 -2
  90. package/src/resources/app-builds.ts +7 -21
  91. package/src/resources/apps.ts +21 -18
  92. package/src/resources/checkout-configurations.ts +9 -18
  93. package/src/resources/companies.ts +25 -42
  94. package/src/resources/course-lessons.ts +19 -104
  95. package/src/resources/courses.ts +8 -52
  96. package/src/resources/disputes.ts +16 -84
  97. package/src/resources/experiences.ts +21 -21
  98. package/src/resources/forum-posts.ts +6 -38
  99. package/src/resources/index.ts +0 -1
  100. package/src/resources/ledger-accounts.ts +0 -18
  101. package/src/resources/messages.ts +6 -38
  102. package/src/resources/notifications.ts +4 -0
  103. package/src/resources/payments.ts +16 -0
  104. package/src/resources/payout-methods.ts +10 -0
  105. package/src/resources/plans.ts +8 -36
  106. package/src/resources/webhooks.ts +7 -10
  107. package/src/resources/withdrawals.ts +8 -21
  108. package/src/version.ts +1 -1
  109. package/version.d.mts +1 -1
  110. package/version.d.ts +1 -1
  111. package/version.js +1 -1
  112. package/version.mjs +1 -1
@@ -205,6 +205,11 @@ export interface CompanyCreateParams {
205
205
  */
206
206
  industry_type?: Shared.IndustryTypes | null;
207
207
 
208
+ /**
209
+ * The logo for the company in png, jpeg, or gif format
210
+ */
211
+ logo?: CompanyCreateParams.Logo | null;
212
+
208
213
  /**
209
214
  * Additional metadata for the account
210
215
  */
@@ -219,14 +224,23 @@ export interface CompanyCreateParams {
219
224
  send_customer_emails?: boolean | null;
220
225
  }
221
226
 
227
+ export namespace CompanyCreateParams {
228
+ /**
229
+ * The logo for the company in png, jpeg, or gif format
230
+ */
231
+ export interface Logo {
232
+ /**
233
+ * The ID of an existing file object.
234
+ */
235
+ id: string;
236
+ }
237
+ }
238
+
222
239
  export interface CompanyUpdateParams {
223
240
  /**
224
241
  * The banner image for the company in png or jpeg format
225
242
  */
226
- banner_image?:
227
- | CompanyUpdateParams.AttachmentInputWithDirectUploadID
228
- | CompanyUpdateParams.AttachmentInputWithID
229
- | null;
243
+ banner_image?: CompanyUpdateParams.BannerImage | null;
230
244
 
231
245
  /**
232
246
  * The different business types a company can be.
@@ -241,10 +255,7 @@ export interface CompanyUpdateParams {
241
255
  /**
242
256
  * The logo for the company in png, jpeg, or gif format
243
257
  */
244
- logo?:
245
- | CompanyUpdateParams.AttachmentInputWithDirectUploadID
246
- | CompanyUpdateParams.AttachmentInputWithID
247
- | null;
258
+ logo?: CompanyUpdateParams.Logo | null;
248
259
 
249
260
  /**
250
261
  * Whether Whop sends transactional emails to customers on behalf of this company.
@@ -262,49 +273,21 @@ export interface CompanyUpdateParams {
262
273
 
263
274
  export namespace CompanyUpdateParams {
264
275
  /**
265
- * Input for an attachment
266
- */
267
- export interface AttachmentInputWithDirectUploadID {
268
- /**
269
- * This ID should be used the first time you upload an attachment. It is the ID of
270
- * the direct upload that was created when uploading the file to S3 via the
271
- * mediaDirectUpload mutation.
272
- */
273
- direct_upload_id: string;
274
- }
275
-
276
- /**
277
- * Input for an attachment
276
+ * The banner image for the company in png or jpeg format
278
277
  */
279
- export interface AttachmentInputWithID {
278
+ export interface BannerImage {
280
279
  /**
281
- * The ID of an existing attachment object. Use this when updating a resource and
282
- * keeping a subset of the attachments. Don't use this unless you know what you're
283
- * doing.
280
+ * The ID of an existing file object.
284
281
  */
285
282
  id: string;
286
283
  }
287
284
 
288
285
  /**
289
- * Input for an attachment
290
- */
291
- export interface AttachmentInputWithDirectUploadID {
292
- /**
293
- * This ID should be used the first time you upload an attachment. It is the ID of
294
- * the direct upload that was created when uploading the file to S3 via the
295
- * mediaDirectUpload mutation.
296
- */
297
- direct_upload_id: string;
298
- }
299
-
300
- /**
301
- * Input for an attachment
286
+ * The logo for the company in png, jpeg, or gif format
302
287
  */
303
- export interface AttachmentInputWithID {
288
+ export interface Logo {
304
289
  /**
305
- * The ID of an existing attachment object. Use this when updating a resource and
306
- * keeping a subset of the attachments. Don't use this unless you know what you're
307
- * doing.
290
+ * The ID of an existing file object.
308
291
  */
309
292
  id: string;
310
293
  }
@@ -720,10 +720,7 @@ export interface CourseLessonCreateParams {
720
720
  /**
721
721
  * The thumbnail for the lesson in png, jpeg, or gif format
722
722
  */
723
- thumbnail?:
724
- | CourseLessonCreateParams.AttachmentInputWithDirectUploadID
725
- | CourseLessonCreateParams.AttachmentInputWithID
726
- | null;
723
+ thumbnail?: CourseLessonCreateParams.Thumbnail | null;
727
724
 
728
725
  /**
729
726
  * The title of the lesson
@@ -733,25 +730,11 @@ export interface CourseLessonCreateParams {
733
730
 
734
731
  export namespace CourseLessonCreateParams {
735
732
  /**
736
- * Input for an attachment
737
- */
738
- export interface AttachmentInputWithDirectUploadID {
739
- /**
740
- * This ID should be used the first time you upload an attachment. It is the ID of
741
- * the direct upload that was created when uploading the file to S3 via the
742
- * mediaDirectUpload mutation.
743
- */
744
- direct_upload_id: string;
745
- }
746
-
747
- /**
748
- * Input for an attachment
733
+ * The thumbnail for the lesson in png, jpeg, or gif format
749
734
  */
750
- export interface AttachmentInputWithID {
735
+ export interface Thumbnail {
751
736
  /**
752
- * The ID of an existing attachment object. Use this when updating a resource and
753
- * keeping a subset of the attachments. Don't use this unless you know what you're
754
- * doing.
737
+ * The ID of an existing file object.
755
738
  */
756
739
  id: string;
757
740
  }
@@ -773,10 +756,7 @@ export interface CourseLessonUpdateParams {
773
756
  * General attachments for the lesson (PDFs, files, etc). Replaces all existing
774
757
  * attachments.
775
758
  */
776
- attachments?: Array<
777
- | CourseLessonUpdateParams.AttachmentInputWithDirectUploadID
778
- | CourseLessonUpdateParams.AttachmentInputWithID
779
- > | null;
759
+ attachments?: Array<CourseLessonUpdateParams.Attachment> | null;
780
760
 
781
761
  /**
782
762
  * The content of the lesson
@@ -806,10 +786,7 @@ export interface CourseLessonUpdateParams {
806
786
  /**
807
787
  * The main PDF file for this lesson
808
788
  */
809
- main_pdf?:
810
- | CourseLessonUpdateParams.AttachmentInputWithDirectUploadID
811
- | CourseLessonUpdateParams.AttachmentInputWithID
812
- | null;
789
+ main_pdf?: CourseLessonUpdateParams.MainPdf | null;
813
790
 
814
791
  /**
815
792
  * Maximum number of attempts allowed for assessments
@@ -824,10 +801,7 @@ export interface CourseLessonUpdateParams {
824
801
  /**
825
802
  * The thumbnail for the lesson in png, jpeg, or gif format
826
803
  */
827
- thumbnail?:
828
- | CourseLessonUpdateParams.AttachmentInputWithDirectUploadID
829
- | CourseLessonUpdateParams.AttachmentInputWithID
830
- | null;
804
+ thumbnail?: CourseLessonUpdateParams.Thumbnail | null;
831
805
 
832
806
  /**
833
807
  * The title of the lesson
@@ -887,10 +861,7 @@ export namespace CourseLessonUpdateParams {
887
861
  /**
888
862
  * Optional image attachment for the question
889
863
  */
890
- image?:
891
- | AssessmentQuestion.AttachmentInputWithDirectUploadID
892
- | AssessmentQuestion.AttachmentInputWithID
893
- | null;
864
+ image?: AssessmentQuestion.Image | null;
894
865
 
895
866
  /**
896
867
  * The answer options for multiple choice/select questions
@@ -900,25 +871,11 @@ export namespace CourseLessonUpdateParams {
900
871
 
901
872
  export namespace AssessmentQuestion {
902
873
  /**
903
- * Input for an attachment
904
- */
905
- export interface AttachmentInputWithDirectUploadID {
906
- /**
907
- * This ID should be used the first time you upload an attachment. It is the ID of
908
- * the direct upload that was created when uploading the file to S3 via the
909
- * mediaDirectUpload mutation.
910
- */
911
- direct_upload_id: string;
912
- }
913
-
914
- /**
915
- * Input for an attachment
874
+ * Optional image attachment for the question
916
875
  */
917
- export interface AttachmentInputWithID {
876
+ export interface Image {
918
877
  /**
919
- * The ID of an existing attachment object. Use this when updating a resource and
920
- * keeping a subset of the attachments. Don't use this unless you know what you're
921
- * doing.
878
+ * The ID of an existing file object.
922
879
  */
923
880
  id: string;
924
881
  }
@@ -948,71 +905,29 @@ export namespace CourseLessonUpdateParams {
948
905
  /**
949
906
  * Input for an attachment
950
907
  */
951
- export interface AttachmentInputWithDirectUploadID {
952
- /**
953
- * This ID should be used the first time you upload an attachment. It is the ID of
954
- * the direct upload that was created when uploading the file to S3 via the
955
- * mediaDirectUpload mutation.
956
- */
957
- direct_upload_id: string;
958
- }
959
-
960
- /**
961
- * Input for an attachment
962
- */
963
- export interface AttachmentInputWithID {
908
+ export interface Attachment {
964
909
  /**
965
- * The ID of an existing attachment object. Use this when updating a resource and
966
- * keeping a subset of the attachments. Don't use this unless you know what you're
967
- * doing.
910
+ * The ID of an existing file object.
968
911
  */
969
912
  id: string;
970
913
  }
971
914
 
972
915
  /**
973
- * Input for an attachment
974
- */
975
- export interface AttachmentInputWithDirectUploadID {
976
- /**
977
- * This ID should be used the first time you upload an attachment. It is the ID of
978
- * the direct upload that was created when uploading the file to S3 via the
979
- * mediaDirectUpload mutation.
980
- */
981
- direct_upload_id: string;
982
- }
983
-
984
- /**
985
- * Input for an attachment
916
+ * The main PDF file for this lesson
986
917
  */
987
- export interface AttachmentInputWithID {
918
+ export interface MainPdf {
988
919
  /**
989
- * The ID of an existing attachment object. Use this when updating a resource and
990
- * keeping a subset of the attachments. Don't use this unless you know what you're
991
- * doing.
920
+ * The ID of an existing file object.
992
921
  */
993
922
  id: string;
994
923
  }
995
924
 
996
925
  /**
997
- * Input for an attachment
998
- */
999
- export interface AttachmentInputWithDirectUploadID {
1000
- /**
1001
- * This ID should be used the first time you upload an attachment. It is the ID of
1002
- * the direct upload that was created when uploading the file to S3 via the
1003
- * mediaDirectUpload mutation.
1004
- */
1005
- direct_upload_id: string;
1006
- }
1007
-
1008
- /**
1009
- * Input for an attachment
926
+ * The thumbnail for the lesson in png, jpeg, or gif format
1010
927
  */
1011
- export interface AttachmentInputWithID {
928
+ export interface Thumbnail {
1012
929
  /**
1013
- * The ID of an existing attachment object. Use this when updating a resource and
1014
- * keeping a subset of the attachments. Don't use this unless you know what you're
1015
- * doing.
930
+ * The ID of an existing file object.
1016
931
  */
1017
932
  id: string;
1018
933
  }
@@ -481,11 +481,6 @@ export interface CourseCreateParams {
481
481
  */
482
482
  certificate_after_completion_enabled?: boolean | null;
483
483
 
484
- /**
485
- * The cover image URL of the course
486
- */
487
- cover_image?: string | null;
488
-
489
484
  /**
490
485
  * The decimal order position of the course within its experience. If not provided,
491
486
  * it will be set to the next sequential order. Use fractional values (e.g., 1.5)
@@ -507,10 +502,7 @@ export interface CourseCreateParams {
507
502
  /**
508
503
  * The thumbnail for the course in png, jpeg, or gif format
509
504
  */
510
- thumbnail?:
511
- | CourseCreateParams.AttachmentInputWithDirectUploadID
512
- | CourseCreateParams.AttachmentInputWithID
513
- | null;
505
+ thumbnail?: CourseCreateParams.Thumbnail | null;
514
506
 
515
507
  /**
516
508
  * The available visibilities for a course. Determines how / whether a course is
@@ -521,25 +513,11 @@ export interface CourseCreateParams {
521
513
 
522
514
  export namespace CourseCreateParams {
523
515
  /**
524
- * Input for an attachment
525
- */
526
- export interface AttachmentInputWithDirectUploadID {
527
- /**
528
- * This ID should be used the first time you upload an attachment. It is the ID of
529
- * the direct upload that was created when uploading the file to S3 via the
530
- * mediaDirectUpload mutation.
531
- */
532
- direct_upload_id: string;
533
- }
534
-
535
- /**
536
- * Input for an attachment
516
+ * The thumbnail for the course in png, jpeg, or gif format
537
517
  */
538
- export interface AttachmentInputWithID {
518
+ export interface Thumbnail {
539
519
  /**
540
- * The ID of an existing attachment object. Use this when updating a resource and
541
- * keeping a subset of the attachments. Don't use this unless you know what you're
542
- * doing.
520
+ * The ID of an existing file object.
543
521
  */
544
522
  id: string;
545
523
  }
@@ -557,11 +535,6 @@ export interface CourseUpdateParams {
557
535
  */
558
536
  chapters?: Array<CourseUpdateParams.Chapter> | null;
559
537
 
560
- /**
561
- * The cover image URL of the course
562
- */
563
- cover_image?: string | null;
564
-
565
538
  /**
566
539
  * A short description of the course
567
540
  */
@@ -592,10 +565,7 @@ export interface CourseUpdateParams {
592
565
  /**
593
566
  * The thumbnail for the course in png, jpeg, or gif format
594
567
  */
595
- thumbnail?:
596
- | CourseUpdateParams.AttachmentInputWithDirectUploadID
597
- | CourseUpdateParams.AttachmentInputWithID
598
- | null;
568
+ thumbnail?: CourseUpdateParams.Thumbnail | null;
599
569
 
600
570
  /**
601
571
  * The title of the course
@@ -663,25 +633,11 @@ export namespace CourseUpdateParams {
663
633
  }
664
634
 
665
635
  /**
666
- * Input for an attachment
667
- */
668
- export interface AttachmentInputWithDirectUploadID {
669
- /**
670
- * This ID should be used the first time you upload an attachment. It is the ID of
671
- * the direct upload that was created when uploading the file to S3 via the
672
- * mediaDirectUpload mutation.
673
- */
674
- direct_upload_id: string;
675
- }
676
-
677
- /**
678
- * Input for an attachment
636
+ * The thumbnail for the course in png, jpeg, or gif format
679
637
  */
680
- export interface AttachmentInputWithID {
638
+ export interface Thumbnail {
681
639
  /**
682
- * The ID of an existing attachment object. Use this when updating a resource and
683
- * keeping a subset of the attachments. Don't use this unless you know what you're
684
- * doing.
640
+ * The ID of an existing file object.
685
641
  */
686
642
  id: string;
687
643
  }
@@ -703,10 +703,7 @@ export interface DisputeUpdateEvidenceParams {
703
703
  /**
704
704
  * A file containing the cancellation policy from the company.
705
705
  */
706
- cancellation_policy_attachment?:
707
- | DisputeUpdateEvidenceParams.AttachmentInputWithDirectUploadID
708
- | DisputeUpdateEvidenceParams.AttachmentInputWithID
709
- | null;
706
+ cancellation_policy_attachment?: DisputeUpdateEvidenceParams.CancellationPolicyAttachment | null;
710
707
 
711
708
  /**
712
709
  * A cancellation policy disclosure from the company.
@@ -716,10 +713,7 @@ export interface DisputeUpdateEvidenceParams {
716
713
  /**
717
714
  * A file containing the customer communication from the company (An image).
718
715
  */
719
- customer_communication_attachment?:
720
- | DisputeUpdateEvidenceParams.AttachmentInputWithDirectUploadID
721
- | DisputeUpdateEvidenceParams.AttachmentInputWithID
722
- | null;
716
+ customer_communication_attachment?: DisputeUpdateEvidenceParams.CustomerCommunicationAttachment | null;
723
717
 
724
718
  /**
725
719
  * The email of the customer from their payment details.
@@ -744,10 +738,7 @@ export interface DisputeUpdateEvidenceParams {
744
738
  /**
745
739
  * A file containing the refund policy from the company.
746
740
  */
747
- refund_policy_attachment?:
748
- | DisputeUpdateEvidenceParams.AttachmentInputWithDirectUploadID
749
- | DisputeUpdateEvidenceParams.AttachmentInputWithID
750
- | null;
741
+ refund_policy_attachment?: DisputeUpdateEvidenceParams.RefundPolicyAttachment | null;
751
742
 
752
743
  /**
753
744
  * A refund policy disclosure from the company.
@@ -767,105 +758,46 @@ export interface DisputeUpdateEvidenceParams {
767
758
  /**
768
759
  * A file that does not fit in the other categories.
769
760
  */
770
- uncategorized_attachment?:
771
- | DisputeUpdateEvidenceParams.AttachmentInputWithDirectUploadID
772
- | DisputeUpdateEvidenceParams.AttachmentInputWithID
773
- | null;
761
+ uncategorized_attachment?: DisputeUpdateEvidenceParams.UncategorizedAttachment | null;
774
762
  }
775
763
 
776
764
  export namespace DisputeUpdateEvidenceParams {
777
765
  /**
778
- * Input for an attachment
779
- */
780
- export interface AttachmentInputWithDirectUploadID {
781
- /**
782
- * This ID should be used the first time you upload an attachment. It is the ID of
783
- * the direct upload that was created when uploading the file to S3 via the
784
- * mediaDirectUpload mutation.
785
- */
786
- direct_upload_id: string;
787
- }
788
-
789
- /**
790
- * Input for an attachment
766
+ * A file containing the cancellation policy from the company.
791
767
  */
792
- export interface AttachmentInputWithID {
768
+ export interface CancellationPolicyAttachment {
793
769
  /**
794
- * The ID of an existing attachment object. Use this when updating a resource and
795
- * keeping a subset of the attachments. Don't use this unless you know what you're
796
- * doing.
770
+ * The ID of an existing file object.
797
771
  */
798
772
  id: string;
799
773
  }
800
774
 
801
775
  /**
802
- * Input for an attachment
803
- */
804
- export interface AttachmentInputWithDirectUploadID {
805
- /**
806
- * This ID should be used the first time you upload an attachment. It is the ID of
807
- * the direct upload that was created when uploading the file to S3 via the
808
- * mediaDirectUpload mutation.
809
- */
810
- direct_upload_id: string;
811
- }
812
-
813
- /**
814
- * Input for an attachment
776
+ * A file containing the customer communication from the company (An image).
815
777
  */
816
- export interface AttachmentInputWithID {
778
+ export interface CustomerCommunicationAttachment {
817
779
  /**
818
- * The ID of an existing attachment object. Use this when updating a resource and
819
- * keeping a subset of the attachments. Don't use this unless you know what you're
820
- * doing.
780
+ * The ID of an existing file object.
821
781
  */
822
782
  id: string;
823
783
  }
824
784
 
825
785
  /**
826
- * Input for an attachment
827
- */
828
- export interface AttachmentInputWithDirectUploadID {
829
- /**
830
- * This ID should be used the first time you upload an attachment. It is the ID of
831
- * the direct upload that was created when uploading the file to S3 via the
832
- * mediaDirectUpload mutation.
833
- */
834
- direct_upload_id: string;
835
- }
836
-
837
- /**
838
- * Input for an attachment
786
+ * A file containing the refund policy from the company.
839
787
  */
840
- export interface AttachmentInputWithID {
788
+ export interface RefundPolicyAttachment {
841
789
  /**
842
- * The ID of an existing attachment object. Use this when updating a resource and
843
- * keeping a subset of the attachments. Don't use this unless you know what you're
844
- * doing.
790
+ * The ID of an existing file object.
845
791
  */
846
792
  id: string;
847
793
  }
848
794
 
849
795
  /**
850
- * Input for an attachment
851
- */
852
- export interface AttachmentInputWithDirectUploadID {
853
- /**
854
- * This ID should be used the first time you upload an attachment. It is the ID of
855
- * the direct upload that was created when uploading the file to S3 via the
856
- * mediaDirectUpload mutation.
857
- */
858
- direct_upload_id: string;
859
- }
860
-
861
- /**
862
- * Input for an attachment
796
+ * A file that does not fit in the other categories.
863
797
  */
864
- export interface AttachmentInputWithID {
798
+ export interface UncategorizedAttachment {
865
799
  /**
866
- * The ID of an existing attachment object. Use this when updating a resource and
867
- * keeping a subset of the attachments. Don't use this unless you know what you're
868
- * doing.
800
+ * The ID of an existing file object.
869
801
  */
870
802
  id: string;
871
803
  }
@@ -303,6 +303,11 @@ export interface ExperienceCreateParams {
303
303
  */
304
304
  is_public?: boolean | null;
305
305
 
306
+ /**
307
+ * The logo for the experience
308
+ */
309
+ logo?: ExperienceCreateParams.Logo | null;
310
+
306
311
  /**
307
312
  * The name of the experience
308
313
  */
@@ -314,6 +319,18 @@ export interface ExperienceCreateParams {
314
319
  section_id?: string | null;
315
320
  }
316
321
 
322
+ export namespace ExperienceCreateParams {
323
+ /**
324
+ * The logo for the experience
325
+ */
326
+ export interface Logo {
327
+ /**
328
+ * The ID of an existing file object.
329
+ */
330
+ id: string;
331
+ }
332
+ }
333
+
317
334
  export interface ExperienceUpdateParams {
318
335
  /**
319
336
  * The different access levels for experiences (PUBLIC IS NEVER USED ANYMORE).
@@ -328,10 +345,7 @@ export interface ExperienceUpdateParams {
328
345
  /**
329
346
  * The logo for the experience
330
347
  */
331
- logo?:
332
- | ExperienceUpdateParams.AttachmentInputWithDirectUploadID
333
- | ExperienceUpdateParams.AttachmentInputWithID
334
- | null;
348
+ logo?: ExperienceUpdateParams.Logo | null;
335
349
 
336
350
  /**
337
351
  * The name of the experience.
@@ -351,25 +365,11 @@ export interface ExperienceUpdateParams {
351
365
 
352
366
  export namespace ExperienceUpdateParams {
353
367
  /**
354
- * Input for an attachment
355
- */
356
- export interface AttachmentInputWithDirectUploadID {
357
- /**
358
- * This ID should be used the first time you upload an attachment. It is the ID of
359
- * the direct upload that was created when uploading the file to S3 via the
360
- * mediaDirectUpload mutation.
361
- */
362
- direct_upload_id: string;
363
- }
364
-
365
- /**
366
- * Input for an attachment
368
+ * The logo for the experience
367
369
  */
368
- export interface AttachmentInputWithID {
370
+ export interface Logo {
369
371
  /**
370
- * The ID of an existing attachment object. Use this when updating a resource and
371
- * keeping a subset of the attachments. Don't use this unless you know what you're
372
- * doing.
372
+ * The ID of an existing file object.
373
373
  */
374
374
  id: string;
375
375
  }