@redonvn/zalo-ads-sdk 0.2.7 → 0.2.14

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.d.ts CHANGED
@@ -449,9 +449,9 @@ interface FileDownloadResponse {
449
449
 
450
450
  /**
451
451
  * Mã trạng thái kỹ thuật & nghiệp vụ của Instant Page:
452
- * - 0: Bản sao mới tạo (Clone Draft) - vừa nhân bản từ template hoặc trang khác, chưa từng sửa và chưa xuất bản
453
- * - 1: Bản nháp đang sửa (Draft) - đang biên tập trong trình tạo trang (Canvas Editor), lưu trong draft
454
- * - 2: Đã xuất bản (Published / Active) - trang chính thức, cấu hình live nằm trong content, sẵn sàng chạy ads
452
+ * - 0: Bản sao mới tạo (Clone Draft) - vừa nhân bản từ template hoặc trang khác, chưa từng sửa và chưa xuất bản (máy chủ lọc bỏ khỏi danh sách tìm kiếm)
453
+ * - 1: Đang hoạt động / Đã xuất bản (Active / Published) - trang chính thức, nội dung live nằm trong trường content, máy chủ cấp timestamp published
454
+ * - 2: Mã trạng thái trung gian cũ trên giao diện
455
455
  * - 3: Lưu trữ / Đã kết thúc (Archived / Ended) - trang đã ngưng hoạt động hoặc kết thúc chiến dịch
456
456
  */
457
457
  type ZaloInstantPageStatus = 0 | 1 | 2 | 3;
@@ -688,6 +688,50 @@ type ZaloInstantPagesListInstantPageSharesResponse = {
688
688
  oaPermission: number;
689
689
  }>;
690
690
  };
691
+ /**
692
+ * Danh mục mã phân quyền người dùng được chia sẻ trên Instant Page (POST /api/instant-pages/{instantPageId}/shares):
693
+ * - ADMIN (1): Quản trị viên (Toàn quyền quản trị, phân quyền thành viên, gắn quảng cáo, xuất bản trang).
694
+ * - UPDATE_PAGE (2): Chỉnh sửa trang (Quyền chỉnh sửa nội dung giao diện trang).
695
+ * - DOWNLOAD_INFO (3): Tải thông tin khách hàng (Quyền tải file lead/đơn hàng).
696
+ * - READ_ONLY (4): Chỉ xem (Chỉ xem trước trang và báo cáo).
697
+ */
698
+ declare const ZaloInstantPageSharePermission: {
699
+ /** Quản trị viên: Toàn quyền quản trị, chỉnh sửa, phân quyền và gắn quảng cáo. */
700
+ readonly ADMIN: 1;
701
+ /** Biên tập viên: Quyền chỉnh sửa nội dung trang. */
702
+ readonly UPDATE_PAGE: 2;
703
+ /** Tải dữ liệu: Quyền tải thông tin khách hàng / Leads. */
704
+ readonly DOWNLOAD_INFO: 3;
705
+ /** Chỉ xem: Quyền xem trước và thống kê. */
706
+ readonly READ_ONLY: 4;
707
+ };
708
+ type ZaloInstantPageSharePermissionValue = typeof ZaloInstantPageSharePermission[keyof typeof ZaloInstantPageSharePermission];
709
+ /** Thông tin phân quyền cho một thành viên trên Instant Page. */
710
+ type ZaloInstantPagesShareMemberDto = {
711
+ /** ID người dùng được phân quyền (ví dụ: 2394323333639486). */
712
+ userId: number;
713
+ /** Mã phân quyền: 1 (ADMIN), 2 (UPDATE_PAGE), 3 (DOWNLOAD_INFO), 4 (READ_ONLY). */
714
+ permission: ZaloInstantPageSharePermissionValue | number;
715
+ };
716
+ /** Cập nhật danh sách người dùng được phân quyền / chia sẻ trên Instant Page (`POST /api/instant-pages/{instantPageId}/shares`). */
717
+ type ZaloInstantPagesUpdateInstantPageSharesRequest = {
718
+ /** ID Instant Page cần phân quyền chia sẻ. */
719
+ instantPageId: number;
720
+ /** Danh sách thành viên và mã quyền tương ứng. Body HTTP là JSON Array: `[{ userId, permission }]`. */
721
+ shares: Array<ZaloInstantPagesShareMemberDto>;
722
+ };
723
+ type ZaloInstantPagesUpdateInstantPageSharesResponse = {
724
+ /** Danh sách thành viên được chia sẻ sau khi cập nhật. */
725
+ data?: Array<{
726
+ userId: number;
727
+ permission: number;
728
+ name?: string;
729
+ avatar?: string;
730
+ oaPermission?: number;
731
+ }>;
732
+ code?: number;
733
+ msg?: string;
734
+ };
691
735
  /** Lấy các danh sách người dùng có thể dùng trong Instant Page, gồm chủ sở hữu, người tạo và người được chia sẻ. Đây là entry tool thuộc lane zalo-ads-content; dùng để chọn hoặc đối chiếu người dùng trước khi lọc, chia sẻ hay kiểm tra quyền trên Instant Page cụ thể. Khác với tool shares của một trang, kết quả này là danh mục người dùng theo vai trò trên phạm vi Instant Page. */
692
736
  type ZaloInstantPagesListInstantPageUsersRequest = Record<string, never>;
693
737
  type ZaloInstantPagesListInstantPageUsersResponse = {
@@ -951,6 +995,43 @@ type ZaloInstantPagesUpsertInstantPageFormResponse = {
951
995
  }>;
952
996
  [key: string]: unknown;
953
997
  };
998
+ /**
999
+ * Khởi tạo một Instant Page mới từ Template mẫu trên domain page.ads.zalo.me.
1000
+ *
1001
+ * Bẫy kỹ thuật & nghiệp vụ:
1002
+ * - templateId = 4: Kịch bản giới thiệu thương hiệu / Tin nhắn (bắt buộc dùng cho Quảng cáo Tin nhắn Type 30).
1003
+ * - oaId: Bắt buộc là chuỗi ID 64-bit của Official Account (ví dụ: '4411301888544366414' từ GET /api/official-accounts), KHÔNG dùng ID số nguyên ngắn.
1004
+ * - Sau khi tạo, Instant Page ở trạng thái nháp (status: 0). Cần gọi updateInstantPage với status: 1 (truyền đồng thời cả draft và content) để xuất bản Live.
1005
+ */
1006
+ type ZaloInstantPagesCreateInstantPageRequest = {
1007
+ /** Mã mẫu giao diện: 1 (Trang bán sản phẩm form trực tiếp), 3 (Trang bán sản phẩm form popup), 4 (Kịch bản tin nhắn), 5 (Trang đệm mua sắm). */
1008
+ templateId: 1 | 3 | 4 | 5 | number;
1009
+ /** Mã định danh 64-bit của Official Account liên kết (Lấy từ GET /api/official-accounts). */
1010
+ oaId?: string;
1011
+ };
1012
+ type ZaloInstantPagesCreateInstantPageResponse = {
1013
+ /** Bản ghi Instant Page mới được khởi tạo từ template. */
1014
+ data: {
1015
+ /** Mã số định danh nội bộ của Instant Page mới được cấp phát. */
1016
+ id: number;
1017
+ /** Mã public dùng cho URL người dùng cuối (https://page.zalo.me/p/{publicId}). */
1018
+ publicId: string;
1019
+ /** Tên mặc định của Instant Page theo template. */
1020
+ name: string;
1021
+ /** Cờ hoạt động: 0 = Tắt, 1 = Bật. */
1022
+ active: ZaloInstantPageActive | number;
1023
+ /** Mã trạng thái: 0 = Nháp mới tạo, 1 = Đã xuất bản Live. */
1024
+ status: ZaloInstantPageStatus | number;
1025
+ /** Phiên bản cấu trúc trang. */
1026
+ version: number;
1027
+ /** Mã mẫu giao diện đã dùng để khởi tạo. */
1028
+ templateId: number;
1029
+ /** Mã định danh 64-bit của Official Account liên kết. */
1030
+ oaId?: string;
1031
+ [key: string]: unknown;
1032
+ };
1033
+ [key: string]: unknown;
1034
+ };
954
1035
 
955
1036
  type BodyType = "json" | "urlencoded" | "multipart" | "none";
956
1037
  interface OperationDefinition {
@@ -1064,10 +1145,35 @@ type ZaloAdsUpdateFlowResponse = {
1064
1145
  };
1065
1146
  };
1066
1147
  interface ZaloAdsAdPriceSettingsDto {
1148
+ /**
1149
+ * Mức giá đặt thầu (VNĐ).
1150
+ * - Đặt 0 khi chọn đấu thầu tự động hoặc khi Price.Type = 5 (CPA - Lượt liên hệ).
1151
+ * - Bắt buộc > 0 khi chọn đấu thầu thủ công (CPC).
1152
+ */
1067
1153
  Bid: number;
1154
+ /**
1155
+ * Phương thức tính tiền:
1156
+ * - 1: Lượt hiển thị (CPM) - Website Ads legacy.
1157
+ * - 2: Lượt nhấn (CPC) - Website, Form, Message, OA, Video, Commerce, Article.
1158
+ * - 5: Lượt liên hệ (CPA) - Dành riêng cho Quảng cáo Tin nhắn (Type 30) khi tối ưu theo lượt khách nhắn tin liên hệ.
1159
+ */
1068
1160
  Type: number;
1161
+ /**
1162
+ * Hạn mức chi tiêu (VNĐ).
1163
+ * - Quảng cáo Tin nhắn yêu cầu ngân sách tối thiểu 600,000 VNĐ.
1164
+ */
1069
1165
  Limit: number;
1166
+ /**
1167
+ * Phạm vi áp dụng ngân sách (ZaloAdsPriceLimitType):
1168
+ * - 1: Toàn lịch chạy (LIFE_TIME - áp dụng ngân sách tổng cho toàn bộ thời gian chạy).
1169
+ * - 2: Mỗi ngày (DAILY - hạn mức ngân sách phân bổ theo từng ngày).
1170
+ */
1070
1171
  LimitType: number;
1172
+ /**
1173
+ * Phương thức chi tiêu / tối ưu hóa:
1174
+ * - 0: Đặt giá thầu thủ công (Manual Bid).
1175
+ * - 1: Tự động tối ưu chi phí theo ngân sách (Total budget / Auto optimize, bắt buộc khi Type = 5 CPA).
1176
+ */
1071
1177
  SpendingMethod: number;
1072
1178
  }
1073
1179
  interface ZaloAdsAdMultiImageItemDto {
@@ -1089,31 +1195,124 @@ interface ZaloAdsAdInfoSettingsDto {
1089
1195
  Title?: string;
1090
1196
  Description?: string;
1091
1197
  Caption?: string;
1198
+ /**
1199
+ * Chú thích mở rộng (không bắt buộc).
1200
+ * - Quy chuẩn độ dài: Tối thiểu 90 ký tự, tối đa 2000 ký tự (90 - 2,000 ký tự).
1201
+ * - Nếu để trống "" hoặc không truyền: Hợp lệ.
1202
+ * - Nếu đã nhập: Bắt buộc từ 90 đến 2,000 ký tự.
1203
+ * - Tự động kích hoạt mã bố cục mở rộng XTemplates = 49 (LONG_CAPTION).
1204
+ */
1205
+ LongCaption?: string;
1092
1206
  Action?: number;
1093
1207
  ButtonText?: string;
1094
1208
  MoreInfo?: string;
1095
- TargetUrl?: string;
1209
+ TargetUrl?: string | {
1210
+ Url?: string;
1211
+ DisplayText?: string;
1212
+ };
1096
1213
  Phone?: string;
1214
+ SupportPhone?: string;
1097
1215
  Address?: string;
1216
+ XTemplates?: Array<number>;
1217
+ Template?: number;
1218
+ WebsiteCategories?: Array<number>;
1219
+ AdtimaAdCategories?: Array<number>;
1220
+ Files?: Array<unknown>;
1098
1221
  }
1099
1222
  interface ZaloAdsAdAppInfoSettingsDto {
1100
1223
  AppType?: number;
1101
1224
  OsType?: number;
1102
1225
  StoreUrl?: string;
1103
1226
  }
1227
+ interface ZaloAdsAdTargetingProvinceItemDto {
1228
+ /**
1229
+ * Mã định danh Tỉnh/Thành phố theo danh mục 34 Cụm Tỉnh mới sau sáp nhập 2026 (`newProvinces` trên Zalo Ads).
1230
+ *
1231
+ * QUAN TRỌNG: Giao diện Zalo Ads Angular Web chỉ phân giải cây Xã/Phường theo 34 mã cụm này.
1232
+ * Nếu truyền mã tỉnh lẻ đã bị sáp nhập (ví dụ: 'VN75' - Bình Dương, 'VN45' - Vũng Tàu, 'VN76' - Bình Phước),
1233
+ * giao diện web sẽ bị lỗi ngoại lệ popup: 'Invalid wards params'.
1234
+ *
1235
+ * Quy tắc ánh xạ mã cụm tỉnh:
1236
+ * - Cụm 'VN20' (Hồ Chí Minh): Bao gồm TP.HCM, Bình Dương ('VN75'), Bà Rịa - Vũng Tàu ('VN45').
1237
+ * - Cụm 'VN43' (Đồng Nai): Bao gồm Đồng Nai, Bình Phước ('VN76').
1238
+ * - Cụm 'VN44' (Hà Nội): Giữ nguyên không sáp nhập.
1239
+ * - Cụm 'VN33' (Tây Ninh): Bao gồm Tây Ninh, Long An ('VN24').
1240
+ * - Cụm 'VN01' (An Giang): Bao gồm An Giang, Kiên Giang ('VN21').
1241
+ * - Cụm 'VN87' (Cần Thơ): Bao gồm Cần Thơ, Sóc Trăng ('VN65'), Hậu Giang ('VN93').
1242
+ * - Cụm 'VN77' (Cà Mau): Bao gồm Cà Mau, Bạc Liêu ('VN73').
1243
+ * - Cụm 'VN09' (Đồng Tháp): Bao gồm Đồng Tháp, Tiền Giang ('VN37').
1244
+ * - Cụm 'VN69' (Vĩnh Long): Bao gồm Vĩnh Long, Bến Tre ('VN03'), Trà Vinh ('VN67').
1245
+ */
1246
+ Id: string;
1247
+ /** Danh sách mã xã/phường mục tiêu (mảng rỗng [] biểu thị chọn toàn bộ tỉnh/thành). */
1248
+ Districts: Array<number | string>;
1249
+ }
1250
+ interface ZaloAdsAdTargetingRegionItemDto {
1251
+ /**
1252
+ * Mã vùng miền:
1253
+ * - 1: Miền Bắc (18 cụm tỉnh mới / 28 tỉnh cũ)
1254
+ * - 2: Miền Trung (8 cụm tỉnh mới / 16 tỉnh cũ)
1255
+ * - 3: Miền Nam (8 cụm tỉnh mới / 19 tỉnh cũ)
1256
+ */
1257
+ Id: number;
1258
+ /**
1259
+ * Danh sách tỉnh/thành phố được chọn trong vùng.
1260
+ * Theo cơ chế compressAdData của Zalo Ads Client Engine:
1261
+ * Nếu mảng Provinces là rỗng ([]), hệ thống hiểu là CHỌN TOÀN BỘ VÙNG MIỀN ĐÓ.
1262
+ */
1263
+ Provinces: Array<ZaloAdsAdTargetingProvinceItemDto>;
1264
+ }
1265
+ interface ZaloAdsAdTargetingLocationContainerDto {
1266
+ Includes: Array<ZaloAdsAdTargetingRegionItemDto>;
1267
+ Excludes: Array<ZaloAdsAdTargetingRegionItemDto>;
1268
+ }
1269
+ interface ZaloAdsAdLocationSettingsDto {
1270
+ Cities?: Array<unknown>;
1271
+ Addresses?: Array<unknown>;
1272
+ /** Nhắm chọn cấp Tỉnh/Thành theo cấu trúc phân cấp Vùng miền. */
1273
+ DistrictTargeting?: ZaloAdsAdTargetingLocationContainerDto;
1274
+ /** Nhắm chọn chi tiết cấp Phường/Xã mới theo quy chuẩn 2026. */
1275
+ WardTargeting?: ZaloAdsAdTargetingLocationContainerDto;
1276
+ /** Cờ đánh dấu đã chuyển đổi sang cấp xã/phường. */
1277
+ IsConvertedToWard?: boolean;
1278
+ }
1104
1279
  interface ZaloAdsAdTargetingSettingsDto {
1105
1280
  Gender?: number;
1106
1281
  AgeRanges?: Array<number>;
1282
+ NewAgeRanges?: Array<number>;
1283
+ Location?: ZaloAdsAdLocationSettingsDto;
1107
1284
  Locations?: string;
1108
1285
  Provinces?: Array<number>;
1109
1286
  DistrictsTargeting?: string;
1110
1287
  WardsTargeting?: string;
1111
1288
  Platforms?: Array<number>;
1112
1289
  NetworkTypes?: Array<number>;
1290
+ Os?: Array<number>;
1113
1291
  OsTypes?: Array<number>;
1292
+ AdvanceTargeting?: {
1293
+ Includes?: Array<number>;
1294
+ Excludes?: Array<number>;
1295
+ };
1114
1296
  AdvanceTargetings?: Array<number>;
1297
+ CustomAudienceId?: number;
1298
+ ExcludedAudienceId?: number;
1299
+ Retargeting?: string;
1300
+ DmpAudience?: string;
1301
+ PhoneList?: Array<unknown>;
1115
1302
  CustomAudiences?: Array<number>;
1116
1303
  ExcludeCustomAudiences?: Array<number>;
1304
+ IncludedAudiences?: {
1305
+ Phones?: Array<unknown>;
1306
+ LeadSignal?: Array<unknown>;
1307
+ };
1308
+ ExcludedAudiences?: {
1309
+ Phones?: Array<unknown>;
1310
+ Forms?: Array<unknown>;
1311
+ Messages?: Array<unknown>;
1312
+ FormEvents?: Array<unknown>;
1313
+ MessageOAs?: Array<unknown>;
1314
+ MessageNonOAEvents?: Array<unknown>;
1315
+ } | null;
1117
1316
  }
1118
1317
  interface ZaloAdsAdZVideoSettingsDto {
1119
1318
  Url: string;
@@ -1137,6 +1336,11 @@ interface ZaloAdsAdSettingsDto {
1137
1336
  Rating?: number;
1138
1337
  NewFeatures?: Array<number>;
1139
1338
  CreatedClientVersion?: number;
1339
+ /**
1340
+ * Phương thức phân phối quảng cáo (0: Tiêu chuẩn - Standard, 1: Tăng tốc - SpeedUp).
1341
+ * Chỉ có hiệu lực khi Price.LimitType = 1 (Toàn lịch chạy).
1342
+ */
1343
+ DeliveryType?: ZaloAdsDeliveryType | number;
1140
1344
  }
1141
1345
  interface ZaloAdsAdUpdatePayloadDto {
1142
1346
  AdId: number;
@@ -1153,17 +1357,320 @@ interface ZaloAdsAdUpdatePayloadDto {
1153
1357
  ZaloPageId?: number;
1154
1358
  ZaloFormId?: string;
1155
1359
  ZaloFeedId?: string | number;
1360
+ ZaloVideoId?: number;
1156
1361
  MiniPageId?: number;
1157
- UseConversion?: 0 | 1;
1362
+ UseConversion?: ZaloAdsUseConversionValue | number;
1158
1363
  ConversionId?: number;
1159
1364
  Report?: Record<string, number>;
1160
1365
  }
1366
+ /** Danh mục mã hành động / nút CTA chuẩn trên Zalo Ads */
1367
+ declare const ZaloAdsActionType: {
1368
+ readonly DAT_NGAY: 1;
1369
+ readonly MUA_NGAY: 2;
1370
+ readonly THU_NGAY: 3;
1371
+ readonly TAI_NGAY: 4;
1372
+ readonly XEM_THEM: 5;
1373
+ readonly NGHE_NGAY: 6;
1374
+ readonly CHOI_NGAY: 7;
1375
+ readonly DANG_KY: 8;
1376
+ readonly GOI_DIEN: 9;
1377
+ /** Dành riêng cho Quảng cáo Official Account (Type 2) */
1378
+ readonly QUAN_TAM_OA: 6;
1379
+ };
1380
+ /** Danh mục mã nguồn video trên Zalo Ads (Settings.ZVideo.Src) */
1381
+ declare const ZaloAdsVideoSrc: {
1382
+ readonly UNUSED: -1;
1383
+ /** Sử dụng mã Zalo Video được cấp từ kênh */
1384
+ readonly VIDEO_CODE: 1;
1385
+ /** Tự tải video lên hoặc chọn từ Thư viện Media */
1386
+ readonly SELF_UPLOAD: 2;
1387
+ };
1388
+ type ZaloAdsVideoSrcValue = typeof ZaloAdsVideoSrc[keyof typeof ZaloAdsVideoSrc];
1389
+ /** Danh mục chu kỳ áp dụng ngân sách trên Zalo Ads (Settings.Price.LimitType) - Alias của ZaloAdsPriceLimitType */
1390
+ declare const ZaloAdsBudgetScheduleType: {
1391
+ /** Toàn lịch chạy */
1392
+ readonly TOTAL_SCHEDULE: 1;
1393
+ /** Mỗi ngày */
1394
+ readonly DAILY: 2;
1395
+ };
1396
+ type ZaloAdsBudgetScheduleTypeValue = typeof ZaloAdsBudgetScheduleType[keyof typeof ZaloAdsBudgetScheduleType];
1397
+ /** Danh mục mã khoảng tuổi nhắm chọn đối tượng trên Zalo Ads */
1398
+ declare const ZaloAdsAgeRangeId: {
1399
+ readonly UNDER_18: 10282;
1400
+ readonly FROM_18_TO_24: 10283;
1401
+ readonly FROM_25_TO_34: 10284;
1402
+ readonly FROM_35_TO_44: 10285;
1403
+ readonly FROM_45_TO_54: 10286;
1404
+ readonly FROM_55_TO_64: 10287;
1405
+ readonly OVER_64: 10288;
1406
+ };
1407
+ /** Danh mục mã hệ điều hành */
1408
+ declare const ZaloAdsOsId: {
1409
+ readonly ANDROID: 0;
1410
+ readonly IOS: 1;
1411
+ readonly PC: 3;
1412
+ };
1413
+ type ZaloAdsOsIdValue = typeof ZaloAdsOsId[keyof typeof ZaloAdsOsId];
1414
+ /** Danh mục mã 3 Vùng miền chuẩn trên Zalo Ads Targeting Engine */
1415
+ declare const ZaloAdsRegionId: {
1416
+ /** Miền Bắc (28 tỉnh/thành phố) */
1417
+ readonly NORTH: 1;
1418
+ /** Miền Trung (16 tỉnh/thành phố) */
1419
+ readonly CENTRAL: 2;
1420
+ /** Miền Nam (19 tỉnh/thành phố) */
1421
+ readonly SOUTH: 3;
1422
+ };
1423
+ type ZaloAdsRegionIdValue = typeof ZaloAdsRegionId[keyof typeof ZaloAdsRegionId];
1424
+ /**
1425
+ * Danh mục mã Tỉnh/Thành phố chuẩn trên Zalo Ads Targeting Engine (theo chuẩn ISO 3166-2:VN tiền tố 'VN')
1426
+ */
1427
+ declare const ZaloAdsProvinceCode: {
1428
+ readonly HANOI: "VN44";
1429
+ readonly HAI_PHONG: "VN13";
1430
+ readonly BAC_NINH: "VN74";
1431
+ readonly QUANG_NINH: "VN30";
1432
+ readonly HAI_DUONG: "VN79";
1433
+ readonly HUNG_YEN: "VN81";
1434
+ readonly VINH_PHUC: "VN86";
1435
+ readonly THAI_NGUYEN: "VN85";
1436
+ readonly BAC_GIANG: "VN71";
1437
+ readonly PHU_THO: "VN83";
1438
+ readonly NAM_DINH: "VN82";
1439
+ readonly THAI_BINH: "VN35";
1440
+ readonly NINH_BINH: "VN59";
1441
+ readonly THANH_HOA: "VN34";
1442
+ readonly NGHE_AN: "VN58";
1443
+ readonly HA_TINH: "VN52";
1444
+ readonly HOA_BINH: "VN53";
1445
+ readonly SON_LA: "VN32";
1446
+ readonly DIEN_BIEN: "VN92";
1447
+ readonly LAI_CHAU: "VN89";
1448
+ readonly LAO_CAI: "VN90";
1449
+ readonly YEN_BAI: "VN70";
1450
+ readonly TUYEN_QUANG: "VN68";
1451
+ readonly HA_GIANG: "VN50";
1452
+ readonly CAO_BANG: "VN05";
1453
+ readonly BAC_KAN: "VN72";
1454
+ readonly LANG_SON: "VN39";
1455
+ readonly HA_NAM: "VN80";
1456
+ readonly DA_NANG: "VN78";
1457
+ readonly THUA_THIEN_HUE: "VN66";
1458
+ readonly QUANG_NAM: "VN84";
1459
+ readonly QUANG_NGAI: "VN63";
1460
+ readonly BINH_DINH: "VN46";
1461
+ readonly PHU_YEN: "VN61";
1462
+ readonly KHANH_HOA: "VN54";
1463
+ readonly NINH_THUAN: "VN60";
1464
+ readonly BINH_THUAN: "VN47";
1465
+ readonly KON_TUM: "VN55";
1466
+ readonly GIA_LAI: "VN49";
1467
+ readonly DAK_LAK: "VN88";
1468
+ readonly DAK_NONG: "VN91";
1469
+ readonly LAM_DONG: "VN23";
1470
+ readonly QUANG_BINH: "VN62";
1471
+ readonly QUANG_TRI: "VN64";
1472
+ readonly HO_CHI_MINH: "VN20";
1473
+ readonly BINH_DUONG: "VN75";
1474
+ readonly DONG_NAI: "VN43";
1475
+ readonly BA_RIA_VUNG_TAU: "VN45";
1476
+ readonly LONG_AN: "VN24";
1477
+ readonly TIEN_GIANG: "VN37";
1478
+ readonly BEN_TRE: "VN03";
1479
+ readonly DONG_THAP: "VN09";
1480
+ readonly VINH_LONG: "VN69";
1481
+ readonly CAN_THO: "VN87";
1482
+ readonly HAU_GIANG: "VN93";
1483
+ readonly AN_GIANG: "VN01";
1484
+ readonly KIEN_GIANG: "VN21";
1485
+ readonly SOC_TRANG: "VN65";
1486
+ readonly BAC_LIEU: "VN73";
1487
+ readonly CA_MAU: "VN77";
1488
+ readonly TAY_NINH: "VN33";
1489
+ readonly BINH_PHUOC: "VN76";
1490
+ readonly TRA_VINH: "VN67";
1491
+ };
1492
+ type ZaloAdsProvinceCodeValue = typeof ZaloAdsProvinceCode[keyof typeof ZaloAdsProvinceCode];
1493
+ /**
1494
+ * Chế độ phân phối ngân sách quảng cáo trên Zalo Ads (Settings.DeliveryType):
1495
+ * - 0: Tiêu chuẩn (Standard) - Phân phối ngân sách đồng đều suốt toàn bộ thời gian chạy quảng cáo.
1496
+ * - 1: Tăng tốc (SpeedUp) - Phân phối quảng cáo nhanh nhất có thể cho tới khi cạn ngân sách.
1497
+ *
1498
+ * Lưu ý: Chỉ xuất hiện và có hiệu lực khi Price.LimitType = 1 (Toàn lịch chạy).
1499
+ */
1500
+ type ZaloAdsDeliveryType = 0 | 1;
1501
+ /**
1502
+ * Danh mục kiểu phân phối ngân sách quảng cáo ("Cách phân phối" trên giao diện Zalo Ads):
1503
+ * Trường dữ liệu lưu trữ tại: `Settings.DeliveryType` (kiểu số nguyên 0 hoặc 1).
1504
+ *
1505
+ * - STANDARD (0): Tiêu chuẩn (Paced Delivery)
1506
+ * Thuật toán Zalo Ads rải đều ngân sách xuyên suốt các khung giờ trong ngày/toàn lịch chạy
1507
+ * dựa theo lưu lượng thị trường và tỷ lệ giờ cao điểm. Tự động điều tiết hãm tốc độ cắn tiền
1508
+ * nếu phát hiện ngân sách tiêu xài quá nhanh. Phù hợp duy trì thương hiệu, ổn định chi phí CPA.
1509
+ *
1510
+ * - SPEED_UP / ACCELERATED (1): Tăng tốc (Uncapped Pacing)
1511
+ * Gỡ bỏ hoàn toàn bộ điều tiết tốc độ. Miễn là có phiên đấu giá (auction) phù hợp với giá thầu
1512
+ * và tệp đối tượng nhắm chọn, hệ thống sẽ phân phối tối đa ngay lập tức cho đến khi cạn kiệt ngân sách.
1513
+ * Phù hợp cho chiến dịch Flash Sale, sự kiện ngắn, hoặc cần tối đa hóa tiếp cận trong thời gian ngắn.
1514
+ *
1515
+ * ĐIỀU KIỆN NGẦM ĐỂ HIỂN THỊ TRÊN UI (hàm `shouldHaveDeliveryType` trong mã nguồn Angular):
1516
+ * 1. `Price.Type in [CPC (2), CPA (5)]`: Hình thức tính tiền phải là CPC hoặc CPA.
1517
+ * 2. `Price.LimitType === LIFE_TIME (1)`: Bắt buộc chọn ngân sách "Toàn lịch chạy" (không áp dụng cho ngân sách mỗi ngày).
1518
+ * 3. `validDaysRun(StartDate, EndDate) >= 2`: Thời gian chạy chiến dịch tối thiểu từ 2 ngày trở lên.
1519
+ */
1520
+ declare const ZaloAdsDeliveryType: {
1521
+ /** Tiêu chuẩn (0): Phân phối đồng đều nhất có thể theo giờ cao điểm (Standard). */
1522
+ readonly STANDARD: 0;
1523
+ /** Tăng tốc (1): Phân phối nhanh nhất có thể để tối đa hóa tiếp cận (SpeedUp). */
1524
+ readonly SPEED_UP: 1;
1525
+ /** Alias tương thích ngược cho SPEED_UP (1). */
1526
+ readonly ACCELERATED: 1;
1527
+ };
1528
+ type ZaloAdsDeliveryTypeValue = typeof ZaloAdsDeliveryType[keyof typeof ZaloAdsDeliveryType];
1529
+ /**
1530
+ * Danh mục phương thức phân phối ngân sách chi tiêu (`Settings.Price.SpendingMethod`):
1531
+ * - STANDARD (0): Tiêu chuẩn (rải đều ngân sách).
1532
+ * - FAST / ACCELERATED (1): Nhanh / Tăng tốc (ưu tiên thắng thầu và phân phối tối đa ngay lập tức).
1533
+ */
1534
+ declare const ZaloAdsSpendingMethod: {
1535
+ /** Tiêu chuẩn (0): Rải đều ngân sách xuyên suốt ngày. */
1536
+ readonly STANDARD: 0;
1537
+ /** Tăng tốc (1): Phân phối nhanh, ưu tiên thắng thầu ngay khi có phiên đấu giá. */
1538
+ readonly FAST: 1;
1539
+ /** Alias cho FAST (1). */
1540
+ readonly ACCELERATED: 1;
1541
+ };
1542
+ type ZaloAdsSpendingMethodValue = typeof ZaloAdsSpendingMethod[keyof typeof ZaloAdsSpendingMethod];
1543
+ /**
1544
+ * Danh mục phương thức tính tiền quảng cáo (`Settings.Price.Type`):
1545
+ * - CPM (1): Lượt hiển thị (áp dụng cho Display Ads hoặc tối ưu hiển thị).
1546
+ * - CPC (2): Lượt nhấn (Click) - Chuẩn cho Website Ads, Commerce Ads.
1547
+ * - CPI (3): Lượt cài đặt ứng dụng (App Install).
1548
+ * - CPF (4): Lượt quan tâm Official Account (Follow).
1549
+ * - CPA (5): Lượt liên hệ / chuyển đổi mục tiêu (Lead / Message).
1550
+ * - CPO (6): Lượt đặt hàng (Order).
1551
+ * - CPV (7): Lượt xem video hoàn tất (Complete View).
1552
+ * - CPD (8): Chi phí cố định theo ngày.
1553
+ * - CPV1S (9): Lượt xem video từ 1 giây.
1554
+ */
1555
+ declare const ZaloAdsPriceType: {
1556
+ readonly CPM: 1;
1557
+ readonly CPC: 2;
1558
+ readonly CPI: 3;
1559
+ readonly CPF: 4;
1560
+ readonly CPA: 5;
1561
+ readonly CPO: 6;
1562
+ readonly CPV: 7;
1563
+ readonly CPD: 8;
1564
+ readonly CPV1S: 9;
1565
+ };
1566
+ type ZaloAdsPriceTypeValue = typeof ZaloAdsPriceType[keyof typeof ZaloAdsPriceType];
1567
+ /**
1568
+ * Danh mục kiểu áp dụng ngân sách (`Settings.Price.LimitType`):
1569
+ * - LIFE_TIME (1): Toàn lịch chạy (ngân sách tổng cho toàn bộ thời gian chiến dịch, tối thiểu 600.000 VNĐ).
1570
+ * - DAILY (2): Mỗi ngày (ngân sách giới hạn theo từng ngày).
1571
+ */
1572
+ declare const ZaloAdsPriceLimitType: {
1573
+ /** Áp dụng ngân sách cho toàn lịch chạy (Life time budget). */
1574
+ readonly LIFE_TIME: 1;
1575
+ /** Áp dụng ngân sách cho mỗi ngày (Daily budget). */
1576
+ readonly DAILY: 2;
1577
+ };
1578
+ type ZaloAdsPriceLimitTypeValue = typeof ZaloAdsPriceLimitType[keyof typeof ZaloAdsPriceLimitType];
1579
+ /**
1580
+ * Danh mục mã giao diện bố cục hiển thị mở rộng (`Settings.AdInfo.XTemplates`):
1581
+ * Checkbox "Hiển thị nhiều hình ảnh" trên UI Zalo Ads chỉ được bật khi mảng XTemplates
1582
+ * chứa đồng thời cả 42 (Carousel) và 43 (Album): [42, 43].
1583
+ */
1584
+ declare const ZaloAdsXTemplates: {
1585
+ /** Định dạng thẻ quay vòng lướt ngang nhiều hình ảnh. */
1586
+ readonly CAROUSEL: 42;
1587
+ /** Định dạng bộ sưu tập album ảnh (lưới 4 ảnh). */
1588
+ readonly ALBUM: 43;
1589
+ /** Định dạng video tự động phát trên Feed. */
1590
+ readonly ZALO_VIDEO: 44;
1591
+ /** Định dạng ảnh dọc toàn màn hình. */
1592
+ readonly PORTRAIT_IMAGE: 45;
1593
+ /** Định dạng ảnh đơn truyền thống (1024x533). */
1594
+ readonly SINGLE_IMAGE: 46;
1595
+ /** Định dạng ảnh bìa cho quảng cáo video. */
1596
+ readonly COVER_IMAGE_FOR_VIDEO_AD: 47;
1597
+ /** Định dạng ảnh vuông. */
1598
+ readonly SQUARE_IMAGE: 48;
1599
+ /** Định dạng chú thích nội dung dài (tối đa 2.000 ký tự). */
1600
+ readonly LONG_CAPTION: 49;
1601
+ };
1602
+ type ZaloAdsXTemplatesValue = typeof ZaloAdsXTemplates[keyof typeof ZaloAdsXTemplates];
1603
+ /**
1604
+ * Danh mục mã tỉ lệ cắt ảnh chuẩn (`Settings.Image.ExtraImgs[i].Crops[j].Ratio`):
1605
+ * Ma trận 8 lát cắt bắt buộc cho bộ 4 ảnh Album + Carousel:
1606
+ * - Ảnh 0 (Ảnh bìa): Bắt buộc đủ 3 lát cắt: RATIO_4_3 (1), RATIO_2_1 (2 - Bìa Album), RATIO_1_1 (4).
1607
+ * (Nếu thiếu RATIO_2_1, UI sẽ báo lỗi: "Thiếu ảnh cắt tỉ lệ album").
1608
+ * - Ảnh 1: Bắt buộc 2 lát cắt: RATIO_4_3 (1), RATIO_1_1 (4).
1609
+ * - Ảnh 2: Bắt buộc 2 lát cắt: RATIO_4_3 (1), RATIO_1_1 (4).
1610
+ * - Ảnh 3: Bắt buộc 1 lát cắt: RATIO_1_1 (4).
1611
+ */
1612
+ declare const ZaloAdsImageRatio: {
1613
+ /** Tỉ lệ 16:9 (1024x576 px - Video / Banner phong cảnh). */
1614
+ readonly RATIO_16_9: 0;
1615
+ /** Tỉ lệ 4:3 (1024x768 px - Ảnh phụ Album / Carousel). */
1616
+ readonly RATIO_4_3: 1;
1617
+ /** Tỉ lệ 2:1 (1024x512 px - ẢNH BÌA NGANG BẮT BUỘC CỦA ALBUM). */
1618
+ readonly RATIO_2_1: 2;
1619
+ /** Tỉ lệ 3:2. */
1620
+ readonly RATIO_3_2: 3;
1621
+ /** Tỉ lệ 1:1 (1024x1024 px - Ảnh vuông). */
1622
+ readonly RATIO_1_1: 4;
1623
+ };
1624
+ type ZaloAdsImageRatioValue = typeof ZaloAdsImageRatio[keyof typeof ZaloAdsImageRatio];
1625
+ /**
1626
+ * Danh mục cờ và nguồn dữ liệu tối ưu hóa chuyển đổi (`UseConversion`):
1627
+ * - NOT_USE (0): Không chọn pixel - Tắt tối ưu hóa chuyển đổi. Hệ thống chỉ phân phối theo giá thầu lượt click (CPC) hoặc hiển thị (CPM) mà không quan tâm hành vi người dùng trên website.
1628
+ * - USE (1): Pixel của tôi - Nguồn dữ liệu từ Zalo Pixel cá nhân do nhà quảng cáo tự chèn mã JavaScript (window.za(...)) vào mã nguồn website (ví dụ: https://redai.vn). Bắt buộc đi kèm `ConversionId` từ GET /api/conversion/all.
1629
+ * - LADI_PAGE (2): Pixel liên kết Ladipage - Dành cho Landing Page dựng bằng nền tảng LadiPage đã tích hợp Zalo Pixel sẵn. Hệ thống tự động nhận diện sự kiện chuẩn mà không cần tạo conversion thủ công.
1630
+ * - MINI_APP (3): Zalo Mini App - Dành cho các chiến dịch hướng người dùng vào ứng dụng Zalo Mini App.
1631
+ * - USE_OFF (-1): Cờ lưu nháp khi tạm thời tắt hoặc hủy chọn Pixel cá nhân.
1632
+ * - LADI_PAGE_OFF (-2): Cờ lưu nháp khi tắt liên kết Pixel Ladipage.
1633
+ * - MINI_APP_OFF (-3): Cờ lưu nháp khi tắt liên kết Zalo Mini App.
1634
+ */
1635
+ declare const ZaloAdsUseConversion: {
1636
+ /** Không chọn pixel (0): Tắt tối ưu hóa chuyển đổi. */
1637
+ readonly NOT_USE: 0;
1638
+ /** Pixel của tôi (1): Zalo Pixel tự host chèn script, cần kèm ConversionId. */
1639
+ readonly USE: 1;
1640
+ /** Pixel liên kết Ladipage (2): Landing Page đối tác LadiPage. */
1641
+ readonly LADI_PAGE: 2;
1642
+ /** Zalo Mini App (3): Ứng dụng Zalo Mini App. */
1643
+ readonly MINI_APP: 3;
1644
+ /** Tạm thời tắt Pixel của tôi (-1): Cờ lưu nháp. */
1645
+ readonly USE_OFF: -1;
1646
+ /** Tạm thời tắt Pixel Ladipage (-2): Cờ lưu nháp. */
1647
+ readonly LADI_PAGE_OFF: -2;
1648
+ /** Tạm thời tắt Pixel Mini App (-3): Cờ lưu nháp. */
1649
+ readonly MINI_APP_OFF: -3;
1650
+ };
1651
+ type ZaloAdsUseConversionValue = typeof ZaloAdsUseConversion[keyof typeof ZaloAdsUseConversion];
1161
1652
  interface ZaloAdsAdMutationResultDto {
1162
1653
  AdId?: number;
1163
1654
  CampaignId?: number;
1164
1655
  Status?: number;
1165
1656
  RowVersion?: number;
1166
1657
  }
1658
+ /** Tham số yêu cầu nhân bản mẫu quảng cáo (POST /zaapi/DuplicateAd) */
1659
+ interface ZaloAdsDuplicateAdRequest {
1660
+ /** ID mẫu quảng cáo gốc cần nhân bản (bắt buộc). */
1661
+ adid?: number;
1662
+ /** Alias cho adid. */
1663
+ adId?: number;
1664
+ }
1665
+ /** Kết quả phản hồi khi nhân bản mẫu quảng cáo */
1666
+ interface ZaloAdsDuplicateAdResponse {
1667
+ /** Mã trạng thái: 0 = Thành công, khác 0 = Lỗi */
1668
+ code: number;
1669
+ /** Chuỗi thông báo kết quả (chứa ID của Ad mới tạo) */
1670
+ msg?: string;
1671
+ /** ID số nguyên của Ad mới vừa được nhân bản */
1672
+ data: number;
1673
+ }
1167
1674
  interface ZaloAdsCampaignCreatePayloadDto {
1168
1675
  name: string;
1169
1676
  campaignType: number;
@@ -1301,18 +1808,34 @@ type ZaloAdsListFlowsByOfficialAccountResponse = {
1301
1808
  index?: number;
1302
1809
  };
1303
1810
  };
1304
- /** Thay đổi trạng thái của một chiến dịch Zalo Ads theo mã trạng thái được chỉ định. Đây là destructive mutation tool thuộc lane quản lý chiến dịch; dùng khi cần dừng, hủy hoặc chuyển trạng thái chiến dịch và phải xác minh rõ mã trạng thái trước khi gọi. Giá trị -2 trong request đã ghi nhận sẽ xóa chiến dịch. */
1811
+ /**
1812
+ * Danh mục mã trạng thái chiến dịch trên Zalo Ads (POST /api/campaign/change-status):
1813
+ * - OFF (0): Tắt / Dừng chiến dịch (Inactive).
1814
+ * - ACTIVE (1): Bật / Tiếp tục / Kích hoạt lại chiến dịch (Active).
1815
+ * - PAUSED (2): Tạm dừng chiến dịch (Lưu ý: Nếu chiến dịch nháp chưa có QC hoạt động sẽ ném HTTP 500).
1816
+ * - DELETED (-2): Xóa vĩnh viễn chiến dịch.
1817
+ */
1818
+ declare const ZaloAdsCampaignStatus: {
1819
+ readonly OFF: 0;
1820
+ readonly ACTIVE: 1;
1821
+ readonly PAUSED: 2;
1822
+ readonly DELETED: -2;
1823
+ };
1824
+ type ZaloAdsCampaignStatusValue = typeof ZaloAdsCampaignStatus[keyof typeof ZaloAdsCampaignStatus];
1825
+ /** Thay đổi trạng thái của một chiến dịch Zalo Ads (Bật / Tắt / Tạm dừng / Xóa) theo mã trạng thái được chỉ định (`POST /api/campaign/change-status`). */
1305
1826
  type ZaloAdsChangeCampaignStatusRequest = {
1306
- /** Mã trạng thái cần áp dụng. Giá trị -2 đã được xác nhận làm xóa chiến dịch; các giá trị khác chưa có ý nghĩa được xác minh từ request cung cấp. */
1307
- status: number;
1827
+ /** Mã trạng thái cần áp dụng: 1 = Bật lại, 0 = Tắt, 2 = Tạm dừng, -2 = Xóa chiến dịch. */
1828
+ status: 0 | 1 | 2 | -2 | number;
1308
1829
  /** ID chiến dịch cần đổi trạng thái. */
1309
1830
  campaignId: number;
1310
1831
  };
1311
1832
  type ZaloAdsChangeCampaignStatusResponse = {
1312
- /** Thông điệp kết quả. Với status=-2, mẫu trả 'Xóa chiến dịch thành công.' */
1833
+ /** Thông điệp kết quả từ Zalo Ads (ví dụ: 'Thành công', 'Xóa chiến dịch thành công.'). */
1313
1834
  msg: string;
1314
1835
  /** Mã kết quả; 0 biểu thị thao tác thành công. */
1315
1836
  code: number;
1837
+ /** Trạng thái mới của chiến dịch sau khi thay đổi (1: Đã bật, 0: Đã tắt). */
1838
+ data?: number;
1316
1839
  };
1317
1840
  /** Tạo audience tùy chỉnh từ điều kiện targeting, tệp nguồn hoặc audience loại trừ/bao gồm đã chọn. Đây là mutation tool thuộc lane zalo-ads-audience; dùng khi cấu trúc targeting và quyền xử lý dữ liệu đã được xác nhận. Targeting được gửi dưới dạng chuỗi JSON theo contentSchema. */
1318
1841
  type ZaloAdsCreateCustomAudienceRequest = {
@@ -1508,15 +2031,53 @@ type ZaloAdsDeleteCustomAudienceResponse = {
1508
2031
  /** Mã kết quả; 0 biểu thị thành công trong phản hồi đã quan sát. */
1509
2032
  code: number;
1510
2033
  };
1511
- /** Lấy chi tiết một quảng cáo theo ID. Đây là detail tool thuộc lane zalo-ads-ad; dùng khi cần payload hiện tại trước khi phân tích hoặc cập nhật quảng cáo. */
2034
+ /** Lấy chi tiết một quảng cáo theo ID (GET /zaapi/getAdFromAdId?adId=...&v=2&newWard=true). */
1512
2035
  type ZaloAdsGetAdByIdRequest = {
1513
2036
  /** ID mẫu quảng cáo cần lấy chi tiết (query param `adId`). */
1514
2037
  adId?: number | string;
2038
+ /** Phiên bản schema cấu trúc dữ liệu trả về (mặc định: 2). */
2039
+ v?: number | string;
2040
+ /** Cờ kích hoạt định dạng nhắm chọn cấp Phường/Xã mới (mặc định: true). */
2041
+ newWard?: boolean | string;
1515
2042
  };
2043
+ /** Thông tin chiến dịch mở rộng đính kèm trong phản hồi getAdById */
2044
+ interface ZaloAdsCampaignDetailExtendDto {
2045
+ CampaignId: number;
2046
+ MemberId: number;
2047
+ Name: string;
2048
+ Type: number;
2049
+ StartDate: number;
2050
+ EndDate: number;
2051
+ Status: number;
2052
+ Modified?: number;
2053
+ Created?: number;
2054
+ AdtimaCampaignId?: number;
2055
+ AdtimaOrderId?: number;
2056
+ ReadOnly?: number;
2057
+ CrmCampaignId?: string;
2058
+ Settings?: {
2059
+ BudgetLimit?: {
2060
+ Type?: number;
2061
+ Amount?: number;
2062
+ LimitType?: number;
2063
+ };
2064
+ };
2065
+ CreatedBy?: number;
2066
+ AgencyId?: number;
2067
+ Username?: string;
2068
+ ViewType?: string;
2069
+ }
1516
2070
  type ZaloAdsGetAdByIdResponse = {
1517
2071
  code?: number;
1518
2072
  msg?: string;
1519
2073
  data?: ZaloAdsAdUpdatePayloadDto;
2074
+ extend?: ZaloAdsCampaignDetailExtendDto;
2075
+ flags?: {
2076
+ IsOaValidForAd?: boolean;
2077
+ [key: string]: unknown;
2078
+ };
2079
+ report?: number[] | Record<string, number>;
2080
+ viewdata?: unknown[];
1520
2081
  AdId?: number;
1521
2082
  CampaignId?: number;
1522
2083
  MemberId?: number;
@@ -1532,7 +2093,7 @@ type ZaloAdsGetAdByIdResponse = {
1532
2093
  ZaloFormId?: string;
1533
2094
  ZaloFeedId?: string | number;
1534
2095
  MiniPageId?: number;
1535
- UseConversion?: 0 | 1;
2096
+ UseConversion?: ZaloAdsUseConversionValue | number;
1536
2097
  ConversionId?: number;
1537
2098
  Report?: Record<string, number>;
1538
2099
  };
@@ -1540,8 +2101,8 @@ type ZaloAdsGetAdByIdResponse = {
1540
2101
  type ZaloAdsGetAdChangeLogRequest = {
1541
2102
  /** ID quảng cáo cần xem lịch sử. Có thể lấy từ kết quả tạo quảng cáo hoặc dữ liệu chi tiết quảng cáo. */
1542
2103
  adId: number;
1543
- /** Mã loại nhật ký. Request đã ghi nhận dùng 1. */
1544
- type: number;
2104
+ /** Mã loại nhật ký (mặc định: 1). */
2105
+ type?: number;
1545
2106
  };
1546
2107
  type ZaloAdsGetAdChangeLogResponse = {
1547
2108
  /** Thông điệp kết quả từ Zalo Ads. */
@@ -2221,11 +2782,18 @@ type ZaloAdsGetZaapiCheckcamphasmanyadsResponse = {
2221
2782
  type ZaloAdsGetZaapiGetadsfromcampaignidRequest = {
2222
2783
  campaignId?: number | string;
2223
2784
  campId?: number | string;
2785
+ dataType?: number | string;
2786
+ v?: number | string;
2224
2787
  };
2225
2788
  type ZaloAdsGetZaapiGetadsfromcampaignidResponse = {
2226
2789
  code: number;
2227
2790
  msg?: string;
2228
2791
  data: Array<ZaloAdsAdUpdatePayloadDto>;
2792
+ extend?: ZaloAdsCampaignDetailExtendDto;
2793
+ extra?: {
2794
+ appliedRuleInfo?: Array<unknown>;
2795
+ [key: string]: unknown;
2796
+ };
2229
2797
  };
2230
2798
  interface ZaloAdsPageConfigDto {
2231
2799
  /** Hạng tài khoản OA (ví dụ: 0 = Phổ thông, 1 = Xác thực/Nâng cao). */
@@ -2669,10 +3237,15 @@ type ZaloAdsPostZaapiDeleteadResponse = {
2669
3237
  };
2670
3238
  /** Đổi tên hiển thị của một chiến dịch Zalo Ads đã tồn tại. Đây là mutation tool thuộc lane quản lý chiến dịch; dùng khi chỉ cần thay tên mà không thay đổi ngân sách, lịch chạy hoặc quảng cáo bên trong. Kết quả chỉ xác nhận thao tác thành công hoặc trả lỗi từ Zalo Ads. */
2671
3239
  type ZaloAdsRenameCampaignRequest = {
2672
- /** ID chiến dịch cần đổi tên. Có thể lấy từ kết quả tạo chiến dịch hoặc dữ liệu quảng cáo chi tiết. */
2673
- campid: number;
2674
- /** Tên hiển thị mới của chiến dịch. */
2675
- newname: string;
3240
+ /** ID chiến dịch cần đổi tên (server nhận tham số campid). */
3241
+ campid?: number;
3242
+ /** Alias thân thiện cho campid */
3243
+ campaignId?: number;
3244
+ /** Tên hiển thị mới của chiến dịch (server nhận tham số newname). */
3245
+ newname?: string;
3246
+ /** Alias thân thiện cho newname */
3247
+ campaignName?: string;
3248
+ name?: string;
2676
3249
  };
2677
3250
  type ZaloAdsRenameCampaignResponse = {
2678
3251
  /** Thông điệp kết quả từ Zalo Ads. */
@@ -2724,6 +3297,7 @@ declare class ZaloAdsMessageAdUpdateDataDto {
2724
3297
  ZaloFlowId: number;
2725
3298
  ZaloPageId?: number;
2726
3299
  ZaloFormId?: string;
3300
+ UseConversion?: ZaloAdsUseConversionValue | number;
2727
3301
  ConversionId?: number;
2728
3302
  Report?: Record<string, number>;
2729
3303
  }
@@ -2948,15 +3522,23 @@ type ZaloAdsCreateAutomatedRuleResponse = {
2948
3522
  /** ID quy tắc tự động vừa tạo hoặc cờ kết quả trả về từ hệ thống (ví dụ: 1). */
2949
3523
  data?: number;
2950
3524
  };
2951
- /** Cập nhật quy tắc tự động (Automated Rule) trên Zalo Ads. */
3525
+ interface ZaloAdsAutomatedRuleAppliedItemDto {
3526
+ appliedId: number;
3527
+ mode: number;
3528
+ }
3529
+ /** Cập nhật quy tắc tự động (Automated Rule) trên Zalo Ads (`POST /api/ad/automatedrules/update`). */
2952
3530
  type ZaloAdsUpdateAutomatedRuleRequest = {
2953
3531
  automatedRuleId: number;
2954
- rowVersion: number;
2955
- appliedTo: number;
3532
+ scope?: number;
2956
3533
  ruleName: string;
2957
3534
  action: ZaloAdsAutomatedRuleActionDto;
2958
3535
  conditions: Array<ZaloAdsAutomatedRuleConditionDto>;
2959
- schedule: ZaloAdsAutomatedRuleScheduleDto;
3536
+ frequency?: number;
3537
+ appliedItems?: Array<ZaloAdsAutomatedRuleAppliedItemDto>;
3538
+ appliedIds?: number[];
3539
+ rowVersion?: number;
3540
+ appliedTo?: number;
3541
+ schedule?: ZaloAdsAutomatedRuleScheduleDto;
2960
3542
  campaignIds?: number[];
2961
3543
  adIds?: number[];
2962
3544
  };
@@ -2965,6 +3547,31 @@ type ZaloAdsUpdateAutomatedRuleResponse = {
2965
3547
  msg?: string;
2966
3548
  data?: number | boolean;
2967
3549
  };
3550
+ /** Tra cứu chi tiết một quy tắc tự động (Automated Rule) theo ID (`GET /api/automatedrules/{automatedRuleId}`). */
3551
+ type ZaloAdsGetAutomatedRuleDetailRequest = {
3552
+ automatedRuleId: number;
3553
+ };
3554
+ type ZaloAdsGetAutomatedRuleDetailResponse = {
3555
+ code: number;
3556
+ msg?: string;
3557
+ data?: {
3558
+ automatedRule: {
3559
+ automatedRuleId: number;
3560
+ rowVersion?: number;
3561
+ memberId?: number;
3562
+ createdBy?: number;
3563
+ ruleName: string;
3564
+ action: ZaloAdsAutomatedRuleActionDto;
3565
+ conditions: Array<ZaloAdsAutomatedRuleConditionDto>;
3566
+ scope: number;
3567
+ appliedIds?: number[];
3568
+ frequency?: number;
3569
+ created?: number;
3570
+ modified?: number;
3571
+ };
3572
+ status: number;
3573
+ };
3574
+ };
2968
3575
  /** Thay đổi trạng thái bật hoặc tắt (active/inactive) của một quy tắc tự động (Automated Rule) trên Zalo Ads theo ID quy tắc (`POST /api/automatedrules/change-status`). Dùng khi đã có `automatedRuleId` và cần tạm dừng (`status = 0`) hoặc kích hoạt lại (`status = 1`) quy tắc tự động. */
2969
3576
  type ZaloAdsChangeAutomatedRuleStatusRequest = {
2970
3577
  /** ID định danh duy nhất của quy tắc tự động cần thay đổi trạng thái (lấy từ `listAutomatedRules`). */
@@ -3327,6 +3934,22 @@ type ZaloAdsListReportFiltersResponse = Array<{
3327
3934
  content: string;
3328
3935
  model: number;
3329
3936
  }>;
3937
+ /** Xuất và tải báo cáo hiệu quả quảng cáo dạng file Excel (.xlsx) qua endpoint thu thập và xuất báo cáo (POST https://ads.zalo.me/api/collect). */
3938
+ type ZaloAdsDownloadReportRequest = {
3939
+ /** Hành động / chủ đề tải báo cáo; mặc định là "cd.download.report". */
3940
+ t?: "cd.download.report" | string;
3941
+ /** Danh sách ID các mẫu quảng cáo cần xuất báo cáo (ví dụ: [19770157]). */
3942
+ adIds: number[];
3943
+ /** Mã trạng thái lọc quảng cáo khi xuất báo cáo (ví dụ: 2 = Đang chạy). */
3944
+ status?: number;
3945
+ /** Bộ lọc thời gian: 0 = Toàn thời gian / Tùy chỉnh. */
3946
+ dateFilter?: number;
3947
+ /** Loại chỉ số dữ liệu báo cáo (100001: Lượt nhấn / Chi phí / Hiển thị). */
3948
+ reportKind?: number;
3949
+ /** Unix timestamp thời điểm gửi lệnh xuất báo cáo (giây). */
3950
+ et?: number;
3951
+ };
3952
+ type ZaloAdsDownloadReportResponse = Blob;
3330
3953
 
3331
3954
  /**
3332
3955
  * Tham số đầu vào cho method tiện ích `uploadAndSaveImage`
@@ -3507,12 +4130,22 @@ interface ValidateVideoInput {
3507
4130
  fileName?: string;
3508
4131
  }
3509
4132
 
3510
- /**
3511
- * Dịch vụ Quản lý Chiến dịch & Quảng cáo Zalo Ads (Tạo chiến dịch, đổi trạng thái, cập nhật quảng cáo các định dạng).
3512
- */
3513
-
3514
4133
  declare class ZaloCampaignsService {
3515
4134
  protected readonly client: ZaloSdkHttpClient;
4135
+ readonly validator: {
4136
+ createCampaign: typeof validateCreateCampaignPayload;
4137
+ updateAd: typeof validateUpdateAdPayload;
4138
+ renameCampaign: typeof validateRenameCampaignParams;
4139
+ changeStatus: typeof validateChangeCampaignStatusParams;
4140
+ duplicateAd: typeof validateDuplicateAdParams;
4141
+ };
4142
+ static readonly validator: {
4143
+ createCampaign: typeof validateCreateCampaignPayload;
4144
+ updateAd: typeof validateUpdateAdPayload;
4145
+ renameCampaign: typeof validateRenameCampaignParams;
4146
+ changeStatus: typeof validateChangeCampaignStatusParams;
4147
+ duplicateAd: typeof validateDuplicateAdParams;
4148
+ };
3516
4149
  constructor(client: ZaloSdkHttpClient);
3517
4150
  updateVideoAd(request: ZaloAdsUpdateVideoAdRequest, options?: RequestOptions): Promise<ZaloAdsUpdateVideoAdResponse>;
3518
4151
  changeCampaignStatus(request: ZaloAdsChangeCampaignStatusRequest, options?: RequestOptions): Promise<ZaloAdsChangeCampaignStatusResponse>;
@@ -3540,6 +4173,8 @@ declare class ZaloCampaignsService {
3540
4173
  getApiSpellCheckV2(request: ZaloAdsGetApiSpellCheckV2Request, options?: RequestOptions): Promise<ZaloAdsGetApiSpellCheckV2Response>;
3541
4174
  getZaapiCheckcamphasmanyads(request?: ZaloAdsGetZaapiCheckcamphasmanyadsRequest, options?: RequestOptions): Promise<ZaloAdsGetZaapiCheckcamphasmanyadsResponse>;
3542
4175
  getZaapiGetadsfromcampaignid(request?: ZaloAdsGetZaapiGetadsfromcampaignidRequest, options?: RequestOptions): Promise<ZaloAdsGetZaapiGetadsfromcampaignidResponse>;
4176
+ /** Alias lấy danh sách quảng cáo của chiến dịch kèm metadata extend và extra.appliedRuleInfo */
4177
+ getAdsFromCampaignId(request?: ZaloAdsGetZaapiGetadsfromcampaignidRequest, options?: RequestOptions): Promise<ZaloAdsGetZaapiGetadsfromcampaignidResponse>;
3543
4178
  getZaapiGetallpages(request?: ZaloAdsGetZaapiGetallpagesRequest, options?: RequestOptions): Promise<ZaloAdsGetZaapiGetallpagesResponse>;
3544
4179
  getAllPages(request?: ZaloAdsGetZaapiGetallpagesRequest, options?: RequestOptions): Promise<ZaloAdsGetZaapiGetallpagesResponse>;
3545
4180
  getZaapiGetownedarticles(request: ZaloAdsGetZaapiGetownedarticlesRequest, options?: RequestOptions): Promise<ZaloAdsGetZaapiGetownedarticlesResponse>;
@@ -3583,6 +4218,11 @@ declare class ZaloCampaignsService {
3583
4218
  * @param timeoutMs Thời gian chờ tối đa (mặc định: 15.000ms = 15 giây).
3584
4219
  */
3585
4220
  checkSpellV3AndWait(request: ZaloAdsCreateSpellCheckV3JobRequest, pollIntervalMs?: number, timeoutMs?: number, options?: RequestOptions): Promise<ZaloAdsGetSpellCheckV3JobResponse>;
4221
+ /**
4222
+ * Nhân bản (sao chép / duplicate) một mẫu quảng cáo đã tồn tại trên Zalo Ads (POST /zaapi/DuplicateAd).
4223
+ * Giúp tạo nhanh một bản sao Ad mới trong cùng chiến dịch để thực hiện A/B testing.
4224
+ */
4225
+ duplicateAd(request: ZaloAdsDuplicateAdRequest, options?: RequestOptions): Promise<ZaloAdsDuplicateAdResponse>;
3586
4226
  }
3587
4227
 
3588
4228
  /**
@@ -3687,6 +4327,8 @@ declare class ZaloReportsService {
3687
4327
  getUniqueUserReport(...args: Parameters<this["getReportapiV2UniqueUser"]>): ReturnType<this["getReportapiV2UniqueUser"]>;
3688
4328
  /** Báo cáo chiến dịch theo ngày/tháng (Legacy ZAAPI) */
3689
4329
  getCampaignReportLegacy(...args: Parameters<this["getZaapiCampaignReportcampaign"]>): ReturnType<this["getZaapiCampaignReportcampaign"]>;
4330
+ /** Xuất và tải trực tiếp tệp tin Excel (.xlsx / Blob) báo cáo hiệu quả quảng cáo (POST /api/collect) */
4331
+ downloadReport(request: ZaloAdsDownloadReportRequest, options?: RequestOptions): Promise<Blob>;
3690
4332
  }
3691
4333
 
3692
4334
  /**
@@ -3721,6 +4363,7 @@ declare class ZaloAutomatedRulesService {
3721
4363
  protected readonly client: ZaloSdkHttpClient;
3722
4364
  constructor(client: ZaloSdkHttpClient);
3723
4365
  listAutomatedRules(request?: ZaloAdsListAutomatedRulesRequest, options?: RequestOptions): Promise<ZaloAdsListAutomatedRulesResponse>;
4366
+ getAutomatedRuleDetail(request: ZaloAdsGetAutomatedRuleDetailRequest, options?: RequestOptions): Promise<ZaloAdsGetAutomatedRuleDetailResponse>;
3724
4367
  createAutomatedRule(request: ZaloAdsCreateAutomatedRuleRequest, options?: RequestOptions): Promise<ZaloAdsCreateAutomatedRuleResponse>;
3725
4368
  updateAutomatedRule(request: ZaloAdsUpdateAutomatedRuleRequest, options?: RequestOptions): Promise<ZaloAdsUpdateAutomatedRuleResponse>;
3726
4369
  changeAutomatedRuleStatus(request: ZaloAdsChangeAutomatedRuleStatusRequest, options?: RequestOptions): Promise<ZaloAdsChangeAutomatedRuleStatusResponse>;
@@ -3931,6 +4574,7 @@ declare class ZaloAdsService extends ZaloCampaignsService {
3931
4574
  /** Alias cho `listConversionNames` (`GET /api/conversion/names`). */
3932
4575
  getApiConversionNames(request?: ZaloAdsListConversionNamesRequest, options?: RequestOptions): Promise<ZaloAdsListConversionNamesResponse>;
3933
4576
  listAutomatedRules(request?: ZaloAdsListAutomatedRulesRequest, options?: RequestOptions): Promise<ZaloAdsListAutomatedRulesResponse>;
4577
+ getAutomatedRuleDetail(request: ZaloAdsGetAutomatedRuleDetailRequest, options?: RequestOptions): Promise<ZaloAdsGetAutomatedRuleDetailResponse>;
3934
4578
  createAutomatedRule(request: ZaloAdsCreateAutomatedRuleRequest, options?: RequestOptions): Promise<ZaloAdsCreateAutomatedRuleResponse>;
3935
4579
  updateAutomatedRule(request: ZaloAdsUpdateAutomatedRuleRequest, options?: RequestOptions): Promise<ZaloAdsUpdateAutomatedRuleResponse>;
3936
4580
  changeAutomatedRuleStatus(request: ZaloAdsChangeAutomatedRuleStatusRequest, options?: RequestOptions): Promise<ZaloAdsChangeAutomatedRuleStatusResponse>;
@@ -4405,6 +5049,7 @@ interface ValidationResult<T = unknown> {
4405
5049
  /** Dữ liệu sau khi làm sạch và ép kiểu chuẩn (nếu hợp lệ). */
4406
5050
  data?: T;
4407
5051
  }
5052
+ declare function validateCreateInstantPageRequest(input: unknown): ValidationResult<ZaloInstantPagesCreateInstantPageRequest>;
4408
5053
  declare function validateCloneInstantPageRequest(input: unknown): ValidationResult<ZaloInstantPagesCloneInstantPageRequest>;
4409
5054
  declare function validateGetInstantPageDetailRequest(input: unknown): ValidationResult<ZaloInstantPagesGetInstantPageDetailRequest>;
4410
5055
  declare function validateGetInstantPageSharedUserRequest(input: unknown): ValidationResult<ZaloInstantPagesGetInstantPageSharedUserRequest>;
@@ -4419,6 +5064,7 @@ declare function validateListInstantPageLeadsRequest(input: unknown): Validation
4419
5064
  declare function validateListOfficialAccountsRequest(input?: unknown): ValidationResult<ZaloInstantPagesListOfficialAccountsRequest>;
4420
5065
  declare function validateUpsertInstantPageFormRequest(input: unknown): ValidationResult<ZaloInstantPagesUpsertInstantPageFormRequest>;
4421
5066
  declare const ZaloInstantPagesValidator: {
5067
+ validateCreateInstantPage: typeof validateCreateInstantPageRequest;
4422
5068
  validateCloneInstantPage: typeof validateCloneInstantPageRequest;
4423
5069
  validateGetInstantPageDetail: typeof validateGetInstantPageDetailRequest;
4424
5070
  validateGetInstantPageSharedUser: typeof validateGetInstantPageSharedUserRequest;
@@ -4586,6 +5232,7 @@ declare class ZaloInstantPagesService {
4586
5232
  * Dùng ở backend (NestJS/Express/Fastify), middleware hoặc AI Agent để verify payload trước khi gọi SDK.
4587
5233
  */
4588
5234
  static readonly validator: {
5235
+ validateCreateInstantPage: typeof validateCreateInstantPageRequest;
4589
5236
  validateCloneInstantPage: typeof validateCloneInstantPageRequest;
4590
5237
  validateGetInstantPageDetail: typeof validateGetInstantPageDetailRequest;
4591
5238
  validateGetInstantPageSharedUser: typeof validateGetInstantPageSharedUserRequest;
@@ -4601,12 +5248,14 @@ declare class ZaloInstantPagesService {
4601
5248
  validateUpsertInstantPageForm: typeof validateUpsertInstantPageFormRequest;
4602
5249
  };
4603
5250
  constructor(client: ZaloSdkHttpClient);
5251
+ createInstantPage(request: ZaloInstantPagesCreateInstantPageRequest, options?: RequestOptions): Promise<ZaloInstantPagesCreateInstantPageResponse>;
4604
5252
  cloneInstantPage(request: ZaloInstantPagesCloneInstantPageRequest, options?: RequestOptions): Promise<ZaloInstantPagesCloneInstantPageResponse>;
4605
5253
  getInstantPageDetail(request: ZaloInstantPagesGetInstantPageDetailRequest, options?: RequestOptions): Promise<ZaloInstantPagesGetInstantPageDetailResponse>;
4606
5254
  getInstantPageSharedUser(request: ZaloInstantPagesGetInstantPageSharedUserRequest, options?: RequestOptions): Promise<ZaloInstantPagesGetInstantPageSharedUserResponse>;
4607
5255
  listInstantPageEditHistory(request: ZaloInstantPagesListInstantPageEditHistoryRequest, options?: RequestOptions): Promise<ZaloInstantPagesListInstantPageEditHistoryResponse>;
4608
5256
  listInstantPageFormRecords(request: ZaloInstantPagesListInstantPageFormRecordsRequest, options?: RequestOptions): Promise<ZaloInstantPagesListInstantPageFormRecordsResponse>;
4609
5257
  listInstantPageShares(request: ZaloInstantPagesListInstantPageSharesRequest, options?: RequestOptions): Promise<ZaloInstantPagesListInstantPageSharesResponse>;
5258
+ updateInstantPageShares(request: ZaloInstantPagesUpdateInstantPageSharesRequest, options?: RequestOptions): Promise<ZaloInstantPagesUpdateInstantPageSharesResponse>;
4610
5259
  listInstantPageUsers(request?: ZaloInstantPagesListInstantPageUsersRequest, options?: RequestOptions): Promise<ZaloInstantPagesListInstantPageUsersResponse>;
4611
5260
  listMiniPageTemplates(request?: ZaloInstantPagesListMiniPageTemplatesRequest, options?: RequestOptions): Promise<ZaloInstantPagesListMiniPageTemplatesResponse>;
4612
5261
  searchInstantPages(request?: ZaloInstantPagesSearchInstantPagesRequest, options?: RequestOptions): Promise<ZaloInstantPagesSearchInstantPagesResponse>;
@@ -5137,6 +5786,23 @@ declare const ZaloFlowsValidator: {
5137
5786
  * 12. deleteCustomAudience (DELETE /api/ad/audience/{customAudienceId})
5138
5787
  */
5139
5788
 
5789
+ /**
5790
+ * Danh mục mã 63 Tỉnh/Thành phố chuẩn theo 3 Vùng miền trên Zalo Ads Targeting Engine (Danh mục cũ):
5791
+ */
5792
+ declare const ZALO_REGION_PROVINCE_CODES: Record<number, string[]>;
5793
+ /**
5794
+ * Danh mục 34 Cụm Tỉnh/Thành phố mới sau sáp nhập trên Zalo Ads (newProvinces).
5795
+ * Khi cấu hình WardTargeting (từ cải cách hành chính 2026), Zalo Ads Angular UI
5796
+ * BẮT BUỘC tra cứu theo 34 mã mới này. Nếu truyền mã tỉnh đã bị gộp (như VN75 - Bình Dương),
5797
+ * giao diện Zalo Ads sẽ bị lỗi đỏ: 'Invalid wards params'.
5798
+ */
5799
+ declare const ZALO_NEW_REGION_PROVINCE_CODES: Record<number, string[]>;
5800
+ /** Bảng tra cứu ánh xạ mã tỉnh cũ sang cụm tỉnh mới sau sáp nhập */
5801
+ declare const ZALO_PROVINCE_MERGE_MAPPING: Record<string, {
5802
+ newCode: string;
5803
+ regionId: number;
5804
+ name: string;
5805
+ }>;
5140
5806
  /**
5141
5807
  * 1. Kiểm tra request Tạo Nhóm đối tượng đã lưu (Saved Audience - caType = 1)
5142
5808
  */
@@ -5211,4 +5877,193 @@ declare const ZaloAudiencesValidator: {
5211
5877
  readonly estimateAudience: typeof validateEstimateAudienceRequest;
5212
5878
  };
5213
5879
 
5214
- export { ALL_ZALO_ADS_DOMAINS, type BodyType, type FileDownloadResponse, type FileInput, type HttpMethod, type MediaValidationResult, MemoryZaloSessionStore, type MemoryZaloSessionStoreOptions, type OperationDefinition, RedisZaloSessionStore, type RedisZaloSessionStoreOptions, type RequestOptions, TieredZaloSessionStore, type TieredZaloSessionStoreOptions, type ValidateImageInput, type ValidateVideoInput, type ValidationResult, ZaloAccountService, type ZaloAdsAccessorItemDto, type ZaloAdsAccountAgencyInfoDto, ZaloAdsIntegrationManager as ZaloAdsAccountPool, type ZaloAdsAdAppInfoSettingsDto, type ZaloAdsAdImageSettingsDto, type ZaloAdsAdInfoSettingsDto, type ZaloAdsAdMultiImageItemDto, type ZaloAdsAdMutationResultDto, type ZaloAdsAdPriceSettingsDto, type ZaloAdsAdReportItemDto, type ZaloAdsAdSettingsDto, type ZaloAdsAdTargetingSettingsDto, type ZaloAdsAdUpdatePayloadDto, type ZaloAdsAdZVideoSettingsDto, type ZaloAdsAutomatedRuleActionDto, type ZaloAdsAutomatedRuleConditionDto, type ZaloAdsAutomatedRuleScheduleDto, type ZaloAdsCampaignCreatePayloadDto, type ZaloAdsCampaignReportItemDto, type ZaloAdsChangeAutomatedRuleStatusRequest, type ZaloAdsChangeAutomatedRuleStatusResponse, type ZaloAdsChangeCampaignStatusRequest, type ZaloAdsChangeCampaignStatusResponse, type ZaloAdsClientRequest, type ZaloAdsCommerceFormAudienceTargetingDto, type ZaloAdsConversionElementSelectorDto, type ZaloAdsConversionItemDto, type ZaloAdsConversionNameItemDto, type ZaloAdsCreateArticleCampaignRequest, type ZaloAdsCreateArticleCampaignResponse, type ZaloAdsCreateAutomatedRuleRequest, type ZaloAdsCreateAutomatedRuleResponse, type ZaloAdsCreateCommerceCampaignRequest, type ZaloAdsCreateCommerceCampaignResponse, type ZaloAdsCreateCommerceFormAudienceRequest, type ZaloAdsCreateCommerceFormAudienceResponse, type ZaloAdsCreateConversionRequest, type ZaloAdsCreateConversionResponse, type ZaloAdsCreateCustomAudienceRequest, type ZaloAdsCreateCustomAudienceResponse, type ZaloAdsCreateDisplayCampaignRequest, type ZaloAdsCreateDisplayCampaignResponse, type ZaloAdsCreateEcommerceCampaignRequest, type ZaloAdsCreateEcommerceCampaignResponse, ZaloAdsCreateFlowRequest, ZaloAdsCreateFlowResponse, type ZaloAdsCreateFormCampaignRequest, type ZaloAdsCreateFormCampaignResponse, type ZaloAdsCreateFormEventAudienceRequest, type ZaloAdsCreateFormEventAudienceResponse, type ZaloAdsCreateFormLeadAudienceRequest, type ZaloAdsCreateFormLeadAudienceResponse, type ZaloAdsCreateFormPayloadDto, type ZaloAdsCreateFormRequest, type ZaloAdsCreateFormResponse, type ZaloAdsCreateLeadSignalAudienceRequest, type ZaloAdsCreateLeadSignalAudienceResponse, type ZaloAdsCreateLookalikeAudienceRequest, type ZaloAdsCreateLookalikeAudienceResponse, type ZaloAdsCreateMessageCampaignRequest, type ZaloAdsCreateMessageCampaignResponse, type ZaloAdsCreateMessageOaEventAudienceRequest, type ZaloAdsCreateMessageOaEventAudienceResponse, type ZaloAdsCreateMessageOaLeadAudienceRequest, type ZaloAdsCreateMessageOaLeadAudienceResponse, type ZaloAdsCreateMessagePersonalEventAudienceRequest, type ZaloAdsCreateMessagePersonalEventAudienceResponse, type ZaloAdsCreateOaCampaignRequest, type ZaloAdsCreateOaCampaignResponse, type ZaloAdsCreateOfficialAccountCampaignRequest, type ZaloAdsCreateOfficialAccountCampaignResponse, type ZaloAdsCreatePhoneAudienceRequest, type ZaloAdsCreatePhoneAudienceResponse, ZaloAdsCreatePostCampaignRequest, ZaloAdsCreatePostCampaignResponse, type ZaloAdsCreateSavedAudienceRequest, type ZaloAdsCreateSavedAudienceResponse, type ZaloAdsCreateSpellCheckV3JobRequest, type ZaloAdsCreateSpellCheckV3JobResponse, type ZaloAdsCreateVideoCampaignRequest, type ZaloAdsCreateVideoCampaignResponse, type ZaloAdsCreateWebsiteCampaignRequest, type ZaloAdsCreateWebsiteCampaignResponse, type ZaloAdsDeleteAutomatedRuleRequest, type ZaloAdsDeleteAutomatedRuleResponse, type ZaloAdsDeleteCampaignRequest, type ZaloAdsDeleteCampaignResponse, type ZaloAdsDeleteConversionRequest, type ZaloAdsDeleteConversionResponse, type ZaloAdsDeleteCustomAudienceRequest, type ZaloAdsDeleteCustomAudienceResponse, type ZaloAdsDeleteCustomReportRequest, type ZaloAdsDeleteCustomReportResponse, type ZaloAdsDomain, type ZaloAdsFileGroupItemDto, ZaloAdsFlowButtonDto, ZaloAdsFlowChildMessageDto, ZaloAdsFlowMessageDto, type ZaloAdsFormAnswerDto, type ZaloAdsFormEventAudienceTargetingDto, type ZaloAdsFormLeadAudienceTargetingDto, type ZaloAdsFormQuestionDto, type ZaloAdsFormQuestionUiDto, type ZaloAdsFormSectionContentDto, type ZaloAdsFormSectionDto, type ZaloAdsFormSectionImageItemDto, type ZaloAdsFormSectionTableItemDto, type ZaloAdsGetAdByIdRequest, type ZaloAdsGetAdByIdResponse, type ZaloAdsGetAdChangeLogRequest, type ZaloAdsGetAdChangeLogResponse, type ZaloAdsGetApiAdGetlistadadvancetargetingRequest, type ZaloAdsGetApiAdGetlistadadvancetargetingResponse, type ZaloAdsGetApiBaAccountAllaccessorsRequest, type ZaloAdsGetApiBaAccountAllaccessorsResponse, type ZaloAdsGetApiBaAccountAllgrantedmembersRequest, type ZaloAdsGetApiBaAccountAllgrantedmembersResponse, type ZaloAdsGetApiConversionAllRequest, type ZaloAdsGetApiConversionAllResponse, type ZaloAdsGetApiConversionStandardEventsRequest, type ZaloAdsGetApiConversionStandardEventsResponse, type ZaloAdsGetApiCustomAudienceAllRequest, type ZaloAdsGetApiCustomAudienceAllResponse, type ZaloAdsGetApiFilegroupsRequest, type ZaloAdsGetApiFilegroupsResponse, type ZaloAdsGetApiLpNewsRequest, type ZaloAdsGetApiLpNewsResponse, type ZaloAdsGetApiMediaItemsRequest, type ZaloAdsGetApiMediaItemsResponse, type ZaloAdsGetApiMemberFilesRequest, type ZaloAdsGetApiMemberFilesResponse, type ZaloAdsGetApiNotifiesHeaderRequest, type ZaloAdsGetApiNotifiesHeaderResponse, type ZaloAdsGetApiPaymentTransactionHistoryRequest, type ZaloAdsGetApiPaymentTransactionHistoryResponse, type ZaloAdsGetApiPlaceGetalldistrictsRequest, type ZaloAdsGetApiPlaceGetalldistrictsResponse, type ZaloAdsGetApiSpellCheckV2Request, type ZaloAdsGetApiSpellCheckV2Response, type ZaloAdsGetApiWhoamiRequest, type ZaloAdsGetApiWhoamiResponse, type ZaloAdsGetAutomatedRuleHistoryRequest, type ZaloAdsGetAutomatedRuleHistoryResponse, type ZaloAdsGetDemographicsReportRequest, type ZaloAdsGetDemographicsReportResponse, type ZaloAdsGetReportOverviewRequest, type ZaloAdsGetReportOverviewResponse, type ZaloAdsGetReportapiV2AdsRequest, type ZaloAdsGetReportapiV2AdsResponse, type ZaloAdsGetReportapiV2CampaignsRequest, type ZaloAdsGetReportapiV2CampaignsResponse, type ZaloAdsGetReportapiV2UniqueUserRequest, type ZaloAdsGetReportapiV2UniqueUserResponse, type ZaloAdsGetReportapiV3CampaignsRequest, type ZaloAdsGetReportapiV3CampaignsResponse, type ZaloAdsGetSpellCheckV3JobRequest, type ZaloAdsGetSpellCheckV3JobResponse, type ZaloAdsGetZaapiCampaignReportcampaignRequest, type ZaloAdsGetZaapiCampaignReportcampaignResponse, type ZaloAdsGetZaapiCheckcamphasmanyadsRequest, type ZaloAdsGetZaapiCheckcamphasmanyadsResponse, type ZaloAdsGetZaapiGetadsfromcampaignidRequest, type ZaloAdsGetZaapiGetadsfromcampaignidResponse, type ZaloAdsGetZaapiGetallpagesRequest, type ZaloAdsGetZaapiGetallpagesResponse, type ZaloAdsGetZaapiGetownedarticlesRequest, type ZaloAdsGetZaapiGetownedarticlesResponse, type ZaloAdsGetZaapiGetownedpagesRequest, type ZaloAdsGetZaapiGetownedpagesResponse, type ZaloAdsGrantedMemberItemDto, ZaloAdsIntegrationManager, type ZaloAdsIntegrationManagerOptions, type ZaloAdsLeadSignalAudienceTargetingDto, type ZaloAdsLeadSignalOaItem, type ZaloAdsListAgencyCustomersWithBudgetRequest, type ZaloAdsListAgencyCustomersWithBudgetResponse, type ZaloAdsListAutomatedRulesRequest, type ZaloAdsListAutomatedRulesResponse, type ZaloAdsListConversionNamesRequest, type ZaloAdsListConversionNamesResponse, type ZaloAdsListCustomReportsRequest, type ZaloAdsListCustomReportsResponse, type ZaloAdsListFlowsByOfficialAccountRequest, type ZaloAdsListFlowsByOfficialAccountResponse, type ZaloAdsListFormsByOfficialAccountRequest, type ZaloAdsListFormsByOfficialAccountResponse, type ZaloAdsListLeadSignalOasResponse, type ZaloAdsListMiniPagesByTemplateRequest, type ZaloAdsListMiniPagesByTemplateResponse, type ZaloAdsListPersonalPixelLabelsRequest, type ZaloAdsListPersonalPixelLabelsResponse, type ZaloAdsListReportFiltersRequest, type ZaloAdsListReportFiltersResponse, type ZaloAdsLookalikeAudienceTargetingDto, type ZaloAdsLpNewsButtonDto, type ZaloAdsLpNewsItemDto, type ZaloAdsMediaSavePayloadDto, type ZaloAdsMediaSaveSettingsDto, type ZaloAdsMemberFileItemDto, ZaloAdsMessageAdUpdateDataDto, type ZaloAdsMessageOaEventAudienceTargetingDto, type ZaloAdsMessageOaLeadAudienceTargetingDto, type ZaloAdsMessagePersonalEventAudienceTargetingDto, type ZaloAdsNotifyHeaderItemDto, type ZaloAdsOwnedArticleItemDto, type ZaloAdsOwnedPageExtraInfoDto, type ZaloAdsOwnedPageItemDto, type ZaloAdsOwnedPageLocationDto, type ZaloAdsPageConfigDto, type ZaloAdsPaymentTransactionItemDto, type ZaloAdsPhoneAudienceTargetingDto, type ZaloAdsPostApiAdEstimateaudienceRequest, type ZaloAdsPostApiAdEstimateaudienceResponse, type ZaloAdsPostApiMediaSaveRequest, type ZaloAdsPostApiMediaSaveResponse, type ZaloAdsPostApiMemberUploadImageRequest, type ZaloAdsPostApiMemberUploadImageResponse, type ZaloAdsPostZaapiDeleteadRequest, type ZaloAdsPostZaapiDeleteadResponse, type ZaloAdsRenameCampaignRequest, type ZaloAdsRenameCampaignResponse, ZaloAdsSdk, type ZaloAdsSdkOptions, ZaloAdsService, type ZaloAdsSpellCheckIssueDto, type ZaloAdsSpellCheckViolationDto, type ZaloAdsStandardEventItemDto, type ZaloAdsUniqueUserReportDataDto, type ZaloAdsUpdateArticleAdRequest, type ZaloAdsUpdateArticleAdResponse, type ZaloAdsUpdateAutomatedRuleRequest, type ZaloAdsUpdateAutomatedRuleResponse, type ZaloAdsUpdateCommerceAdRequest, type ZaloAdsUpdateCommerceAdResponse, type ZaloAdsUpdateDisplayAdRequest, type ZaloAdsUpdateDisplayAdResponse, type ZaloAdsUpdateEcommerceAdRequest, type ZaloAdsUpdateEcommerceAdResponse, type ZaloAdsUpdateFlowRequest, type ZaloAdsUpdateFlowResponse, type ZaloAdsUpdateFormAdRequest, type ZaloAdsUpdateFormAdResponse, ZaloAdsUpdateMessageAdRequest, ZaloAdsUpdateMessageAdResponse, type ZaloAdsUpdateNewAdsRequest, type ZaloAdsUpdateNewAdsResponse, type ZaloAdsUpdateOaAdRequest, type ZaloAdsUpdateOaAdResponse, type ZaloAdsUpdateOfficialAccountAdRequest, type ZaloAdsUpdateOfficialAccountAdResponse, type ZaloAdsUpdatePostAdRequest, type ZaloAdsUpdatePostAdResponse, ZaloAdsUpdateVideoAdRequest, ZaloAdsUpdateVideoAdResponse, type ZaloAdsUpdateWebsiteAdRequest, type ZaloAdsUpdateWebsiteAdResponse, type ZaloAdsUploadCustomAudiencePhoneListRequest, type ZaloAdsUploadCustomAudiencePhoneListResponse, type ZaloAdsUploadVideoRequest, type ZaloAdsUploadVideoResponse, type ZaloAdsUpsertCustomReportRequest, type ZaloAdsUpsertCustomReportResponse, type ZaloAdsWhoamiProfile, type ZaloAdsZaapiCampaignReportItemDto, ZaloAudiencesService, ZaloAudiencesValidator, type ZaloAuthDomain, ZaloAuthManager, ZaloAutomatedRulesService, ZaloCampaignsService, type ZaloChatWidgetGetChatWidgetLoginConfigRequest, type ZaloChatWidgetGetChatWidgetLoginConfigResponse, type ZaloChatWidgetGetLoginConfigRequest, type ZaloChatWidgetGetLoginConfigResponse, ZaloChatWidgetService, ZaloConversionsService, type ZaloCreateFormCleanPayload, type ZaloCreateFormRequestInput, type ZaloDomainSession, ZaloFlowsService, ZaloFlowsValidator, type ZaloFormQuestionAnswerInput, type ZaloFormQuestionInput, type ZaloFormSectionInput, type ZaloFormSessionProfile, type ZaloFormsAudienceExclusionTargetingItem, type ZaloFormsAuthSessionOaItem, type ZaloFormsConversationLeadItem, type ZaloFormsDisableFormLeadNotificationRequest, type ZaloFormsDisableFormLeadNotificationResponse, type ZaloFormsEnableFormLeadNotificationRequest, type ZaloFormsEnableFormLeadNotificationResponse, type ZaloFormsExportFormLeadReportRequest, type ZaloFormsExportFormLeadReportResponse, type ZaloFormsGetAuthSessionResponse, type ZaloFormsLeadAnswerItem, type ZaloFormsLeadItem, type ZaloFormsListAudienceExclusionTargetingRequest, type ZaloFormsListAudienceExclusionTargetingResponse, type ZaloFormsListConversationLeadsRequest, type ZaloFormsListConversationLeadsResponse, type ZaloFormsListFormLeadsRequest, type ZaloFormsListFormLeadsResponse, type ZaloFormsListManagedFormsByOfficialAccountRequest, type ZaloFormsListManagedFormsByOfficialAccountResponse, type ZaloFormsListScenariosByOfficialAccountRequest, type ZaloFormsListScenariosByOfficialAccountResponse, type ZaloFormsListSimpleFormsByOfficialAccountRequest, type ZaloFormsListSimpleFormsByOfficialAccountResponse, type ZaloFormsScenarioItem, ZaloFormsService, type ZaloFormsTrackManageFormEventRequest, type ZaloFormsTrackManageFormEventResponse, type ZaloFormsUpdateFormLeadNotificationIntervalRequest, type ZaloFormsUpdateFormLeadNotificationIntervalResponse, ZaloFormsValidator, type ZaloInstantPageActive, ZaloInstantPageBlockType, type ZaloInstantPageStatus, type ZaloInstantPagesCloneInstantPageRequest, type ZaloInstantPagesCloneInstantPageResponse, type ZaloInstantPagesFormRecordItem, type ZaloInstantPagesGetInstantPageDetailRequest, type ZaloInstantPagesGetInstantPageDetailResponse, type ZaloInstantPagesGetInstantPageSharedUserRequest, type ZaloInstantPagesGetInstantPageSharedUserResponse, type ZaloInstantPagesListInstantPageEditHistoryRequest, type ZaloInstantPagesListInstantPageEditHistoryResponse, type ZaloInstantPagesListInstantPageFormRecordsRequest, type ZaloInstantPagesListInstantPageFormRecordsResponse, type ZaloInstantPagesListInstantPageLeadsRequest, type ZaloInstantPagesListInstantPageLeadsResponse, type ZaloInstantPagesListInstantPageSharesRequest, type ZaloInstantPagesListInstantPageSharesResponse, type ZaloInstantPagesListInstantPageUsersRequest, type ZaloInstantPagesListInstantPageUsersResponse, type ZaloInstantPagesListMiniPageTemplatesRequest, type ZaloInstantPagesListMiniPageTemplatesResponse, type ZaloInstantPagesListOfficialAccountsRequest, type ZaloInstantPagesListOfficialAccountsResponse, type ZaloInstantPagesOfficialAccountItem, type ZaloInstantPagesSearchInstantPagesRequest, type ZaloInstantPagesSearchInstantPagesResponse, ZaloInstantPagesService, type ZaloInstantPagesUpdateInstantPageRequest, type ZaloInstantPagesUpdateInstantPageResponse, type ZaloInstantPagesUpsertInstantPageFormRequest, type ZaloInstantPagesUpsertInstantPageFormResponse, ZaloInstantPagesValidator, type ZaloIntegrationCredentials, type ZaloIntegrationVerificationResult, ZaloMediaService, type ZaloPlaySessionPayload, type ZaloProfileAdsAdministrativeItem, type ZaloProfileAdsCreateOaPageRequest, type ZaloProfileAdsCreateOaPageResponse, type ZaloProfileAdsGetDistrictsRequest, type ZaloProfileAdsGetDistrictsResponse, type ZaloProfileAdsGetProvincesResponse, type ZaloProfileAdsProvinceId, ZaloProfileAdsService, type ZaloProfileAdsSubCategoryId, type ZaloProfileAdsUploadOaAvatarRequest, type ZaloProfileAdsUploadOaAvatarResponse, type ZaloProfileAdsUploadOaCoverRequest, type ZaloProfileAdsUploadOaCoverResponse, type ZaloRedisLikeClient, ZaloReportsService, type ZaloSdkAuth, type ZaloSdkAuthContext, ZaloSdkError, ZaloSdkHttpClient, type ZaloSessionStore, type ZaloSsoAuthOptions, type ZaloUploadAndSaveImageRequest, type ZaloUploadAndSaveImageResult, type ZaloUploadAndSaveVideoRequest, type ZaloUploadAndSaveVideoResult, type ZaloWidgetAPIGetOfficialAccountInfoRequest, type ZaloWidgetAPIGetOfficialAccountInfoResponse, type ZaloWidgetAPIGetWidgetUserProfileRequest, type ZaloWidgetAPIGetWidgetUserProfileResponse, type ZaloWidgetAPIListStickerCategoriesRequest, type ZaloWidgetAPIListStickerCategoriesResponse, type ZaloWidgetAPIListStickersByCategoryRequest, type ZaloWidgetAPIListStickersByCategoryResponse, ZaloWidgetApiService, computeZpsidFingerprint, createZaloSsoAuth, decodePlaySessionJwt, ZaloAdsSdk as default, defaultSharedMemorySessionStore, deriveAccountKeyFromZpsid, parseZaloCookieInput, validateCloneInstantPageRequest, validateCreateFlowRequest, validateCreateFormEventAudienceRequest, validateCreateFormRequest, validateCreateLookalikeAudienceRequest, validateCreateMessageOaEventAudienceRequest, validateCreateMessagePersonalEventAudienceRequest, validateCreatePhoneAudienceRequest, validateCreateSavedAudienceRequest, validateEstimateAudienceRequest, validateGetInstantPageDetailRequest, validateGetInstantPageSharedUserRequest, validateListFlowsByOfficialAccountRequest, validateListFormLeadsRequest, validateListFormsByOfficialAccountRequest, validateListInstantPageEditHistoryRequest, validateListInstantPageFormRecordsRequest, validateListInstantPageLeadsRequest, validateListInstantPageSharesRequest, validateListInstantPageUsersRequest, validateListMiniPageTemplatesRequest, validateListOfficialAccountsRequest, validateSearchInstantPagesRequest, validateUpdateFlowRequest, validateUpdateInstantPageRequest, validateUpsertInstantPageFormRequest };
5880
+ /**
5881
+ * Bộ kiểm tra tính hợp lệ dữ liệu (Request Validators) cho các API Chiến dịch & Quảng cáo Zalo Ads:
5882
+ * 1. Khởi tạo 8 loại chiến dịch (Website, Form, Message, OA, Video, Commerce, Article, Display)
5883
+ * 2. Thiết lập & cập nhật chi tiết mẫu quảng cáo (Ad Types: 5, 18, 30, 2, 11, 28, 3, 21)
5884
+ * 3. Đổi tên, thay đổi trạng thái, xóa chiến dịch và xóa quảng cáo
5885
+ *
5886
+ * Tích hợp toàn bộ quy chuẩn giao diện (UI reverse engineering), giới hạn độ dài ký tự,
5887
+ * quy chuẩn media, mã ID ngầm và bẫy kỹ thuật đúc kết từ live test trên máy chủ Zalo Ads.
5888
+ */
5889
+
5890
+ interface CampaignValidationResult<T = unknown> {
5891
+ isValid: boolean;
5892
+ errors: string[];
5893
+ warnings: string[];
5894
+ data?: T;
5895
+ }
5896
+ interface ValidateCampaignOptions {
5897
+ strictMode?: boolean;
5898
+ }
5899
+ interface ValidateAdOptions {
5900
+ strictMode?: boolean;
5901
+ }
5902
+ /** Danh sách mã CampaignType hợp lệ trên Zalo Ads */
5903
+ declare const VALID_CAMPAIGN_TYPES: {
5904
+ readonly WEBSITE: 6;
5905
+ readonly FORM: 17;
5906
+ readonly MESSAGE: 18;
5907
+ readonly OA: 3;
5908
+ readonly VIDEO: 14;
5909
+ readonly COMMERCE: 22;
5910
+ readonly ARTICLE: 4;
5911
+ readonly DISPLAY: 20;
5912
+ };
5913
+ /** Danh sách mã AdType hợp lệ thực tế do máy chủ Zalo Ads xử lý */
5914
+ declare const VALID_AD_TYPES: {
5915
+ readonly WEBSITE: 5;
5916
+ readonly FORM: 18;
5917
+ readonly MESSAGE: 30;
5918
+ readonly OA: 2;
5919
+ readonly VIDEO: 11;
5920
+ readonly COMMERCE: 28;
5921
+ readonly ARTICLE: 3;
5922
+ readonly DISPLAY: 21;
5923
+ };
5924
+ /** Danh sách CTA hợp lệ cho từng loại Ad */
5925
+ declare const ALLOWED_CTAS_PER_AD_TYPE: Record<number, number[]>;
5926
+ /**
5927
+ * Kiểm tra tính hợp lệ payload tạo mới Chiến dịch Zalo Ads (POST /zaapi/addNewCamp).
5928
+ */
5929
+ declare function validateCreateCampaignPayload(payload: Partial<ZaloAdsCampaignCreatePayloadDto>, options?: ValidateCampaignOptions): CampaignValidationResult;
5930
+ /**
5931
+ * Kiểm tra tính hợp lệ payload Cập nhật Mẫu Quảng cáo (POST /zaapi/UpdateAd).
5932
+ */
5933
+ declare function validateUpdateAdPayload(payload: Partial<ZaloAdsAdUpdatePayloadDto>, options?: ValidateAdOptions): CampaignValidationResult;
5934
+ /**
5935
+ * Kiểm tra tính hợp lệ của tham số đổi tên chiến dịch (POST /api/campaign/change-name).
5936
+ */
5937
+ declare function validateRenameCampaignParams(params: {
5938
+ campid?: number;
5939
+ campaignId?: number;
5940
+ newname?: string;
5941
+ newName?: string;
5942
+ name?: string;
5943
+ }): CampaignValidationResult;
5944
+ /**
5945
+ * Kiểm tra tính hợp lệ của trạng thái thay đổi chiến dịch (POST /api/campaign/change-status).
5946
+ */
5947
+ declare function validateChangeCampaignStatusParams(params: {
5948
+ campaignId: number;
5949
+ status: number;
5950
+ isDraft?: boolean;
5951
+ }): CampaignValidationResult;
5952
+ /**
5953
+ * Kiểm tra tính hợp lệ của tham số nhân bản quảng cáo (POST /zaapi/DuplicateAd).
5954
+ */
5955
+ declare function validateDuplicateAdParams(params: {
5956
+ adid?: number;
5957
+ adId?: number;
5958
+ }): CampaignValidationResult;
5959
+ declare const ZaloCampaignsValidator: {
5960
+ createCampaign: typeof validateCreateCampaignPayload;
5961
+ updateAd: typeof validateUpdateAdPayload;
5962
+ renameCampaign: typeof validateRenameCampaignParams;
5963
+ changeStatus: typeof validateChangeCampaignStatusParams;
5964
+ duplicateAd: typeof validateDuplicateAdParams;
5965
+ };
5966
+
5967
+ /**
5968
+ * Bộ kiểm tra tính hợp lệ và chuẩn hóa tham số Quy tắc tự động (Automated Rules Validator) cho Zalo Ads.
5969
+ * Reverse-engineered và kiểm chứng trực tiếp từ Zalo Ads Web Frontend (chunk 183) & Backend API.
5970
+ */
5971
+ declare enum AutomatedRuleScopeEnum {
5972
+ Ads = 1
5973
+ }
5974
+ declare enum AutomatedRuleActionTypeEnum {
5975
+ Resume = 1,// Tiếp tục chạy quảng cáo (Bật)
5976
+ Pause = 2,// Tạm dừng quảng cáo (Tắt)
5977
+ IncreaseByAmount = 3,// Tăng giá đấu thầu theo số tiền cố định (VNĐ)
5978
+ DecreaseByAmount = 4,// Giảm giá đấu thầu theo số tiền cố định (VNĐ)
5979
+ IncreaseByPercentage = 5,// Tăng giá đấu thầu theo %
5980
+ DecreaseByPercentage = 6
5981
+ }
5982
+ declare enum AutomatedRuleFrequencyEnum {
5983
+ OneHour = 1,// Mỗi tiếng / lần sau lần thực thi trước (1 giờ)
5984
+ HalfDay = 12,// 12 giờ / lần sau lần thực thi trước (12 giờ)
5985
+ OneDay = 24,// Mỗi ngày / lần sau lần thực thi trước (24 giờ)
5986
+ OneWeek = 168
5987
+ }
5988
+ declare enum AutomatedRuleConditionFieldEnum {
5989
+ Status = 1,// Trạng thái quảng cáo (Đang chạy / Tạm dừng)
5990
+ Impression = 11,// Lượt hiển thị (tối thiểu 500)
5991
+ Click = 16,// Lượt nhấn (tối thiểu 10)
5992
+ CTR = 9999,// CTR (%)
5993
+ Cost = 100001
5994
+ }
5995
+ declare enum AutomatedRuleOperatorEnum {
5996
+ GreaterThan = 1,// Lớn hơn (>)
5997
+ LessThan = 2,// Nhỏ hơn (<)
5998
+ Between = 3,// Trong khoảng
5999
+ NotBetween = 4,// Không trong khoảng
6000
+ Include = 5,// Bao gồm
6001
+ Exclude = 6
6002
+ }
6003
+ declare enum AutomatedRuleTimeRangeEnum {
6004
+ AllTime = 1,// Từ lúc bắt đầu tới hiện tại (Lifetime)
6005
+ AllTimeExcludeToday = 2,// Từ lúc bắt đầu tới hết hôm qua
6006
+ Today = 3,// Trong ngày hôm nay
6007
+ Yesterday = 4,// Trong ngày hôm qua
6008
+ Previous2Day = 1002,// 2 ngày trước tới hiện tại
6009
+ Previous3Day = 1003,// 3 ngày trước tới hiện tại
6010
+ Previous4Day = 1004,// 4 ngày trước tới hiện tại
6011
+ Previous5Day = 1005,// 5 ngày trước tới hiện tại
6012
+ Previous6Day = 1006,// 6 ngày trước tới hiện tại
6013
+ Previous7Day = 1007,// 7 ngày trước tới hiện tại
6014
+ Previous14Day = 1014,// 14 ngày trước tới hiện tại
6015
+ Previous21Day = 1021,// 21 ngày trước tới hiện tại
6016
+ Previous30Day = 1030
6017
+ }
6018
+ interface AutomatedRuleValidationResult<T = any> {
6019
+ isValid: boolean;
6020
+ errors: string[];
6021
+ warnings: string[];
6022
+ sanitizedData?: T;
6023
+ }
6024
+ declare class ZaloAutomatedRulesValidator {
6025
+ /**
6026
+ * Kiểm tra và chuẩn hóa payload tạo mới quy tắc tự động (`POST /api/automatedrules/create`)
6027
+ */
6028
+ static validateCreateRule(payload: any): AutomatedRuleValidationResult;
6029
+ /**
6030
+ * Kiểm tra và chuẩn hóa payload cập nhật quy tắc tự động (`POST /api/ad/automatedrules/update`)
6031
+ */
6032
+ static validateUpdateRule(payload: any): AutomatedRuleValidationResult;
6033
+ }
6034
+
6035
+ /**
6036
+ * Bộ kiểm tra tính hợp lệ và chuẩn hóa tham số Sự kiện chuyển đổi & Zalo Pixel (Conversions Validator) cho Zalo Ads.
6037
+ * Reverse-engineered và kiểm chứng trực tiếp từ Zalo Ads Web Frontend (chunk 602, chunk 804) & Backend API.
6038
+ */
6039
+ declare enum ConversionLabelEnum {
6040
+ AddToCart = 2,// Thêm vào giỏ hàng
6041
+ CompleteRegistration = 4,// Hoàn tất đăng ký
6042
+ Contact = 5,// Liên hệ
6043
+ InitiateCheckout = 9,// Bắt đầu thanh toán
6044
+ Lead = 10,// Trở thành khách hàng tiềm năng
6045
+ Purchase = 11,// Hoàn tất mua hàng
6046
+ Other = 19
6047
+ }
6048
+ declare enum ConversionUrlTypeEnum {
6049
+ Exact = 0,// URL chính xác
6050
+ Contains = 1
6051
+ }
6052
+ interface ConversionValidationResult<T = any> {
6053
+ isValid: boolean;
6054
+ errors: string[];
6055
+ warnings: string[];
6056
+ sanitizedData?: T;
6057
+ }
6058
+ declare class ZaloConversionsValidator {
6059
+ /**
6060
+ * Danh mục 7 nhãn chuẩn được Zalo Ads hỗ trợ chính thức
6061
+ */
6062
+ static readonly SUPPORTED_LABELS: Record<number, string>;
6063
+ /**
6064
+ * Kiểm tra và chuẩn hóa payload tạo mới Conversion (`POST /api/conversion/add`)
6065
+ */
6066
+ static validateCreateConversion(payload: any): ConversionValidationResult;
6067
+ }
6068
+
6069
+ export { ALLOWED_CTAS_PER_AD_TYPE, ALL_ZALO_ADS_DOMAINS, AutomatedRuleActionTypeEnum, AutomatedRuleConditionFieldEnum, AutomatedRuleFrequencyEnum, AutomatedRuleOperatorEnum, AutomatedRuleScopeEnum, AutomatedRuleTimeRangeEnum, type AutomatedRuleValidationResult, type BodyType, type CampaignValidationResult, ConversionLabelEnum, ConversionUrlTypeEnum, type ConversionValidationResult, type FileDownloadResponse, type FileInput, type HttpMethod, type MediaValidationResult, MemoryZaloSessionStore, type MemoryZaloSessionStoreOptions, type OperationDefinition, RedisZaloSessionStore, type RedisZaloSessionStoreOptions, type RequestOptions, TieredZaloSessionStore, type TieredZaloSessionStoreOptions, VALID_AD_TYPES, VALID_CAMPAIGN_TYPES, type ValidateAdOptions, type ValidateCampaignOptions, type ValidateImageInput, type ValidateVideoInput, type ValidationResult, ZALO_NEW_REGION_PROVINCE_CODES, ZALO_PROVINCE_MERGE_MAPPING, ZALO_REGION_PROVINCE_CODES, ZaloAccountService, type ZaloAdsAccessorItemDto, type ZaloAdsAccountAgencyInfoDto, ZaloAdsIntegrationManager as ZaloAdsAccountPool, ZaloAdsActionType, type ZaloAdsAdAppInfoSettingsDto, type ZaloAdsAdImageSettingsDto, type ZaloAdsAdInfoSettingsDto, type ZaloAdsAdLocationSettingsDto, type ZaloAdsAdMultiImageItemDto, type ZaloAdsAdMutationResultDto, type ZaloAdsAdPriceSettingsDto, type ZaloAdsAdReportItemDto, type ZaloAdsAdSettingsDto, type ZaloAdsAdTargetingLocationContainerDto, type ZaloAdsAdTargetingProvinceItemDto, type ZaloAdsAdTargetingRegionItemDto, type ZaloAdsAdTargetingSettingsDto, type ZaloAdsAdUpdatePayloadDto, type ZaloAdsAdZVideoSettingsDto, ZaloAdsAgeRangeId, type ZaloAdsAutomatedRuleActionDto, type ZaloAdsAutomatedRuleAppliedItemDto, type ZaloAdsAutomatedRuleConditionDto, type ZaloAdsAutomatedRuleScheduleDto, ZaloAdsBudgetScheduleType, type ZaloAdsBudgetScheduleTypeValue, type ZaloAdsCampaignCreatePayloadDto, type ZaloAdsCampaignDetailExtendDto, type ZaloAdsCampaignReportItemDto, ZaloAdsCampaignStatus, type ZaloAdsCampaignStatusValue, type ZaloAdsChangeAutomatedRuleStatusRequest, type ZaloAdsChangeAutomatedRuleStatusResponse, type ZaloAdsChangeCampaignStatusRequest, type ZaloAdsChangeCampaignStatusResponse, type ZaloAdsClientRequest, type ZaloAdsCommerceFormAudienceTargetingDto, type ZaloAdsConversionElementSelectorDto, type ZaloAdsConversionItemDto, type ZaloAdsConversionNameItemDto, type ZaloAdsCreateArticleCampaignRequest, type ZaloAdsCreateArticleCampaignResponse, type ZaloAdsCreateAutomatedRuleRequest, type ZaloAdsCreateAutomatedRuleResponse, type ZaloAdsCreateCommerceCampaignRequest, type ZaloAdsCreateCommerceCampaignResponse, type ZaloAdsCreateCommerceFormAudienceRequest, type ZaloAdsCreateCommerceFormAudienceResponse, type ZaloAdsCreateConversionRequest, type ZaloAdsCreateConversionResponse, type ZaloAdsCreateCustomAudienceRequest, type ZaloAdsCreateCustomAudienceResponse, type ZaloAdsCreateDisplayCampaignRequest, type ZaloAdsCreateDisplayCampaignResponse, type ZaloAdsCreateEcommerceCampaignRequest, type ZaloAdsCreateEcommerceCampaignResponse, ZaloAdsCreateFlowRequest, ZaloAdsCreateFlowResponse, type ZaloAdsCreateFormCampaignRequest, type ZaloAdsCreateFormCampaignResponse, type ZaloAdsCreateFormEventAudienceRequest, type ZaloAdsCreateFormEventAudienceResponse, type ZaloAdsCreateFormLeadAudienceRequest, type ZaloAdsCreateFormLeadAudienceResponse, type ZaloAdsCreateFormPayloadDto, type ZaloAdsCreateFormRequest, type ZaloAdsCreateFormResponse, type ZaloAdsCreateLeadSignalAudienceRequest, type ZaloAdsCreateLeadSignalAudienceResponse, type ZaloAdsCreateLookalikeAudienceRequest, type ZaloAdsCreateLookalikeAudienceResponse, type ZaloAdsCreateMessageCampaignRequest, type ZaloAdsCreateMessageCampaignResponse, type ZaloAdsCreateMessageOaEventAudienceRequest, type ZaloAdsCreateMessageOaEventAudienceResponse, type ZaloAdsCreateMessageOaLeadAudienceRequest, type ZaloAdsCreateMessageOaLeadAudienceResponse, type ZaloAdsCreateMessagePersonalEventAudienceRequest, type ZaloAdsCreateMessagePersonalEventAudienceResponse, type ZaloAdsCreateOaCampaignRequest, type ZaloAdsCreateOaCampaignResponse, type ZaloAdsCreateOfficialAccountCampaignRequest, type ZaloAdsCreateOfficialAccountCampaignResponse, type ZaloAdsCreatePhoneAudienceRequest, type ZaloAdsCreatePhoneAudienceResponse, ZaloAdsCreatePostCampaignRequest, ZaloAdsCreatePostCampaignResponse, type ZaloAdsCreateSavedAudienceRequest, type ZaloAdsCreateSavedAudienceResponse, type ZaloAdsCreateSpellCheckV3JobRequest, type ZaloAdsCreateSpellCheckV3JobResponse, type ZaloAdsCreateVideoCampaignRequest, type ZaloAdsCreateVideoCampaignResponse, type ZaloAdsCreateWebsiteCampaignRequest, type ZaloAdsCreateWebsiteCampaignResponse, type ZaloAdsDeleteAutomatedRuleRequest, type ZaloAdsDeleteAutomatedRuleResponse, type ZaloAdsDeleteCampaignRequest, type ZaloAdsDeleteCampaignResponse, type ZaloAdsDeleteConversionRequest, type ZaloAdsDeleteConversionResponse, type ZaloAdsDeleteCustomAudienceRequest, type ZaloAdsDeleteCustomAudienceResponse, type ZaloAdsDeleteCustomReportRequest, type ZaloAdsDeleteCustomReportResponse, ZaloAdsDeliveryType, type ZaloAdsDeliveryTypeValue, type ZaloAdsDomain, type ZaloAdsDownloadReportRequest, type ZaloAdsDownloadReportResponse, type ZaloAdsDuplicateAdRequest, type ZaloAdsDuplicateAdResponse, type ZaloAdsFileGroupItemDto, ZaloAdsFlowButtonDto, ZaloAdsFlowChildMessageDto, ZaloAdsFlowMessageDto, type ZaloAdsFormAnswerDto, type ZaloAdsFormEventAudienceTargetingDto, type ZaloAdsFormLeadAudienceTargetingDto, type ZaloAdsFormQuestionDto, type ZaloAdsFormQuestionUiDto, type ZaloAdsFormSectionContentDto, type ZaloAdsFormSectionDto, type ZaloAdsFormSectionImageItemDto, type ZaloAdsFormSectionTableItemDto, type ZaloAdsGetAdByIdRequest, type ZaloAdsGetAdByIdResponse, type ZaloAdsGetAdChangeLogRequest, type ZaloAdsGetAdChangeLogResponse, type ZaloAdsGetApiAdGetlistadadvancetargetingRequest, type ZaloAdsGetApiAdGetlistadadvancetargetingResponse, type ZaloAdsGetApiBaAccountAllaccessorsRequest, type ZaloAdsGetApiBaAccountAllaccessorsResponse, type ZaloAdsGetApiBaAccountAllgrantedmembersRequest, type ZaloAdsGetApiBaAccountAllgrantedmembersResponse, type ZaloAdsGetApiConversionAllRequest, type ZaloAdsGetApiConversionAllResponse, type ZaloAdsGetApiConversionStandardEventsRequest, type ZaloAdsGetApiConversionStandardEventsResponse, type ZaloAdsGetApiCustomAudienceAllRequest, type ZaloAdsGetApiCustomAudienceAllResponse, type ZaloAdsGetApiFilegroupsRequest, type ZaloAdsGetApiFilegroupsResponse, type ZaloAdsGetApiLpNewsRequest, type ZaloAdsGetApiLpNewsResponse, type ZaloAdsGetApiMediaItemsRequest, type ZaloAdsGetApiMediaItemsResponse, type ZaloAdsGetApiMemberFilesRequest, type ZaloAdsGetApiMemberFilesResponse, type ZaloAdsGetApiNotifiesHeaderRequest, type ZaloAdsGetApiNotifiesHeaderResponse, type ZaloAdsGetApiPaymentTransactionHistoryRequest, type ZaloAdsGetApiPaymentTransactionHistoryResponse, type ZaloAdsGetApiPlaceGetalldistrictsRequest, type ZaloAdsGetApiPlaceGetalldistrictsResponse, type ZaloAdsGetApiSpellCheckV2Request, type ZaloAdsGetApiSpellCheckV2Response, type ZaloAdsGetApiWhoamiRequest, type ZaloAdsGetApiWhoamiResponse, type ZaloAdsGetAutomatedRuleDetailRequest, type ZaloAdsGetAutomatedRuleDetailResponse, type ZaloAdsGetAutomatedRuleHistoryRequest, type ZaloAdsGetAutomatedRuleHistoryResponse, type ZaloAdsGetDemographicsReportRequest, type ZaloAdsGetDemographicsReportResponse, type ZaloAdsGetReportOverviewRequest, type ZaloAdsGetReportOverviewResponse, type ZaloAdsGetReportapiV2AdsRequest, type ZaloAdsGetReportapiV2AdsResponse, type ZaloAdsGetReportapiV2CampaignsRequest, type ZaloAdsGetReportapiV2CampaignsResponse, type ZaloAdsGetReportapiV2UniqueUserRequest, type ZaloAdsGetReportapiV2UniqueUserResponse, type ZaloAdsGetReportapiV3CampaignsRequest, type ZaloAdsGetReportapiV3CampaignsResponse, type ZaloAdsGetSpellCheckV3JobRequest, type ZaloAdsGetSpellCheckV3JobResponse, type ZaloAdsGetZaapiCampaignReportcampaignRequest, type ZaloAdsGetZaapiCampaignReportcampaignResponse, type ZaloAdsGetZaapiCheckcamphasmanyadsRequest, type ZaloAdsGetZaapiCheckcamphasmanyadsResponse, type ZaloAdsGetZaapiGetadsfromcampaignidRequest, type ZaloAdsGetZaapiGetadsfromcampaignidResponse, type ZaloAdsGetZaapiGetallpagesRequest, type ZaloAdsGetZaapiGetallpagesResponse, type ZaloAdsGetZaapiGetownedarticlesRequest, type ZaloAdsGetZaapiGetownedarticlesResponse, type ZaloAdsGetZaapiGetownedpagesRequest, type ZaloAdsGetZaapiGetownedpagesResponse, type ZaloAdsGrantedMemberItemDto, ZaloAdsImageRatio, type ZaloAdsImageRatioValue, ZaloAdsIntegrationManager, type ZaloAdsIntegrationManagerOptions, type ZaloAdsLeadSignalAudienceTargetingDto, type ZaloAdsLeadSignalOaItem, type ZaloAdsListAgencyCustomersWithBudgetRequest, type ZaloAdsListAgencyCustomersWithBudgetResponse, type ZaloAdsListAutomatedRulesRequest, type ZaloAdsListAutomatedRulesResponse, type ZaloAdsListConversionNamesRequest, type ZaloAdsListConversionNamesResponse, type ZaloAdsListCustomReportsRequest, type ZaloAdsListCustomReportsResponse, type ZaloAdsListFlowsByOfficialAccountRequest, type ZaloAdsListFlowsByOfficialAccountResponse, type ZaloAdsListFormsByOfficialAccountRequest, type ZaloAdsListFormsByOfficialAccountResponse, type ZaloAdsListLeadSignalOasResponse, type ZaloAdsListMiniPagesByTemplateRequest, type ZaloAdsListMiniPagesByTemplateResponse, type ZaloAdsListPersonalPixelLabelsRequest, type ZaloAdsListPersonalPixelLabelsResponse, type ZaloAdsListReportFiltersRequest, type ZaloAdsListReportFiltersResponse, type ZaloAdsLookalikeAudienceTargetingDto, type ZaloAdsLpNewsButtonDto, type ZaloAdsLpNewsItemDto, type ZaloAdsMediaSavePayloadDto, type ZaloAdsMediaSaveSettingsDto, type ZaloAdsMemberFileItemDto, ZaloAdsMessageAdUpdateDataDto, type ZaloAdsMessageOaEventAudienceTargetingDto, type ZaloAdsMessageOaLeadAudienceTargetingDto, type ZaloAdsMessagePersonalEventAudienceTargetingDto, type ZaloAdsNotifyHeaderItemDto, ZaloAdsOsId, type ZaloAdsOsIdValue, type ZaloAdsOwnedArticleItemDto, type ZaloAdsOwnedPageExtraInfoDto, type ZaloAdsOwnedPageItemDto, type ZaloAdsOwnedPageLocationDto, type ZaloAdsPageConfigDto, type ZaloAdsPaymentTransactionItemDto, type ZaloAdsPhoneAudienceTargetingDto, type ZaloAdsPostApiAdEstimateaudienceRequest, type ZaloAdsPostApiAdEstimateaudienceResponse, type ZaloAdsPostApiMediaSaveRequest, type ZaloAdsPostApiMediaSaveResponse, type ZaloAdsPostApiMemberUploadImageRequest, type ZaloAdsPostApiMemberUploadImageResponse, type ZaloAdsPostZaapiDeleteadRequest, type ZaloAdsPostZaapiDeleteadResponse, ZaloAdsPriceLimitType, type ZaloAdsPriceLimitTypeValue, ZaloAdsPriceType, type ZaloAdsPriceTypeValue, ZaloAdsProvinceCode, type ZaloAdsProvinceCodeValue, ZaloAdsRegionId, type ZaloAdsRegionIdValue, type ZaloAdsRenameCampaignRequest, type ZaloAdsRenameCampaignResponse, ZaloAdsSdk, type ZaloAdsSdkOptions, ZaloAdsService, type ZaloAdsSpellCheckIssueDto, type ZaloAdsSpellCheckViolationDto, ZaloAdsSpendingMethod, type ZaloAdsSpendingMethodValue, type ZaloAdsStandardEventItemDto, type ZaloAdsUniqueUserReportDataDto, type ZaloAdsUpdateArticleAdRequest, type ZaloAdsUpdateArticleAdResponse, type ZaloAdsUpdateAutomatedRuleRequest, type ZaloAdsUpdateAutomatedRuleResponse, type ZaloAdsUpdateCommerceAdRequest, type ZaloAdsUpdateCommerceAdResponse, type ZaloAdsUpdateDisplayAdRequest, type ZaloAdsUpdateDisplayAdResponse, type ZaloAdsUpdateEcommerceAdRequest, type ZaloAdsUpdateEcommerceAdResponse, type ZaloAdsUpdateFlowRequest, type ZaloAdsUpdateFlowResponse, type ZaloAdsUpdateFormAdRequest, type ZaloAdsUpdateFormAdResponse, ZaloAdsUpdateMessageAdRequest, ZaloAdsUpdateMessageAdResponse, type ZaloAdsUpdateNewAdsRequest, type ZaloAdsUpdateNewAdsResponse, type ZaloAdsUpdateOaAdRequest, type ZaloAdsUpdateOaAdResponse, type ZaloAdsUpdateOfficialAccountAdRequest, type ZaloAdsUpdateOfficialAccountAdResponse, type ZaloAdsUpdatePostAdRequest, type ZaloAdsUpdatePostAdResponse, ZaloAdsUpdateVideoAdRequest, ZaloAdsUpdateVideoAdResponse, type ZaloAdsUpdateWebsiteAdRequest, type ZaloAdsUpdateWebsiteAdResponse, type ZaloAdsUploadCustomAudiencePhoneListRequest, type ZaloAdsUploadCustomAudiencePhoneListResponse, type ZaloAdsUploadVideoRequest, type ZaloAdsUploadVideoResponse, type ZaloAdsUpsertCustomReportRequest, type ZaloAdsUpsertCustomReportResponse, ZaloAdsUseConversion, type ZaloAdsUseConversionValue, ZaloAdsVideoSrc, type ZaloAdsVideoSrcValue, type ZaloAdsWhoamiProfile, ZaloAdsXTemplates, type ZaloAdsXTemplatesValue, type ZaloAdsZaapiCampaignReportItemDto, ZaloAudiencesService, ZaloAudiencesValidator, type ZaloAuthDomain, ZaloAuthManager, ZaloAutomatedRulesService, ZaloAutomatedRulesValidator, ZaloCampaignsService, ZaloCampaignsValidator, type ZaloChatWidgetGetChatWidgetLoginConfigRequest, type ZaloChatWidgetGetChatWidgetLoginConfigResponse, type ZaloChatWidgetGetLoginConfigRequest, type ZaloChatWidgetGetLoginConfigResponse, ZaloChatWidgetService, ZaloConversionsService, ZaloConversionsValidator, type ZaloCreateFormCleanPayload, type ZaloCreateFormRequestInput, type ZaloDomainSession, ZaloFlowsService, ZaloFlowsValidator, type ZaloFormQuestionAnswerInput, type ZaloFormQuestionInput, type ZaloFormSectionInput, type ZaloFormSessionProfile, type ZaloFormsAudienceExclusionTargetingItem, type ZaloFormsAuthSessionOaItem, type ZaloFormsConversationLeadItem, type ZaloFormsDisableFormLeadNotificationRequest, type ZaloFormsDisableFormLeadNotificationResponse, type ZaloFormsEnableFormLeadNotificationRequest, type ZaloFormsEnableFormLeadNotificationResponse, type ZaloFormsExportFormLeadReportRequest, type ZaloFormsExportFormLeadReportResponse, type ZaloFormsGetAuthSessionResponse, type ZaloFormsLeadAnswerItem, type ZaloFormsLeadItem, type ZaloFormsListAudienceExclusionTargetingRequest, type ZaloFormsListAudienceExclusionTargetingResponse, type ZaloFormsListConversationLeadsRequest, type ZaloFormsListConversationLeadsResponse, type ZaloFormsListFormLeadsRequest, type ZaloFormsListFormLeadsResponse, type ZaloFormsListManagedFormsByOfficialAccountRequest, type ZaloFormsListManagedFormsByOfficialAccountResponse, type ZaloFormsListScenariosByOfficialAccountRequest, type ZaloFormsListScenariosByOfficialAccountResponse, type ZaloFormsListSimpleFormsByOfficialAccountRequest, type ZaloFormsListSimpleFormsByOfficialAccountResponse, type ZaloFormsScenarioItem, ZaloFormsService, type ZaloFormsTrackManageFormEventRequest, type ZaloFormsTrackManageFormEventResponse, type ZaloFormsUpdateFormLeadNotificationIntervalRequest, type ZaloFormsUpdateFormLeadNotificationIntervalResponse, ZaloFormsValidator, type ZaloInstantPageActive, ZaloInstantPageBlockType, ZaloInstantPageSharePermission, type ZaloInstantPageSharePermissionValue, type ZaloInstantPageStatus, type ZaloInstantPagesCloneInstantPageRequest, type ZaloInstantPagesCloneInstantPageResponse, type ZaloInstantPagesCreateInstantPageRequest, type ZaloInstantPagesCreateInstantPageResponse, type ZaloInstantPagesFormRecordItem, type ZaloInstantPagesGetInstantPageDetailRequest, type ZaloInstantPagesGetInstantPageDetailResponse, type ZaloInstantPagesGetInstantPageSharedUserRequest, type ZaloInstantPagesGetInstantPageSharedUserResponse, type ZaloInstantPagesListInstantPageEditHistoryRequest, type ZaloInstantPagesListInstantPageEditHistoryResponse, type ZaloInstantPagesListInstantPageFormRecordsRequest, type ZaloInstantPagesListInstantPageFormRecordsResponse, type ZaloInstantPagesListInstantPageLeadsRequest, type ZaloInstantPagesListInstantPageLeadsResponse, type ZaloInstantPagesListInstantPageSharesRequest, type ZaloInstantPagesListInstantPageSharesResponse, type ZaloInstantPagesListInstantPageUsersRequest, type ZaloInstantPagesListInstantPageUsersResponse, type ZaloInstantPagesListMiniPageTemplatesRequest, type ZaloInstantPagesListMiniPageTemplatesResponse, type ZaloInstantPagesListOfficialAccountsRequest, type ZaloInstantPagesListOfficialAccountsResponse, type ZaloInstantPagesOfficialAccountItem, type ZaloInstantPagesSearchInstantPagesRequest, type ZaloInstantPagesSearchInstantPagesResponse, ZaloInstantPagesService, type ZaloInstantPagesShareMemberDto, type ZaloInstantPagesUpdateInstantPageRequest, type ZaloInstantPagesUpdateInstantPageResponse, type ZaloInstantPagesUpdateInstantPageSharesRequest, type ZaloInstantPagesUpdateInstantPageSharesResponse, type ZaloInstantPagesUpsertInstantPageFormRequest, type ZaloInstantPagesUpsertInstantPageFormResponse, ZaloInstantPagesValidator, type ZaloIntegrationCredentials, type ZaloIntegrationVerificationResult, ZaloMediaService, type ZaloPlaySessionPayload, type ZaloProfileAdsAdministrativeItem, type ZaloProfileAdsCreateOaPageRequest, type ZaloProfileAdsCreateOaPageResponse, type ZaloProfileAdsGetDistrictsRequest, type ZaloProfileAdsGetDistrictsResponse, type ZaloProfileAdsGetProvincesResponse, type ZaloProfileAdsProvinceId, ZaloProfileAdsService, type ZaloProfileAdsSubCategoryId, type ZaloProfileAdsUploadOaAvatarRequest, type ZaloProfileAdsUploadOaAvatarResponse, type ZaloProfileAdsUploadOaCoverRequest, type ZaloProfileAdsUploadOaCoverResponse, type ZaloRedisLikeClient, ZaloReportsService, type ZaloSdkAuth, type ZaloSdkAuthContext, ZaloSdkError, ZaloSdkHttpClient, type ZaloSessionStore, type ZaloSsoAuthOptions, type ZaloUploadAndSaveImageRequest, type ZaloUploadAndSaveImageResult, type ZaloUploadAndSaveVideoRequest, type ZaloUploadAndSaveVideoResult, type ZaloWidgetAPIGetOfficialAccountInfoRequest, type ZaloWidgetAPIGetOfficialAccountInfoResponse, type ZaloWidgetAPIGetWidgetUserProfileRequest, type ZaloWidgetAPIGetWidgetUserProfileResponse, type ZaloWidgetAPIListStickerCategoriesRequest, type ZaloWidgetAPIListStickerCategoriesResponse, type ZaloWidgetAPIListStickersByCategoryRequest, type ZaloWidgetAPIListStickersByCategoryResponse, ZaloWidgetApiService, computeZpsidFingerprint, createZaloSsoAuth, decodePlaySessionJwt, ZaloAdsSdk as default, defaultSharedMemorySessionStore, deriveAccountKeyFromZpsid, parseZaloCookieInput, validateChangeCampaignStatusParams, validateCloneInstantPageRequest, validateCreateCampaignPayload, validateCreateFlowRequest, validateCreateFormEventAudienceRequest, validateCreateFormRequest, validateCreateInstantPageRequest, validateCreateLookalikeAudienceRequest, validateCreateMessageOaEventAudienceRequest, validateCreateMessagePersonalEventAudienceRequest, validateCreatePhoneAudienceRequest, validateCreateSavedAudienceRequest, validateDuplicateAdParams, validateEstimateAudienceRequest, validateGetInstantPageDetailRequest, validateGetInstantPageSharedUserRequest, validateListFlowsByOfficialAccountRequest, validateListFormLeadsRequest, validateListFormsByOfficialAccountRequest, validateListInstantPageEditHistoryRequest, validateListInstantPageFormRecordsRequest, validateListInstantPageLeadsRequest, validateListInstantPageSharesRequest, validateListInstantPageUsersRequest, validateListMiniPageTemplatesRequest, validateListOfficialAccountsRequest, validateRenameCampaignParams, validateSearchInstantPagesRequest, validateUpdateAdPayload, validateUpdateFlowRequest, validateUpdateInstantPageRequest, validateUpsertInstantPageFormRequest };