@examplary/sdk 2.14.0 → 2.16.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.js CHANGED
@@ -323,8 +323,8 @@ var ExamsSessions = class {
323
323
  return request(this.ctx, "POST", "/exams/{examId}/sessions", ["examId"], [], true, args, options);
324
324
  }
325
325
  scan(arg, options) {
326
- const args = typeof arg === "string" ? { examId: arg } : arg;
327
- return request(this.ctx, "POST", "/exams/{examId}/sessions/scan", ["examId"], [], false, args, options);
326
+ const args = arg;
327
+ return request(this.ctx, "POST", "/exams/{examId}/sessions/scan", ["examId"], [], true, args, options);
328
328
  }
329
329
  releaseGrades(arg, options) {
330
330
  const args = arg;
@@ -411,6 +411,10 @@ var ExamsQuestions = class {
411
411
  const args = arg;
412
412
  return request(this.ctx, "PATCH", "/exams/{examId}/questions/{questionId}", ["examId", "questionId"], [], true, args, options);
413
413
  }
414
+ getQuality(arg, options) {
415
+ const args = arg;
416
+ return request(this.ctx, "GET", "/exams/{examId}/questions/{questionId}/quality", ["examId", "questionId"], [], false, args, options);
417
+ }
414
418
  regenerate(arg, options) {
415
419
  const args = arg;
416
420
  return request(this.ctx, "POST", "/exams/{examId}/questions/{questionId}/generate", ["examId", "questionId"], [], true, args, options);
@@ -481,9 +485,27 @@ var Exams = class {
481
485
  return request(this.ctx, "GET", "/exams/{examId}/context-suggestions", ["examId"], [], false, args, options);
482
486
  }
483
487
  };
488
+ var MeTwoFactor = class {
489
+ constructor(ctx) {
490
+ this.ctx = ctx;
491
+ }
492
+ get(arg, options) {
493
+ const args = arg;
494
+ return request(this.ctx, "GET", "/me/two-factor", [], [], false, args, options);
495
+ }
496
+ enable(arg, options) {
497
+ const args = arg;
498
+ return request(this.ctx, "POST", "/me/two-factor", [], [], false, args, options);
499
+ }
500
+ disable(arg, options) {
501
+ const args = arg;
502
+ return request(this.ctx, "DELETE", "/me/two-factor", [], [], false, args, options);
503
+ }
504
+ };
484
505
  var Me = class {
485
506
  constructor(ctx) {
486
507
  this.ctx = ctx;
508
+ this.twoFactor = new MeTwoFactor(this.ctx);
487
509
  }
488
510
  get(arg, options) {
489
511
  const args = arg;
@@ -522,10 +544,28 @@ var OrgCustomDomain = class {
522
544
  return request(this.ctx, "POST", "/org/custom-domain", [], [], true, args, options);
523
545
  }
524
546
  };
547
+ var OrgIdentityProvider = class {
548
+ constructor(ctx) {
549
+ this.ctx = ctx;
550
+ }
551
+ get(arg, options) {
552
+ const args = arg;
553
+ return request(this.ctx, "GET", "/org/identity-provider", [], [], false, args, options);
554
+ }
555
+ update(arg, options) {
556
+ const args = arg;
557
+ return request(this.ctx, "POST", "/org/identity-provider", [], [], true, args, options);
558
+ }
559
+ delete(arg, options) {
560
+ const args = arg;
561
+ return request(this.ctx, "DELETE", "/org/identity-provider", [], [], false, args, options);
562
+ }
563
+ };
525
564
  var Org = class {
526
565
  constructor(ctx) {
527
566
  this.ctx = ctx;
528
567
  this.customDomain = new OrgCustomDomain(this.ctx);
568
+ this.identityProvider = new OrgIdentityProvider(this.ctx);
529
569
  }
530
570
  get(arg, options) {
531
571
  const args = arg;
@@ -683,6 +723,10 @@ var Users = class {
683
723
  const args = typeof arg === "string" ? { id: arg } : arg;
684
724
  return request(this.ctx, "DELETE", "/users/{id}", ["id"], [], false, args, options);
685
725
  }
726
+ resetTwoFactor(arg, options) {
727
+ const args = typeof arg === "string" ? { userId: arg } : arg;
728
+ return request(this.ctx, "DELETE", "/users/{userId}/two-factor", ["userId"], [], false, args, options);
729
+ }
686
730
  };
687
731
  var PracticeSpacesStudents = class {
688
732
  constructor(ctx) {
@@ -974,14 +1018,6 @@ var Examplary = class {
974
1018
  this.prompts = new Prompts(this.ctx);
975
1019
  this.jobs = new Jobs(this.ctx);
976
1020
  }
977
- postExamsId(arg, options) {
978
- const args = typeof arg === "string" ? { id: arg } : arg;
979
- return request(this.ctx, "POST", "/exams/{id}", ["id"], [], false, args, options);
980
- }
981
- postFoldersId(arg, options) {
982
- const args = arg;
983
- return request(this.ctx, "POST", "/folders/{id}", ["id"], [], true, args, options);
984
- }
985
1021
  getRubrics(arg, options) {
986
1022
  const args = arg;
987
1023
  return request(this.ctx, "GET", "/rubrics", [], [], false, args, options);