fusio-sdk 7.0.11 → 7.0.12

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.js CHANGED
@@ -8552,12 +8552,43 @@ var ConsumerTag = class extends TagAbstract66 {
8552
8552
  };
8553
8553
 
8554
8554
  // src/SystemTag.ts
8555
- import { TagAbstract as TagAbstract70 } from "sdkgen-client";
8555
+ import { TagAbstract as TagAbstract71 } from "sdkgen-client";
8556
8556
 
8557
- // src/SystemConnectionTag.ts
8557
+ // src/SystemCaptchaTag.ts
8558
8558
  import { TagAbstract as TagAbstract67 } from "sdkgen-client";
8559
8559
  import { UnknownStatusCodeException as UnknownStatusCodeException64 } from "sdkgen-client";
8560
- var SystemConnectionTag = class extends TagAbstract67 {
8560
+ var SystemCaptchaTag = class extends TagAbstract67 {
8561
+ /**
8562
+ * Endpoint to generate a captcha challenge
8563
+ *
8564
+ * @returns {Promise<SystemCaptchaChallenge>}
8565
+ * @throws {CommonMessageException}
8566
+ * @throws {ClientException}
8567
+ */
8568
+ async challenge() {
8569
+ const url = this.parser.url("/system/captcha/challenge", {});
8570
+ let request = {
8571
+ url,
8572
+ method: "GET",
8573
+ headers: {},
8574
+ params: this.parser.query({}, [])
8575
+ };
8576
+ const response = await this.httpClient.request(request);
8577
+ if (response.ok) {
8578
+ return await response.json();
8579
+ }
8580
+ const statusCode = response.status;
8581
+ if (statusCode >= 0 && statusCode <= 999) {
8582
+ throw new CommonMessageException(await response.json());
8583
+ }
8584
+ throw new UnknownStatusCodeException64("The server returned an unknown status code: " + statusCode);
8585
+ }
8586
+ };
8587
+
8588
+ // src/SystemConnectionTag.ts
8589
+ import { TagAbstract as TagAbstract68 } from "sdkgen-client";
8590
+ import { UnknownStatusCodeException as UnknownStatusCodeException65 } from "sdkgen-client";
8591
+ var SystemConnectionTag = class extends TagAbstract68 {
8561
8592
  /**
8562
8593
  * Connection OAuth2 callback to authorize a connection
8563
8594
  *
@@ -8583,14 +8614,14 @@ var SystemConnectionTag = class extends TagAbstract67 {
8583
8614
  if (statusCode >= 0 && statusCode <= 999) {
8584
8615
  throw new CommonMessageException(await response.json());
8585
8616
  }
8586
- throw new UnknownStatusCodeException64("The server returned an unknown status code: " + statusCode);
8617
+ throw new UnknownStatusCodeException65("The server returned an unknown status code: " + statusCode);
8587
8618
  }
8588
8619
  };
8589
8620
 
8590
8621
  // src/SystemMetaTag.ts
8591
- import { TagAbstract as TagAbstract68 } from "sdkgen-client";
8592
- import { UnknownStatusCodeException as UnknownStatusCodeException65 } from "sdkgen-client";
8593
- var SystemMetaTag = class extends TagAbstract68 {
8622
+ import { TagAbstract as TagAbstract69 } from "sdkgen-client";
8623
+ import { UnknownStatusCodeException as UnknownStatusCodeException66 } from "sdkgen-client";
8624
+ var SystemMetaTag = class extends TagAbstract69 {
8594
8625
  /**
8595
8626
  * Returns meta information and links about the current installed Fusio version
8596
8627
  *
@@ -8614,7 +8645,7 @@ var SystemMetaTag = class extends TagAbstract68 {
8614
8645
  if (statusCode >= 0 && statusCode <= 999) {
8615
8646
  throw new CommonMessageException(await response.json());
8616
8647
  }
8617
- throw new UnknownStatusCodeException65("The server returned an unknown status code: " + statusCode);
8648
+ throw new UnknownStatusCodeException66("The server returned an unknown status code: " + statusCode);
8618
8649
  }
8619
8650
  /**
8620
8651
  * Debug endpoint which returns the provided data
@@ -8642,7 +8673,7 @@ var SystemMetaTag = class extends TagAbstract68 {
8642
8673
  if (statusCode >= 0 && statusCode <= 999) {
8643
8674
  throw new CommonMessageException(await response.json());
8644
8675
  }
8645
- throw new UnknownStatusCodeException65("The server returned an unknown status code: " + statusCode);
8676
+ throw new UnknownStatusCodeException66("The server returned an unknown status code: " + statusCode);
8646
8677
  }
8647
8678
  /**
8648
8679
  * Health check endpoint which returns information about the health status of the system
@@ -8667,7 +8698,7 @@ var SystemMetaTag = class extends TagAbstract68 {
8667
8698
  if (statusCode >= 0 && statusCode <= 999) {
8668
8699
  throw new CommonMessageException(await response.json());
8669
8700
  }
8670
- throw new UnknownStatusCodeException65("The server returned an unknown status code: " + statusCode);
8701
+ throw new UnknownStatusCodeException66("The server returned an unknown status code: " + statusCode);
8671
8702
  }
8672
8703
  /**
8673
8704
  * Returns all available routes
@@ -8692,7 +8723,7 @@ var SystemMetaTag = class extends TagAbstract68 {
8692
8723
  if (statusCode >= 0 && statusCode <= 999) {
8693
8724
  throw new CommonMessageException(await response.json());
8694
8725
  }
8695
- throw new UnknownStatusCodeException65("The server returned an unknown status code: " + statusCode);
8726
+ throw new UnknownStatusCodeException66("The server returned an unknown status code: " + statusCode);
8696
8727
  }
8697
8728
  /**
8698
8729
  * Returns details of a specific schema
@@ -8719,14 +8750,14 @@ var SystemMetaTag = class extends TagAbstract68 {
8719
8750
  if (statusCode >= 0 && statusCode <= 999) {
8720
8751
  throw new CommonMessageException(await response.json());
8721
8752
  }
8722
- throw new UnknownStatusCodeException65("The server returned an unknown status code: " + statusCode);
8753
+ throw new UnknownStatusCodeException66("The server returned an unknown status code: " + statusCode);
8723
8754
  }
8724
8755
  };
8725
8756
 
8726
8757
  // src/SystemPaymentTag.ts
8727
- import { TagAbstract as TagAbstract69 } from "sdkgen-client";
8728
- import { UnknownStatusCodeException as UnknownStatusCodeException66 } from "sdkgen-client";
8729
- var SystemPaymentTag = class extends TagAbstract69 {
8758
+ import { TagAbstract as TagAbstract70 } from "sdkgen-client";
8759
+ import { UnknownStatusCodeException as UnknownStatusCodeException67 } from "sdkgen-client";
8760
+ var SystemPaymentTag = class extends TagAbstract70 {
8730
8761
  /**
8731
8762
  * Payment webhook endpoint after successful purchase of a plan
8732
8763
  *
@@ -8752,12 +8783,18 @@ var SystemPaymentTag = class extends TagAbstract69 {
8752
8783
  if (statusCode >= 0 && statusCode <= 999) {
8753
8784
  throw new CommonMessageException(await response.json());
8754
8785
  }
8755
- throw new UnknownStatusCodeException66("The server returned an unknown status code: " + statusCode);
8786
+ throw new UnknownStatusCodeException67("The server returned an unknown status code: " + statusCode);
8756
8787
  }
8757
8788
  };
8758
8789
 
8759
8790
  // src/SystemTag.ts
8760
- var SystemTag = class extends TagAbstract70 {
8791
+ var SystemTag = class extends TagAbstract71 {
8792
+ captcha() {
8793
+ return new SystemCaptchaTag(
8794
+ this.httpClient,
8795
+ this.parser
8796
+ );
8797
+ }
8761
8798
  connection() {
8762
8799
  return new SystemConnectionTag(
8763
8800
  this.httpClient,
@@ -8877,6 +8914,7 @@ export {
8877
8914
  ConsumerTokenTag,
8878
8915
  ConsumerTransactionTag,
8879
8916
  ConsumerWebhookTag,
8917
+ SystemCaptchaTag,
8880
8918
  SystemConnectionTag,
8881
8919
  SystemMetaTag,
8882
8920
  SystemPaymentTag,