@examplary/sdk 2.4.0 → 2.6.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.mjs CHANGED
@@ -472,6 +472,10 @@ var Org = class {
472
472
  const args = arg;
473
473
  return request(this.ctx, "DELETE", "/org", [], [], false, args, options);
474
474
  }
475
+ limits(arg, options) {
476
+ const args = arg;
477
+ return request(this.ctx, "GET", "/org/limits", [], [], false, args, options);
478
+ }
475
479
  };
476
480
  var Orgs = class {
477
481
  constructor(ctx) {
@@ -486,6 +490,19 @@ var Orgs = class {
486
490
  return request(this.ctx, "POST", "/orgs", [], [], true, args, options);
487
491
  }
488
492
  };
493
+ var AuditLogs = class {
494
+ constructor(ctx) {
495
+ this.ctx = ctx;
496
+ }
497
+ list(arg, options) {
498
+ const args = arg;
499
+ return request(this.ctx, "GET", "/audit-logs", [], ["actor", "object", "from", "to", "exclusiveStartKey"], false, args, options);
500
+ }
501
+ export(arg, options) {
502
+ const args = arg;
503
+ return request(this.ctx, "GET", "/audit-logs/export", [], ["from", "to", "actor", "object"], false, args, options);
504
+ }
505
+ };
489
506
  var ApiKeys = class {
490
507
  constructor(ctx) {
491
508
  this.ctx = ctx;
@@ -793,6 +810,27 @@ var QuestionBank = class {
793
810
  return request(this.ctx, "DELETE", "/question-bank/{id}", ["id"], [], false, args, options);
794
811
  }
795
812
  };
813
+ var Prompts = class {
814
+ constructor(ctx) {
815
+ this.ctx = ctx;
816
+ }
817
+ list(arg, options) {
818
+ const args = arg;
819
+ return request(this.ctx, "GET", "/prompts", [], ["type", "language"], false, args, options);
820
+ }
821
+ create(arg, options) {
822
+ const args = arg;
823
+ return request(this.ctx, "POST", "/prompts", [], [], true, args, options);
824
+ }
825
+ update(arg, options) {
826
+ const args = arg;
827
+ return request(this.ctx, "PATCH", "/prompts/{id}", ["id"], [], true, args, options);
828
+ }
829
+ delete(arg, options) {
830
+ const args = typeof arg === "string" ? { id: arg } : arg;
831
+ return request(this.ctx, "DELETE", "/prompts/{id}", ["id"], [], false, args, options);
832
+ }
833
+ };
796
834
  var Jobs = class {
797
835
  constructor(ctx) {
798
836
  this.ctx = ctx;
@@ -818,6 +856,7 @@ var Examplary = class {
818
856
  this.media = new Media(this.ctx);
819
857
  this.org = new Org(this.ctx);
820
858
  this.orgs = new Orgs(this.ctx);
859
+ this.auditLogs = new AuditLogs(this.ctx);
821
860
  this.apiKeys = new ApiKeys(this.ctx);
822
861
  this.attributes = new Attributes(this.ctx);
823
862
  this.taxonomies = new Taxonomies(this.ctx);
@@ -829,6 +868,7 @@ var Examplary = class {
829
868
  this.folders = new Folders(this.ctx);
830
869
  this.groups = new Groups(this.ctx);
831
870
  this.questionBank = new QuestionBank(this.ctx);
871
+ this.prompts = new Prompts(this.ctx);
832
872
  this.jobs = new Jobs(this.ctx);
833
873
  }
834
874
  getRubrics(arg, options) {