@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.d.mts
CHANGED
|
@@ -809,6 +809,26 @@ interface paths {
|
|
|
809
809
|
patch: operations["exams.questions.update"];
|
|
810
810
|
trace?: never;
|
|
811
811
|
};
|
|
812
|
+
"/exams/{id}/questions/{questionId}/quality": {
|
|
813
|
+
parameters: {
|
|
814
|
+
query?: never;
|
|
815
|
+
header?: never;
|
|
816
|
+
path?: never;
|
|
817
|
+
cookie?: never;
|
|
818
|
+
};
|
|
819
|
+
/**
|
|
820
|
+
* Get question quality score
|
|
821
|
+
* @description Retrieve the quality score of a question. This is an async endpoint - when called for the first time, it will trigger a quality assessment and return a status of `pending`. Subsequent calls will return the quality score once available. We recommend polling this endpoint every 5-10 seconds until the score is available.
|
|
822
|
+
*/
|
|
823
|
+
get: operations["exams.questions.getQuality"];
|
|
824
|
+
put?: never;
|
|
825
|
+
post?: never;
|
|
826
|
+
delete?: never;
|
|
827
|
+
options?: never;
|
|
828
|
+
head?: never;
|
|
829
|
+
patch?: never;
|
|
830
|
+
trace?: never;
|
|
831
|
+
};
|
|
812
832
|
"/exams/{id}/questions/{questionId}/generate": {
|
|
813
833
|
parameters: {
|
|
814
834
|
query?: never;
|
|
@@ -926,7 +946,7 @@ interface paths {
|
|
|
926
946
|
*/
|
|
927
947
|
get: operations["exams.get"];
|
|
928
948
|
put?: never;
|
|
929
|
-
post
|
|
949
|
+
post?: never;
|
|
930
950
|
/**
|
|
931
951
|
* Delete exam
|
|
932
952
|
* @description Delete the exam.
|
|
@@ -1065,6 +1085,34 @@ interface paths {
|
|
|
1065
1085
|
patch: operations["me.update"];
|
|
1066
1086
|
trace?: never;
|
|
1067
1087
|
};
|
|
1088
|
+
"/me/two-factor": {
|
|
1089
|
+
parameters: {
|
|
1090
|
+
query?: never;
|
|
1091
|
+
header?: never;
|
|
1092
|
+
path?: never;
|
|
1093
|
+
cookie?: never;
|
|
1094
|
+
};
|
|
1095
|
+
/**
|
|
1096
|
+
* Get two-factor status
|
|
1097
|
+
* @description Check whether two-factor authentication is enabled for the current user, and whether the workspace requires it.
|
|
1098
|
+
*/
|
|
1099
|
+
get: operations["me.twoFactor.get"];
|
|
1100
|
+
put?: never;
|
|
1101
|
+
/**
|
|
1102
|
+
* Enable two-factor authentication
|
|
1103
|
+
* @description Turn on two-factor authentication, after an authenticator app has been registered and verified with Cognito.
|
|
1104
|
+
*/
|
|
1105
|
+
post: operations["me.twoFactor.enable"];
|
|
1106
|
+
/**
|
|
1107
|
+
* Disable two-factor authentication
|
|
1108
|
+
* @description Turn off two-factor authentication for the current user. Not allowed when the workspace requires it.
|
|
1109
|
+
*/
|
|
1110
|
+
delete: operations["me.twoFactor.disable"];
|
|
1111
|
+
options?: never;
|
|
1112
|
+
head?: never;
|
|
1113
|
+
patch?: never;
|
|
1114
|
+
trace?: never;
|
|
1115
|
+
};
|
|
1068
1116
|
"/media/upload": {
|
|
1069
1117
|
parameters: {
|
|
1070
1118
|
query?: never;
|
|
@@ -1139,6 +1187,25 @@ interface paths {
|
|
|
1139
1187
|
patch?: never;
|
|
1140
1188
|
trace?: never;
|
|
1141
1189
|
};
|
|
1190
|
+
"/org/identity-provider": {
|
|
1191
|
+
parameters: {
|
|
1192
|
+
query?: never;
|
|
1193
|
+
header?: never;
|
|
1194
|
+
path?: never;
|
|
1195
|
+
cookie?: never;
|
|
1196
|
+
};
|
|
1197
|
+
/** Get single sign-on configuration */
|
|
1198
|
+
get: operations["org.identityProvider.get"];
|
|
1199
|
+
put?: never;
|
|
1200
|
+
/** Configure single sign-on */
|
|
1201
|
+
post: operations["org.identityProvider.update"];
|
|
1202
|
+
/** Turn off single sign-on */
|
|
1203
|
+
delete: operations["org.identityProvider.delete"];
|
|
1204
|
+
options?: never;
|
|
1205
|
+
head?: never;
|
|
1206
|
+
patch?: never;
|
|
1207
|
+
trace?: never;
|
|
1208
|
+
};
|
|
1142
1209
|
"/orgs": {
|
|
1143
1210
|
parameters: {
|
|
1144
1211
|
query?: never;
|
|
@@ -1492,6 +1559,26 @@ interface paths {
|
|
|
1492
1559
|
patch: operations["users.update"];
|
|
1493
1560
|
trace?: never;
|
|
1494
1561
|
};
|
|
1562
|
+
"/users/{id}/two-factor": {
|
|
1563
|
+
parameters: {
|
|
1564
|
+
query?: never;
|
|
1565
|
+
header?: never;
|
|
1566
|
+
path?: never;
|
|
1567
|
+
cookie?: never;
|
|
1568
|
+
};
|
|
1569
|
+
get?: never;
|
|
1570
|
+
put?: never;
|
|
1571
|
+
post?: never;
|
|
1572
|
+
/**
|
|
1573
|
+
* Reset two-factor authentication
|
|
1574
|
+
* @description Remove a user's authenticator app, so they can sign in again after losing their device.
|
|
1575
|
+
*/
|
|
1576
|
+
delete: operations["users.resetTwoFactor"];
|
|
1577
|
+
options?: never;
|
|
1578
|
+
head?: never;
|
|
1579
|
+
patch?: never;
|
|
1580
|
+
trace?: never;
|
|
1581
|
+
};
|
|
1495
1582
|
"/practice-spaces": {
|
|
1496
1583
|
parameters: {
|
|
1497
1584
|
query?: never;
|
|
@@ -1929,7 +2016,7 @@ interface paths {
|
|
|
1929
2016
|
};
|
|
1930
2017
|
get?: never;
|
|
1931
2018
|
put?: never;
|
|
1932
|
-
post
|
|
2019
|
+
post?: never;
|
|
1933
2020
|
/**
|
|
1934
2021
|
* Delete folder
|
|
1935
2022
|
* @description Delete a folder from the current workspace. If there are any exams in the folder, they will be moved out of the folder.
|
|
@@ -2565,6 +2652,8 @@ interface operations {
|
|
|
2565
2652
|
}[];
|
|
2566
2653
|
/** @description Whether this question type is public and can be used by all users */
|
|
2567
2654
|
public?: boolean;
|
|
2655
|
+
/** @description Whether this question type is deprecated: existing questions keep working, but no new ones can be added */
|
|
2656
|
+
deprecated?: boolean;
|
|
2568
2657
|
/** @description Custom translations for this question type */
|
|
2569
2658
|
translations?: {
|
|
2570
2659
|
[key: string]: string | {
|
|
@@ -2906,6 +2995,10 @@ interface operations {
|
|
|
2906
2995
|
backgroundColor?: string;
|
|
2907
2996
|
/** @description Locale code for UI language. Currently supported: 'en', 'nl' - other values accepted, but will default to English */
|
|
2908
2997
|
locale?: string;
|
|
2998
|
+
/** @description Optional overrides for specific UI strings, keyed by string ID */
|
|
2999
|
+
strings?: {
|
|
3000
|
+
[key: string]: string;
|
|
3001
|
+
};
|
|
2909
3002
|
};
|
|
2910
3003
|
/** @description Additional key-value metadata */
|
|
2911
3004
|
metadata?: {
|
|
@@ -2934,6 +3027,11 @@ interface operations {
|
|
|
2934
3027
|
language?: string | null;
|
|
2935
3028
|
intendedDuration?: unknown | null;
|
|
2936
3029
|
allowedGenerationQuestionTypes?: string[] | null;
|
|
3030
|
+
hideStudentLevel?: boolean | null;
|
|
3031
|
+
hideSubject?: boolean | null;
|
|
3032
|
+
hideDuration?: boolean | null;
|
|
3033
|
+
hideQuestionTypes?: boolean | null;
|
|
3034
|
+
hideTaxonomy?: boolean | null;
|
|
2937
3035
|
};
|
|
2938
3036
|
} | {
|
|
2939
3037
|
/** @description The user ID for whom the embed session is created */
|
|
@@ -2946,6 +3044,10 @@ interface operations {
|
|
|
2946
3044
|
backgroundColor?: string;
|
|
2947
3045
|
/** @description Locale code for UI language. Currently supported: 'en', 'nl' - other values accepted, but will default to English */
|
|
2948
3046
|
locale?: string;
|
|
3047
|
+
/** @description Optional overrides for specific UI strings, keyed by string ID */
|
|
3048
|
+
strings?: {
|
|
3049
|
+
[key: string]: string;
|
|
3050
|
+
};
|
|
2949
3051
|
};
|
|
2950
3052
|
/** @description Additional key-value metadata */
|
|
2951
3053
|
metadata?: {
|
|
@@ -3023,6 +3125,10 @@ interface operations {
|
|
|
3023
3125
|
backgroundColor?: string;
|
|
3024
3126
|
/** @description Locale code for UI language. Currently supported: 'en', 'nl' - other values accepted, but will default to English */
|
|
3025
3127
|
locale?: string;
|
|
3128
|
+
/** @description Optional overrides for specific UI strings, keyed by string ID */
|
|
3129
|
+
strings?: {
|
|
3130
|
+
[key: string]: string;
|
|
3131
|
+
};
|
|
3026
3132
|
};
|
|
3027
3133
|
/** @description Additional key-value metadata */
|
|
3028
3134
|
metadata?: {
|
|
@@ -3063,6 +3169,10 @@ interface operations {
|
|
|
3063
3169
|
backgroundColor?: string;
|
|
3064
3170
|
/** @description Locale code for UI language. Currently supported: 'en', 'nl' - other values accepted, but will default to English */
|
|
3065
3171
|
locale?: string;
|
|
3172
|
+
/** @description Optional overrides for specific UI strings, keyed by string ID */
|
|
3173
|
+
strings?: {
|
|
3174
|
+
[key: string]: string;
|
|
3175
|
+
};
|
|
3066
3176
|
};
|
|
3067
3177
|
/** @description Additional key-value metadata */
|
|
3068
3178
|
metadata?: {
|
|
@@ -3098,6 +3208,10 @@ interface operations {
|
|
|
3098
3208
|
backgroundColor?: string;
|
|
3099
3209
|
/** @description Locale code for UI language. Currently supported: 'en', 'nl' - other values accepted, but will default to English */
|
|
3100
3210
|
locale?: string;
|
|
3211
|
+
/** @description Optional overrides for specific UI strings, keyed by string ID */
|
|
3212
|
+
strings?: {
|
|
3213
|
+
[key: string]: string;
|
|
3214
|
+
};
|
|
3101
3215
|
};
|
|
3102
3216
|
/** @description Additional key-value metadata */
|
|
3103
3217
|
metadata?: {
|
|
@@ -3130,6 +3244,10 @@ interface operations {
|
|
|
3130
3244
|
backgroundColor?: string;
|
|
3131
3245
|
/** @description Locale code for UI language. Currently supported: 'en', 'nl' - other values accepted, but will default to English */
|
|
3132
3246
|
locale?: string;
|
|
3247
|
+
/** @description Optional overrides for specific UI strings, keyed by string ID */
|
|
3248
|
+
strings?: {
|
|
3249
|
+
[key: string]: string;
|
|
3250
|
+
};
|
|
3133
3251
|
};
|
|
3134
3252
|
/** @description Additional key-value metadata */
|
|
3135
3253
|
metadata?: {
|
|
@@ -3162,6 +3280,10 @@ interface operations {
|
|
|
3162
3280
|
backgroundColor?: string;
|
|
3163
3281
|
/** @description Locale code for UI language. Currently supported: 'en', 'nl' - other values accepted, but will default to English */
|
|
3164
3282
|
locale?: string;
|
|
3283
|
+
/** @description Optional overrides for specific UI strings, keyed by string ID */
|
|
3284
|
+
strings?: {
|
|
3285
|
+
[key: string]: string;
|
|
3286
|
+
};
|
|
3165
3287
|
};
|
|
3166
3288
|
/** @description Additional key-value metadata */
|
|
3167
3289
|
metadata?: {
|
|
@@ -3218,6 +3340,10 @@ interface operations {
|
|
|
3218
3340
|
backgroundColor?: string;
|
|
3219
3341
|
/** @description Locale code for UI language. Currently supported: 'en', 'nl' - other values accepted, but will default to English */
|
|
3220
3342
|
locale?: string;
|
|
3343
|
+
/** @description Optional overrides for specific UI strings, keyed by string ID */
|
|
3344
|
+
strings?: {
|
|
3345
|
+
[key: string]: string;
|
|
3346
|
+
};
|
|
3221
3347
|
};
|
|
3222
3348
|
metadata: {
|
|
3223
3349
|
[key: string]: unknown;
|
|
@@ -3269,6 +3395,10 @@ interface operations {
|
|
|
3269
3395
|
backgroundColor?: string;
|
|
3270
3396
|
/** @description Locale code for UI language. Currently supported: 'en', 'nl' - other values accepted, but will default to English */
|
|
3271
3397
|
locale?: string;
|
|
3398
|
+
/** @description Optional overrides for specific UI strings, keyed by string ID */
|
|
3399
|
+
strings?: {
|
|
3400
|
+
[key: string]: string;
|
|
3401
|
+
};
|
|
3272
3402
|
};
|
|
3273
3403
|
metadata: {
|
|
3274
3404
|
[key: string]: unknown;
|
|
@@ -3354,7 +3484,15 @@ interface operations {
|
|
|
3354
3484
|
};
|
|
3355
3485
|
cookie?: never;
|
|
3356
3486
|
};
|
|
3357
|
-
requestBody?:
|
|
3487
|
+
requestBody?: {
|
|
3488
|
+
content: {
|
|
3489
|
+
"application/json": {
|
|
3490
|
+
/** Format: uri */
|
|
3491
|
+
image: string;
|
|
3492
|
+
questionId?: string | null;
|
|
3493
|
+
};
|
|
3494
|
+
};
|
|
3495
|
+
};
|
|
3358
3496
|
responses: never;
|
|
3359
3497
|
};
|
|
3360
3498
|
"exams.sessions.releaseGrades": {
|
|
@@ -3855,6 +3993,46 @@ interface operations {
|
|
|
3855
3993
|
};
|
|
3856
3994
|
responses: never;
|
|
3857
3995
|
};
|
|
3996
|
+
"exams.questions.getQuality": {
|
|
3997
|
+
parameters: {
|
|
3998
|
+
query?: never;
|
|
3999
|
+
header?: never;
|
|
4000
|
+
path: {
|
|
4001
|
+
/** @description Exam ID, e.g. `exam_1234`. */
|
|
4002
|
+
id: string;
|
|
4003
|
+
/** @description Question ID, e.g. `question_1234`, or `first` to get the first question. */
|
|
4004
|
+
questionId: string;
|
|
4005
|
+
};
|
|
4006
|
+
cookie?: never;
|
|
4007
|
+
};
|
|
4008
|
+
requestBody?: never;
|
|
4009
|
+
responses: {
|
|
4010
|
+
/** @description Quality score of the specified question. */
|
|
4011
|
+
200: {
|
|
4012
|
+
headers: {
|
|
4013
|
+
[name: string]: unknown;
|
|
4014
|
+
};
|
|
4015
|
+
content: {
|
|
4016
|
+
"application/json": {
|
|
4017
|
+
/** @enum {string} */
|
|
4018
|
+
status: "pending" | "complete";
|
|
4019
|
+
checkerVersion?: number;
|
|
4020
|
+
qualityScore?: number;
|
|
4021
|
+
timeTakenMs?: number;
|
|
4022
|
+
totalScorePercentage?: number;
|
|
4023
|
+
criteria?: {
|
|
4024
|
+
id: string;
|
|
4025
|
+
name: string;
|
|
4026
|
+
description: string;
|
|
4027
|
+
reasoning?: string;
|
|
4028
|
+
score?: number;
|
|
4029
|
+
passed: boolean;
|
|
4030
|
+
}[];
|
|
4031
|
+
};
|
|
4032
|
+
};
|
|
4033
|
+
};
|
|
4034
|
+
};
|
|
4035
|
+
};
|
|
3858
4036
|
"exams.questions.regenerate": {
|
|
3859
4037
|
parameters: {
|
|
3860
4038
|
query?: never;
|
|
@@ -4079,18 +4257,6 @@ interface operations {
|
|
|
4079
4257
|
requestBody?: never;
|
|
4080
4258
|
responses: never;
|
|
4081
4259
|
};
|
|
4082
|
-
"postExams:id": {
|
|
4083
|
-
parameters: {
|
|
4084
|
-
query?: never;
|
|
4085
|
-
header?: never;
|
|
4086
|
-
path: {
|
|
4087
|
-
id: string;
|
|
4088
|
-
};
|
|
4089
|
-
cookie?: never;
|
|
4090
|
-
};
|
|
4091
|
-
requestBody?: never;
|
|
4092
|
-
responses: never;
|
|
4093
|
-
};
|
|
4094
4260
|
"exams.delete": {
|
|
4095
4261
|
parameters: {
|
|
4096
4262
|
query?: never;
|
|
@@ -4213,6 +4379,36 @@ interface operations {
|
|
|
4213
4379
|
};
|
|
4214
4380
|
responses: never;
|
|
4215
4381
|
};
|
|
4382
|
+
"me.twoFactor.get": {
|
|
4383
|
+
parameters: {
|
|
4384
|
+
query?: never;
|
|
4385
|
+
header?: never;
|
|
4386
|
+
path?: never;
|
|
4387
|
+
cookie?: never;
|
|
4388
|
+
};
|
|
4389
|
+
requestBody?: never;
|
|
4390
|
+
responses: never;
|
|
4391
|
+
};
|
|
4392
|
+
"me.twoFactor.enable": {
|
|
4393
|
+
parameters: {
|
|
4394
|
+
query?: never;
|
|
4395
|
+
header?: never;
|
|
4396
|
+
path?: never;
|
|
4397
|
+
cookie?: never;
|
|
4398
|
+
};
|
|
4399
|
+
requestBody?: never;
|
|
4400
|
+
responses: never;
|
|
4401
|
+
};
|
|
4402
|
+
"me.twoFactor.disable": {
|
|
4403
|
+
parameters: {
|
|
4404
|
+
query?: never;
|
|
4405
|
+
header?: never;
|
|
4406
|
+
path?: never;
|
|
4407
|
+
cookie?: never;
|
|
4408
|
+
};
|
|
4409
|
+
requestBody?: never;
|
|
4410
|
+
responses: never;
|
|
4411
|
+
};
|
|
4216
4412
|
"media.upload": {
|
|
4217
4413
|
parameters: {
|
|
4218
4414
|
query?: {
|
|
@@ -4285,6 +4481,8 @@ interface operations {
|
|
|
4285
4481
|
sharingBlockPublic?: boolean;
|
|
4286
4482
|
/** @description Whether the organization blocks teachers from inviting new users. */
|
|
4287
4483
|
sharingBlockTeachersInvitingUsers?: boolean;
|
|
4484
|
+
/** @description Whether members signing in with a password must use two-factor authentication. */
|
|
4485
|
+
requireTwoFactor?: boolean;
|
|
4288
4486
|
};
|
|
4289
4487
|
};
|
|
4290
4488
|
};
|
|
@@ -4327,6 +4525,59 @@ interface operations {
|
|
|
4327
4525
|
};
|
|
4328
4526
|
responses: never;
|
|
4329
4527
|
};
|
|
4528
|
+
"org.identityProvider.get": {
|
|
4529
|
+
parameters: {
|
|
4530
|
+
query?: never;
|
|
4531
|
+
header?: never;
|
|
4532
|
+
path?: never;
|
|
4533
|
+
cookie?: never;
|
|
4534
|
+
};
|
|
4535
|
+
requestBody?: never;
|
|
4536
|
+
responses: never;
|
|
4537
|
+
};
|
|
4538
|
+
"org.identityProvider.update": {
|
|
4539
|
+
parameters: {
|
|
4540
|
+
query?: never;
|
|
4541
|
+
header?: never;
|
|
4542
|
+
path?: never;
|
|
4543
|
+
cookie?: never;
|
|
4544
|
+
};
|
|
4545
|
+
requestBody?: {
|
|
4546
|
+
content: {
|
|
4547
|
+
"application/json": {
|
|
4548
|
+
/** @constant */
|
|
4549
|
+
providerType: "google";
|
|
4550
|
+
domain?: string | null;
|
|
4551
|
+
} | {
|
|
4552
|
+
/** @constant */
|
|
4553
|
+
providerType: "entree";
|
|
4554
|
+
externalId: string;
|
|
4555
|
+
} | {
|
|
4556
|
+
/** @constant */
|
|
4557
|
+
providerType: "oidc";
|
|
4558
|
+
oidc: {
|
|
4559
|
+
/** Format: uri */
|
|
4560
|
+
issuer: string;
|
|
4561
|
+
clientId: string;
|
|
4562
|
+
clientSecret?: string;
|
|
4563
|
+
/** @default openid profile email */
|
|
4564
|
+
scopes?: string;
|
|
4565
|
+
};
|
|
4566
|
+
};
|
|
4567
|
+
};
|
|
4568
|
+
};
|
|
4569
|
+
responses: never;
|
|
4570
|
+
};
|
|
4571
|
+
"org.identityProvider.delete": {
|
|
4572
|
+
parameters: {
|
|
4573
|
+
query?: never;
|
|
4574
|
+
header?: never;
|
|
4575
|
+
path?: never;
|
|
4576
|
+
cookie?: never;
|
|
4577
|
+
};
|
|
4578
|
+
requestBody?: never;
|
|
4579
|
+
responses: never;
|
|
4580
|
+
};
|
|
4330
4581
|
"orgs.list": {
|
|
4331
4582
|
parameters: {
|
|
4332
4583
|
query?: never;
|
|
@@ -4902,6 +5153,18 @@ interface operations {
|
|
|
4902
5153
|
requestBody?: never;
|
|
4903
5154
|
responses: never;
|
|
4904
5155
|
};
|
|
5156
|
+
"users.resetTwoFactor": {
|
|
5157
|
+
parameters: {
|
|
5158
|
+
query?: never;
|
|
5159
|
+
header?: never;
|
|
5160
|
+
path: {
|
|
5161
|
+
id: string;
|
|
5162
|
+
};
|
|
5163
|
+
cookie?: never;
|
|
5164
|
+
};
|
|
5165
|
+
requestBody?: never;
|
|
5166
|
+
responses: never;
|
|
5167
|
+
};
|
|
4905
5168
|
"practiceSpaces.list": {
|
|
4906
5169
|
parameters: {
|
|
4907
5170
|
query?: {
|
|
@@ -5726,24 +5989,6 @@ interface operations {
|
|
|
5726
5989
|
};
|
|
5727
5990
|
responses: never;
|
|
5728
5991
|
};
|
|
5729
|
-
"postFolders:id": {
|
|
5730
|
-
parameters: {
|
|
5731
|
-
query?: never;
|
|
5732
|
-
header?: never;
|
|
5733
|
-
path: {
|
|
5734
|
-
id: string;
|
|
5735
|
-
};
|
|
5736
|
-
cookie?: never;
|
|
5737
|
-
};
|
|
5738
|
-
requestBody?: {
|
|
5739
|
-
content: {
|
|
5740
|
-
"application/json": {
|
|
5741
|
-
name: string;
|
|
5742
|
-
};
|
|
5743
|
-
};
|
|
5744
|
-
};
|
|
5745
|
-
responses: never;
|
|
5746
|
-
};
|
|
5747
5992
|
"folders.delete": {
|
|
5748
5993
|
parameters: {
|
|
5749
5994
|
query?: never;
|
|
@@ -6701,6 +6946,10 @@ interface _PathOverrides {
|
|
|
6701
6946
|
examId: string;
|
|
6702
6947
|
questionId: string;
|
|
6703
6948
|
};
|
|
6949
|
+
"exams.questions.getQuality": {
|
|
6950
|
+
examId: string;
|
|
6951
|
+
questionId: string;
|
|
6952
|
+
};
|
|
6704
6953
|
"exams.questions.regenerate": {
|
|
6705
6954
|
examId: string;
|
|
6706
6955
|
questionId: string;
|
|
@@ -6717,9 +6966,6 @@ interface _PathOverrides {
|
|
|
6717
6966
|
"exams.update": {
|
|
6718
6967
|
id: string;
|
|
6719
6968
|
};
|
|
6720
|
-
"postExams:id": {
|
|
6721
|
-
id: string;
|
|
6722
|
-
};
|
|
6723
6969
|
"exams.delete": {
|
|
6724
6970
|
id: string;
|
|
6725
6971
|
};
|
|
@@ -6770,6 +7016,9 @@ interface _PathOverrides {
|
|
|
6770
7016
|
"users.delete": {
|
|
6771
7017
|
id: string;
|
|
6772
7018
|
};
|
|
7019
|
+
"users.resetTwoFactor": {
|
|
7020
|
+
userId: string;
|
|
7021
|
+
};
|
|
6773
7022
|
"practiceSpaces.get": {
|
|
6774
7023
|
id: string;
|
|
6775
7024
|
};
|
|
@@ -6838,9 +7087,6 @@ interface _PathOverrides {
|
|
|
6838
7087
|
"folders.update": {
|
|
6839
7088
|
id: string;
|
|
6840
7089
|
};
|
|
6841
|
-
"postFolders:id": {
|
|
6842
|
-
id: string;
|
|
6843
|
-
};
|
|
6844
7090
|
"folders.delete": {
|
|
6845
7091
|
id: string;
|
|
6846
7092
|
};
|
|
@@ -7223,7 +7469,6 @@ declare class ExamsSessions {
|
|
|
7223
7469
|
*
|
|
7224
7470
|
* API endpoint: `POST /exams/{examId}/sessions/scan`
|
|
7225
7471
|
*/
|
|
7226
|
-
scan(examId: string, options?: ExamplaryRequestOptions): Promise<Response<"exams.sessions.scan">>;
|
|
7227
7472
|
scan(args: Args<"exams.sessions.scan">, options?: ExamplaryRequestOptions): Promise<Response<"exams.sessions.scan">>;
|
|
7228
7473
|
/**
|
|
7229
7474
|
* Release grades
|
|
@@ -7391,6 +7636,14 @@ declare class ExamsQuestions {
|
|
|
7391
7636
|
* API endpoint: `PATCH /exams/{examId}/questions/{questionId}`
|
|
7392
7637
|
*/
|
|
7393
7638
|
update(args: Args<"exams.questions.update">, options?: ExamplaryRequestOptions): Promise<Response<"exams.questions.update">>;
|
|
7639
|
+
/**
|
|
7640
|
+
* Get question quality score
|
|
7641
|
+
*
|
|
7642
|
+
* Retrieve the quality score of a question. This is an async endpoint - when called for the first time, it will trigger a quality assessment and return a status of `pending`. Subsequent calls will return the quality score once available. We recommend polling this endpoint every 5-10 seconds until the score is available.
|
|
7643
|
+
*
|
|
7644
|
+
* API endpoint: `GET /exams/{examId}/questions/{questionId}/quality`
|
|
7645
|
+
*/
|
|
7646
|
+
getQuality(args: Args<"exams.questions.getQuality">, options?: ExamplaryRequestOptions): Promise<Response<"exams.questions.getQuality">>;
|
|
7394
7647
|
/**
|
|
7395
7648
|
* Regenerate question
|
|
7396
7649
|
*
|
|
@@ -7524,8 +7777,37 @@ declare class Exams {
|
|
|
7524
7777
|
getContextSuggestions(examId: string, options?: ExamplaryRequestOptions): Promise<Response<"exams.getContextSuggestions">>;
|
|
7525
7778
|
getContextSuggestions(args: Args<"exams.getContextSuggestions">, options?: ExamplaryRequestOptions): Promise<Response<"exams.getContextSuggestions">>;
|
|
7526
7779
|
}
|
|
7780
|
+
declare class MeTwoFactor {
|
|
7781
|
+
private readonly ctx;
|
|
7782
|
+
constructor(ctx: ClientContext);
|
|
7783
|
+
/**
|
|
7784
|
+
* Get two-factor status
|
|
7785
|
+
*
|
|
7786
|
+
* Check whether two-factor authentication is enabled for the current user, and whether the workspace requires it.
|
|
7787
|
+
*
|
|
7788
|
+
* API endpoint: `GET /me/two-factor`
|
|
7789
|
+
*/
|
|
7790
|
+
get(args?: Args<"me.twoFactor.get">, options?: ExamplaryRequestOptions): Promise<Response<"me.twoFactor.get">>;
|
|
7791
|
+
/**
|
|
7792
|
+
* Enable two-factor authentication
|
|
7793
|
+
*
|
|
7794
|
+
* Turn on two-factor authentication, after an authenticator app has been registered and verified with Cognito.
|
|
7795
|
+
*
|
|
7796
|
+
* API endpoint: `POST /me/two-factor`
|
|
7797
|
+
*/
|
|
7798
|
+
enable(args?: Args<"me.twoFactor.enable">, options?: ExamplaryRequestOptions): Promise<Response<"me.twoFactor.enable">>;
|
|
7799
|
+
/**
|
|
7800
|
+
* Disable two-factor authentication
|
|
7801
|
+
*
|
|
7802
|
+
* Turn off two-factor authentication for the current user. Not allowed when the workspace requires it.
|
|
7803
|
+
*
|
|
7804
|
+
* API endpoint: `DELETE /me/two-factor`
|
|
7805
|
+
*/
|
|
7806
|
+
disable(args?: Args<"me.twoFactor.disable">, options?: ExamplaryRequestOptions): Promise<Response<"me.twoFactor.disable">>;
|
|
7807
|
+
}
|
|
7527
7808
|
declare class Me {
|
|
7528
7809
|
private readonly ctx;
|
|
7810
|
+
readonly twoFactor: MeTwoFactor;
|
|
7529
7811
|
constructor(ctx: ClientContext);
|
|
7530
7812
|
/**
|
|
7531
7813
|
* Get me
|
|
@@ -7572,9 +7854,32 @@ declare class OrgCustomDomain {
|
|
|
7572
7854
|
*/
|
|
7573
7855
|
update(args?: Args<"org.customDomain.update">, options?: ExamplaryRequestOptions): Promise<Response<"org.customDomain.update">>;
|
|
7574
7856
|
}
|
|
7857
|
+
declare class OrgIdentityProvider {
|
|
7858
|
+
private readonly ctx;
|
|
7859
|
+
constructor(ctx: ClientContext);
|
|
7860
|
+
/**
|
|
7861
|
+
* Get single sign-on configuration
|
|
7862
|
+
*
|
|
7863
|
+
* API endpoint: `GET /org/identity-provider`
|
|
7864
|
+
*/
|
|
7865
|
+
get(args?: Args<"org.identityProvider.get">, options?: ExamplaryRequestOptions): Promise<Response<"org.identityProvider.get">>;
|
|
7866
|
+
/**
|
|
7867
|
+
* Configure single sign-on
|
|
7868
|
+
*
|
|
7869
|
+
* API endpoint: `POST /org/identity-provider`
|
|
7870
|
+
*/
|
|
7871
|
+
update(args?: Args<"org.identityProvider.update">, options?: ExamplaryRequestOptions): Promise<Response<"org.identityProvider.update">>;
|
|
7872
|
+
/**
|
|
7873
|
+
* Turn off single sign-on
|
|
7874
|
+
*
|
|
7875
|
+
* API endpoint: `DELETE /org/identity-provider`
|
|
7876
|
+
*/
|
|
7877
|
+
delete(args?: Args<"org.identityProvider.delete">, options?: ExamplaryRequestOptions): Promise<Response<"org.identityProvider.delete">>;
|
|
7878
|
+
}
|
|
7575
7879
|
declare class Org {
|
|
7576
7880
|
private readonly ctx;
|
|
7577
7881
|
readonly customDomain: OrgCustomDomain;
|
|
7882
|
+
readonly identityProvider: OrgIdentityProvider;
|
|
7578
7883
|
constructor(ctx: ClientContext);
|
|
7579
7884
|
/**
|
|
7580
7885
|
* Get organization
|
|
@@ -7835,6 +8140,15 @@ declare class Users {
|
|
|
7835
8140
|
*/
|
|
7836
8141
|
delete(id: string, options?: ExamplaryRequestOptions): Promise<Response<"users.delete">>;
|
|
7837
8142
|
delete(args: Args<"users.delete">, options?: ExamplaryRequestOptions): Promise<Response<"users.delete">>;
|
|
8143
|
+
/**
|
|
8144
|
+
* Reset two-factor authentication
|
|
8145
|
+
*
|
|
8146
|
+
* Remove a user's authenticator app, so they can sign in again after losing their device.
|
|
8147
|
+
*
|
|
8148
|
+
* API endpoint: `DELETE /users/{userId}/two-factor`
|
|
8149
|
+
*/
|
|
8150
|
+
resetTwoFactor(userId: string, options?: ExamplaryRequestOptions): Promise<Response<"users.resetTwoFactor">>;
|
|
8151
|
+
resetTwoFactor(args: Args<"users.resetTwoFactor">, options?: ExamplaryRequestOptions): Promise<Response<"users.resetTwoFactor">>;
|
|
7838
8152
|
}
|
|
7839
8153
|
declare class PracticeSpacesStudents {
|
|
7840
8154
|
private readonly ctx;
|
|
@@ -8338,15 +8652,6 @@ declare class Examplary {
|
|
|
8338
8652
|
readonly prompts: Prompts;
|
|
8339
8653
|
readonly jobs: Jobs;
|
|
8340
8654
|
constructor(options: ExamplaryClientOptions);
|
|
8341
|
-
/**
|
|
8342
|
-
* API endpoint: `POST /exams/{id}`
|
|
8343
|
-
*/
|
|
8344
|
-
postExamsId(id: string, options?: ExamplaryRequestOptions): Promise<Response<"postExams:id">>;
|
|
8345
|
-
postExamsId(args: Args<"postExams:id">, options?: ExamplaryRequestOptions): Promise<Response<"postExams:id">>;
|
|
8346
|
-
/**
|
|
8347
|
-
* API endpoint: `POST /folders/{id}`
|
|
8348
|
-
*/
|
|
8349
|
-
postFoldersId(args: Args<"postFolders:id">, options?: ExamplaryRequestOptions): Promise<Response<"postFolders:id">>;
|
|
8350
8655
|
/**
|
|
8351
8656
|
* Get rubrics
|
|
8352
8657
|
*
|