fusio-sdk 7.0.4 → 7.0.6

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
@@ -520,7 +520,7 @@ var BackendAgentMessageTag = class extends import_sdkgen_client8.TagAbstract {
520
520
  * @throws {CommonMessageException}
521
521
  * @throws {ClientException}
522
522
  */
523
- async getAll(agentId, parent) {
523
+ async getAll(agentId, chatId) {
524
524
  const url = this.parser.url("/backend/agent/$agent_id<[0-9]+|^~>/message", {
525
525
  "agent_id": agentId
526
526
  });
@@ -529,7 +529,7 @@ var BackendAgentMessageTag = class extends import_sdkgen_client8.TagAbstract {
529
529
  method: "GET",
530
530
  headers: {},
531
531
  params: this.parser.query({
532
- "parent": parent
532
+ "chat_id": chatId
533
533
  }, [])
534
534
  };
535
535
  const response = await this.httpClient.request(request);
@@ -545,11 +545,11 @@ var BackendAgentMessageTag = class extends import_sdkgen_client8.TagAbstract {
545
545
  /**
546
546
  * Submits a new agent message
547
547
  *
548
- * @returns {Promise<BackendAgentOutput>}
548
+ * @returns {Promise<CommonAgentOutput>}
549
549
  * @throws {CommonMessageException}
550
550
  * @throws {ClientException}
551
551
  */
552
- async submit(agentId, payload, parent) {
552
+ async submit(agentId, payload) {
553
553
  const url = this.parser.url("/backend/agent/$agent_id<[0-9]+|^~>/message", {
554
554
  "agent_id": agentId
555
555
  });
@@ -559,9 +559,7 @@ var BackendAgentMessageTag = class extends import_sdkgen_client8.TagAbstract {
559
559
  headers: {
560
560
  "Content-Type": "application/json"
561
561
  },
562
- params: this.parser.query({
563
- "parent": parent
564
- }, []),
562
+ params: this.parser.query({}, []),
565
563
  data: payload
566
564
  };
567
565
  const response = await this.httpClient.request(request);
@@ -1477,7 +1475,7 @@ var BackendConnectionAgentTag = class extends import_sdkgen_client24.TagAbstract
1477
1475
  /**
1478
1476
  * Sends a message to an agent
1479
1477
  *
1480
- * @returns {Promise<BackendAgentOutput>}
1478
+ * @returns {Promise<CommonAgentOutput>}
1481
1479
  * @throws {CommonMessageException}
1482
1480
  * @throws {ClientException}
1483
1481
  */