@blezgo/api-sdk 0.1.4 → 0.1.5

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 (137) hide show
  1. package/dist/account/generated.d.ts +193 -193
  2. package/dist/account/generated.d.ts.map +1 -1
  3. package/dist/activity/generated.d.ts +82 -82
  4. package/dist/activity/generated.d.ts.map +1 -1
  5. package/dist/addon/generated.d.ts +96 -96
  6. package/dist/addon/generated.d.ts.map +1 -1
  7. package/dist/admin/generated.d.ts +85 -85
  8. package/dist/admin/generated.d.ts.map +1 -1
  9. package/dist/affiliate/generated.d.ts +87 -87
  10. package/dist/affiliate/generated.d.ts.map +1 -1
  11. package/dist/analytics/generated.d.ts +15 -15
  12. package/dist/analytics/generated.d.ts.map +1 -1
  13. package/dist/announcements/generated.d.ts +34 -34
  14. package/dist/announcements/generated.d.ts.map +1 -1
  15. package/dist/apikeys/generated.d.ts +99 -99
  16. package/dist/apikeys/generated.d.ts.map +1 -1
  17. package/dist/assistance/generated.d.ts +15 -15
  18. package/dist/assistance/generated.d.ts.map +1 -1
  19. package/dist/authentication/generated.d.ts +74 -74
  20. package/dist/authentication/generated.d.ts.map +1 -1
  21. package/dist/blog/generated.d.ts +144 -144
  22. package/dist/blog/generated.d.ts.map +1 -1
  23. package/dist/bundle/generated.d.ts +177 -177
  24. package/dist/bundle/generated.d.ts.map +1 -1
  25. package/dist/cache/generated.d.ts +37 -37
  26. package/dist/cache/generated.d.ts.map +1 -1
  27. package/dist/calendar/generated.d.ts +69 -69
  28. package/dist/calendar/generated.d.ts.map +1 -1
  29. package/dist/campaigns/generated.d.ts +215 -215
  30. package/dist/campaigns/generated.d.ts.map +1 -1
  31. package/dist/cart/generated.d.ts +57 -57
  32. package/dist/cart/generated.d.ts.map +1 -1
  33. package/dist/changelog/generated.d.ts +103 -103
  34. package/dist/changelog/generated.d.ts.map +1 -1
  35. package/dist/channel/generated.d.ts +221 -221
  36. package/dist/channel/generated.d.ts.map +1 -1
  37. package/dist/company/generated.d.ts +35 -35
  38. package/dist/company/generated.d.ts.map +1 -1
  39. package/dist/conference/generated.d.ts +155 -155
  40. package/dist/conference/generated.d.ts.map +1 -1
  41. package/dist/config/generated.d.ts +44 -44
  42. package/dist/config/generated.d.ts.map +1 -1
  43. package/dist/content/generated.d.ts +500 -500
  44. package/dist/content/generated.d.ts.map +1 -1
  45. package/dist/cookies/generated.d.ts +89 -89
  46. package/dist/cookies/generated.d.ts.map +1 -1
  47. package/dist/courses/generated.d.ts +350 -350
  48. package/dist/courses/generated.d.ts.map +1 -1
  49. package/dist/custom/generated.d.ts +70 -70
  50. package/dist/custom/generated.d.ts.map +1 -1
  51. package/dist/dashboard/generated.d.ts +185 -185
  52. package/dist/dashboard/generated.d.ts.map +1 -1
  53. package/dist/elasticsearch/generated.d.ts +15 -15
  54. package/dist/elasticsearch/generated.d.ts.map +1 -1
  55. package/dist/enrollments/generated.d.ts +15 -15
  56. package/dist/enrollments/generated.d.ts.map +1 -1
  57. package/dist/errors/generated.d.ts +15 -15
  58. package/dist/errors/generated.d.ts.map +1 -1
  59. package/dist/eventconfig/generated.d.ts +95 -95
  60. package/dist/eventconfig/generated.d.ts.map +1 -1
  61. package/dist/funnels/generated.d.ts +131 -131
  62. package/dist/funnels/generated.d.ts.map +1 -1
  63. package/dist/gamification/generated.d.ts +144 -144
  64. package/dist/gamification/generated.d.ts.map +1 -1
  65. package/dist/impersonation/generated.d.ts +60 -60
  66. package/dist/impersonation/generated.d.ts.map +1 -1
  67. package/dist/inbox/generated.d.ts +133 -133
  68. package/dist/inbox/generated.d.ts.map +1 -1
  69. package/dist/internal/generated.d.ts +15 -15
  70. package/dist/internal/generated.d.ts.map +1 -1
  71. package/dist/internationalization/generated.d.ts +15 -15
  72. package/dist/internationalization/generated.d.ts.map +1 -1
  73. package/dist/invitations/generated.d.ts +124 -124
  74. package/dist/invitations/generated.d.ts.map +1 -1
  75. package/dist/meetings/generated.d.ts +213 -213
  76. package/dist/meetings/generated.d.ts.map +1 -1
  77. package/dist/metas/generated.d.ts +169 -169
  78. package/dist/metas/generated.d.ts.map +1 -1
  79. package/dist/notification/generated.d.ts +411 -411
  80. package/dist/notification/generated.d.ts.map +1 -1
  81. package/dist/notifications/generated.d.ts +15 -15
  82. package/dist/notifications/generated.d.ts.map +1 -1
  83. package/dist/onboarding/generated.d.ts +96 -96
  84. package/dist/onboarding/generated.d.ts.map +1 -1
  85. package/dist/packages/generated.d.ts +78 -78
  86. package/dist/packages/generated.d.ts.map +1 -1
  87. package/dist/payments/generated.d.ts +530 -530
  88. package/dist/payments/generated.d.ts.map +1 -1
  89. package/dist/payouts/generated.d.ts +15 -15
  90. package/dist/payouts/generated.d.ts.map +1 -1
  91. package/dist/plans/generated.d.ts +281 -281
  92. package/dist/plans/generated.d.ts.map +1 -1
  93. package/dist/pricing/generated.d.ts +97 -97
  94. package/dist/pricing/generated.d.ts.map +1 -1
  95. package/dist/products/generated.d.ts +491 -491
  96. package/dist/products/generated.d.ts.map +1 -1
  97. package/dist/profile/generated.d.ts +265 -265
  98. package/dist/profile/generated.d.ts.map +1 -1
  99. package/dist/reasons/generated.d.ts +100 -100
  100. package/dist/reasons/generated.d.ts.map +1 -1
  101. package/dist/registration/generated.d.ts +140 -140
  102. package/dist/registration/generated.d.ts.map +1 -1
  103. package/dist/reviews/generated.d.ts +67 -67
  104. package/dist/reviews/generated.d.ts.map +1 -1
  105. package/dist/role/generated.d.ts +216 -216
  106. package/dist/role/generated.d.ts.map +1 -1
  107. package/dist/scheduling/generated.d.ts +118 -118
  108. package/dist/scheduling/generated.d.ts.map +1 -1
  109. package/dist/services/generated.d.ts +819 -819
  110. package/dist/services/generated.d.ts.map +1 -1
  111. package/dist/sessions/generated.d.ts +236 -236
  112. package/dist/sessions/generated.d.ts.map +1 -1
  113. package/dist/spaces/generated.d.ts +423 -423
  114. package/dist/spaces/generated.d.ts.map +1 -1
  115. package/dist/storefront/generated.d.ts +15 -15
  116. package/dist/storefront/generated.d.ts.map +1 -1
  117. package/dist/support/generated.d.ts +1605 -1605
  118. package/dist/support/generated.d.ts.map +1 -1
  119. package/dist/sync/generated.d.ts +156 -156
  120. package/dist/sync/generated.d.ts.map +1 -1
  121. package/dist/tenant/generated.d.ts +435 -435
  122. package/dist/tenant/generated.d.ts.map +1 -1
  123. package/dist/testimonials/generated.d.ts +60 -60
  124. package/dist/testimonials/generated.d.ts.map +1 -1
  125. package/dist/tests/generated.d.ts +415 -415
  126. package/dist/tests/generated.d.ts.map +1 -1
  127. package/dist/tokens/generated.d.ts +48 -48
  128. package/dist/tokens/generated.d.ts.map +1 -1
  129. package/dist/uploads/generated.d.ts +56 -56
  130. package/dist/uploads/generated.d.ts.map +1 -1
  131. package/dist/upsell/generated.d.ts +86 -86
  132. package/dist/upsell/generated.d.ts.map +1 -1
  133. package/dist/user/generated.d.ts +99 -99
  134. package/dist/user/generated.d.ts.map +1 -1
  135. package/dist/webinars/generated.d.ts +185 -185
  136. package/dist/webinars/generated.d.ts.map +1 -1
  137. package/package.json +1 -1
@@ -571,6 +571,73 @@ export interface paths {
571
571
  export type webhooks = Record<string, never>;
572
572
  export interface components {
573
573
  schemas: {
574
+ /** Body_createCourseBatch */
575
+ Body_createCourseBatch: {
576
+ /** Batch Name */
577
+ batch_name: string;
578
+ /** Instructor Id */
579
+ instructor_id: number;
580
+ /** Starts At */
581
+ starts_at: string;
582
+ /** Ends At */
583
+ ends_at?: string | null;
584
+ /** Class Duration Minutes */
585
+ class_duration_minutes: number;
586
+ /** Class Time */
587
+ class_time: string;
588
+ /** Weekdays */
589
+ weekdays: string[];
590
+ /**
591
+ * Max Students
592
+ * @default 25
593
+ */
594
+ max_students: number;
595
+ /** Batch Code */
596
+ batch_code?: string | null;
597
+ /**
598
+ * Is Private
599
+ * @default false
600
+ */
601
+ is_private: boolean;
602
+ /**
603
+ * Timezone
604
+ * @default UTC
605
+ */
606
+ timezone: string;
607
+ /** Meeting Platform */
608
+ meeting_platform?: string | null;
609
+ /** Meeting Credentials */
610
+ meeting_credentials?: {
611
+ [key: string]: unknown;
612
+ } | null;
613
+ };
614
+ /**
615
+ * @example {
616
+ * "status": "success",
617
+ * "message": "Operation successful",
618
+ * "message_code": "api_suc_20001",
619
+ * "data": {},
620
+ * "metadata": {
621
+ * "timestamp": "2026-03-26T10:00:00.000Z",
622
+ * "requestId": "07e22004-cb60-4dfc-bc9c-b6f99664dca1",
623
+ * "traceId": "a9f1204c-bb82-41de-b234-7c3a9e120000",
624
+ * "version": "v1",
625
+ * "executionTime": 42,
626
+ * "language": "en-US"
627
+ * }
628
+ * }
629
+ */
630
+ StandardResponse: {
631
+ /** @example success */
632
+ status?: string;
633
+ data?: Record<string, never> | null;
634
+ /** @example Operation successful */
635
+ message?: string | null;
636
+ /** @example api_suc_20001 */
637
+ message_code?: string | null;
638
+ metadata?: Record<string, never> | null;
639
+ error?: components["schemas"]["ErrorResponse"];
640
+ };
574
641
  /**
575
642
  * VariantItem
576
643
  * @description Product variant (maps to product_variants_tbl)
@@ -650,157 +717,6 @@ export interface components {
650
717
  [key: string]: unknown;
651
718
  } | null;
652
719
  };
653
- /** Body_validateBatchSchedule */
654
- Body_validateBatchSchedule: {
655
- /** Starts At */
656
- starts_at: string;
657
- /** Ends At */
658
- ends_at: string;
659
- /** Weekdays */
660
- weekdays: string[];
661
- /** Duration Minutes */
662
- duration_minutes: number;
663
- /**
664
- * Timezone
665
- * @default UTC
666
- */
667
- timezone: string;
668
- };
669
- InvalidParam: {
670
- /** @example items[0].quantity */
671
- field?: string;
672
- /** @example Input should be greater than or equal to 1 */
673
- error?: string;
674
- };
675
- /**
676
- * @example {
677
- * "status": "success",
678
- * "message": "Operation successful",
679
- * "message_code": "api_suc_20001",
680
- * "data": {},
681
- * "metadata": {
682
- * "timestamp": "2026-03-26T10:00:00.000Z",
683
- * "requestId": "07e22004-cb60-4dfc-bc9c-b6f99664dca1",
684
- * "traceId": "a9f1204c-bb82-41de-b234-7c3a9e120000",
685
- * "version": "v1",
686
- * "executionTime": 42,
687
- * "language": "en-US"
688
- * }
689
- * }
690
- */
691
- StandardResponse: {
692
- /** @example success */
693
- status?: string;
694
- data?: Record<string, never> | null;
695
- /** @example Operation successful */
696
- message?: string | null;
697
- /** @example api_suc_20001 */
698
- message_code?: string | null;
699
- metadata?: Record<string, never> | null;
700
- error?: components["schemas"]["ErrorResponse"];
701
- };
702
- /** Body_createBatchCurriculumItem */
703
- Body_createBatchCurriculumItem: {
704
- /** Title */
705
- title: string;
706
- /** Content Type */
707
- content_type: string;
708
- /** Is Section */
709
- is_section: number;
710
- /** Parent Id */
711
- parent_id?: number | null;
712
- /**
713
- * Section Order
714
- * @default 0
715
- */
716
- section_order: number;
717
- /**
718
- * Chapter Order
719
- * @default 0
720
- */
721
- chapter_order: number;
722
- /** Description */
723
- description?: string | null;
724
- /** Content Id */
725
- content_id?: number | null;
726
- /** Instructor Id */
727
- instructor_id?: number | null;
728
- /** Scheduled At */
729
- scheduled_at?: string | null;
730
- /** Duration Minutes */
731
- duration_minutes?: number | null;
732
- };
733
- /**
734
- * MediaItem
735
- * @description Single media file item
736
- */
737
- MediaItem: {
738
- /**
739
- * Media Type
740
- * @description logo, banner, promo_video, gallery_image, gallery_video, swatch
741
- */
742
- media_type: string;
743
- /**
744
- * File Path
745
- * @description Path to media file on storage (S3, CDN, local)
746
- */
747
- file_path: string;
748
- /**
749
- * File Name
750
- * @description Original filename
751
- */
752
- file_name: string;
753
- /**
754
- * File Size
755
- * @description File size in bytes
756
- */
757
- file_size?: number | null;
758
- /**
759
- * Mime Type
760
- * @description MIME type (image/png, video/mp4, etc.)
761
- */
762
- mime_type?: string | null;
763
- /**
764
- * Width
765
- * @description Width in pixels (for images/videos)
766
- */
767
- width?: number | null;
768
- /**
769
- * Height
770
- * @description Height in pixels (for images/videos)
771
- */
772
- height?: number | null;
773
- /**
774
- * Responsive Versions
775
- * @description JSON with thumbnail, small, medium, large, xlarge, original paths
776
- */
777
- responsive_versions?: {
778
- [key: string]: string;
779
- } | null;
780
- /**
781
- * Alt Text
782
- * @description Alt text for SEO/accessibility
783
- */
784
- alt_text?: string | null;
785
- /**
786
- * Locale
787
- * @description Media locale (en-US, es-PR, etc.)
788
- * @default en-US
789
- */
790
- locale: string;
791
- /**
792
- * Display Order
793
- * @description Display order
794
- * @default 0
795
- */
796
- display_order: number;
797
- /**
798
- * Is Primary
799
- * @description Mark as primary media
800
- * @default false
801
- */
802
- is_primary: boolean;
803
- };
804
720
  /**
805
721
  * CourseSection
806
722
  * @description Course-specific fields (maps to courses_tbl)
@@ -837,17 +753,6 @@ export interface components {
837
753
  */
838
754
  locale?: string | null;
839
755
  };
840
- /**
841
- * MediaSection
842
- * @description Product media files - direct media data
843
- */
844
- MediaSection: {
845
- /**
846
- * Media Items
847
- * @description List of media files to attach to product
848
- */
849
- media_items?: components["schemas"]["MediaItem"][] | null;
850
- };
851
756
  Extensions: {
852
757
  /** @example GENERIC_ERROR */
853
758
  message_code?: string;
@@ -885,199 +790,254 @@ export interface components {
885
790
  /** Meeting Platform */
886
791
  meeting_platform?: string | null;
887
792
  };
793
+ /** Body_updateCourse */
794
+ Body_updateCourse: {
795
+ /** Title */
796
+ title?: string | null;
797
+ /** Description */
798
+ description?: string | null;
799
+ /** Learning Outcomes */
800
+ learning_outcomes?: string | null;
801
+ /** Prerequisites */
802
+ prerequisites?: string | null;
803
+ /** Target Audience */
804
+ target_audience?: string | null;
805
+ /** Difficulty Level */
806
+ difficulty_level?: string | null;
807
+ /** Co Instructors */
808
+ co_instructors?: number[] | null;
809
+ };
888
810
  /**
889
- * IdentitySection
890
- * @description Localized product content (maps to product_identity_tbl)
811
+ * ProductPrice
812
+ * @description Base product pricing (maps to product_pricings_tbl with variant_id=NULL)
891
813
  */
892
- IdentitySection: {
814
+ ProductPrice: {
893
815
  /**
894
- * Locale
895
- * @description Locale: en-US, es-PR, fr-FR, pt-BR, etc.
896
- * @default en-US
816
+ * Price Type
817
+ * @description free, one_time, subscription, monthly_plan
897
818
  */
898
- locale: string;
819
+ price_type: string;
899
820
  /**
900
- * Title
901
- * @description Product title
821
+ * Currency
822
+ * @description Currency code: INR, USD, EUR, etc.
902
823
  */
903
- title: string;
824
+ currency: string;
904
825
  /**
905
- * Subtitle
906
- * @description Product subtitle
826
+ * Amount
827
+ * @description Price amount
907
828
  */
908
- subtitle?: string | null;
829
+ amount: number;
909
830
  /**
910
- * Description
911
- * @description Full product description
831
+ * Compare At Amount
832
+ * @description Original/strike-through price
912
833
  */
913
- description?: string | null;
834
+ compare_at_amount?: number | null;
914
835
  /**
915
- * Short Description
916
- * @description Short description for listings/previews
836
+ * Interval
837
+ * @description day, week, month, year (for subscription)
917
838
  */
918
- short_description?: string | null;
839
+ interval?: string | null;
840
+ /**
841
+ * Interval Count
842
+ * @description Number of intervals
843
+ */
844
+ interval_count?: number | null;
845
+ /**
846
+ * Trial Period Days
847
+ * @description Free trial days
848
+ */
849
+ trial_period_days?: number | null;
850
+ /**
851
+ * Initial Amount
852
+ * @description First payment amount
853
+ */
854
+ initial_amount?: number | null;
855
+ /**
856
+ * Gateway
857
+ * @description stripe, razorpay, paypal, etc.
858
+ */
859
+ gateway?: string | null;
860
+ /**
861
+ * Requires Payment Method Upfront
862
+ * @description Require payment method before trial
863
+ * @default true
864
+ */
865
+ requires_payment_method_upfront: boolean;
919
866
  };
920
- /** Body_createCourseBatch */
921
- Body_createCourseBatch: {
922
- /** Batch Name */
923
- batch_name: string;
924
- /** Instructor Id */
925
- instructor_id: number;
926
- /** Starts At */
927
- starts_at: string;
928
- /** Ends At */
929
- ends_at?: string | null;
930
- /** Class Duration Minutes */
931
- class_duration_minutes: number;
932
- /** Class Time */
933
- class_time: string;
934
- /** Weekdays */
935
- weekdays: string[];
867
+ /** Body_createCourseCurriculumItem */
868
+ Body_createCourseCurriculumItem: {
869
+ /** Title */
870
+ title: string;
871
+ /** Content Type */
872
+ content_type: string;
873
+ /** Is Section */
874
+ is_section: number;
875
+ /** Parent Id */
876
+ parent_id?: number | null;
936
877
  /**
937
- * Max Students
938
- * @default 25
878
+ * Section Order
879
+ * @default 0
939
880
  */
940
- max_students: number;
941
- /** Batch Code */
942
- batch_code?: string | null;
881
+ section_order: number;
943
882
  /**
944
- * Is Private
883
+ * Chapter Order
884
+ * @default 0
885
+ */
886
+ chapter_order: number;
887
+ /** Description */
888
+ description?: string | null;
889
+ /** Content Id */
890
+ content_id?: number | null;
891
+ /**
892
+ * Drip Days
893
+ * @default 0
894
+ */
895
+ drip_days: number;
896
+ /**
897
+ * Is Locked
945
898
  * @default false
946
899
  */
947
- is_private: boolean;
900
+ is_locked: boolean;
901
+ };
902
+ /** Body_createBatchCurriculumItem */
903
+ Body_createBatchCurriculumItem: {
904
+ /** Title */
905
+ title: string;
906
+ /** Content Type */
907
+ content_type: string;
908
+ /** Is Section */
909
+ is_section: number;
910
+ /** Parent Id */
911
+ parent_id?: number | null;
948
912
  /**
949
- * Timezone
950
- * @default UTC
913
+ * Section Order
914
+ * @default 0
951
915
  */
952
- timezone: string;
953
- /** Meeting Platform */
954
- meeting_platform?: string | null;
955
- /** Meeting Credentials */
956
- meeting_credentials?: {
957
- [key: string]: unknown;
958
- } | null;
916
+ section_order: number;
917
+ /**
918
+ * Chapter Order
919
+ * @default 0
920
+ */
921
+ chapter_order: number;
922
+ /** Description */
923
+ description?: string | null;
924
+ /** Content Id */
925
+ content_id?: number | null;
926
+ /** Instructor Id */
927
+ instructor_id?: number | null;
928
+ /** Scheduled At */
929
+ scheduled_at?: string | null;
930
+ /** Duration Minutes */
931
+ duration_minutes?: number | null;
959
932
  };
960
933
  /**
961
- * CourseCreateRequest
962
- * @description Course creation request - inherits common fields, adds course-specific section
963
- * @example {
964
- * "course": {
965
- * "course_type": "instructor_led",
966
- * "primary_instructor_id": 456
967
- * },
968
- * "identity": {
969
- * "locale": "en-US",
970
- * "title": "Advanced Python Programming"
971
- * },
972
- * "pricing": {
973
- * "product_price": {
974
- * "amount": 5000,
975
- * "currency": "INR",
976
- * "price_type": "one_time"
977
- * }
978
- * },
979
- * "product": {
980
- * "is_digital": true,
981
- * "status": "draft",
982
- * "visibility": "public"
983
- * }
984
- * }
934
+ * IdentitySection
935
+ * @description Localized product content (maps to product_identity_tbl)
985
936
  */
986
- CourseCreateRequest: {
987
- /** @description Base product configuration */
988
- product: components["schemas"]["ProductSection"];
989
- /** @description Localized content (title, description) */
990
- identity: components["schemas"]["IdentitySection"];
991
- /** @description Pre-uploaded image IDs */
992
- media?: components["schemas"]["MediaSection"] | null;
937
+ IdentitySection: {
938
+ /**
939
+ * Locale
940
+ * @description Locale: en-US, es-PR, fr-FR, pt-BR, etc.
941
+ * @default en-US
942
+ */
943
+ locale: string;
944
+ /**
945
+ * Title
946
+ * @description Product title
947
+ */
948
+ title: string;
993
949
  /**
994
- * Tags
995
- * @description Tag IDs to associate with product
950
+ * Subtitle
951
+ * @description Product subtitle
996
952
  */
997
- tags?: number[] | null;
953
+ subtitle?: string | null;
998
954
  /**
999
- * Variants
1000
- * @description Product variants (optional)
955
+ * Description
956
+ * @description Full product description
1001
957
  */
1002
- variants?: components["schemas"]["VariantItem"][] | null;
1003
- /** @description Pricing for product and variants */
1004
- pricing?: components["schemas"]["PricingSection"] | null;
1005
- /** @description Course-specific configuration */
1006
- course: components["schemas"]["CourseSection"];
1007
- };
1008
- /** Body_updateCourse */
1009
- Body_updateCourse: {
1010
- /** Title */
1011
- title?: string | null;
1012
- /** Description */
1013
958
  description?: string | null;
1014
- /** Learning Outcomes */
1015
- learning_outcomes?: string | null;
1016
- /** Prerequisites */
1017
- prerequisites?: string | null;
1018
- /** Target Audience */
1019
- target_audience?: string | null;
1020
- /** Difficulty Level */
1021
- difficulty_level?: string | null;
1022
- /** Co Instructors */
1023
- co_instructors?: number[] | null;
959
+ /**
960
+ * Short Description
961
+ * @description Short description for listings/previews
962
+ */
963
+ short_description?: string | null;
1024
964
  };
1025
965
  /**
1026
- * ProductPrice
1027
- * @description Base product pricing (maps to product_pricings_tbl with variant_id=NULL)
966
+ * MediaItem
967
+ * @description Single media file item
1028
968
  */
1029
- ProductPrice: {
969
+ MediaItem: {
1030
970
  /**
1031
- * Price Type
1032
- * @description free, one_time, subscription, monthly_plan
971
+ * Media Type
972
+ * @description logo, banner, promo_video, gallery_image, gallery_video, swatch
1033
973
  */
1034
- price_type: string;
974
+ media_type: string;
1035
975
  /**
1036
- * Currency
1037
- * @description Currency code: INR, USD, EUR, etc.
976
+ * File Path
977
+ * @description Path to media file on storage (S3, CDN, local)
1038
978
  */
1039
- currency: string;
979
+ file_path: string;
1040
980
  /**
1041
- * Amount
1042
- * @description Price amount
981
+ * File Name
982
+ * @description Original filename
1043
983
  */
1044
- amount: number;
984
+ file_name: string;
1045
985
  /**
1046
- * Compare At Amount
1047
- * @description Original/strike-through price
986
+ * File Size
987
+ * @description File size in bytes
1048
988
  */
1049
- compare_at_amount?: number | null;
989
+ file_size?: number | null;
1050
990
  /**
1051
- * Interval
1052
- * @description day, week, month, year (for subscription)
991
+ * Mime Type
992
+ * @description MIME type (image/png, video/mp4, etc.)
1053
993
  */
1054
- interval?: string | null;
994
+ mime_type?: string | null;
1055
995
  /**
1056
- * Interval Count
1057
- * @description Number of intervals
996
+ * Width
997
+ * @description Width in pixels (for images/videos)
1058
998
  */
1059
- interval_count?: number | null;
999
+ width?: number | null;
1060
1000
  /**
1061
- * Trial Period Days
1062
- * @description Free trial days
1001
+ * Height
1002
+ * @description Height in pixels (for images/videos)
1063
1003
  */
1064
- trial_period_days?: number | null;
1004
+ height?: number | null;
1065
1005
  /**
1066
- * Initial Amount
1067
- * @description First payment amount
1006
+ * Responsive Versions
1007
+ * @description JSON with thumbnail, small, medium, large, xlarge, original paths
1068
1008
  */
1069
- initial_amount?: number | null;
1009
+ responsive_versions?: {
1010
+ [key: string]: string;
1011
+ } | null;
1070
1012
  /**
1071
- * Gateway
1072
- * @description stripe, razorpay, paypal, etc.
1013
+ * Alt Text
1014
+ * @description Alt text for SEO/accessibility
1073
1015
  */
1074
- gateway?: string | null;
1016
+ alt_text?: string | null;
1075
1017
  /**
1076
- * Requires Payment Method Upfront
1077
- * @description Require payment method before trial
1078
- * @default true
1018
+ * Locale
1019
+ * @description Media locale (en-US, es-PR, etc.)
1020
+ * @default en-US
1079
1021
  */
1080
- requires_payment_method_upfront: boolean;
1022
+ locale: string;
1023
+ /**
1024
+ * Display Order
1025
+ * @description Display order
1026
+ * @default 0
1027
+ */
1028
+ display_order: number;
1029
+ /**
1030
+ * Is Primary
1031
+ * @description Mark as primary media
1032
+ * @default false
1033
+ */
1034
+ is_primary: boolean;
1035
+ };
1036
+ InvalidParam: {
1037
+ /** @example items[0].quantity */
1038
+ field?: string;
1039
+ /** @example Input should be greater than or equal to 1 */
1040
+ error?: string;
1081
1041
  };
1082
1042
  /**
1083
1043
  * VariantPrice
@@ -1141,20 +1101,53 @@ export interface components {
1141
1101
  */
1142
1102
  requires_payment_method_upfront: boolean;
1143
1103
  };
1144
- ErrorResponse: {
1145
- /** @example about:blank */
1146
- type?: string;
1147
- /** @example GENERIC_ERROR */
1148
- code?: string;
1149
- /** @example Client Error */
1150
- title?: string;
1151
- /** @example 400 */
1152
- status?: number;
1153
- /** @example An error occurred */
1154
- detail?: string;
1155
- /** @example /v1/cart/items */
1156
- instance?: string;
1157
- extensions?: components["schemas"]["Extensions"];
1104
+ /**
1105
+ * CourseCreateRequest
1106
+ * @description Course creation request - inherits common fields, adds course-specific section
1107
+ * @example {
1108
+ * "course": {
1109
+ * "course_type": "instructor_led",
1110
+ * "primary_instructor_id": 456
1111
+ * },
1112
+ * "identity": {
1113
+ * "locale": "en-US",
1114
+ * "title": "Advanced Python Programming"
1115
+ * },
1116
+ * "pricing": {
1117
+ * "product_price": {
1118
+ * "amount": 5000,
1119
+ * "currency": "INR",
1120
+ * "price_type": "one_time"
1121
+ * }
1122
+ * },
1123
+ * "product": {
1124
+ * "is_digital": true,
1125
+ * "status": "draft",
1126
+ * "visibility": "public"
1127
+ * }
1128
+ * }
1129
+ */
1130
+ CourseCreateRequest: {
1131
+ /** @description Base product configuration */
1132
+ product: components["schemas"]["ProductSection"];
1133
+ /** @description Localized content (title, description) */
1134
+ identity: components["schemas"]["IdentitySection"];
1135
+ /** @description Pre-uploaded image IDs */
1136
+ media?: components["schemas"]["MediaSection"] | null;
1137
+ /**
1138
+ * Tags
1139
+ * @description Tag IDs to associate with product
1140
+ */
1141
+ tags?: number[] | null;
1142
+ /**
1143
+ * Variants
1144
+ * @description Product variants (optional)
1145
+ */
1146
+ variants?: components["schemas"]["VariantItem"][] | null;
1147
+ /** @description Pricing for product and variants */
1148
+ pricing?: components["schemas"]["PricingSection"] | null;
1149
+ /** @description Course-specific configuration */
1150
+ course: components["schemas"]["CourseSection"];
1158
1151
  };
1159
1152
  /**
1160
1153
  * ProductSection
@@ -1207,6 +1200,32 @@ export interface components {
1207
1200
  */
1208
1201
  featured: boolean;
1209
1202
  };
1203
+ ErrorResponse: {
1204
+ /** @example about:blank */
1205
+ type?: string;
1206
+ /** @example GENERIC_ERROR */
1207
+ code?: string;
1208
+ /** @example Client Error */
1209
+ title?: string;
1210
+ /** @example 400 */
1211
+ status?: number;
1212
+ /** @example An error occurred */
1213
+ detail?: string;
1214
+ /** @example /v1/cart/items */
1215
+ instance?: string;
1216
+ extensions?: components["schemas"]["Extensions"];
1217
+ };
1218
+ /**
1219
+ * MediaSection
1220
+ * @description Product media files - direct media data
1221
+ */
1222
+ MediaSection: {
1223
+ /**
1224
+ * Media Items
1225
+ * @description List of media files to attach to product
1226
+ */
1227
+ media_items?: components["schemas"]["MediaItem"][] | null;
1228
+ };
1210
1229
  /**
1211
1230
  * PricingSection
1212
1231
  * @description Pricing configuration (optional - can have product price, variant prices, or both)
@@ -1220,40 +1239,21 @@ export interface components {
1220
1239
  */
1221
1240
  variant_prices?: components["schemas"]["VariantPrice"][] | null;
1222
1241
  };
1223
- /** Body_createCourseCurriculumItem */
1224
- Body_createCourseCurriculumItem: {
1225
- /** Title */
1226
- title: string;
1227
- /** Content Type */
1228
- content_type: string;
1229
- /** Is Section */
1230
- is_section: number;
1231
- /** Parent Id */
1232
- parent_id?: number | null;
1233
- /**
1234
- * Section Order
1235
- * @default 0
1236
- */
1237
- section_order: number;
1238
- /**
1239
- * Chapter Order
1240
- * @default 0
1241
- */
1242
- chapter_order: number;
1243
- /** Description */
1244
- description?: string | null;
1245
- /** Content Id */
1246
- content_id?: number | null;
1247
- /**
1248
- * Drip Days
1249
- * @default 0
1250
- */
1251
- drip_days: number;
1242
+ /** Body_validateBatchSchedule */
1243
+ Body_validateBatchSchedule: {
1244
+ /** Starts At */
1245
+ starts_at: string;
1246
+ /** Ends At */
1247
+ ends_at: string;
1248
+ /** Weekdays */
1249
+ weekdays: string[];
1250
+ /** Duration Minutes */
1251
+ duration_minutes: number;
1252
1252
  /**
1253
- * Is Locked
1254
- * @default false
1253
+ * Timezone
1254
+ * @default UTC
1255
1255
  */
1256
- is_locked: boolean;
1256
+ timezone: string;
1257
1257
  };
1258
1258
  };
1259
1259
  responses: never;