academe-kit 0.15.0 → 0.17.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.
- package/dist/index.cjs +22 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +747 -62
- package/dist/index.esm.js +22 -0
- package/dist/index.esm.js.map +1 -1
- package/dist/types/services/QuizService.d.ts +55 -0
- package/dist/types/services/userService.d.ts +48 -4
- package/dist/types/types/academe-api.d.ts +593 -7
- package/package.json +4 -2
package/dist/index.esm.js
CHANGED
|
@@ -4583,6 +4583,16 @@ function createUserService(apiClient) {
|
|
|
4583
4583
|
body,
|
|
4584
4584
|
});
|
|
4585
4585
|
},
|
|
4586
|
+
/**
|
|
4587
|
+
* Consulta o status de uma criação assíncrona de usuário, a partir do
|
|
4588
|
+
* requestId devolvido pelo POST /users. Traz o `username` (login) gerado
|
|
4589
|
+
* pelo worker — útil quando o usuário foi criado sem email.
|
|
4590
|
+
*/
|
|
4591
|
+
getUserCreationRequest(requestId) {
|
|
4592
|
+
return apiClient.GET("/user-creation-requests/{requestId}", {
|
|
4593
|
+
params: { path: { requestId } },
|
|
4594
|
+
});
|
|
4595
|
+
},
|
|
4586
4596
|
/**
|
|
4587
4597
|
* Update user information
|
|
4588
4598
|
*/
|
|
@@ -5505,6 +5515,18 @@ function createQuizService(apiClient) {
|
|
|
5505
5515
|
body,
|
|
5506
5516
|
});
|
|
5507
5517
|
},
|
|
5518
|
+
/**
|
|
5519
|
+
* Generate the explanation of every answer of an existing question, with AI.
|
|
5520
|
+
*
|
|
5521
|
+
* Backfill das perguntas criadas antes de a explicação existir. Sobrescreve
|
|
5522
|
+
* o que houver — confirme com o usuário antes de chamar.
|
|
5523
|
+
*/
|
|
5524
|
+
generateQuestionExplanations(id, body) {
|
|
5525
|
+
return apiClient.POST('/quiz-questions/{id}/generate-explanations', {
|
|
5526
|
+
params: { path: { id } },
|
|
5527
|
+
body: body ?? {},
|
|
5528
|
+
});
|
|
5529
|
+
},
|
|
5508
5530
|
/**
|
|
5509
5531
|
* Update quiz question
|
|
5510
5532
|
*/
|