fusio-sdk 7.0.12 → 7.0.13

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
@@ -524,7 +524,7 @@ var BackendAgentMessageTag = class extends import_sdkgen_client8.TagAbstract {
524
524
  * @throws {CommonMessageException}
525
525
  * @throws {ClientException}
526
526
  */
527
- async getAll(agentId, chatId) {
527
+ async getAll(agentId, refId, chatId) {
528
528
  const url = this.parser.url("/backend/agent/$agent_id<[0-9]+|^~>/message", {
529
529
  "agent_id": agentId
530
530
  });
@@ -533,6 +533,7 @@ var BackendAgentMessageTag = class extends import_sdkgen_client8.TagAbstract {
533
533
  method: "GET",
534
534
  headers: {},
535
535
  params: this.parser.query({
536
+ "ref_id": refId,
536
537
  "chat_id": chatId
537
538
  }, [])
538
539
  };
@@ -553,7 +554,7 @@ var BackendAgentMessageTag = class extends import_sdkgen_client8.TagAbstract {
553
554
  * @throws {CommonMessageException}
554
555
  * @throws {ClientException}
555
556
  */
556
- async submit(agentId, payload) {
557
+ async submit(agentId, payload, refId) {
557
558
  const url = this.parser.url("/backend/agent/$agent_id<[0-9]+|^~>/message", {
558
559
  "agent_id": agentId
559
560
  });
@@ -563,7 +564,9 @@ var BackendAgentMessageTag = class extends import_sdkgen_client8.TagAbstract {
563
564
  headers: {
564
565
  "Content-Type": "application/json"
565
566
  },
566
- params: this.parser.query({}, []),
567
+ params: this.parser.query({
568
+ "ref_id": refId
569
+ }, []),
567
570
  data: payload
568
571
  };
569
572
  const response = await this.httpClient.request(request);
@@ -7346,7 +7349,7 @@ var ConsumerAgentMessageTag = class extends import_sdkgen_client100.TagAbstract
7346
7349
  * @throws {CommonMessageException}
7347
7350
  * @throws {ClientException}
7348
7351
  */
7349
- async getAll(agentId, chatId) {
7352
+ async getAll(agentId, refId, chatId) {
7350
7353
  const url = this.parser.url("/consumer/agent/$agent_id<[0-9]+|^~>/message", {
7351
7354
  "agent_id": agentId
7352
7355
  });
@@ -7355,6 +7358,7 @@ var ConsumerAgentMessageTag = class extends import_sdkgen_client100.TagAbstract
7355
7358
  method: "GET",
7356
7359
  headers: {},
7357
7360
  params: this.parser.query({
7361
+ "ref_id": refId,
7358
7362
  "chat_id": chatId
7359
7363
  }, [])
7360
7364
  };
@@ -7375,7 +7379,7 @@ var ConsumerAgentMessageTag = class extends import_sdkgen_client100.TagAbstract
7375
7379
  * @throws {CommonMessageException}
7376
7380
  * @throws {ClientException}
7377
7381
  */
7378
- async submit(agentId, payload) {
7382
+ async submit(agentId, payload, refId) {
7379
7383
  const url = this.parser.url("/consumer/agent/$agent_id<[0-9]+|^~>/message", {
7380
7384
  "agent_id": agentId
7381
7385
  });
@@ -7385,7 +7389,9 @@ var ConsumerAgentMessageTag = class extends import_sdkgen_client100.TagAbstract
7385
7389
  headers: {
7386
7390
  "Content-Type": "application/json"
7387
7391
  },
7388
- params: this.parser.query({}, []),
7392
+ params: this.parser.query({
7393
+ "ref_id": refId
7394
+ }, []),
7389
7395
  data: payload
7390
7396
  };
7391
7397
  const response = await this.httpClient.request(request);