fusio-sdk 7.0.8 → 7.0.10

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
@@ -4844,6 +4844,31 @@ var BackendSpecificationTag = class extends TagAbstract38 {
4844
4844
  }
4845
4845
  throw new UnknownStatusCodeException37("The server returned an unknown status code: " + statusCode);
4846
4846
  }
4847
+ /**
4848
+ * Returns the changelog between your current specification and the last tag
4849
+ *
4850
+ * @returns {Promise<BackendSpecificationChangelog>}
4851
+ * @throws {CommonMessageException}
4852
+ * @throws {ClientException}
4853
+ */
4854
+ async getChangelog() {
4855
+ const url = this.parser.url("/backend/specification/changelog", {});
4856
+ let request = {
4857
+ url,
4858
+ method: "GET",
4859
+ headers: {},
4860
+ params: this.parser.query({}, [])
4861
+ };
4862
+ const response = await this.httpClient.request(request);
4863
+ if (response.ok) {
4864
+ return await response.json();
4865
+ }
4866
+ const statusCode = response.status;
4867
+ if (statusCode >= 0 && statusCode <= 999) {
4868
+ throw new CommonMessageException(await response.json());
4869
+ }
4870
+ throw new UnknownStatusCodeException37("The server returned an unknown status code: " + statusCode);
4871
+ }
4847
4872
  /**
4848
4873
  * Publish the specification
4849
4874
  *
@@ -4872,6 +4897,34 @@ var BackendSpecificationTag = class extends TagAbstract38 {
4872
4897
  }
4873
4898
  throw new UnknownStatusCodeException37("The server returned an unknown status code: " + statusCode);
4874
4899
  }
4900
+ /**
4901
+ * Creates a new tag of your specification
4902
+ *
4903
+ * @returns {Promise<CommonMessage>}
4904
+ * @throws {CommonMessageException}
4905
+ * @throws {ClientException}
4906
+ */
4907
+ async tag(payload) {
4908
+ const url = this.parser.url("/backend/specification/tag", {});
4909
+ let request = {
4910
+ url,
4911
+ method: "POST",
4912
+ headers: {
4913
+ "Content-Type": "application/json"
4914
+ },
4915
+ params: this.parser.query({}, []),
4916
+ data: payload
4917
+ };
4918
+ const response = await this.httpClient.request(request);
4919
+ if (response.ok) {
4920
+ return await response.json();
4921
+ }
4922
+ const statusCode = response.status;
4923
+ if (statusCode >= 0 && statusCode <= 999) {
4924
+ throw new CommonMessageException(await response.json());
4925
+ }
4926
+ throw new UnknownStatusCodeException37("The server returned an unknown status code: " + statusCode);
4927
+ }
4875
4928
  };
4876
4929
 
4877
4930
  // src/BackendStatisticTag.ts
@@ -6867,7 +6920,7 @@ import { ClientAbstract } from "sdkgen-client";
6867
6920
  import { Anonymous } from "sdkgen-client";
6868
6921
 
6869
6922
  // src/ConsumerTag.ts
6870
- import { TagAbstract as TagAbstract64 } from "sdkgen-client";
6923
+ import { TagAbstract as TagAbstract66 } from "sdkgen-client";
6871
6924
 
6872
6925
  // src/ConsumerAccountTag.ts
6873
6926
  import { TagAbstract as TagAbstract50 } from "sdkgen-client";
@@ -7180,10 +7233,145 @@ var ConsumerAccountTag = class extends TagAbstract50 {
7180
7233
  }
7181
7234
  };
7182
7235
 
7183
- // src/ConsumerAppTag.ts
7236
+ // src/ConsumerAgentTag.ts
7237
+ import { TagAbstract as TagAbstract52 } from "sdkgen-client";
7238
+ import { UnknownStatusCodeException as UnknownStatusCodeException50 } from "sdkgen-client";
7239
+
7240
+ // src/ConsumerAgentMessageTag.ts
7184
7241
  import { TagAbstract as TagAbstract51 } from "sdkgen-client";
7185
7242
  import { UnknownStatusCodeException as UnknownStatusCodeException49 } from "sdkgen-client";
7186
- var ConsumerAppTag = class extends TagAbstract51 {
7243
+ var ConsumerAgentMessageTag = class extends TagAbstract51 {
7244
+ /**
7245
+ * Returns a paginated list of agent messages
7246
+ *
7247
+ * @returns {Promise<ConsumerAgentMessageCollection>}
7248
+ * @throws {CommonMessageException}
7249
+ * @throws {ClientException}
7250
+ */
7251
+ async getAll(agentId, chatId) {
7252
+ const url = this.parser.url("/consumer/agent/$agent_id<[0-9]+|^~>/message", {
7253
+ "agent_id": agentId
7254
+ });
7255
+ let request = {
7256
+ url,
7257
+ method: "GET",
7258
+ headers: {},
7259
+ params: this.parser.query({
7260
+ "chat_id": chatId
7261
+ }, [])
7262
+ };
7263
+ const response = await this.httpClient.request(request);
7264
+ if (response.ok) {
7265
+ return await response.json();
7266
+ }
7267
+ const statusCode = response.status;
7268
+ if (statusCode >= 0 && statusCode <= 999) {
7269
+ throw new CommonMessageException(await response.json());
7270
+ }
7271
+ throw new UnknownStatusCodeException49("The server returned an unknown status code: " + statusCode);
7272
+ }
7273
+ /**
7274
+ * Submits a new agent message
7275
+ *
7276
+ * @returns {Promise<AgentOutput>}
7277
+ * @throws {CommonMessageException}
7278
+ * @throws {ClientException}
7279
+ */
7280
+ async submit(agentId, payload) {
7281
+ const url = this.parser.url("/consumer/agent/$agent_id<[0-9]+|^~>/message", {
7282
+ "agent_id": agentId
7283
+ });
7284
+ let request = {
7285
+ url,
7286
+ method: "POST",
7287
+ headers: {
7288
+ "Content-Type": "application/json"
7289
+ },
7290
+ params: this.parser.query({}, []),
7291
+ data: payload
7292
+ };
7293
+ const response = await this.httpClient.request(request);
7294
+ if (response.ok) {
7295
+ return await response.json();
7296
+ }
7297
+ const statusCode = response.status;
7298
+ if (statusCode >= 0 && statusCode <= 999) {
7299
+ throw new CommonMessageException(await response.json());
7300
+ }
7301
+ throw new UnknownStatusCodeException49("The server returned an unknown status code: " + statusCode);
7302
+ }
7303
+ };
7304
+
7305
+ // src/ConsumerAgentTag.ts
7306
+ var ConsumerAgentTag = class extends TagAbstract52 {
7307
+ message() {
7308
+ return new ConsumerAgentMessageTag(
7309
+ this.httpClient,
7310
+ this.parser
7311
+ );
7312
+ }
7313
+ /**
7314
+ * Returns a specific agent
7315
+ *
7316
+ * @returns {Promise<ConsumerAgent>}
7317
+ * @throws {CommonMessageException}
7318
+ * @throws {ClientException}
7319
+ */
7320
+ async get(agentId) {
7321
+ const url = this.parser.url("/consumer/agent/$agent_id<[0-9]+|^~>", {
7322
+ "agent_id": agentId
7323
+ });
7324
+ let request = {
7325
+ url,
7326
+ method: "GET",
7327
+ headers: {},
7328
+ params: this.parser.query({}, [])
7329
+ };
7330
+ const response = await this.httpClient.request(request);
7331
+ if (response.ok) {
7332
+ return await response.json();
7333
+ }
7334
+ const statusCode = response.status;
7335
+ if (statusCode >= 0 && statusCode <= 999) {
7336
+ throw new CommonMessageException(await response.json());
7337
+ }
7338
+ throw new UnknownStatusCodeException50("The server returned an unknown status code: " + statusCode);
7339
+ }
7340
+ /**
7341
+ * Returns a paginated list of agents
7342
+ *
7343
+ * @returns {Promise<ConsumerAgentCollection>}
7344
+ * @throws {CommonMessageException}
7345
+ * @throws {ClientException}
7346
+ */
7347
+ async getAll(startIndex, count, search) {
7348
+ const url = this.parser.url("/consumer/agent", {});
7349
+ let request = {
7350
+ url,
7351
+ method: "GET",
7352
+ headers: {},
7353
+ params: this.parser.query({
7354
+ "startIndex": startIndex,
7355
+ "count": count,
7356
+ "search": search
7357
+ }, [])
7358
+ };
7359
+ const response = await this.httpClient.request(request);
7360
+ if (response.ok) {
7361
+ return await response.json();
7362
+ }
7363
+ const statusCode = response.status;
7364
+ if (statusCode >= 0 && statusCode <= 999) {
7365
+ throw new CommonMessageException(await response.json());
7366
+ }
7367
+ throw new UnknownStatusCodeException50("The server returned an unknown status code: " + statusCode);
7368
+ }
7369
+ };
7370
+
7371
+ // src/ConsumerAppTag.ts
7372
+ import { TagAbstract as TagAbstract53 } from "sdkgen-client";
7373
+ import { UnknownStatusCodeException as UnknownStatusCodeException51 } from "sdkgen-client";
7374
+ var ConsumerAppTag = class extends TagAbstract53 {
7187
7375
  /**
7188
7376
  * Creates a new app for the authenticated user
7189
7377
  *
@@ -7210,7 +7398,7 @@ var ConsumerAppTag = class extends TagAbstract51 {
7210
7398
  if (statusCode >= 0 && statusCode <= 999) {
7211
7399
  throw new CommonMessageException(await response.json());
7212
7400
  }
7213
- throw new UnknownStatusCodeException49("The server returned an unknown status code: " + statusCode);
7401
+ throw new UnknownStatusCodeException51("The server returned an unknown status code: " + statusCode);
7214
7402
  }
7215
7403
  /**
7216
7404
  * Deletes an existing app for the authenticated user
@@ -7237,7 +7425,7 @@ var ConsumerAppTag = class extends TagAbstract51 {
7237
7425
  if (statusCode >= 0 && statusCode <= 999) {
7238
7426
  throw new CommonMessageException(await response.json());
7239
7427
  }
7240
- throw new UnknownStatusCodeException49("The server returned an unknown status code: " + statusCode);
7428
+ throw new UnknownStatusCodeException51("The server returned an unknown status code: " + statusCode);
7241
7429
  }
7242
7430
  /**
7243
7431
  * Returns a specific app for the authenticated user
@@ -7264,7 +7452,7 @@ var ConsumerAppTag = class extends TagAbstract51 {
7264
7452
  if (statusCode >= 0 && statusCode <= 999) {
7265
7453
  throw new CommonMessageException(await response.json());
7266
7454
  }
7267
- throw new UnknownStatusCodeException49("The server returned an unknown status code: " + statusCode);
7455
+ throw new UnknownStatusCodeException51("The server returned an unknown status code: " + statusCode);
7268
7456
  }
7269
7457
  /**
7270
7458
  * Returns a paginated list of apps which are assigned to the authenticated user
@@ -7293,7 +7481,7 @@ var ConsumerAppTag = class extends TagAbstract51 {
7293
7481
  if (statusCode >= 0 && statusCode <= 999) {
7294
7482
  throw new CommonMessageException(await response.json());
7295
7483
  }
7296
- throw new UnknownStatusCodeException49("The server returned an unknown status code: " + statusCode);
7484
+ throw new UnknownStatusCodeException51("The server returned an unknown status code: " + statusCode);
7297
7485
  }
7298
7486
  /**
7299
7487
  * Updates an existing app for the authenticated user
@@ -7323,14 +7511,14 @@ var ConsumerAppTag = class extends TagAbstract51 {
7323
7511
  if (statusCode >= 0 && statusCode <= 999) {
7324
7512
  throw new CommonMessageException(await response.json());
7325
7513
  }
7326
- throw new UnknownStatusCodeException49("The server returned an unknown status code: " + statusCode);
7514
+ throw new UnknownStatusCodeException51("The server returned an unknown status code: " + statusCode);
7327
7515
  }
7328
7516
  };
7329
7517
 
7330
7518
  // src/ConsumerEventTag.ts
7331
- import { TagAbstract as TagAbstract52 } from "sdkgen-client";
7332
- import { UnknownStatusCodeException as UnknownStatusCodeException50 } from "sdkgen-client";
7333
- var ConsumerEventTag = class extends TagAbstract52 {
7519
+ import { TagAbstract as TagAbstract54 } from "sdkgen-client";
7520
+ import { UnknownStatusCodeException as UnknownStatusCodeException52 } from "sdkgen-client";
7521
+ var ConsumerEventTag = class extends TagAbstract54 {
7334
7522
  /**
7335
7523
  * Returns a specific event for the authenticated user
7336
7524
  *
@@ -7356,7 +7544,7 @@ var ConsumerEventTag = class extends TagAbstract52 {
7356
7544
  if (statusCode >= 0 && statusCode <= 999) {
7357
7545
  throw new CommonMessageException(await response.json());
7358
7546
  }
7359
- throw new UnknownStatusCodeException50("The server returned an unknown status code: " + statusCode);
7547
+ throw new UnknownStatusCodeException52("The server returned an unknown status code: " + statusCode);
7360
7548
  }
7361
7549
  /**
7362
7550
  * Returns a paginated list of apps which are assigned to the authenticated user
@@ -7385,14 +7573,14 @@ var ConsumerEventTag = class extends TagAbstract52 {
7385
7573
  if (statusCode >= 0 && statusCode <= 999) {
7386
7574
  throw new CommonMessageException(await response.json());
7387
7575
  }
7388
- throw new UnknownStatusCodeException50("The server returned an unknown status code: " + statusCode);
7576
+ throw new UnknownStatusCodeException52("The server returned an unknown status code: " + statusCode);
7389
7577
  }
7390
7578
  };
7391
7579
 
7392
7580
  // src/ConsumerFormTag.ts
7393
- import { TagAbstract as TagAbstract53 } from "sdkgen-client";
7394
- import { UnknownStatusCodeException as UnknownStatusCodeException51 } from "sdkgen-client";
7395
- var ConsumerFormTag = class extends TagAbstract53 {
7581
+ import { TagAbstract as TagAbstract55 } from "sdkgen-client";
7582
+ import { UnknownStatusCodeException as UnknownStatusCodeException53 } from "sdkgen-client";
7583
+ var ConsumerFormTag = class extends TagAbstract55 {
7396
7584
  /**
7397
7585
  * Returns a specific form for the authenticated user
7398
7586
  *
@@ -7418,7 +7606,7 @@ var ConsumerFormTag = class extends TagAbstract53 {
7418
7606
  if (statusCode >= 0 && statusCode <= 999) {
7419
7607
  throw new CommonMessageException(await response.json());
7420
7608
  }
7421
- throw new UnknownStatusCodeException51("The server returned an unknown status code: " + statusCode);
7609
+ throw new UnknownStatusCodeException53("The server returned an unknown status code: " + statusCode);
7422
7610
  }
7423
7611
  /**
7424
7612
  * Returns a paginated list of forms which are relevant to the authenticated user
@@ -7447,14 +7635,14 @@ var ConsumerFormTag = class extends TagAbstract53 {
7447
7635
  if (statusCode >= 0 && statusCode <= 999) {
7448
7636
  throw new CommonMessageException(await response.json());
7449
7637
  }
7450
- throw new UnknownStatusCodeException51("The server returned an unknown status code: " + statusCode);
7638
+ throw new UnknownStatusCodeException53("The server returned an unknown status code: " + statusCode);
7451
7639
  }
7452
7640
  };
7453
7641
 
7454
7642
  // src/ConsumerGrantTag.ts
7455
- import { TagAbstract as TagAbstract54 } from "sdkgen-client";
7456
- import { UnknownStatusCodeException as UnknownStatusCodeException52 } from "sdkgen-client";
7457
- var ConsumerGrantTag = class extends TagAbstract54 {
7643
+ import { TagAbstract as TagAbstract56 } from "sdkgen-client";
7644
+ import { UnknownStatusCodeException as UnknownStatusCodeException54 } from "sdkgen-client";
7645
+ var ConsumerGrantTag = class extends TagAbstract56 {
7458
7646
  /**
7459
7647
  * Deletes an existing grant for an app which was created by the authenticated user
7460
7648
  *
@@ -7480,7 +7668,7 @@ var ConsumerGrantTag = class extends TagAbstract54 {
7480
7668
  if (statusCode >= 0 && statusCode <= 999) {
7481
7669
  throw new CommonMessageException(await response.json());
7482
7670
  }
7483
- throw new UnknownStatusCodeException52("The server returned an unknown status code: " + statusCode);
7671
+ throw new UnknownStatusCodeException54("The server returned an unknown status code: " + statusCode);
7484
7672
  }
7485
7673
  /**
7486
7674
  * Returns a paginated list of grants which are assigned to the authenticated user
@@ -7509,14 +7697,14 @@ var ConsumerGrantTag = class extends TagAbstract54 {
7509
7697
  if (statusCode >= 0 && statusCode <= 999) {
7510
7698
  throw new CommonMessageException(await response.json());
7511
7699
  }
7512
- throw new UnknownStatusCodeException52("The server returned an unknown status code: " + statusCode);
7700
+ throw new UnknownStatusCodeException54("The server returned an unknown status code: " + statusCode);
7513
7701
  }
7514
7702
  };
7515
7703
 
7516
7704
  // src/ConsumerIdentityTag.ts
7517
- import { TagAbstract as TagAbstract55 } from "sdkgen-client";
7518
- import { UnknownStatusCodeException as UnknownStatusCodeException53 } from "sdkgen-client";
7519
- var ConsumerIdentityTag = class extends TagAbstract55 {
7705
+ import { TagAbstract as TagAbstract57 } from "sdkgen-client";
7706
+ import { UnknownStatusCodeException as UnknownStatusCodeException55 } from "sdkgen-client";
7707
+ var ConsumerIdentityTag = class extends TagAbstract57 {
7520
7708
  /**
7521
7709
  * Identity callback endpoint to exchange an access token
7522
7710
  *
@@ -7542,7 +7730,7 @@ var ConsumerIdentityTag = class extends TagAbstract55 {
7542
7730
  if (statusCode >= 0 && statusCode <= 999) {
7543
7731
  throw new CommonMessageException(await response.json());
7544
7732
  }
7545
- throw new UnknownStatusCodeException53("The server returned an unknown status code: " + statusCode);
7733
+ throw new UnknownStatusCodeException55("The server returned an unknown status code: " + statusCode);
7546
7734
  }
7547
7735
  /**
7548
7736
  * Returns a paginated list of identities which are relevant to the authenticated user
@@ -7570,7 +7758,7 @@ var ConsumerIdentityTag = class extends TagAbstract55 {
7570
7758
  if (statusCode >= 0 && statusCode <= 999) {
7571
7759
  throw new CommonMessageException(await response.json());
7572
7760
  }
7573
- throw new UnknownStatusCodeException53("The server returned an unknown status code: " + statusCode);
7761
+ throw new UnknownStatusCodeException55("The server returned an unknown status code: " + statusCode);
7574
7762
  }
7575
7763
  /**
7576
7764
  * Redirect the user to the configured identity provider
@@ -7597,14 +7785,14 @@ var ConsumerIdentityTag = class extends TagAbstract55 {
7597
7785
  if (statusCode >= 0 && statusCode <= 999) {
7598
7786
  throw new CommonMessageException(await response.json());
7599
7787
  }
7600
- throw new UnknownStatusCodeException53("The server returned an unknown status code: " + statusCode);
7788
+ throw new UnknownStatusCodeException55("The server returned an unknown status code: " + statusCode);
7601
7789
  }
7602
7790
  };
7603
7791
 
7604
7792
  // src/ConsumerLogTag.ts
7605
- import { TagAbstract as TagAbstract56 } from "sdkgen-client";
7606
- import { UnknownStatusCodeException as UnknownStatusCodeException54 } from "sdkgen-client";
7607
- var ConsumerLogTag = class extends TagAbstract56 {
7793
+ import { TagAbstract as TagAbstract58 } from "sdkgen-client";
7794
+ import { UnknownStatusCodeException as UnknownStatusCodeException56 } from "sdkgen-client";
7795
+ var ConsumerLogTag = class extends TagAbstract58 {
7608
7796
  /**
7609
7797
  * Returns a specific log for the authenticated user
7610
7798
  *
@@ -7630,7 +7818,7 @@ var ConsumerLogTag = class extends TagAbstract56 {
7630
7818
  if (statusCode >= 0 && statusCode <= 999) {
7631
7819
  throw new CommonMessageException(await response.json());
7632
7820
  }
7633
- throw new UnknownStatusCodeException54("The server returned an unknown status code: " + statusCode);
7821
+ throw new UnknownStatusCodeException56("The server returned an unknown status code: " + statusCode);
7634
7822
  }
7635
7823
  /**
7636
7824
  * Returns a paginated list of logs which are assigned to the authenticated user
@@ -7659,14 +7847,14 @@ var ConsumerLogTag = class extends TagAbstract56 {
7659
7847
  if (statusCode >= 0 && statusCode <= 999) {
7660
7848
  throw new CommonMessageException(await response.json());
7661
7849
  }
7662
- throw new UnknownStatusCodeException54("The server returned an unknown status code: " + statusCode);
7850
+ throw new UnknownStatusCodeException56("The server returned an unknown status code: " + statusCode);
7663
7851
  }
7664
7852
  };
7665
7853
 
7666
7854
  // src/ConsumerPageTag.ts
7667
- import { TagAbstract as TagAbstract57 } from "sdkgen-client";
7668
- import { UnknownStatusCodeException as UnknownStatusCodeException55 } from "sdkgen-client";
7669
- var ConsumerPageTag = class extends TagAbstract57 {
7855
+ import { TagAbstract as TagAbstract59 } from "sdkgen-client";
7856
+ import { UnknownStatusCodeException as UnknownStatusCodeException57 } from "sdkgen-client";
7857
+ var ConsumerPageTag = class extends TagAbstract59 {
7670
7858
  /**
7671
7859
  * Returns a specific page for the authenticated user
7672
7860
  *
@@ -7692,7 +7880,7 @@ var ConsumerPageTag = class extends TagAbstract57 {
7692
7880
  if (statusCode >= 0 && statusCode <= 999) {
7693
7881
  throw new CommonMessageException(await response.json());
7694
7882
  }
7695
- throw new UnknownStatusCodeException55("The server returned an unknown status code: " + statusCode);
7883
+ throw new UnknownStatusCodeException57("The server returned an unknown status code: " + statusCode);
7696
7884
  }
7697
7885
  /**
7698
7886
  * Returns a paginated list of pages which are relevant to the authenticated user
@@ -7721,14 +7909,14 @@ var ConsumerPageTag = class extends TagAbstract57 {
7721
7909
  if (statusCode >= 0 && statusCode <= 999) {
7722
7910
  throw new CommonMessageException(await response.json());
7723
7911
  }
7724
- throw new UnknownStatusCodeException55("The server returned an unknown status code: " + statusCode);
7912
+ throw new UnknownStatusCodeException57("The server returned an unknown status code: " + statusCode);
7725
7913
  }
7726
7914
  };
7727
7915
 
7728
7916
  // src/ConsumerPaymentTag.ts
7729
- import { TagAbstract as TagAbstract58 } from "sdkgen-client";
7730
- import { UnknownStatusCodeException as UnknownStatusCodeException56 } from "sdkgen-client";
7731
- var ConsumerPaymentTag = class extends TagAbstract58 {
7917
+ import { TagAbstract as TagAbstract60 } from "sdkgen-client";
7918
+ import { UnknownStatusCodeException as UnknownStatusCodeException58 } from "sdkgen-client";
7919
+ var ConsumerPaymentTag = class extends TagAbstract60 {
7732
7920
  /**
7733
7921
  * Start the checkout process for a specific plan
7734
7922
  *
@@ -7757,7 +7945,7 @@ var ConsumerPaymentTag = class extends TagAbstract58 {
7757
7945
  if (statusCode >= 0 && statusCode <= 999) {
7758
7946
  throw new CommonMessageException(await response.json());
7759
7947
  }
7760
- throw new UnknownStatusCodeException56("The server returned an unknown status code: " + statusCode);
7948
+ throw new UnknownStatusCodeException58("The server returned an unknown status code: " + statusCode);
7761
7949
  }
7762
7950
  /**
7763
7951
  * Generates a payment portal link for the authenticated user
@@ -7787,14 +7975,14 @@ var ConsumerPaymentTag = class extends TagAbstract58 {
7787
7975
  if (statusCode >= 0 && statusCode <= 999) {
7788
7976
  throw new CommonMessageException(await response.json());
7789
7977
  }
7790
- throw new UnknownStatusCodeException56("The server returned an unknown status code: " + statusCode);
7978
+ throw new UnknownStatusCodeException58("The server returned an unknown status code: " + statusCode);
7791
7979
  }
7792
7980
  };
7793
7981
 
7794
7982
  // src/ConsumerPlanTag.ts
7795
- import { TagAbstract as TagAbstract59 } from "sdkgen-client";
7796
- import { UnknownStatusCodeException as UnknownStatusCodeException57 } from "sdkgen-client";
7797
- var ConsumerPlanTag = class extends TagAbstract59 {
7983
+ import { TagAbstract as TagAbstract61 } from "sdkgen-client";
7984
+ import { UnknownStatusCodeException as UnknownStatusCodeException59 } from "sdkgen-client";
7985
+ var ConsumerPlanTag = class extends TagAbstract61 {
7798
7986
  /**
7799
7987
  * Returns a specific plan for the authenticated user
7800
7988
  *
@@ -7820,7 +8008,7 @@ var ConsumerPlanTag = class extends TagAbstract59 {
7820
8008
  if (statusCode >= 0 && statusCode <= 999) {
7821
8009
  throw new CommonMessageException(await response.json());
7822
8010
  }
7823
- throw new UnknownStatusCodeException57("The server returned an unknown status code: " + statusCode);
8011
+ throw new UnknownStatusCodeException59("The server returned an unknown status code: " + statusCode);
7824
8012
  }
7825
8013
  /**
7826
8014
  * Returns a paginated list of plans which are relevant to the authenticated user
@@ -7849,14 +8037,14 @@ var ConsumerPlanTag = class extends TagAbstract59 {
7849
8037
  if (statusCode >= 0 && statusCode <= 999) {
7850
8038
  throw new CommonMessageException(await response.json());
7851
8039
  }
7852
- throw new UnknownStatusCodeException57("The server returned an unknown status code: " + statusCode);
8040
+ throw new UnknownStatusCodeException59("The server returned an unknown status code: " + statusCode);
7853
8041
  }
7854
8042
  };
7855
8043
 
7856
8044
  // src/ConsumerScopeTag.ts
7857
- import { TagAbstract as TagAbstract60 } from "sdkgen-client";
7858
- import { UnknownStatusCodeException as UnknownStatusCodeException58 } from "sdkgen-client";
7859
- var ConsumerScopeTag = class extends TagAbstract60 {
8045
+ import { TagAbstract as TagAbstract62 } from "sdkgen-client";
8046
+ import { UnknownStatusCodeException as UnknownStatusCodeException60 } from "sdkgen-client";
8047
+ var ConsumerScopeTag = class extends TagAbstract62 {
7860
8048
  /**
7861
8049
  * Returns a paginated list of scopes which are assigned to the authenticated user
7862
8050
  *
@@ -7884,7 +8072,7 @@ var ConsumerScopeTag = class extends TagAbstract60 {
7884
8072
  if (statusCode >= 0 && statusCode <= 999) {
7885
8073
  throw new CommonMessageException(await response.json());
7886
8074
  }
7887
- throw new UnknownStatusCodeException58("The server returned an unknown status code: " + statusCode);
8075
+ throw new UnknownStatusCodeException60("The server returned an unknown status code: " + statusCode);
7888
8076
  }
7889
8077
  /**
7890
8078
  * Returns all scopes by category
@@ -7909,14 +8097,14 @@ var ConsumerScopeTag = class extends TagAbstract60 {
7909
8097
  if (statusCode >= 0 && statusCode <= 999) {
7910
8098
  throw new CommonMessageException(await response.json());
7911
8099
  }
7912
- throw new UnknownStatusCodeException58("The server returned an unknown status code: " + statusCode);
8100
+ throw new UnknownStatusCodeException60("The server returned an unknown status code: " + statusCode);
7913
8101
  }
7914
8102
  };
7915
8103
 
7916
8104
  // src/ConsumerTokenTag.ts
7917
- import { TagAbstract as TagAbstract61 } from "sdkgen-client";
7918
- import { UnknownStatusCodeException as UnknownStatusCodeException59 } from "sdkgen-client";
7919
- var ConsumerTokenTag = class extends TagAbstract61 {
8105
+ import { TagAbstract as TagAbstract63 } from "sdkgen-client";
8106
+ import { UnknownStatusCodeException as UnknownStatusCodeException61 } from "sdkgen-client";
8107
+ var ConsumerTokenTag = class extends TagAbstract63 {
7920
8108
  /**
7921
8109
  * Creates a new token for the authenticated user
7922
8110
  *
@@ -7943,7 +8131,7 @@ var ConsumerTokenTag = class extends TagAbstract61 {
7943
8131
  if (statusCode >= 0 && statusCode <= 999) {
7944
8132
  throw new CommonMessageException(await response.json());
7945
8133
  }
7946
- throw new UnknownStatusCodeException59("The server returned an unknown status code: " + statusCode);
8134
+ throw new UnknownStatusCodeException61("The server returned an unknown status code: " + statusCode);
7947
8135
  }
7948
8136
  /**
7949
8137
  * Deletes an existing token for the authenticated user
@@ -7970,7 +8158,7 @@ var ConsumerTokenTag = class extends TagAbstract61 {
7970
8158
  if (statusCode >= 0 && statusCode <= 999) {
7971
8159
  throw new CommonMessageException(await response.json());
7972
8160
  }
7973
- throw new UnknownStatusCodeException59("The server returned an unknown status code: " + statusCode);
8161
+ throw new UnknownStatusCodeException61("The server returned an unknown status code: " + statusCode);
7974
8162
  }
7975
8163
  /**
7976
8164
  * Returns a specific token for the authenticated user
@@ -7997,7 +8185,7 @@ var ConsumerTokenTag = class extends TagAbstract61 {
7997
8185
  if (statusCode >= 0 && statusCode <= 999) {
7998
8186
  throw new CommonMessageException(await response.json());
7999
8187
  }
8000
- throw new UnknownStatusCodeException59("The server returned an unknown status code: " + statusCode);
8188
+ throw new UnknownStatusCodeException61("The server returned an unknown status code: " + statusCode);
8001
8189
  }
8002
8190
  /**
8003
8191
  * Returns a paginated list of tokens which are assigned to the authenticated user
@@ -8026,7 +8214,7 @@ var ConsumerTokenTag = class extends TagAbstract61 {
8026
8214
  if (statusCode >= 0 && statusCode <= 999) {
8027
8215
  throw new CommonMessageException(await response.json());
8028
8216
  }
8029
- throw new UnknownStatusCodeException59("The server returned an unknown status code: " + statusCode);
8217
+ throw new UnknownStatusCodeException61("The server returned an unknown status code: " + statusCode);
8030
8218
  }
8031
8219
  /**
8032
8220
  * Updates an existing token for the authenticated user
@@ -8056,14 +8244,14 @@ var ConsumerTokenTag = class extends TagAbstract61 {
8056
8244
  if (statusCode >= 0 && statusCode <= 999) {
8057
8245
  throw new CommonMessageException(await response.json());
8058
8246
  }
8059
- throw new UnknownStatusCodeException59("The server returned an unknown status code: " + statusCode);
8247
+ throw new UnknownStatusCodeException61("The server returned an unknown status code: " + statusCode);
8060
8248
  }
8061
8249
  };
8062
8250
 
8063
8251
  // src/ConsumerTransactionTag.ts
8064
- import { TagAbstract as TagAbstract62 } from "sdkgen-client";
8065
- import { UnknownStatusCodeException as UnknownStatusCodeException60 } from "sdkgen-client";
8066
- var ConsumerTransactionTag = class extends TagAbstract62 {
8252
+ import { TagAbstract as TagAbstract64 } from "sdkgen-client";
8253
+ import { UnknownStatusCodeException as UnknownStatusCodeException62 } from "sdkgen-client";
8254
+ var ConsumerTransactionTag = class extends TagAbstract64 {
8067
8255
  /**
8068
8256
  * Returns a specific transaction for the authenticated user
8069
8257
  *
@@ -8089,7 +8277,7 @@ var ConsumerTransactionTag = class extends TagAbstract62 {
8089
8277
  if (statusCode >= 0 && statusCode <= 999) {
8090
8278
  throw new CommonMessageException(await response.json());
8091
8279
  }
8092
- throw new UnknownStatusCodeException60("The server returned an unknown status code: " + statusCode);
8280
+ throw new UnknownStatusCodeException62("The server returned an unknown status code: " + statusCode);
8093
8281
  }
8094
8282
  /**
8095
8283
  * Returns a paginated list of transactions which are assigned to the authenticated user
@@ -8118,14 +8306,14 @@ var ConsumerTransactionTag = class extends TagAbstract62 {
8118
8306
  if (statusCode >= 0 && statusCode <= 999) {
8119
8307
  throw new CommonMessageException(await response.json());
8120
8308
  }
8121
- throw new UnknownStatusCodeException60("The server returned an unknown status code: " + statusCode);
8309
+ throw new UnknownStatusCodeException62("The server returned an unknown status code: " + statusCode);
8122
8310
  }
8123
8311
  };
8124
8312
 
8125
8313
  // src/ConsumerWebhookTag.ts
8126
- import { TagAbstract as TagAbstract63 } from "sdkgen-client";
8127
- import { UnknownStatusCodeException as UnknownStatusCodeException61 } from "sdkgen-client";
8128
- var ConsumerWebhookTag = class extends TagAbstract63 {
8314
+ import { TagAbstract as TagAbstract65 } from "sdkgen-client";
8315
+ import { UnknownStatusCodeException as UnknownStatusCodeException63 } from "sdkgen-client";
8316
+ var ConsumerWebhookTag = class extends TagAbstract65 {
8129
8317
  /**
8130
8318
  * Creates a new webhook for the authenticated user
8131
8319
  *
@@ -8152,7 +8340,7 @@ var ConsumerWebhookTag = class extends TagAbstract63 {
8152
8340
  if (statusCode >= 0 && statusCode <= 999) {
8153
8341
  throw new CommonMessageException(await response.json());
8154
8342
  }
8155
- throw new UnknownStatusCodeException61("The server returned an unknown status code: " + statusCode);
8343
+ throw new UnknownStatusCodeException63("The server returned an unknown status code: " + statusCode);
8156
8344
  }
8157
8345
  /**
8158
8346
  * Deletes an existing webhook for the authenticated user
@@ -8179,7 +8367,7 @@ var ConsumerWebhookTag = class extends TagAbstract63 {
8179
8367
  if (statusCode >= 0 && statusCode <= 999) {
8180
8368
  throw new CommonMessageException(await response.json());
8181
8369
  }
8182
- throw new UnknownStatusCodeException61("The server returned an unknown status code: " + statusCode);
8370
+ throw new UnknownStatusCodeException63("The server returned an unknown status code: " + statusCode);
8183
8371
  }
8184
8372
  /**
8185
8373
  * Returns a specific webhook for the authenticated user
@@ -8206,7 +8394,7 @@ var ConsumerWebhookTag = class extends TagAbstract63 {
8206
8394
  if (statusCode >= 0 && statusCode <= 999) {
8207
8395
  throw new CommonMessageException(await response.json());
8208
8396
  }
8209
- throw new UnknownStatusCodeException61("The server returned an unknown status code: " + statusCode);
8397
+ throw new UnknownStatusCodeException63("The server returned an unknown status code: " + statusCode);
8210
8398
  }
8211
8399
  /**
8212
8400
  * Returns a paginated list of webhooks which are assigned to the authenticated user
@@ -8235,7 +8423,7 @@ var ConsumerWebhookTag = class extends TagAbstract63 {
8235
8423
  if (statusCode >= 0 && statusCode <= 999) {
8236
8424
  throw new CommonMessageException(await response.json());
8237
8425
  }
8238
- throw new UnknownStatusCodeException61("The server returned an unknown status code: " + statusCode);
8426
+ throw new UnknownStatusCodeException63("The server returned an unknown status code: " + statusCode);
8239
8427
  }
8240
8428
  /**
8241
8429
  * Updates an existing webhook for the authenticated user
@@ -8265,18 +8453,24 @@ var ConsumerWebhookTag = class extends TagAbstract63 {
8265
8453
  if (statusCode >= 0 && statusCode <= 999) {
8266
8454
  throw new CommonMessageException(await response.json());
8267
8455
  }
8268
- throw new UnknownStatusCodeException61("The server returned an unknown status code: " + statusCode);
8456
+ throw new UnknownStatusCodeException63("The server returned an unknown status code: " + statusCode);
8269
8457
  }
8270
8458
  };
8271
8459
 
8272
8460
  // src/ConsumerTag.ts
8273
- var ConsumerTag = class extends TagAbstract64 {
8461
+ var ConsumerTag = class extends TagAbstract66 {
8274
8462
  account() {
8275
8463
  return new ConsumerAccountTag(
8276
8464
  this.httpClient,
8277
8465
  this.parser
8278
8466
  );
8279
8467
  }
8468
+ agent() {
8469
+ return new ConsumerAgentTag(
8470
+ this.httpClient,
8471
+ this.parser
8472
+ );
8473
+ }
8280
8474
  app() {
8281
8475
  return new ConsumerAppTag(
8282
8476
  this.httpClient,
@@ -8358,12 +8552,12 @@ var ConsumerTag = class extends TagAbstract64 {
8358
8552
  };
8359
8553
 
8360
8554
  // src/SystemTag.ts
8361
- import { TagAbstract as TagAbstract68 } from "sdkgen-client";
8555
+ import { TagAbstract as TagAbstract70 } from "sdkgen-client";
8362
8556
 
8363
8557
  // src/SystemConnectionTag.ts
8364
- import { TagAbstract as TagAbstract65 } from "sdkgen-client";
8365
- import { UnknownStatusCodeException as UnknownStatusCodeException62 } from "sdkgen-client";
8366
- var SystemConnectionTag = class extends TagAbstract65 {
8558
+ import { TagAbstract as TagAbstract67 } from "sdkgen-client";
8559
+ import { UnknownStatusCodeException as UnknownStatusCodeException64 } from "sdkgen-client";
8560
+ var SystemConnectionTag = class extends TagAbstract67 {
8367
8561
  /**
8368
8562
  * Connection OAuth2 callback to authorize a connection
8369
8563
  *
@@ -8389,14 +8583,14 @@ var SystemConnectionTag = class extends TagAbstract65 {
8389
8583
  if (statusCode >= 0 && statusCode <= 999) {
8390
8584
  throw new CommonMessageException(await response.json());
8391
8585
  }
8392
- throw new UnknownStatusCodeException62("The server returned an unknown status code: " + statusCode);
8586
+ throw new UnknownStatusCodeException64("The server returned an unknown status code: " + statusCode);
8393
8587
  }
8394
8588
  };
8395
8589
 
8396
8590
  // src/SystemMetaTag.ts
8397
- import { TagAbstract as TagAbstract66 } from "sdkgen-client";
8398
- import { UnknownStatusCodeException as UnknownStatusCodeException63 } from "sdkgen-client";
8399
- var SystemMetaTag = class extends TagAbstract66 {
8591
+ import { TagAbstract as TagAbstract68 } from "sdkgen-client";
8592
+ import { UnknownStatusCodeException as UnknownStatusCodeException65 } from "sdkgen-client";
8593
+ var SystemMetaTag = class extends TagAbstract68 {
8400
8594
  /**
8401
8595
  * Returns meta information and links about the current installed Fusio version
8402
8596
  *
@@ -8420,7 +8614,7 @@ var SystemMetaTag = class extends TagAbstract66 {
8420
8614
  if (statusCode >= 0 && statusCode <= 999) {
8421
8615
  throw new CommonMessageException(await response.json());
8422
8616
  }
8423
- throw new UnknownStatusCodeException63("The server returned an unknown status code: " + statusCode);
8617
+ throw new UnknownStatusCodeException65("The server returned an unknown status code: " + statusCode);
8424
8618
  }
8425
8619
  /**
8426
8620
  * Debug endpoint which returns the provided data
@@ -8448,7 +8642,7 @@ var SystemMetaTag = class extends TagAbstract66 {
8448
8642
  if (statusCode >= 0 && statusCode <= 999) {
8449
8643
  throw new CommonMessageException(await response.json());
8450
8644
  }
8451
- throw new UnknownStatusCodeException63("The server returned an unknown status code: " + statusCode);
8645
+ throw new UnknownStatusCodeException65("The server returned an unknown status code: " + statusCode);
8452
8646
  }
8453
8647
  /**
8454
8648
  * Health check endpoint which returns information about the health status of the system
@@ -8473,7 +8667,7 @@ var SystemMetaTag = class extends TagAbstract66 {
8473
8667
  if (statusCode >= 0 && statusCode <= 999) {
8474
8668
  throw new CommonMessageException(await response.json());
8475
8669
  }
8476
- throw new UnknownStatusCodeException63("The server returned an unknown status code: " + statusCode);
8670
+ throw new UnknownStatusCodeException65("The server returned an unknown status code: " + statusCode);
8477
8671
  }
8478
8672
  /**
8479
8673
  * Returns all available routes
@@ -8498,7 +8692,7 @@ var SystemMetaTag = class extends TagAbstract66 {
8498
8692
  if (statusCode >= 0 && statusCode <= 999) {
8499
8693
  throw new CommonMessageException(await response.json());
8500
8694
  }
8501
- throw new UnknownStatusCodeException63("The server returned an unknown status code: " + statusCode);
8695
+ throw new UnknownStatusCodeException65("The server returned an unknown status code: " + statusCode);
8502
8696
  }
8503
8697
  /**
8504
8698
  * Returns details of a specific schema
@@ -8525,14 +8719,14 @@ var SystemMetaTag = class extends TagAbstract66 {
8525
8719
  if (statusCode >= 0 && statusCode <= 999) {
8526
8720
  throw new CommonMessageException(await response.json());
8527
8721
  }
8528
- throw new UnknownStatusCodeException63("The server returned an unknown status code: " + statusCode);
8722
+ throw new UnknownStatusCodeException65("The server returned an unknown status code: " + statusCode);
8529
8723
  }
8530
8724
  };
8531
8725
 
8532
8726
  // src/SystemPaymentTag.ts
8533
- import { TagAbstract as TagAbstract67 } from "sdkgen-client";
8534
- import { UnknownStatusCodeException as UnknownStatusCodeException64 } from "sdkgen-client";
8535
- var SystemPaymentTag = class extends TagAbstract67 {
8727
+ import { TagAbstract as TagAbstract69 } from "sdkgen-client";
8728
+ import { UnknownStatusCodeException as UnknownStatusCodeException66 } from "sdkgen-client";
8729
+ var SystemPaymentTag = class extends TagAbstract69 {
8536
8730
  /**
8537
8731
  * Payment webhook endpoint after successful purchase of a plan
8538
8732
  *
@@ -8558,12 +8752,12 @@ var SystemPaymentTag = class extends TagAbstract67 {
8558
8752
  if (statusCode >= 0 && statusCode <= 999) {
8559
8753
  throw new CommonMessageException(await response.json());
8560
8754
  }
8561
- throw new UnknownStatusCodeException64("The server returned an unknown status code: " + statusCode);
8755
+ throw new UnknownStatusCodeException66("The server returned an unknown status code: " + statusCode);
8562
8756
  }
8563
8757
  };
8564
8758
 
8565
8759
  // src/SystemTag.ts
8566
- var SystemTag = class extends TagAbstract68 {
8760
+ var SystemTag = class extends TagAbstract70 {
8567
8761
  connection() {
8568
8762
  return new SystemConnectionTag(
8569
8763
  this.httpClient,
@@ -8667,6 +8861,8 @@ export {
8667
8861
  Client,
8668
8862
  CommonMessageException,
8669
8863
  ConsumerAccountTag,
8864
+ ConsumerAgentMessageTag,
8865
+ ConsumerAgentTag,
8670
8866
  ConsumerAppTag,
8671
8867
  ConsumerEventTag,
8672
8868
  ConsumerFormTag,