fusio-sdk 7.0.8 → 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.js CHANGED
@@ -6867,7 +6867,7 @@ import { ClientAbstract } from "sdkgen-client";
6867
6867
  import { Anonymous } from "sdkgen-client";
6868
6868
 
6869
6869
  // src/ConsumerTag.ts
6870
- import { TagAbstract as TagAbstract64 } from "sdkgen-client";
6870
+ import { TagAbstract as TagAbstract66 } from "sdkgen-client";
6871
6871
 
6872
6872
  // src/ConsumerAccountTag.ts
6873
6873
  import { TagAbstract as TagAbstract50 } from "sdkgen-client";
@@ -7180,10 +7180,145 @@ var ConsumerAccountTag = class extends TagAbstract50 {
7180
7180
  }
7181
7181
  };
7182
7182
 
7183
- // src/ConsumerAppTag.ts
7183
+ // src/ConsumerAgentTag.ts
7184
+ import { TagAbstract as TagAbstract52 } from "sdkgen-client";
7185
+ import { UnknownStatusCodeException as UnknownStatusCodeException50 } from "sdkgen-client";
7186
+
7187
+ // src/ConsumerAgentMessageTag.ts
7184
7188
  import { TagAbstract as TagAbstract51 } from "sdkgen-client";
7185
7189
  import { UnknownStatusCodeException as UnknownStatusCodeException49 } from "sdkgen-client";
7186
- var ConsumerAppTag = class extends TagAbstract51 {
7190
+ var ConsumerAgentMessageTag = class extends TagAbstract51 {
7191
+ /**
7192
+ * Returns a paginated list of agent messages
7193
+ *
7194
+ * @returns {Promise<ConsumerAgentMessageCollection>}
7195
+ * @throws {CommonMessageException}
7196
+ * @throws {ClientException}
7197
+ */
7198
+ async getAll(agentId, chatId) {
7199
+ const url = this.parser.url("/consumer/agent/$agent_id<[0-9]+|^~>/message", {
7200
+ "agent_id": agentId
7201
+ });
7202
+ let request = {
7203
+ url,
7204
+ method: "GET",
7205
+ headers: {},
7206
+ params: this.parser.query({
7207
+ "chat_id": chatId
7208
+ }, [])
7209
+ };
7210
+ const response = await this.httpClient.request(request);
7211
+ if (response.ok) {
7212
+ return await response.json();
7213
+ }
7214
+ const statusCode = response.status;
7215
+ if (statusCode >= 0 && statusCode <= 999) {
7216
+ throw new CommonMessageException(await response.json());
7217
+ }
7218
+ throw new UnknownStatusCodeException49("The server returned an unknown status code: " + statusCode);
7219
+ }
7220
+ /**
7221
+ * Submits a new agent message
7222
+ *
7223
+ * @returns {Promise<AgentOutput>}
7224
+ * @throws {CommonMessageException}
7225
+ * @throws {ClientException}
7226
+ */
7227
+ async submit(agentId, payload) {
7228
+ const url = this.parser.url("/consumer/agent/$agent_id<[0-9]+|^~>/message", {
7229
+ "agent_id": agentId
7230
+ });
7231
+ let request = {
7232
+ url,
7233
+ method: "POST",
7234
+ headers: {
7235
+ "Content-Type": "application/json"
7236
+ },
7237
+ params: this.parser.query({}, []),
7238
+ data: payload
7239
+ };
7240
+ const response = await this.httpClient.request(request);
7241
+ if (response.ok) {
7242
+ return await response.json();
7243
+ }
7244
+ const statusCode = response.status;
7245
+ if (statusCode >= 0 && statusCode <= 999) {
7246
+ throw new CommonMessageException(await response.json());
7247
+ }
7248
+ throw new UnknownStatusCodeException49("The server returned an unknown status code: " + statusCode);
7249
+ }
7250
+ };
7251
+
7252
+ // src/ConsumerAgentTag.ts
7253
+ var ConsumerAgentTag = class extends TagAbstract52 {
7254
+ message() {
7255
+ return new ConsumerAgentMessageTag(
7256
+ this.httpClient,
7257
+ this.parser
7258
+ );
7259
+ }
7260
+ /**
7261
+ * Returns a specific agent
7262
+ *
7263
+ * @returns {Promise<ConsumerAgent>}
7264
+ * @throws {CommonMessageException}
7265
+ * @throws {ClientException}
7266
+ */
7267
+ async get(agentId) {
7268
+ const url = this.parser.url("/consumer/agent/$agent_id<[0-9]+|^~>", {
7269
+ "agent_id": agentId
7270
+ });
7271
+ let request = {
7272
+ url,
7273
+ method: "GET",
7274
+ headers: {},
7275
+ params: this.parser.query({}, [])
7276
+ };
7277
+ const response = await this.httpClient.request(request);
7278
+ if (response.ok) {
7279
+ return await response.json();
7280
+ }
7281
+ const statusCode = response.status;
7282
+ if (statusCode >= 0 && statusCode <= 999) {
7283
+ throw new CommonMessageException(await response.json());
7284
+ }
7285
+ throw new UnknownStatusCodeException50("The server returned an unknown status code: " + statusCode);
7286
+ }
7287
+ /**
7288
+ * Returns a paginated list of agents
7289
+ *
7290
+ * @returns {Promise<ConsumerAgentCollection>}
7291
+ * @throws {CommonMessageException}
7292
+ * @throws {ClientException}
7293
+ */
7294
+ async getAll(startIndex, count, search) {
7295
+ const url = this.parser.url("/consumer/agent", {});
7296
+ let request = {
7297
+ url,
7298
+ method: "GET",
7299
+ headers: {},
7300
+ params: this.parser.query({
7301
+ "startIndex": startIndex,
7302
+ "count": count,
7303
+ "search": search
7304
+ }, [])
7305
+ };
7306
+ const response = await this.httpClient.request(request);
7307
+ if (response.ok) {
7308
+ return await response.json();
7309
+ }
7310
+ const statusCode = response.status;
7311
+ if (statusCode >= 0 && statusCode <= 999) {
7312
+ throw new CommonMessageException(await response.json());
7313
+ }
7314
+ throw new UnknownStatusCodeException50("The server returned an unknown status code: " + statusCode);
7315
+ }
7316
+ };
7317
+
7318
+ // src/ConsumerAppTag.ts
7319
+ import { TagAbstract as TagAbstract53 } from "sdkgen-client";
7320
+ import { UnknownStatusCodeException as UnknownStatusCodeException51 } from "sdkgen-client";
7321
+ var ConsumerAppTag = class extends TagAbstract53 {
7187
7322
  /**
7188
7323
  * Creates a new app for the authenticated user
7189
7324
  *
@@ -7210,7 +7345,7 @@ var ConsumerAppTag = class extends TagAbstract51 {
7210
7345
  if (statusCode >= 0 && statusCode <= 999) {
7211
7346
  throw new CommonMessageException(await response.json());
7212
7347
  }
7213
- throw new UnknownStatusCodeException49("The server returned an unknown status code: " + statusCode);
7348
+ throw new UnknownStatusCodeException51("The server returned an unknown status code: " + statusCode);
7214
7349
  }
7215
7350
  /**
7216
7351
  * Deletes an existing app for the authenticated user
@@ -7237,7 +7372,7 @@ var ConsumerAppTag = class extends TagAbstract51 {
7237
7372
  if (statusCode >= 0 && statusCode <= 999) {
7238
7373
  throw new CommonMessageException(await response.json());
7239
7374
  }
7240
- throw new UnknownStatusCodeException49("The server returned an unknown status code: " + statusCode);
7375
+ throw new UnknownStatusCodeException51("The server returned an unknown status code: " + statusCode);
7241
7376
  }
7242
7377
  /**
7243
7378
  * Returns a specific app for the authenticated user
@@ -7264,7 +7399,7 @@ var ConsumerAppTag = class extends TagAbstract51 {
7264
7399
  if (statusCode >= 0 && statusCode <= 999) {
7265
7400
  throw new CommonMessageException(await response.json());
7266
7401
  }
7267
- throw new UnknownStatusCodeException49("The server returned an unknown status code: " + statusCode);
7402
+ throw new UnknownStatusCodeException51("The server returned an unknown status code: " + statusCode);
7268
7403
  }
7269
7404
  /**
7270
7405
  * Returns a paginated list of apps which are assigned to the authenticated user
@@ -7293,7 +7428,7 @@ var ConsumerAppTag = class extends TagAbstract51 {
7293
7428
  if (statusCode >= 0 && statusCode <= 999) {
7294
7429
  throw new CommonMessageException(await response.json());
7295
7430
  }
7296
- throw new UnknownStatusCodeException49("The server returned an unknown status code: " + statusCode);
7431
+ throw new UnknownStatusCodeException51("The server returned an unknown status code: " + statusCode);
7297
7432
  }
7298
7433
  /**
7299
7434
  * Updates an existing app for the authenticated user
@@ -7323,14 +7458,14 @@ var ConsumerAppTag = class extends TagAbstract51 {
7323
7458
  if (statusCode >= 0 && statusCode <= 999) {
7324
7459
  throw new CommonMessageException(await response.json());
7325
7460
  }
7326
- throw new UnknownStatusCodeException49("The server returned an unknown status code: " + statusCode);
7461
+ throw new UnknownStatusCodeException51("The server returned an unknown status code: " + statusCode);
7327
7462
  }
7328
7463
  };
7329
7464
 
7330
7465
  // 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 {
7466
+ import { TagAbstract as TagAbstract54 } from "sdkgen-client";
7467
+ import { UnknownStatusCodeException as UnknownStatusCodeException52 } from "sdkgen-client";
7468
+ var ConsumerEventTag = class extends TagAbstract54 {
7334
7469
  /**
7335
7470
  * Returns a specific event for the authenticated user
7336
7471
  *
@@ -7356,7 +7491,7 @@ var ConsumerEventTag = class extends TagAbstract52 {
7356
7491
  if (statusCode >= 0 && statusCode <= 999) {
7357
7492
  throw new CommonMessageException(await response.json());
7358
7493
  }
7359
- throw new UnknownStatusCodeException50("The server returned an unknown status code: " + statusCode);
7494
+ throw new UnknownStatusCodeException52("The server returned an unknown status code: " + statusCode);
7360
7495
  }
7361
7496
  /**
7362
7497
  * Returns a paginated list of apps which are assigned to the authenticated user
@@ -7385,14 +7520,14 @@ var ConsumerEventTag = class extends TagAbstract52 {
7385
7520
  if (statusCode >= 0 && statusCode <= 999) {
7386
7521
  throw new CommonMessageException(await response.json());
7387
7522
  }
7388
- throw new UnknownStatusCodeException50("The server returned an unknown status code: " + statusCode);
7523
+ throw new UnknownStatusCodeException52("The server returned an unknown status code: " + statusCode);
7389
7524
  }
7390
7525
  };
7391
7526
 
7392
7527
  // 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 {
7528
+ import { TagAbstract as TagAbstract55 } from "sdkgen-client";
7529
+ import { UnknownStatusCodeException as UnknownStatusCodeException53 } from "sdkgen-client";
7530
+ var ConsumerFormTag = class extends TagAbstract55 {
7396
7531
  /**
7397
7532
  * Returns a specific form for the authenticated user
7398
7533
  *
@@ -7418,7 +7553,7 @@ var ConsumerFormTag = class extends TagAbstract53 {
7418
7553
  if (statusCode >= 0 && statusCode <= 999) {
7419
7554
  throw new CommonMessageException(await response.json());
7420
7555
  }
7421
- throw new UnknownStatusCodeException51("The server returned an unknown status code: " + statusCode);
7556
+ throw new UnknownStatusCodeException53("The server returned an unknown status code: " + statusCode);
7422
7557
  }
7423
7558
  /**
7424
7559
  * Returns a paginated list of forms which are relevant to the authenticated user
@@ -7447,14 +7582,14 @@ var ConsumerFormTag = class extends TagAbstract53 {
7447
7582
  if (statusCode >= 0 && statusCode <= 999) {
7448
7583
  throw new CommonMessageException(await response.json());
7449
7584
  }
7450
- throw new UnknownStatusCodeException51("The server returned an unknown status code: " + statusCode);
7585
+ throw new UnknownStatusCodeException53("The server returned an unknown status code: " + statusCode);
7451
7586
  }
7452
7587
  };
7453
7588
 
7454
7589
  // 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 {
7590
+ import { TagAbstract as TagAbstract56 } from "sdkgen-client";
7591
+ import { UnknownStatusCodeException as UnknownStatusCodeException54 } from "sdkgen-client";
7592
+ var ConsumerGrantTag = class extends TagAbstract56 {
7458
7593
  /**
7459
7594
  * Deletes an existing grant for an app which was created by the authenticated user
7460
7595
  *
@@ -7480,7 +7615,7 @@ var ConsumerGrantTag = class extends TagAbstract54 {
7480
7615
  if (statusCode >= 0 && statusCode <= 999) {
7481
7616
  throw new CommonMessageException(await response.json());
7482
7617
  }
7483
- throw new UnknownStatusCodeException52("The server returned an unknown status code: " + statusCode);
7618
+ throw new UnknownStatusCodeException54("The server returned an unknown status code: " + statusCode);
7484
7619
  }
7485
7620
  /**
7486
7621
  * Returns a paginated list of grants which are assigned to the authenticated user
@@ -7509,14 +7644,14 @@ var ConsumerGrantTag = class extends TagAbstract54 {
7509
7644
  if (statusCode >= 0 && statusCode <= 999) {
7510
7645
  throw new CommonMessageException(await response.json());
7511
7646
  }
7512
- throw new UnknownStatusCodeException52("The server returned an unknown status code: " + statusCode);
7647
+ throw new UnknownStatusCodeException54("The server returned an unknown status code: " + statusCode);
7513
7648
  }
7514
7649
  };
7515
7650
 
7516
7651
  // 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 {
7652
+ import { TagAbstract as TagAbstract57 } from "sdkgen-client";
7653
+ import { UnknownStatusCodeException as UnknownStatusCodeException55 } from "sdkgen-client";
7654
+ var ConsumerIdentityTag = class extends TagAbstract57 {
7520
7655
  /**
7521
7656
  * Identity callback endpoint to exchange an access token
7522
7657
  *
@@ -7542,7 +7677,7 @@ var ConsumerIdentityTag = class extends TagAbstract55 {
7542
7677
  if (statusCode >= 0 && statusCode <= 999) {
7543
7678
  throw new CommonMessageException(await response.json());
7544
7679
  }
7545
- throw new UnknownStatusCodeException53("The server returned an unknown status code: " + statusCode);
7680
+ throw new UnknownStatusCodeException55("The server returned an unknown status code: " + statusCode);
7546
7681
  }
7547
7682
  /**
7548
7683
  * Returns a paginated list of identities which are relevant to the authenticated user
@@ -7570,7 +7705,7 @@ var ConsumerIdentityTag = class extends TagAbstract55 {
7570
7705
  if (statusCode >= 0 && statusCode <= 999) {
7571
7706
  throw new CommonMessageException(await response.json());
7572
7707
  }
7573
- throw new UnknownStatusCodeException53("The server returned an unknown status code: " + statusCode);
7708
+ throw new UnknownStatusCodeException55("The server returned an unknown status code: " + statusCode);
7574
7709
  }
7575
7710
  /**
7576
7711
  * Redirect the user to the configured identity provider
@@ -7597,14 +7732,14 @@ var ConsumerIdentityTag = class extends TagAbstract55 {
7597
7732
  if (statusCode >= 0 && statusCode <= 999) {
7598
7733
  throw new CommonMessageException(await response.json());
7599
7734
  }
7600
- throw new UnknownStatusCodeException53("The server returned an unknown status code: " + statusCode);
7735
+ throw new UnknownStatusCodeException55("The server returned an unknown status code: " + statusCode);
7601
7736
  }
7602
7737
  };
7603
7738
 
7604
7739
  // 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 {
7740
+ import { TagAbstract as TagAbstract58 } from "sdkgen-client";
7741
+ import { UnknownStatusCodeException as UnknownStatusCodeException56 } from "sdkgen-client";
7742
+ var ConsumerLogTag = class extends TagAbstract58 {
7608
7743
  /**
7609
7744
  * Returns a specific log for the authenticated user
7610
7745
  *
@@ -7630,7 +7765,7 @@ var ConsumerLogTag = class extends TagAbstract56 {
7630
7765
  if (statusCode >= 0 && statusCode <= 999) {
7631
7766
  throw new CommonMessageException(await response.json());
7632
7767
  }
7633
- throw new UnknownStatusCodeException54("The server returned an unknown status code: " + statusCode);
7768
+ throw new UnknownStatusCodeException56("The server returned an unknown status code: " + statusCode);
7634
7769
  }
7635
7770
  /**
7636
7771
  * Returns a paginated list of logs which are assigned to the authenticated user
@@ -7659,14 +7794,14 @@ var ConsumerLogTag = class extends TagAbstract56 {
7659
7794
  if (statusCode >= 0 && statusCode <= 999) {
7660
7795
  throw new CommonMessageException(await response.json());
7661
7796
  }
7662
- throw new UnknownStatusCodeException54("The server returned an unknown status code: " + statusCode);
7797
+ throw new UnknownStatusCodeException56("The server returned an unknown status code: " + statusCode);
7663
7798
  }
7664
7799
  };
7665
7800
 
7666
7801
  // 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 {
7802
+ import { TagAbstract as TagAbstract59 } from "sdkgen-client";
7803
+ import { UnknownStatusCodeException as UnknownStatusCodeException57 } from "sdkgen-client";
7804
+ var ConsumerPageTag = class extends TagAbstract59 {
7670
7805
  /**
7671
7806
  * Returns a specific page for the authenticated user
7672
7807
  *
@@ -7692,7 +7827,7 @@ var ConsumerPageTag = class extends TagAbstract57 {
7692
7827
  if (statusCode >= 0 && statusCode <= 999) {
7693
7828
  throw new CommonMessageException(await response.json());
7694
7829
  }
7695
- throw new UnknownStatusCodeException55("The server returned an unknown status code: " + statusCode);
7830
+ throw new UnknownStatusCodeException57("The server returned an unknown status code: " + statusCode);
7696
7831
  }
7697
7832
  /**
7698
7833
  * Returns a paginated list of pages which are relevant to the authenticated user
@@ -7721,14 +7856,14 @@ var ConsumerPageTag = class extends TagAbstract57 {
7721
7856
  if (statusCode >= 0 && statusCode <= 999) {
7722
7857
  throw new CommonMessageException(await response.json());
7723
7858
  }
7724
- throw new UnknownStatusCodeException55("The server returned an unknown status code: " + statusCode);
7859
+ throw new UnknownStatusCodeException57("The server returned an unknown status code: " + statusCode);
7725
7860
  }
7726
7861
  };
7727
7862
 
7728
7863
  // 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 {
7864
+ import { TagAbstract as TagAbstract60 } from "sdkgen-client";
7865
+ import { UnknownStatusCodeException as UnknownStatusCodeException58 } from "sdkgen-client";
7866
+ var ConsumerPaymentTag = class extends TagAbstract60 {
7732
7867
  /**
7733
7868
  * Start the checkout process for a specific plan
7734
7869
  *
@@ -7757,7 +7892,7 @@ var ConsumerPaymentTag = class extends TagAbstract58 {
7757
7892
  if (statusCode >= 0 && statusCode <= 999) {
7758
7893
  throw new CommonMessageException(await response.json());
7759
7894
  }
7760
- throw new UnknownStatusCodeException56("The server returned an unknown status code: " + statusCode);
7895
+ throw new UnknownStatusCodeException58("The server returned an unknown status code: " + statusCode);
7761
7896
  }
7762
7897
  /**
7763
7898
  * Generates a payment portal link for the authenticated user
@@ -7787,14 +7922,14 @@ var ConsumerPaymentTag = class extends TagAbstract58 {
7787
7922
  if (statusCode >= 0 && statusCode <= 999) {
7788
7923
  throw new CommonMessageException(await response.json());
7789
7924
  }
7790
- throw new UnknownStatusCodeException56("The server returned an unknown status code: " + statusCode);
7925
+ throw new UnknownStatusCodeException58("The server returned an unknown status code: " + statusCode);
7791
7926
  }
7792
7927
  };
7793
7928
 
7794
7929
  // 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 {
7930
+ import { TagAbstract as TagAbstract61 } from "sdkgen-client";
7931
+ import { UnknownStatusCodeException as UnknownStatusCodeException59 } from "sdkgen-client";
7932
+ var ConsumerPlanTag = class extends TagAbstract61 {
7798
7933
  /**
7799
7934
  * Returns a specific plan for the authenticated user
7800
7935
  *
@@ -7820,7 +7955,7 @@ var ConsumerPlanTag = class extends TagAbstract59 {
7820
7955
  if (statusCode >= 0 && statusCode <= 999) {
7821
7956
  throw new CommonMessageException(await response.json());
7822
7957
  }
7823
- throw new UnknownStatusCodeException57("The server returned an unknown status code: " + statusCode);
7958
+ throw new UnknownStatusCodeException59("The server returned an unknown status code: " + statusCode);
7824
7959
  }
7825
7960
  /**
7826
7961
  * Returns a paginated list of plans which are relevant to the authenticated user
@@ -7849,14 +7984,14 @@ var ConsumerPlanTag = class extends TagAbstract59 {
7849
7984
  if (statusCode >= 0 && statusCode <= 999) {
7850
7985
  throw new CommonMessageException(await response.json());
7851
7986
  }
7852
- throw new UnknownStatusCodeException57("The server returned an unknown status code: " + statusCode);
7987
+ throw new UnknownStatusCodeException59("The server returned an unknown status code: " + statusCode);
7853
7988
  }
7854
7989
  };
7855
7990
 
7856
7991
  // 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 {
7992
+ import { TagAbstract as TagAbstract62 } from "sdkgen-client";
7993
+ import { UnknownStatusCodeException as UnknownStatusCodeException60 } from "sdkgen-client";
7994
+ var ConsumerScopeTag = class extends TagAbstract62 {
7860
7995
  /**
7861
7996
  * Returns a paginated list of scopes which are assigned to the authenticated user
7862
7997
  *
@@ -7884,7 +8019,7 @@ var ConsumerScopeTag = class extends TagAbstract60 {
7884
8019
  if (statusCode >= 0 && statusCode <= 999) {
7885
8020
  throw new CommonMessageException(await response.json());
7886
8021
  }
7887
- throw new UnknownStatusCodeException58("The server returned an unknown status code: " + statusCode);
8022
+ throw new UnknownStatusCodeException60("The server returned an unknown status code: " + statusCode);
7888
8023
  }
7889
8024
  /**
7890
8025
  * Returns all scopes by category
@@ -7909,14 +8044,14 @@ var ConsumerScopeTag = class extends TagAbstract60 {
7909
8044
  if (statusCode >= 0 && statusCode <= 999) {
7910
8045
  throw new CommonMessageException(await response.json());
7911
8046
  }
7912
- throw new UnknownStatusCodeException58("The server returned an unknown status code: " + statusCode);
8047
+ throw new UnknownStatusCodeException60("The server returned an unknown status code: " + statusCode);
7913
8048
  }
7914
8049
  };
7915
8050
 
7916
8051
  // 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 {
8052
+ import { TagAbstract as TagAbstract63 } from "sdkgen-client";
8053
+ import { UnknownStatusCodeException as UnknownStatusCodeException61 } from "sdkgen-client";
8054
+ var ConsumerTokenTag = class extends TagAbstract63 {
7920
8055
  /**
7921
8056
  * Creates a new token for the authenticated user
7922
8057
  *
@@ -7943,7 +8078,7 @@ var ConsumerTokenTag = class extends TagAbstract61 {
7943
8078
  if (statusCode >= 0 && statusCode <= 999) {
7944
8079
  throw new CommonMessageException(await response.json());
7945
8080
  }
7946
- throw new UnknownStatusCodeException59("The server returned an unknown status code: " + statusCode);
8081
+ throw new UnknownStatusCodeException61("The server returned an unknown status code: " + statusCode);
7947
8082
  }
7948
8083
  /**
7949
8084
  * Deletes an existing token for the authenticated user
@@ -7970,7 +8105,7 @@ var ConsumerTokenTag = class extends TagAbstract61 {
7970
8105
  if (statusCode >= 0 && statusCode <= 999) {
7971
8106
  throw new CommonMessageException(await response.json());
7972
8107
  }
7973
- throw new UnknownStatusCodeException59("The server returned an unknown status code: " + statusCode);
8108
+ throw new UnknownStatusCodeException61("The server returned an unknown status code: " + statusCode);
7974
8109
  }
7975
8110
  /**
7976
8111
  * Returns a specific token for the authenticated user
@@ -7997,7 +8132,7 @@ var ConsumerTokenTag = class extends TagAbstract61 {
7997
8132
  if (statusCode >= 0 && statusCode <= 999) {
7998
8133
  throw new CommonMessageException(await response.json());
7999
8134
  }
8000
- throw new UnknownStatusCodeException59("The server returned an unknown status code: " + statusCode);
8135
+ throw new UnknownStatusCodeException61("The server returned an unknown status code: " + statusCode);
8001
8136
  }
8002
8137
  /**
8003
8138
  * Returns a paginated list of tokens which are assigned to the authenticated user
@@ -8026,7 +8161,7 @@ var ConsumerTokenTag = class extends TagAbstract61 {
8026
8161
  if (statusCode >= 0 && statusCode <= 999) {
8027
8162
  throw new CommonMessageException(await response.json());
8028
8163
  }
8029
- throw new UnknownStatusCodeException59("The server returned an unknown status code: " + statusCode);
8164
+ throw new UnknownStatusCodeException61("The server returned an unknown status code: " + statusCode);
8030
8165
  }
8031
8166
  /**
8032
8167
  * Updates an existing token for the authenticated user
@@ -8056,14 +8191,14 @@ var ConsumerTokenTag = class extends TagAbstract61 {
8056
8191
  if (statusCode >= 0 && statusCode <= 999) {
8057
8192
  throw new CommonMessageException(await response.json());
8058
8193
  }
8059
- throw new UnknownStatusCodeException59("The server returned an unknown status code: " + statusCode);
8194
+ throw new UnknownStatusCodeException61("The server returned an unknown status code: " + statusCode);
8060
8195
  }
8061
8196
  };
8062
8197
 
8063
8198
  // 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 {
8199
+ import { TagAbstract as TagAbstract64 } from "sdkgen-client";
8200
+ import { UnknownStatusCodeException as UnknownStatusCodeException62 } from "sdkgen-client";
8201
+ var ConsumerTransactionTag = class extends TagAbstract64 {
8067
8202
  /**
8068
8203
  * Returns a specific transaction for the authenticated user
8069
8204
  *
@@ -8089,7 +8224,7 @@ var ConsumerTransactionTag = class extends TagAbstract62 {
8089
8224
  if (statusCode >= 0 && statusCode <= 999) {
8090
8225
  throw new CommonMessageException(await response.json());
8091
8226
  }
8092
- throw new UnknownStatusCodeException60("The server returned an unknown status code: " + statusCode);
8227
+ throw new UnknownStatusCodeException62("The server returned an unknown status code: " + statusCode);
8093
8228
  }
8094
8229
  /**
8095
8230
  * Returns a paginated list of transactions which are assigned to the authenticated user
@@ -8118,14 +8253,14 @@ var ConsumerTransactionTag = class extends TagAbstract62 {
8118
8253
  if (statusCode >= 0 && statusCode <= 999) {
8119
8254
  throw new CommonMessageException(await response.json());
8120
8255
  }
8121
- throw new UnknownStatusCodeException60("The server returned an unknown status code: " + statusCode);
8256
+ throw new UnknownStatusCodeException62("The server returned an unknown status code: " + statusCode);
8122
8257
  }
8123
8258
  };
8124
8259
 
8125
8260
  // 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 {
8261
+ import { TagAbstract as TagAbstract65 } from "sdkgen-client";
8262
+ import { UnknownStatusCodeException as UnknownStatusCodeException63 } from "sdkgen-client";
8263
+ var ConsumerWebhookTag = class extends TagAbstract65 {
8129
8264
  /**
8130
8265
  * Creates a new webhook for the authenticated user
8131
8266
  *
@@ -8152,7 +8287,7 @@ var ConsumerWebhookTag = class extends TagAbstract63 {
8152
8287
  if (statusCode >= 0 && statusCode <= 999) {
8153
8288
  throw new CommonMessageException(await response.json());
8154
8289
  }
8155
- throw new UnknownStatusCodeException61("The server returned an unknown status code: " + statusCode);
8290
+ throw new UnknownStatusCodeException63("The server returned an unknown status code: " + statusCode);
8156
8291
  }
8157
8292
  /**
8158
8293
  * Deletes an existing webhook for the authenticated user
@@ -8179,7 +8314,7 @@ var ConsumerWebhookTag = class extends TagAbstract63 {
8179
8314
  if (statusCode >= 0 && statusCode <= 999) {
8180
8315
  throw new CommonMessageException(await response.json());
8181
8316
  }
8182
- throw new UnknownStatusCodeException61("The server returned an unknown status code: " + statusCode);
8317
+ throw new UnknownStatusCodeException63("The server returned an unknown status code: " + statusCode);
8183
8318
  }
8184
8319
  /**
8185
8320
  * Returns a specific webhook for the authenticated user
@@ -8206,7 +8341,7 @@ var ConsumerWebhookTag = class extends TagAbstract63 {
8206
8341
  if (statusCode >= 0 && statusCode <= 999) {
8207
8342
  throw new CommonMessageException(await response.json());
8208
8343
  }
8209
- throw new UnknownStatusCodeException61("The server returned an unknown status code: " + statusCode);
8344
+ throw new UnknownStatusCodeException63("The server returned an unknown status code: " + statusCode);
8210
8345
  }
8211
8346
  /**
8212
8347
  * Returns a paginated list of webhooks which are assigned to the authenticated user
@@ -8235,7 +8370,7 @@ var ConsumerWebhookTag = class extends TagAbstract63 {
8235
8370
  if (statusCode >= 0 && statusCode <= 999) {
8236
8371
  throw new CommonMessageException(await response.json());
8237
8372
  }
8238
- throw new UnknownStatusCodeException61("The server returned an unknown status code: " + statusCode);
8373
+ throw new UnknownStatusCodeException63("The server returned an unknown status code: " + statusCode);
8239
8374
  }
8240
8375
  /**
8241
8376
  * Updates an existing webhook for the authenticated user
@@ -8265,18 +8400,24 @@ var ConsumerWebhookTag = class extends TagAbstract63 {
8265
8400
  if (statusCode >= 0 && statusCode <= 999) {
8266
8401
  throw new CommonMessageException(await response.json());
8267
8402
  }
8268
- throw new UnknownStatusCodeException61("The server returned an unknown status code: " + statusCode);
8403
+ throw new UnknownStatusCodeException63("The server returned an unknown status code: " + statusCode);
8269
8404
  }
8270
8405
  };
8271
8406
 
8272
8407
  // src/ConsumerTag.ts
8273
- var ConsumerTag = class extends TagAbstract64 {
8408
+ var ConsumerTag = class extends TagAbstract66 {
8274
8409
  account() {
8275
8410
  return new ConsumerAccountTag(
8276
8411
  this.httpClient,
8277
8412
  this.parser
8278
8413
  );
8279
8414
  }
8415
+ agent() {
8416
+ return new ConsumerAgentTag(
8417
+ this.httpClient,
8418
+ this.parser
8419
+ );
8420
+ }
8280
8421
  app() {
8281
8422
  return new ConsumerAppTag(
8282
8423
  this.httpClient,
@@ -8358,12 +8499,12 @@ var ConsumerTag = class extends TagAbstract64 {
8358
8499
  };
8359
8500
 
8360
8501
  // src/SystemTag.ts
8361
- import { TagAbstract as TagAbstract68 } from "sdkgen-client";
8502
+ import { TagAbstract as TagAbstract70 } from "sdkgen-client";
8362
8503
 
8363
8504
  // 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 {
8505
+ import { TagAbstract as TagAbstract67 } from "sdkgen-client";
8506
+ import { UnknownStatusCodeException as UnknownStatusCodeException64 } from "sdkgen-client";
8507
+ var SystemConnectionTag = class extends TagAbstract67 {
8367
8508
  /**
8368
8509
  * Connection OAuth2 callback to authorize a connection
8369
8510
  *
@@ -8389,14 +8530,14 @@ var SystemConnectionTag = class extends TagAbstract65 {
8389
8530
  if (statusCode >= 0 && statusCode <= 999) {
8390
8531
  throw new CommonMessageException(await response.json());
8391
8532
  }
8392
- throw new UnknownStatusCodeException62("The server returned an unknown status code: " + statusCode);
8533
+ throw new UnknownStatusCodeException64("The server returned an unknown status code: " + statusCode);
8393
8534
  }
8394
8535
  };
8395
8536
 
8396
8537
  // 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 {
8538
+ import { TagAbstract as TagAbstract68 } from "sdkgen-client";
8539
+ import { UnknownStatusCodeException as UnknownStatusCodeException65 } from "sdkgen-client";
8540
+ var SystemMetaTag = class extends TagAbstract68 {
8400
8541
  /**
8401
8542
  * Returns meta information and links about the current installed Fusio version
8402
8543
  *
@@ -8420,7 +8561,7 @@ var SystemMetaTag = class extends TagAbstract66 {
8420
8561
  if (statusCode >= 0 && statusCode <= 999) {
8421
8562
  throw new CommonMessageException(await response.json());
8422
8563
  }
8423
- throw new UnknownStatusCodeException63("The server returned an unknown status code: " + statusCode);
8564
+ throw new UnknownStatusCodeException65("The server returned an unknown status code: " + statusCode);
8424
8565
  }
8425
8566
  /**
8426
8567
  * Debug endpoint which returns the provided data
@@ -8448,7 +8589,7 @@ var SystemMetaTag = class extends TagAbstract66 {
8448
8589
  if (statusCode >= 0 && statusCode <= 999) {
8449
8590
  throw new CommonMessageException(await response.json());
8450
8591
  }
8451
- throw new UnknownStatusCodeException63("The server returned an unknown status code: " + statusCode);
8592
+ throw new UnknownStatusCodeException65("The server returned an unknown status code: " + statusCode);
8452
8593
  }
8453
8594
  /**
8454
8595
  * Health check endpoint which returns information about the health status of the system
@@ -8473,7 +8614,7 @@ var SystemMetaTag = class extends TagAbstract66 {
8473
8614
  if (statusCode >= 0 && statusCode <= 999) {
8474
8615
  throw new CommonMessageException(await response.json());
8475
8616
  }
8476
- throw new UnknownStatusCodeException63("The server returned an unknown status code: " + statusCode);
8617
+ throw new UnknownStatusCodeException65("The server returned an unknown status code: " + statusCode);
8477
8618
  }
8478
8619
  /**
8479
8620
  * Returns all available routes
@@ -8498,7 +8639,7 @@ var SystemMetaTag = class extends TagAbstract66 {
8498
8639
  if (statusCode >= 0 && statusCode <= 999) {
8499
8640
  throw new CommonMessageException(await response.json());
8500
8641
  }
8501
- throw new UnknownStatusCodeException63("The server returned an unknown status code: " + statusCode);
8642
+ throw new UnknownStatusCodeException65("The server returned an unknown status code: " + statusCode);
8502
8643
  }
8503
8644
  /**
8504
8645
  * Returns details of a specific schema
@@ -8525,14 +8666,14 @@ var SystemMetaTag = class extends TagAbstract66 {
8525
8666
  if (statusCode >= 0 && statusCode <= 999) {
8526
8667
  throw new CommonMessageException(await response.json());
8527
8668
  }
8528
- throw new UnknownStatusCodeException63("The server returned an unknown status code: " + statusCode);
8669
+ throw new UnknownStatusCodeException65("The server returned an unknown status code: " + statusCode);
8529
8670
  }
8530
8671
  };
8531
8672
 
8532
8673
  // 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 {
8674
+ import { TagAbstract as TagAbstract69 } from "sdkgen-client";
8675
+ import { UnknownStatusCodeException as UnknownStatusCodeException66 } from "sdkgen-client";
8676
+ var SystemPaymentTag = class extends TagAbstract69 {
8536
8677
  /**
8537
8678
  * Payment webhook endpoint after successful purchase of a plan
8538
8679
  *
@@ -8558,12 +8699,12 @@ var SystemPaymentTag = class extends TagAbstract67 {
8558
8699
  if (statusCode >= 0 && statusCode <= 999) {
8559
8700
  throw new CommonMessageException(await response.json());
8560
8701
  }
8561
- throw new UnknownStatusCodeException64("The server returned an unknown status code: " + statusCode);
8702
+ throw new UnknownStatusCodeException66("The server returned an unknown status code: " + statusCode);
8562
8703
  }
8563
8704
  };
8564
8705
 
8565
8706
  // src/SystemTag.ts
8566
- var SystemTag = class extends TagAbstract68 {
8707
+ var SystemTag = class extends TagAbstract70 {
8567
8708
  connection() {
8568
8709
  return new SystemConnectionTag(
8569
8710
  this.httpClient,
@@ -8667,6 +8808,8 @@ export {
8667
8808
  Client,
8668
8809
  CommonMessageException,
8669
8810
  ConsumerAccountTag,
8811
+ ConsumerAgentMessageTag,
8812
+ ConsumerAgentTag,
8670
8813
  ConsumerAppTag,
8671
8814
  ConsumerEventTag,
8672
8815
  ConsumerFormTag,