@examplary/sdk 2.16.0 → 2.18.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 +830 -258
- package/dist/index.d.ts +830 -258
- package/dist/index.js +113 -41
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +113 -41
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -191,57 +191,45 @@ var QuestionTypes = class {
|
|
|
191
191
|
return request(this.ctx, "POST", "/question-types/{questionTypeId}/disable", ["questionTypeId"], [], false, args, options);
|
|
192
192
|
}
|
|
193
193
|
};
|
|
194
|
-
var
|
|
194
|
+
var LibraryCollectionsItems = class {
|
|
195
195
|
constructor(ctx) {
|
|
196
196
|
this.ctx = ctx;
|
|
197
197
|
}
|
|
198
198
|
list(arg, options) {
|
|
199
|
-
const args = typeof arg === "string" ? {
|
|
200
|
-
return request(this.ctx, "GET", "/library/
|
|
199
|
+
const args = typeof arg === "string" ? { collectionId: arg } : arg;
|
|
200
|
+
return request(this.ctx, "GET", "/library/collections/{collectionId}/items", ["collectionId"], [], false, args, options);
|
|
201
201
|
}
|
|
202
202
|
create(arg, options) {
|
|
203
203
|
const args = arg;
|
|
204
|
-
return request(this.ctx, "POST", "/library/
|
|
204
|
+
return request(this.ctx, "POST", "/library/collections/{collectionId}/items", ["collectionId"], [], true, args, options);
|
|
205
205
|
}
|
|
206
206
|
};
|
|
207
|
-
var
|
|
207
|
+
var LibraryCollections = class {
|
|
208
208
|
constructor(ctx) {
|
|
209
209
|
this.ctx = ctx;
|
|
210
|
-
this.items = new
|
|
210
|
+
this.items = new LibraryCollectionsItems(this.ctx);
|
|
211
211
|
}
|
|
212
|
-
|
|
213
|
-
const args = arg;
|
|
214
|
-
return request(this.ctx, "GET", "/library/publishers/featured", [], [], false, args, options);
|
|
215
|
-
}
|
|
216
|
-
listAll(arg, options) {
|
|
212
|
+
list(arg, options) {
|
|
217
213
|
const args = arg;
|
|
218
|
-
return request(this.ctx, "GET", "/library/
|
|
214
|
+
return request(this.ctx, "GET", "/library/collections", [], [], false, args, options);
|
|
219
215
|
}
|
|
220
216
|
create(arg, options) {
|
|
221
217
|
const args = arg;
|
|
222
|
-
return request(this.ctx, "POST", "/library/
|
|
223
|
-
}
|
|
224
|
-
listMine(arg, options) {
|
|
225
|
-
const args = arg;
|
|
226
|
-
return request(this.ctx, "GET", "/library/publishers/mine", [], [], false, args, options);
|
|
218
|
+
return request(this.ctx, "POST", "/library/collections", [], [], true, args, options);
|
|
227
219
|
}
|
|
228
220
|
update(arg, options) {
|
|
229
221
|
const args = arg;
|
|
230
|
-
return request(this.ctx, "PATCH", "/library/
|
|
222
|
+
return request(this.ctx, "PATCH", "/library/collections/{collectionId}", ["collectionId"], [], true, args, options);
|
|
231
223
|
}
|
|
232
224
|
delete(arg, options) {
|
|
233
|
-
const args = typeof arg === "string" ? {
|
|
234
|
-
return request(this.ctx, "DELETE", "/library/
|
|
225
|
+
const args = typeof arg === "string" ? { collectionId: arg } : arg;
|
|
226
|
+
return request(this.ctx, "DELETE", "/library/collections/{collectionId}", ["collectionId"], [], false, args, options);
|
|
235
227
|
}
|
|
236
228
|
};
|
|
237
229
|
var LibraryItems = class {
|
|
238
230
|
constructor(ctx) {
|
|
239
231
|
this.ctx = ctx;
|
|
240
232
|
}
|
|
241
|
-
listFeatured(arg, options) {
|
|
242
|
-
const args = arg;
|
|
243
|
-
return request(this.ctx, "GET", "/library/items/featured", [], [], false, args, options);
|
|
244
|
-
}
|
|
245
233
|
update(arg, options) {
|
|
246
234
|
const args = arg;
|
|
247
235
|
return request(this.ctx, "PATCH", "/library/items/{itemId}", ["itemId"], [], true, args, options);
|
|
@@ -254,7 +242,7 @@ var LibraryItems = class {
|
|
|
254
242
|
var Library = class {
|
|
255
243
|
constructor(ctx) {
|
|
256
244
|
this.ctx = ctx;
|
|
257
|
-
this.
|
|
245
|
+
this.collections = new LibraryCollections(this.ctx);
|
|
258
246
|
this.items = new LibraryItems(this.ctx);
|
|
259
247
|
}
|
|
260
248
|
};
|
|
@@ -485,6 +473,42 @@ var Exams = class {
|
|
|
485
473
|
return request(this.ctx, "GET", "/exams/{examId}/context-suggestions", ["examId"], [], false, args, options);
|
|
486
474
|
}
|
|
487
475
|
};
|
|
476
|
+
var Orgs = class {
|
|
477
|
+
constructor(ctx) {
|
|
478
|
+
this.ctx = ctx;
|
|
479
|
+
}
|
|
480
|
+
list(arg, options) {
|
|
481
|
+
const args = arg;
|
|
482
|
+
return request(this.ctx, "GET", "/orgs", [], ["includeUnconfirmed"], false, args, options);
|
|
483
|
+
}
|
|
484
|
+
create(arg, options) {
|
|
485
|
+
const args = arg;
|
|
486
|
+
return request(this.ctx, "POST", "/orgs", [], [], true, args, options);
|
|
487
|
+
}
|
|
488
|
+
join(arg, options) {
|
|
489
|
+
const args = typeof arg === "string" ? { orgId: arg } : arg;
|
|
490
|
+
return request(this.ctx, "POST", "/orgs/{orgId}/join", ["orgId"], [], false, args, options);
|
|
491
|
+
}
|
|
492
|
+
};
|
|
493
|
+
var SearchTokens = class {
|
|
494
|
+
constructor(ctx) {
|
|
495
|
+
this.ctx = ctx;
|
|
496
|
+
}
|
|
497
|
+
get(arg, options) {
|
|
498
|
+
const args = arg;
|
|
499
|
+
return request(this.ctx, "GET", "/search/tokens", [], [], false, args, options);
|
|
500
|
+
}
|
|
501
|
+
getPublic(arg, options) {
|
|
502
|
+
const args = arg;
|
|
503
|
+
return request(this.ctx, "GET", "/search/tokens/public", [], [], false, args, options);
|
|
504
|
+
}
|
|
505
|
+
};
|
|
506
|
+
var Search = class {
|
|
507
|
+
constructor(ctx) {
|
|
508
|
+
this.ctx = ctx;
|
|
509
|
+
this.tokens = new SearchTokens(this.ctx);
|
|
510
|
+
}
|
|
511
|
+
};
|
|
488
512
|
var MeTwoFactor = class {
|
|
489
513
|
constructor(ctx) {
|
|
490
514
|
this.ctx = ctx;
|
|
@@ -515,6 +539,10 @@ var Me = class {
|
|
|
515
539
|
const args = arg;
|
|
516
540
|
return request(this.ctx, "PATCH", "/me", [], [], true, args, options);
|
|
517
541
|
}
|
|
542
|
+
updateEmail(arg, options) {
|
|
543
|
+
const args = arg;
|
|
544
|
+
return request(this.ctx, "PATCH", "/me/email", [], [], true, args, options);
|
|
545
|
+
}
|
|
518
546
|
};
|
|
519
547
|
var Media = class {
|
|
520
548
|
constructor(ctx) {
|
|
@@ -544,6 +572,31 @@ var OrgCustomDomain = class {
|
|
|
544
572
|
return request(this.ctx, "POST", "/org/custom-domain", [], [], true, args, options);
|
|
545
573
|
}
|
|
546
574
|
};
|
|
575
|
+
var OrgEmailDomains = class {
|
|
576
|
+
constructor(ctx) {
|
|
577
|
+
this.ctx = ctx;
|
|
578
|
+
}
|
|
579
|
+
list(arg, options) {
|
|
580
|
+
const args = arg;
|
|
581
|
+
return request(this.ctx, "GET", "/org/email-domains", [], [], false, args, options);
|
|
582
|
+
}
|
|
583
|
+
create(arg, options) {
|
|
584
|
+
const args = arg;
|
|
585
|
+
return request(this.ctx, "POST", "/org/email-domains", [], [], true, args, options);
|
|
586
|
+
}
|
|
587
|
+
update(arg, options) {
|
|
588
|
+
const args = arg;
|
|
589
|
+
return request(this.ctx, "PATCH", "/org/email-domains/{domain}", ["domain"], [], true, args, options);
|
|
590
|
+
}
|
|
591
|
+
delete(arg, options) {
|
|
592
|
+
const args = typeof arg === "string" ? { domain: arg } : arg;
|
|
593
|
+
return request(this.ctx, "DELETE", "/org/email-domains/{domain}", ["domain"], [], false, args, options);
|
|
594
|
+
}
|
|
595
|
+
verify(arg, options) {
|
|
596
|
+
const args = typeof arg === "string" ? { domain: arg } : arg;
|
|
597
|
+
return request(this.ctx, "POST", "/org/email-domains/{domain}/verify", ["domain"], [], false, args, options);
|
|
598
|
+
}
|
|
599
|
+
};
|
|
547
600
|
var OrgIdentityProvider = class {
|
|
548
601
|
constructor(ctx) {
|
|
549
602
|
this.ctx = ctx;
|
|
@@ -561,11 +614,30 @@ var OrgIdentityProvider = class {
|
|
|
561
614
|
return request(this.ctx, "DELETE", "/org/identity-provider", [], [], false, args, options);
|
|
562
615
|
}
|
|
563
616
|
};
|
|
617
|
+
var OrgJoinRequests = class {
|
|
618
|
+
constructor(ctx) {
|
|
619
|
+
this.ctx = ctx;
|
|
620
|
+
}
|
|
621
|
+
list(arg, options) {
|
|
622
|
+
const args = arg;
|
|
623
|
+
return request(this.ctx, "GET", "/org/join-requests", [], [], false, args, options);
|
|
624
|
+
}
|
|
625
|
+
approve(arg, options) {
|
|
626
|
+
const args = arg;
|
|
627
|
+
return request(this.ctx, "POST", "/org/join-requests/{userId}/approve", ["userId"], [], true, args, options);
|
|
628
|
+
}
|
|
629
|
+
reject(arg, options) {
|
|
630
|
+
const args = typeof arg === "string" ? { userId: arg } : arg;
|
|
631
|
+
return request(this.ctx, "POST", "/org/join-requests/{userId}/reject", ["userId"], [], false, args, options);
|
|
632
|
+
}
|
|
633
|
+
};
|
|
564
634
|
var Org = class {
|
|
565
635
|
constructor(ctx) {
|
|
566
636
|
this.ctx = ctx;
|
|
567
637
|
this.customDomain = new OrgCustomDomain(this.ctx);
|
|
638
|
+
this.emailDomains = new OrgEmailDomains(this.ctx);
|
|
568
639
|
this.identityProvider = new OrgIdentityProvider(this.ctx);
|
|
640
|
+
this.joinRequests = new OrgJoinRequests(this.ctx);
|
|
569
641
|
}
|
|
570
642
|
get(arg, options) {
|
|
571
643
|
const args = arg;
|
|
@@ -584,19 +656,6 @@ var Org = class {
|
|
|
584
656
|
return request(this.ctx, "GET", "/org/limits", [], [], false, args, options);
|
|
585
657
|
}
|
|
586
658
|
};
|
|
587
|
-
var Orgs = class {
|
|
588
|
-
constructor(ctx) {
|
|
589
|
-
this.ctx = ctx;
|
|
590
|
-
}
|
|
591
|
-
list(arg, options) {
|
|
592
|
-
const args = arg;
|
|
593
|
-
return request(this.ctx, "GET", "/orgs", [], [], false, args, options);
|
|
594
|
-
}
|
|
595
|
-
create(arg, options) {
|
|
596
|
-
const args = arg;
|
|
597
|
-
return request(this.ctx, "POST", "/orgs", [], [], true, args, options);
|
|
598
|
-
}
|
|
599
|
-
};
|
|
600
659
|
var AuditLogs = class {
|
|
601
660
|
constructor(ctx) {
|
|
602
661
|
this.ctx = ctx;
|
|
@@ -715,9 +774,13 @@ var Users = class {
|
|
|
715
774
|
const args = arg;
|
|
716
775
|
return request(this.ctx, "POST", "/users", [], [], true, args, options);
|
|
717
776
|
}
|
|
718
|
-
|
|
777
|
+
get(arg, options) {
|
|
719
778
|
const args = typeof arg === "string" ? { id: arg } : arg;
|
|
720
|
-
return request(this.ctx, "
|
|
779
|
+
return request(this.ctx, "GET", "/users/{id}", ["id"], [], false, args, options);
|
|
780
|
+
}
|
|
781
|
+
update(arg, options) {
|
|
782
|
+
const args = arg;
|
|
783
|
+
return request(this.ctx, "PATCH", "/users/{id}", ["id"], [], true, args, options);
|
|
721
784
|
}
|
|
722
785
|
delete(arg, options) {
|
|
723
786
|
const args = typeof arg === "string" ? { id: arg } : arg;
|
|
@@ -829,6 +892,10 @@ var SourceMaterials = class {
|
|
|
829
892
|
const args = arg;
|
|
830
893
|
return request(this.ctx, "POST", "/source-materials", [], [], true, args, options);
|
|
831
894
|
}
|
|
895
|
+
listTags(arg, options) {
|
|
896
|
+
const args = arg;
|
|
897
|
+
return request(this.ctx, "GET", "/source-materials/tags", [], [], false, args, options);
|
|
898
|
+
}
|
|
832
899
|
get(arg, options) {
|
|
833
900
|
const args = typeof arg === "string" ? { id: arg } : arg;
|
|
834
901
|
return request(this.ctx, "GET", "/source-materials/{id}", ["id"], [], false, args, options);
|
|
@@ -867,6 +934,10 @@ var Folders = class {
|
|
|
867
934
|
const args = arg;
|
|
868
935
|
return request(this.ctx, "POST", "/folders", [], [], true, args, options);
|
|
869
936
|
}
|
|
937
|
+
get(arg, options) {
|
|
938
|
+
const args = typeof arg === "string" ? { id: arg } : arg;
|
|
939
|
+
return request(this.ctx, "GET", "/folders/{id}", ["id"], [], false, args, options);
|
|
940
|
+
}
|
|
870
941
|
update(arg, options) {
|
|
871
942
|
const args = arg;
|
|
872
943
|
return request(this.ctx, "PATCH", "/folders/{id}", ["id"], [], true, args, options);
|
|
@@ -997,10 +1068,11 @@ var Examplary = class {
|
|
|
997
1068
|
this.oauth = new Oauth(this.ctx);
|
|
998
1069
|
this.embedSessions = new EmbedSessions(this.ctx);
|
|
999
1070
|
this.exams = new Exams(this.ctx);
|
|
1071
|
+
this.orgs = new Orgs(this.ctx);
|
|
1072
|
+
this.search = new Search(this.ctx);
|
|
1000
1073
|
this.me = new Me(this.ctx);
|
|
1001
1074
|
this.media = new Media(this.ctx);
|
|
1002
1075
|
this.org = new Org(this.ctx);
|
|
1003
|
-
this.orgs = new Orgs(this.ctx);
|
|
1004
1076
|
this.auditLogs = new AuditLogs(this.ctx);
|
|
1005
1077
|
this.apiKeys = new ApiKeys(this.ctx);
|
|
1006
1078
|
this.attributes = new Attributes(this.ctx);
|