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.cjs
CHANGED
|
@@ -4585,6 +4585,16 @@ function createUserService(apiClient) {
|
|
|
4585
4585
|
body,
|
|
4586
4586
|
});
|
|
4587
4587
|
},
|
|
4588
|
+
/**
|
|
4589
|
+
* Consulta o status de uma criação assíncrona de usuário, a partir do
|
|
4590
|
+
* requestId devolvido pelo POST /users. Traz o `username` (login) gerado
|
|
4591
|
+
* pelo worker — útil quando o usuário foi criado sem email.
|
|
4592
|
+
*/
|
|
4593
|
+
getUserCreationRequest(requestId) {
|
|
4594
|
+
return apiClient.GET("/user-creation-requests/{requestId}", {
|
|
4595
|
+
params: { path: { requestId } },
|
|
4596
|
+
});
|
|
4597
|
+
},
|
|
4588
4598
|
/**
|
|
4589
4599
|
* Update user information
|
|
4590
4600
|
*/
|
|
@@ -5507,6 +5517,18 @@ function createQuizService(apiClient) {
|
|
|
5507
5517
|
body,
|
|
5508
5518
|
});
|
|
5509
5519
|
},
|
|
5520
|
+
/**
|
|
5521
|
+
* Generate the explanation of every answer of an existing question, with AI.
|
|
5522
|
+
*
|
|
5523
|
+
* Backfill das perguntas criadas antes de a explicação existir. Sobrescreve
|
|
5524
|
+
* o que houver — confirme com o usuário antes de chamar.
|
|
5525
|
+
*/
|
|
5526
|
+
generateQuestionExplanations(id, body) {
|
|
5527
|
+
return apiClient.POST('/quiz-questions/{id}/generate-explanations', {
|
|
5528
|
+
params: { path: { id } },
|
|
5529
|
+
body: body ?? {},
|
|
5530
|
+
});
|
|
5531
|
+
},
|
|
5510
5532
|
/**
|
|
5511
5533
|
* Update quiz question
|
|
5512
5534
|
*/
|