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.js CHANGED
@@ -426,7 +426,7 @@ var BackendAgentMessageTag = class extends TagAbstract4 {
426
426
  * @throws {CommonMessageException}
427
427
  * @throws {ClientException}
428
428
  */
429
- async getAll(agentId, chatId) {
429
+ async getAll(agentId, refId, chatId) {
430
430
  const url = this.parser.url("/backend/agent/$agent_id<[0-9]+|^~>/message", {
431
431
  "agent_id": agentId
432
432
  });
@@ -435,6 +435,7 @@ var BackendAgentMessageTag = class extends TagAbstract4 {
435
435
  method: "GET",
436
436
  headers: {},
437
437
  params: this.parser.query({
438
+ "ref_id": refId,
438
439
  "chat_id": chatId
439
440
  }, [])
440
441
  };
@@ -455,7 +456,7 @@ var BackendAgentMessageTag = class extends TagAbstract4 {
455
456
  * @throws {CommonMessageException}
456
457
  * @throws {ClientException}
457
458
  */
458
- async submit(agentId, payload) {
459
+ async submit(agentId, payload, refId) {
459
460
  const url = this.parser.url("/backend/agent/$agent_id<[0-9]+|^~>/message", {
460
461
  "agent_id": agentId
461
462
  });
@@ -465,7 +466,9 @@ var BackendAgentMessageTag = class extends TagAbstract4 {
465
466
  headers: {
466
467
  "Content-Type": "application/json"
467
468
  },
468
- params: this.parser.query({}, []),
469
+ params: this.parser.query({
470
+ "ref_id": refId
471
+ }, []),
469
472
  data: payload
470
473
  };
471
474
  const response = await this.httpClient.request(request);
@@ -7248,7 +7251,7 @@ var ConsumerAgentMessageTag = class extends TagAbstract51 {
7248
7251
  * @throws {CommonMessageException}
7249
7252
  * @throws {ClientException}
7250
7253
  */
7251
- async getAll(agentId, chatId) {
7254
+ async getAll(agentId, refId, chatId) {
7252
7255
  const url = this.parser.url("/consumer/agent/$agent_id<[0-9]+|^~>/message", {
7253
7256
  "agent_id": agentId
7254
7257
  });
@@ -7257,6 +7260,7 @@ var ConsumerAgentMessageTag = class extends TagAbstract51 {
7257
7260
  method: "GET",
7258
7261
  headers: {},
7259
7262
  params: this.parser.query({
7263
+ "ref_id": refId,
7260
7264
  "chat_id": chatId
7261
7265
  }, [])
7262
7266
  };
@@ -7277,7 +7281,7 @@ var ConsumerAgentMessageTag = class extends TagAbstract51 {
7277
7281
  * @throws {CommonMessageException}
7278
7282
  * @throws {ClientException}
7279
7283
  */
7280
- async submit(agentId, payload) {
7284
+ async submit(agentId, payload, refId) {
7281
7285
  const url = this.parser.url("/consumer/agent/$agent_id<[0-9]+|^~>/message", {
7282
7286
  "agent_id": agentId
7283
7287
  });
@@ -7287,7 +7291,9 @@ var ConsumerAgentMessageTag = class extends TagAbstract51 {
7287
7291
  headers: {
7288
7292
  "Content-Type": "application/json"
7289
7293
  },
7290
- params: this.parser.query({}, []),
7294
+ params: this.parser.query({
7295
+ "ref_id": refId
7296
+ }, []),
7291
7297
  data: payload
7292
7298
  };
7293
7299
  const response = await this.httpClient.request(request);