@faiber/faiber-lms 0.11.6 → 0.12.0

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.
@@ -27,6 +27,138 @@ export type AcademyStartExamPostResponse = import("./types.js").AcademyExamAttem
27
27
  export type AcademyCompleteSessionPostInput = import("./types.js").AcademyCompleteSessionInput;
28
28
  /** Backend response type: Value. */
29
29
  export type AcademyCompleteSessionPostResponse = import("./types.js").AcademySessionCompletionResponse;
30
+ /** Backend query type: JobQuery. */
31
+ export interface AiSummaryJobsGetQuery extends QueryParams {
32
+ "page"?: number | null;
33
+ "page_size"?: number | null;
34
+ "status"?: string | null;
35
+ "role"?: string | null;
36
+ "user_id"?: string | null;
37
+ }
38
+ /** Backend response type: Value. */
39
+ export interface AiSummaryJobsGetResponse extends ApiEnvelope<JsonValue> {
40
+ }
41
+ /** Backend query type: LatestQuery. */
42
+ export interface AiSummaryLatestGetQuery extends QueryParams {
43
+ "role": string;
44
+ "user_id"?: string | null;
45
+ }
46
+ /** Backend response type: LatestSummary. */
47
+ export interface AiSummaryLatestGetResponseData extends JsonObject {
48
+ "subject_user_id": string;
49
+ "role": string;
50
+ "enabled": boolean;
51
+ "state": string;
52
+ "freshness": string;
53
+ "language"?: string | null;
54
+ "model_ref"?: string | null;
55
+ "classroom_ids": string[];
56
+ "evidence_cutoff"?: string | null;
57
+ "generated_at"?: string | null;
58
+ "next_refresh_at"?: string | null;
59
+ "summary"?: JsonValue | null;
60
+ }
61
+ export interface AiSummaryLatestGetResponse extends ApiEnvelope<AiSummaryLatestGetResponseData> {
62
+ }
63
+ /** Backend response type: Vec<ModelOption>. */
64
+ export interface AiSummaryModelsGetResponseItem extends JsonObject {
65
+ "model_ref": string;
66
+ "model": string;
67
+ "provider_label": string;
68
+ "source": string;
69
+ }
70
+ export interface AiSummaryModelsGetResponse extends ApiEnvelope<AiSummaryModelsGetResponseItem[]> {
71
+ }
72
+ /** Backend request type: BulkRefreshRequest. */
73
+ export interface AiSummaryRefreshManyPostInput extends JsonObject {
74
+ "role": string;
75
+ "user_ids": string[];
76
+ }
77
+ /** Backend response type: BulkRefreshResponse. */
78
+ export interface AiSummaryRefreshManyPostResponseDataQueued extends JsonObject {
79
+ "subject_user_id": string;
80
+ "role": string;
81
+ "state": string;
82
+ "due_at": string;
83
+ }
84
+ export interface AiSummaryRefreshManyPostResponseData extends JsonObject {
85
+ "queued": AiSummaryRefreshManyPostResponseDataQueued[];
86
+ }
87
+ export interface AiSummaryRefreshManyPostResponse extends ApiEnvelope<AiSummaryRefreshManyPostResponseData> {
88
+ }
89
+ /** Backend response type: SummarySettings. */
90
+ export interface AiSummarySettingsGetResponseDataRoles extends JsonObject {
91
+ "role": string;
92
+ "enabled": boolean;
93
+ "model_ref"?: string | null;
94
+ "language": string;
95
+ "guidance": string;
96
+ "quiet_minutes": number;
97
+ "max_wait_minutes": number;
98
+ "config_revision": number;
99
+ }
100
+ export interface AiSummarySettingsGetResponseData extends JsonObject {
101
+ "globally_enabled": boolean;
102
+ "concurrency_limit": number;
103
+ "financial_owner_user_id"?: string | null;
104
+ "roles": AiSummarySettingsGetResponseDataRoles[];
105
+ }
106
+ export interface AiSummarySettingsGetResponse extends ApiEnvelope<AiSummarySettingsGetResponseData> {
107
+ }
108
+ /** Backend request type: UpdateSummarySettings. */
109
+ export interface AiSummaryUpdateSettingsPutInputRoles extends JsonObject {
110
+ "role": string;
111
+ "enabled": boolean;
112
+ "model_ref"?: string | null;
113
+ "language": string;
114
+ "guidance"?: string;
115
+ "quiet_minutes": number;
116
+ "max_wait_minutes": number;
117
+ }
118
+ export interface AiSummaryUpdateSettingsPutInput extends JsonObject {
119
+ "globally_enabled": boolean;
120
+ "concurrency_limit"?: number;
121
+ "roles": AiSummaryUpdateSettingsPutInputRoles[];
122
+ }
123
+ /** Backend response type: SummarySettings. */
124
+ export interface AiSummaryUpdateSettingsPutResponseDataRoles extends JsonObject {
125
+ "role": string;
126
+ "enabled": boolean;
127
+ "model_ref"?: string | null;
128
+ "language": string;
129
+ "guidance": string;
130
+ "quiet_minutes": number;
131
+ "max_wait_minutes": number;
132
+ "config_revision": number;
133
+ }
134
+ export interface AiSummaryUpdateSettingsPutResponseData extends JsonObject {
135
+ "globally_enabled": boolean;
136
+ "concurrency_limit": number;
137
+ "financial_owner_user_id"?: string | null;
138
+ "roles": AiSummaryUpdateSettingsPutResponseDataRoles[];
139
+ }
140
+ export interface AiSummaryUpdateSettingsPutResponse extends ApiEnvelope<AiSummaryUpdateSettingsPutResponseData> {
141
+ }
142
+ /** Backend query type: JobQuery. */
143
+ export interface AiSummarySummariesGetQuery extends QueryParams {
144
+ "page"?: number | null;
145
+ "page_size"?: number | null;
146
+ "status"?: string | null;
147
+ "role"?: string | null;
148
+ "user_id"?: string | null;
149
+ }
150
+ /** Backend response type: Value. */
151
+ export interface AiSummarySummariesGetResponse extends ApiEnvelope<JsonValue> {
152
+ }
153
+ /** Backend response type: RefreshResponse. */
154
+ export interface AiSummaryRefreshPostResponseData extends JsonObject {
155
+ "subject_user_id": string;
156
+ "role": string;
157
+ "state": string;
158
+ "due_at": string;
159
+ }
160
+ export interface AiSummaryRefreshPostResponse extends ApiEnvelope<AiSummaryRefreshPostResponseData> {
161
+ }
30
162
  /** Backend response type: SessionResponse. */
31
163
  export interface SessionGetSelfGetResponseDataProfile extends JsonObject {
32
164
  "user_id": string;
@@ -181,7 +313,7 @@ export interface ClassroomStoreClassroomPostInput extends JsonObject {
181
313
  "notifications"?: JsonValue | null;
182
314
  "weekly_schedule"?: JsonValue | null;
183
315
  "check_sessions"?: JsonValue | null;
184
- "starts_at"?: string | null;
316
+ "starts_at": string;
185
317
  "ends_at"?: string | null;
186
318
  "status": string;
187
319
  }
@@ -1990,7 +2122,15 @@ export interface DrmRoutesIndexCompositionsGetResponseData extends JsonObject {
1990
2122
  export interface DrmRoutesIndexCompositionsGetResponse extends ApiEnvelope<DrmRoutesIndexCompositionsGetResponseData> {
1991
2123
  }
1992
2124
  /** Backend response type: models::EvaluationContext. */
1993
- export interface EvaluationQuestionContract extends JsonObject {
2125
+ export interface EvaluationGetContextGetResponseDataTeacherRatingsTargetsProfile extends JsonObject {
2126
+ "user_id": string;
2127
+ "first_name"?: JsonValue | null;
2128
+ "last_name"?: JsonValue | null;
2129
+ "email"?: string | null;
2130
+ "national_code"?: string | null;
2131
+ "phone"?: string | null;
2132
+ }
2133
+ export interface EvaluationGetContextGetResponseDataTeacherRatingsTargetsQuestions extends JsonObject {
1994
2134
  "stable_id": string;
1995
2135
  "version": number;
1996
2136
  "kind": string;
@@ -2001,30 +2141,51 @@ export interface EvaluationQuestionContract extends JsonObject {
2001
2141
  "description_fa": string;
2002
2142
  "allow_not_applicable": boolean;
2003
2143
  "enabled": boolean;
2144
+ "archived"?: boolean;
2004
2145
  "sort_order": number;
2005
2146
  }
2006
- export interface EvaluationGetContextGetResponseDataTeacherRatingsTargetsProfile extends JsonObject {
2007
- "user_id": string;
2008
- "first_name"?: JsonValue | null;
2009
- "last_name"?: JsonValue | null;
2010
- "email"?: string | null;
2011
- "national_code"?: string | null;
2012
- "phone"?: string | null;
2013
- }
2014
2147
  export interface EvaluationGetContextGetResponseDataTeacherRatingsTargets extends JsonObject {
2015
2148
  "user_id": string;
2016
2149
  "profile"?: EvaluationGetContextGetResponseDataTeacherRatingsTargetsProfile | null;
2017
2150
  "submitted": boolean;
2018
2151
  "scores"?: JsonValue | null;
2019
2152
  "description"?: string | null;
2020
- "questions": EvaluationQuestionContract[];
2153
+ "questions": EvaluationGetContextGetResponseDataTeacherRatingsTargetsQuestions[];
2154
+ }
2155
+ export interface EvaluationGetContextGetResponseDataTeacherRatingsQuestions extends JsonObject {
2156
+ "stable_id": string;
2157
+ "version": number;
2158
+ "kind": string;
2159
+ "metric_id": string;
2160
+ "label_en": string;
2161
+ "label_fa": string;
2162
+ "description_en": string;
2163
+ "description_fa": string;
2164
+ "allow_not_applicable": boolean;
2165
+ "enabled": boolean;
2166
+ "archived"?: boolean;
2167
+ "sort_order": number;
2021
2168
  }
2022
2169
  export interface EvaluationGetContextGetResponseDataTeacherRatings extends JsonObject {
2023
2170
  "enabled": boolean;
2024
2171
  "applicable": boolean;
2025
2172
  "targets": EvaluationGetContextGetResponseDataTeacherRatingsTargets[];
2026
2173
  "fields": string[];
2027
- "questions": EvaluationQuestionContract[];
2174
+ "questions": EvaluationGetContextGetResponseDataTeacherRatingsQuestions[];
2175
+ }
2176
+ export interface EvaluationGetContextGetResponseDataStudentFeedbackQuestions extends JsonObject {
2177
+ "stable_id": string;
2178
+ "version": number;
2179
+ "kind": string;
2180
+ "metric_id": string;
2181
+ "label_en": string;
2182
+ "label_fa": string;
2183
+ "description_en": string;
2184
+ "description_fa": string;
2185
+ "allow_not_applicable": boolean;
2186
+ "enabled": boolean;
2187
+ "archived"?: boolean;
2188
+ "sort_order": number;
2028
2189
  }
2029
2190
  export interface EvaluationGetContextGetResponseDataStudentFeedback extends JsonObject {
2030
2191
  "enabled": boolean;
@@ -2033,7 +2194,7 @@ export interface EvaluationGetContextGetResponseDataStudentFeedback extends Json
2033
2194
  "scores"?: JsonValue | null;
2034
2195
  "description"?: string | null;
2035
2196
  "fields": string[];
2036
- "questions": EvaluationQuestionContract[];
2197
+ "questions": EvaluationGetContextGetResponseDataStudentFeedbackQuestions[];
2037
2198
  }
2038
2199
  export interface EvaluationGetContextGetResponseData extends JsonObject {
2039
2200
  "classroom_session_id": string;
@@ -2058,24 +2219,65 @@ export interface EvaluationSubmitPostResponseData extends JsonObject {
2058
2219
  export interface EvaluationSubmitPostResponse extends ApiEnvelope<EvaluationSubmitPostResponseData> {
2059
2220
  }
2060
2221
  /** Backend response type: models::EvaluationSettings. */
2222
+ export interface EvaluationGetSettingsGetResponseDataQuestions extends JsonObject {
2223
+ "stable_id": string;
2224
+ "version": number;
2225
+ "kind": string;
2226
+ "metric_id": string;
2227
+ "label_en": string;
2228
+ "label_fa": string;
2229
+ "description_en": string;
2230
+ "description_fa": string;
2231
+ "allow_not_applicable": boolean;
2232
+ "enabled": boolean;
2233
+ "archived"?: boolean;
2234
+ "sort_order": number;
2235
+ }
2061
2236
  export interface EvaluationGetSettingsGetResponseData extends JsonObject {
2062
2237
  "teacher_ratings_enabled": boolean;
2063
2238
  "student_feedback_enabled": boolean;
2064
- "questions": EvaluationQuestionContract[];
2239
+ "questions": EvaluationGetSettingsGetResponseDataQuestions[];
2065
2240
  }
2066
2241
  export interface EvaluationGetSettingsGetResponse extends ApiEnvelope<EvaluationGetSettingsGetResponseData> {
2067
2242
  }
2068
2243
  /** Backend request type: models::UpdateEvaluationSettings. */
2244
+ export interface EvaluationUpdateSettingsPutInputQuestions extends JsonObject {
2245
+ "stable_id"?: string | null;
2246
+ "kind": string;
2247
+ "metric_id": string;
2248
+ "label_en": string;
2249
+ "label_fa": string;
2250
+ "description_en"?: string;
2251
+ "description_fa"?: string;
2252
+ "allow_not_applicable": boolean;
2253
+ "enabled": boolean;
2254
+ "archived"?: boolean;
2255
+ "sort_order": number;
2256
+ }
2069
2257
  export interface EvaluationUpdateSettingsPutInput extends JsonObject {
2070
2258
  "teacher_ratings_enabled": boolean;
2071
2259
  "student_feedback_enabled": boolean;
2072
- "questions": EvaluationQuestionContract[];
2260
+ "questions"?: EvaluationUpdateSettingsPutInputQuestions[];
2073
2261
  }
2074
2262
  /** Backend response type: models::EvaluationSettings. */
2263
+ export interface EvaluationUpdateSettingsPutResponseDataQuestions extends JsonObject {
2264
+ "stable_id": string;
2265
+ "version": number;
2266
+ "kind": string;
2267
+ "metric_id": string;
2268
+ "label_en": string;
2269
+ "label_fa": string;
2270
+ "description_en": string;
2271
+ "description_fa": string;
2272
+ "allow_not_applicable": boolean;
2273
+ "enabled": boolean;
2274
+ "archived"?: boolean;
2275
+ "sort_order": number;
2276
+ }
2075
2277
  export interface EvaluationUpdateSettingsPutResponseData extends JsonObject {
2076
2278
  "teacher_ratings_enabled": boolean;
2077
2279
  "student_feedback_enabled": boolean;
2078
- "questions": EvaluationQuestionContract[];
2280
+ "questions": EvaluationUpdateSettingsPutResponseDataQuestions[];
2079
2281
  }
2080
2282
  export interface EvaluationUpdateSettingsPutResponse extends ApiEnvelope<EvaluationUpdateSettingsPutResponseData> {
2081
2283
  }