@redonvn/zalo-ads-sdk 0.2.4 → 0.2.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts 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;
@@ -1036,10 +1036,12 @@ declare class ZaloAdsCreateFlowRequest {
1036
1036
  messages: ZaloAdsFlowMessageDto[];
1037
1037
  }
1038
1038
  declare class ZaloAdsCreateFlowResponse {
1039
- /** 0 khi tạo thành công. */
1039
+ /** 0 khi tạo thành công; 1 khi lỗi (ví dụ: đã tới hạn mức 20 kịch bản). */
1040
1040
  code: number;
1041
+ /** Thông báo lỗi từ Zalo Ads khi code khác 0. */
1042
+ msg?: string;
1041
1043
  /** ID kịch bản mới, truyền vào data.ZaloFlowId khi cập nhật quảng cáo Tin nhắn. */
1042
- data: {
1044
+ data?: {
1043
1045
  id: number;
1044
1046
  };
1045
1047
  }
@@ -1151,17 +1153,68 @@ interface ZaloAdsAdUpdatePayloadDto {
1151
1153
  ZaloPageId?: number;
1152
1154
  ZaloFormId?: string;
1153
1155
  ZaloFeedId?: string | number;
1156
+ ZaloVideoId?: number;
1154
1157
  MiniPageId?: number;
1155
1158
  UseConversion?: 0 | 1;
1156
1159
  ConversionId?: number;
1157
1160
  Report?: Record<string, number>;
1158
1161
  }
1162
+ /** Danh mục mã hành động / nút CTA chuẩn trên Zalo Ads */
1163
+ declare const ZaloAdsActionType: {
1164
+ readonly DAT_NGAY: 1;
1165
+ readonly MUA_NGAY: 2;
1166
+ readonly THU_NGAY: 3;
1167
+ readonly TAI_NGAY: 4;
1168
+ readonly XEM_THEM: 5;
1169
+ readonly QUAN_TAM_OA: 6;
1170
+ readonly NGHE_NGAY: 7;
1171
+ readonly CHOI_NGAY: 8;
1172
+ readonly DANG_KY: 9;
1173
+ readonly GOI_DIEN: 10;
1174
+ };
1175
+ /** Danh mục mã khoảng tuổi nhắm chọn đối tượng trên Zalo Ads */
1176
+ declare const ZaloAdsAgeRangeId: {
1177
+ readonly UNDER_18: 10282;
1178
+ readonly FROM_18_TO_24: 10283;
1179
+ readonly FROM_25_TO_34: 10284;
1180
+ readonly FROM_35_TO_44: 10285;
1181
+ readonly FROM_45_TO_54: 10286;
1182
+ readonly FROM_55_TO_64: 10287;
1183
+ readonly OVER_64: 10288;
1184
+ };
1185
+ /** Danh mục mã hệ điều hành */
1186
+ declare const ZaloAdsOsId: {
1187
+ readonly ANDROID: 0;
1188
+ readonly IOS: 1;
1189
+ readonly PC: 3;
1190
+ };
1191
+ /** Danh mục tốc độ phân phối quảng cáo */
1192
+ declare const ZaloAdsDeliveryType: {
1193
+ readonly STANDARD: 1;
1194
+ readonly ACCELERATED: 2;
1195
+ };
1159
1196
  interface ZaloAdsAdMutationResultDto {
1160
1197
  AdId?: number;
1161
1198
  CampaignId?: number;
1162
1199
  Status?: number;
1163
1200
  RowVersion?: number;
1164
1201
  }
1202
+ /** Tham số yêu cầu nhân bản mẫu quảng cáo (POST /zaapi/DuplicateAd) */
1203
+ interface ZaloAdsDuplicateAdRequest {
1204
+ /** ID mẫu quảng cáo gốc cần nhân bản (bắt buộc). */
1205
+ adid?: number;
1206
+ /** Alias cho adid. */
1207
+ adId?: number;
1208
+ }
1209
+ /** Kết quả phản hồi khi nhân bản mẫu quảng cáo */
1210
+ interface ZaloAdsDuplicateAdResponse {
1211
+ /** Mã trạng thái: 0 = Thành công, khác 0 = Lỗi */
1212
+ code: number;
1213
+ /** Chuỗi thông báo kết quả (chứa ID của Ad mới tạo) */
1214
+ msg?: string;
1215
+ /** ID số nguyên của Ad mới vừa được nhân bản */
1216
+ data: number;
1217
+ }
1165
1218
  interface ZaloAdsCampaignCreatePayloadDto {
1166
1219
  name: string;
1167
1220
  campaignType: number;
@@ -1277,11 +1330,13 @@ type ZaloAdsListFlowsByOfficialAccountResponse = {
1277
1330
  messages: Array<{
1278
1331
  type: number;
1279
1332
  text: string;
1333
+ url?: string;
1280
1334
  buttons: Array<{
1281
1335
  type: number;
1282
1336
  text: string;
1283
1337
  editable: boolean;
1284
- url: string;
1338
+ url?: string;
1339
+ phone?: string;
1285
1340
  messages: Array<ZaloAdsFlowChildMessageDto>;
1286
1341
  }>;
1287
1342
  elements: Array<{
@@ -1504,15 +1559,53 @@ type ZaloAdsDeleteCustomAudienceResponse = {
1504
1559
  /** Mã kết quả; 0 biểu thị thành công trong phản hồi đã quan sát. */
1505
1560
  code: number;
1506
1561
  };
1507
- /** 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. */
1562
+ /** Lấy chi tiết một quảng cáo theo ID (GET /zaapi/getAdFromAdId?adId=...&v=2&newWard=true). */
1508
1563
  type ZaloAdsGetAdByIdRequest = {
1509
1564
  /** ID mẫu quảng cáo cần lấy chi tiết (query param `adId`). */
1510
1565
  adId?: number | string;
1566
+ /** Phiên bản schema cấu trúc dữ liệu trả về (mặc định: 2). */
1567
+ v?: number | string;
1568
+ /** Cờ kích hoạt định dạng nhắm chọn cấp Phường/Xã mới (mặc định: true). */
1569
+ newWard?: boolean | string;
1511
1570
  };
1571
+ /** Thông tin chiến dịch mở rộng đính kèm trong phản hồi getAdById */
1572
+ interface ZaloAdsCampaignDetailExtendDto {
1573
+ CampaignId: number;
1574
+ MemberId: number;
1575
+ Name: string;
1576
+ Type: number;
1577
+ StartDate: number;
1578
+ EndDate: number;
1579
+ Status: number;
1580
+ Modified?: number;
1581
+ Created?: number;
1582
+ AdtimaCampaignId?: number;
1583
+ AdtimaOrderId?: number;
1584
+ ReadOnly?: number;
1585
+ CrmCampaignId?: string;
1586
+ Settings?: {
1587
+ BudgetLimit?: {
1588
+ Type?: number;
1589
+ Amount?: number;
1590
+ LimitType?: number;
1591
+ };
1592
+ };
1593
+ CreatedBy?: number;
1594
+ AgencyId?: number;
1595
+ Username?: string;
1596
+ ViewType?: string;
1597
+ }
1512
1598
  type ZaloAdsGetAdByIdResponse = {
1513
1599
  code?: number;
1514
1600
  msg?: string;
1515
1601
  data?: ZaloAdsAdUpdatePayloadDto;
1602
+ extend?: ZaloAdsCampaignDetailExtendDto;
1603
+ flags?: {
1604
+ IsOaValidForAd?: boolean;
1605
+ [key: string]: unknown;
1606
+ };
1607
+ report?: number[] | Record<string, number>;
1608
+ viewdata?: unknown[];
1516
1609
  AdId?: number;
1517
1610
  CampaignId?: number;
1518
1611
  MemberId?: number;
@@ -1536,8 +1629,8 @@ type ZaloAdsGetAdByIdResponse = {
1536
1629
  type ZaloAdsGetAdChangeLogRequest = {
1537
1630
  /** 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. */
1538
1631
  adId: number;
1539
- /** Mã loại nhật ký. Request đã ghi nhận dùng 1. */
1540
- type: number;
1632
+ /** Mã loại nhật ký (mặc định: 1). */
1633
+ type?: number;
1541
1634
  };
1542
1635
  type ZaloAdsGetAdChangeLogResponse = {
1543
1636
  /** Thông điệp kết quả từ Zalo Ads. */
@@ -1928,6 +2021,50 @@ type ZaloAdsGetApiSpellCheckV2Response = {
1928
2021
  diffs: Array<ZaloAdsSpellCheckIssueDto>;
1929
2022
  };
1930
2023
  };
2024
+ interface ZaloAdsSpellCheckViolationDto {
2025
+ start: number;
2026
+ end: number;
2027
+ original_text: string;
2028
+ rules: number[];
2029
+ suggestion: string;
2030
+ }
2031
+ /** Khởi tạo tác vụ kiểm tra chính tả và vi phạm quy chuẩn quảng cáo AI V3 (POST /api/spell-check/v3). */
2032
+ type ZaloAdsCreateSpellCheckV3JobRequest = {
2033
+ /** Tiêu đề mẫu quảng cáo (title). */
2034
+ title: string;
2035
+ /** Chú thích / mô tả mẫu quảng cáo (caption). */
2036
+ caption: string;
2037
+ };
2038
+ type ZaloAdsCreateSpellCheckV3JobResponse = {
2039
+ code: 0 | number;
2040
+ data: {
2041
+ error: number;
2042
+ jobId: string;
2043
+ };
2044
+ };
2045
+ /** Lấy kết quả kiểm tra chính tả và vi phạm quy chuẩn quảng cáo AI V3 theo jobId (GET /api/spell-check/v3/{jobId}). */
2046
+ type ZaloAdsGetSpellCheckV3JobRequest = {
2047
+ /** Mã tác vụ kiểm tra chính tả dạng http-<uuid>. */
2048
+ jobId: string;
2049
+ };
2050
+ type ZaloAdsGetSpellCheckV3JobResponse = {
2051
+ code: 0 | number;
2052
+ data: {
2053
+ error: number;
2054
+ jobId: string;
2055
+ status: "PROCESSING" | "COMPLETED";
2056
+ message?: string;
2057
+ completedAt?: string;
2058
+ details?: {
2059
+ violations?: Array<ZaloAdsSpellCheckViolationDto>;
2060
+ title_merged_violations?: Array<ZaloAdsSpellCheckViolationDto>;
2061
+ caption_merged_violations?: Array<ZaloAdsSpellCheckViolationDto>;
2062
+ title_suggestion?: string;
2063
+ caption_suggestion?: string;
2064
+ error?: string;
2065
+ };
2066
+ };
2067
+ };
1931
2068
  /** Lấy thông tin tài khoản Zalo Ads hiện được xác thực, gồm ngân sách, hạn mức và các khả năng được cấp. Đây là auth-sensitive entry tool thuộc lane zalo-ads-account; dùng để xác nhận đúng ngữ cảnh tài khoản trước thao tác khác. Dữ liệu cá nhân, hợp đồng và định danh phiên chỉ được xử lý trong phạm vi được ủy quyền. */
1932
2069
  type ZaloAdsGetApiWhoamiRequest = Record<string, never>;
1933
2070
  type ZaloAdsGetApiWhoamiResponse = {
@@ -2173,11 +2310,18 @@ type ZaloAdsGetZaapiCheckcamphasmanyadsResponse = {
2173
2310
  type ZaloAdsGetZaapiGetadsfromcampaignidRequest = {
2174
2311
  campaignId?: number | string;
2175
2312
  campId?: number | string;
2313
+ dataType?: number | string;
2314
+ v?: number | string;
2176
2315
  };
2177
2316
  type ZaloAdsGetZaapiGetadsfromcampaignidResponse = {
2178
2317
  code: number;
2179
2318
  msg?: string;
2180
2319
  data: Array<ZaloAdsAdUpdatePayloadDto>;
2320
+ extend?: ZaloAdsCampaignDetailExtendDto;
2321
+ extra?: {
2322
+ appliedRuleInfo?: Array<unknown>;
2323
+ [key: string]: unknown;
2324
+ };
2181
2325
  };
2182
2326
  interface ZaloAdsPageConfigDto {
2183
2327
  /** Hạng tài khoản OA (ví dụ: 0 = Phổ thông, 1 = Xác thực/Nâng cao). */
@@ -2621,10 +2765,15 @@ type ZaloAdsPostZaapiDeleteadResponse = {
2621
2765
  };
2622
2766
  /** Đổ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. */
2623
2767
  type ZaloAdsRenameCampaignRequest = {
2624
- /** 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. */
2625
- campid: number;
2626
- /** Tên hiển thị mới của chiến dịch. */
2627
- newname: string;
2768
+ /** ID chiến dịch cần đổi tên (server nhận tham số campid). */
2769
+ campid?: number;
2770
+ /** Alias thân thiện cho campid */
2771
+ campaignId?: number;
2772
+ /** Tên hiển thị mới của chiến dịch (server nhận tham số newname). */
2773
+ newname?: string;
2774
+ /** Alias thân thiện cho newname */
2775
+ campaignName?: string;
2776
+ name?: string;
2628
2777
  };
2629
2778
  type ZaloAdsRenameCampaignResponse = {
2630
2779
  /** Thông điệp kết quả từ Zalo Ads. */
@@ -3158,10 +3307,12 @@ type ZaloAdsCreateMessageOaEventAudienceResponse = ZaloAdsCreateCustomAudienceRe
3158
3307
  /** Cấu hình targeting cho Nhóm đối tượng sự kiện Tin nhắn cá nhân (`caType = 14`). */
3159
3308
  interface ZaloAdsMessagePersonalEventAudienceTargetingDto {
3160
3309
  /** 1: Đã liên hệ, 2: Đã xem nội dung nhưng không liên hệ, 3: Dành thời gian xem ảnh và video ở carousel nhưng không liên hệ. */
3161
- EventType: 1 | 2 | 3 | number;
3310
+ EventId?: 1 | 2 | 3 | number;
3311
+ /** Bí danh tương thích ngược cho EventId. */
3312
+ EventType?: 1 | 2 | 3 | number;
3162
3313
  /** Khoảng thời gian lưu vết người dùng (1 đến 90 ngày). */
3163
3314
  NumDays: number;
3164
- /** Danh sách publicId của các Mini Page template Tin nhắn. */
3315
+ /** Danh sách publicId hoặc ID số của các Mini Page template Tin nhắn. */
3165
3316
  PageIds: string[];
3166
3317
  }
3167
3318
  /** Tạo mới Nhóm đối tượng phát sinh sự kiện trên Kịch bản Tin nhắn cá nhân (`caType = 14` - `MESSAGE_PERSONAL_EVENT_AUDIENCE`). */
@@ -3277,6 +3428,22 @@ type ZaloAdsListReportFiltersResponse = Array<{
3277
3428
  content: string;
3278
3429
  model: number;
3279
3430
  }>;
3431
+ /** 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). */
3432
+ type ZaloAdsDownloadReportRequest = {
3433
+ /** Hành động / chủ đề tải báo cáo; mặc định là "cd.download.report". */
3434
+ t?: "cd.download.report" | string;
3435
+ /** Danh sách ID các mẫu quảng cáo cần xuất báo cáo (ví dụ: [19770157]). */
3436
+ adIds: number[];
3437
+ /** Mã trạng thái lọc quảng cáo khi xuất báo cáo (ví dụ: 2 = Đang chạy). */
3438
+ status?: number;
3439
+ /** Bộ lọc thời gian: 0 = Toàn thời gian / Tùy chỉnh. */
3440
+ dateFilter?: number;
3441
+ /** Loại chỉ số dữ liệu báo cáo (100001: Lượt nhấn / Chi phí / Hiển thị). */
3442
+ reportKind?: number;
3443
+ /** Unix timestamp thời điểm gửi lệnh xuất báo cáo (giây). */
3444
+ et?: number;
3445
+ };
3446
+ type ZaloAdsDownloadReportResponse = Blob;
3280
3447
 
3281
3448
  /**
3282
3449
  * Tham số đầu vào cho method tiện ích `uploadAndSaveImage`
@@ -3457,12 +3624,22 @@ interface ValidateVideoInput {
3457
3624
  fileName?: string;
3458
3625
  }
3459
3626
 
3460
- /**
3461
- * 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).
3462
- */
3463
-
3464
3627
  declare class ZaloCampaignsService {
3465
3628
  protected readonly client: ZaloSdkHttpClient;
3629
+ readonly validator: {
3630
+ createCampaign: typeof validateCreateCampaignPayload;
3631
+ updateAd: typeof validateUpdateAdPayload;
3632
+ renameCampaign: typeof validateRenameCampaignParams;
3633
+ changeStatus: typeof validateChangeCampaignStatusParams;
3634
+ duplicateAd: typeof validateDuplicateAdParams;
3635
+ };
3636
+ static readonly validator: {
3637
+ createCampaign: typeof validateCreateCampaignPayload;
3638
+ updateAd: typeof validateUpdateAdPayload;
3639
+ renameCampaign: typeof validateRenameCampaignParams;
3640
+ changeStatus: typeof validateChangeCampaignStatusParams;
3641
+ duplicateAd: typeof validateDuplicateAdParams;
3642
+ };
3466
3643
  constructor(client: ZaloSdkHttpClient);
3467
3644
  updateVideoAd(request: ZaloAdsUpdateVideoAdRequest, options?: RequestOptions): Promise<ZaloAdsUpdateVideoAdResponse>;
3468
3645
  changeCampaignStatus(request: ZaloAdsChangeCampaignStatusRequest, options?: RequestOptions): Promise<ZaloAdsChangeCampaignStatusResponse>;
@@ -3490,6 +3667,8 @@ declare class ZaloCampaignsService {
3490
3667
  getApiSpellCheckV2(request: ZaloAdsGetApiSpellCheckV2Request, options?: RequestOptions): Promise<ZaloAdsGetApiSpellCheckV2Response>;
3491
3668
  getZaapiCheckcamphasmanyads(request?: ZaloAdsGetZaapiCheckcamphasmanyadsRequest, options?: RequestOptions): Promise<ZaloAdsGetZaapiCheckcamphasmanyadsResponse>;
3492
3669
  getZaapiGetadsfromcampaignid(request?: ZaloAdsGetZaapiGetadsfromcampaignidRequest, options?: RequestOptions): Promise<ZaloAdsGetZaapiGetadsfromcampaignidResponse>;
3670
+ /** Alias lấy danh sách quảng cáo của chiến dịch kèm metadata extend và extra.appliedRuleInfo */
3671
+ getAdsFromCampaignId(request?: ZaloAdsGetZaapiGetadsfromcampaignidRequest, options?: RequestOptions): Promise<ZaloAdsGetZaapiGetadsfromcampaignidResponse>;
3493
3672
  getZaapiGetallpages(request?: ZaloAdsGetZaapiGetallpagesRequest, options?: RequestOptions): Promise<ZaloAdsGetZaapiGetallpagesResponse>;
3494
3673
  getAllPages(request?: ZaloAdsGetZaapiGetallpagesRequest, options?: RequestOptions): Promise<ZaloAdsGetZaapiGetallpagesResponse>;
3495
3674
  getZaapiGetownedarticles(request: ZaloAdsGetZaapiGetownedarticlesRequest, options?: RequestOptions): Promise<ZaloAdsGetZaapiGetownedarticlesResponse>;
@@ -3518,6 +3697,26 @@ declare class ZaloCampaignsService {
3518
3697
  getAllDistricts(...args: Parameters<this["getApiPlaceGetalldistricts"]>): ReturnType<this["getApiPlaceGetalldistricts"]>;
3519
3698
  /** Kiểm tra chính tả văn bản quảng cáo */
3520
3699
  getSpellCheckV2(...args: Parameters<this["getApiSpellCheckV2"]>): ReturnType<this["getApiSpellCheckV2"]>;
3700
+ /**
3701
+ * Khởi tạo tác vụ kiểm tra chính tả và vi phạm quy chuẩn quảng cáo AI V3 (POST /api/spell-check/v3).
3702
+ */
3703
+ createSpellCheckV3Job(request: ZaloAdsCreateSpellCheckV3JobRequest, options?: RequestOptions): Promise<ZaloAdsCreateSpellCheckV3JobResponse>;
3704
+ /**
3705
+ * Lấy kết quả kiểm tra chính tả AI V3 theo jobId (GET /api/spell-check/v3/{jobId}).
3706
+ */
3707
+ getSpellCheckV3Job(request: ZaloAdsGetSpellCheckV3JobRequest, options?: RequestOptions): Promise<ZaloAdsGetSpellCheckV3JobResponse>;
3708
+ /**
3709
+ * Helper kiểm tra chính tả AI V3 trọn gói: Gửi kiểm tra và tự động polling cho đến khi hoàn thành (hoặc timeout).
3710
+ * @param request Tiêu đề (title) và chú thích (caption) cần kiểm tra.
3711
+ * @param pollIntervalMs Chu kỳ polling kiểm tra trạng thái (mặc định: 600ms).
3712
+ * @param timeoutMs Thời gian chờ tối đa (mặc định: 15.000ms = 15 giây).
3713
+ */
3714
+ checkSpellV3AndWait(request: ZaloAdsCreateSpellCheckV3JobRequest, pollIntervalMs?: number, timeoutMs?: number, options?: RequestOptions): Promise<ZaloAdsGetSpellCheckV3JobResponse>;
3715
+ /**
3716
+ * 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).
3717
+ * 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.
3718
+ */
3719
+ duplicateAd(request: ZaloAdsDuplicateAdRequest, options?: RequestOptions): Promise<ZaloAdsDuplicateAdResponse>;
3521
3720
  }
3522
3721
 
3523
3722
  /**
@@ -3548,12 +3747,17 @@ declare class ZaloAccountService {
3548
3747
  getLpNews(...args: Parameters<this["getApiLpNews"]>): ReturnType<this["getApiLpNews"]>;
3549
3748
  }
3550
3749
 
3551
- /**
3552
- * Dịch vụ Quản lý Đối tượng Tùy chỉnh & Ước tính Tiếp cận (Custom Audiences, Phone List, Lookalike, Event Audiences).
3553
- */
3554
-
3555
3750
  declare class ZaloAudiencesService {
3556
3751
  protected readonly client: ZaloSdkHttpClient;
3752
+ static readonly validator: {
3753
+ readonly createSavedAudience: typeof validateCreateSavedAudienceRequest;
3754
+ readonly createPhoneAudience: typeof validateCreatePhoneAudienceRequest;
3755
+ readonly createLookalikeAudience: typeof validateCreateLookalikeAudienceRequest;
3756
+ readonly createFormEventAudience: typeof validateCreateFormEventAudienceRequest;
3757
+ readonly createMessageOaEventAudience: typeof validateCreateMessageOaEventAudienceRequest;
3758
+ readonly createMessagePersonalEventAudience: typeof validateCreateMessagePersonalEventAudienceRequest;
3759
+ readonly estimateAudience: typeof validateEstimateAudienceRequest;
3760
+ };
3557
3761
  constructor(client: ZaloSdkHttpClient);
3558
3762
  postApiAdEstimateaudience(request: ZaloAdsPostApiAdEstimateaudienceRequest, options?: RequestOptions): Promise<ZaloAdsPostApiAdEstimateaudienceResponse>;
3559
3763
  getApiAdGetlistadadvancetargeting(request?: ZaloAdsGetApiAdGetlistadadvancetargetingRequest, options?: RequestOptions): Promise<ZaloAdsGetApiAdGetlistadadvancetargetingResponse>;
@@ -3617,6 +3821,8 @@ declare class ZaloReportsService {
3617
3821
  getUniqueUserReport(...args: Parameters<this["getReportapiV2UniqueUser"]>): ReturnType<this["getReportapiV2UniqueUser"]>;
3618
3822
  /** Báo cáo chiến dịch theo ngày/tháng (Legacy ZAAPI) */
3619
3823
  getCampaignReportLegacy(...args: Parameters<this["getZaapiCampaignReportcampaign"]>): ReturnType<this["getZaapiCampaignReportcampaign"]>;
3824
+ /** 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) */
3825
+ downloadReport(request: ZaloAdsDownloadReportRequest, options?: RequestOptions): Promise<Blob>;
3620
3826
  }
3621
3827
 
3622
3828
  /**
@@ -3658,12 +3864,22 @@ declare class ZaloAutomatedRulesService {
3658
3864
  deleteAutomatedRule(request: ZaloAdsDeleteAutomatedRuleRequest, options?: RequestOptions): Promise<ZaloAdsDeleteAutomatedRuleResponse>;
3659
3865
  }
3660
3866
 
3661
- /**
3662
- * Dịch vụ Quản lý Kịch bản Tin nhắn OA (Message Flows get/create/update).
3663
- */
3664
-
3665
3867
  declare class ZaloFlowsService {
3666
3868
  protected readonly client: ZaloSdkHttpClient;
3869
+ /**
3870
+ * Bộ công cụ kiểm tra tính hợp lệ dữ liệu (Standalone Validators) cho Message Flows APIs.
3871
+ * Dùng để validate dữ liệu đầu vào trước khi lưu DB hoặc gọi Zalo Ads.
3872
+ */
3873
+ static readonly validator: {
3874
+ readonly listFlowsByOfficialAccount: typeof validateListFlowsByOfficialAccountRequest;
3875
+ readonly createFlow: typeof validateCreateFlowRequest;
3876
+ readonly updateFlow: typeof validateUpdateFlowRequest;
3877
+ };
3878
+ readonly validator: {
3879
+ readonly listFlowsByOfficialAccount: typeof validateListFlowsByOfficialAccountRequest;
3880
+ readonly createFlow: typeof validateCreateFlowRequest;
3881
+ readonly updateFlow: typeof validateUpdateFlowRequest;
3882
+ };
3667
3883
  constructor(client: ZaloSdkHttpClient);
3668
3884
  listFlowsByOfficialAccount(request: ZaloAdsListFlowsByOfficialAccountRequest, options?: RequestOptions): Promise<ZaloAdsListFlowsByOfficialAccountResponse>;
3669
3885
  createFlow(request: ZaloAdsCreateFlowRequest, options?: RequestOptions): Promise<ZaloAdsCreateFlowResponse>;
@@ -4018,6 +4234,8 @@ type ZaloFormsListConversationLeadsRequest = {
4018
4234
  labelIds?: string;
4019
4235
  /** Danh sách scene ID phân cách dấu phẩy, có thể bỏ trống. */
4020
4236
  sceneIds?: string;
4237
+ /** Danh sách mã lý do chi tiết phân cách bằng dấu phẩy. */
4238
+ reason?: string;
4021
4239
  };
4022
4240
  type ZaloFormsConversationLeadItem = {
4023
4241
  id: string;
@@ -4064,6 +4282,8 @@ type ZaloFormsListFormLeadsRequest = {
4064
4282
  labelIds?: string;
4065
4283
  /** Chế độ commerce. */
4066
4284
  isCommerce: boolean;
4285
+ /** Danh sách mã lý do chi tiết phân cách bằng dấu phẩy. */
4286
+ reason?: string;
4067
4287
  };
4068
4288
  type ZaloFormsLeadAnswerItem = {
4069
4289
  questionId: string;
@@ -4289,12 +4509,195 @@ type ZaloFormsGetAuthSessionResponse = {
4289
4509
  oas: ZaloFormsAuthSessionOaItem[];
4290
4510
  };
4291
4511
  };
4512
+ /** Ghi nhận sự kiện tương tác trên Lead Center (GET /client/manage/api/manageForm/tracking). */
4513
+ type ZaloFormsTrackManageFormEventRequest = {
4514
+ /** Mã loại sự kiện tracking (ví dụ: 2 = Tải xuống báo cáo lead). */
4515
+ eventId: number;
4516
+ /** Mã Official Account (alphanumeric ID). */
4517
+ oaId: string;
4518
+ /** ID Zalo Form tương tác. */
4519
+ formId: string;
4520
+ };
4521
+ type ZaloFormsTrackManageFormEventResponse = {
4522
+ msg: string;
4523
+ code: number;
4524
+ };
4525
+
4526
+ /**
4527
+ * Bộ kiểm tra tính hợp lệ dữ liệu (Request Validators) cho 13 API Zalo Instant Pages.
4528
+ * Được thiết kế để xuất ra ngoài cho backend (NestJS/Express/Fastify), middleware hoặc AI Agent
4529
+ * sử dụng để xác thực dữ liệu đầu vào trước khi lưu trữ hoặc gọi API Zalo Ads.
4530
+ *
4531
+ * Lưu ý: Các hàm validate này là độc lập (pure functions), KHÔNG bị nhúng cứng bên trong
4532
+ * các hàm gọi HTTP của ZaloInstantPagesService, giúp giữ cho Service gọn gàng và unopinionated.
4533
+ */
4534
+
4535
+ /** Kết quả xác thực dữ liệu đầu vào của API. */
4536
+ interface ValidationResult<T = unknown> {
4537
+ /** True nếu dữ liệu hợp lệ và thỏa mãn quy chuẩn; False nếu có ít nhất 1 lỗi. */
4538
+ isValid: boolean;
4539
+ /** Danh sách các thông báo lỗi chi tiết. Rỗng nếu isValid = true. */
4540
+ errors: string[];
4541
+ /** Dữ liệu sau khi làm sạch và ép kiểu chuẩn (nếu hợp lệ). */
4542
+ data?: T;
4543
+ }
4544
+ declare function validateCloneInstantPageRequest(input: unknown): ValidationResult<ZaloInstantPagesCloneInstantPageRequest>;
4545
+ declare function validateGetInstantPageDetailRequest(input: unknown): ValidationResult<ZaloInstantPagesGetInstantPageDetailRequest>;
4546
+ declare function validateGetInstantPageSharedUserRequest(input: unknown): ValidationResult<ZaloInstantPagesGetInstantPageSharedUserRequest>;
4547
+ declare function validateListInstantPageEditHistoryRequest(input: unknown): ValidationResult<ZaloInstantPagesListInstantPageEditHistoryRequest>;
4548
+ declare function validateListInstantPageFormRecordsRequest(input: unknown): ValidationResult<ZaloInstantPagesListInstantPageFormRecordsRequest>;
4549
+ declare function validateListInstantPageSharesRequest(input: unknown): ValidationResult<ZaloInstantPagesListInstantPageSharesRequest>;
4550
+ declare function validateListInstantPageUsersRequest(input?: unknown): ValidationResult<ZaloInstantPagesListInstantPageUsersRequest>;
4551
+ declare function validateListMiniPageTemplatesRequest(input?: unknown): ValidationResult<ZaloInstantPagesListMiniPageTemplatesRequest>;
4552
+ declare function validateSearchInstantPagesRequest(input?: unknown): ValidationResult<ZaloInstantPagesSearchInstantPagesRequest>;
4553
+ declare function validateUpdateInstantPageRequest(input: unknown): ValidationResult<ZaloInstantPagesUpdateInstantPageRequest>;
4554
+ declare function validateListInstantPageLeadsRequest(input: unknown): ValidationResult<ZaloInstantPagesListInstantPageLeadsRequest>;
4555
+ declare function validateListOfficialAccountsRequest(input?: unknown): ValidationResult<ZaloInstantPagesListOfficialAccountsRequest>;
4556
+ declare function validateUpsertInstantPageFormRequest(input: unknown): ValidationResult<ZaloInstantPagesUpsertInstantPageFormRequest>;
4557
+ declare const ZaloInstantPagesValidator: {
4558
+ validateCloneInstantPage: typeof validateCloneInstantPageRequest;
4559
+ validateGetInstantPageDetail: typeof validateGetInstantPageDetailRequest;
4560
+ validateGetInstantPageSharedUser: typeof validateGetInstantPageSharedUserRequest;
4561
+ validateListInstantPageEditHistory: typeof validateListInstantPageEditHistoryRequest;
4562
+ validateListInstantPageFormRecords: typeof validateListInstantPageFormRecordsRequest;
4563
+ validateListInstantPageShares: typeof validateListInstantPageSharesRequest;
4564
+ validateListInstantPageUsers: typeof validateListInstantPageUsersRequest;
4565
+ validateListMiniPageTemplates: typeof validateListMiniPageTemplatesRequest;
4566
+ validateSearchInstantPages: typeof validateSearchInstantPagesRequest;
4567
+ validateUpdateInstantPage: typeof validateUpdateInstantPageRequest;
4568
+ validateListInstantPageLeads: typeof validateListInstantPageLeadsRequest;
4569
+ validateListOfficialAccounts: typeof validateListOfficialAccountsRequest;
4570
+ validateUpsertInstantPageForm: typeof validateUpsertInstantPageFormRequest;
4571
+ };
4292
4572
 
4293
- /** Zalo Forms API service. Each API explicitly selects its own request transport. */
4573
+ /**
4574
+ * Bộ kiểm tra tính hợp lệ dữ liệu (Request Validators) cho các API Zalo Forms & Leads:
4575
+ * 1. createForm (POST https://ads.zalo.me/api/form/create)
4576
+ * 2. listFormsByOfficialAccount (GET https://ads.zalo.me/api/form/getByOaId)
4577
+ * 3. listFormLeads (GET https://form.ads.zalo.me/client/manage/api/manageForm/getFormLeads)
4578
+ * 4. listConversationLeads (GET https://form.ads.zalo.me/client/manage/api/manageConversation/getConversationLeads)
4579
+ * 5. leadNotification (POST enable/disable/updateInterval)
4580
+ *
4581
+ * Tích hợp toàn bộ giới hạn độ dài ký tự và quy tắc nghiệp vụ trích xuất từ DOM Angular thực tế.
4582
+ */
4583
+
4584
+ interface ZaloFormQuestionAnswerInput {
4585
+ type: number;
4586
+ placeHolder?: string;
4587
+ value?: string | null;
4588
+ priority?: number;
4589
+ }
4590
+ interface ZaloFormQuestionInput {
4591
+ title: string;
4592
+ type?: number;
4593
+ isRequired?: boolean;
4594
+ editDisabled?: boolean;
4595
+ priority?: number;
4596
+ answers: ZaloFormQuestionAnswerInput[];
4597
+ }
4598
+ interface ZaloFormSectionInput {
4599
+ type: number;
4600
+ title?: string;
4601
+ disable?: boolean;
4602
+ expand?: boolean;
4603
+ content?: {
4604
+ title?: string;
4605
+ description?: string;
4606
+ table?: Array<{
4607
+ key: string;
4608
+ value: string;
4609
+ }>;
4610
+ images?: Array<{
4611
+ url: string;
4612
+ title?: string;
4613
+ caption?: string;
4614
+ }>;
4615
+ videos?: unknown[];
4616
+ };
4617
+ }
4618
+ interface ZaloCreateFormCleanPayload {
4619
+ oaId: string;
4620
+ title: string;
4621
+ formName: string;
4622
+ description?: string;
4623
+ coverPhoto: string;
4624
+ submitTitle: string;
4625
+ thanks: string;
4626
+ gotoActionType: number;
4627
+ gotoText: string;
4628
+ website?: string;
4629
+ reviewSubmit: boolean;
4630
+ questions: ZaloFormQuestionInput[];
4631
+ sections?: ZaloFormSectionInput[];
4632
+ useCustomConsent?: boolean;
4633
+ consentName?: string;
4634
+ consentUrl?: string;
4635
+ [key: string]: unknown;
4636
+ }
4637
+ interface ZaloCreateFormRequestInput {
4638
+ data?: string | ZaloCreateFormCleanPayload;
4639
+ [key: string]: unknown;
4640
+ }
4641
+ /**
4642
+ * Kiểm tra tính hợp lệ dữ liệu khi tạo mới Zalo Form (POST /api/form/create)
4643
+ */
4644
+ declare function validateCreateFormRequest(input: unknown): ValidationResult<ZaloCreateFormCleanPayload>;
4645
+ /**
4646
+ * Kiểm tra tính hợp lệ dữ liệu lấy danh sách Form theo OA (GET /api/form/getByOaId)
4647
+ */
4648
+ declare function validateListFormsByOfficialAccountRequest(input: unknown): ValidationResult<{
4649
+ oaId: string;
4650
+ isAll?: boolean;
4651
+ }>;
4652
+ /**
4653
+ * Kiểm tra tính hợp lệ dữ liệu tra cứu Form Leads (GET /client/manage/api/manageForm/getFormLeads)
4654
+ */
4655
+ declare function validateListFormLeadsRequest(input: unknown): ValidationResult<{
4656
+ oaId: string;
4657
+ type: number;
4658
+ limit: number;
4659
+ offset: number;
4660
+ status: string;
4661
+ fromTime: number;
4662
+ toTime: number;
4663
+ formIds?: string;
4664
+ keyword?: string;
4665
+ reason?: string;
4666
+ labelIds?: string;
4667
+ isCommerce?: boolean;
4668
+ }>;
4669
+ /**
4670
+ * Gom nhóm toàn bộ Validators cho Form & Lead APIs.
4671
+ */
4672
+ declare const ZaloFormsValidator: {
4673
+ readonly createForm: typeof validateCreateFormRequest;
4674
+ readonly listFormsByOfficialAccount: typeof validateListFormsByOfficialAccountRequest;
4675
+ readonly listFormLeads: typeof validateListFormLeadsRequest;
4676
+ };
4294
4677
 
4295
4678
  declare class ZaloFormsService {
4296
4679
  private readonly client;
4680
+ readonly validator: {
4681
+ readonly createForm: typeof validateCreateFormRequest;
4682
+ readonly listFormsByOfficialAccount: typeof validateListFormsByOfficialAccountRequest;
4683
+ readonly listFormLeads: typeof validateListFormLeadsRequest;
4684
+ };
4685
+ static readonly validator: {
4686
+ readonly createForm: typeof validateCreateFormRequest;
4687
+ readonly listFormsByOfficialAccount: typeof validateListFormsByOfficialAccountRequest;
4688
+ readonly listFormLeads: typeof validateListFormLeadsRequest;
4689
+ };
4297
4690
  constructor(client: ZaloSdkHttpClient);
4691
+ /**
4692
+ * Tạo biểu mẫu mới gắn với Official Account (POST https://ads.zalo.me/api/form/create).
4693
+ * Hỗ trợ truyền thẳng Typed Payload (tự động validate qua ZaloFormsValidator và mã hóa urlencoded)
4694
+ * hoặc object dạng `{ data: JSON.stringify(...) }`.
4695
+ */
4696
+ createForm(request: ZaloAdsCreateFormRequest | ZaloCreateFormCleanPayload | Record<string, unknown>, options?: RequestOptions): Promise<ZaloAdsCreateFormResponse>;
4697
+ /**
4698
+ * Lấy danh sách biểu mẫu Zalo Ads theo Official Account (GET https://ads.zalo.me/api/form/getByOaId).
4699
+ */
4700
+ listFormsByOfficialAccount(request: ZaloAdsListFormsByOfficialAccountRequest, options?: RequestOptions): Promise<ZaloAdsListFormsByOfficialAccountResponse>;
4298
4701
  getAuthSession(options?: RequestOptions): Promise<ZaloFormsGetAuthSessionResponse>;
4299
4702
  disableFormLeadNotification(request: ZaloFormsDisableFormLeadNotificationRequest, options?: RequestOptions): Promise<ZaloFormsDisableFormLeadNotificationResponse>;
4300
4703
  enableFormLeadNotification(request: ZaloFormsEnableFormLeadNotificationRequest, options?: RequestOptions): Promise<ZaloFormsEnableFormLeadNotificationResponse>;
@@ -4306,6 +4709,10 @@ declare class ZaloFormsService {
4306
4709
  listSimpleFormsByOfficialAccount(request: ZaloFormsListSimpleFormsByOfficialAccountRequest, options?: RequestOptions): Promise<ZaloFormsListSimpleFormsByOfficialAccountResponse>;
4307
4710
  listScenariosByOfficialAccount(request: ZaloFormsListScenariosByOfficialAccountRequest, options?: RequestOptions): Promise<ZaloFormsListScenariosByOfficialAccountResponse>;
4308
4711
  updateFormLeadNotificationInterval(request: ZaloFormsUpdateFormLeadNotificationIntervalRequest, options?: RequestOptions): Promise<ZaloFormsUpdateFormLeadNotificationIntervalResponse>;
4712
+ /**
4713
+ * Ghi nhận sự kiện tương tác trên Lead Center (GET /client/manage/api/manageForm/tracking).
4714
+ */
4715
+ trackManageFormEvent(request: ZaloFormsTrackManageFormEventRequest, options?: RequestOptions): Promise<ZaloFormsTrackManageFormEventResponse>;
4309
4716
  }
4310
4717
 
4311
4718
  declare class ZaloInstantPagesService {
@@ -4829,50 +5236,202 @@ declare class ZaloAdsIntegrationManager {
4829
5236
  }
4830
5237
 
4831
5238
  /**
4832
- * Bộ kiểm tra tính hợp lệ dữ liệu (Request Validators) cho 13 API Zalo Instant Pages.
4833
- * Được thiết kế để xuất ra ngoài cho backend (NestJS/Express/Fastify), middleware hoặc AI Agent
4834
- * sử dụng để xác thực dữ liệu đầu vào trước khi lưu trữ hoặc gọi API Zalo Ads.
5239
+ * Bộ kiểm tra tính hợp lệ dữ liệu (Request Validators) cho các API Zalo Message Flows:
5240
+ * 1. listFlowsByOfficialAccount (GET /api/flow/getByOaId)
5241
+ * 2. createFlow (POST /api/flow/create)
5242
+ * 3. updateFlow (POST /api/flow/update)
4835
5243
  *
4836
- * Lưu ý: Các hàm validate này là độc lập (pure functions), KHÔNG bị nhúng cứng bên trong
4837
- * các hàm gọi HTTP của ZaloInstantPagesService, giúp giữ cho Service gọn gàng và unopinionated.
5244
+ * Được thiết kế theo dạng hàm thuần (pure functions) độc lập, xuất ra ngoài để backend
5245
+ * (NestJS/Express/Fastify), middleware hoặc AI Agent sử dụng xác thực dữ liệu trước khi gọi Zalo Ads.
4838
5246
  */
4839
5247
 
4840
- /** Kết quả xác thực dữ liệu đầu vào của API. */
4841
- interface ValidationResult<T = unknown> {
4842
- /** True nếu dữ liệu hợp lệ và thỏa mãn quy chuẩn; False nếu có ít nhất 1 lỗi. */
5248
+ declare function validateListFlowsByOfficialAccountRequest(input: unknown): ValidationResult<ZaloAdsListFlowsByOfficialAccountRequest>;
5249
+ declare function validateCreateFlowRequest(input: unknown): ValidationResult<ZaloAdsCreateFlowRequest>;
5250
+ declare function validateUpdateFlowRequest(input: unknown): ValidationResult<ZaloAdsUpdateFlowRequest>;
5251
+ /**
5252
+ * Đối tượng gom nhóm các hàm kiểm tra tính hợp lệ dữ liệu cho Message Flows APIs.
5253
+ */
5254
+ declare const ZaloFlowsValidator: {
5255
+ readonly listFlowsByOfficialAccount: typeof validateListFlowsByOfficialAccountRequest;
5256
+ readonly createFlow: typeof validateCreateFlowRequest;
5257
+ readonly updateFlow: typeof validateUpdateFlowRequest;
5258
+ };
5259
+
5260
+ /**
5261
+ * Bộ kiểm tra tính hợp lệ dữ liệu (Request Validators) cho các API Targeting & Custom Audiences trên Zalo Ads:
5262
+ * 1. createSavedAudience (POST /api/ad/audience với caType = 1)
5263
+ * 2. createPhoneAudience (POST /api/ad/audience với caType = 3)
5264
+ * 3. createLookalikeAudience (POST /api/ad/audience với caType = 6)
5265
+ * 4. createFormEventAudience (POST /api/ad/audience với caType = 12)
5266
+ * 5. createMessageOaEventAudience (POST /api/ad/audience với caType = 11)
5267
+ * 6. createMessagePersonalEventAudience (POST /api/ad/audience với caType = 14)
5268
+ * 7. createFormLeadAudience (POST /api/ad/audience với caType = 10)
5269
+ * 8. createMessageOaLeadAudience (POST /api/ad/audience với caType = 13)
5270
+ * 9. createCommerceFormAudience (POST /api/ad/audience với caType = 15)
5271
+ * 10. createLeadSignalAudience (POST /api/ad/audience với caType = 16)
5272
+ * 11. estimateAudience (POST /api/ad/estimateAudience)
5273
+ * 12. deleteCustomAudience (DELETE /api/ad/audience/{customAudienceId})
5274
+ */
5275
+
5276
+ /**
5277
+ * 1. Kiểm tra request Tạo Nhóm đối tượng đã lưu (Saved Audience - caType = 1)
5278
+ */
5279
+ declare function validateCreateSavedAudienceRequest(input: unknown): ValidationResult<{
5280
+ name: string;
5281
+ caType: 1;
5282
+ targeting: string;
5283
+ }>;
5284
+ /**
5285
+ * 2. Kiểm tra request Tạo Nhóm đối tượng từ danh sách Số điện thoại (caType = 3)
5286
+ */
5287
+ declare function validateCreatePhoneAudienceRequest(input: unknown): ValidationResult<{
5288
+ name: string;
5289
+ caType: 3;
5290
+ targeting: string;
5291
+ }>;
5292
+ /**
5293
+ * 3. Kiểm tra request Tạo Nhóm đối tượng tương tự Lookalike (caType = 6)
5294
+ */
5295
+ declare function validateCreateLookalikeAudienceRequest(input: unknown): ValidationResult<{
5296
+ name: string;
5297
+ caType: 6;
5298
+ targeting: string;
5299
+ }>;
5300
+ /**
5301
+ * 4. Kiểm tra request Tạo Nhóm đối tượng sự kiện Form (caType = 12)
5302
+ */
5303
+ declare function validateCreateFormEventAudienceRequest(input: unknown): ValidationResult<{
5304
+ name: string;
5305
+ caType: 12;
5306
+ targeting: string;
5307
+ }>;
5308
+ /**
5309
+ * 5. Kiểm tra request Tạo Nhóm đối tượng sự kiện Tin nhắn OA (caType = 11)
5310
+ */
5311
+ declare function validateCreateMessageOaEventAudienceRequest(input: unknown): ValidationResult<{
5312
+ name: string;
5313
+ caType: 11;
5314
+ targeting: string;
5315
+ }>;
5316
+ /**
5317
+ * 6. Kiểm tra request Tạo Nhóm đối tượng sự kiện Tin nhắn Cá nhân (caType = 14)
5318
+ */
5319
+ declare function validateCreateMessagePersonalEventAudienceRequest(input: unknown): ValidationResult<{
5320
+ name: string;
5321
+ caType: 14;
5322
+ targeting: string;
5323
+ }>;
5324
+ /**
5325
+ * 7. Kiểm tra request Ước tính quy mô đối tượng (POST /api/ad/estimateAudience)
5326
+ */
5327
+ declare function validateEstimateAudienceRequest(input: unknown): ValidationResult<{
5328
+ gender: number;
5329
+ ageRanges: number[];
5330
+ platforms: number[];
5331
+ locations: string;
5332
+ provinces: number[];
5333
+ wardsTargeting: string;
5334
+ priceType: number;
5335
+ number: string;
5336
+ }>;
5337
+ /**
5338
+ * Gom nhóm toàn bộ Validators cho Targeting & Audiences APIs.
5339
+ */
5340
+ declare const ZaloAudiencesValidator: {
5341
+ readonly createSavedAudience: typeof validateCreateSavedAudienceRequest;
5342
+ readonly createPhoneAudience: typeof validateCreatePhoneAudienceRequest;
5343
+ readonly createLookalikeAudience: typeof validateCreateLookalikeAudienceRequest;
5344
+ readonly createFormEventAudience: typeof validateCreateFormEventAudienceRequest;
5345
+ readonly createMessageOaEventAudience: typeof validateCreateMessageOaEventAudienceRequest;
5346
+ readonly createMessagePersonalEventAudience: typeof validateCreateMessagePersonalEventAudienceRequest;
5347
+ readonly estimateAudience: typeof validateEstimateAudienceRequest;
5348
+ };
5349
+
5350
+ /**
5351
+ * 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:
5352
+ * 1. Khởi tạo 8 loại chiến dịch (Website, Form, Message, OA, Video, Commerce, Article, Display)
5353
+ * 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)
5354
+ * 3. Đổi tên, thay đổi trạng thái, xóa chiến dịch và xóa quảng cáo
5355
+ *
5356
+ * Tích hợp toàn bộ quy chuẩn giao diện (UI reverse engineering), giới hạn độ dài ký tự,
5357
+ * 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.
5358
+ */
5359
+
5360
+ interface CampaignValidationResult<T = unknown> {
4843
5361
  isValid: boolean;
4844
- /** Danh sách các thông báo lỗi chi tiết. Rỗng nếu isValid = true. */
4845
5362
  errors: string[];
4846
- /** Dữ liệu sau khi làm sạch và ép kiểu chuẩn (nếu hợp lệ). */
5363
+ warnings: string[];
4847
5364
  data?: T;
4848
5365
  }
4849
- declare function validateCloneInstantPageRequest(input: unknown): ValidationResult<ZaloInstantPagesCloneInstantPageRequest>;
4850
- declare function validateGetInstantPageDetailRequest(input: unknown): ValidationResult<ZaloInstantPagesGetInstantPageDetailRequest>;
4851
- declare function validateGetInstantPageSharedUserRequest(input: unknown): ValidationResult<ZaloInstantPagesGetInstantPageSharedUserRequest>;
4852
- declare function validateListInstantPageEditHistoryRequest(input: unknown): ValidationResult<ZaloInstantPagesListInstantPageEditHistoryRequest>;
4853
- declare function validateListInstantPageFormRecordsRequest(input: unknown): ValidationResult<ZaloInstantPagesListInstantPageFormRecordsRequest>;
4854
- declare function validateListInstantPageSharesRequest(input: unknown): ValidationResult<ZaloInstantPagesListInstantPageSharesRequest>;
4855
- declare function validateListInstantPageUsersRequest(input?: unknown): ValidationResult<ZaloInstantPagesListInstantPageUsersRequest>;
4856
- declare function validateListMiniPageTemplatesRequest(input?: unknown): ValidationResult<ZaloInstantPagesListMiniPageTemplatesRequest>;
4857
- declare function validateSearchInstantPagesRequest(input?: unknown): ValidationResult<ZaloInstantPagesSearchInstantPagesRequest>;
4858
- declare function validateUpdateInstantPageRequest(input: unknown): ValidationResult<ZaloInstantPagesUpdateInstantPageRequest>;
4859
- declare function validateListInstantPageLeadsRequest(input: unknown): ValidationResult<ZaloInstantPagesListInstantPageLeadsRequest>;
4860
- declare function validateListOfficialAccountsRequest(input?: unknown): ValidationResult<ZaloInstantPagesListOfficialAccountsRequest>;
4861
- declare function validateUpsertInstantPageFormRequest(input: unknown): ValidationResult<ZaloInstantPagesUpsertInstantPageFormRequest>;
4862
- declare const ZaloInstantPagesValidator: {
4863
- validateCloneInstantPage: typeof validateCloneInstantPageRequest;
4864
- validateGetInstantPageDetail: typeof validateGetInstantPageDetailRequest;
4865
- validateGetInstantPageSharedUser: typeof validateGetInstantPageSharedUserRequest;
4866
- validateListInstantPageEditHistory: typeof validateListInstantPageEditHistoryRequest;
4867
- validateListInstantPageFormRecords: typeof validateListInstantPageFormRecordsRequest;
4868
- validateListInstantPageShares: typeof validateListInstantPageSharesRequest;
4869
- validateListInstantPageUsers: typeof validateListInstantPageUsersRequest;
4870
- validateListMiniPageTemplates: typeof validateListMiniPageTemplatesRequest;
4871
- validateSearchInstantPages: typeof validateSearchInstantPagesRequest;
4872
- validateUpdateInstantPage: typeof validateUpdateInstantPageRequest;
4873
- validateListInstantPageLeads: typeof validateListInstantPageLeadsRequest;
4874
- validateListOfficialAccounts: typeof validateListOfficialAccountsRequest;
4875
- validateUpsertInstantPageForm: typeof validateUpsertInstantPageFormRequest;
5366
+ interface ValidateCampaignOptions {
5367
+ strictMode?: boolean;
5368
+ }
5369
+ interface ValidateAdOptions {
5370
+ strictMode?: boolean;
5371
+ }
5372
+ /** Danh sách mã CampaignType hợp lệ trên Zalo Ads */
5373
+ declare const VALID_CAMPAIGN_TYPES: {
5374
+ readonly WEBSITE: 6;
5375
+ readonly FORM: 17;
5376
+ readonly MESSAGE: 18;
5377
+ readonly OA: 3;
5378
+ readonly VIDEO: 14;
5379
+ readonly COMMERCE: 22;
5380
+ readonly ARTICLE: 4;
5381
+ readonly DISPLAY: 20;
5382
+ };
5383
+ /** Danh sách mã AdType hợp lệ thực tế do máy chủ Zalo Ads xử lý */
5384
+ declare const VALID_AD_TYPES: {
5385
+ readonly WEBSITE: 5;
5386
+ readonly FORM: 18;
5387
+ readonly MESSAGE: 30;
5388
+ readonly OA: 2;
5389
+ readonly VIDEO: 11;
5390
+ readonly COMMERCE: 28;
5391
+ readonly ARTICLE: 3;
5392
+ readonly DISPLAY: 21;
5393
+ };
5394
+ /** Danh sách CTA hợp lệ cho từng loại Ad */
5395
+ declare const ALLOWED_CTAS_PER_AD_TYPE: Record<number, number[]>;
5396
+ /**
5397
+ * Kiểm tra tính hợp lệ payload tạo mới Chiến dịch Zalo Ads (POST /zaapi/addNewCamp).
5398
+ */
5399
+ declare function validateCreateCampaignPayload(payload: Partial<ZaloAdsCampaignCreatePayloadDto>, options?: ValidateCampaignOptions): CampaignValidationResult;
5400
+ /**
5401
+ * Kiểm tra tính hợp lệ payload Cập nhật Mẫu Quảng cáo (POST /zaapi/UpdateAd).
5402
+ */
5403
+ declare function validateUpdateAdPayload(payload: Partial<ZaloAdsAdUpdatePayloadDto>, options?: ValidateAdOptions): CampaignValidationResult;
5404
+ /**
5405
+ * Kiểm tra tính hợp lệ của tham số đổi tên chiến dịch (POST /api/campaign/change-name).
5406
+ */
5407
+ declare function validateRenameCampaignParams(params: {
5408
+ campid?: number;
5409
+ campaignId?: number;
5410
+ newname?: string;
5411
+ newName?: string;
5412
+ name?: string;
5413
+ }): CampaignValidationResult;
5414
+ /**
5415
+ * 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).
5416
+ */
5417
+ declare function validateChangeCampaignStatusParams(params: {
5418
+ campaignId: number;
5419
+ status: number;
5420
+ isDraft?: boolean;
5421
+ }): CampaignValidationResult;
5422
+ /**
5423
+ * Kiểm tra tính hợp lệ của tham số nhân bản quảng cáo (POST /zaapi/DuplicateAd).
5424
+ */
5425
+ declare function validateDuplicateAdParams(params: {
5426
+ adid?: number;
5427
+ adId?: number;
5428
+ }): CampaignValidationResult;
5429
+ declare const ZaloCampaignsValidator: {
5430
+ createCampaign: typeof validateCreateCampaignPayload;
5431
+ updateAd: typeof validateUpdateAdPayload;
5432
+ renameCampaign: typeof validateRenameCampaignParams;
5433
+ changeStatus: typeof validateChangeCampaignStatusParams;
5434
+ duplicateAd: typeof validateDuplicateAdParams;
4876
5435
  };
4877
5436
 
4878
- 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 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 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 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, type ZaloAuthDomain, ZaloAuthManager, ZaloAutomatedRulesService, ZaloCampaignsService, type ZaloChatWidgetGetChatWidgetLoginConfigRequest, type ZaloChatWidgetGetChatWidgetLoginConfigResponse, type ZaloChatWidgetGetLoginConfigRequest, type ZaloChatWidgetGetLoginConfigResponse, ZaloChatWidgetService, ZaloConversionsService, type ZaloDomainSession, ZaloFlowsService, 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 ZaloFormsUpdateFormLeadNotificationIntervalRequest, type ZaloFormsUpdateFormLeadNotificationIntervalResponse, 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, validateGetInstantPageDetailRequest, validateGetInstantPageSharedUserRequest, validateListInstantPageEditHistoryRequest, validateListInstantPageFormRecordsRequest, validateListInstantPageLeadsRequest, validateListInstantPageSharesRequest, validateListInstantPageUsersRequest, validateListMiniPageTemplatesRequest, validateListOfficialAccountsRequest, validateSearchInstantPagesRequest, validateUpdateInstantPageRequest, validateUpsertInstantPageFormRequest };
5437
+ export { ALLOWED_CTAS_PER_AD_TYPE, ALL_ZALO_ADS_DOMAINS, type BodyType, type CampaignValidationResult, 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, ZaloAccountService, type ZaloAdsAccessorItemDto, type ZaloAdsAccountAgencyInfoDto, ZaloAdsIntegrationManager as ZaloAdsAccountPool, ZaloAdsActionType, type ZaloAdsAdAppInfoSettingsDto, type ZaloAdsAdImageSettingsDto, type ZaloAdsAdInfoSettingsDto, type ZaloAdsAdMultiImageItemDto, type ZaloAdsAdMutationResultDto, type ZaloAdsAdPriceSettingsDto, type ZaloAdsAdReportItemDto, type ZaloAdsAdSettingsDto, type ZaloAdsAdTargetingSettingsDto, type ZaloAdsAdUpdatePayloadDto, type ZaloAdsAdZVideoSettingsDto, ZaloAdsAgeRangeId, type ZaloAdsAutomatedRuleActionDto, type ZaloAdsAutomatedRuleConditionDto, type ZaloAdsAutomatedRuleScheduleDto, type ZaloAdsCampaignCreatePayloadDto, type ZaloAdsCampaignDetailExtendDto, 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, ZaloAdsDeliveryType, 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 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, ZaloAdsOsId, 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, ZaloCampaignsValidator, 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, validateChangeCampaignStatusParams, validateCloneInstantPageRequest, validateCreateCampaignPayload, validateCreateFlowRequest, validateCreateFormEventAudienceRequest, validateCreateFormRequest, 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 };