@blezgo/api-sdk 0.1.5 → 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 +238 -238
  2. package/dist/account/generated.d.ts.map +1 -1
  3. package/dist/activity/generated.d.ts +57 -57
  4. package/dist/activity/generated.d.ts.map +1 -1
  5. package/dist/addon/generated.d.ts +82 -82
  6. package/dist/addon/generated.d.ts.map +1 -1
  7. package/dist/admin/generated.d.ts +102 -102
  8. package/dist/admin/generated.d.ts.map +1 -1
  9. package/dist/affiliate/generated.d.ts +81 -81
  10. package/dist/affiliate/generated.d.ts.map +1 -1
  11. package/dist/analytics/generated.d.ts +22 -22
  12. package/dist/analytics/generated.d.ts.map +1 -1
  13. package/dist/announcements/generated.d.ts +134 -134
  14. package/dist/announcements/generated.d.ts.map +1 -1
  15. package/dist/apikeys/generated.d.ts +69 -69
  16. package/dist/apikeys/generated.d.ts.map +1 -1
  17. package/dist/assistance/generated.d.ts +22 -22
  18. package/dist/assistance/generated.d.ts.map +1 -1
  19. package/dist/authentication/generated.d.ts +61 -61
  20. package/dist/authentication/generated.d.ts.map +1 -1
  21. package/dist/blog/generated.d.ts +206 -206
  22. package/dist/blog/generated.d.ts.map +1 -1
  23. package/dist/bundle/generated.d.ts +84 -84
  24. package/dist/bundle/generated.d.ts.map +1 -1
  25. package/dist/cache/generated.d.ts +38 -38
  26. package/dist/cache/generated.d.ts.map +1 -1
  27. package/dist/calendar/generated.d.ts +28 -28
  28. package/dist/calendar/generated.d.ts.map +1 -1
  29. package/dist/campaigns/generated.d.ts +174 -174
  30. package/dist/campaigns/generated.d.ts.map +1 -1
  31. package/dist/cart/generated.d.ts +28 -28
  32. package/dist/cart/generated.d.ts.map +1 -1
  33. package/dist/changelog/generated.d.ts +107 -107
  34. package/dist/changelog/generated.d.ts.map +1 -1
  35. package/dist/channel/generated.d.ts +224 -224
  36. package/dist/channel/generated.d.ts.map +1 -1
  37. package/dist/company/generated.d.ts +43 -43
  38. package/dist/company/generated.d.ts.map +1 -1
  39. package/dist/conference/generated.d.ts +74 -74
  40. package/dist/conference/generated.d.ts.map +1 -1
  41. package/dist/config/generated.d.ts +68 -68
  42. package/dist/config/generated.d.ts.map +1 -1
  43. package/dist/content/generated.d.ts +541 -541
  44. package/dist/content/generated.d.ts.map +1 -1
  45. package/dist/cookies/generated.d.ts +36 -36
  46. package/dist/cookies/generated.d.ts.map +1 -1
  47. package/dist/courses/generated.d.ts +436 -436
  48. package/dist/courses/generated.d.ts.map +1 -1
  49. package/dist/custom/generated.d.ts +83 -83
  50. package/dist/custom/generated.d.ts.map +1 -1
  51. package/dist/dashboard/generated.d.ts +214 -214
  52. package/dist/dashboard/generated.d.ts.map +1 -1
  53. package/dist/elasticsearch/generated.d.ts +22 -22
  54. package/dist/elasticsearch/generated.d.ts.map +1 -1
  55. package/dist/enrollments/generated.d.ts +22 -22
  56. package/dist/enrollments/generated.d.ts.map +1 -1
  57. package/dist/errors/generated.d.ts +51 -51
  58. package/dist/errors/generated.d.ts.map +1 -1
  59. package/dist/eventconfig/generated.d.ts +113 -113
  60. package/dist/eventconfig/generated.d.ts.map +1 -1
  61. package/dist/funnels/generated.d.ts +124 -124
  62. package/dist/funnels/generated.d.ts.map +1 -1
  63. package/dist/gamification/generated.d.ts +194 -194
  64. package/dist/gamification/generated.d.ts.map +1 -1
  65. package/dist/impersonation/generated.d.ts +35 -35
  66. package/dist/impersonation/generated.d.ts.map +1 -1
  67. package/dist/inbox/generated.d.ts +138 -138
  68. package/dist/inbox/generated.d.ts.map +1 -1
  69. package/dist/internal/generated.d.ts +22 -22
  70. package/dist/internal/generated.d.ts.map +1 -1
  71. package/dist/internationalization/generated.d.ts +22 -22
  72. package/dist/internationalization/generated.d.ts.map +1 -1
  73. package/dist/invitations/generated.d.ts +111 -111
  74. package/dist/invitations/generated.d.ts.map +1 -1
  75. package/dist/meetings/generated.d.ts +323 -323
  76. package/dist/meetings/generated.d.ts.map +1 -1
  77. package/dist/metas/generated.d.ts +160 -160
  78. package/dist/metas/generated.d.ts.map +1 -1
  79. package/dist/notification/generated.d.ts +246 -246
  80. package/dist/notification/generated.d.ts.map +1 -1
  81. package/dist/notifications/generated.d.ts +22 -22
  82. package/dist/notifications/generated.d.ts.map +1 -1
  83. package/dist/onboarding/generated.d.ts +118 -118
  84. package/dist/onboarding/generated.d.ts.map +1 -1
  85. package/dist/packages/generated.d.ts +80 -80
  86. package/dist/packages/generated.d.ts.map +1 -1
  87. package/dist/payments/generated.d.ts +557 -557
  88. package/dist/payments/generated.d.ts.map +1 -1
  89. package/dist/payouts/generated.d.ts +22 -22
  90. package/dist/payouts/generated.d.ts.map +1 -1
  91. package/dist/plans/generated.d.ts +472 -472
  92. package/dist/plans/generated.d.ts.map +1 -1
  93. package/dist/pricing/generated.d.ts +100 -100
  94. package/dist/pricing/generated.d.ts.map +1 -1
  95. package/dist/products/generated.d.ts +617 -617
  96. package/dist/products/generated.d.ts.map +1 -1
  97. package/dist/profile/generated.d.ts +328 -328
  98. package/dist/profile/generated.d.ts.map +1 -1
  99. package/dist/reasons/generated.d.ts +97 -97
  100. package/dist/reasons/generated.d.ts.map +1 -1
  101. package/dist/registration/generated.d.ts +184 -184
  102. package/dist/registration/generated.d.ts.map +1 -1
  103. package/dist/reviews/generated.d.ts +69 -69
  104. package/dist/reviews/generated.d.ts.map +1 -1
  105. package/dist/role/generated.d.ts +210 -210
  106. package/dist/role/generated.d.ts.map +1 -1
  107. package/dist/scheduling/generated.d.ts +80 -80
  108. package/dist/scheduling/generated.d.ts.map +1 -1
  109. package/dist/services/generated.d.ts +937 -937
  110. package/dist/services/generated.d.ts.map +1 -1
  111. package/dist/sessions/generated.d.ts +363 -363
  112. package/dist/sessions/generated.d.ts.map +1 -1
  113. package/dist/spaces/generated.d.ts +403 -403
  114. package/dist/spaces/generated.d.ts.map +1 -1
  115. package/dist/storefront/generated.d.ts +22 -22
  116. package/dist/storefront/generated.d.ts.map +1 -1
  117. package/dist/support/generated.d.ts +1440 -1440
  118. package/dist/support/generated.d.ts.map +1 -1
  119. package/dist/sync/generated.d.ts +193 -193
  120. package/dist/sync/generated.d.ts.map +1 -1
  121. package/dist/tenant/generated.d.ts +482 -482
  122. package/dist/tenant/generated.d.ts.map +1 -1
  123. package/dist/testimonials/generated.d.ts +65 -65
  124. package/dist/testimonials/generated.d.ts.map +1 -1
  125. package/dist/tests/generated.d.ts +445 -445
  126. package/dist/tests/generated.d.ts.map +1 -1
  127. package/dist/tokens/generated.d.ts +39 -39
  128. package/dist/tokens/generated.d.ts.map +1 -1
  129. package/dist/uploads/generated.d.ts +20 -20
  130. package/dist/uploads/generated.d.ts.map +1 -1
  131. package/dist/upsell/generated.d.ts +108 -108
  132. package/dist/upsell/generated.d.ts.map +1 -1
  133. package/dist/user/generated.d.ts +107 -107
  134. package/dist/user/generated.d.ts.map +1 -1
  135. package/dist/webinars/generated.d.ts +308 -308
  136. package/dist/webinars/generated.d.ts.map +1 -1
  137. package/package.json +1 -1
@@ -870,6 +870,19 @@ export interface paths {
870
870
  export type webhooks = Record<string, never>;
871
871
  export interface components {
872
872
  schemas: {
873
+ /**
874
+ * PricingSection
875
+ * @description Pricing configuration (optional - can have product price, variant prices, or both)
876
+ */
877
+ PricingSection: {
878
+ /** @description Base product price (no variant) */
879
+ product_price?: components["schemas"]["ProductPrice"] | null;
880
+ /**
881
+ * Variant Prices
882
+ * @description Variant-specific prices
883
+ */
884
+ variant_prices?: components["schemas"]["VariantPrice"][] | null;
885
+ };
873
886
  /**
874
887
  * TestSection
875
888
  * @description Test-specific fields (maps to tests_tbl)
@@ -1035,6 +1048,186 @@ export interface components {
1035
1048
  */
1036
1049
  is_published: boolean;
1037
1050
  };
1051
+ /**
1052
+ * AnswerSubmitRequest
1053
+ * @description Request model for submitting an answer
1054
+ */
1055
+ AnswerSubmitRequest: {
1056
+ /**
1057
+ * Question Id
1058
+ * @description External question ID (que_xxx)
1059
+ */
1060
+ question_id: string;
1061
+ /**
1062
+ * Selected Option Ids
1063
+ * @description Selected option IDs for MCQ
1064
+ */
1065
+ selected_option_ids?: string[] | null;
1066
+ /**
1067
+ * Answer Text
1068
+ * @description Text answer for essay/fill-blank
1069
+ */
1070
+ answer_text?: string | null;
1071
+ /**
1072
+ * Answer Code
1073
+ * @description Code answer for code questions
1074
+ */
1075
+ answer_code?: string | null;
1076
+ };
1077
+ /**
1078
+ * MediaSection
1079
+ * @description Product media files - direct media data
1080
+ */
1081
+ MediaSection: {
1082
+ /**
1083
+ * Media Items
1084
+ * @description List of media files to attach to product
1085
+ */
1086
+ media_items?: components["schemas"]["MediaItem"][] | null;
1087
+ };
1088
+ /**
1089
+ * ProductSection
1090
+ * @description Base product fields (maps to product_tbl)
1091
+ */
1092
+ ProductSection: {
1093
+ /**
1094
+ * Visibility
1095
+ * @description public, private, hidden, unlisted
1096
+ * @default public
1097
+ */
1098
+ visibility: string;
1099
+ /**
1100
+ * Is Digital
1101
+ * @description Digital product flag
1102
+ * @default true
1103
+ */
1104
+ is_digital: boolean;
1105
+ /**
1106
+ * Company Id
1107
+ * @description Multi-company support
1108
+ */
1109
+ company_id?: number | null;
1110
+ /**
1111
+ * Status
1112
+ * @description draft, published, archived, review_required, deleted
1113
+ * @default draft
1114
+ */
1115
+ status: string;
1116
+ /**
1117
+ * Is Org Level
1118
+ * @description Org-level vs user-created product
1119
+ * @default true
1120
+ */
1121
+ is_org_level: boolean;
1122
+ /**
1123
+ * Staff Id
1124
+ * @description Staff/instructor delivering product
1125
+ */
1126
+ staff_id?: number | null;
1127
+ /**
1128
+ * Owner Id
1129
+ * @description Owner of the product
1130
+ */
1131
+ owner_id?: number | null;
1132
+ /**
1133
+ * Featured
1134
+ * @description Featured product flag
1135
+ * @default false
1136
+ */
1137
+ featured: boolean;
1138
+ };
1139
+ /**
1140
+ * TestCreateRequest
1141
+ * @description Request model for creating a test
1142
+ */
1143
+ TestCreateRequest: {
1144
+ /**
1145
+ * Product Id
1146
+ * @description External product ID (prod_xxx)
1147
+ */
1148
+ product_id: string;
1149
+ /**
1150
+ * Title
1151
+ * @description Test title
1152
+ */
1153
+ title: string;
1154
+ /**
1155
+ * Description
1156
+ * @description Test description
1157
+ */
1158
+ description?: string | null;
1159
+ /**
1160
+ * Total Marks
1161
+ * @description Total marks for test
1162
+ * @default 0
1163
+ */
1164
+ total_marks: number;
1165
+ /**
1166
+ * Passing Marks
1167
+ * @description Minimum passing marks
1168
+ */
1169
+ passing_marks?: number | null;
1170
+ /**
1171
+ * Has Time Limit
1172
+ * @description Whether test has time limit
1173
+ * @default true
1174
+ */
1175
+ has_time_limit: boolean;
1176
+ /**
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
1189
+ * @default false
1190
+ */
1191
+ randomize_questions: boolean;
1192
+ /**
1193
+ * Randomize Options
1194
+ * @description Randomize option order (MCQs)
1195
+ * @default false
1196
+ */
1197
+ randomize_options: boolean;
1198
+ /**
1199
+ * Enable Proctoring
1200
+ * @description Enable proctoring features
1201
+ * @default false
1202
+ */
1203
+ enable_proctoring: boolean;
1204
+ /**
1205
+ * Enable Browser Lockdown
1206
+ * @description Enable browser lockdown
1207
+ * @default false
1208
+ */
1209
+ enable_browser_lockdown: boolean;
1210
+ /**
1211
+ * Company Id
1212
+ * @description Company ID
1213
+ */
1214
+ company_id?: number | null;
1215
+ };
1216
+ ErrorResponse: {
1217
+ /** @example about:blank */
1218
+ type?: string;
1219
+ /** @example GENERIC_ERROR */
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"];
1230
+ };
1038
1231
  /**
1039
1232
  * TestCreateRequest
1040
1233
  * @description Test creation request - inherits common fields, adds test-specific section
@@ -1087,192 +1280,31 @@ export interface components {
1087
1280
  test: components["schemas"]["TestSection"];
1088
1281
  };
1089
1282
  /**
1090
- * @example {
1091
- * "status": "success",
1092
- * "message": "Operation successful",
1093
- * "message_code": "api_suc_20001",
1094
- * "data": {},
1095
- * "metadata": {
1096
- * "timestamp": "2026-03-26T10:00:00.000Z",
1097
- * "requestId": "07e22004-cb60-4dfc-bc9c-b6f99664dca1",
1098
- * "traceId": "a9f1204c-bb82-41de-b234-7c3a9e120000",
1099
- * "version": "v1",
1100
- * "executionTime": 42,
1101
- * "language": "en-US"
1102
- * }
1103
- * }
1104
- */
1105
- StandardResponse: {
1106
- /** @example success */
1107
- status?: string;
1108
- data?: Record<string, never> | null;
1109
- /** @example Operation successful */
1110
- message?: string | null;
1111
- /** @example api_suc_20001 */
1112
- message_code?: string | null;
1113
- metadata?: Record<string, never> | null;
1114
- error?: components["schemas"]["ErrorResponse"];
1115
- };
1116
- /**
1117
- * VariantItem
1118
- * @description Product variant (maps to product_variants_tbl)
1283
+ * QuestionOptionCreate
1284
+ * @description Option for MCQ questions
1119
1285
  */
1120
- VariantItem: {
1286
+ QuestionOptionCreate: {
1121
1287
  /**
1122
- * Name
1123
- * @description Variant display name
1288
+ * Option Text
1289
+ * @description Option text
1124
1290
  */
1125
- name: string;
1291
+ option_text: string;
1126
1292
  /**
1127
- * Sku
1128
- * @description Stock Keeping Unit
1293
+ * Is Correct
1294
+ * @description Whether this is correct answer
1295
+ * @default false
1129
1296
  */
1130
- sku?: string | null;
1297
+ is_correct: boolean;
1131
1298
  /**
1132
- * Attributes
1133
- * @description Custom attributes
1299
+ * Display Order
1300
+ * @description Display order
1134
1301
  */
1135
- attributes?: {
1136
- [key: string]: unknown;
1137
- } | null;
1302
+ display_order?: number | null;
1138
1303
  /**
1139
- * Is Default
1140
- * @description Set as default variant
1141
- * @default false
1304
+ * Explanation
1305
+ * @description Explanation for this option
1142
1306
  */
1143
- is_default: boolean;
1144
- /**
1145
- * Track Inventory
1146
- * @description Track stock for this variant
1147
- * @default false
1148
- */
1149
- track_inventory: boolean;
1150
- /**
1151
- * Stock Quantity
1152
- * @description Initial stock
1153
- */
1154
- stock_quantity?: number | null;
1155
- /**
1156
- * Allow Backorder
1157
- * @description Allow orders when out of stock
1158
- * @default false
1159
- */
1160
- allow_backorder: boolean;
1161
- /**
1162
- * Weight
1163
- * @description Weight in kg
1164
- */
1165
- weight?: number | null;
1166
- /**
1167
- * Length
1168
- * @description Length in cm
1169
- */
1170
- length?: number | null;
1171
- /**
1172
- * Width
1173
- * @description Width in cm
1174
- */
1175
- width?: number | null;
1176
- /**
1177
- * Height
1178
- * @description Height in cm
1179
- */
1180
- height?: number | null;
1181
- /**
1182
- * Display Order
1183
- * @description Display order
1184
- * @default 100
1185
- */
1186
- display_order: number;
1187
- /**
1188
- * Metadata
1189
- * @description Flexible metadata
1190
- */
1191
- metadata?: {
1192
- [key: string]: unknown;
1193
- } | null;
1194
- };
1195
- Extensions: {
1196
- /** @example GENERIC_ERROR */
1197
- message_code?: string;
1198
- /** @example [] */
1199
- invalid_params?: components["schemas"]["InvalidParam"][];
1200
- extra_data?: Record<string, never> | null;
1201
- /** @example Detailed debug information */
1202
- debug?: string | null;
1203
- };
1204
- /**
1205
- * ManualGradingSubmitRequest
1206
- * @description Request model for submitting manual grading
1207
- */
1208
- ManualGradingSubmitRequest: {
1209
- /**
1210
- * Marks Awarded
1211
- * @description Marks awarded
1212
- */
1213
- marks_awarded: number;
1214
- /**
1215
- * Grader Feedback
1216
- * @description Grader feedback
1217
- */
1218
- grader_feedback?: string | null;
1219
- };
1220
- /**
1221
- * ProductPrice
1222
- * @description Base product pricing (maps to product_pricings_tbl with variant_id=NULL)
1223
- */
1224
- ProductPrice: {
1225
- /**
1226
- * Price Type
1227
- * @description free, one_time, subscription, monthly_plan
1228
- */
1229
- price_type: string;
1230
- /**
1231
- * Currency
1232
- * @description Currency code: INR, USD, EUR, etc.
1233
- */
1234
- currency: string;
1235
- /**
1236
- * Amount
1237
- * @description Price amount
1238
- */
1239
- amount: number;
1240
- /**
1241
- * Compare At Amount
1242
- * @description Original/strike-through price
1243
- */
1244
- compare_at_amount?: number | null;
1245
- /**
1246
- * Interval
1247
- * @description day, week, month, year (for subscription)
1248
- */
1249
- interval?: string | null;
1250
- /**
1251
- * Interval Count
1252
- * @description Number of intervals
1253
- */
1254
- interval_count?: number | null;
1255
- /**
1256
- * Trial Period Days
1257
- * @description Free trial days
1258
- */
1259
- trial_period_days?: number | null;
1260
- /**
1261
- * Initial Amount
1262
- * @description First payment amount
1263
- */
1264
- initial_amount?: number | null;
1265
- /**
1266
- * Gateway
1267
- * @description stripe, razorpay, paypal, etc.
1268
- */
1269
- gateway?: string | null;
1270
- /**
1271
- * Requires Payment Method Upfront
1272
- * @description Require payment method before trial
1273
- * @default true
1274
- */
1275
- requires_payment_method_upfront: boolean;
1307
+ explanation?: string | null;
1276
1308
  };
1277
1309
  /**
1278
1310
  * TestUpdateRequest
@@ -1302,38 +1334,6 @@ export interface components {
1302
1334
  /** Enable Browser Lockdown */
1303
1335
  enable_browser_lockdown?: boolean | null;
1304
1336
  };
1305
- /**
1306
- * IdentitySection
1307
- * @description Localized product content (maps to product_identity_tbl)
1308
- */
1309
- IdentitySection: {
1310
- /**
1311
- * Locale
1312
- * @description Locale: en-US, es-PR, fr-FR, pt-BR, etc.
1313
- * @default en-US
1314
- */
1315
- locale: string;
1316
- /**
1317
- * Title
1318
- * @description Product title
1319
- */
1320
- title: string;
1321
- /**
1322
- * Subtitle
1323
- * @description Product subtitle
1324
- */
1325
- subtitle?: string | null;
1326
- /**
1327
- * Description
1328
- * @description Full product description
1329
- */
1330
- description?: string | null;
1331
- /**
1332
- * Short Description
1333
- * @description Short description for listings/previews
1334
- */
1335
- short_description?: string | null;
1336
- };
1337
1337
  /**
1338
1338
  * MediaItem
1339
1339
  * @description Single media file item
@@ -1405,116 +1405,161 @@ export interface components {
1405
1405
  */
1406
1406
  is_primary: boolean;
1407
1407
  };
1408
- InvalidParam: {
1409
- /** @example items[0].quantity */
1410
- field?: string;
1411
- /** @example Input should be greater than or equal to 1 */
1412
- error?: string;
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;
1413
1416
  };
1414
1417
  /**
1415
- * QuestionCreateRequest
1416
- * @description Request model for creating a question
1418
+ * VariantPrice
1419
+ * @description Variant-specific pricing (maps to product_pricings_tbl with variant_id set)
1417
1420
  */
1418
- QuestionCreateRequest: {
1419
- /**
1420
- * Question Text
1421
- * @description Question text
1422
- */
1423
- question_text: string;
1421
+ VariantPrice: {
1424
1422
  /**
1425
- * Question Type
1426
- * @description Question type: mcq_single, mcq_multiple, true_false, fill_blank, essay, code, matching, ordering
1423
+ * Variant Index
1424
+ * @description Index in variants array (0-based)
1427
1425
  */
1428
- question_type: string;
1426
+ variant_index: number;
1429
1427
  /**
1430
- * Default Marks
1431
- * @description Marks for correct answer
1432
- * @default 1
1428
+ * Price Type
1429
+ * @description free, one_time, subscription, monthly_plan
1433
1430
  */
1434
- default_marks: number;
1431
+ price_type: string;
1435
1432
  /**
1436
- * Negative Marks
1437
- * @description Marks deducted for wrong answer
1438
- * @default 0
1433
+ * Currency
1434
+ * @description Currency code
1439
1435
  */
1440
- negative_marks: number;
1436
+ currency: string;
1441
1437
  /**
1442
- * Difficulty Level
1443
- * @description Difficulty: easy, medium, hard
1438
+ * Amount
1439
+ * @description Price amount
1444
1440
  */
1445
- difficulty_level?: string | null;
1441
+ amount: number;
1446
1442
  /**
1447
- * Category Id
1448
- * @description Question category ID
1443
+ * Compare At Amount
1444
+ * @description Original/strike-through price
1449
1445
  */
1450
- category_id?: number | null;
1446
+ compare_at_amount?: number | null;
1451
1447
  /**
1452
- * Tags
1453
- * @description List of tags
1448
+ * Interval
1449
+ * @description day, week, month, year
1454
1450
  */
1455
- tags?: string[] | null;
1451
+ interval?: string | null;
1456
1452
  /**
1457
- * Company Id
1458
- * @description Company ID
1453
+ * Interval Count
1454
+ * @description Number of intervals
1459
1455
  */
1460
- company_id?: number | null;
1456
+ interval_count?: number | null;
1461
1457
  /**
1462
- * Options
1463
- * @description Options for MCQ questions
1458
+ * Trial Period Days
1459
+ * @description Free trial days
1464
1460
  */
1465
- options?: components["schemas"]["QuestionOptionCreate"][] | null;
1461
+ trial_period_days?: number | null;
1466
1462
  /**
1467
- * Code Language
1468
- * @description Programming language (python, javascript, java, etc.)
1463
+ * Initial Amount
1464
+ * @description First payment amount
1469
1465
  */
1470
- code_language?: string | null;
1466
+ initial_amount?: number | null;
1471
1467
  /**
1472
- * Code Test Cases
1473
- * @description Test cases for code evaluation
1468
+ * Gateway
1469
+ * @description stripe, razorpay, paypal, etc.
1474
1470
  */
1475
- code_test_cases?: {
1476
- [key: string]: unknown;
1477
- } | null;
1471
+ gateway?: string | null;
1478
1472
  /**
1479
- * Code Time Limit Ms
1480
- * @description Time limit in milliseconds
1473
+ * Requires Payment Method Upfront
1474
+ * @description Require payment method before trial
1475
+ * @default true
1481
1476
  */
1482
- code_time_limit_ms?: number | null;
1477
+ requires_payment_method_upfront: boolean;
1478
+ };
1479
+ /**
1480
+ * VariantItem
1481
+ * @description Product variant (maps to product_variants_tbl)
1482
+ */
1483
+ VariantItem: {
1483
1484
  /**
1484
- * Code Memory Limit Kb
1485
- * @description Memory limit in KB
1485
+ * Name
1486
+ * @description Variant display name
1486
1487
  */
1487
- code_memory_limit_kb?: number | null;
1488
+ name: string;
1488
1489
  /**
1489
- * Code Starter Code
1490
- * @description Starter code template
1490
+ * Sku
1491
+ * @description Stock Keeping Unit
1491
1492
  */
1492
- code_starter_code?: string | null;
1493
+ sku?: string | null;
1493
1494
  /**
1494
- * Matching Pairs
1495
- * @description Matching pairs data
1495
+ * Attributes
1496
+ * @description Custom attributes
1496
1497
  */
1497
- matching_pairs?: {
1498
+ attributes?: {
1498
1499
  [key: string]: unknown;
1499
- }[] | null;
1500
+ } | null;
1500
1501
  /**
1501
- * Ordering Items
1502
- * @description Ordering items data
1502
+ * Is Default
1503
+ * @description Set as default variant
1504
+ * @default false
1503
1505
  */
1504
- ordering_items?: {
1506
+ is_default: boolean;
1507
+ /**
1508
+ * Track Inventory
1509
+ * @description Track stock for this variant
1510
+ * @default false
1511
+ */
1512
+ track_inventory: boolean;
1513
+ /**
1514
+ * Stock Quantity
1515
+ * @description Initial stock
1516
+ */
1517
+ stock_quantity?: number | null;
1518
+ /**
1519
+ * Allow Backorder
1520
+ * @description Allow orders when out of stock
1521
+ * @default false
1522
+ */
1523
+ allow_backorder: boolean;
1524
+ /**
1525
+ * Weight
1526
+ * @description Weight in kg
1527
+ */
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?: {
1505
1555
  [key: string]: unknown;
1506
- }[] | null;
1556
+ } | null;
1507
1557
  };
1508
1558
  /**
1509
- * VariantPrice
1510
- * @description Variant-specific pricing (maps to product_pricings_tbl with variant_id set)
1559
+ * ProductPrice
1560
+ * @description Base product pricing (maps to product_pricings_tbl with variant_id=NULL)
1511
1561
  */
1512
- VariantPrice: {
1513
- /**
1514
- * Variant Index
1515
- * @description Index in variants array (0-based)
1516
- */
1517
- variant_index: number;
1562
+ ProductPrice: {
1518
1563
  /**
1519
1564
  * Price Type
1520
1565
  * @description free, one_time, subscription, monthly_plan
@@ -1522,7 +1567,7 @@ export interface components {
1522
1567
  price_type: string;
1523
1568
  /**
1524
1569
  * Currency
1525
- * @description Currency code
1570
+ * @description Currency code: INR, USD, EUR, etc.
1526
1571
  */
1527
1572
  currency: string;
1528
1573
  /**
@@ -1537,7 +1582,7 @@ export interface components {
1537
1582
  compare_at_amount?: number | null;
1538
1583
  /**
1539
1584
  * Interval
1540
- * @description day, week, month, year
1585
+ * @description day, week, month, year (for subscription)
1541
1586
  */
1542
1587
  interval?: string | null;
1543
1588
  /**
@@ -1567,225 +1612,180 @@ export interface components {
1567
1612
  */
1568
1613
  requires_payment_method_upfront: boolean;
1569
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
+ };
1570
1621
  /**
1571
- * AnswerSubmitRequest
1572
- * @description Request model for submitting an answer
1622
+ * QuestionCreateRequest
1623
+ * @description Request model for creating a question
1573
1624
  */
1574
- AnswerSubmitRequest: {
1625
+ QuestionCreateRequest: {
1575
1626
  /**
1576
- * Question Id
1577
- * @description External question ID (que_xxx)
1627
+ * Question Text
1628
+ * @description Question text
1578
1629
  */
1579
- question_id: string;
1630
+ question_text: string;
1580
1631
  /**
1581
- * Selected Option Ids
1582
- * @description Selected option IDs for MCQ
1632
+ * Question Type
1633
+ * @description Question type: mcq_single, mcq_multiple, true_false, fill_blank, essay, code, matching, ordering
1583
1634
  */
1584
- selected_option_ids?: string[] | null;
1635
+ question_type: string;
1585
1636
  /**
1586
- * Answer Text
1587
- * @description Text answer for essay/fill-blank
1637
+ * Default Marks
1638
+ * @description Marks for correct answer
1639
+ * @default 1
1588
1640
  */
1589
- answer_text?: string | null;
1641
+ default_marks: number;
1590
1642
  /**
1591
- * Answer Code
1592
- * @description Code answer for code questions
1643
+ * Negative Marks
1644
+ * @description Marks deducted for wrong answer
1645
+ * @default 0
1593
1646
  */
1594
- answer_code?: string | null;
1595
- };
1596
- /**
1597
- * ProductSection
1598
- * @description Base product fields (maps to product_tbl)
1599
- */
1600
- ProductSection: {
1647
+ negative_marks: number;
1601
1648
  /**
1602
- * Visibility
1603
- * @description public, private, hidden, unlisted
1604
- * @default public
1649
+ * Difficulty Level
1650
+ * @description Difficulty: easy, medium, hard
1605
1651
  */
1606
- visibility: string;
1652
+ difficulty_level?: string | null;
1607
1653
  /**
1608
- * Is Digital
1609
- * @description Digital product flag
1610
- * @default true
1654
+ * Category Id
1655
+ * @description Question category ID
1611
1656
  */
1612
- is_digital: boolean;
1657
+ category_id?: number | null;
1613
1658
  /**
1614
- * Company Id
1615
- * @description Multi-company support
1659
+ * Tags
1660
+ * @description List of tags
1616
1661
  */
1617
- company_id?: number | null;
1662
+ tags?: string[] | null;
1618
1663
  /**
1619
- * Status
1620
- * @description draft, published, archived, review_required, deleted
1621
- * @default draft
1664
+ * Company Id
1665
+ * @description Company ID
1622
1666
  */
1623
- status: string;
1667
+ company_id?: number | null;
1624
1668
  /**
1625
- * Is Org Level
1626
- * @description Org-level vs user-created product
1627
- * @default true
1669
+ * Options
1670
+ * @description Options for MCQ questions
1628
1671
  */
1629
- is_org_level: boolean;
1672
+ options?: components["schemas"]["QuestionOptionCreate"][] | null;
1630
1673
  /**
1631
- * Staff Id
1632
- * @description Staff/instructor delivering product
1674
+ * Code Language
1675
+ * @description Programming language (python, javascript, java, etc.)
1633
1676
  */
1634
- staff_id?: number | null;
1677
+ code_language?: string | null;
1635
1678
  /**
1636
- * Owner Id
1637
- * @description Owner of the product
1679
+ * Code Test Cases
1680
+ * @description Test cases for code evaluation
1638
1681
  */
1639
- owner_id?: number | null;
1682
+ code_test_cases?: {
1683
+ [key: string]: unknown;
1684
+ } | null;
1640
1685
  /**
1641
- * Featured
1642
- * @description Featured product flag
1643
- * @default false
1686
+ * Code Time Limit Ms
1687
+ * @description Time limit in milliseconds
1644
1688
  */
1645
- featured: boolean;
1646
- };
1647
- ErrorResponse: {
1648
- /** @example about:blank */
1649
- type?: string;
1650
- /** @example GENERIC_ERROR */
1651
- code?: string;
1652
- /** @example Client Error */
1653
- title?: string;
1654
- /** @example 400 */
1655
- status?: number;
1656
- /** @example An error occurred */
1657
- detail?: string;
1658
- /** @example /v1/cart/items */
1659
- instance?: string;
1660
- extensions?: components["schemas"]["Extensions"];
1661
- };
1662
- /**
1663
- * QuestionOptionCreate
1664
- * @description Option for MCQ questions
1665
- */
1666
- QuestionOptionCreate: {
1689
+ code_time_limit_ms?: number | null;
1667
1690
  /**
1668
- * Option Text
1669
- * @description Option text
1691
+ * Code Memory Limit Kb
1692
+ * @description Memory limit in KB
1670
1693
  */
1671
- option_text: string;
1694
+ code_memory_limit_kb?: number | null;
1672
1695
  /**
1673
- * Is Correct
1674
- * @description Whether this is correct answer
1675
- * @default false
1696
+ * Code Starter Code
1697
+ * @description Starter code template
1676
1698
  */
1677
- is_correct: boolean;
1699
+ code_starter_code?: string | null;
1678
1700
  /**
1679
- * Display Order
1680
- * @description Display order
1701
+ * Matching Pairs
1702
+ * @description Matching pairs data
1681
1703
  */
1682
- display_order?: number | null;
1704
+ matching_pairs?: {
1705
+ [key: string]: unknown;
1706
+ }[] | null;
1683
1707
  /**
1684
- * Explanation
1685
- * @description Explanation for this option
1708
+ * Ordering Items
1709
+ * @description Ordering items data
1686
1710
  */
1687
- explanation?: string | null;
1711
+ ordering_items?: {
1712
+ [key: string]: unknown;
1713
+ }[] | null;
1688
1714
  };
1689
1715
  /**
1690
- * MediaSection
1691
- * @description Product media files - direct media data
1716
+ * ManualGradingSubmitRequest
1717
+ * @description Request model for submitting manual grading
1692
1718
  */
1693
- MediaSection: {
1719
+ ManualGradingSubmitRequest: {
1694
1720
  /**
1695
- * Media Items
1696
- * @description List of media files to attach to product
1721
+ * Marks Awarded
1722
+ * @description Marks awarded
1697
1723
  */
1698
- media_items?: components["schemas"]["MediaItem"][] | null;
1724
+ marks_awarded: number;
1725
+ /**
1726
+ * Grader Feedback
1727
+ * @description Grader feedback
1728
+ */
1729
+ grader_feedback?: string | null;
1699
1730
  };
1700
1731
  /**
1701
- * PricingSection
1702
- * @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
+ * }
1703
1746
  */
1704
- PricingSection: {
1705
- /** @description Base product price (no variant) */
1706
- product_price?: components["schemas"]["ProductPrice"] | null;
1707
- /**
1708
- * Variant Prices
1709
- * @description Variant-specific prices
1710
- */
1711
- 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"];
1712
1757
  };
1713
1758
  /**
1714
- * TestCreateRequest
1715
- * @description Request model for creating a test
1759
+ * IdentitySection
1760
+ * @description Localized product content (maps to product_identity_tbl)
1716
1761
  */
1717
- TestCreateRequest: {
1762
+ IdentitySection: {
1718
1763
  /**
1719
- * Product Id
1720
- * @description External product ID (prod_xxx)
1764
+ * Locale
1765
+ * @description Locale: en-US, es-PR, fr-FR, pt-BR, etc.
1766
+ * @default en-US
1721
1767
  */
1722
- product_id: string;
1768
+ locale: string;
1723
1769
  /**
1724
1770
  * Title
1725
- * @description Test title
1771
+ * @description Product title
1726
1772
  */
1727
1773
  title: string;
1728
1774
  /**
1729
- * Description
1730
- * @description Test description
1731
- */
1732
- description?: string | null;
1733
- /**
1734
- * Total Marks
1735
- * @description Total marks for test
1736
- * @default 0
1737
- */
1738
- total_marks: number;
1739
- /**
1740
- * Passing Marks
1741
- * @description Minimum passing marks
1742
- */
1743
- passing_marks?: number | null;
1744
- /**
1745
- * Has Time Limit
1746
- * @description Whether test has time limit
1747
- * @default true
1748
- */
1749
- has_time_limit: boolean;
1750
- /**
1751
- * Duration Minutes
1752
- * @description Test duration in minutes
1753
- */
1754
- duration_minutes?: number | null;
1755
- /**
1756
- * Max Attempts
1757
- * @description Maximum attempts allowed
1758
- */
1759
- max_attempts?: number | null;
1760
- /**
1761
- * Randomize Questions
1762
- * @description Randomize question order
1763
- * @default false
1764
- */
1765
- randomize_questions: boolean;
1766
- /**
1767
- * Randomize Options
1768
- * @description Randomize option order (MCQs)
1769
- * @default false
1770
- */
1771
- randomize_options: boolean;
1772
- /**
1773
- * Enable Proctoring
1774
- * @description Enable proctoring features
1775
- * @default false
1775
+ * Subtitle
1776
+ * @description Product subtitle
1776
1777
  */
1777
- enable_proctoring: boolean;
1778
+ subtitle?: string | null;
1778
1779
  /**
1779
- * Enable Browser Lockdown
1780
- * @description Enable browser lockdown
1781
- * @default false
1780
+ * Description
1781
+ * @description Full product description
1782
1782
  */
1783
- enable_browser_lockdown: boolean;
1783
+ description?: string | null;
1784
1784
  /**
1785
- * Company Id
1786
- * @description Company ID
1785
+ * Short Description
1786
+ * @description Short description for listings/previews
1787
1787
  */
1788
- company_id?: number | null;
1788
+ short_description?: string | null;
1789
1789
  };
1790
1790
  };
1791
1791
  responses: never;