@examplary/sdk 2.4.0 → 2.5.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 +254 -2
- package/dist/index.d.ts +254 -2
- package/dist/index.js +36 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +36 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -486,6 +486,19 @@ var Orgs = class {
|
|
|
486
486
|
return request(this.ctx, "POST", "/orgs", [], [], true, args, options);
|
|
487
487
|
}
|
|
488
488
|
};
|
|
489
|
+
var AuditLogs = class {
|
|
490
|
+
constructor(ctx) {
|
|
491
|
+
this.ctx = ctx;
|
|
492
|
+
}
|
|
493
|
+
list(arg, options) {
|
|
494
|
+
const args = arg;
|
|
495
|
+
return request(this.ctx, "GET", "/audit-logs", [], ["actor", "object", "from", "to", "exclusiveStartKey"], false, args, options);
|
|
496
|
+
}
|
|
497
|
+
export(arg, options) {
|
|
498
|
+
const args = arg;
|
|
499
|
+
return request(this.ctx, "GET", "/audit-logs/export", [], ["from", "to", "actor", "object"], false, args, options);
|
|
500
|
+
}
|
|
501
|
+
};
|
|
489
502
|
var ApiKeys = class {
|
|
490
503
|
constructor(ctx) {
|
|
491
504
|
this.ctx = ctx;
|
|
@@ -793,6 +806,27 @@ var QuestionBank = class {
|
|
|
793
806
|
return request(this.ctx, "DELETE", "/question-bank/{id}", ["id"], [], false, args, options);
|
|
794
807
|
}
|
|
795
808
|
};
|
|
809
|
+
var Prompts = class {
|
|
810
|
+
constructor(ctx) {
|
|
811
|
+
this.ctx = ctx;
|
|
812
|
+
}
|
|
813
|
+
list(arg, options) {
|
|
814
|
+
const args = arg;
|
|
815
|
+
return request(this.ctx, "GET", "/prompts", [], ["type", "language"], false, args, options);
|
|
816
|
+
}
|
|
817
|
+
create(arg, options) {
|
|
818
|
+
const args = arg;
|
|
819
|
+
return request(this.ctx, "POST", "/prompts", [], [], true, args, options);
|
|
820
|
+
}
|
|
821
|
+
update(arg, options) {
|
|
822
|
+
const args = arg;
|
|
823
|
+
return request(this.ctx, "PATCH", "/prompts/{id}", ["id"], [], true, args, options);
|
|
824
|
+
}
|
|
825
|
+
delete(arg, options) {
|
|
826
|
+
const args = typeof arg === "string" ? { id: arg } : arg;
|
|
827
|
+
return request(this.ctx, "DELETE", "/prompts/{id}", ["id"], [], false, args, options);
|
|
828
|
+
}
|
|
829
|
+
};
|
|
796
830
|
var Jobs = class {
|
|
797
831
|
constructor(ctx) {
|
|
798
832
|
this.ctx = ctx;
|
|
@@ -818,6 +852,7 @@ var Examplary = class {
|
|
|
818
852
|
this.media = new Media(this.ctx);
|
|
819
853
|
this.org = new Org(this.ctx);
|
|
820
854
|
this.orgs = new Orgs(this.ctx);
|
|
855
|
+
this.auditLogs = new AuditLogs(this.ctx);
|
|
821
856
|
this.apiKeys = new ApiKeys(this.ctx);
|
|
822
857
|
this.attributes = new Attributes(this.ctx);
|
|
823
858
|
this.taxonomies = new Taxonomies(this.ctx);
|
|
@@ -829,6 +864,7 @@ var Examplary = class {
|
|
|
829
864
|
this.folders = new Folders(this.ctx);
|
|
830
865
|
this.groups = new Groups(this.ctx);
|
|
831
866
|
this.questionBank = new QuestionBank(this.ctx);
|
|
867
|
+
this.prompts = new Prompts(this.ctx);
|
|
832
868
|
this.jobs = new Jobs(this.ctx);
|
|
833
869
|
}
|
|
834
870
|
getRubrics(arg, options) {
|