@blezgo/api-sdk 0.1.4 → 0.1.6

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 +230 -230
  2. package/dist/account/generated.d.ts.map +1 -1
  3. package/dist/activity/generated.d.ts +46 -46
  4. package/dist/activity/generated.d.ts.map +1 -1
  5. package/dist/addon/generated.d.ts +101 -101
  6. package/dist/addon/generated.d.ts.map +1 -1
  7. package/dist/admin/generated.d.ts +122 -122
  8. package/dist/admin/generated.d.ts.map +1 -1
  9. package/dist/affiliate/generated.d.ts +82 -82
  10. package/dist/affiliate/generated.d.ts.map +1 -1
  11. package/dist/analytics/generated.d.ts +21 -21
  12. package/dist/analytics/generated.d.ts.map +1 -1
  13. package/dist/announcements/generated.d.ts +119 -119
  14. package/dist/announcements/generated.d.ts.map +1 -1
  15. package/dist/apikeys/generated.d.ts +129 -129
  16. package/dist/apikeys/generated.d.ts.map +1 -1
  17. package/dist/assistance/generated.d.ts +21 -21
  18. package/dist/assistance/generated.d.ts.map +1 -1
  19. package/dist/authentication/generated.d.ts +83 -83
  20. package/dist/authentication/generated.d.ts.map +1 -1
  21. package/dist/blog/generated.d.ts +212 -212
  22. package/dist/blog/generated.d.ts.map +1 -1
  23. package/dist/bundle/generated.d.ts +185 -185
  24. package/dist/bundle/generated.d.ts.map +1 -1
  25. package/dist/cache/generated.d.ts +27 -27
  26. package/dist/cache/generated.d.ts.map +1 -1
  27. package/dist/calendar/generated.d.ts +54 -54
  28. package/dist/calendar/generated.d.ts.map +1 -1
  29. package/dist/campaigns/generated.d.ts +206 -206
  30. package/dist/campaigns/generated.d.ts.map +1 -1
  31. package/dist/cart/generated.d.ts +42 -42
  32. package/dist/cart/generated.d.ts.map +1 -1
  33. package/dist/changelog/generated.d.ts +101 -101
  34. package/dist/changelog/generated.d.ts.map +1 -1
  35. package/dist/channel/generated.d.ts +213 -213
  36. package/dist/channel/generated.d.ts.map +1 -1
  37. package/dist/company/generated.d.ts +57 -57
  38. package/dist/company/generated.d.ts.map +1 -1
  39. package/dist/conference/generated.d.ts +109 -109
  40. package/dist/conference/generated.d.ts.map +1 -1
  41. package/dist/config/generated.d.ts +55 -55
  42. package/dist/config/generated.d.ts.map +1 -1
  43. package/dist/content/generated.d.ts +613 -613
  44. package/dist/content/generated.d.ts.map +1 -1
  45. package/dist/cookies/generated.d.ts +71 -71
  46. package/dist/cookies/generated.d.ts.map +1 -1
  47. package/dist/courses/generated.d.ts +453 -453
  48. package/dist/courses/generated.d.ts.map +1 -1
  49. package/dist/custom/generated.d.ts +78 -78
  50. package/dist/custom/generated.d.ts.map +1 -1
  51. package/dist/dashboard/generated.d.ts +138 -138
  52. package/dist/dashboard/generated.d.ts.map +1 -1
  53. package/dist/elasticsearch/generated.d.ts +21 -21
  54. package/dist/elasticsearch/generated.d.ts.map +1 -1
  55. package/dist/enrollments/generated.d.ts +21 -21
  56. package/dist/enrollments/generated.d.ts.map +1 -1
  57. package/dist/errors/generated.d.ts +54 -54
  58. package/dist/errors/generated.d.ts.map +1 -1
  59. package/dist/eventconfig/generated.d.ts +53 -53
  60. package/dist/eventconfig/generated.d.ts.map +1 -1
  61. package/dist/funnels/generated.d.ts +117 -117
  62. package/dist/funnels/generated.d.ts.map +1 -1
  63. package/dist/gamification/generated.d.ts +177 -177
  64. package/dist/gamification/generated.d.ts.map +1 -1
  65. package/dist/impersonation/generated.d.ts +52 -52
  66. package/dist/impersonation/generated.d.ts.map +1 -1
  67. package/dist/inbox/generated.d.ts +122 -122
  68. package/dist/inbox/generated.d.ts.map +1 -1
  69. package/dist/internal/generated.d.ts +21 -21
  70. package/dist/internal/generated.d.ts.map +1 -1
  71. package/dist/internationalization/generated.d.ts +21 -21
  72. package/dist/internationalization/generated.d.ts.map +1 -1
  73. package/dist/invitations/generated.d.ts +156 -156
  74. package/dist/invitations/generated.d.ts.map +1 -1
  75. package/dist/meetings/generated.d.ts +372 -372
  76. package/dist/meetings/generated.d.ts.map +1 -1
  77. package/dist/metas/generated.d.ts +199 -199
  78. package/dist/metas/generated.d.ts.map +1 -1
  79. package/dist/notification/generated.d.ts +356 -356
  80. package/dist/notification/generated.d.ts.map +1 -1
  81. package/dist/notifications/generated.d.ts +21 -21
  82. package/dist/notifications/generated.d.ts.map +1 -1
  83. package/dist/onboarding/generated.d.ts +77 -77
  84. package/dist/onboarding/generated.d.ts.map +1 -1
  85. package/dist/packages/generated.d.ts +59 -59
  86. package/dist/packages/generated.d.ts.map +1 -1
  87. package/dist/payments/generated.d.ts +523 -523
  88. package/dist/payments/generated.d.ts.map +1 -1
  89. package/dist/payouts/generated.d.ts +21 -21
  90. package/dist/payouts/generated.d.ts.map +1 -1
  91. package/dist/plans/generated.d.ts +323 -323
  92. package/dist/plans/generated.d.ts.map +1 -1
  93. package/dist/pricing/generated.d.ts +38 -38
  94. package/dist/pricing/generated.d.ts.map +1 -1
  95. package/dist/products/generated.d.ts +443 -443
  96. package/dist/products/generated.d.ts.map +1 -1
  97. package/dist/profile/generated.d.ts +354 -354
  98. package/dist/profile/generated.d.ts.map +1 -1
  99. package/dist/reasons/generated.d.ts +101 -101
  100. package/dist/reasons/generated.d.ts.map +1 -1
  101. package/dist/registration/generated.d.ts +171 -171
  102. package/dist/registration/generated.d.ts.map +1 -1
  103. package/dist/reviews/generated.d.ts +57 -57
  104. package/dist/reviews/generated.d.ts.map +1 -1
  105. package/dist/role/generated.d.ts +191 -191
  106. package/dist/role/generated.d.ts.map +1 -1
  107. package/dist/scheduling/generated.d.ts +103 -103
  108. package/dist/scheduling/generated.d.ts.map +1 -1
  109. package/dist/services/generated.d.ts +1017 -1017
  110. package/dist/services/generated.d.ts.map +1 -1
  111. package/dist/sessions/generated.d.ts +362 -362
  112. package/dist/sessions/generated.d.ts.map +1 -1
  113. package/dist/spaces/generated.d.ts +600 -600
  114. package/dist/spaces/generated.d.ts.map +1 -1
  115. package/dist/storefront/generated.d.ts +21 -21
  116. package/dist/storefront/generated.d.ts.map +1 -1
  117. package/dist/support/generated.d.ts +1403 -1403
  118. package/dist/support/generated.d.ts.map +1 -1
  119. package/dist/sync/generated.d.ts +182 -182
  120. package/dist/sync/generated.d.ts.map +1 -1
  121. package/dist/tenant/generated.d.ts +737 -737
  122. package/dist/tenant/generated.d.ts.map +1 -1
  123. package/dist/testimonials/generated.d.ts +50 -50
  124. package/dist/testimonials/generated.d.ts.map +1 -1
  125. package/dist/tests/generated.d.ts +472 -472
  126. package/dist/tests/generated.d.ts.map +1 -1
  127. package/dist/tokens/generated.d.ts +54 -54
  128. package/dist/tokens/generated.d.ts.map +1 -1
  129. package/dist/uploads/generated.d.ts +69 -69
  130. package/dist/uploads/generated.d.ts.map +1 -1
  131. package/dist/upsell/generated.d.ts +130 -130
  132. package/dist/upsell/generated.d.ts.map +1 -1
  133. package/dist/user/generated.d.ts +72 -72
  134. package/dist/user/generated.d.ts.map +1 -1
  135. package/dist/webinars/generated.d.ts +329 -329
  136. package/dist/webinars/generated.d.ts.map +1 -1
  137. package/package.json +1 -1
@@ -871,166 +871,17 @@ export type webhooks = Record<string, never>;
871
871
  export interface components {
872
872
  schemas: {
873
873
  /**
874
- * VariantItem
875
- * @description Product variant (maps to product_variants_tbl)
876
- */
877
- VariantItem: {
878
- /**
879
- * Name
880
- * @description Variant display name
881
- */
882
- name: string;
883
- /**
884
- * Sku
885
- * @description Stock Keeping Unit
886
- */
887
- sku?: string | null;
888
- /**
889
- * Attributes
890
- * @description Custom attributes
891
- */
892
- attributes?: {
893
- [key: string]: unknown;
894
- } | null;
895
- /**
896
- * Is Default
897
- * @description Set as default variant
898
- * @default false
899
- */
900
- is_default: boolean;
901
- /**
902
- * Track Inventory
903
- * @description Track stock for this variant
904
- * @default false
905
- */
906
- track_inventory: boolean;
907
- /**
908
- * Stock Quantity
909
- * @description Initial stock
910
- */
911
- stock_quantity?: number | null;
912
- /**
913
- * Allow Backorder
914
- * @description Allow orders when out of stock
915
- * @default false
916
- */
917
- allow_backorder: boolean;
918
- /**
919
- * Weight
920
- * @description Weight in kg
921
- */
922
- weight?: number | null;
923
- /**
924
- * Length
925
- * @description Length in cm
926
- */
927
- length?: number | null;
928
- /**
929
- * Width
930
- * @description Width in cm
931
- */
932
- width?: number | null;
933
- /**
934
- * Height
935
- * @description Height in cm
936
- */
937
- height?: number | null;
938
- /**
939
- * Display Order
940
- * @description Display order
941
- * @default 100
942
- */
943
- display_order: number;
944
- /**
945
- * Metadata
946
- * @description Flexible metadata
947
- */
948
- metadata?: {
949
- [key: string]: unknown;
950
- } | null;
951
- };
952
- /**
953
- * TestCreateRequest
954
- * @description Request model for creating a test
874
+ * PricingSection
875
+ * @description Pricing configuration (optional - can have product price, variant prices, or both)
955
876
  */
956
- app__models__tests__test_models__TestCreateRequest: {
957
- /**
958
- * Product Id
959
- * @description External product ID (prod_xxx)
960
- */
961
- product_id: string;
962
- /**
963
- * Title
964
- * @description Test title
965
- */
966
- title: string;
967
- /**
968
- * Description
969
- * @description Test description
970
- */
971
- description?: string | null;
972
- /**
973
- * Total Marks
974
- * @description Total marks for test
975
- * @default 0
976
- */
977
- total_marks: number;
978
- /**
979
- * Passing Marks
980
- * @description Minimum passing marks
981
- */
982
- passing_marks?: number | null;
983
- /**
984
- * Has Time Limit
985
- * @description Whether test has time limit
986
- * @default true
987
- */
988
- has_time_limit: boolean;
989
- /**
990
- * Duration Minutes
991
- * @description Test duration in minutes
992
- */
993
- duration_minutes?: number | null;
994
- /**
995
- * Max Attempts
996
- * @description Maximum attempts allowed
997
- */
998
- max_attempts?: number | null;
999
- /**
1000
- * Randomize Questions
1001
- * @description Randomize question order
1002
- * @default false
1003
- */
1004
- randomize_questions: boolean;
1005
- /**
1006
- * Randomize Options
1007
- * @description Randomize option order (MCQs)
1008
- * @default false
1009
- */
1010
- randomize_options: boolean;
1011
- /**
1012
- * Enable Proctoring
1013
- * @description Enable proctoring features
1014
- * @default false
1015
- */
1016
- enable_proctoring: boolean;
1017
- /**
1018
- * Enable Browser Lockdown
1019
- * @description Enable browser lockdown
1020
- * @default false
1021
- */
1022
- enable_browser_lockdown: boolean;
877
+ PricingSection: {
878
+ /** @description Base product price (no variant) */
879
+ product_price?: components["schemas"]["ProductPrice"] | null;
1023
880
  /**
1024
- * Company Id
1025
- * @description Company ID
881
+ * Variant Prices
882
+ * @description Variant-specific prices
1026
883
  */
1027
- company_id?: number | null;
1028
- };
1029
- InvalidParam: {
1030
- /** @example items[0].quantity */
1031
- field?: string;
1032
- /** @example Input should be greater than or equal to 1 */
1033
- error?: string;
884
+ variant_prices?: components["schemas"]["VariantPrice"][] | null;
1034
885
  };
1035
886
  /**
1036
887
  * TestSection
@@ -1197,33 +1048,6 @@ export interface components {
1197
1048
  */
1198
1049
  is_published: boolean;
1199
1050
  };
1200
- /**
1201
- * @example {
1202
- * "status": "success",
1203
- * "message": "Operation successful",
1204
- * "message_code": "api_suc_20001",
1205
- * "data": {},
1206
- * "metadata": {
1207
- * "timestamp": "2026-03-26T10:00:00.000Z",
1208
- * "requestId": "07e22004-cb60-4dfc-bc9c-b6f99664dca1",
1209
- * "traceId": "a9f1204c-bb82-41de-b234-7c3a9e120000",
1210
- * "version": "v1",
1211
- * "executionTime": 42,
1212
- * "language": "en-US"
1213
- * }
1214
- * }
1215
- */
1216
- StandardResponse: {
1217
- /** @example success */
1218
- status?: string;
1219
- data?: Record<string, never> | null;
1220
- /** @example Operation successful */
1221
- message?: string | null;
1222
- /** @example api_suc_20001 */
1223
- message_code?: string | null;
1224
- metadata?: Record<string, never> | null;
1225
- error?: components["schemas"]["ErrorResponse"];
1226
- };
1227
1051
  /**
1228
1052
  * AnswerSubmitRequest
1229
1053
  * @description Request model for submitting an answer
@@ -1251,138 +1075,158 @@ export interface components {
1251
1075
  answer_code?: string | null;
1252
1076
  };
1253
1077
  /**
1254
- * ManualGradingSubmitRequest
1255
- * @description Request model for submitting manual grading
1078
+ * MediaSection
1079
+ * @description Product media files - direct media data
1256
1080
  */
1257
- ManualGradingSubmitRequest: {
1258
- /**
1259
- * Marks Awarded
1260
- * @description Marks awarded
1261
- */
1262
- marks_awarded: number;
1081
+ MediaSection: {
1263
1082
  /**
1264
- * Grader Feedback
1265
- * @description Grader feedback
1083
+ * Media Items
1084
+ * @description List of media files to attach to product
1266
1085
  */
1267
- grader_feedback?: string | null;
1086
+ media_items?: components["schemas"]["MediaItem"][] | null;
1268
1087
  };
1269
1088
  /**
1270
- * MediaItem
1271
- * @description Single media file item
1089
+ * ProductSection
1090
+ * @description Base product fields (maps to product_tbl)
1272
1091
  */
1273
- MediaItem: {
1092
+ ProductSection: {
1274
1093
  /**
1275
- * Media Type
1276
- * @description logo, banner, promo_video, gallery_image, gallery_video, swatch
1094
+ * Visibility
1095
+ * @description public, private, hidden, unlisted
1096
+ * @default public
1277
1097
  */
1278
- media_type: string;
1098
+ visibility: string;
1279
1099
  /**
1280
- * File Path
1281
- * @description Path to media file on storage (S3, CDN, local)
1100
+ * Is Digital
1101
+ * @description Digital product flag
1102
+ * @default true
1282
1103
  */
1283
- file_path: string;
1104
+ is_digital: boolean;
1284
1105
  /**
1285
- * File Name
1286
- * @description Original filename
1106
+ * Company Id
1107
+ * @description Multi-company support
1287
1108
  */
1288
- file_name: string;
1109
+ company_id?: number | null;
1289
1110
  /**
1290
- * File Size
1291
- * @description File size in bytes
1111
+ * Status
1112
+ * @description draft, published, archived, review_required, deleted
1113
+ * @default draft
1292
1114
  */
1293
- file_size?: number | null;
1115
+ status: string;
1294
1116
  /**
1295
- * Mime Type
1296
- * @description MIME type (image/png, video/mp4, etc.)
1117
+ * Is Org Level
1118
+ * @description Org-level vs user-created product
1119
+ * @default true
1297
1120
  */
1298
- mime_type?: string | null;
1121
+ is_org_level: boolean;
1299
1122
  /**
1300
- * Width
1301
- * @description Width in pixels (for images/videos)
1123
+ * Staff Id
1124
+ * @description Staff/instructor delivering product
1302
1125
  */
1303
- width?: number | null;
1126
+ staff_id?: number | null;
1304
1127
  /**
1305
- * Height
1306
- * @description Height in pixels (for images/videos)
1128
+ * Owner Id
1129
+ * @description Owner of the product
1307
1130
  */
1308
- height?: number | null;
1131
+ owner_id?: number | null;
1309
1132
  /**
1310
- * Responsive Versions
1311
- * @description JSON with thumbnail, small, medium, large, xlarge, original paths
1133
+ * Featured
1134
+ * @description Featured product flag
1135
+ * @default false
1312
1136
  */
1313
- responsive_versions?: {
1314
- [key: string]: string;
1315
- } | null;
1137
+ featured: boolean;
1138
+ };
1139
+ /**
1140
+ * TestCreateRequest
1141
+ * @description Request model for creating a test
1142
+ */
1143
+ TestCreateRequest: {
1316
1144
  /**
1317
- * Alt Text
1318
- * @description Alt text for SEO/accessibility
1145
+ * Product Id
1146
+ * @description External product ID (prod_xxx)
1319
1147
  */
1320
- alt_text?: string | null;
1148
+ product_id: string;
1321
1149
  /**
1322
- * Locale
1323
- * @description Media locale (en-US, es-PR, etc.)
1324
- * @default en-US
1150
+ * Title
1151
+ * @description Test title
1325
1152
  */
1326
- locale: string;
1153
+ title: string;
1327
1154
  /**
1328
- * Display Order
1329
- * @description Display order
1155
+ * Description
1156
+ * @description Test description
1157
+ */
1158
+ description?: string | null;
1159
+ /**
1160
+ * Total Marks
1161
+ * @description Total marks for test
1330
1162
  * @default 0
1331
1163
  */
1332
- display_order: number;
1164
+ total_marks: number;
1333
1165
  /**
1334
- * Is Primary
1335
- * @description Mark as primary media
1336
- * @default false
1166
+ * Passing Marks
1167
+ * @description Minimum passing marks
1337
1168
  */
1338
- is_primary: boolean;
1339
- };
1340
- /**
1341
- * QuestionOptionCreate
1342
- * @description Option for MCQ questions
1343
- */
1344
- QuestionOptionCreate: {
1169
+ passing_marks?: number | null;
1345
1170
  /**
1346
- * Option Text
1347
- * @description Option text
1171
+ * Has Time Limit
1172
+ * @description Whether test has time limit
1173
+ * @default true
1348
1174
  */
1349
- option_text: string;
1175
+ has_time_limit: boolean;
1350
1176
  /**
1351
- * Is Correct
1352
- * @description Whether this is correct answer
1177
+ * Duration Minutes
1178
+ * @description Test duration in minutes
1179
+ */
1180
+ duration_minutes?: number | null;
1181
+ /**
1182
+ * Max Attempts
1183
+ * @description Maximum attempts allowed
1184
+ */
1185
+ max_attempts?: number | null;
1186
+ /**
1187
+ * Randomize Questions
1188
+ * @description Randomize question order
1353
1189
  * @default false
1354
1190
  */
1355
- is_correct: boolean;
1191
+ randomize_questions: boolean;
1356
1192
  /**
1357
- * Display Order
1358
- * @description Display order
1193
+ * Randomize Options
1194
+ * @description Randomize option order (MCQs)
1195
+ * @default false
1359
1196
  */
1360
- display_order?: number | null;
1197
+ randomize_options: boolean;
1361
1198
  /**
1362
- * Explanation
1363
- * @description Explanation for this option
1199
+ * Enable Proctoring
1200
+ * @description Enable proctoring features
1201
+ * @default false
1364
1202
  */
1365
- explanation?: string | null;
1366
- };
1367
- /**
1368
- * MediaSection
1369
- * @description Product media files - direct media data
1370
- */
1371
- MediaSection: {
1203
+ enable_proctoring: boolean;
1372
1204
  /**
1373
- * Media Items
1374
- * @description List of media files to attach to product
1205
+ * Enable Browser Lockdown
1206
+ * @description Enable browser lockdown
1207
+ * @default false
1375
1208
  */
1376
- media_items?: components["schemas"]["MediaItem"][] | null;
1209
+ enable_browser_lockdown: boolean;
1210
+ /**
1211
+ * Company Id
1212
+ * @description Company ID
1213
+ */
1214
+ company_id?: number | null;
1377
1215
  };
1378
- Extensions: {
1216
+ ErrorResponse: {
1217
+ /** @example about:blank */
1218
+ type?: string;
1379
1219
  /** @example GENERIC_ERROR */
1380
- message_code?: string;
1381
- /** @example [] */
1382
- invalid_params?: components["schemas"]["InvalidParam"][];
1383
- extra_data?: Record<string, never> | null;
1384
- /** @example Detailed debug information */
1385
- debug?: string | null;
1220
+ code?: string;
1221
+ /** @example Client Error */
1222
+ title?: string;
1223
+ /** @example 400 */
1224
+ status?: number;
1225
+ /** @example An error occurred */
1226
+ detail?: string;
1227
+ /** @example /v1/cart/items */
1228
+ instance?: string;
1229
+ extensions?: components["schemas"]["Extensions"];
1386
1230
  };
1387
1231
  /**
1388
1232
  * TestCreateRequest
@@ -1413,7 +1257,7 @@ export interface components {
1413
1257
  * }
1414
1258
  * }
1415
1259
  */
1416
- TestCreateRequest: {
1260
+ app__models__products__test_models__TestCreateRequest: {
1417
1261
  /** @description Base product configuration */
1418
1262
  product: components["schemas"]["ProductSection"];
1419
1263
  /** @description Localized content (title, description) */
@@ -1436,130 +1280,280 @@ export interface components {
1436
1280
  test: components["schemas"]["TestSection"];
1437
1281
  };
1438
1282
  /**
1439
- * IdentitySection
1440
- * @description Localized product content (maps to product_identity_tbl)
1283
+ * QuestionOptionCreate
1284
+ * @description Option for MCQ questions
1441
1285
  */
1442
- IdentitySection: {
1286
+ QuestionOptionCreate: {
1443
1287
  /**
1444
- * Locale
1445
- * @description Locale: en-US, es-PR, fr-FR, pt-BR, etc.
1446
- * @default en-US
1288
+ * Option Text
1289
+ * @description Option text
1447
1290
  */
1448
- locale: string;
1291
+ option_text: string;
1449
1292
  /**
1450
- * Title
1451
- * @description Product title
1293
+ * Is Correct
1294
+ * @description Whether this is correct answer
1295
+ * @default false
1452
1296
  */
1453
- title: string;
1297
+ is_correct: boolean;
1454
1298
  /**
1455
- * Subtitle
1456
- * @description Product subtitle
1299
+ * Display Order
1300
+ * @description Display order
1457
1301
  */
1458
- subtitle?: string | null;
1302
+ display_order?: number | null;
1459
1303
  /**
1460
- * Description
1461
- * @description Full product description
1304
+ * Explanation
1305
+ * @description Explanation for this option
1462
1306
  */
1307
+ explanation?: string | null;
1308
+ };
1309
+ /**
1310
+ * TestUpdateRequest
1311
+ * @description Request model for updating a test
1312
+ */
1313
+ TestUpdateRequest: {
1314
+ /** Title */
1315
+ title?: string | null;
1316
+ /** Description */
1463
1317
  description?: string | null;
1318
+ /** Total Marks */
1319
+ total_marks?: number | null;
1320
+ /** Passing Marks */
1321
+ passing_marks?: number | null;
1322
+ /** Has Time Limit */
1323
+ has_time_limit?: boolean | null;
1324
+ /** Duration Minutes */
1325
+ duration_minutes?: number | null;
1326
+ /** Max Attempts */
1327
+ max_attempts?: number | null;
1328
+ /** Randomize Questions */
1329
+ randomize_questions?: boolean | null;
1330
+ /** Randomize Options */
1331
+ randomize_options?: boolean | null;
1332
+ /** Enable Proctoring */
1333
+ enable_proctoring?: boolean | null;
1334
+ /** Enable Browser Lockdown */
1335
+ enable_browser_lockdown?: boolean | null;
1336
+ };
1337
+ /**
1338
+ * MediaItem
1339
+ * @description Single media file item
1340
+ */
1341
+ MediaItem: {
1464
1342
  /**
1465
- * Short Description
1466
- * @description Short description for listings/previews
1343
+ * Media Type
1344
+ * @description logo, banner, promo_video, gallery_image, gallery_video, swatch
1467
1345
  */
1468
- short_description?: string | null;
1346
+ media_type: string;
1347
+ /**
1348
+ * File Path
1349
+ * @description Path to media file on storage (S3, CDN, local)
1350
+ */
1351
+ file_path: string;
1352
+ /**
1353
+ * File Name
1354
+ * @description Original filename
1355
+ */
1356
+ file_name: string;
1357
+ /**
1358
+ * File Size
1359
+ * @description File size in bytes
1360
+ */
1361
+ file_size?: number | null;
1362
+ /**
1363
+ * Mime Type
1364
+ * @description MIME type (image/png, video/mp4, etc.)
1365
+ */
1366
+ mime_type?: string | null;
1367
+ /**
1368
+ * Width
1369
+ * @description Width in pixels (for images/videos)
1370
+ */
1371
+ width?: number | null;
1372
+ /**
1373
+ * Height
1374
+ * @description Height in pixels (for images/videos)
1375
+ */
1376
+ height?: number | null;
1377
+ /**
1378
+ * Responsive Versions
1379
+ * @description JSON with thumbnail, small, medium, large, xlarge, original paths
1380
+ */
1381
+ responsive_versions?: {
1382
+ [key: string]: string;
1383
+ } | null;
1384
+ /**
1385
+ * Alt Text
1386
+ * @description Alt text for SEO/accessibility
1387
+ */
1388
+ alt_text?: string | null;
1389
+ /**
1390
+ * Locale
1391
+ * @description Media locale (en-US, es-PR, etc.)
1392
+ * @default en-US
1393
+ */
1394
+ locale: string;
1395
+ /**
1396
+ * Display Order
1397
+ * @description Display order
1398
+ * @default 0
1399
+ */
1400
+ display_order: number;
1401
+ /**
1402
+ * Is Primary
1403
+ * @description Mark as primary media
1404
+ * @default false
1405
+ */
1406
+ is_primary: boolean;
1407
+ };
1408
+ Extensions: {
1409
+ /** @example GENERIC_ERROR */
1410
+ message_code?: string;
1411
+ /** @example [] */
1412
+ invalid_params?: components["schemas"]["InvalidParam"][];
1413
+ extra_data?: Record<string, never> | null;
1414
+ /** @example Detailed debug information */
1415
+ debug?: string | null;
1469
1416
  };
1470
1417
  /**
1471
- * QuestionCreateRequest
1472
- * @description Request model for creating a question
1418
+ * VariantPrice
1419
+ * @description Variant-specific pricing (maps to product_pricings_tbl with variant_id set)
1473
1420
  */
1474
- QuestionCreateRequest: {
1421
+ VariantPrice: {
1475
1422
  /**
1476
- * Question Text
1477
- * @description Question text
1423
+ * Variant Index
1424
+ * @description Index in variants array (0-based)
1478
1425
  */
1479
- question_text: string;
1426
+ variant_index: number;
1480
1427
  /**
1481
- * Question Type
1482
- * @description Question type: mcq_single, mcq_multiple, true_false, fill_blank, essay, code, matching, ordering
1428
+ * Price Type
1429
+ * @description free, one_time, subscription, monthly_plan
1483
1430
  */
1484
- question_type: string;
1431
+ price_type: string;
1485
1432
  /**
1486
- * Default Marks
1487
- * @description Marks for correct answer
1488
- * @default 1
1433
+ * Currency
1434
+ * @description Currency code
1489
1435
  */
1490
- default_marks: number;
1436
+ currency: string;
1491
1437
  /**
1492
- * Negative Marks
1493
- * @description Marks deducted for wrong answer
1494
- * @default 0
1438
+ * Amount
1439
+ * @description Price amount
1495
1440
  */
1496
- negative_marks: number;
1441
+ amount: number;
1497
1442
  /**
1498
- * Difficulty Level
1499
- * @description Difficulty: easy, medium, hard
1443
+ * Compare At Amount
1444
+ * @description Original/strike-through price
1500
1445
  */
1501
- difficulty_level?: string | null;
1446
+ compare_at_amount?: number | null;
1502
1447
  /**
1503
- * Category Id
1504
- * @description Question category ID
1448
+ * Interval
1449
+ * @description day, week, month, year
1505
1450
  */
1506
- category_id?: number | null;
1451
+ interval?: string | null;
1507
1452
  /**
1508
- * Tags
1509
- * @description List of tags
1453
+ * Interval Count
1454
+ * @description Number of intervals
1510
1455
  */
1511
- tags?: string[] | null;
1456
+ interval_count?: number | null;
1512
1457
  /**
1513
- * Company Id
1514
- * @description Company ID
1458
+ * Trial Period Days
1459
+ * @description Free trial days
1515
1460
  */
1516
- company_id?: number | null;
1461
+ trial_period_days?: number | null;
1517
1462
  /**
1518
- * Options
1519
- * @description Options for MCQ questions
1463
+ * Initial Amount
1464
+ * @description First payment amount
1520
1465
  */
1521
- options?: components["schemas"]["QuestionOptionCreate"][] | null;
1466
+ initial_amount?: number | null;
1522
1467
  /**
1523
- * Code Language
1524
- * @description Programming language (python, javascript, java, etc.)
1468
+ * Gateway
1469
+ * @description stripe, razorpay, paypal, etc.
1525
1470
  */
1526
- code_language?: string | null;
1471
+ gateway?: string | null;
1527
1472
  /**
1528
- * Code Test Cases
1529
- * @description Test cases for code evaluation
1473
+ * Requires Payment Method Upfront
1474
+ * @description Require payment method before trial
1475
+ * @default true
1530
1476
  */
1531
- code_test_cases?: {
1477
+ requires_payment_method_upfront: boolean;
1478
+ };
1479
+ /**
1480
+ * VariantItem
1481
+ * @description Product variant (maps to product_variants_tbl)
1482
+ */
1483
+ VariantItem: {
1484
+ /**
1485
+ * Name
1486
+ * @description Variant display name
1487
+ */
1488
+ name: string;
1489
+ /**
1490
+ * Sku
1491
+ * @description Stock Keeping Unit
1492
+ */
1493
+ sku?: string | null;
1494
+ /**
1495
+ * Attributes
1496
+ * @description Custom attributes
1497
+ */
1498
+ attributes?: {
1532
1499
  [key: string]: unknown;
1533
1500
  } | null;
1534
1501
  /**
1535
- * Code Time Limit Ms
1536
- * @description Time limit in milliseconds
1502
+ * Is Default
1503
+ * @description Set as default variant
1504
+ * @default false
1537
1505
  */
1538
- code_time_limit_ms?: number | null;
1506
+ is_default: boolean;
1539
1507
  /**
1540
- * Code Memory Limit Kb
1541
- * @description Memory limit in KB
1508
+ * Track Inventory
1509
+ * @description Track stock for this variant
1510
+ * @default false
1542
1511
  */
1543
- code_memory_limit_kb?: number | null;
1512
+ track_inventory: boolean;
1544
1513
  /**
1545
- * Code Starter Code
1546
- * @description Starter code template
1514
+ * Stock Quantity
1515
+ * @description Initial stock
1547
1516
  */
1548
- code_starter_code?: string | null;
1517
+ stock_quantity?: number | null;
1549
1518
  /**
1550
- * Matching Pairs
1551
- * @description Matching pairs data
1519
+ * Allow Backorder
1520
+ * @description Allow orders when out of stock
1521
+ * @default false
1552
1522
  */
1553
- matching_pairs?: {
1554
- [key: string]: unknown;
1555
- }[] | null;
1523
+ allow_backorder: boolean;
1556
1524
  /**
1557
- * Ordering Items
1558
- * @description Ordering items data
1525
+ * Weight
1526
+ * @description Weight in kg
1559
1527
  */
1560
- ordering_items?: {
1528
+ weight?: number | null;
1529
+ /**
1530
+ * Length
1531
+ * @description Length in cm
1532
+ */
1533
+ length?: number | null;
1534
+ /**
1535
+ * Width
1536
+ * @description Width in cm
1537
+ */
1538
+ width?: number | null;
1539
+ /**
1540
+ * Height
1541
+ * @description Height in cm
1542
+ */
1543
+ height?: number | null;
1544
+ /**
1545
+ * Display Order
1546
+ * @description Display order
1547
+ * @default 100
1548
+ */
1549
+ display_order: number;
1550
+ /**
1551
+ * Metadata
1552
+ * @description Flexible metadata
1553
+ */
1554
+ metadata?: {
1561
1555
  [key: string]: unknown;
1562
- }[] | null;
1556
+ } | null;
1563
1557
  };
1564
1558
  /**
1565
1559
  * ProductPrice
@@ -1618,174 +1612,180 @@ export interface components {
1618
1612
  */
1619
1613
  requires_payment_method_upfront: boolean;
1620
1614
  };
1615
+ InvalidParam: {
1616
+ /** @example items[0].quantity */
1617
+ field?: string;
1618
+ /** @example Input should be greater than or equal to 1 */
1619
+ error?: string;
1620
+ };
1621
1621
  /**
1622
- * VariantPrice
1623
- * @description Variant-specific pricing (maps to product_pricings_tbl with variant_id set)
1622
+ * QuestionCreateRequest
1623
+ * @description Request model for creating a question
1624
1624
  */
1625
- VariantPrice: {
1626
- /**
1627
- * Variant Index
1628
- * @description Index in variants array (0-based)
1629
- */
1630
- variant_index: number;
1625
+ QuestionCreateRequest: {
1631
1626
  /**
1632
- * Price Type
1633
- * @description free, one_time, subscription, monthly_plan
1627
+ * Question Text
1628
+ * @description Question text
1634
1629
  */
1635
- price_type: string;
1630
+ question_text: string;
1636
1631
  /**
1637
- * Currency
1638
- * @description Currency code
1632
+ * Question Type
1633
+ * @description Question type: mcq_single, mcq_multiple, true_false, fill_blank, essay, code, matching, ordering
1639
1634
  */
1640
- currency: string;
1635
+ question_type: string;
1641
1636
  /**
1642
- * Amount
1643
- * @description Price amount
1637
+ * Default Marks
1638
+ * @description Marks for correct answer
1639
+ * @default 1
1644
1640
  */
1645
- amount: number;
1641
+ default_marks: number;
1646
1642
  /**
1647
- * Compare At Amount
1648
- * @description Original/strike-through price
1643
+ * Negative Marks
1644
+ * @description Marks deducted for wrong answer
1645
+ * @default 0
1649
1646
  */
1650
- compare_at_amount?: number | null;
1647
+ negative_marks: number;
1651
1648
  /**
1652
- * Interval
1653
- * @description day, week, month, year
1649
+ * Difficulty Level
1650
+ * @description Difficulty: easy, medium, hard
1654
1651
  */
1655
- interval?: string | null;
1652
+ difficulty_level?: string | null;
1656
1653
  /**
1657
- * Interval Count
1658
- * @description Number of intervals
1654
+ * Category Id
1655
+ * @description Question category ID
1659
1656
  */
1660
- interval_count?: number | null;
1657
+ category_id?: number | null;
1661
1658
  /**
1662
- * Trial Period Days
1663
- * @description Free trial days
1659
+ * Tags
1660
+ * @description List of tags
1664
1661
  */
1665
- trial_period_days?: number | null;
1662
+ tags?: string[] | null;
1666
1663
  /**
1667
- * Initial Amount
1668
- * @description First payment amount
1664
+ * Company Id
1665
+ * @description Company ID
1669
1666
  */
1670
- initial_amount?: number | null;
1667
+ company_id?: number | null;
1671
1668
  /**
1672
- * Gateway
1673
- * @description stripe, razorpay, paypal, etc.
1669
+ * Options
1670
+ * @description Options for MCQ questions
1674
1671
  */
1675
- gateway?: string | null;
1672
+ options?: components["schemas"]["QuestionOptionCreate"][] | null;
1676
1673
  /**
1677
- * Requires Payment Method Upfront
1678
- * @description Require payment method before trial
1679
- * @default true
1674
+ * Code Language
1675
+ * @description Programming language (python, javascript, java, etc.)
1680
1676
  */
1681
- requires_payment_method_upfront: boolean;
1682
- };
1683
- ErrorResponse: {
1684
- /** @example about:blank */
1685
- type?: string;
1686
- /** @example GENERIC_ERROR */
1687
- code?: string;
1688
- /** @example Client Error */
1689
- title?: string;
1690
- /** @example 400 */
1691
- status?: number;
1692
- /** @example An error occurred */
1693
- detail?: string;
1694
- /** @example /v1/cart/items */
1695
- instance?: string;
1696
- extensions?: components["schemas"]["Extensions"];
1697
- };
1698
- /**
1699
- * ProductSection
1700
- * @description Base product fields (maps to product_tbl)
1701
- */
1702
- ProductSection: {
1677
+ code_language?: string | null;
1703
1678
  /**
1704
- * Visibility
1705
- * @description public, private, hidden, unlisted
1706
- * @default public
1679
+ * Code Test Cases
1680
+ * @description Test cases for code evaluation
1707
1681
  */
1708
- visibility: string;
1682
+ code_test_cases?: {
1683
+ [key: string]: unknown;
1684
+ } | null;
1709
1685
  /**
1710
- * Is Digital
1711
- * @description Digital product flag
1712
- * @default true
1686
+ * Code Time Limit Ms
1687
+ * @description Time limit in milliseconds
1713
1688
  */
1714
- is_digital: boolean;
1689
+ code_time_limit_ms?: number | null;
1715
1690
  /**
1716
- * Company Id
1717
- * @description Multi-company support
1691
+ * Code Memory Limit Kb
1692
+ * @description Memory limit in KB
1718
1693
  */
1719
- company_id?: number | null;
1694
+ code_memory_limit_kb?: number | null;
1720
1695
  /**
1721
- * Status
1722
- * @description draft, published, archived, review_required, deleted
1723
- * @default draft
1696
+ * Code Starter Code
1697
+ * @description Starter code template
1724
1698
  */
1725
- status: string;
1699
+ code_starter_code?: string | null;
1726
1700
  /**
1727
- * Is Org Level
1728
- * @description Org-level vs user-created product
1729
- * @default true
1701
+ * Matching Pairs
1702
+ * @description Matching pairs data
1730
1703
  */
1731
- is_org_level: boolean;
1704
+ matching_pairs?: {
1705
+ [key: string]: unknown;
1706
+ }[] | null;
1732
1707
  /**
1733
- * Staff Id
1734
- * @description Staff/instructor delivering product
1708
+ * Ordering Items
1709
+ * @description Ordering items data
1735
1710
  */
1736
- staff_id?: number | null;
1711
+ ordering_items?: {
1712
+ [key: string]: unknown;
1713
+ }[] | null;
1714
+ };
1715
+ /**
1716
+ * ManualGradingSubmitRequest
1717
+ * @description Request model for submitting manual grading
1718
+ */
1719
+ ManualGradingSubmitRequest: {
1737
1720
  /**
1738
- * Owner Id
1739
- * @description Owner of the product
1721
+ * Marks Awarded
1722
+ * @description Marks awarded
1740
1723
  */
1741
- owner_id?: number | null;
1724
+ marks_awarded: number;
1742
1725
  /**
1743
- * Featured
1744
- * @description Featured product flag
1745
- * @default false
1726
+ * Grader Feedback
1727
+ * @description Grader feedback
1746
1728
  */
1747
- featured: boolean;
1729
+ grader_feedback?: string | null;
1748
1730
  };
1749
1731
  /**
1750
- * PricingSection
1751
- * @description Pricing configuration (optional - can have product price, variant prices, or both)
1732
+ * @example {
1733
+ * "status": "success",
1734
+ * "message": "Operation successful",
1735
+ * "message_code": "api_suc_20001",
1736
+ * "data": {},
1737
+ * "metadata": {
1738
+ * "timestamp": "2026-03-26T10:00:00.000Z",
1739
+ * "requestId": "07e22004-cb60-4dfc-bc9c-b6f99664dca1",
1740
+ * "traceId": "a9f1204c-bb82-41de-b234-7c3a9e120000",
1741
+ * "version": "v1",
1742
+ * "executionTime": 42,
1743
+ * "language": "en-US"
1744
+ * }
1745
+ * }
1752
1746
  */
1753
- PricingSection: {
1754
- /** @description Base product price (no variant) */
1755
- product_price?: components["schemas"]["ProductPrice"] | null;
1756
- /**
1757
- * Variant Prices
1758
- * @description Variant-specific prices
1759
- */
1760
- variant_prices?: components["schemas"]["VariantPrice"][] | null;
1747
+ StandardResponse: {
1748
+ /** @example success */
1749
+ status?: string;
1750
+ data?: Record<string, never> | null;
1751
+ /** @example Operation successful */
1752
+ message?: string | null;
1753
+ /** @example api_suc_20001 */
1754
+ message_code?: string | null;
1755
+ metadata?: Record<string, never> | null;
1756
+ error?: components["schemas"]["ErrorResponse"];
1761
1757
  };
1762
1758
  /**
1763
- * TestUpdateRequest
1764
- * @description Request model for updating a test
1759
+ * IdentitySection
1760
+ * @description Localized product content (maps to product_identity_tbl)
1765
1761
  */
1766
- TestUpdateRequest: {
1767
- /** Title */
1768
- title?: string | null;
1769
- /** Description */
1762
+ IdentitySection: {
1763
+ /**
1764
+ * Locale
1765
+ * @description Locale: en-US, es-PR, fr-FR, pt-BR, etc.
1766
+ * @default en-US
1767
+ */
1768
+ locale: string;
1769
+ /**
1770
+ * Title
1771
+ * @description Product title
1772
+ */
1773
+ title: string;
1774
+ /**
1775
+ * Subtitle
1776
+ * @description Product subtitle
1777
+ */
1778
+ subtitle?: string | null;
1779
+ /**
1780
+ * Description
1781
+ * @description Full product description
1782
+ */
1770
1783
  description?: string | null;
1771
- /** Total Marks */
1772
- total_marks?: number | null;
1773
- /** Passing Marks */
1774
- passing_marks?: number | null;
1775
- /** Has Time Limit */
1776
- has_time_limit?: boolean | null;
1777
- /** Duration Minutes */
1778
- duration_minutes?: number | null;
1779
- /** Max Attempts */
1780
- max_attempts?: number | null;
1781
- /** Randomize Questions */
1782
- randomize_questions?: boolean | null;
1783
- /** Randomize Options */
1784
- randomize_options?: boolean | null;
1785
- /** Enable Proctoring */
1786
- enable_proctoring?: boolean | null;
1787
- /** Enable Browser Lockdown */
1788
- enable_browser_lockdown?: boolean | null;
1784
+ /**
1785
+ * Short Description
1786
+ * @description Short description for listings/previews
1787
+ */
1788
+ short_description?: string | null;
1789
1789
  };
1790
1790
  };
1791
1791
  responses: never;
@@ -1807,7 +1807,7 @@ export interface operations {
1807
1807
  };
1808
1808
  requestBody: {
1809
1809
  content: {
1810
- "application/json": components["schemas"]["TestCreateRequest"];
1810
+ "application/json": components["schemas"]["app__models__products__test_models__TestCreateRequest"];
1811
1811
  };
1812
1812
  };
1813
1813
  responses: {
@@ -2220,7 +2220,7 @@ export interface operations {
2220
2220
  };
2221
2221
  requestBody: {
2222
2222
  content: {
2223
- "application/json": components["schemas"]["app__models__tests__test_models__TestCreateRequest"];
2223
+ "application/json": components["schemas"]["TestCreateRequest"];
2224
2224
  };
2225
2225
  };
2226
2226
  responses: {