redai-automation-web-sdk 1.9.8 → 1.9.10

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
@@ -30,6 +30,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
30
30
  var index_exports = {};
31
31
  __export(index_exports, {
32
32
  AdvancedMessagingService: () => AdvancedMessagingService,
33
+ AttachmentMediaType: () => AttachmentMediaType,
33
34
  AuthService: () => AuthService,
34
35
  AutomationWebClient: () => AutomationWebClient,
35
36
  BoardType: () => BoardType,
@@ -1235,6 +1236,22 @@ var MessagingService = class {
1235
1236
  * Gửi link message
1236
1237
  * POST /zalo-personal/messaging/link
1237
1238
  */
1239
+ async sendFile(request) {
1240
+ const response = await this.httpClient.post(
1241
+ "/zalo-personal/messaging/file",
1242
+ {
1243
+ sessionId: request.sessionId,
1244
+ threadId: request.threadId,
1245
+ type: request.type,
1246
+ fileUrl: request.fileUrl,
1247
+ fileName: request.fileName,
1248
+ msg: request.msg,
1249
+ headers: request.headers,
1250
+ ttl: request.ttl
1251
+ }
1252
+ );
1253
+ return response;
1254
+ }
1238
1255
  async sendLink(request) {
1239
1256
  const response = await this.httpClient.post(
1240
1257
  "/zalo-personal/messaging/link",
@@ -4789,6 +4806,13 @@ var ZaloReactions = /* @__PURE__ */ ((ZaloReactions2) => {
4789
4806
  ZaloReactions2["BEER"] = "/-beer";
4790
4807
  return ZaloReactions2;
4791
4808
  })(ZaloReactions || {});
4809
+ var AttachmentMediaType = /* @__PURE__ */ ((AttachmentMediaType2) => {
4810
+ AttachmentMediaType2["Image"] = "image";
4811
+ AttachmentMediaType2["Video"] = "video";
4812
+ AttachmentMediaType2["Audio"] = "audio";
4813
+ AttachmentMediaType2["File"] = "file";
4814
+ return AttachmentMediaType2;
4815
+ })(AttachmentMediaType || {});
4792
4816
 
4793
4817
  // src/types/dto/session-proxy.type.ts
4794
4818
  var ProxyProtocol = /* @__PURE__ */ ((ProxyProtocol2) => {
@@ -5086,6 +5110,7 @@ var FormatUtils = class {
5086
5110
  // Annotate the CommonJS export names for ESM import in node:
5087
5111
  0 && (module.exports = {
5088
5112
  AdvancedMessagingService,
5113
+ AttachmentMediaType,
5089
5114
  AuthService,
5090
5115
  AutomationWebClient,
5091
5116
  BoardType,