@faiber/faiber-lms 0.11.7 → 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,12 +2141,21 @@ export interface EvaluationQuestionContract extends JsonObject {
2001
2141
  "description_fa": string;
2002
2142
  "allow_not_applicable": boolean;
2003
2143
  "enabled": boolean;
2004
- "archived": boolean;
2144
+ "archived"?: boolean;
2005
2145
  "sort_order": number;
2006
2146
  }
2007
- export interface EvaluationQuestionUpdateContract extends JsonObject {
2008
- "stable_id"?: string | null;
2009
- "kind": "teacher_rating" | "student_feedback";
2147
+ export interface EvaluationGetContextGetResponseDataTeacherRatingsTargets extends JsonObject {
2148
+ "user_id": string;
2149
+ "profile"?: EvaluationGetContextGetResponseDataTeacherRatingsTargetsProfile | null;
2150
+ "submitted": boolean;
2151
+ "scores"?: JsonValue | null;
2152
+ "description"?: string | null;
2153
+ "questions": EvaluationGetContextGetResponseDataTeacherRatingsTargetsQuestions[];
2154
+ }
2155
+ export interface EvaluationGetContextGetResponseDataTeacherRatingsQuestions extends JsonObject {
2156
+ "stable_id": string;
2157
+ "version": number;
2158
+ "kind": string;
2010
2159
  "metric_id": string;
2011
2160
  "label_en": string;
2012
2161
  "label_fa": string;
@@ -2017,28 +2166,26 @@ export interface EvaluationQuestionUpdateContract extends JsonObject {
2017
2166
  "archived"?: boolean;
2018
2167
  "sort_order": number;
2019
2168
  }
2020
- export interface EvaluationGetContextGetResponseDataTeacherRatingsTargetsProfile extends JsonObject {
2021
- "user_id": string;
2022
- "first_name"?: JsonValue | null;
2023
- "last_name"?: JsonValue | null;
2024
- "email"?: string | null;
2025
- "national_code"?: string | null;
2026
- "phone"?: string | null;
2027
- }
2028
- export interface EvaluationGetContextGetResponseDataTeacherRatingsTargets extends JsonObject {
2029
- "user_id": string;
2030
- "profile"?: EvaluationGetContextGetResponseDataTeacherRatingsTargetsProfile | null;
2031
- "submitted": boolean;
2032
- "scores"?: JsonValue | null;
2033
- "description"?: string | null;
2034
- "questions": EvaluationQuestionContract[];
2035
- }
2036
2169
  export interface EvaluationGetContextGetResponseDataTeacherRatings extends JsonObject {
2037
2170
  "enabled": boolean;
2038
2171
  "applicable": boolean;
2039
2172
  "targets": EvaluationGetContextGetResponseDataTeacherRatingsTargets[];
2040
2173
  "fields": string[];
2041
- "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;
2042
2189
  }
2043
2190
  export interface EvaluationGetContextGetResponseDataStudentFeedback extends JsonObject {
2044
2191
  "enabled": boolean;
@@ -2047,7 +2194,7 @@ export interface EvaluationGetContextGetResponseDataStudentFeedback extends Json
2047
2194
  "scores"?: JsonValue | null;
2048
2195
  "description"?: string | null;
2049
2196
  "fields": string[];
2050
- "questions": EvaluationQuestionContract[];
2197
+ "questions": EvaluationGetContextGetResponseDataStudentFeedbackQuestions[];
2051
2198
  }
2052
2199
  export interface EvaluationGetContextGetResponseData extends JsonObject {
2053
2200
  "classroom_session_id": string;
@@ -2072,24 +2219,65 @@ export interface EvaluationSubmitPostResponseData extends JsonObject {
2072
2219
  export interface EvaluationSubmitPostResponse extends ApiEnvelope<EvaluationSubmitPostResponseData> {
2073
2220
  }
2074
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
+ }
2075
2236
  export interface EvaluationGetSettingsGetResponseData extends JsonObject {
2076
2237
  "teacher_ratings_enabled": boolean;
2077
2238
  "student_feedback_enabled": boolean;
2078
- "questions": EvaluationQuestionContract[];
2239
+ "questions": EvaluationGetSettingsGetResponseDataQuestions[];
2079
2240
  }
2080
2241
  export interface EvaluationGetSettingsGetResponse extends ApiEnvelope<EvaluationGetSettingsGetResponseData> {
2081
2242
  }
2082
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
+ }
2083
2257
  export interface EvaluationUpdateSettingsPutInput extends JsonObject {
2084
2258
  "teacher_ratings_enabled": boolean;
2085
2259
  "student_feedback_enabled": boolean;
2086
- "questions": EvaluationQuestionUpdateContract[];
2260
+ "questions"?: EvaluationUpdateSettingsPutInputQuestions[];
2087
2261
  }
2088
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
+ }
2089
2277
  export interface EvaluationUpdateSettingsPutResponseData extends JsonObject {
2090
2278
  "teacher_ratings_enabled": boolean;
2091
2279
  "student_feedback_enabled": boolean;
2092
- "questions": EvaluationQuestionContract[];
2280
+ "questions": EvaluationUpdateSettingsPutResponseDataQuestions[];
2093
2281
  }
2094
2282
  export interface EvaluationUpdateSettingsPutResponse extends ApiEnvelope<EvaluationUpdateSettingsPutResponseData> {
2095
2283
  }