@examplary/sdk 2.14.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
@@ -376,6 +376,10 @@ var ExamsQuestions = class {
376
376
  const args = arg;
377
377
  return request(this.ctx, "PATCH", "/exams/{examId}/questions/{questionId}", ["examId", "questionId"], [], true, args, options);
378
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
+ }
379
383
  regenerate(arg, options) {
380
384
  const args = arg;
381
385
  return request(this.ctx, "POST", "/exams/{examId}/questions/{questionId}/generate", ["examId", "questionId"], [], true, args, options);
@@ -446,9 +450,27 @@ var Exams = class {
446
450
  return request(this.ctx, "GET", "/exams/{examId}/context-suggestions", ["examId"], [], false, args, options);
447
451
  }
448
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
+ };
449
470
  var Me = class {
450
471
  constructor(ctx) {
451
472
  this.ctx = ctx;
473
+ this.twoFactor = new MeTwoFactor(this.ctx);
452
474
  }
453
475
  get(arg, options) {
454
476
  const args = arg;
@@ -648,6 +670,10 @@ var Users = class {
648
670
  const args = typeof arg === "string" ? { id: arg } : arg;
649
671
  return request(this.ctx, "DELETE", "/users/{id}", ["id"], [], false, args, options);
650
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
+ }
651
677
  };
652
678
  var PracticeSpacesStudents = class {
653
679
  constructor(ctx) {