@examplary/sdk 2.13.0 → 2.15.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.mjs CHANGED
@@ -307,6 +307,14 @@ var ExamsSessions = class {
307
307
  const args = arg;
308
308
  return request(this.ctx, "POST", "/exams/{examId}/sessions/scan-document", ["examId"], [], true, args, options);
309
309
  }
310
+ getResultsSummary(arg, options) {
311
+ const args = typeof arg === "string" ? { examId: arg } : arg;
312
+ return request(this.ctx, "GET", "/exams/{examId}/sessions/summary", ["examId"], [], false, args, options);
313
+ }
314
+ generateResultsSummary(arg, options) {
315
+ const args = typeof arg === "string" ? { examId: arg } : arg;
316
+ return request(this.ctx, "POST", "/exams/{examId}/sessions/summary", ["examId"], [], false, args, options);
317
+ }
310
318
  get(arg, options) {
311
319
  const args = arg;
312
320
  return request(this.ctx, "GET", "/exams/{examId}/sessions/{sessionId}", ["examId", "sessionId"], [], false, args, options);
@@ -368,6 +376,10 @@ var ExamsQuestions = class {
368
376
  const args = arg;
369
377
  return request(this.ctx, "PATCH", "/exams/{examId}/questions/{questionId}", ["examId", "questionId"], [], true, args, options);
370
378
  }
379
+ getQuality(arg, options) {
380
+ const args = arg;
381
+ return request(this.ctx, "GET", "/exams/{examId}/questions/{questionId}/quality", ["examId", "questionId"], [], false, args, options);
382
+ }
371
383
  regenerate(arg, options) {
372
384
  const args = arg;
373
385
  return request(this.ctx, "POST", "/exams/{examId}/questions/{questionId}/generate", ["examId", "questionId"], [], true, args, options);
@@ -438,9 +450,27 @@ var Exams = class {
438
450
  return request(this.ctx, "GET", "/exams/{examId}/context-suggestions", ["examId"], [], false, args, options);
439
451
  }
440
452
  };
453
+ var MeTwoFactor = class {
454
+ constructor(ctx) {
455
+ this.ctx = ctx;
456
+ }
457
+ get(arg, options) {
458
+ const args = arg;
459
+ return request(this.ctx, "GET", "/me/two-factor", [], [], false, args, options);
460
+ }
461
+ enable(arg, options) {
462
+ const args = arg;
463
+ return request(this.ctx, "POST", "/me/two-factor", [], [], false, args, options);
464
+ }
465
+ disable(arg, options) {
466
+ const args = arg;
467
+ return request(this.ctx, "DELETE", "/me/two-factor", [], [], false, args, options);
468
+ }
469
+ };
441
470
  var Me = class {
442
471
  constructor(ctx) {
443
472
  this.ctx = ctx;
473
+ this.twoFactor = new MeTwoFactor(this.ctx);
444
474
  }
445
475
  get(arg, options) {
446
476
  const args = arg;
@@ -640,6 +670,10 @@ var Users = class {
640
670
  const args = typeof arg === "string" ? { id: arg } : arg;
641
671
  return request(this.ctx, "DELETE", "/users/{id}", ["id"], [], false, args, options);
642
672
  }
673
+ resetTwoFactor(arg, options) {
674
+ const args = typeof arg === "string" ? { userId: arg } : arg;
675
+ return request(this.ctx, "DELETE", "/users/{userId}/two-factor", ["userId"], [], false, args, options);
676
+ }
643
677
  };
644
678
  var PracticeSpacesStudents = class {
645
679
  constructor(ctx) {