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.cjs CHANGED
@@ -72,6 +72,8 @@ __export(index_exports, {
72
72
  Client: () => Client,
73
73
  CommonMessageException: () => CommonMessageException,
74
74
  ConsumerAccountTag: () => ConsumerAccountTag,
75
+ ConsumerAgentMessageTag: () => ConsumerAgentMessageTag,
76
+ ConsumerAgentTag: () => ConsumerAgentTag,
75
77
  ConsumerAppTag: () => ConsumerAppTag,
76
78
  ConsumerEventTag: () => ConsumerEventTag,
77
79
  ConsumerFormTag: () => ConsumerFormTag,
@@ -6958,11 +6960,11 @@ var BackendTag = class extends import_sdkgen_client97.TagAbstract {
6958
6960
  };
6959
6961
 
6960
6962
  // src/Client.ts
6961
- var import_sdkgen_client134 = require("sdkgen-client");
6962
- var import_sdkgen_client135 = require("sdkgen-client");
6963
+ var import_sdkgen_client138 = require("sdkgen-client");
6964
+ var import_sdkgen_client139 = require("sdkgen-client");
6963
6965
 
6964
6966
  // src/ConsumerTag.ts
6965
- var import_sdkgen_client126 = require("sdkgen-client");
6967
+ var import_sdkgen_client130 = require("sdkgen-client");
6966
6968
 
6967
6969
  // src/ConsumerAccountTag.ts
6968
6970
  var import_sdkgen_client98 = require("sdkgen-client");
@@ -7275,10 +7277,145 @@ var ConsumerAccountTag = class extends import_sdkgen_client98.TagAbstract {
7275
7277
  }
7276
7278
  };
7277
7279
 
7278
- // src/ConsumerAppTag.ts
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
7279
7285
  var import_sdkgen_client100 = require("sdkgen-client");
7280
7286
  var import_sdkgen_client101 = require("sdkgen-client");
7281
- var ConsumerAppTag = class extends import_sdkgen_client100.TagAbstract {
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);
7412
+ }
7413
+ };
7414
+
7415
+ // src/ConsumerAppTag.ts
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 {
7282
7419
  /**
7283
7420
  * Creates a new app for the authenticated user
7284
7421
  *
@@ -7305,7 +7442,7 @@ var ConsumerAppTag = class extends import_sdkgen_client100.TagAbstract {
7305
7442
  if (statusCode >= 0 && statusCode <= 999) {
7306
7443
  throw new CommonMessageException(await response.json());
7307
7444
  }
7308
- throw new import_sdkgen_client101.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7445
+ throw new import_sdkgen_client105.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7309
7446
  }
7310
7447
  /**
7311
7448
  * Deletes an existing app for the authenticated user
@@ -7332,7 +7469,7 @@ var ConsumerAppTag = class extends import_sdkgen_client100.TagAbstract {
7332
7469
  if (statusCode >= 0 && statusCode <= 999) {
7333
7470
  throw new CommonMessageException(await response.json());
7334
7471
  }
7335
- throw new import_sdkgen_client101.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7472
+ throw new import_sdkgen_client105.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7336
7473
  }
7337
7474
  /**
7338
7475
  * Returns a specific app for the authenticated user
@@ -7359,7 +7496,7 @@ var ConsumerAppTag = class extends import_sdkgen_client100.TagAbstract {
7359
7496
  if (statusCode >= 0 && statusCode <= 999) {
7360
7497
  throw new CommonMessageException(await response.json());
7361
7498
  }
7362
- throw new import_sdkgen_client101.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7499
+ throw new import_sdkgen_client105.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7363
7500
  }
7364
7501
  /**
7365
7502
  * Returns a paginated list of apps which are assigned to the authenticated user
@@ -7388,7 +7525,7 @@ var ConsumerAppTag = class extends import_sdkgen_client100.TagAbstract {
7388
7525
  if (statusCode >= 0 && statusCode <= 999) {
7389
7526
  throw new CommonMessageException(await response.json());
7390
7527
  }
7391
- throw new import_sdkgen_client101.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7528
+ throw new import_sdkgen_client105.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7392
7529
  }
7393
7530
  /**
7394
7531
  * Updates an existing app for the authenticated user
@@ -7418,14 +7555,14 @@ var ConsumerAppTag = class extends import_sdkgen_client100.TagAbstract {
7418
7555
  if (statusCode >= 0 && statusCode <= 999) {
7419
7556
  throw new CommonMessageException(await response.json());
7420
7557
  }
7421
- throw new import_sdkgen_client101.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7558
+ throw new import_sdkgen_client105.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7422
7559
  }
7423
7560
  };
7424
7561
 
7425
7562
  // src/ConsumerEventTag.ts
7426
- var import_sdkgen_client102 = require("sdkgen-client");
7427
- var import_sdkgen_client103 = require("sdkgen-client");
7428
- var ConsumerEventTag = class extends import_sdkgen_client102.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 {
7429
7566
  /**
7430
7567
  * Returns a specific event for the authenticated user
7431
7568
  *
@@ -7451,7 +7588,7 @@ var ConsumerEventTag = class extends import_sdkgen_client102.TagAbstract {
7451
7588
  if (statusCode >= 0 && statusCode <= 999) {
7452
7589
  throw new CommonMessageException(await response.json());
7453
7590
  }
7454
- throw new import_sdkgen_client103.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7591
+ throw new import_sdkgen_client107.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7455
7592
  }
7456
7593
  /**
7457
7594
  * Returns a paginated list of apps which are assigned to the authenticated user
@@ -7480,14 +7617,14 @@ var ConsumerEventTag = class extends import_sdkgen_client102.TagAbstract {
7480
7617
  if (statusCode >= 0 && statusCode <= 999) {
7481
7618
  throw new CommonMessageException(await response.json());
7482
7619
  }
7483
- throw new import_sdkgen_client103.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7620
+ throw new import_sdkgen_client107.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7484
7621
  }
7485
7622
  };
7486
7623
 
7487
7624
  // src/ConsumerFormTag.ts
7488
- var import_sdkgen_client104 = require("sdkgen-client");
7489
- var import_sdkgen_client105 = require("sdkgen-client");
7490
- var ConsumerFormTag = class extends import_sdkgen_client104.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 {
7491
7628
  /**
7492
7629
  * Returns a specific form for the authenticated user
7493
7630
  *
@@ -7513,7 +7650,7 @@ var ConsumerFormTag = class extends import_sdkgen_client104.TagAbstract {
7513
7650
  if (statusCode >= 0 && statusCode <= 999) {
7514
7651
  throw new CommonMessageException(await response.json());
7515
7652
  }
7516
- throw new import_sdkgen_client105.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7653
+ throw new import_sdkgen_client109.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7517
7654
  }
7518
7655
  /**
7519
7656
  * Returns a paginated list of forms which are relevant to the authenticated user
@@ -7542,14 +7679,14 @@ var ConsumerFormTag = class extends import_sdkgen_client104.TagAbstract {
7542
7679
  if (statusCode >= 0 && statusCode <= 999) {
7543
7680
  throw new CommonMessageException(await response.json());
7544
7681
  }
7545
- throw new import_sdkgen_client105.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7682
+ throw new import_sdkgen_client109.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7546
7683
  }
7547
7684
  };
7548
7685
 
7549
7686
  // src/ConsumerGrantTag.ts
7550
- var import_sdkgen_client106 = require("sdkgen-client");
7551
- var import_sdkgen_client107 = require("sdkgen-client");
7552
- var ConsumerGrantTag = class extends import_sdkgen_client106.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 {
7553
7690
  /**
7554
7691
  * Deletes an existing grant for an app which was created by the authenticated user
7555
7692
  *
@@ -7575,7 +7712,7 @@ var ConsumerGrantTag = class extends import_sdkgen_client106.TagAbstract {
7575
7712
  if (statusCode >= 0 && statusCode <= 999) {
7576
7713
  throw new CommonMessageException(await response.json());
7577
7714
  }
7578
- throw new import_sdkgen_client107.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7715
+ throw new import_sdkgen_client111.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7579
7716
  }
7580
7717
  /**
7581
7718
  * Returns a paginated list of grants which are assigned to the authenticated user
@@ -7604,14 +7741,14 @@ var ConsumerGrantTag = class extends import_sdkgen_client106.TagAbstract {
7604
7741
  if (statusCode >= 0 && statusCode <= 999) {
7605
7742
  throw new CommonMessageException(await response.json());
7606
7743
  }
7607
- throw new import_sdkgen_client107.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7744
+ throw new import_sdkgen_client111.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7608
7745
  }
7609
7746
  };
7610
7747
 
7611
7748
  // src/ConsumerIdentityTag.ts
7612
- var import_sdkgen_client108 = require("sdkgen-client");
7613
- var import_sdkgen_client109 = require("sdkgen-client");
7614
- var ConsumerIdentityTag = class extends import_sdkgen_client108.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 {
7615
7752
  /**
7616
7753
  * Identity callback endpoint to exchange an access token
7617
7754
  *
@@ -7637,7 +7774,7 @@ var ConsumerIdentityTag = class extends import_sdkgen_client108.TagAbstract {
7637
7774
  if (statusCode >= 0 && statusCode <= 999) {
7638
7775
  throw new CommonMessageException(await response.json());
7639
7776
  }
7640
- throw new import_sdkgen_client109.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7777
+ throw new import_sdkgen_client113.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7641
7778
  }
7642
7779
  /**
7643
7780
  * Returns a paginated list of identities which are relevant to the authenticated user
@@ -7665,7 +7802,7 @@ var ConsumerIdentityTag = class extends import_sdkgen_client108.TagAbstract {
7665
7802
  if (statusCode >= 0 && statusCode <= 999) {
7666
7803
  throw new CommonMessageException(await response.json());
7667
7804
  }
7668
- throw new import_sdkgen_client109.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7805
+ throw new import_sdkgen_client113.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7669
7806
  }
7670
7807
  /**
7671
7808
  * Redirect the user to the configured identity provider
@@ -7692,14 +7829,14 @@ var ConsumerIdentityTag = class extends import_sdkgen_client108.TagAbstract {
7692
7829
  if (statusCode >= 0 && statusCode <= 999) {
7693
7830
  throw new CommonMessageException(await response.json());
7694
7831
  }
7695
- throw new import_sdkgen_client109.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7832
+ throw new import_sdkgen_client113.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7696
7833
  }
7697
7834
  };
7698
7835
 
7699
7836
  // src/ConsumerLogTag.ts
7700
- var import_sdkgen_client110 = require("sdkgen-client");
7701
- var import_sdkgen_client111 = require("sdkgen-client");
7702
- var ConsumerLogTag = class extends import_sdkgen_client110.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 {
7703
7840
  /**
7704
7841
  * Returns a specific log for the authenticated user
7705
7842
  *
@@ -7725,7 +7862,7 @@ var ConsumerLogTag = class extends import_sdkgen_client110.TagAbstract {
7725
7862
  if (statusCode >= 0 && statusCode <= 999) {
7726
7863
  throw new CommonMessageException(await response.json());
7727
7864
  }
7728
- throw new import_sdkgen_client111.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7865
+ throw new import_sdkgen_client115.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7729
7866
  }
7730
7867
  /**
7731
7868
  * Returns a paginated list of logs which are assigned to the authenticated user
@@ -7754,14 +7891,14 @@ var ConsumerLogTag = class extends import_sdkgen_client110.TagAbstract {
7754
7891
  if (statusCode >= 0 && statusCode <= 999) {
7755
7892
  throw new CommonMessageException(await response.json());
7756
7893
  }
7757
- throw new import_sdkgen_client111.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7894
+ throw new import_sdkgen_client115.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7758
7895
  }
7759
7896
  };
7760
7897
 
7761
7898
  // src/ConsumerPageTag.ts
7762
- var import_sdkgen_client112 = require("sdkgen-client");
7763
- var import_sdkgen_client113 = require("sdkgen-client");
7764
- var ConsumerPageTag = class extends import_sdkgen_client112.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 {
7765
7902
  /**
7766
7903
  * Returns a specific page for the authenticated user
7767
7904
  *
@@ -7787,7 +7924,7 @@ var ConsumerPageTag = class extends import_sdkgen_client112.TagAbstract {
7787
7924
  if (statusCode >= 0 && statusCode <= 999) {
7788
7925
  throw new CommonMessageException(await response.json());
7789
7926
  }
7790
- throw new import_sdkgen_client113.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7927
+ throw new import_sdkgen_client117.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7791
7928
  }
7792
7929
  /**
7793
7930
  * Returns a paginated list of pages which are relevant to the authenticated user
@@ -7816,14 +7953,14 @@ var ConsumerPageTag = class extends import_sdkgen_client112.TagAbstract {
7816
7953
  if (statusCode >= 0 && statusCode <= 999) {
7817
7954
  throw new CommonMessageException(await response.json());
7818
7955
  }
7819
- throw new import_sdkgen_client113.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7956
+ throw new import_sdkgen_client117.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7820
7957
  }
7821
7958
  };
7822
7959
 
7823
7960
  // src/ConsumerPaymentTag.ts
7824
- var import_sdkgen_client114 = require("sdkgen-client");
7825
- var import_sdkgen_client115 = require("sdkgen-client");
7826
- var ConsumerPaymentTag = class extends import_sdkgen_client114.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 {
7827
7964
  /**
7828
7965
  * Start the checkout process for a specific plan
7829
7966
  *
@@ -7852,7 +7989,7 @@ var ConsumerPaymentTag = class extends import_sdkgen_client114.TagAbstract {
7852
7989
  if (statusCode >= 0 && statusCode <= 999) {
7853
7990
  throw new CommonMessageException(await response.json());
7854
7991
  }
7855
- throw new import_sdkgen_client115.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7992
+ throw new import_sdkgen_client119.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7856
7993
  }
7857
7994
  /**
7858
7995
  * Generates a payment portal link for the authenticated user
@@ -7882,14 +8019,14 @@ var ConsumerPaymentTag = class extends import_sdkgen_client114.TagAbstract {
7882
8019
  if (statusCode >= 0 && statusCode <= 999) {
7883
8020
  throw new CommonMessageException(await response.json());
7884
8021
  }
7885
- throw new import_sdkgen_client115.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8022
+ throw new import_sdkgen_client119.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7886
8023
  }
7887
8024
  };
7888
8025
 
7889
8026
  // src/ConsumerPlanTag.ts
7890
- var import_sdkgen_client116 = require("sdkgen-client");
7891
- var import_sdkgen_client117 = require("sdkgen-client");
7892
- var ConsumerPlanTag = class extends import_sdkgen_client116.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 {
7893
8030
  /**
7894
8031
  * Returns a specific plan for the authenticated user
7895
8032
  *
@@ -7915,7 +8052,7 @@ var ConsumerPlanTag = class extends import_sdkgen_client116.TagAbstract {
7915
8052
  if (statusCode >= 0 && statusCode <= 999) {
7916
8053
  throw new CommonMessageException(await response.json());
7917
8054
  }
7918
- throw new import_sdkgen_client117.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8055
+ throw new import_sdkgen_client121.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7919
8056
  }
7920
8057
  /**
7921
8058
  * Returns a paginated list of plans which are relevant to the authenticated user
@@ -7944,14 +8081,14 @@ var ConsumerPlanTag = class extends import_sdkgen_client116.TagAbstract {
7944
8081
  if (statusCode >= 0 && statusCode <= 999) {
7945
8082
  throw new CommonMessageException(await response.json());
7946
8083
  }
7947
- throw new import_sdkgen_client117.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8084
+ throw new import_sdkgen_client121.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7948
8085
  }
7949
8086
  };
7950
8087
 
7951
8088
  // src/ConsumerScopeTag.ts
7952
- var import_sdkgen_client118 = require("sdkgen-client");
7953
- var import_sdkgen_client119 = require("sdkgen-client");
7954
- var ConsumerScopeTag = class extends import_sdkgen_client118.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 {
7955
8092
  /**
7956
8093
  * Returns a paginated list of scopes which are assigned to the authenticated user
7957
8094
  *
@@ -7979,7 +8116,7 @@ var ConsumerScopeTag = class extends import_sdkgen_client118.TagAbstract {
7979
8116
  if (statusCode >= 0 && statusCode <= 999) {
7980
8117
  throw new CommonMessageException(await response.json());
7981
8118
  }
7982
- throw new import_sdkgen_client119.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8119
+ throw new import_sdkgen_client123.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
7983
8120
  }
7984
8121
  /**
7985
8122
  * Returns all scopes by category
@@ -8004,14 +8141,14 @@ var ConsumerScopeTag = class extends import_sdkgen_client118.TagAbstract {
8004
8141
  if (statusCode >= 0 && statusCode <= 999) {
8005
8142
  throw new CommonMessageException(await response.json());
8006
8143
  }
8007
- throw new import_sdkgen_client119.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8144
+ throw new import_sdkgen_client123.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8008
8145
  }
8009
8146
  };
8010
8147
 
8011
8148
  // src/ConsumerTokenTag.ts
8012
- var import_sdkgen_client120 = require("sdkgen-client");
8013
- var import_sdkgen_client121 = require("sdkgen-client");
8014
- var ConsumerTokenTag = class extends import_sdkgen_client120.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 {
8015
8152
  /**
8016
8153
  * Creates a new token for the authenticated user
8017
8154
  *
@@ -8038,7 +8175,7 @@ var ConsumerTokenTag = class extends import_sdkgen_client120.TagAbstract {
8038
8175
  if (statusCode >= 0 && statusCode <= 999) {
8039
8176
  throw new CommonMessageException(await response.json());
8040
8177
  }
8041
- throw new import_sdkgen_client121.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8178
+ throw new import_sdkgen_client125.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8042
8179
  }
8043
8180
  /**
8044
8181
  * Deletes an existing token for the authenticated user
@@ -8065,7 +8202,7 @@ var ConsumerTokenTag = class extends import_sdkgen_client120.TagAbstract {
8065
8202
  if (statusCode >= 0 && statusCode <= 999) {
8066
8203
  throw new CommonMessageException(await response.json());
8067
8204
  }
8068
- throw new import_sdkgen_client121.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8205
+ throw new import_sdkgen_client125.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8069
8206
  }
8070
8207
  /**
8071
8208
  * Returns a specific token for the authenticated user
@@ -8092,7 +8229,7 @@ var ConsumerTokenTag = class extends import_sdkgen_client120.TagAbstract {
8092
8229
  if (statusCode >= 0 && statusCode <= 999) {
8093
8230
  throw new CommonMessageException(await response.json());
8094
8231
  }
8095
- throw new import_sdkgen_client121.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8232
+ throw new import_sdkgen_client125.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8096
8233
  }
8097
8234
  /**
8098
8235
  * Returns a paginated list of tokens which are assigned to the authenticated user
@@ -8121,7 +8258,7 @@ var ConsumerTokenTag = class extends import_sdkgen_client120.TagAbstract {
8121
8258
  if (statusCode >= 0 && statusCode <= 999) {
8122
8259
  throw new CommonMessageException(await response.json());
8123
8260
  }
8124
- throw new import_sdkgen_client121.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8261
+ throw new import_sdkgen_client125.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8125
8262
  }
8126
8263
  /**
8127
8264
  * Updates an existing token for the authenticated user
@@ -8151,14 +8288,14 @@ var ConsumerTokenTag = class extends import_sdkgen_client120.TagAbstract {
8151
8288
  if (statusCode >= 0 && statusCode <= 999) {
8152
8289
  throw new CommonMessageException(await response.json());
8153
8290
  }
8154
- throw new import_sdkgen_client121.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8291
+ throw new import_sdkgen_client125.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8155
8292
  }
8156
8293
  };
8157
8294
 
8158
8295
  // src/ConsumerTransactionTag.ts
8159
- var import_sdkgen_client122 = require("sdkgen-client");
8160
- var import_sdkgen_client123 = require("sdkgen-client");
8161
- var ConsumerTransactionTag = class extends import_sdkgen_client122.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 {
8162
8299
  /**
8163
8300
  * Returns a specific transaction for the authenticated user
8164
8301
  *
@@ -8184,7 +8321,7 @@ var ConsumerTransactionTag = class extends import_sdkgen_client122.TagAbstract {
8184
8321
  if (statusCode >= 0 && statusCode <= 999) {
8185
8322
  throw new CommonMessageException(await response.json());
8186
8323
  }
8187
- throw new import_sdkgen_client123.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8324
+ throw new import_sdkgen_client127.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8188
8325
  }
8189
8326
  /**
8190
8327
  * Returns a paginated list of transactions which are assigned to the authenticated user
@@ -8213,14 +8350,14 @@ var ConsumerTransactionTag = class extends import_sdkgen_client122.TagAbstract {
8213
8350
  if (statusCode >= 0 && statusCode <= 999) {
8214
8351
  throw new CommonMessageException(await response.json());
8215
8352
  }
8216
- throw new import_sdkgen_client123.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8353
+ throw new import_sdkgen_client127.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8217
8354
  }
8218
8355
  };
8219
8356
 
8220
8357
  // src/ConsumerWebhookTag.ts
8221
- var import_sdkgen_client124 = require("sdkgen-client");
8222
- var import_sdkgen_client125 = require("sdkgen-client");
8223
- var ConsumerWebhookTag = class extends import_sdkgen_client124.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 {
8224
8361
  /**
8225
8362
  * Creates a new webhook for the authenticated user
8226
8363
  *
@@ -8247,7 +8384,7 @@ var ConsumerWebhookTag = class extends import_sdkgen_client124.TagAbstract {
8247
8384
  if (statusCode >= 0 && statusCode <= 999) {
8248
8385
  throw new CommonMessageException(await response.json());
8249
8386
  }
8250
- throw new import_sdkgen_client125.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8387
+ throw new import_sdkgen_client129.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8251
8388
  }
8252
8389
  /**
8253
8390
  * Deletes an existing webhook for the authenticated user
@@ -8274,7 +8411,7 @@ var ConsumerWebhookTag = class extends import_sdkgen_client124.TagAbstract {
8274
8411
  if (statusCode >= 0 && statusCode <= 999) {
8275
8412
  throw new CommonMessageException(await response.json());
8276
8413
  }
8277
- throw new import_sdkgen_client125.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8414
+ throw new import_sdkgen_client129.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8278
8415
  }
8279
8416
  /**
8280
8417
  * Returns a specific webhook for the authenticated user
@@ -8301,7 +8438,7 @@ var ConsumerWebhookTag = class extends import_sdkgen_client124.TagAbstract {
8301
8438
  if (statusCode >= 0 && statusCode <= 999) {
8302
8439
  throw new CommonMessageException(await response.json());
8303
8440
  }
8304
- throw new import_sdkgen_client125.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8441
+ throw new import_sdkgen_client129.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8305
8442
  }
8306
8443
  /**
8307
8444
  * Returns a paginated list of webhooks which are assigned to the authenticated user
@@ -8330,7 +8467,7 @@ var ConsumerWebhookTag = class extends import_sdkgen_client124.TagAbstract {
8330
8467
  if (statusCode >= 0 && statusCode <= 999) {
8331
8468
  throw new CommonMessageException(await response.json());
8332
8469
  }
8333
- throw new import_sdkgen_client125.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8470
+ throw new import_sdkgen_client129.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8334
8471
  }
8335
8472
  /**
8336
8473
  * Updates an existing webhook for the authenticated user
@@ -8360,18 +8497,24 @@ var ConsumerWebhookTag = class extends import_sdkgen_client124.TagAbstract {
8360
8497
  if (statusCode >= 0 && statusCode <= 999) {
8361
8498
  throw new CommonMessageException(await response.json());
8362
8499
  }
8363
- throw new import_sdkgen_client125.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8500
+ throw new import_sdkgen_client129.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8364
8501
  }
8365
8502
  };
8366
8503
 
8367
8504
  // src/ConsumerTag.ts
8368
- var ConsumerTag = class extends import_sdkgen_client126.TagAbstract {
8505
+ var ConsumerTag = class extends import_sdkgen_client130.TagAbstract {
8369
8506
  account() {
8370
8507
  return new ConsumerAccountTag(
8371
8508
  this.httpClient,
8372
8509
  this.parser
8373
8510
  );
8374
8511
  }
8512
+ agent() {
8513
+ return new ConsumerAgentTag(
8514
+ this.httpClient,
8515
+ this.parser
8516
+ );
8517
+ }
8375
8518
  app() {
8376
8519
  return new ConsumerAppTag(
8377
8520
  this.httpClient,
@@ -8453,12 +8596,12 @@ var ConsumerTag = class extends import_sdkgen_client126.TagAbstract {
8453
8596
  };
8454
8597
 
8455
8598
  // src/SystemTag.ts
8456
- var import_sdkgen_client133 = require("sdkgen-client");
8599
+ var import_sdkgen_client137 = require("sdkgen-client");
8457
8600
 
8458
8601
  // src/SystemConnectionTag.ts
8459
- var import_sdkgen_client127 = require("sdkgen-client");
8460
- var import_sdkgen_client128 = require("sdkgen-client");
8461
- var SystemConnectionTag = class extends import_sdkgen_client127.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 {
8462
8605
  /**
8463
8606
  * Connection OAuth2 callback to authorize a connection
8464
8607
  *
@@ -8484,14 +8627,14 @@ var SystemConnectionTag = class extends import_sdkgen_client127.TagAbstract {
8484
8627
  if (statusCode >= 0 && statusCode <= 999) {
8485
8628
  throw new CommonMessageException(await response.json());
8486
8629
  }
8487
- throw new import_sdkgen_client128.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8630
+ throw new import_sdkgen_client132.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8488
8631
  }
8489
8632
  };
8490
8633
 
8491
8634
  // src/SystemMetaTag.ts
8492
- var import_sdkgen_client129 = require("sdkgen-client");
8493
- var import_sdkgen_client130 = require("sdkgen-client");
8494
- var SystemMetaTag = class extends import_sdkgen_client129.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 {
8495
8638
  /**
8496
8639
  * Returns meta information and links about the current installed Fusio version
8497
8640
  *
@@ -8515,7 +8658,7 @@ var SystemMetaTag = class extends import_sdkgen_client129.TagAbstract {
8515
8658
  if (statusCode >= 0 && statusCode <= 999) {
8516
8659
  throw new CommonMessageException(await response.json());
8517
8660
  }
8518
- throw new import_sdkgen_client130.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8661
+ throw new import_sdkgen_client134.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8519
8662
  }
8520
8663
  /**
8521
8664
  * Debug endpoint which returns the provided data
@@ -8543,7 +8686,7 @@ var SystemMetaTag = class extends import_sdkgen_client129.TagAbstract {
8543
8686
  if (statusCode >= 0 && statusCode <= 999) {
8544
8687
  throw new CommonMessageException(await response.json());
8545
8688
  }
8546
- throw new import_sdkgen_client130.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8689
+ throw new import_sdkgen_client134.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8547
8690
  }
8548
8691
  /**
8549
8692
  * Health check endpoint which returns information about the health status of the system
@@ -8568,7 +8711,7 @@ var SystemMetaTag = class extends import_sdkgen_client129.TagAbstract {
8568
8711
  if (statusCode >= 0 && statusCode <= 999) {
8569
8712
  throw new CommonMessageException(await response.json());
8570
8713
  }
8571
- throw new import_sdkgen_client130.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8714
+ throw new import_sdkgen_client134.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8572
8715
  }
8573
8716
  /**
8574
8717
  * Returns all available routes
@@ -8593,7 +8736,7 @@ var SystemMetaTag = class extends import_sdkgen_client129.TagAbstract {
8593
8736
  if (statusCode >= 0 && statusCode <= 999) {
8594
8737
  throw new CommonMessageException(await response.json());
8595
8738
  }
8596
- throw new import_sdkgen_client130.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8739
+ throw new import_sdkgen_client134.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8597
8740
  }
8598
8741
  /**
8599
8742
  * Returns details of a specific schema
@@ -8620,14 +8763,14 @@ var SystemMetaTag = class extends import_sdkgen_client129.TagAbstract {
8620
8763
  if (statusCode >= 0 && statusCode <= 999) {
8621
8764
  throw new CommonMessageException(await response.json());
8622
8765
  }
8623
- throw new import_sdkgen_client130.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8766
+ throw new import_sdkgen_client134.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8624
8767
  }
8625
8768
  };
8626
8769
 
8627
8770
  // src/SystemPaymentTag.ts
8628
- var import_sdkgen_client131 = require("sdkgen-client");
8629
- var import_sdkgen_client132 = require("sdkgen-client");
8630
- var SystemPaymentTag = class extends import_sdkgen_client131.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 {
8631
8774
  /**
8632
8775
  * Payment webhook endpoint after successful purchase of a plan
8633
8776
  *
@@ -8653,12 +8796,12 @@ var SystemPaymentTag = class extends import_sdkgen_client131.TagAbstract {
8653
8796
  if (statusCode >= 0 && statusCode <= 999) {
8654
8797
  throw new CommonMessageException(await response.json());
8655
8798
  }
8656
- throw new import_sdkgen_client132.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8799
+ throw new import_sdkgen_client136.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
8657
8800
  }
8658
8801
  };
8659
8802
 
8660
8803
  // src/SystemTag.ts
8661
- var SystemTag = class extends import_sdkgen_client133.TagAbstract {
8804
+ var SystemTag = class extends import_sdkgen_client137.TagAbstract {
8662
8805
  connection() {
8663
8806
  return new SystemConnectionTag(
8664
8807
  this.httpClient,
@@ -8680,7 +8823,7 @@ var SystemTag = class extends import_sdkgen_client133.TagAbstract {
8680
8823
  };
8681
8824
 
8682
8825
  // src/Client.ts
8683
- var Client = class _Client extends import_sdkgen_client134.ClientAbstract {
8826
+ var Client = class _Client extends import_sdkgen_client138.ClientAbstract {
8684
8827
  authorization() {
8685
8828
  return new AuthorizationTag(
8686
8829
  this.httpClient,
@@ -8706,7 +8849,7 @@ var Client = class _Client extends import_sdkgen_client134.ClientAbstract {
8706
8849
  );
8707
8850
  }
8708
8851
  static buildAnonymous(baseUrl) {
8709
- return new _Client(baseUrl, new import_sdkgen_client135.Anonymous());
8852
+ return new _Client(baseUrl, new import_sdkgen_client139.Anonymous());
8710
8853
  }
8711
8854
  };
8712
8855
  // Annotate the CommonJS export names for ESM import in node:
@@ -8763,6 +8906,8 @@ var Client = class _Client extends import_sdkgen_client134.ClientAbstract {
8763
8906
  Client,
8764
8907
  CommonMessageException,
8765
8908
  ConsumerAccountTag,
8909
+ ConsumerAgentMessageTag,
8910
+ ConsumerAgentTag,
8766
8911
  ConsumerAppTag,
8767
8912
  ConsumerEventTag,
8768
8913
  ConsumerFormTag,