fusio-sdk 7.0.7 → 7.0.9

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.cjs CHANGED
@@ -57,6 +57,7 @@ __export(index_exports, {
57
57
  BackendSchemaTag: () => BackendSchemaTag,
58
58
  BackendScopeTag: () => BackendScopeTag,
59
59
  BackendSdkTag: () => BackendSdkTag,
60
+ BackendSpecificationTag: () => BackendSpecificationTag,
60
61
  BackendStatisticTag: () => BackendStatisticTag,
61
62
  BackendTag: () => BackendTag,
62
63
  BackendTaxonomyTag: () => BackendTaxonomyTag,
@@ -71,6 +72,8 @@ __export(index_exports, {
71
72
  Client: () => Client,
72
73
  CommonMessageException: () => CommonMessageException,
73
74
  ConsumerAccountTag: () => ConsumerAccountTag,
75
+ ConsumerAgentMessageTag: () => ConsumerAgentMessageTag,
76
+ ConsumerAgentTag: () => ConsumerAgentTag,
74
77
  ConsumerAppTag: () => ConsumerAppTag,
75
78
  ConsumerEventTag: () => ConsumerEventTag,
76
79
  ConsumerFormTag: () => ConsumerFormTag,
@@ -4909,10 +4912,69 @@ var BackendSdkTag = class extends import_sdkgen_client73.TagAbstract {
4909
4912
  }
4910
4913
  };
4911
4914
 
4912
- // src/BackendStatisticTag.ts
4915
+ // src/BackendSpecificationTag.ts
4913
4916
  var import_sdkgen_client75 = require("sdkgen-client");
4914
4917
  var import_sdkgen_client76 = require("sdkgen-client");
4915
- var BackendStatisticTag = class extends import_sdkgen_client75.TagAbstract {
4918
+ var BackendSpecificationTag = class extends import_sdkgen_client75.TagAbstract {
4919
+ /**
4920
+ * Returns the TypeHub specification
4921
+ *
4922
+ * @returns {Promise<BackendSpecificationGet>}
4923
+ * @throws {CommonMessageException}
4924
+ * @throws {ClientException}
4925
+ */
4926
+ async get() {
4927
+ const url = this.parser.url("/backend/specification", {});
4928
+ let request = {
4929
+ url,
4930
+ method: "GET",
4931
+ headers: {},
4932
+ params: this.parser.query({}, [])
4933
+ };
4934
+ const response = await this.httpClient.request(request);
4935
+ if (response.ok) {
4936
+ return await response.json();
4937
+ }
4938
+ const statusCode = response.status;
4939
+ if (statusCode >= 0 && statusCode <= 999) {
4940
+ throw new CommonMessageException(await response.json());
4941
+ }
4942
+ throw new import_sdkgen_client76.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
4943
+ }
4944
+ /**
4945
+ * Publish the specification
4946
+ *
4947
+ * @returns {Promise<CommonMessage>}
4948
+ * @throws {CommonMessageException}
4949
+ * @throws {ClientException}
4950
+ */
4951
+ async publish(payload) {
4952
+ const url = this.parser.url("/backend/specification", {});
4953
+ let request = {
4954
+ url,
4955
+ method: "POST",
4956
+ headers: {
4957
+ "Content-Type": "application/json"
4958
+ },
4959
+ params: this.parser.query({}, []),
4960
+ data: payload
4961
+ };
4962
+ const response = await this.httpClient.request(request);
4963
+ if (response.ok) {
4964
+ return await response.json();
4965
+ }
4966
+ const statusCode = response.status;
4967
+ if (statusCode >= 0 && statusCode <= 999) {
4968
+ throw new CommonMessageException(await response.json());
4969
+ }
4970
+ throw new import_sdkgen_client76.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
4971
+ }
4972
+ };
4973
+
4974
+ // src/BackendStatisticTag.ts
4975
+ var import_sdkgen_client77 = require("sdkgen-client");
4976
+ var import_sdkgen_client78 = require("sdkgen-client");
4977
+ var BackendStatisticTag = class extends import_sdkgen_client77.TagAbstract {
4916
4978
  /**
4917
4979
  * Returns a statistic containing the activities per user
4918
4980
  *
@@ -4951,7 +5013,7 @@ var BackendStatisticTag = class extends import_sdkgen_client75.TagAbstract {
4951
5013
  if (statusCode >= 0 && statusCode <= 999) {
4952
5014
  throw new CommonMessageException(await response.json());
4953
5015
  }
4954
- throw new import_sdkgen_client76.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5016
+ throw new import_sdkgen_client78.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
4955
5017
  }
4956
5018
  /**
4957
5019
  * Returns a statistic containing the request count
@@ -4991,7 +5053,7 @@ var BackendStatisticTag = class extends import_sdkgen_client75.TagAbstract {
4991
5053
  if (statusCode >= 0 && statusCode <= 999) {
4992
5054
  throw new CommonMessageException(await response.json());
4993
5055
  }
4994
- throw new import_sdkgen_client76.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5056
+ throw new import_sdkgen_client78.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
4995
5057
  }
4996
5058
  /**
4997
5059
  * Returns a statistic containing the errors per operation
@@ -5031,7 +5093,7 @@ var BackendStatisticTag = class extends import_sdkgen_client75.TagAbstract {
5031
5093
  if (statusCode >= 0 && statusCode <= 999) {
5032
5094
  throw new CommonMessageException(await response.json());
5033
5095
  }
5034
- throw new import_sdkgen_client76.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5096
+ throw new import_sdkgen_client78.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5035
5097
  }
5036
5098
  /**
5037
5099
  * Returns a statistic containing the incoming requests
@@ -5071,7 +5133,7 @@ var BackendStatisticTag = class extends import_sdkgen_client75.TagAbstract {
5071
5133
  if (statusCode >= 0 && statusCode <= 999) {
5072
5134
  throw new CommonMessageException(await response.json());
5073
5135
  }
5074
- throw new import_sdkgen_client76.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5136
+ throw new import_sdkgen_client78.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5075
5137
  }
5076
5138
  /**
5077
5139
  * Returns a statistic containing the incoming transactions
@@ -5111,7 +5173,7 @@ var BackendStatisticTag = class extends import_sdkgen_client75.TagAbstract {
5111
5173
  if (statusCode >= 0 && statusCode <= 999) {
5112
5174
  throw new CommonMessageException(await response.json());
5113
5175
  }
5114
- throw new import_sdkgen_client76.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5176
+ throw new import_sdkgen_client78.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5115
5177
  }
5116
5178
  /**
5117
5179
  * Returns a statistic containing the issues tokens
@@ -5151,7 +5213,7 @@ var BackendStatisticTag = class extends import_sdkgen_client75.TagAbstract {
5151
5213
  if (statusCode >= 0 && statusCode <= 999) {
5152
5214
  throw new CommonMessageException(await response.json());
5153
5215
  }
5154
- throw new import_sdkgen_client76.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5216
+ throw new import_sdkgen_client78.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5155
5217
  }
5156
5218
  /**
5157
5219
  * Returns a statistic containing the most used activities
@@ -5191,7 +5253,7 @@ var BackendStatisticTag = class extends import_sdkgen_client75.TagAbstract {
5191
5253
  if (statusCode >= 0 && statusCode <= 999) {
5192
5254
  throw new CommonMessageException(await response.json());
5193
5255
  }
5194
- throw new import_sdkgen_client76.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5256
+ throw new import_sdkgen_client78.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5195
5257
  }
5196
5258
  /**
5197
5259
  * Returns a statistic containing the most used apps
@@ -5231,7 +5293,7 @@ var BackendStatisticTag = class extends import_sdkgen_client75.TagAbstract {
5231
5293
  if (statusCode >= 0 && statusCode <= 999) {
5232
5294
  throw new CommonMessageException(await response.json());
5233
5295
  }
5234
- throw new import_sdkgen_client76.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5296
+ throw new import_sdkgen_client78.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5235
5297
  }
5236
5298
  /**
5237
5299
  * Returns a statistic containing the most used operations
@@ -5271,7 +5333,7 @@ var BackendStatisticTag = class extends import_sdkgen_client75.TagAbstract {
5271
5333
  if (statusCode >= 0 && statusCode <= 999) {
5272
5334
  throw new CommonMessageException(await response.json());
5273
5335
  }
5274
- throw new import_sdkgen_client76.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5336
+ throw new import_sdkgen_client78.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5275
5337
  }
5276
5338
  /**
5277
5339
  * Returns a statistic containing the requests per ip
@@ -5311,7 +5373,7 @@ var BackendStatisticTag = class extends import_sdkgen_client75.TagAbstract {
5311
5373
  if (statusCode >= 0 && statusCode <= 999) {
5312
5374
  throw new CommonMessageException(await response.json());
5313
5375
  }
5314
- throw new import_sdkgen_client76.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5376
+ throw new import_sdkgen_client78.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5315
5377
  }
5316
5378
  /**
5317
5379
  * Returns a statistic containing the requests per operation
@@ -5351,7 +5413,7 @@ var BackendStatisticTag = class extends import_sdkgen_client75.TagAbstract {
5351
5413
  if (statusCode >= 0 && statusCode <= 999) {
5352
5414
  throw new CommonMessageException(await response.json());
5353
5415
  }
5354
- throw new import_sdkgen_client76.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5416
+ throw new import_sdkgen_client78.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5355
5417
  }
5356
5418
  /**
5357
5419
  * Returns a statistic containing the requests per user
@@ -5391,7 +5453,7 @@ var BackendStatisticTag = class extends import_sdkgen_client75.TagAbstract {
5391
5453
  if (statusCode >= 0 && statusCode <= 999) {
5392
5454
  throw new CommonMessageException(await response.json());
5393
5455
  }
5394
- throw new import_sdkgen_client76.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5456
+ throw new import_sdkgen_client78.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5395
5457
  }
5396
5458
  /**
5397
5459
  * Returns a statistic containing the test coverage
@@ -5416,7 +5478,7 @@ var BackendStatisticTag = class extends import_sdkgen_client75.TagAbstract {
5416
5478
  if (statusCode >= 0 && statusCode <= 999) {
5417
5479
  throw new CommonMessageException(await response.json());
5418
5480
  }
5419
- throw new import_sdkgen_client76.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5481
+ throw new import_sdkgen_client78.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5420
5482
  }
5421
5483
  /**
5422
5484
  * Returns a statistic containing the time average
@@ -5456,7 +5518,7 @@ var BackendStatisticTag = class extends import_sdkgen_client75.TagAbstract {
5456
5518
  if (statusCode >= 0 && statusCode <= 999) {
5457
5519
  throw new CommonMessageException(await response.json());
5458
5520
  }
5459
- throw new import_sdkgen_client76.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5521
+ throw new import_sdkgen_client78.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5460
5522
  }
5461
5523
  /**
5462
5524
  * Returns a statistic containing the time per operation
@@ -5496,7 +5558,7 @@ var BackendStatisticTag = class extends import_sdkgen_client75.TagAbstract {
5496
5558
  if (statusCode >= 0 && statusCode <= 999) {
5497
5559
  throw new CommonMessageException(await response.json());
5498
5560
  }
5499
- throw new import_sdkgen_client76.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5561
+ throw new import_sdkgen_client78.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5500
5562
  }
5501
5563
  /**
5502
5564
  * Returns a statistic containing the used points
@@ -5536,7 +5598,7 @@ var BackendStatisticTag = class extends import_sdkgen_client75.TagAbstract {
5536
5598
  if (statusCode >= 0 && statusCode <= 999) {
5537
5599
  throw new CommonMessageException(await response.json());
5538
5600
  }
5539
- throw new import_sdkgen_client76.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5601
+ throw new import_sdkgen_client78.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5540
5602
  }
5541
5603
  /**
5542
5604
  * Returns a statistic containing the user registrations
@@ -5576,17 +5638,17 @@ var BackendStatisticTag = class extends import_sdkgen_client75.TagAbstract {
5576
5638
  if (statusCode >= 0 && statusCode <= 999) {
5577
5639
  throw new CommonMessageException(await response.json());
5578
5640
  }
5579
- throw new import_sdkgen_client76.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5641
+ throw new import_sdkgen_client78.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5580
5642
  }
5581
5643
  };
5582
5644
 
5583
5645
  // src/BackendTag.ts
5584
- var import_sdkgen_client95 = require("sdkgen-client");
5646
+ var import_sdkgen_client97 = require("sdkgen-client");
5585
5647
 
5586
5648
  // src/BackendTaxonomyTag.ts
5587
- var import_sdkgen_client77 = require("sdkgen-client");
5588
- var import_sdkgen_client78 = require("sdkgen-client");
5589
- var BackendTaxonomyTag = class extends import_sdkgen_client77.TagAbstract {
5649
+ var import_sdkgen_client79 = require("sdkgen-client");
5650
+ var import_sdkgen_client80 = require("sdkgen-client");
5651
+ var BackendTaxonomyTag = class extends import_sdkgen_client79.TagAbstract {
5590
5652
  /**
5591
5653
  * Creates a new taxonomy
5592
5654
  *
@@ -5613,7 +5675,7 @@ var BackendTaxonomyTag = class extends import_sdkgen_client77.TagAbstract {
5613
5675
  if (statusCode >= 0 && statusCode <= 999) {
5614
5676
  throw new CommonMessageException(await response.json());
5615
5677
  }
5616
- throw new import_sdkgen_client78.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5678
+ throw new import_sdkgen_client80.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5617
5679
  }
5618
5680
  /**
5619
5681
  * Deletes an existing taxonomy
@@ -5640,7 +5702,7 @@ var BackendTaxonomyTag = class extends import_sdkgen_client77.TagAbstract {
5640
5702
  if (statusCode >= 0 && statusCode <= 999) {
5641
5703
  throw new CommonMessageException(await response.json());
5642
5704
  }
5643
- throw new import_sdkgen_client78.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5705
+ throw new import_sdkgen_client80.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5644
5706
  }
5645
5707
  /**
5646
5708
  * Returns a specific taxonomy
@@ -5667,7 +5729,7 @@ var BackendTaxonomyTag = class extends import_sdkgen_client77.TagAbstract {
5667
5729
  if (statusCode >= 0 && statusCode <= 999) {
5668
5730
  throw new CommonMessageException(await response.json());
5669
5731
  }
5670
- throw new import_sdkgen_client78.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5732
+ throw new import_sdkgen_client80.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5671
5733
  }
5672
5734
  /**
5673
5735
  * Returns a paginated list of taxonomies
@@ -5696,7 +5758,7 @@ var BackendTaxonomyTag = class extends import_sdkgen_client77.TagAbstract {
5696
5758
  if (statusCode >= 0 && statusCode <= 999) {
5697
5759
  throw new CommonMessageException(await response.json());
5698
5760
  }
5699
- throw new import_sdkgen_client78.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5761
+ throw new import_sdkgen_client80.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5700
5762
  }
5701
5763
  /**
5702
5764
  * Moves the provided ids to the taxonomy
@@ -5726,7 +5788,7 @@ var BackendTaxonomyTag = class extends import_sdkgen_client77.TagAbstract {
5726
5788
  if (statusCode >= 0 && statusCode <= 999) {
5727
5789
  throw new CommonMessageException(await response.json());
5728
5790
  }
5729
- throw new import_sdkgen_client78.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5791
+ throw new import_sdkgen_client80.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5730
5792
  }
5731
5793
  /**
5732
5794
  * Updates an existing taxonomy
@@ -5756,14 +5818,14 @@ var BackendTaxonomyTag = class extends import_sdkgen_client77.TagAbstract {
5756
5818
  if (statusCode >= 0 && statusCode <= 999) {
5757
5819
  throw new CommonMessageException(await response.json());
5758
5820
  }
5759
- throw new import_sdkgen_client78.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5821
+ throw new import_sdkgen_client80.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5760
5822
  }
5761
5823
  };
5762
5824
 
5763
5825
  // src/BackendTenantTag.ts
5764
- var import_sdkgen_client79 = require("sdkgen-client");
5765
- var import_sdkgen_client80 = require("sdkgen-client");
5766
- var BackendTenantTag = class extends import_sdkgen_client79.TagAbstract {
5826
+ var import_sdkgen_client81 = require("sdkgen-client");
5827
+ var import_sdkgen_client82 = require("sdkgen-client");
5828
+ var BackendTenantTag = class extends import_sdkgen_client81.TagAbstract {
5767
5829
  /**
5768
5830
  * Removes an existing tenant
5769
5831
  *
@@ -5789,7 +5851,7 @@ var BackendTenantTag = class extends import_sdkgen_client79.TagAbstract {
5789
5851
  if (statusCode >= 0 && statusCode <= 999) {
5790
5852
  throw new CommonMessageException(await response.json());
5791
5853
  }
5792
- throw new import_sdkgen_client80.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5854
+ throw new import_sdkgen_client82.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5793
5855
  }
5794
5856
  /**
5795
5857
  * Setup a new tenant
@@ -5816,14 +5878,14 @@ var BackendTenantTag = class extends import_sdkgen_client79.TagAbstract {
5816
5878
  if (statusCode >= 0 && statusCode <= 999) {
5817
5879
  throw new CommonMessageException(await response.json());
5818
5880
  }
5819
- throw new import_sdkgen_client80.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5881
+ throw new import_sdkgen_client82.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5820
5882
  }
5821
5883
  };
5822
5884
 
5823
5885
  // src/BackendTestTag.ts
5824
- var import_sdkgen_client81 = require("sdkgen-client");
5825
- var import_sdkgen_client82 = require("sdkgen-client");
5826
- var BackendTestTag = class extends import_sdkgen_client81.TagAbstract {
5886
+ var import_sdkgen_client83 = require("sdkgen-client");
5887
+ var import_sdkgen_client84 = require("sdkgen-client");
5888
+ var BackendTestTag = class extends import_sdkgen_client83.TagAbstract {
5827
5889
  /**
5828
5890
  * Returns a specific test
5829
5891
  *
@@ -5849,7 +5911,7 @@ var BackendTestTag = class extends import_sdkgen_client81.TagAbstract {
5849
5911
  if (statusCode >= 0 && statusCode <= 999) {
5850
5912
  throw new CommonMessageException(await response.json());
5851
5913
  }
5852
- throw new import_sdkgen_client82.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5914
+ throw new import_sdkgen_client84.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5853
5915
  }
5854
5916
  /**
5855
5917
  * Returns a paginated list of tests
@@ -5878,7 +5940,7 @@ var BackendTestTag = class extends import_sdkgen_client81.TagAbstract {
5878
5940
  if (statusCode >= 0 && statusCode <= 999) {
5879
5941
  throw new CommonMessageException(await response.json());
5880
5942
  }
5881
- throw new import_sdkgen_client82.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5943
+ throw new import_sdkgen_client84.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5882
5944
  }
5883
5945
  /**
5884
5946
  * Refresh all tests
@@ -5903,7 +5965,7 @@ var BackendTestTag = class extends import_sdkgen_client81.TagAbstract {
5903
5965
  if (statusCode >= 0 && statusCode <= 999) {
5904
5966
  throw new CommonMessageException(await response.json());
5905
5967
  }
5906
- throw new import_sdkgen_client82.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5968
+ throw new import_sdkgen_client84.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5907
5969
  }
5908
5970
  /**
5909
5971
  * Run all tests
@@ -5928,7 +5990,7 @@ var BackendTestTag = class extends import_sdkgen_client81.TagAbstract {
5928
5990
  if (statusCode >= 0 && statusCode <= 999) {
5929
5991
  throw new CommonMessageException(await response.json());
5930
5992
  }
5931
- throw new import_sdkgen_client82.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5993
+ throw new import_sdkgen_client84.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5932
5994
  }
5933
5995
  /**
5934
5996
  * Updates an existing test
@@ -5958,14 +6020,14 @@ var BackendTestTag = class extends import_sdkgen_client81.TagAbstract {
5958
6020
  if (statusCode >= 0 && statusCode <= 999) {
5959
6021
  throw new CommonMessageException(await response.json());
5960
6022
  }
5961
- throw new import_sdkgen_client82.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
6023
+ throw new import_sdkgen_client84.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5962
6024
  }
5963
6025
  };
5964
6026
 
5965
6027
  // src/BackendTokenTag.ts
5966
- var import_sdkgen_client83 = require("sdkgen-client");
5967
- var import_sdkgen_client84 = require("sdkgen-client");
5968
- var BackendTokenTag = class extends import_sdkgen_client83.TagAbstract {
6028
+ var import_sdkgen_client85 = require("sdkgen-client");
6029
+ var import_sdkgen_client86 = require("sdkgen-client");
6030
+ var BackendTokenTag = class extends import_sdkgen_client85.TagAbstract {
5969
6031
  /**
5970
6032
  * Returns a specific token
5971
6033
  *
@@ -5991,7 +6053,7 @@ var BackendTokenTag = class extends import_sdkgen_client83.TagAbstract {
5991
6053
  if (statusCode >= 0 && statusCode <= 999) {
5992
6054
  throw new CommonMessageException(await response.json());
5993
6055
  }
5994
- throw new import_sdkgen_client84.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
6056
+ throw new import_sdkgen_client86.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5995
6057
  }
5996
6058
  /**
5997
6059
  * Returns a paginated list of tokens
@@ -6027,14 +6089,14 @@ var BackendTokenTag = class extends import_sdkgen_client83.TagAbstract {
6027
6089
  if (statusCode >= 0 && statusCode <= 999) {
6028
6090
  throw new CommonMessageException(await response.json());
6029
6091
  }
6030
- throw new import_sdkgen_client84.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
6092
+ throw new import_sdkgen_client86.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
6031
6093
  }
6032
6094
  };
6033
6095
 
6034
6096
  // src/BackendTransactionTag.ts
6035
- var import_sdkgen_client85 = require("sdkgen-client");
6036
- var import_sdkgen_client86 = require("sdkgen-client");
6037
- var BackendTransactionTag = class extends import_sdkgen_client85.TagAbstract {
6097
+ var import_sdkgen_client87 = require("sdkgen-client");
6098
+ var import_sdkgen_client88 = require("sdkgen-client");
6099
+ var BackendTransactionTag = class extends import_sdkgen_client87.TagAbstract {
6038
6100
  /**
6039
6101
  * Returns a specific transaction
6040
6102
  *
@@ -6060,7 +6122,7 @@ var BackendTransactionTag = class extends import_sdkgen_client85.TagAbstract {
6060
6122
  if (statusCode >= 0 && statusCode <= 999) {
6061
6123
  throw new CommonMessageException(await response.json());
6062
6124
  }
6063
- throw new import_sdkgen_client86.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
6125
+ throw new import_sdkgen_client88.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
6064
6126
  }
6065
6127
  /**
6066
6128
  * Returns a paginated list of transactions
@@ -6097,14 +6159,14 @@ var BackendTransactionTag = class extends import_sdkgen_client85.TagAbstract {
6097
6159
  if (statusCode >= 0 && statusCode <= 999) {
6098
6160
  throw new CommonMessageException(await response.json());
6099
6161
  }
6100
- throw new import_sdkgen_client86.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
6162
+ throw new import_sdkgen_client88.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
6101
6163
  }
6102
6164
  };
6103
6165
 
6104
6166
  // src/BackendTrashTag.ts
6105
- var import_sdkgen_client87 = require("sdkgen-client");
6106
- var import_sdkgen_client88 = require("sdkgen-client");
6107
- var BackendTrashTag = class extends import_sdkgen_client87.TagAbstract {
6167
+ var import_sdkgen_client89 = require("sdkgen-client");
6168
+ var import_sdkgen_client90 = require("sdkgen-client");
6169
+ var BackendTrashTag = class extends import_sdkgen_client89.TagAbstract {
6108
6170
  /**
6109
6171
  * Returns all deleted records by trash type
6110
6172
  *
@@ -6134,7 +6196,7 @@ var BackendTrashTag = class extends import_sdkgen_client87.TagAbstract {
6134
6196
  if (statusCode >= 0 && statusCode <= 999) {
6135
6197
  throw new CommonMessageException(await response.json());
6136
6198
  }
6137
- throw new import_sdkgen_client88.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
6199
+ throw new import_sdkgen_client90.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
6138
6200
  }
6139
6201
  /**
6140
6202
  * Returns all trash types
@@ -6159,7 +6221,7 @@ var BackendTrashTag = class extends import_sdkgen_client87.TagAbstract {
6159
6221
  if (statusCode >= 0 && statusCode <= 999) {
6160
6222
  throw new CommonMessageException(await response.json());
6161
6223
  }
6162
- throw new import_sdkgen_client88.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
6224
+ throw new import_sdkgen_client90.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
6163
6225
  }
6164
6226
  /**
6165
6227
  * Restores a previously deleted record
@@ -6189,14 +6251,14 @@ var BackendTrashTag = class extends import_sdkgen_client87.TagAbstract {
6189
6251
  if (statusCode >= 0 && statusCode <= 999) {
6190
6252
  throw new CommonMessageException(await response.json());
6191
6253
  }
6192
- throw new import_sdkgen_client88.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
6254
+ throw new import_sdkgen_client90.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
6193
6255
  }
6194
6256
  };
6195
6257
 
6196
6258
  // src/BackendTriggerTag.ts
6197
- var import_sdkgen_client89 = require("sdkgen-client");
6198
- var import_sdkgen_client90 = require("sdkgen-client");
6199
- var BackendTriggerTag = class extends import_sdkgen_client89.TagAbstract {
6259
+ var import_sdkgen_client91 = require("sdkgen-client");
6260
+ var import_sdkgen_client92 = require("sdkgen-client");
6261
+ var BackendTriggerTag = class extends import_sdkgen_client91.TagAbstract {
6200
6262
  /**
6201
6263
  * Creates a new trigger
6202
6264
  *
@@ -6223,7 +6285,7 @@ var BackendTriggerTag = class extends import_sdkgen_client89.TagAbstract {
6223
6285
  if (statusCode >= 0 && statusCode <= 999) {
6224
6286
  throw new CommonMessageException(await response.json());
6225
6287
  }
6226
- throw new import_sdkgen_client90.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
6288
+ throw new import_sdkgen_client92.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
6227
6289
  }
6228
6290
  /**
6229
6291
  * Deletes an existing trigger
@@ -6250,7 +6312,7 @@ var BackendTriggerTag = class extends import_sdkgen_client89.TagAbstract {
6250
6312
  if (statusCode >= 0 && statusCode <= 999) {
6251
6313
  throw new CommonMessageException(await response.json());
6252
6314
  }
6253
- throw new import_sdkgen_client90.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
6315
+ throw new import_sdkgen_client92.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
6254
6316
  }
6255
6317
  /**
6256
6318
  * Returns a specific trigger
@@ -6277,7 +6339,7 @@ var BackendTriggerTag = class extends import_sdkgen_client89.TagAbstract {
6277
6339
  if (statusCode >= 0 && statusCode <= 999) {
6278
6340
  throw new CommonMessageException(await response.json());
6279
6341
  }
6280
- throw new import_sdkgen_client90.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
6342
+ throw new import_sdkgen_client92.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
6281
6343
  }
6282
6344
  /**
6283
6345
  * Returns a paginated list of triggers
@@ -6307,7 +6369,7 @@ var BackendTriggerTag = class extends import_sdkgen_client89.TagAbstract {
6307
6369
  if (statusCode >= 0 && statusCode <= 999) {
6308
6370
  throw new CommonMessageException(await response.json());
6309
6371
  }
6310
- throw new import_sdkgen_client90.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
6372
+ throw new import_sdkgen_client92.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
6311
6373
  }
6312
6374
  /**
6313
6375
  * Updates an existing trigger
@@ -6337,14 +6399,14 @@ var BackendTriggerTag = class extends import_sdkgen_client89.TagAbstract {
6337
6399
  if (statusCode >= 0 && statusCode <= 999) {
6338
6400
  throw new CommonMessageException(await response.json());
6339
6401
  }
6340
- throw new import_sdkgen_client90.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
6402
+ throw new import_sdkgen_client92.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
6341
6403
  }
6342
6404
  };
6343
6405
 
6344
6406
  // src/BackendUserTag.ts
6345
- var import_sdkgen_client91 = require("sdkgen-client");
6346
- var import_sdkgen_client92 = require("sdkgen-client");
6347
- var BackendUserTag = class extends import_sdkgen_client91.TagAbstract {
6407
+ var import_sdkgen_client93 = require("sdkgen-client");
6408
+ var import_sdkgen_client94 = require("sdkgen-client");
6409
+ var BackendUserTag = class extends import_sdkgen_client93.TagAbstract {
6348
6410
  /**
6349
6411
  * Creates a new user
6350
6412
  *
@@ -6371,7 +6433,7 @@ var BackendUserTag = class extends import_sdkgen_client91.TagAbstract {
6371
6433
  if (statusCode >= 0 && statusCode <= 999) {
6372
6434
  throw new CommonMessageException(await response.json());
6373
6435
  }
6374
- throw new import_sdkgen_client92.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
6436
+ throw new import_sdkgen_client94.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
6375
6437
  }
6376
6438
  /**
6377
6439
  * Deletes an existing user
@@ -6398,7 +6460,7 @@ var BackendUserTag = class extends import_sdkgen_client91.TagAbstract {
6398
6460
  if (statusCode >= 0 && statusCode <= 999) {
6399
6461
  throw new CommonMessageException(await response.json());
6400
6462
  }
6401
- throw new import_sdkgen_client92.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
6463
+ throw new import_sdkgen_client94.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
6402
6464
  }
6403
6465
  /**
6404
6466
  * Returns a specific user
@@ -6425,7 +6487,7 @@ var BackendUserTag = class extends import_sdkgen_client91.TagAbstract {
6425
6487
  if (statusCode >= 0 && statusCode <= 999) {
6426
6488
  throw new CommonMessageException(await response.json());
6427
6489
  }
6428
- throw new import_sdkgen_client92.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
6490
+ throw new import_sdkgen_client94.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
6429
6491
  }
6430
6492
  /**
6431
6493
  * Returns a paginated list of users
@@ -6454,7 +6516,7 @@ var BackendUserTag = class extends import_sdkgen_client91.TagAbstract {
6454
6516
  if (statusCode >= 0 && statusCode <= 999) {
6455
6517
  throw new CommonMessageException(await response.json());
6456
6518
  }
6457
- throw new import_sdkgen_client92.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
6519
+ throw new import_sdkgen_client94.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
6458
6520
  }
6459
6521
  /**
6460
6522
  * Resend the activation mail to the provided user
@@ -6484,7 +6546,7 @@ var BackendUserTag = class extends import_sdkgen_client91.TagAbstract {
6484
6546
  if (statusCode >= 0 && statusCode <= 999) {
6485
6547
  throw new CommonMessageException(await response.json());
6486
6548
  }
6487
- throw new import_sdkgen_client92.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
6549
+ throw new import_sdkgen_client94.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
6488
6550
  }
6489
6551
  /**
6490
6552
  * Updates an existing user
@@ -6514,14 +6576,14 @@ var BackendUserTag = class extends import_sdkgen_client91.TagAbstract {
6514
6576
  if (statusCode >= 0 && statusCode <= 999) {
6515
6577
  throw new CommonMessageException(await response.json());
6516
6578
  }
6517
- throw new import_sdkgen_client92.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
6579
+ throw new import_sdkgen_client94.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
6518
6580
  }
6519
6581
  };
6520
6582
 
6521
6583
  // src/BackendWebhookTag.ts
6522
- var import_sdkgen_client93 = require("sdkgen-client");
6523
- var import_sdkgen_client94 = require("sdkgen-client");
6524
- var BackendWebhookTag = class extends import_sdkgen_client93.TagAbstract {
6584
+ var import_sdkgen_client95 = require("sdkgen-client");
6585
+ var import_sdkgen_client96 = require("sdkgen-client");
6586
+ var BackendWebhookTag = class extends import_sdkgen_client95.TagAbstract {
6525
6587
  /**
6526
6588
  * Creates a new webhook
6527
6589
  *
@@ -6548,7 +6610,7 @@ var BackendWebhookTag = class extends import_sdkgen_client93.TagAbstract {
6548
6610
  if (statusCode >= 0 && statusCode <= 999) {
6549
6611
  throw new CommonMessageException(await response.json());
6550
6612
  }
6551
- throw new import_sdkgen_client94.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
6613
+ throw new import_sdkgen_client96.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
6552
6614
  }
6553
6615
  /**
6554
6616
  * Deletes an existing webhook
@@ -6575,7 +6637,7 @@ var BackendWebhookTag = class extends import_sdkgen_client93.TagAbstract {
6575
6637
  if (statusCode >= 0 && statusCode <= 999) {
6576
6638
  throw new CommonMessageException(await response.json());
6577
6639
  }
6578
- throw new import_sdkgen_client94.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
6640
+ throw new import_sdkgen_client96.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
6579
6641
  }
6580
6642
  /**
6581
6643
  * Returns a specific webhook
@@ -6602,7 +6664,7 @@ var BackendWebhookTag = class extends import_sdkgen_client93.TagAbstract {
6602
6664
  if (statusCode >= 0 && statusCode <= 999) {
6603
6665
  throw new CommonMessageException(await response.json());
6604
6666
  }
6605
- throw new import_sdkgen_client94.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
6667
+ throw new import_sdkgen_client96.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
6606
6668
  }
6607
6669
  /**
6608
6670
  * Returns a paginated list of webhooks
@@ -6631,7 +6693,7 @@ var BackendWebhookTag = class extends import_sdkgen_client93.TagAbstract {
6631
6693
  if (statusCode >= 0 && statusCode <= 999) {
6632
6694
  throw new CommonMessageException(await response.json());
6633
6695
  }
6634
- throw new import_sdkgen_client94.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
6696
+ throw new import_sdkgen_client96.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
6635
6697
  }
6636
6698
  /**
6637
6699
  * Updates an existing webhook
@@ -6661,12 +6723,12 @@ var BackendWebhookTag = class extends import_sdkgen_client93.TagAbstract {
6661
6723
  if (statusCode >= 0 && statusCode <= 999) {
6662
6724
  throw new CommonMessageException(await response.json());
6663
6725
  }
6664
- throw new import_sdkgen_client94.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
6726
+ throw new import_sdkgen_client96.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
6665
6727
  }
6666
6728
  };
6667
6729
 
6668
6730
  // src/BackendTag.ts
6669
- var BackendTag = class extends import_sdkgen_client95.TagAbstract {
6731
+ var BackendTag = class extends import_sdkgen_client97.TagAbstract {
6670
6732
  account() {
6671
6733
  return new BackendAccountTag(
6672
6734
  this.httpClient,
@@ -6829,6 +6891,12 @@ var BackendTag = class extends import_sdkgen_client95.TagAbstract {
6829
6891
  this.parser
6830
6892
  );
6831
6893
  }
6894
+ specification() {
6895
+ return new BackendSpecificationTag(
6896
+ this.httpClient,
6897
+ this.parser
6898
+ );
6899
+ }
6832
6900
  statistic() {
6833
6901
  return new BackendStatisticTag(
6834
6902
  this.httpClient,
@@ -6892,16 +6960,16 @@ var BackendTag = class extends import_sdkgen_client95.TagAbstract {
6892
6960
  };
6893
6961
 
6894
6962
  // src/Client.ts
6895
- var import_sdkgen_client132 = require("sdkgen-client");
6896
- var import_sdkgen_client133 = require("sdkgen-client");
6963
+ var import_sdkgen_client138 = require("sdkgen-client");
6964
+ var import_sdkgen_client139 = require("sdkgen-client");
6897
6965
 
6898
6966
  // src/ConsumerTag.ts
6899
- var import_sdkgen_client124 = require("sdkgen-client");
6967
+ var import_sdkgen_client130 = require("sdkgen-client");
6900
6968
 
6901
6969
  // src/ConsumerAccountTag.ts
6902
- var import_sdkgen_client96 = require("sdkgen-client");
6903
- var import_sdkgen_client97 = require("sdkgen-client");
6904
- var ConsumerAccountTag = class extends import_sdkgen_client96.TagAbstract {
6970
+ var import_sdkgen_client98 = require("sdkgen-client");
6971
+ var import_sdkgen_client99 = require("sdkgen-client");
6972
+ var ConsumerAccountTag = class extends import_sdkgen_client98.TagAbstract {
6905
6973
  /**
6906
6974
  * Activates an previously registered account through a token which was provided to the user via email
6907
6975
  *
@@ -6928,7 +6996,7 @@ var ConsumerAccountTag = class extends import_sdkgen_client96.TagAbstract {
6928
6996
  if (statusCode >= 0 && statusCode <= 999) {
6929
6997
  throw new CommonMessageException(await response.json());
6930
6998
  }
6931
- throw new import_sdkgen_client97.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
6999
+ throw new import_sdkgen_client99.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
6932
7000
  }
6933
7001
  /**
6934
7002
  * Authorizes the access of a specific app for the authenticated user
@@ -6956,7 +7024,7 @@ var ConsumerAccountTag = class extends import_sdkgen_client96.TagAbstract {
6956
7024
  if (statusCode >= 0 && statusCode <= 999) {
6957
7025
  throw new CommonMessageException(await response.json());
6958
7026
  }
6959
- throw new import_sdkgen_client97.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7027
+ throw new import_sdkgen_client99.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
6960
7028
  }
6961
7029
  /**
6962
7030
  * Change the password for the authenticated user
@@ -6984,7 +7052,7 @@ var ConsumerAccountTag = class extends import_sdkgen_client96.TagAbstract {
6984
7052
  if (statusCode >= 0 && statusCode <= 999) {
6985
7053
  throw new CommonMessageException(await response.json());
6986
7054
  }
6987
- throw new import_sdkgen_client97.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7055
+ throw new import_sdkgen_client99.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
6988
7056
  }
6989
7057
  /**
6990
7058
  * Change the password after the password reset flow was started
@@ -7012,7 +7080,7 @@ var ConsumerAccountTag = class extends import_sdkgen_client96.TagAbstract {
7012
7080
  if (statusCode >= 0 && statusCode <= 999) {
7013
7081
  throw new CommonMessageException(await response.json());
7014
7082
  }
7015
- throw new import_sdkgen_client97.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7083
+ throw new import_sdkgen_client99.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7016
7084
  }
7017
7085
  /**
7018
7086
  * Returns a user data for the authenticated user
@@ -7037,7 +7105,7 @@ var ConsumerAccountTag = class extends import_sdkgen_client96.TagAbstract {
7037
7105
  if (statusCode >= 0 && statusCode <= 999) {
7038
7106
  throw new CommonMessageException(await response.json());
7039
7107
  }
7040
- throw new import_sdkgen_client97.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7108
+ throw new import_sdkgen_client99.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7041
7109
  }
7042
7110
  /**
7043
7111
  * Returns information about a specific app to start the OAuth2 authorization code flow
@@ -7065,7 +7133,7 @@ var ConsumerAccountTag = class extends import_sdkgen_client96.TagAbstract {
7065
7133
  if (statusCode >= 0 && statusCode <= 999) {
7066
7134
  throw new CommonMessageException(await response.json());
7067
7135
  }
7068
- throw new import_sdkgen_client97.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7136
+ throw new import_sdkgen_client99.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7069
7137
  }
7070
7138
  /**
7071
7139
  * User login by providing a username and password
@@ -7093,7 +7161,7 @@ var ConsumerAccountTag = class extends import_sdkgen_client96.TagAbstract {
7093
7161
  if (statusCode >= 0 && statusCode <= 999) {
7094
7162
  throw new CommonMessageException(await response.json());
7095
7163
  }
7096
- throw new import_sdkgen_client97.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7164
+ throw new import_sdkgen_client99.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7097
7165
  }
7098
7166
  /**
7099
7167
  * Refresh a previously obtained access token
@@ -7121,7 +7189,7 @@ var ConsumerAccountTag = class extends import_sdkgen_client96.TagAbstract {
7121
7189
  if (statusCode >= 0 && statusCode <= 999) {
7122
7190
  throw new CommonMessageException(await response.json());
7123
7191
  }
7124
- throw new import_sdkgen_client97.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7192
+ throw new import_sdkgen_client99.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7125
7193
  }
7126
7194
  /**
7127
7195
  * Register a new user account
@@ -7149,7 +7217,7 @@ var ConsumerAccountTag = class extends import_sdkgen_client96.TagAbstract {
7149
7217
  if (statusCode >= 0 && statusCode <= 999) {
7150
7218
  throw new CommonMessageException(await response.json());
7151
7219
  }
7152
- throw new import_sdkgen_client97.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7220
+ throw new import_sdkgen_client99.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7153
7221
  }
7154
7222
  /**
7155
7223
  * Start the password reset flow
@@ -7177,7 +7245,7 @@ var ConsumerAccountTag = class extends import_sdkgen_client96.TagAbstract {
7177
7245
  if (statusCode >= 0 && statusCode <= 999) {
7178
7246
  throw new CommonMessageException(await response.json());
7179
7247
  }
7180
- throw new import_sdkgen_client97.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7248
+ throw new import_sdkgen_client99.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7181
7249
  }
7182
7250
  /**
7183
7251
  * Updates user data for the authenticated user
@@ -7205,14 +7273,149 @@ var ConsumerAccountTag = class extends import_sdkgen_client96.TagAbstract {
7205
7273
  if (statusCode >= 0 && statusCode <= 999) {
7206
7274
  throw new CommonMessageException(await response.json());
7207
7275
  }
7208
- throw new import_sdkgen_client97.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7276
+ throw new import_sdkgen_client99.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7277
+ }
7278
+ };
7279
+
7280
+ // src/ConsumerAgentTag.ts
7281
+ var import_sdkgen_client102 = require("sdkgen-client");
7282
+ var import_sdkgen_client103 = require("sdkgen-client");
7283
+
7284
+ // src/ConsumerAgentMessageTag.ts
7285
+ var import_sdkgen_client100 = require("sdkgen-client");
7286
+ var import_sdkgen_client101 = require("sdkgen-client");
7287
+ var ConsumerAgentMessageTag = class extends import_sdkgen_client100.TagAbstract {
7288
+ /**
7289
+ * Returns a paginated list of agent messages
7290
+ *
7291
+ * @returns {Promise<ConsumerAgentMessageCollection>}
7292
+ * @throws {CommonMessageException}
7293
+ * @throws {ClientException}
7294
+ */
7295
+ async getAll(agentId, chatId) {
7296
+ const url = this.parser.url("/consumer/agent/$agent_id<[0-9]+|^~>/message", {
7297
+ "agent_id": agentId
7298
+ });
7299
+ let request = {
7300
+ url,
7301
+ method: "GET",
7302
+ headers: {},
7303
+ params: this.parser.query({
7304
+ "chat_id": chatId
7305
+ }, [])
7306
+ };
7307
+ const response = await this.httpClient.request(request);
7308
+ if (response.ok) {
7309
+ return await response.json();
7310
+ }
7311
+ const statusCode = response.status;
7312
+ if (statusCode >= 0 && statusCode <= 999) {
7313
+ throw new CommonMessageException(await response.json());
7314
+ }
7315
+ throw new import_sdkgen_client101.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7316
+ }
7317
+ /**
7318
+ * Submits a new agent message
7319
+ *
7320
+ * @returns {Promise<AgentOutput>}
7321
+ * @throws {CommonMessageException}
7322
+ * @throws {ClientException}
7323
+ */
7324
+ async submit(agentId, payload) {
7325
+ const url = this.parser.url("/consumer/agent/$agent_id<[0-9]+|^~>/message", {
7326
+ "agent_id": agentId
7327
+ });
7328
+ let request = {
7329
+ url,
7330
+ method: "POST",
7331
+ headers: {
7332
+ "Content-Type": "application/json"
7333
+ },
7334
+ params: this.parser.query({}, []),
7335
+ data: payload
7336
+ };
7337
+ const response = await this.httpClient.request(request);
7338
+ if (response.ok) {
7339
+ return await response.json();
7340
+ }
7341
+ const statusCode = response.status;
7342
+ if (statusCode >= 0 && statusCode <= 999) {
7343
+ throw new CommonMessageException(await response.json());
7344
+ }
7345
+ throw new import_sdkgen_client101.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7346
+ }
7347
+ };
7348
+
7349
+ // src/ConsumerAgentTag.ts
7350
+ var ConsumerAgentTag = class extends import_sdkgen_client102.TagAbstract {
7351
+ message() {
7352
+ return new ConsumerAgentMessageTag(
7353
+ this.httpClient,
7354
+ this.parser
7355
+ );
7356
+ }
7357
+ /**
7358
+ * Returns a specific agent
7359
+ *
7360
+ * @returns {Promise<ConsumerAgent>}
7361
+ * @throws {CommonMessageException}
7362
+ * @throws {ClientException}
7363
+ */
7364
+ async get(agentId) {
7365
+ const url = this.parser.url("/consumer/agent/$agent_id<[0-9]+|^~>", {
7366
+ "agent_id": agentId
7367
+ });
7368
+ let request = {
7369
+ url,
7370
+ method: "GET",
7371
+ headers: {},
7372
+ params: this.parser.query({}, [])
7373
+ };
7374
+ const response = await this.httpClient.request(request);
7375
+ if (response.ok) {
7376
+ return await response.json();
7377
+ }
7378
+ const statusCode = response.status;
7379
+ if (statusCode >= 0 && statusCode <= 999) {
7380
+ throw new CommonMessageException(await response.json());
7381
+ }
7382
+ throw new import_sdkgen_client103.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7383
+ }
7384
+ /**
7385
+ * Returns a paginated list of agents
7386
+ *
7387
+ * @returns {Promise<ConsumerAgentCollection>}
7388
+ * @throws {CommonMessageException}
7389
+ * @throws {ClientException}
7390
+ */
7391
+ async getAll(startIndex, count, search) {
7392
+ const url = this.parser.url("/consumer/agent", {});
7393
+ let request = {
7394
+ url,
7395
+ method: "GET",
7396
+ headers: {},
7397
+ params: this.parser.query({
7398
+ "startIndex": startIndex,
7399
+ "count": count,
7400
+ "search": search
7401
+ }, [])
7402
+ };
7403
+ const response = await this.httpClient.request(request);
7404
+ if (response.ok) {
7405
+ return await response.json();
7406
+ }
7407
+ const statusCode = response.status;
7408
+ if (statusCode >= 0 && statusCode <= 999) {
7409
+ throw new CommonMessageException(await response.json());
7410
+ }
7411
+ throw new import_sdkgen_client103.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7209
7412
  }
7210
7413
  };
7211
7414
 
7212
7415
  // src/ConsumerAppTag.ts
7213
- var import_sdkgen_client98 = require("sdkgen-client");
7214
- var import_sdkgen_client99 = require("sdkgen-client");
7215
- var ConsumerAppTag = class extends import_sdkgen_client98.TagAbstract {
7416
+ var import_sdkgen_client104 = require("sdkgen-client");
7417
+ var import_sdkgen_client105 = require("sdkgen-client");
7418
+ var ConsumerAppTag = class extends import_sdkgen_client104.TagAbstract {
7216
7419
  /**
7217
7420
  * Creates a new app for the authenticated user
7218
7421
  *
@@ -7239,7 +7442,7 @@ var ConsumerAppTag = class extends import_sdkgen_client98.TagAbstract {
7239
7442
  if (statusCode >= 0 && statusCode <= 999) {
7240
7443
  throw new CommonMessageException(await response.json());
7241
7444
  }
7242
- throw new import_sdkgen_client99.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7445
+ throw new import_sdkgen_client105.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7243
7446
  }
7244
7447
  /**
7245
7448
  * Deletes an existing app for the authenticated user
@@ -7266,7 +7469,7 @@ var ConsumerAppTag = class extends import_sdkgen_client98.TagAbstract {
7266
7469
  if (statusCode >= 0 && statusCode <= 999) {
7267
7470
  throw new CommonMessageException(await response.json());
7268
7471
  }
7269
- throw new import_sdkgen_client99.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7472
+ throw new import_sdkgen_client105.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7270
7473
  }
7271
7474
  /**
7272
7475
  * Returns a specific app for the authenticated user
@@ -7293,7 +7496,7 @@ var ConsumerAppTag = class extends import_sdkgen_client98.TagAbstract {
7293
7496
  if (statusCode >= 0 && statusCode <= 999) {
7294
7497
  throw new CommonMessageException(await response.json());
7295
7498
  }
7296
- throw new import_sdkgen_client99.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7499
+ throw new import_sdkgen_client105.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7297
7500
  }
7298
7501
  /**
7299
7502
  * Returns a paginated list of apps which are assigned to the authenticated user
@@ -7322,7 +7525,7 @@ var ConsumerAppTag = class extends import_sdkgen_client98.TagAbstract {
7322
7525
  if (statusCode >= 0 && statusCode <= 999) {
7323
7526
  throw new CommonMessageException(await response.json());
7324
7527
  }
7325
- throw new import_sdkgen_client99.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7528
+ throw new import_sdkgen_client105.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7326
7529
  }
7327
7530
  /**
7328
7531
  * Updates an existing app for the authenticated user
@@ -7352,14 +7555,14 @@ var ConsumerAppTag = class extends import_sdkgen_client98.TagAbstract {
7352
7555
  if (statusCode >= 0 && statusCode <= 999) {
7353
7556
  throw new CommonMessageException(await response.json());
7354
7557
  }
7355
- throw new import_sdkgen_client99.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7558
+ throw new import_sdkgen_client105.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7356
7559
  }
7357
7560
  };
7358
7561
 
7359
7562
  // src/ConsumerEventTag.ts
7360
- var import_sdkgen_client100 = require("sdkgen-client");
7361
- var import_sdkgen_client101 = require("sdkgen-client");
7362
- var ConsumerEventTag = class extends import_sdkgen_client100.TagAbstract {
7563
+ var import_sdkgen_client106 = require("sdkgen-client");
7564
+ var import_sdkgen_client107 = require("sdkgen-client");
7565
+ var ConsumerEventTag = class extends import_sdkgen_client106.TagAbstract {
7363
7566
  /**
7364
7567
  * Returns a specific event for the authenticated user
7365
7568
  *
@@ -7385,7 +7588,7 @@ var ConsumerEventTag = class extends import_sdkgen_client100.TagAbstract {
7385
7588
  if (statusCode >= 0 && statusCode <= 999) {
7386
7589
  throw new CommonMessageException(await response.json());
7387
7590
  }
7388
- throw new import_sdkgen_client101.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7591
+ throw new import_sdkgen_client107.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7389
7592
  }
7390
7593
  /**
7391
7594
  * Returns a paginated list of apps which are assigned to the authenticated user
@@ -7414,14 +7617,14 @@ var ConsumerEventTag = class extends import_sdkgen_client100.TagAbstract {
7414
7617
  if (statusCode >= 0 && statusCode <= 999) {
7415
7618
  throw new CommonMessageException(await response.json());
7416
7619
  }
7417
- throw new import_sdkgen_client101.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7620
+ throw new import_sdkgen_client107.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7418
7621
  }
7419
7622
  };
7420
7623
 
7421
7624
  // src/ConsumerFormTag.ts
7422
- var import_sdkgen_client102 = require("sdkgen-client");
7423
- var import_sdkgen_client103 = require("sdkgen-client");
7424
- var ConsumerFormTag = class extends import_sdkgen_client102.TagAbstract {
7625
+ var import_sdkgen_client108 = require("sdkgen-client");
7626
+ var import_sdkgen_client109 = require("sdkgen-client");
7627
+ var ConsumerFormTag = class extends import_sdkgen_client108.TagAbstract {
7425
7628
  /**
7426
7629
  * Returns a specific form for the authenticated user
7427
7630
  *
@@ -7447,7 +7650,7 @@ var ConsumerFormTag = class extends import_sdkgen_client102.TagAbstract {
7447
7650
  if (statusCode >= 0 && statusCode <= 999) {
7448
7651
  throw new CommonMessageException(await response.json());
7449
7652
  }
7450
- throw new import_sdkgen_client103.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7653
+ throw new import_sdkgen_client109.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7451
7654
  }
7452
7655
  /**
7453
7656
  * Returns a paginated list of forms which are relevant to the authenticated user
@@ -7476,14 +7679,14 @@ var ConsumerFormTag = class extends import_sdkgen_client102.TagAbstract {
7476
7679
  if (statusCode >= 0 && statusCode <= 999) {
7477
7680
  throw new CommonMessageException(await response.json());
7478
7681
  }
7479
- throw new import_sdkgen_client103.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7682
+ throw new import_sdkgen_client109.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7480
7683
  }
7481
7684
  };
7482
7685
 
7483
7686
  // src/ConsumerGrantTag.ts
7484
- var import_sdkgen_client104 = require("sdkgen-client");
7485
- var import_sdkgen_client105 = require("sdkgen-client");
7486
- var ConsumerGrantTag = class extends import_sdkgen_client104.TagAbstract {
7687
+ var import_sdkgen_client110 = require("sdkgen-client");
7688
+ var import_sdkgen_client111 = require("sdkgen-client");
7689
+ var ConsumerGrantTag = class extends import_sdkgen_client110.TagAbstract {
7487
7690
  /**
7488
7691
  * Deletes an existing grant for an app which was created by the authenticated user
7489
7692
  *
@@ -7509,7 +7712,7 @@ var ConsumerGrantTag = class extends import_sdkgen_client104.TagAbstract {
7509
7712
  if (statusCode >= 0 && statusCode <= 999) {
7510
7713
  throw new CommonMessageException(await response.json());
7511
7714
  }
7512
- throw new import_sdkgen_client105.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7715
+ throw new import_sdkgen_client111.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7513
7716
  }
7514
7717
  /**
7515
7718
  * Returns a paginated list of grants which are assigned to the authenticated user
@@ -7538,14 +7741,14 @@ var ConsumerGrantTag = class extends import_sdkgen_client104.TagAbstract {
7538
7741
  if (statusCode >= 0 && statusCode <= 999) {
7539
7742
  throw new CommonMessageException(await response.json());
7540
7743
  }
7541
- throw new import_sdkgen_client105.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7744
+ throw new import_sdkgen_client111.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7542
7745
  }
7543
7746
  };
7544
7747
 
7545
7748
  // src/ConsumerIdentityTag.ts
7546
- var import_sdkgen_client106 = require("sdkgen-client");
7547
- var import_sdkgen_client107 = require("sdkgen-client");
7548
- var ConsumerIdentityTag = class extends import_sdkgen_client106.TagAbstract {
7749
+ var import_sdkgen_client112 = require("sdkgen-client");
7750
+ var import_sdkgen_client113 = require("sdkgen-client");
7751
+ var ConsumerIdentityTag = class extends import_sdkgen_client112.TagAbstract {
7549
7752
  /**
7550
7753
  * Identity callback endpoint to exchange an access token
7551
7754
  *
@@ -7571,7 +7774,7 @@ var ConsumerIdentityTag = class extends import_sdkgen_client106.TagAbstract {
7571
7774
  if (statusCode >= 0 && statusCode <= 999) {
7572
7775
  throw new CommonMessageException(await response.json());
7573
7776
  }
7574
- throw new import_sdkgen_client107.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7777
+ throw new import_sdkgen_client113.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7575
7778
  }
7576
7779
  /**
7577
7780
  * Returns a paginated list of identities which are relevant to the authenticated user
@@ -7599,7 +7802,7 @@ var ConsumerIdentityTag = class extends import_sdkgen_client106.TagAbstract {
7599
7802
  if (statusCode >= 0 && statusCode <= 999) {
7600
7803
  throw new CommonMessageException(await response.json());
7601
7804
  }
7602
- throw new import_sdkgen_client107.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7805
+ throw new import_sdkgen_client113.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7603
7806
  }
7604
7807
  /**
7605
7808
  * Redirect the user to the configured identity provider
@@ -7626,14 +7829,14 @@ var ConsumerIdentityTag = class extends import_sdkgen_client106.TagAbstract {
7626
7829
  if (statusCode >= 0 && statusCode <= 999) {
7627
7830
  throw new CommonMessageException(await response.json());
7628
7831
  }
7629
- throw new import_sdkgen_client107.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7832
+ throw new import_sdkgen_client113.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7630
7833
  }
7631
7834
  };
7632
7835
 
7633
7836
  // src/ConsumerLogTag.ts
7634
- var import_sdkgen_client108 = require("sdkgen-client");
7635
- var import_sdkgen_client109 = require("sdkgen-client");
7636
- var ConsumerLogTag = class extends import_sdkgen_client108.TagAbstract {
7837
+ var import_sdkgen_client114 = require("sdkgen-client");
7838
+ var import_sdkgen_client115 = require("sdkgen-client");
7839
+ var ConsumerLogTag = class extends import_sdkgen_client114.TagAbstract {
7637
7840
  /**
7638
7841
  * Returns a specific log for the authenticated user
7639
7842
  *
@@ -7659,7 +7862,7 @@ var ConsumerLogTag = class extends import_sdkgen_client108.TagAbstract {
7659
7862
  if (statusCode >= 0 && statusCode <= 999) {
7660
7863
  throw new CommonMessageException(await response.json());
7661
7864
  }
7662
- throw new import_sdkgen_client109.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7865
+ throw new import_sdkgen_client115.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7663
7866
  }
7664
7867
  /**
7665
7868
  * Returns a paginated list of logs which are assigned to the authenticated user
@@ -7688,14 +7891,14 @@ var ConsumerLogTag = class extends import_sdkgen_client108.TagAbstract {
7688
7891
  if (statusCode >= 0 && statusCode <= 999) {
7689
7892
  throw new CommonMessageException(await response.json());
7690
7893
  }
7691
- throw new import_sdkgen_client109.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7894
+ throw new import_sdkgen_client115.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7692
7895
  }
7693
7896
  };
7694
7897
 
7695
7898
  // src/ConsumerPageTag.ts
7696
- var import_sdkgen_client110 = require("sdkgen-client");
7697
- var import_sdkgen_client111 = require("sdkgen-client");
7698
- var ConsumerPageTag = class extends import_sdkgen_client110.TagAbstract {
7899
+ var import_sdkgen_client116 = require("sdkgen-client");
7900
+ var import_sdkgen_client117 = require("sdkgen-client");
7901
+ var ConsumerPageTag = class extends import_sdkgen_client116.TagAbstract {
7699
7902
  /**
7700
7903
  * Returns a specific page for the authenticated user
7701
7904
  *
@@ -7721,7 +7924,7 @@ var ConsumerPageTag = class extends import_sdkgen_client110.TagAbstract {
7721
7924
  if (statusCode >= 0 && statusCode <= 999) {
7722
7925
  throw new CommonMessageException(await response.json());
7723
7926
  }
7724
- throw new import_sdkgen_client111.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7927
+ throw new import_sdkgen_client117.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7725
7928
  }
7726
7929
  /**
7727
7930
  * Returns a paginated list of pages which are relevant to the authenticated user
@@ -7750,14 +7953,14 @@ var ConsumerPageTag = class extends import_sdkgen_client110.TagAbstract {
7750
7953
  if (statusCode >= 0 && statusCode <= 999) {
7751
7954
  throw new CommonMessageException(await response.json());
7752
7955
  }
7753
- throw new import_sdkgen_client111.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7956
+ throw new import_sdkgen_client117.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7754
7957
  }
7755
7958
  };
7756
7959
 
7757
7960
  // src/ConsumerPaymentTag.ts
7758
- var import_sdkgen_client112 = require("sdkgen-client");
7759
- var import_sdkgen_client113 = require("sdkgen-client");
7760
- var ConsumerPaymentTag = class extends import_sdkgen_client112.TagAbstract {
7961
+ var import_sdkgen_client118 = require("sdkgen-client");
7962
+ var import_sdkgen_client119 = require("sdkgen-client");
7963
+ var ConsumerPaymentTag = class extends import_sdkgen_client118.TagAbstract {
7761
7964
  /**
7762
7965
  * Start the checkout process for a specific plan
7763
7966
  *
@@ -7786,7 +7989,7 @@ var ConsumerPaymentTag = class extends import_sdkgen_client112.TagAbstract {
7786
7989
  if (statusCode >= 0 && statusCode <= 999) {
7787
7990
  throw new CommonMessageException(await response.json());
7788
7991
  }
7789
- throw new import_sdkgen_client113.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7992
+ throw new import_sdkgen_client119.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7790
7993
  }
7791
7994
  /**
7792
7995
  * Generates a payment portal link for the authenticated user
@@ -7816,14 +8019,14 @@ var ConsumerPaymentTag = class extends import_sdkgen_client112.TagAbstract {
7816
8019
  if (statusCode >= 0 && statusCode <= 999) {
7817
8020
  throw new CommonMessageException(await response.json());
7818
8021
  }
7819
- throw new import_sdkgen_client113.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8022
+ throw new import_sdkgen_client119.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7820
8023
  }
7821
8024
  };
7822
8025
 
7823
8026
  // src/ConsumerPlanTag.ts
7824
- var import_sdkgen_client114 = require("sdkgen-client");
7825
- var import_sdkgen_client115 = require("sdkgen-client");
7826
- var ConsumerPlanTag = class extends import_sdkgen_client114.TagAbstract {
8027
+ var import_sdkgen_client120 = require("sdkgen-client");
8028
+ var import_sdkgen_client121 = require("sdkgen-client");
8029
+ var ConsumerPlanTag = class extends import_sdkgen_client120.TagAbstract {
7827
8030
  /**
7828
8031
  * Returns a specific plan for the authenticated user
7829
8032
  *
@@ -7849,7 +8052,7 @@ var ConsumerPlanTag = class extends import_sdkgen_client114.TagAbstract {
7849
8052
  if (statusCode >= 0 && statusCode <= 999) {
7850
8053
  throw new CommonMessageException(await response.json());
7851
8054
  }
7852
- throw new import_sdkgen_client115.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8055
+ throw new import_sdkgen_client121.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7853
8056
  }
7854
8057
  /**
7855
8058
  * Returns a paginated list of plans which are relevant to the authenticated user
@@ -7878,14 +8081,14 @@ var ConsumerPlanTag = class extends import_sdkgen_client114.TagAbstract {
7878
8081
  if (statusCode >= 0 && statusCode <= 999) {
7879
8082
  throw new CommonMessageException(await response.json());
7880
8083
  }
7881
- throw new import_sdkgen_client115.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8084
+ throw new import_sdkgen_client121.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7882
8085
  }
7883
8086
  };
7884
8087
 
7885
8088
  // src/ConsumerScopeTag.ts
7886
- var import_sdkgen_client116 = require("sdkgen-client");
7887
- var import_sdkgen_client117 = require("sdkgen-client");
7888
- var ConsumerScopeTag = class extends import_sdkgen_client116.TagAbstract {
8089
+ var import_sdkgen_client122 = require("sdkgen-client");
8090
+ var import_sdkgen_client123 = require("sdkgen-client");
8091
+ var ConsumerScopeTag = class extends import_sdkgen_client122.TagAbstract {
7889
8092
  /**
7890
8093
  * Returns a paginated list of scopes which are assigned to the authenticated user
7891
8094
  *
@@ -7913,7 +8116,7 @@ var ConsumerScopeTag = class extends import_sdkgen_client116.TagAbstract {
7913
8116
  if (statusCode >= 0 && statusCode <= 999) {
7914
8117
  throw new CommonMessageException(await response.json());
7915
8118
  }
7916
- throw new import_sdkgen_client117.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8119
+ throw new import_sdkgen_client123.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7917
8120
  }
7918
8121
  /**
7919
8122
  * Returns all scopes by category
@@ -7938,14 +8141,14 @@ var ConsumerScopeTag = class extends import_sdkgen_client116.TagAbstract {
7938
8141
  if (statusCode >= 0 && statusCode <= 999) {
7939
8142
  throw new CommonMessageException(await response.json());
7940
8143
  }
7941
- throw new import_sdkgen_client117.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8144
+ throw new import_sdkgen_client123.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7942
8145
  }
7943
8146
  };
7944
8147
 
7945
8148
  // src/ConsumerTokenTag.ts
7946
- var import_sdkgen_client118 = require("sdkgen-client");
7947
- var import_sdkgen_client119 = require("sdkgen-client");
7948
- var ConsumerTokenTag = class extends import_sdkgen_client118.TagAbstract {
8149
+ var import_sdkgen_client124 = require("sdkgen-client");
8150
+ var import_sdkgen_client125 = require("sdkgen-client");
8151
+ var ConsumerTokenTag = class extends import_sdkgen_client124.TagAbstract {
7949
8152
  /**
7950
8153
  * Creates a new token for the authenticated user
7951
8154
  *
@@ -7972,7 +8175,7 @@ var ConsumerTokenTag = class extends import_sdkgen_client118.TagAbstract {
7972
8175
  if (statusCode >= 0 && statusCode <= 999) {
7973
8176
  throw new CommonMessageException(await response.json());
7974
8177
  }
7975
- throw new import_sdkgen_client119.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8178
+ throw new import_sdkgen_client125.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7976
8179
  }
7977
8180
  /**
7978
8181
  * Deletes an existing token for the authenticated user
@@ -7999,7 +8202,7 @@ var ConsumerTokenTag = class extends import_sdkgen_client118.TagAbstract {
7999
8202
  if (statusCode >= 0 && statusCode <= 999) {
8000
8203
  throw new CommonMessageException(await response.json());
8001
8204
  }
8002
- throw new import_sdkgen_client119.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8205
+ throw new import_sdkgen_client125.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8003
8206
  }
8004
8207
  /**
8005
8208
  * Returns a specific token for the authenticated user
@@ -8026,7 +8229,7 @@ var ConsumerTokenTag = class extends import_sdkgen_client118.TagAbstract {
8026
8229
  if (statusCode >= 0 && statusCode <= 999) {
8027
8230
  throw new CommonMessageException(await response.json());
8028
8231
  }
8029
- throw new import_sdkgen_client119.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8232
+ throw new import_sdkgen_client125.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8030
8233
  }
8031
8234
  /**
8032
8235
  * Returns a paginated list of tokens which are assigned to the authenticated user
@@ -8055,7 +8258,7 @@ var ConsumerTokenTag = class extends import_sdkgen_client118.TagAbstract {
8055
8258
  if (statusCode >= 0 && statusCode <= 999) {
8056
8259
  throw new CommonMessageException(await response.json());
8057
8260
  }
8058
- throw new import_sdkgen_client119.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8261
+ throw new import_sdkgen_client125.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8059
8262
  }
8060
8263
  /**
8061
8264
  * Updates an existing token for the authenticated user
@@ -8085,14 +8288,14 @@ var ConsumerTokenTag = class extends import_sdkgen_client118.TagAbstract {
8085
8288
  if (statusCode >= 0 && statusCode <= 999) {
8086
8289
  throw new CommonMessageException(await response.json());
8087
8290
  }
8088
- throw new import_sdkgen_client119.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8291
+ throw new import_sdkgen_client125.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8089
8292
  }
8090
8293
  };
8091
8294
 
8092
8295
  // src/ConsumerTransactionTag.ts
8093
- var import_sdkgen_client120 = require("sdkgen-client");
8094
- var import_sdkgen_client121 = require("sdkgen-client");
8095
- var ConsumerTransactionTag = class extends import_sdkgen_client120.TagAbstract {
8296
+ var import_sdkgen_client126 = require("sdkgen-client");
8297
+ var import_sdkgen_client127 = require("sdkgen-client");
8298
+ var ConsumerTransactionTag = class extends import_sdkgen_client126.TagAbstract {
8096
8299
  /**
8097
8300
  * Returns a specific transaction for the authenticated user
8098
8301
  *
@@ -8118,7 +8321,7 @@ var ConsumerTransactionTag = class extends import_sdkgen_client120.TagAbstract {
8118
8321
  if (statusCode >= 0 && statusCode <= 999) {
8119
8322
  throw new CommonMessageException(await response.json());
8120
8323
  }
8121
- throw new import_sdkgen_client121.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8324
+ throw new import_sdkgen_client127.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8122
8325
  }
8123
8326
  /**
8124
8327
  * Returns a paginated list of transactions which are assigned to the authenticated user
@@ -8147,14 +8350,14 @@ var ConsumerTransactionTag = class extends import_sdkgen_client120.TagAbstract {
8147
8350
  if (statusCode >= 0 && statusCode <= 999) {
8148
8351
  throw new CommonMessageException(await response.json());
8149
8352
  }
8150
- throw new import_sdkgen_client121.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8353
+ throw new import_sdkgen_client127.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8151
8354
  }
8152
8355
  };
8153
8356
 
8154
8357
  // src/ConsumerWebhookTag.ts
8155
- var import_sdkgen_client122 = require("sdkgen-client");
8156
- var import_sdkgen_client123 = require("sdkgen-client");
8157
- var ConsumerWebhookTag = class extends import_sdkgen_client122.TagAbstract {
8358
+ var import_sdkgen_client128 = require("sdkgen-client");
8359
+ var import_sdkgen_client129 = require("sdkgen-client");
8360
+ var ConsumerWebhookTag = class extends import_sdkgen_client128.TagAbstract {
8158
8361
  /**
8159
8362
  * Creates a new webhook for the authenticated user
8160
8363
  *
@@ -8181,7 +8384,7 @@ var ConsumerWebhookTag = class extends import_sdkgen_client122.TagAbstract {
8181
8384
  if (statusCode >= 0 && statusCode <= 999) {
8182
8385
  throw new CommonMessageException(await response.json());
8183
8386
  }
8184
- throw new import_sdkgen_client123.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8387
+ throw new import_sdkgen_client129.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8185
8388
  }
8186
8389
  /**
8187
8390
  * Deletes an existing webhook for the authenticated user
@@ -8208,7 +8411,7 @@ var ConsumerWebhookTag = class extends import_sdkgen_client122.TagAbstract {
8208
8411
  if (statusCode >= 0 && statusCode <= 999) {
8209
8412
  throw new CommonMessageException(await response.json());
8210
8413
  }
8211
- throw new import_sdkgen_client123.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8414
+ throw new import_sdkgen_client129.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8212
8415
  }
8213
8416
  /**
8214
8417
  * Returns a specific webhook for the authenticated user
@@ -8235,7 +8438,7 @@ var ConsumerWebhookTag = class extends import_sdkgen_client122.TagAbstract {
8235
8438
  if (statusCode >= 0 && statusCode <= 999) {
8236
8439
  throw new CommonMessageException(await response.json());
8237
8440
  }
8238
- throw new import_sdkgen_client123.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8441
+ throw new import_sdkgen_client129.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8239
8442
  }
8240
8443
  /**
8241
8444
  * Returns a paginated list of webhooks which are assigned to the authenticated user
@@ -8264,7 +8467,7 @@ var ConsumerWebhookTag = class extends import_sdkgen_client122.TagAbstract {
8264
8467
  if (statusCode >= 0 && statusCode <= 999) {
8265
8468
  throw new CommonMessageException(await response.json());
8266
8469
  }
8267
- throw new import_sdkgen_client123.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8470
+ throw new import_sdkgen_client129.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8268
8471
  }
8269
8472
  /**
8270
8473
  * Updates an existing webhook for the authenticated user
@@ -8294,18 +8497,24 @@ var ConsumerWebhookTag = class extends import_sdkgen_client122.TagAbstract {
8294
8497
  if (statusCode >= 0 && statusCode <= 999) {
8295
8498
  throw new CommonMessageException(await response.json());
8296
8499
  }
8297
- throw new import_sdkgen_client123.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8500
+ throw new import_sdkgen_client129.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8298
8501
  }
8299
8502
  };
8300
8503
 
8301
8504
  // src/ConsumerTag.ts
8302
- var ConsumerTag = class extends import_sdkgen_client124.TagAbstract {
8505
+ var ConsumerTag = class extends import_sdkgen_client130.TagAbstract {
8303
8506
  account() {
8304
8507
  return new ConsumerAccountTag(
8305
8508
  this.httpClient,
8306
8509
  this.parser
8307
8510
  );
8308
8511
  }
8512
+ agent() {
8513
+ return new ConsumerAgentTag(
8514
+ this.httpClient,
8515
+ this.parser
8516
+ );
8517
+ }
8309
8518
  app() {
8310
8519
  return new ConsumerAppTag(
8311
8520
  this.httpClient,
@@ -8387,12 +8596,12 @@ var ConsumerTag = class extends import_sdkgen_client124.TagAbstract {
8387
8596
  };
8388
8597
 
8389
8598
  // src/SystemTag.ts
8390
- var import_sdkgen_client131 = require("sdkgen-client");
8599
+ var import_sdkgen_client137 = require("sdkgen-client");
8391
8600
 
8392
8601
  // src/SystemConnectionTag.ts
8393
- var import_sdkgen_client125 = require("sdkgen-client");
8394
- var import_sdkgen_client126 = require("sdkgen-client");
8395
- var SystemConnectionTag = class extends import_sdkgen_client125.TagAbstract {
8602
+ var import_sdkgen_client131 = require("sdkgen-client");
8603
+ var import_sdkgen_client132 = require("sdkgen-client");
8604
+ var SystemConnectionTag = class extends import_sdkgen_client131.TagAbstract {
8396
8605
  /**
8397
8606
  * Connection OAuth2 callback to authorize a connection
8398
8607
  *
@@ -8418,14 +8627,14 @@ var SystemConnectionTag = class extends import_sdkgen_client125.TagAbstract {
8418
8627
  if (statusCode >= 0 && statusCode <= 999) {
8419
8628
  throw new CommonMessageException(await response.json());
8420
8629
  }
8421
- throw new import_sdkgen_client126.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8630
+ throw new import_sdkgen_client132.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8422
8631
  }
8423
8632
  };
8424
8633
 
8425
8634
  // src/SystemMetaTag.ts
8426
- var import_sdkgen_client127 = require("sdkgen-client");
8427
- var import_sdkgen_client128 = require("sdkgen-client");
8428
- var SystemMetaTag = class extends import_sdkgen_client127.TagAbstract {
8635
+ var import_sdkgen_client133 = require("sdkgen-client");
8636
+ var import_sdkgen_client134 = require("sdkgen-client");
8637
+ var SystemMetaTag = class extends import_sdkgen_client133.TagAbstract {
8429
8638
  /**
8430
8639
  * Returns meta information and links about the current installed Fusio version
8431
8640
  *
@@ -8449,7 +8658,7 @@ var SystemMetaTag = class extends import_sdkgen_client127.TagAbstract {
8449
8658
  if (statusCode >= 0 && statusCode <= 999) {
8450
8659
  throw new CommonMessageException(await response.json());
8451
8660
  }
8452
- throw new import_sdkgen_client128.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8661
+ throw new import_sdkgen_client134.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8453
8662
  }
8454
8663
  /**
8455
8664
  * Debug endpoint which returns the provided data
@@ -8477,7 +8686,7 @@ var SystemMetaTag = class extends import_sdkgen_client127.TagAbstract {
8477
8686
  if (statusCode >= 0 && statusCode <= 999) {
8478
8687
  throw new CommonMessageException(await response.json());
8479
8688
  }
8480
- throw new import_sdkgen_client128.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8689
+ throw new import_sdkgen_client134.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8481
8690
  }
8482
8691
  /**
8483
8692
  * Health check endpoint which returns information about the health status of the system
@@ -8502,7 +8711,7 @@ var SystemMetaTag = class extends import_sdkgen_client127.TagAbstract {
8502
8711
  if (statusCode >= 0 && statusCode <= 999) {
8503
8712
  throw new CommonMessageException(await response.json());
8504
8713
  }
8505
- throw new import_sdkgen_client128.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8714
+ throw new import_sdkgen_client134.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8506
8715
  }
8507
8716
  /**
8508
8717
  * Returns all available routes
@@ -8527,7 +8736,7 @@ var SystemMetaTag = class extends import_sdkgen_client127.TagAbstract {
8527
8736
  if (statusCode >= 0 && statusCode <= 999) {
8528
8737
  throw new CommonMessageException(await response.json());
8529
8738
  }
8530
- throw new import_sdkgen_client128.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8739
+ throw new import_sdkgen_client134.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8531
8740
  }
8532
8741
  /**
8533
8742
  * Returns details of a specific schema
@@ -8554,14 +8763,14 @@ var SystemMetaTag = class extends import_sdkgen_client127.TagAbstract {
8554
8763
  if (statusCode >= 0 && statusCode <= 999) {
8555
8764
  throw new CommonMessageException(await response.json());
8556
8765
  }
8557
- throw new import_sdkgen_client128.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8766
+ throw new import_sdkgen_client134.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8558
8767
  }
8559
8768
  };
8560
8769
 
8561
8770
  // src/SystemPaymentTag.ts
8562
- var import_sdkgen_client129 = require("sdkgen-client");
8563
- var import_sdkgen_client130 = require("sdkgen-client");
8564
- var SystemPaymentTag = class extends import_sdkgen_client129.TagAbstract {
8771
+ var import_sdkgen_client135 = require("sdkgen-client");
8772
+ var import_sdkgen_client136 = require("sdkgen-client");
8773
+ var SystemPaymentTag = class extends import_sdkgen_client135.TagAbstract {
8565
8774
  /**
8566
8775
  * Payment webhook endpoint after successful purchase of a plan
8567
8776
  *
@@ -8587,12 +8796,12 @@ var SystemPaymentTag = class extends import_sdkgen_client129.TagAbstract {
8587
8796
  if (statusCode >= 0 && statusCode <= 999) {
8588
8797
  throw new CommonMessageException(await response.json());
8589
8798
  }
8590
- throw new import_sdkgen_client130.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8799
+ throw new import_sdkgen_client136.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8591
8800
  }
8592
8801
  };
8593
8802
 
8594
8803
  // src/SystemTag.ts
8595
- var SystemTag = class extends import_sdkgen_client131.TagAbstract {
8804
+ var SystemTag = class extends import_sdkgen_client137.TagAbstract {
8596
8805
  connection() {
8597
8806
  return new SystemConnectionTag(
8598
8807
  this.httpClient,
@@ -8614,7 +8823,7 @@ var SystemTag = class extends import_sdkgen_client131.TagAbstract {
8614
8823
  };
8615
8824
 
8616
8825
  // src/Client.ts
8617
- var Client = class _Client extends import_sdkgen_client132.ClientAbstract {
8826
+ var Client = class _Client extends import_sdkgen_client138.ClientAbstract {
8618
8827
  authorization() {
8619
8828
  return new AuthorizationTag(
8620
8829
  this.httpClient,
@@ -8640,7 +8849,7 @@ var Client = class _Client extends import_sdkgen_client132.ClientAbstract {
8640
8849
  );
8641
8850
  }
8642
8851
  static buildAnonymous(baseUrl) {
8643
- return new _Client(baseUrl, new import_sdkgen_client133.Anonymous());
8852
+ return new _Client(baseUrl, new import_sdkgen_client139.Anonymous());
8644
8853
  }
8645
8854
  };
8646
8855
  // Annotate the CommonJS export names for ESM import in node:
@@ -8682,6 +8891,7 @@ var Client = class _Client extends import_sdkgen_client132.ClientAbstract {
8682
8891
  BackendSchemaTag,
8683
8892
  BackendScopeTag,
8684
8893
  BackendSdkTag,
8894
+ BackendSpecificationTag,
8685
8895
  BackendStatisticTag,
8686
8896
  BackendTag,
8687
8897
  BackendTaxonomyTag,
@@ -8696,6 +8906,8 @@ var Client = class _Client extends import_sdkgen_client132.ClientAbstract {
8696
8906
  Client,
8697
8907
  CommonMessageException,
8698
8908
  ConsumerAccountTag,
8909
+ ConsumerAgentMessageTag,
8910
+ ConsumerAgentTag,
8699
8911
  ConsumerAppTag,
8700
8912
  ConsumerEventTag,
8701
8913
  ConsumerFormTag,