@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.d.mts +354 -49
- package/dist/index.d.ts +354 -49
- package/dist/index.js +46 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +46 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -288,8 +288,8 @@ var ExamsSessions = class {
|
|
|
288
288
|
return request(this.ctx, "POST", "/exams/{examId}/sessions", ["examId"], [], true, args, options);
|
|
289
289
|
}
|
|
290
290
|
scan(arg, options) {
|
|
291
|
-
const args =
|
|
292
|
-
return request(this.ctx, "POST", "/exams/{examId}/sessions/scan", ["examId"], [],
|
|
291
|
+
const args = arg;
|
|
292
|
+
return request(this.ctx, "POST", "/exams/{examId}/sessions/scan", ["examId"], [], true, args, options);
|
|
293
293
|
}
|
|
294
294
|
releaseGrades(arg, options) {
|
|
295
295
|
const args = arg;
|
|
@@ -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;
|
|
@@ -487,10 +509,28 @@ var OrgCustomDomain = class {
|
|
|
487
509
|
return request(this.ctx, "POST", "/org/custom-domain", [], [], true, args, options);
|
|
488
510
|
}
|
|
489
511
|
};
|
|
512
|
+
var OrgIdentityProvider = class {
|
|
513
|
+
constructor(ctx) {
|
|
514
|
+
this.ctx = ctx;
|
|
515
|
+
}
|
|
516
|
+
get(arg, options) {
|
|
517
|
+
const args = arg;
|
|
518
|
+
return request(this.ctx, "GET", "/org/identity-provider", [], [], false, args, options);
|
|
519
|
+
}
|
|
520
|
+
update(arg, options) {
|
|
521
|
+
const args = arg;
|
|
522
|
+
return request(this.ctx, "POST", "/org/identity-provider", [], [], true, args, options);
|
|
523
|
+
}
|
|
524
|
+
delete(arg, options) {
|
|
525
|
+
const args = arg;
|
|
526
|
+
return request(this.ctx, "DELETE", "/org/identity-provider", [], [], false, args, options);
|
|
527
|
+
}
|
|
528
|
+
};
|
|
490
529
|
var Org = class {
|
|
491
530
|
constructor(ctx) {
|
|
492
531
|
this.ctx = ctx;
|
|
493
532
|
this.customDomain = new OrgCustomDomain(this.ctx);
|
|
533
|
+
this.identityProvider = new OrgIdentityProvider(this.ctx);
|
|
494
534
|
}
|
|
495
535
|
get(arg, options) {
|
|
496
536
|
const args = arg;
|
|
@@ -648,6 +688,10 @@ var Users = class {
|
|
|
648
688
|
const args = typeof arg === "string" ? { id: arg } : arg;
|
|
649
689
|
return request(this.ctx, "DELETE", "/users/{id}", ["id"], [], false, args, options);
|
|
650
690
|
}
|
|
691
|
+
resetTwoFactor(arg, options) {
|
|
692
|
+
const args = typeof arg === "string" ? { userId: arg } : arg;
|
|
693
|
+
return request(this.ctx, "DELETE", "/users/{userId}/two-factor", ["userId"], [], false, args, options);
|
|
694
|
+
}
|
|
651
695
|
};
|
|
652
696
|
var PracticeSpacesStudents = class {
|
|
653
697
|
constructor(ctx) {
|
|
@@ -939,14 +983,6 @@ var Examplary = class {
|
|
|
939
983
|
this.prompts = new Prompts(this.ctx);
|
|
940
984
|
this.jobs = new Jobs(this.ctx);
|
|
941
985
|
}
|
|
942
|
-
postExamsId(arg, options) {
|
|
943
|
-
const args = typeof arg === "string" ? { id: arg } : arg;
|
|
944
|
-
return request(this.ctx, "POST", "/exams/{id}", ["id"], [], false, args, options);
|
|
945
|
-
}
|
|
946
|
-
postFoldersId(arg, options) {
|
|
947
|
-
const args = arg;
|
|
948
|
-
return request(this.ctx, "POST", "/folders/{id}", ["id"], [], true, args, options);
|
|
949
|
-
}
|
|
950
986
|
getRubrics(arg, options) {
|
|
951
987
|
const args = arg;
|
|
952
988
|
return request(this.ctx, "GET", "/rubrics", [], [], false, args, options);
|