@blezgo/api-sdk 0.1.2 → 0.1.3

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 +64 -64
  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 +120 -120
  8. package/dist/admin/generated.d.ts.map +1 -1
  9. package/dist/affiliate/generated.d.ts +84 -85
  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 +100 -100
  14. package/dist/announcements/generated.d.ts.map +1 -1
  15. package/dist/apikeys/generated.d.ts +100 -100
  16. package/dist/apikeys/generated.d.ts.map +1 -1
  17. package/dist/assistance/generated.d.ts +12 -12
  18. package/dist/assistance/generated.d.ts.map +1 -1
  19. package/dist/authentication/generated.d.ts +95 -95
  20. package/dist/authentication/generated.d.ts.map +1 -1
  21. package/dist/blog/generated.d.ts +169 -169
  22. package/dist/blog/generated.d.ts.map +1 -1
  23. package/dist/bundle/generated.d.ts +168 -168
  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 +38 -38
  28. package/dist/calendar/generated.d.ts.map +1 -1
  29. package/dist/campaigns/generated.d.ts +196 -196
  30. package/dist/campaigns/generated.d.ts.map +1 -1
  31. package/dist/cart/generated.d.ts +9 -9
  32. package/dist/cart/generated.d.ts.map +1 -1
  33. package/dist/changelog/generated.d.ts +88 -88
  34. package/dist/changelog/generated.d.ts.map +1 -1
  35. package/dist/channel/generated.d.ts +252 -252
  36. package/dist/channel/generated.d.ts.map +1 -1
  37. package/dist/company/generated.d.ts +58 -58
  38. package/dist/company/generated.d.ts.map +1 -1
  39. package/dist/conference/generated.d.ts +30 -30
  40. package/dist/conference/generated.d.ts.map +1 -1
  41. package/dist/config/generated.d.ts +25 -25
  42. package/dist/config/generated.d.ts.map +1 -1
  43. package/dist/content/generated.d.ts +658 -658
  44. package/dist/content/generated.d.ts.map +1 -1
  45. package/dist/cookies/generated.d.ts +46 -46
  46. package/dist/cookies/generated.d.ts.map +1 -1
  47. package/dist/courses/generated.d.ts +250 -250
  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 +202 -202
  52. package/dist/dashboard/generated.d.ts.map +1 -1
  53. package/dist/elasticsearch/generated.d.ts +25 -25
  54. package/dist/elasticsearch/generated.d.ts.map +1 -1
  55. package/dist/enrollments/generated.d.ts +9 -9
  56. package/dist/enrollments/generated.d.ts.map +1 -1
  57. package/dist/errors/generated.d.ts +30 -30
  58. package/dist/errors/generated.d.ts.map +1 -1
  59. package/dist/eventconfig/generated.d.ts +103 -103
  60. package/dist/eventconfig/generated.d.ts.map +1 -1
  61. package/dist/funnels/generated.d.ts +94 -95
  62. package/dist/funnels/generated.d.ts.map +1 -1
  63. package/dist/gamification/generated.d.ts +103 -103
  64. package/dist/gamification/generated.d.ts.map +1 -1
  65. package/dist/impersonation/generated.d.ts +77 -77
  66. package/dist/impersonation/generated.d.ts.map +1 -1
  67. package/dist/inbox/generated.d.ts +99 -99
  68. package/dist/inbox/generated.d.ts.map +1 -1
  69. package/dist/internal/generated.d.ts +9 -9
  70. package/dist/internal/generated.d.ts.map +1 -1
  71. package/dist/internationalization/generated.d.ts +11 -11
  72. package/dist/internationalization/generated.d.ts.map +1 -1
  73. package/dist/invitations/generated.d.ts +131 -131
  74. package/dist/invitations/generated.d.ts.map +1 -1
  75. package/dist/meetings/generated.d.ts +251 -251
  76. package/dist/meetings/generated.d.ts.map +1 -1
  77. package/dist/metas/generated.d.ts +183 -183
  78. package/dist/metas/generated.d.ts.map +1 -1
  79. package/dist/notification/generated.d.ts +379 -379
  80. package/dist/notification/generated.d.ts.map +1 -1
  81. package/dist/notifications/generated.d.ts +9 -9
  82. package/dist/notifications/generated.d.ts.map +1 -1
  83. package/dist/onboarding/generated.d.ts +124 -124
  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 +555 -558
  88. package/dist/payments/generated.d.ts.map +1 -1
  89. package/dist/payouts/generated.d.ts +9 -9
  90. package/dist/payouts/generated.d.ts.map +1 -1
  91. package/dist/plans/generated.d.ts +227 -227
  92. package/dist/plans/generated.d.ts.map +1 -1
  93. package/dist/pricing/generated.d.ts +34 -34
  94. package/dist/pricing/generated.d.ts.map +1 -1
  95. package/dist/products/generated.d.ts +610 -610
  96. package/dist/products/generated.d.ts.map +1 -1
  97. package/dist/profile/generated.d.ts +286 -286
  98. package/dist/profile/generated.d.ts.map +1 -1
  99. package/dist/reasons/generated.d.ts +32 -32
  100. package/dist/reasons/generated.d.ts.map +1 -1
  101. package/dist/registration/generated.d.ts +164 -164
  102. package/dist/registration/generated.d.ts.map +1 -1
  103. package/dist/reviews/generated.d.ts +51 -51
  104. package/dist/reviews/generated.d.ts.map +1 -1
  105. package/dist/role/generated.d.ts +899 -401
  106. package/dist/role/generated.d.ts.map +1 -1
  107. package/dist/scheduling/generated.d.ts +156 -156
  108. package/dist/scheduling/generated.d.ts.map +1 -1
  109. package/dist/services/generated.d.ts +1028 -1028
  110. package/dist/services/generated.d.ts.map +1 -1
  111. package/dist/sessions/generated.d.ts +247 -247
  112. package/dist/sessions/generated.d.ts.map +1 -1
  113. package/dist/spaces/generated.d.ts +419 -419
  114. package/dist/spaces/generated.d.ts.map +1 -1
  115. package/dist/storefront/generated.d.ts +9 -9
  116. package/dist/storefront/generated.d.ts.map +1 -1
  117. package/dist/support/generated.d.ts +1510 -1510
  118. package/dist/support/generated.d.ts.map +1 -1
  119. package/dist/sync/generated.d.ts +179 -179
  120. package/dist/sync/generated.d.ts.map +1 -1
  121. package/dist/tenant/generated.d.ts +537 -537
  122. package/dist/tenant/generated.d.ts.map +1 -1
  123. package/dist/testimonials/generated.d.ts +79 -79
  124. package/dist/testimonials/generated.d.ts.map +1 -1
  125. package/dist/tests/generated.d.ts +343 -343
  126. package/dist/tests/generated.d.ts.map +1 -1
  127. package/dist/tokens/generated.d.ts +37 -37
  128. package/dist/tokens/generated.d.ts.map +1 -1
  129. package/dist/uploads/generated.d.ts +33 -33
  130. package/dist/uploads/generated.d.ts.map +1 -1
  131. package/dist/upsell/generated.d.ts +82 -82
  132. package/dist/upsell/generated.d.ts.map +1 -1
  133. package/dist/user/generated.d.ts +280 -541
  134. package/dist/user/generated.d.ts.map +1 -1
  135. package/dist/webinars/generated.d.ts +183 -183
  136. package/dist/webinars/generated.d.ts.map +1 -1
  137. package/package.json +1 -1
@@ -726,7 +726,7 @@ export interface paths {
726
726
  * ```
727
727
  *
728
728
  * **Authentication**: None (public endpoint for test info)
729
- * **Headers**: X-Api-Key (for org_id)
729
+ * **Headers**: Authorization: Bearer {token}
730
730
  *
731
731
  * **Response**:
732
732
  * - 200: Review settings retrieved
@@ -871,47 +871,201 @@ export type webhooks = Record<string, never>;
871
871
  export interface components {
872
872
  schemas: {
873
873
  /**
874
- * QuestionOptionCreate
875
- * @description Option for MCQ questions
874
+ * ProductSection
875
+ * @description Base product fields (maps to product_tbl)
876
876
  */
877
- QuestionOptionCreate: {
877
+ ProductSection: {
878
878
  /**
879
- * Option Text
880
- * @description Option text
879
+ * Visibility
880
+ * @description public, private, hidden, unlisted
881
+ * @default public
881
882
  */
882
- option_text: string;
883
+ visibility: string;
883
884
  /**
884
- * Is Correct
885
- * @description Whether this is correct answer
885
+ * Is Digital
886
+ * @description Digital product flag
887
+ * @default true
888
+ */
889
+ is_digital: boolean;
890
+ /**
891
+ * Company Id
892
+ * @description Multi-company support
893
+ */
894
+ company_id?: number | null;
895
+ /**
896
+ * Status
897
+ * @description draft, published, archived, review_required, deleted
898
+ * @default draft
899
+ */
900
+ status: string;
901
+ /**
902
+ * Is Org Level
903
+ * @description Org-level vs user-created product
904
+ * @default true
905
+ */
906
+ is_org_level: boolean;
907
+ /**
908
+ * Staff Id
909
+ * @description Staff/instructor delivering product
910
+ */
911
+ staff_id?: number | null;
912
+ /**
913
+ * Owner Id
914
+ * @description Owner of the product
915
+ */
916
+ owner_id?: number | null;
917
+ /**
918
+ * Featured
919
+ * @description Featured product flag
886
920
  * @default false
887
921
  */
888
- is_correct: boolean;
922
+ featured: boolean;
923
+ };
924
+ /**
925
+ * TestCreateRequest
926
+ * @description Test creation request - inherits common fields, adds test-specific section
927
+ * @example {
928
+ * "identity": {
929
+ * "locale": "en-US",
930
+ * "title": "Python Programming Assessment"
931
+ * },
932
+ * "pricing": {
933
+ * "product_price": {
934
+ * "amount": 500,
935
+ * "currency": "INR",
936
+ * "price_type": "one_time"
937
+ * }
938
+ * },
939
+ * "product": {
940
+ * "is_digital": true,
941
+ * "status": "draft",
942
+ * "visibility": "public"
943
+ * },
944
+ * "test": {
945
+ * "duration_minutes": 90,
946
+ * "has_time_limit": true,
947
+ * "max_attempts": 3,
948
+ * "passing_marks": 60,
949
+ * "total_marks": 100
950
+ * }
951
+ * }
952
+ */
953
+ TestCreateRequest: {
954
+ /** @description Base product configuration */
955
+ product: components["schemas"]["ProductSection"];
956
+ /** @description Localized content (title, description) */
957
+ identity: components["schemas"]["IdentitySection"];
958
+ /** @description Pre-uploaded image IDs */
959
+ media?: components["schemas"]["MediaSection"] | null;
889
960
  /**
890
- * Display Order
891
- * @description Display order
961
+ * Tags
962
+ * @description Tag IDs to associate with product
892
963
  */
893
- display_order?: number | null;
964
+ tags?: number[] | null;
894
965
  /**
895
- * Explanation
896
- * @description Explanation for this option
966
+ * Variants
967
+ * @description Product variants (optional)
897
968
  */
898
- explanation?: string | null;
969
+ variants?: components["schemas"]["VariantItem"][] | null;
970
+ /** @description Pricing for product and variants */
971
+ pricing?: components["schemas"]["PricingSection"] | null;
972
+ /** @description Test-specific configuration */
973
+ test: components["schemas"]["TestSection"];
899
974
  };
900
975
  /**
901
- * ManualGradingSubmitRequest
902
- * @description Request model for submitting manual grading
976
+ * @example {
977
+ * "status": "success",
978
+ * "message": "Operation successful",
979
+ * "message_code": "api_suc_20001",
980
+ * "data": {},
981
+ * "metadata": {
982
+ * "timestamp": "2026-03-26T10:00:00.000Z",
983
+ * "requestId": "07e22004-cb60-4dfc-bc9c-b6f99664dca1",
984
+ * "traceId": "a9f1204c-bb82-41de-b234-7c3a9e120000",
985
+ * "version": "v1",
986
+ * "executionTime": 42,
987
+ * "language": "en-US"
988
+ * }
989
+ * }
903
990
  */
904
- ManualGradingSubmitRequest: {
991
+ StandardResponse: {
992
+ /** @example success */
993
+ status?: string;
994
+ data?: Record<string, never> | null;
995
+ /** @example Operation successful */
996
+ message?: string | null;
997
+ /** @example api_suc_20001 */
998
+ message_code?: string | null;
999
+ metadata?: Record<string, never> | null;
1000
+ error?: components["schemas"]["ErrorResponse"];
1001
+ };
1002
+ /**
1003
+ * ProductPrice
1004
+ * @description Base product pricing (maps to product_pricings_tbl with variant_id=NULL)
1005
+ */
1006
+ ProductPrice: {
905
1007
  /**
906
- * Marks Awarded
907
- * @description Marks awarded
1008
+ * Price Type
1009
+ * @description free, one_time, subscription, monthly_plan
908
1010
  */
909
- marks_awarded: number;
1011
+ price_type: string;
910
1012
  /**
911
- * Grader Feedback
912
- * @description Grader feedback
1013
+ * Currency
1014
+ * @description Currency code: INR, USD, EUR, etc.
913
1015
  */
914
- grader_feedback?: string | null;
1016
+ currency: string;
1017
+ /**
1018
+ * Amount
1019
+ * @description Price amount
1020
+ */
1021
+ amount: number;
1022
+ /**
1023
+ * Compare At Amount
1024
+ * @description Original/strike-through price
1025
+ */
1026
+ compare_at_amount?: number | null;
1027
+ /**
1028
+ * Interval
1029
+ * @description day, week, month, year (for subscription)
1030
+ */
1031
+ interval?: string | null;
1032
+ /**
1033
+ * Interval Count
1034
+ * @description Number of intervals
1035
+ */
1036
+ interval_count?: number | null;
1037
+ /**
1038
+ * Trial Period Days
1039
+ * @description Free trial days
1040
+ */
1041
+ trial_period_days?: number | null;
1042
+ /**
1043
+ * Initial Amount
1044
+ * @description First payment amount
1045
+ */
1046
+ initial_amount?: number | null;
1047
+ /**
1048
+ * Gateway
1049
+ * @description stripe, razorpay, paypal, etc.
1050
+ */
1051
+ gateway?: string | null;
1052
+ /**
1053
+ * Requires Payment Method Upfront
1054
+ * @description Require payment method before trial
1055
+ * @default true
1056
+ */
1057
+ requires_payment_method_upfront: boolean;
1058
+ };
1059
+ /**
1060
+ * MediaSection
1061
+ * @description Product media files - direct media data
1062
+ */
1063
+ MediaSection: {
1064
+ /**
1065
+ * Media Items
1066
+ * @description List of media files to attach to product
1067
+ */
1068
+ media_items?: components["schemas"]["MediaItem"][] | null;
915
1069
  };
916
1070
  /**
917
1071
  * QuestionCreateRequest
@@ -1009,57 +1163,89 @@ export interface components {
1009
1163
  };
1010
1164
  /**
1011
1165
  * TestCreateRequest
1012
- * @description Test creation request - inherits common fields, adds test-specific section
1013
- * @example {
1014
- * "identity": {
1015
- * "locale": "en-US",
1016
- * "title": "Python Programming Assessment"
1017
- * },
1018
- * "pricing": {
1019
- * "product_price": {
1020
- * "amount": 500,
1021
- * "currency": "INR",
1022
- * "price_type": "one_time"
1023
- * }
1024
- * },
1025
- * "product": {
1026
- * "is_digital": true,
1027
- * "status": "draft",
1028
- * "visibility": "public"
1029
- * },
1030
- * "test": {
1031
- * "duration_minutes": 90,
1032
- * "has_time_limit": true,
1033
- * "max_attempts": 3,
1034
- * "passing_marks": 60,
1035
- * "total_marks": 100
1036
- * }
1037
- * }
1166
+ * @description Request model for creating a test
1038
1167
  */
1039
- TestCreateRequest: {
1040
- /** @description Base product configuration */
1041
- product: components["schemas"]["ProductSection"];
1042
- /** @description Localized content (title, description) */
1043
- identity: components["schemas"]["IdentitySection"];
1044
- /** @description Pre-uploaded image IDs */
1045
- media?: components["schemas"]["MediaSection"] | null;
1168
+ app__models__tests__test_models__TestCreateRequest: {
1046
1169
  /**
1047
- * Tags
1048
- * @description Tag IDs to associate with product
1170
+ * Product Id
1171
+ * @description External product ID (prod_xxx)
1049
1172
  */
1050
- tags?: number[] | null;
1173
+ product_id: string;
1051
1174
  /**
1052
- * Variants
1053
- * @description Product variants (optional)
1175
+ * Title
1176
+ * @description Test title
1054
1177
  */
1055
- variants?: components["schemas"]["VariantItem"][] | null;
1056
- /** @description Pricing for product and variants */
1057
- pricing?: components["schemas"]["PricingSection"] | null;
1058
- /** @description Test-specific configuration */
1059
- test: components["schemas"]["TestSection"];
1060
- };
1061
- /**
1062
- * TestSection
1178
+ title: string;
1179
+ /**
1180
+ * Description
1181
+ * @description Test description
1182
+ */
1183
+ description?: string | null;
1184
+ /**
1185
+ * Total Marks
1186
+ * @description Total marks for test
1187
+ * @default 0
1188
+ */
1189
+ total_marks: number;
1190
+ /**
1191
+ * Passing Marks
1192
+ * @description Minimum passing marks
1193
+ */
1194
+ passing_marks?: number | null;
1195
+ /**
1196
+ * Has Time Limit
1197
+ * @description Whether test has time limit
1198
+ * @default true
1199
+ */
1200
+ has_time_limit: boolean;
1201
+ /**
1202
+ * Duration Minutes
1203
+ * @description Test duration in minutes
1204
+ */
1205
+ duration_minutes?: number | null;
1206
+ /**
1207
+ * Max Attempts
1208
+ * @description Maximum attempts allowed
1209
+ */
1210
+ max_attempts?: number | null;
1211
+ /**
1212
+ * Randomize Questions
1213
+ * @description Randomize question order
1214
+ * @default false
1215
+ */
1216
+ randomize_questions: boolean;
1217
+ /**
1218
+ * Randomize Options
1219
+ * @description Randomize option order (MCQs)
1220
+ * @default false
1221
+ */
1222
+ randomize_options: boolean;
1223
+ /**
1224
+ * Enable Proctoring
1225
+ * @description Enable proctoring features
1226
+ * @default false
1227
+ */
1228
+ enable_proctoring: boolean;
1229
+ /**
1230
+ * Enable Browser Lockdown
1231
+ * @description Enable browser lockdown
1232
+ * @default false
1233
+ */
1234
+ enable_browser_lockdown: boolean;
1235
+ /**
1236
+ * Company Id
1237
+ * @description Company ID
1238
+ */
1239
+ company_id?: number | null;
1240
+ };
1241
+ InvalidParam: {
1242
+ /** @example items[0].quantity */
1243
+ field?: string;
1244
+ /** @example Input should be greater than or equal to 1 */
1245
+ error?: string;
1246
+ };
1247
+ /**
1248
+ * TestSection
1063
1249
  * @description Test-specific fields (maps to tests_tbl)
1064
1250
  */
1065
1251
  TestSection: {
@@ -1223,78 +1409,6 @@ export interface components {
1223
1409
  */
1224
1410
  is_published: boolean;
1225
1411
  };
1226
- /**
1227
- * ProductPrice
1228
- * @description Base product pricing (maps to product_pricings_tbl with variant_id=NULL)
1229
- */
1230
- ProductPrice: {
1231
- /**
1232
- * Price Type
1233
- * @description free, one_time, subscription, monthly_plan
1234
- */
1235
- price_type: string;
1236
- /**
1237
- * Currency
1238
- * @description Currency code: INR, USD, EUR, etc.
1239
- */
1240
- currency: string;
1241
- /**
1242
- * Amount
1243
- * @description Price amount
1244
- */
1245
- amount: number;
1246
- /**
1247
- * Compare At Amount
1248
- * @description Original/strike-through price
1249
- */
1250
- compare_at_amount?: number | null;
1251
- /**
1252
- * Interval
1253
- * @description day, week, month, year (for subscription)
1254
- */
1255
- interval?: string | null;
1256
- /**
1257
- * Interval Count
1258
- * @description Number of intervals
1259
- */
1260
- interval_count?: number | null;
1261
- /**
1262
- * Trial Period Days
1263
- * @description Free trial days
1264
- */
1265
- trial_period_days?: number | null;
1266
- /**
1267
- * Initial Amount
1268
- * @description First payment amount
1269
- */
1270
- initial_amount?: number | null;
1271
- /**
1272
- * Gateway
1273
- * @description stripe, razorpay, paypal, etc.
1274
- */
1275
- gateway?: string | null;
1276
- /**
1277
- * Requires Payment Method Upfront
1278
- * @description Require payment method before trial
1279
- * @default true
1280
- */
1281
- requires_payment_method_upfront: boolean;
1282
- };
1283
- ErrorResponse: {
1284
- /** @example about:blank */
1285
- type?: string;
1286
- /** @example GENERIC_ERROR */
1287
- code?: string;
1288
- /** @example Client Error */
1289
- title?: string;
1290
- /** @example 400 */
1291
- status?: number;
1292
- /** @example An error occurred */
1293
- detail?: string;
1294
- /** @example /v1/cart/items */
1295
- instance?: string;
1296
- extensions?: components["schemas"]["Extensions"];
1297
- };
1298
1412
  /**
1299
1413
  * TestUpdateRequest
1300
1414
  * @description Request model for updating a test
@@ -1323,6 +1437,33 @@ export interface components {
1323
1437
  /** Enable Browser Lockdown */
1324
1438
  enable_browser_lockdown?: boolean | null;
1325
1439
  };
1440
+ /**
1441
+ * QuestionOptionCreate
1442
+ * @description Option for MCQ questions
1443
+ */
1444
+ QuestionOptionCreate: {
1445
+ /**
1446
+ * Option Text
1447
+ * @description Option text
1448
+ */
1449
+ option_text: string;
1450
+ /**
1451
+ * Is Correct
1452
+ * @description Whether this is correct answer
1453
+ * @default false
1454
+ */
1455
+ is_correct: boolean;
1456
+ /**
1457
+ * Display Order
1458
+ * @description Display order
1459
+ */
1460
+ display_order?: number | null;
1461
+ /**
1462
+ * Explanation
1463
+ * @description Explanation for this option
1464
+ */
1465
+ explanation?: string | null;
1466
+ };
1326
1467
  /**
1327
1468
  * MediaItem
1328
1469
  * @description Single media file item
@@ -1395,66 +1536,30 @@ export interface components {
1395
1536
  is_primary: boolean;
1396
1537
  };
1397
1538
  /**
1398
- * MediaSection
1399
- * @description Product media files - direct media data
1400
- */
1401
- MediaSection: {
1402
- /**
1403
- * Media Items
1404
- * @description List of media files to attach to product
1405
- */
1406
- media_items?: components["schemas"]["MediaItem"][] | null;
1407
- };
1408
- /**
1409
- * ProductSection
1410
- * @description Base product fields (maps to product_tbl)
1539
+ * AnswerSubmitRequest
1540
+ * @description Request model for submitting an answer
1411
1541
  */
1412
- ProductSection: {
1413
- /**
1414
- * Visibility
1415
- * @description public, private, hidden, unlisted
1416
- * @default public
1417
- */
1418
- visibility: string;
1419
- /**
1420
- * Is Digital
1421
- * @description Digital product flag
1422
- * @default true
1423
- */
1424
- is_digital: boolean;
1425
- /**
1426
- * Company Id
1427
- * @description Multi-company support
1428
- */
1429
- company_id?: number | null;
1430
- /**
1431
- * Status
1432
- * @description draft, published, archived, review_required, deleted
1433
- * @default draft
1434
- */
1435
- status: string;
1542
+ AnswerSubmitRequest: {
1436
1543
  /**
1437
- * Is Org Level
1438
- * @description Org-level vs user-created product
1439
- * @default true
1544
+ * Question Id
1545
+ * @description External question ID (que_xxx)
1440
1546
  */
1441
- is_org_level: boolean;
1547
+ question_id: string;
1442
1548
  /**
1443
- * Staff Id
1444
- * @description Staff/instructor delivering product
1549
+ * Selected Option Ids
1550
+ * @description Selected option IDs for MCQ
1445
1551
  */
1446
- staff_id?: number | null;
1552
+ selected_option_ids?: string[] | null;
1447
1553
  /**
1448
- * Owner Id
1449
- * @description Owner of the product
1554
+ * Answer Text
1555
+ * @description Text answer for essay/fill-blank
1450
1556
  */
1451
- owner_id?: number | null;
1557
+ answer_text?: string | null;
1452
1558
  /**
1453
- * Featured
1454
- * @description Featured product flag
1455
- * @default false
1559
+ * Answer Code
1560
+ * @description Code answer for code questions
1456
1561
  */
1457
- featured: boolean;
1562
+ answer_code?: string | null;
1458
1563
  };
1459
1564
  Extensions: {
1460
1565
  /** @example GENERIC_ERROR */
@@ -1465,110 +1570,6 @@ export interface components {
1465
1570
  /** @example Detailed debug information */
1466
1571
  debug?: string | null;
1467
1572
  };
1468
- /**
1469
- * TestCreateRequest
1470
- * @description Request model for creating a test
1471
- */
1472
- app__models__tests__test_models__TestCreateRequest: {
1473
- /**
1474
- * Product Id
1475
- * @description External product ID (prod_xxx)
1476
- */
1477
- product_id: string;
1478
- /**
1479
- * Title
1480
- * @description Test title
1481
- */
1482
- title: string;
1483
- /**
1484
- * Description
1485
- * @description Test description
1486
- */
1487
- description?: string | null;
1488
- /**
1489
- * Total Marks
1490
- * @description Total marks for test
1491
- * @default 0
1492
- */
1493
- total_marks: number;
1494
- /**
1495
- * Passing Marks
1496
- * @description Minimum passing marks
1497
- */
1498
- passing_marks?: number | null;
1499
- /**
1500
- * Has Time Limit
1501
- * @description Whether test has time limit
1502
- * @default true
1503
- */
1504
- has_time_limit: boolean;
1505
- /**
1506
- * Duration Minutes
1507
- * @description Test duration in minutes
1508
- */
1509
- duration_minutes?: number | null;
1510
- /**
1511
- * Max Attempts
1512
- * @description Maximum attempts allowed
1513
- */
1514
- max_attempts?: number | null;
1515
- /**
1516
- * Randomize Questions
1517
- * @description Randomize question order
1518
- * @default false
1519
- */
1520
- randomize_questions: boolean;
1521
- /**
1522
- * Randomize Options
1523
- * @description Randomize option order (MCQs)
1524
- * @default false
1525
- */
1526
- randomize_options: boolean;
1527
- /**
1528
- * Enable Proctoring
1529
- * @description Enable proctoring features
1530
- * @default false
1531
- */
1532
- enable_proctoring: boolean;
1533
- /**
1534
- * Enable Browser Lockdown
1535
- * @description Enable browser lockdown
1536
- * @default false
1537
- */
1538
- enable_browser_lockdown: boolean;
1539
- /**
1540
- * Company Id
1541
- * @description Company ID
1542
- */
1543
- company_id?: number | null;
1544
- };
1545
- /**
1546
- * @example {
1547
- * "status": "success",
1548
- * "message": "Operation successful",
1549
- * "message_code": "api_suc_20001",
1550
- * "data": {},
1551
- * "metadata": {
1552
- * "timestamp": "2026-03-26T10:00:00.000Z",
1553
- * "requestId": "07e22004-cb60-4dfc-bc9c-b6f99664dca1",
1554
- * "traceId": "a9f1204c-bb82-41de-b234-7c3a9e120000",
1555
- * "version": "v1",
1556
- * "executionTime": 42,
1557
- * "language": "en-US"
1558
- * }
1559
- * }
1560
- */
1561
- StandardResponse: {
1562
- /** @example success */
1563
- status?: string;
1564
- data?: Record<string, never> | null;
1565
- /** @example Operation successful */
1566
- message?: string | null;
1567
- /** @example api_suc_20001 */
1568
- message_code?: string | null;
1569
- metadata?: Record<string, never> | null;
1570
- error?: components["schemas"]["ErrorResponse"];
1571
- };
1572
1573
  /**
1573
1574
  * VariantPrice
1574
1575
  * @description Variant-specific pricing (maps to product_pricings_tbl with variant_id set)
@@ -1631,6 +1632,50 @@ export interface components {
1631
1632
  */
1632
1633
  requires_payment_method_upfront: boolean;
1633
1634
  };
1635
+ ErrorResponse: {
1636
+ /** @example about:blank */
1637
+ type?: string;
1638
+ /** @example GENERIC_ERROR */
1639
+ code?: string;
1640
+ /** @example Client Error */
1641
+ title?: string;
1642
+ /** @example 400 */
1643
+ status?: number;
1644
+ /** @example An error occurred */
1645
+ detail?: string;
1646
+ /** @example /v1/cart/items */
1647
+ instance?: string;
1648
+ extensions?: components["schemas"]["Extensions"];
1649
+ };
1650
+ /**
1651
+ * ManualGradingSubmitRequest
1652
+ * @description Request model for submitting manual grading
1653
+ */
1654
+ ManualGradingSubmitRequest: {
1655
+ /**
1656
+ * Marks Awarded
1657
+ * @description Marks awarded
1658
+ */
1659
+ marks_awarded: number;
1660
+ /**
1661
+ * Grader Feedback
1662
+ * @description Grader feedback
1663
+ */
1664
+ grader_feedback?: string | null;
1665
+ };
1666
+ /**
1667
+ * PricingSection
1668
+ * @description Pricing configuration (optional - can have product price, variant prices, or both)
1669
+ */
1670
+ PricingSection: {
1671
+ /** @description Base product price (no variant) */
1672
+ product_price?: components["schemas"]["ProductPrice"] | null;
1673
+ /**
1674
+ * Variant Prices
1675
+ * @description Variant-specific prices
1676
+ */
1677
+ variant_prices?: components["schemas"]["VariantPrice"][] | null;
1678
+ };
1634
1679
  /**
1635
1680
  * IdentitySection
1636
1681
  * @description Localized product content (maps to product_identity_tbl)
@@ -1742,51 +1787,6 @@ export interface components {
1742
1787
  [key: string]: unknown;
1743
1788
  } | null;
1744
1789
  };
1745
- /**
1746
- * PricingSection
1747
- * @description Pricing configuration (optional - can have product price, variant prices, or both)
1748
- */
1749
- PricingSection: {
1750
- /** @description Base product price (no variant) */
1751
- product_price?: components["schemas"]["ProductPrice"] | null;
1752
- /**
1753
- * Variant Prices
1754
- * @description Variant-specific prices
1755
- */
1756
- variant_prices?: components["schemas"]["VariantPrice"][] | null;
1757
- };
1758
- /**
1759
- * AnswerSubmitRequest
1760
- * @description Request model for submitting an answer
1761
- */
1762
- AnswerSubmitRequest: {
1763
- /**
1764
- * Question Id
1765
- * @description External question ID (que_xxx)
1766
- */
1767
- question_id: string;
1768
- /**
1769
- * Selected Option Ids
1770
- * @description Selected option IDs for MCQ
1771
- */
1772
- selected_option_ids?: string[] | null;
1773
- /**
1774
- * Answer Text
1775
- * @description Text answer for essay/fill-blank
1776
- */
1777
- answer_text?: string | null;
1778
- /**
1779
- * Answer Code
1780
- * @description Code answer for code questions
1781
- */
1782
- answer_code?: string | null;
1783
- };
1784
- InvalidParam: {
1785
- /** @example items[0].quantity */
1786
- field?: string;
1787
- /** @example Input should be greater than or equal to 1 */
1788
- error?: string;
1789
- };
1790
1790
  };
1791
1791
  responses: never;
1792
1792
  parameters: never;