@redonvn/zalo-ads-sdk 0.2.2 → 0.2.4

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
@@ -439,7 +439,7 @@ declare class ZaloSdkError extends Error {
439
439
  readonly status: number;
440
440
  readonly operationId: string;
441
441
  readonly responseBody: unknown;
442
- constructor(message: string, status: number, operationId: string, responseBody: unknown);
442
+ constructor(message: string, status?: number, operationId?: string, responseBody?: unknown);
443
443
  }
444
444
  interface FileDownloadResponse {
445
445
  file: Blob;
@@ -447,6 +447,62 @@ interface FileDownloadResponse {
447
447
  contentType: string | null;
448
448
  }
449
449
 
450
+ /**
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
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
+ */
457
+ type ZaloInstantPageStatus = 0 | 1 | 2 | 3;
458
+ /**
459
+ * Cờ trạng thái hoạt động của Instant Page:
460
+ * - 0: Tắt (tạm khóa, không cho người dùng truy cập)
461
+ * - 1: Bật (cho phép xem trang qua https://page.zalo.me/p/{publicId})
462
+ * Bắt buộc kiểu số nguyên 0 | 1, không truyền boolean true/false.
463
+ */
464
+ type ZaloInstantPageActive = 0 | 1;
465
+ /**
466
+ * Danh mục mã định danh các loại khối giao diện (Block Types) trong Instant Page Canvas (trường draft và content):
467
+ */
468
+ declare enum ZaloInstantPageBlockType {
469
+ /** Slide ảnh/video banner trình chiếu sản phẩm */
470
+ CAROUSEL_SLIDER = 1,
471
+ /** Đồng hồ đếm ngược Flash sale / thời gian khuyến mãi */
472
+ COUNTDOWN = 2,
473
+ /** Văn bản mô tả giàu định dạng (HTML / Quill Delta ops) */
474
+ RICH_TEXT = 4,
475
+ /** Hình ảnh đơn / banner minh họa (Hero image) */
476
+ HERO_IMAGE = 6,
477
+ /** Form field: Ô nhập họ và tên khách hàng */
478
+ FORM_NAME = 7,
479
+ /** Nút CTA Đặt hàng ngay (cố định chân trang hoặc mở form popup) */
480
+ ORDER_CTA_BUTTON = 8,
481
+ /** Form field: Ô nhập số điện thoại */
482
+ FORM_PHONE = 9,
483
+ /** Form field: Ô nhập địa chỉ giao hàng */
484
+ FORM_ADDRESS = 10,
485
+ /** Chân trang thương hiệu (Hotline, Email, Website, Địa chỉ) */
486
+ FOOTER = 14,
487
+ /** Form field: Ô chọn số lượng sản phẩm mua */
488
+ FORM_QUANTITY = 16,
489
+ /** Phân loại / Biến thể sản phẩm (Màu sắc, Size, Combo) */
490
+ PRODUCT_VARIANT = 18,
491
+ /** Tiêu đề sản phẩm & Giá bán (name, rawPrice, price) */
492
+ PRODUCT_TITLE_PRICE = 19,
493
+ /** Câu hỏi gợi ý nhanh (FAQ quick replies) */
494
+ QUICK_QUESTIONS = 20,
495
+ /** Nút CTA nhắn tin trực tiếp đến Zalo Official Account */
496
+ MESSAGE_CTA_BUTTON = 21,
497
+ /** Tiêu đề phân đoạn (Section Heading) */
498
+ SECTION_HEADING = 22,
499
+ /** Nút Hotline gọi điện thoại tư vấn viên */
500
+ CALL_HOTLINE_BUTTON = 23,
501
+ /** Bảng thông số / Ưu đãi 2 cột (Key-Value rows) */
502
+ KEY_VALUE_TABLE = 25,
503
+ /** Điều khoản đồng thuận thu thập dữ liệu cá nhân theo NĐ 13 */
504
+ CONSENT_NOTICE = 27
505
+ }
450
506
  /** Sao chép một Instant Page hiện có và trả về bản Instant Page mới cùng toàn bộ draft được sao chép. Đây là mutation tool thuộc lane zalo-ads-content; dùng khi cần tạo bản làm việc độc lập trước khi chỉnh sửa nội dung hoặc trạng thái. Bản sao có id và publicId mới, không ghi đè Instant Page nguồn. */
451
507
  type ZaloInstantPagesCloneInstantPageRequest = {
452
508
  /** ID Instant Page nguồn cần sao chép. */
@@ -465,12 +521,12 @@ type ZaloInstantPagesCloneInstantPageResponse = {
465
521
  oaId: string;
466
522
  /** Chuỗi JSON cấu hình bản nháp đã được sao chép, gồm data các block/section, renderList và các thiết lập layout. Đây chưa tự đại diện cho nội dung public đã phát hành. */
467
523
  draft: string;
468
- /** Cờ bật/tắt của Instant Page theo quy ước API. */
469
- active: number;
524
+ /** Cờ bật/tắt của Instant Page: 0 = Tắt, 1 = Bật. */
525
+ active: ZaloInstantPageActive;
470
526
  /** ID form liên kết; có thể rỗng. */
471
527
  formId: string;
472
- /** Mã trạng thái Instant Page. */
473
- status: number;
528
+ /** Mã trạng thái Instant Page: 0 = Bản sao mới tạo, 1 = Bản nháp, 2 = Đã xuất bản, 3 = Lưu trữ. */
529
+ status: ZaloInstantPageStatus | number;
474
530
  /** ID người dùng sở hữu Instant Page. */
475
531
  userId: number;
476
532
  /** Nội dung đã phát hành/được lưu ngoài draft; có thể rỗng. */
@@ -508,12 +564,12 @@ type ZaloInstantPagesGetInstantPageDetailResponse = {
508
564
  oaId: string;
509
565
  /** Bản nháp cấu hình Instant Page chưa được phát hành hoặc chưa áp dụng làm nội dung chính; dạng chuỗi JSON/serialized payload. Dùng để so sánh hoặc tiếp tục chỉnh sửa, không tự xem là bản public. */
510
566
  draft: string;
511
- /** Trạng thái kích hoạt. */
512
- active: number;
567
+ /** Trạng thái kích hoạt: 0 = Tắt, 1 = Bật. */
568
+ active: ZaloInstantPageActive;
513
569
  /** ID form liên kết, khi có. */
514
570
  formId: string;
515
- /** Trạng thái nghiệp vụ/phát hành. */
516
- status: number;
571
+ /** Trạng thái nghiệp vụ: 0 = Bản sao mới tạo, 1 = Bản nháp, 2 = Đã xuất bản, 3 = Lưu trữ. */
572
+ status: ZaloInstantPageStatus | number;
517
573
  /** ID người dùng sở hữu page. */
518
574
  userId: number;
519
575
  /** Nội dung/cấu hình Instant Page đang được lưu, dạng chuỗi JSON hoặc serialized payload. */
@@ -606,7 +662,7 @@ type ZaloInstantPagesFormRecordItem = {
606
662
  value: string;
607
663
  }>;
608
664
  };
609
- type ZaloInstantPagesListInstantPageFormRecordsResponse = {
665
+ type ZaloInstantPagesListInstantPageFormRecordsResponse = Blob | {
610
666
  data: {
611
667
  items: Array<ZaloInstantPagesFormRecordItem>;
612
668
  total: number;
@@ -691,14 +747,14 @@ type ZaloInstantPagesSearchInstantPagesResponse = {
691
747
  oaId: string;
692
748
  /** Tên hiển thị chủ sở hữu. */
693
749
  owner: string;
694
- /** Trạng thái bật/tắt; dùng API cập nhật với active=0 để tắt và active=1 để bật. */
695
- active: 0 | 1;
750
+ /** Trạng thái bật/tắt: 0 = Tắt, 1 = Bật. */
751
+ active: ZaloInstantPageActive;
696
752
  /** ID form liên kết; có thể rỗng. */
697
753
  formId: string;
698
754
  /** Tên các người dùng được chia sẻ quyền. */
699
755
  shares: Array<string>;
700
- /** Mã trạng thái kỹ thuật/lifecycle của Instant Page. */
701
- status: number;
756
+ /** Mã trạng thái: 0 = Bản sao mới tạo, 1 = Bản nháp, 2 = Đã xuất bản, 3 = Lưu trữ. */
757
+ status: ZaloInstantPageStatus | number;
702
758
  /** Unix timestamp theo giây lúc tạo. */
703
759
  created: number;
704
760
  /** Tên hiển thị người tạo. */
@@ -707,9 +763,9 @@ type ZaloInstantPagesSearchInstantPagesResponse = {
707
763
  ownerId: number;
708
764
  /** Unix timestamp theo giây lúc cập nhật. */
709
765
  modified: number;
710
- /** Mã công khai của Instant Page. */
766
+ /** Mã công khai 12 ký tự của Instant Page (dùng trên https://page.zalo.me/p/{publicId}). */
711
767
  publicId: string;
712
- /** Unix timestamp theo giây lúc xuất bản. */
768
+ /** Unix timestamp theo giây lúc xuất bản (0 nếu chưa xuất bản). */
713
769
  published: number;
714
770
  /** Quyền trực tiếp trên Instant Page khi API trả về. */
715
771
  permission?: number;
@@ -721,7 +777,15 @@ type ZaloInstantPagesSearchInstantPagesResponse = {
721
777
  }>;
722
778
  [key: string]: unknown;
723
779
  };
724
- /** Cập nhật một phần tên, cờ bật/tắt, OA liên kết, trạng thái, content đã lưu hoặc bản nháp Instant Page. Đây là mutation tool thuộc lane zalo-ads-content; dùng khi đã xác nhận đúng page và đúng trường cần thay đổi. Với active, 0 là bật và 1 là tắt; content là cấu hình nội dung theo block, còn draft là cấu hình chưa phát hành. Thao tác này lưu thay đổi, không thay thế thao tác xuất bản riêng trên giao diện. */
780
+ /**
781
+ * Cập nhật thông tin, cấu hình bản nháp (draft), nội dung chính thức (content) hoặc bật/tắt trạng thái (active) của Instant Page theo ID.
782
+ *
783
+ * Hỗ trợ 4 loại thao tác nghiệp vụ:
784
+ * - **Loại 1 (Bật/Tắt nhanh)**: `{ id, active: 0 | 1 }` (0: Tắt, 1: Bật)
785
+ * - **Loại 2 (Đổi tên / Đổi OA)**: `{ id, name?: string, oaId?: string }`
786
+ * - **Loại 3 (Lưu bản nháp - Save Draft)**: `{ id, name?: string, status: 1, draft: string }`
787
+ * - **Loại 4 (Xuất bản - Publish Live)**: `{ id, name?: string, status: 2, draft: string, content: string }`
788
+ */
725
789
  type ZaloInstantPagesUpdateInstantPageRequest = {
726
790
  /** ID Instant Page cần cập nhật. */
727
791
  instantPageId: number;
@@ -729,15 +793,26 @@ type ZaloInstantPagesUpdateInstantPageRequest = {
729
793
  id: number;
730
794
  /** Tên Instant Page mới; giao diện giới hạn tối đa 40 ký tự. Chỉ gửi khi cần đổi tên. */
731
795
  name?: string;
732
- /** ID Official Account liên kết; chỉ gửi khi cần thay đổi hoặc lưu lại liên kết OA. */
796
+ /** ID Official Account liên kết; truyền chuỗi rỗng "" nếu trang chưa liên kết OA hoặc không dùng OA. */
733
797
  oaId?: string;
734
- /** Chuỗi JSON bản nháp cấu hình Instant Page; chỉ gửi khi cập nhật nội dung nháp. Draft không tự đại diện cho bản public đã phát hành và khác với content. */
798
+ /**
799
+ * Chuỗi JSON bản nháp cấu hình Instant Page đang biên tập trên Canvas Editor (chưa xuất bản).
800
+ * Gồm renderList (mảng ID thứ tự hiển thị), data (map ID -> block object), freezedTop, freezedBottom, version.
801
+ * Danh mục block types:
802
+ * 1: CAROUSEL_SLIDER | 2: COUNTDOWN | 4: RICH_TEXT | 6: HERO_IMAGE | 7: FORM_NAME |
803
+ * 8: ORDER_CTA_BUTTON | 9: FORM_PHONE | 10: FORM_ADDRESS | 14: FOOTER | 16: FORM_QUANTITY |
804
+ * 18: PRODUCT_VARIANT | 19: PRODUCT_TITLE_PRICE | 20: QUICK_QUESTIONS | 21: MESSAGE_CTA_BUTTON |
805
+ * 22: SECTION_HEADING | 23: CALL_HOTLINE_BUTTON | 25: KEY_VALUE_TABLE | 27: CONSENT_NOTICE
806
+ */
735
807
  draft?: string;
736
- /** Thao tác bật/tắt Instant Page: 0 là tắt, 1 là bật. */
737
- active?: 0 | 1;
738
- /** Mã trạng thái kỹ thuật của Instant Page. Không suy diễn rằng trường này tự xuất bản trang: giao diện có nút Xuất bản riêng và thao tác Lưu chỉ lưu thay đổi. */
739
- status?: number;
740
- /** Chuỗi JSON cấu hình nội dung được lưu/cập nhật của Instant Page. Gồm renderList (thứ tự ID block), data (object map ID block), freezedTop/freezedBottom và version. Block quan sát: type 1 Carousel (1–10 ảnh/video, kéo-thả thứ tự, rich text Quill màu và cỡ 14/18/24px), type 25 bảng rows left/right, type 20 danh sách câu hỏi/gợi ý, type 21 tin nhắn mặc định/CTA tối đa 40 ký tự. Chỉ gửi khi cập nhật nội dung trang. */
808
+ /** Thao tác bật/tắt Instant Page: 0 là tắt, 1 là bật. BẮT BUỘC là số nguyên 0 | 1, không truyền kiểu boolean. */
809
+ active?: ZaloInstantPageActive;
810
+ /** Mã trạng thái của Instant Page: 1 = Lưu bản nháp (Draft), 2 = Xuất bản chính thức (Published). */
811
+ status?: ZaloInstantPageStatus | number;
812
+ /**
813
+ * Chuỗi JSON cấu hình nội dung chính thức đang chạy ở Production của Instant Page (sau khi xuất bản).
814
+ * Chỉ gửi khi xuất bản chính thức (status = 2). Cấu trúc tương tự draft.
815
+ */
741
816
  content?: string;
742
817
  };
743
818
  type ZaloInstantPagesUpdateInstantPageResponse = {
@@ -821,10 +896,10 @@ type ZaloInstantPagesUpsertInstantPageFormRequest = {
821
896
  /** Mô tả phụ của câu hỏi (có thể để chuỗi rỗng). */
822
897
  description: string;
823
898
  }>;
824
- /** Sử dụng cấu hình điều khoản đồng ý tùy chỉnh hay mặc định. */
825
- useCustomConsent: boolean;
826
- /** Cấu hình thông tin pháp lý và phạm vi thu thập dữ liệu cá nhân của biểu mẫu. */
827
- consentConfig: {
899
+ /** Sử dụng cấu hình điều khoản đồng ý tùy chỉnh hay mặc định (mặc định: false). */
900
+ useCustomConsent?: boolean;
901
+ /** Cấu hình thông tin pháp lý và phạm vi thu thập dữ liệu cá nhân của biểu mẫu (bắt buộc khi useCustomConsent = true). */
902
+ consentConfig?: {
828
903
  /** Địa chỉ liên hệ của bên kiểm soát hoặc sở hữu dữ liệu. */
829
904
  address: string;
830
905
  /** Tên cá nhân hoặc đơn vị sở hữu dữ liệu. */
@@ -2026,12 +2101,21 @@ interface ZaloAdsUniqueUserReportDataDto {
2026
2101
  frequency?: number;
2027
2102
  byDate?: Record<string, number>;
2028
2103
  }
2029
- /** Lấy thống kê người dùng duy nhất tiếp cận hoặc tương tác với quảng cáo. Đây là entry tool thuộc lane zalo-ads-reporting; dùng khi đánh giá độ phủ thay vì tổng số lượt hiển thị. */
2030
- type ZaloAdsGetReportapiV2UniqueUserRequest = Record<string, never>;
2104
+ /** Lấy thống kê người dùng duy nhất tiếp cận hoặc tương tác với quảng cáo / chiến dịch (GET https://ads.zalo.me/reportapi/v2/unique-user). */
2105
+ type ZaloAdsGetReportapiV2UniqueUserRequest = {
2106
+ start: number;
2107
+ end: number;
2108
+ campaignId?: number | string;
2109
+ adId?: number | string;
2110
+ };
2031
2111
  type ZaloAdsGetReportapiV2UniqueUserResponse = {
2032
2112
  code: number;
2033
2113
  msg?: string;
2034
- data: ZaloAdsUniqueUserReportDataDto;
2114
+ data: number;
2115
+ extend?: Array<{
2116
+ adId: number;
2117
+ count: number;
2118
+ }>;
2035
2119
  };
2036
2120
  /** Lấy báo cáo hiệu quả campaign theo phiên bản dữ liệu báo cáo v3. Đây là entry tool thuộc lane zalo-ads-reporting; dùng khi cần tổng hợp hoặc so sánh chỉ số nhiều chiến dịch trong một khoảng thời gian. */
2037
2121
  type ZaloAdsGetReportapiV3CampaignsRequest = {
@@ -2053,15 +2137,27 @@ type ZaloAdsGetReportapiV3CampaignsResponse = {
2053
2137
  code: number;
2054
2138
  data: Array<ZaloAdsCampaignReportItemDto>;
2055
2139
  };
2056
- /** Lấy báo cáo hiệu quả của campaign theo dữ liệu vận hành Zalo Ads. Đây là detail tool thuộc lane zalo-ads-reporting; dùng khi cần kiểm tra chỉ số và trạng thái của một chiến dịch. */
2140
+ interface ZaloAdsZaapiCampaignReportItemDto {
2141
+ AdId: number;
2142
+ AdName: string;
2143
+ CampaignId: number;
2144
+ CampaignName: string;
2145
+ CampaignType: number;
2146
+ Date: number;
2147
+ Cost: number;
2148
+ Quantity: number;
2149
+ }
2150
+ /** Lấy báo cáo hiệu quả của campaign theo dữ liệu vận hành Zalo Ads (GET https://ads.zalo.me/zaapi/Campaign/reportCampaign). */
2057
2151
  type ZaloAdsGetZaapiCampaignReportcampaignRequest = {
2058
- campaignId?: number | string;
2152
+ campaignId: number | string;
2153
+ from: number;
2154
+ to: number;
2059
2155
  campId?: number | string;
2060
2156
  };
2061
2157
  type ZaloAdsGetZaapiCampaignReportcampaignResponse = {
2062
2158
  code: number;
2063
2159
  msg?: string;
2064
- data?: ZaloAdsCampaignReportItemDto;
2160
+ data?: Array<ZaloAdsZaapiCampaignReportItemDto>;
2065
2161
  };
2066
2162
  /** Kiểm tra một chiến dịch có chứa nhiều quảng cáo hay không. Đây là helper tool thuộc lane zalo-ads-campaign; dùng trước khi chọn luồng xem hoặc cập nhật quảng cáo trong campaign. */
2067
2163
  type ZaloAdsGetZaapiCheckcamphasmanyadsRequest = {
@@ -2899,12 +2995,15 @@ type ZaloAdsUploadCustomAudiencePhoneListResponse = {
2899
2995
  /** Tải video lên kho media của tài khoản quảng cáo. Đây là mutation tool thuộc lane zalo-ads-media; dùng khi cần tạo asset video trước bước cấu hình quảng cáo. */
2900
2996
  type ZaloAdsUploadVideoRequest = {
2901
2997
  /** Tệp video tải lên. Capture đã quan sát field File (chữ hoa) với MIME video/mp4. */
2902
- File: FileInput;
2998
+ File?: FileInput;
2999
+ /** Alias tương thích chữ thường cho File. */
3000
+ file?: FileInput;
2903
3001
  };
2904
3002
  type ZaloAdsUploadVideoResponse = {
2905
3003
  code: number;
2906
3004
  /** URL video do Zalo Ads trả về. */
2907
3005
  data: string;
3006
+ msg?: string;
2908
3007
  };
2909
3008
  /** Tạo mới hoặc cập nhật cấu hình báo cáo tùy chỉnh với tên, cờ mặc định và danh sách chỉ số. Đây là mutation tool thuộc lane zalo-ads-reporting; dùng khi đã xác định bộ cột báo cáo cần lưu. */
2910
3009
  type ZaloAdsUpsertCustomReportRequest = {
@@ -2940,19 +3039,434 @@ type ZaloAdsCreateOaCampaignResponse = ZaloAdsCreateOfficialAccountCampaignRespo
2940
3039
  /** Thiết lập và lưu cấu hình chi tiết cho mẫu Quảng cáo Zalo Official Account (`Type = 2`, `Action = 6`) trên Zalo Ads. Alias chuẩn theo tool `zalo_ads_update_oa_ad` trong Project Schema Zalo ADS. */
2941
3040
  type ZaloAdsUpdateOaAdRequest = ZaloAdsUpdateOfficialAccountAdRequest;
2942
3041
  type ZaloAdsUpdateOaAdResponse = ZaloAdsUpdateOfficialAccountAdResponse;
3042
+ /** Tạo mới 'Nhóm đối tượng đã lưu' (`caType = 1` - `DEFAULT`) trên Zalo Ads (`POST /api/ad/audience`). */
3043
+ type ZaloAdsCreateSavedAudienceRequest = {
3044
+ /** Tên nhóm đối tượng đã lưu (từ 2 đến 255 ký tự). */
3045
+ name: string;
3046
+ /** Mã loại nhóm đối tượng (cố định `1` = DEFAULT cho Nhóm đối tượng đã lưu). */
3047
+ caType?: 1;
3048
+ /** Chuỗi JSON (`JSON.stringify`) hoặc Object cấu hình nhắm chọn (`NewAgeRanges`, `Gender`, `Os`, `Location`, `AdvanceTargeting`, `IncludedAudiences`, `ExcludedAudiences`). */
3049
+ targeting: string | Record<string, unknown>;
3050
+ };
3051
+ type ZaloAdsCreateSavedAudienceResponse = ZaloAdsCreateCustomAudienceResponse;
3052
+ /** Lấy danh sách tài khoản Zalo Official Account (OA) có dữ liệu chuyển đổi (Lead Signal) của nhà quảng cáo (`GET /api/ad/audience/leadSignal/oas`). */
3053
+ type ZaloAdsLeadSignalOaItem = {
3054
+ /** ID số của Official Account. */
3055
+ id: number;
3056
+ /** ID mã hóa chuỗi của Official Account. */
3057
+ noisedId?: string;
3058
+ /** Tên hiển thị của Official Account. */
3059
+ name: string;
3060
+ /** URL ảnh đại diện của Official Account. */
3061
+ avatarUrl?: string;
3062
+ };
3063
+ type ZaloAdsListLeadSignalOasResponse = {
3064
+ code: number;
3065
+ msg: string;
3066
+ data: Array<ZaloAdsLeadSignalOaItem>;
3067
+ };
3068
+ interface ZaloAdsConversionNameItemDto {
3069
+ /** Mã định danh duy nhất của sự kiện chuyển đổi (Conversion ID). */
3070
+ id: number;
3071
+ /** Tên sự kiện chuyển đổi (Conversion Name, duy nhất trong phạm vi tài khoản quảng cáo). */
3072
+ name: string;
3073
+ }
3074
+ /** Lấy danh sách rút gọn gồm ID và tên của toàn bộ các sự kiện chuyển đổi (Conversion) đã tạo trên tài khoản quảng cáo Zalo Ads (`GET /api/conversion/names`). */
3075
+ type ZaloAdsListConversionNamesRequest = Record<string, never>;
3076
+ type ZaloAdsListConversionNamesResponse = {
3077
+ /** Mã kết quả phản hồi từ Zalo Ads (`0` = Thành công). */
3078
+ code: number;
3079
+ /** Thông điệp kết quả phản hồi (ví dụ: `'success'`). */
3080
+ msg?: string;
3081
+ /** Mảng danh sách rút gọn `{ id, name }` các sự kiện chuyển đổi hiện có. */
3082
+ data: Array<ZaloAdsConversionNameItemDto>;
3083
+ };
3084
+ /** Cấu hình targeting cho Nhóm đối tượng SĐT (`caType = 3`). */
3085
+ interface ZaloAdsPhoneAudienceTargetingDto {
3086
+ /** Tên file .txt đã tải lên (ví dụ: 'example.txt'). */
3087
+ Name: string;
3088
+ /** Đường dẫn URL công khai của file .txt sau khi upload. */
3089
+ Path: string;
3090
+ /** Tổng số lượng SĐT hợp lệ trong tệp. */
3091
+ Total: number;
3092
+ /** Mã định danh tệp SĐT do Zalo cấp. */
3093
+ ZaloId: number;
3094
+ /** Cờ đánh dấu SĐT đã được người dùng tự mã hóa SHA256 (bắt đầu bằng 84) trước khi tải lên. */
3095
+ IsHashedByUser?: boolean;
3096
+ /** Mặc định là 0. */
3097
+ OriginAudience?: number;
3098
+ }
3099
+ /** Tạo mới Nhóm đối tượng từ danh sách Số điện thoại (`caType = 3` - `PHONE_LIST`). */
3100
+ type ZaloAdsCreatePhoneAudienceRequest = {
3101
+ name: string;
3102
+ caType?: 3;
3103
+ targeting: string | ZaloAdsPhoneAudienceTargetingDto;
3104
+ };
3105
+ type ZaloAdsCreatePhoneAudienceResponse = ZaloAdsCreateCustomAudienceResponse;
3106
+ /** Cấu hình targeting cho Nhóm đối tượng tương tự (`caType = 6`). */
3107
+ interface ZaloAdsLookalikeAudienceTargetingDto {
3108
+ /** ID của nhóm đối tượng SĐT gốc (`caType = 3`). Bắt buộc nhóm gốc phải có từ 1.000 đến 10.000 SĐT! */
3109
+ OriginAudience: number;
3110
+ /** Quy mô nhóm đối tượng mở rộng: 1.000.000, 1.500.000 hoặc 2.000.000. */
3111
+ Total: 1000000 | 1500000 | 2000000 | number;
3112
+ /** Tên nhóm đối tượng SĐT gốc. */
3113
+ Name: string;
3114
+ /** Đường dẫn file nhóm gốc (chuỗi rỗng hoặc URL). */
3115
+ Path?: string;
3116
+ }
3117
+ /** Tạo mới Nhóm đối tượng tương tự Lookalike (`caType = 6` - `LOOKALIKE`). */
3118
+ type ZaloAdsCreateLookalikeAudienceRequest = {
3119
+ name: string;
3120
+ caType?: 6;
3121
+ targeting: string | ZaloAdsLookalikeAudienceTargetingDto;
3122
+ };
3123
+ type ZaloAdsCreateLookalikeAudienceResponse = ZaloAdsCreateCustomAudienceResponse;
3124
+ /** Cấu hình targeting cho Nhóm đối tượng sự kiện Form (`caType = 12`). */
3125
+ interface ZaloAdsFormEventAudienceTargetingDto {
3126
+ /** 1: Đã xem Form nhưng chưa submit, 2: Đã xem Form và submit, 3: Đã xem Form, 4: Mở chat OA từ Form. */
3127
+ EventType: 1 | 2 | 3 | 4 | number;
3128
+ /** ID mã hóa chuỗi (noisedId) của tài khoản OA. */
3129
+ OaId: string;
3130
+ /** Khoảng thời gian lưu vết người dùng (1 đến 90 ngày; gợi ý: 7, 14, 30, 60, 90). */
3131
+ NumDays: number;
3132
+ /** Danh sách ID biểu mẫu Zalo Form. */
3133
+ FormIds: string[];
3134
+ }
3135
+ /** Tạo mới Nhóm đối tượng phát sinh sự kiện trên Zalo Form (`caType = 12` - `FORM_EVENT_AUDIENCE`). */
3136
+ type ZaloAdsCreateFormEventAudienceRequest = {
3137
+ name: string;
3138
+ caType?: 12;
3139
+ targeting: string | ZaloAdsFormEventAudienceTargetingDto;
3140
+ };
3141
+ type ZaloAdsCreateFormEventAudienceResponse = ZaloAdsCreateCustomAudienceResponse;
3142
+ /** Cấu hình targeting cho Nhóm đối tượng sự kiện Tin nhắn OA (`caType = 11`). */
3143
+ interface ZaloAdsMessageOaEventAudienceTargetingDto {
3144
+ /** 1: Liên hệ sau khi xem quảng cáo tin nhắn. */
3145
+ EventId: 1 | number;
3146
+ /** ID mã hóa chuỗi (noisedId) của tài khoản OA xác thực. */
3147
+ OaId: string;
3148
+ /** Khoảng thời gian lưu vết người dùng (1 đến 90 ngày). */
3149
+ NumDays: number;
3150
+ }
3151
+ /** Tạo mới Nhóm đối tượng phát sinh sự kiện trên Kịch bản Tin nhắn OA (`caType = 11` - `MESSAGE_AUDIENCE`). */
3152
+ type ZaloAdsCreateMessageOaEventAudienceRequest = {
3153
+ name: string;
3154
+ caType?: 11;
3155
+ targeting: string | ZaloAdsMessageOaEventAudienceTargetingDto;
3156
+ };
3157
+ type ZaloAdsCreateMessageOaEventAudienceResponse = ZaloAdsCreateCustomAudienceResponse;
3158
+ /** Cấu hình targeting cho Nhóm đối tượng sự kiện Tin nhắn cá nhân (`caType = 14`). */
3159
+ interface ZaloAdsMessagePersonalEventAudienceTargetingDto {
3160
+ /** 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;
3162
+ /** Khoảng thời gian lưu vết người dùng (1 đến 90 ngày). */
3163
+ NumDays: number;
3164
+ /** Danh sách publicId của các Mini Page template Tin nhắn. */
3165
+ PageIds: string[];
3166
+ }
3167
+ /** 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`). */
3168
+ type ZaloAdsCreateMessagePersonalEventAudienceRequest = {
3169
+ name: string;
3170
+ caType?: 14;
3171
+ targeting: string | ZaloAdsMessagePersonalEventAudienceTargetingDto;
3172
+ };
3173
+ type ZaloAdsCreateMessagePersonalEventAudienceResponse = ZaloAdsCreateCustomAudienceResponse;
3174
+ /** Cấu hình targeting cho Nhóm đối tượng Trung tâm Lead - Zalo Form (`caType = 10`). */
3175
+ interface ZaloAdsFormLeadAudienceTargetingDto {
3176
+ Name: string;
3177
+ FormAudienceId: string | number;
3178
+ Total: number;
3179
+ IsCommerce?: false;
3180
+ }
3181
+ /** Tạo mới Nhóm đối tượng từ Trung tâm Lead - Zalo Form (`caType = 10` - `FORM_AUDIENCE`). */
3182
+ type ZaloAdsCreateFormLeadAudienceRequest = {
3183
+ name: string;
3184
+ caType?: 10;
3185
+ targeting: string | ZaloAdsFormLeadAudienceTargetingDto;
3186
+ };
3187
+ type ZaloAdsCreateFormLeadAudienceResponse = ZaloAdsCreateCustomAudienceResponse;
3188
+ /** Cấu hình targeting cho Nhóm đối tượng Trung tâm Lead - Commerce Form (`caType = 15`). */
3189
+ interface ZaloAdsCommerceFormAudienceTargetingDto {
3190
+ Name: string;
3191
+ FormAudienceId: string | number;
3192
+ Total: number;
3193
+ IsCommerce: true;
3194
+ }
3195
+ /** Tạo mới Nhóm đối tượng từ Trung tâm Lead - Commerce Form (`caType = 15` - `COMMERCE_FORM_AUDIENCE`). */
3196
+ type ZaloAdsCreateCommerceFormAudienceRequest = {
3197
+ name: string;
3198
+ caType?: 15;
3199
+ targeting: string | ZaloAdsCommerceFormAudienceTargetingDto;
3200
+ };
3201
+ type ZaloAdsCreateCommerceFormAudienceResponse = ZaloAdsCreateCustomAudienceResponse;
3202
+ /** Cấu hình targeting cho Nhóm đối tượng Trung tâm Lead - Kịch bản Tin nhắn OA (`caType = 13`). */
3203
+ interface ZaloAdsMessageOaLeadAudienceTargetingDto {
3204
+ Name: string;
3205
+ MessageOAAudienceId: string | number;
3206
+ Total: number;
3207
+ }
3208
+ /** Tạo mới Nhóm đối tượng từ Trung tâm Lead - Kịch bản Tin nhắn OA (`caType = 13` - `MESSAGE_OA_AUDIENCE`). */
3209
+ type ZaloAdsCreateMessageOaLeadAudienceRequest = {
3210
+ name: string;
3211
+ caType?: 13;
3212
+ targeting: string | ZaloAdsMessageOaLeadAudienceTargetingDto;
3213
+ };
3214
+ type ZaloAdsCreateMessageOaLeadAudienceResponse = ZaloAdsCreateCustomAudienceResponse;
3215
+ /** Cấu hình targeting cho Nhóm đối tượng Dữ liệu chuyển đổi Lead Signal (`caType = 16`). */
3216
+ interface ZaloAdsLeadSignalAudienceTargetingDto {
3217
+ /** ID số của Official Account có dữ liệu chuyển đổi. */
3218
+ OaId: number;
3219
+ /** Tên nhãn sự kiện chuyển đổi. */
3220
+ Label: string;
3221
+ /** Mức điều chỉnh độ rộng đối tượng từ 1 đến 20 (mặc định: 5). */
3222
+ SegmentCount: number;
3223
+ /** Ước tính số người tiếp cận (Math.round(A30 / 20 * SegmentCount)). */
3224
+ Total: number;
3225
+ }
3226
+ /** Tạo mới Nhóm đối tượng từ Dữ liệu chuyển đổi Lead Signal (`caType = 16` - `LEAD_SIGNAL_AUDIENCE`). */
3227
+ type ZaloAdsCreateLeadSignalAudienceRequest = {
3228
+ name: string;
3229
+ caType?: 16;
3230
+ targeting: string | ZaloAdsLeadSignalAudienceTargetingDto;
3231
+ };
3232
+ type ZaloAdsCreateLeadSignalAudienceResponse = ZaloAdsCreateCustomAudienceResponse;
3233
+ /** Lấy số liệu báo cáo tổng quan Dashboard (GET https://ads.zalo.me/reportapi/report/overview). */
3234
+ type ZaloAdsGetReportOverviewRequest = {
3235
+ /** Chuỗi JSON mã hóa URL, ví dụ: '{"StartDate":1768755600,"EndDate":1768928399}' */
3236
+ data: string;
3237
+ };
3238
+ type ZaloAdsGetReportOverviewResponse = {
3239
+ code: number;
3240
+ data: Record<string, Record<string, number>>;
3241
+ extend?: {
3242
+ totalUniqueUser?: number;
3243
+ };
3244
+ };
3245
+ /** Lấy báo cáo nhân khẩu học của chiến dịch hoặc quảng cáo (GET https://ads.zalo.me/api/demographics/report). */
3246
+ type ZaloAdsGetDemographicsReportRequest = {
3247
+ campaignId: number;
3248
+ adId: number;
3249
+ startDate: number;
3250
+ endDate: number;
3251
+ agencyId?: number;
3252
+ from?: number;
3253
+ to?: number;
3254
+ };
3255
+ type ZaloAdsGetDemographicsReportResponse = {
3256
+ cAgeGender?: Record<string, number>;
3257
+ iAgeGender?: Record<string, number>;
3258
+ location?: Record<string, unknown>;
3259
+ };
3260
+ /** Xóa cấu hình báo cáo tùy chỉnh theo ID (POST https://ads.zalo.me/reportapi/custom-report/delete/{id}). */
3261
+ type ZaloAdsDeleteCustomReportRequest = {
3262
+ id: number | string;
3263
+ };
3264
+ type ZaloAdsDeleteCustomReportResponse = {
3265
+ code?: number;
3266
+ msg?: string;
3267
+ data?: unknown;
3268
+ };
3269
+ /** Lấy danh sách các bộ lọc báo cáo đã lưu (GET https://ads.zalo.me/reportapi/api/filter/list). */
3270
+ type ZaloAdsListReportFiltersRequest = {
3271
+ /** 0: all/chung, 1: campaign, 2: ad */
3272
+ model: number | string;
3273
+ };
3274
+ type ZaloAdsListReportFiltersResponse = Array<{
3275
+ id: number;
3276
+ name: string;
3277
+ content: string;
3278
+ model: number;
3279
+ }>;
2943
3280
 
2944
- /** Zalo Ads API service. Each API explicitly selects its own request transport. */
3281
+ /**
3282
+ * Tham số đầu vào cho method tiện ích `uploadAndSaveImage`
3283
+ * (Tự động thực hiện 2 bước: upload lên CDN rồi lưu vào Thư viện Media Zalo Ads).
3284
+ */
3285
+ interface ZaloUploadAndSaveImageRequest {
3286
+ /**
3287
+ * Tệp ảnh cần tải lên:
3288
+ * - Buffer / Uint8Array / ArrayBuffer (ví dụ: `req.file.buffer` từ Multer trong NestJS/Express)
3289
+ * - Web Blob / File
3290
+ * - URL công khai trên Internet (http/https hoặc data URI)
3291
+ *
3292
+ * (Lưu ý: Không hỗ trợ đường dẫn tệp cục bộ trên ổ cứng).
3293
+ */
3294
+ file: FileInput;
3295
+ /**
3296
+ * Tên hiển thị của ảnh khi lưu vào Thư viện Media.
3297
+ * Nếu bỏ trống, SDK sẽ tự động trích xuất từ tên file hoặc tự sinh tên dựa trên timestamp.
3298
+ */
3299
+ fileName?: string;
3300
+ /**
3301
+ * Chiều rộng ảnh (pixels).
3302
+ * Tùy chọn; nếu không truyền và là file local/buffer, SDK sẽ tự động đọc header ảnh JPEG/PNG.
3303
+ */
3304
+ width?: number;
3305
+ /**
3306
+ * Chiều cao ảnh (pixels).
3307
+ * Tùy chọn; nếu không truyền và là file local/buffer, SDK sẽ tự động đọc header ảnh JPEG/PNG.
3308
+ */
3309
+ height?: number;
3310
+ /**
3311
+ * Loại tài nguyên media: 1 = Ảnh (mặc định là 1).
3312
+ */
3313
+ type?: number;
3314
+ /**
3315
+ * URL ảnh thu nhỏ (thumbnail) nếu có.
3316
+ */
3317
+ thumbUrl?: string;
3318
+ }
3319
+ /**
3320
+ * Kết quả trả về từ method `uploadAndSaveImage`.
3321
+ */
3322
+ interface ZaloUploadAndSaveImageResult {
3323
+ /** Mã kết quả xử lý từ Zalo Ads (0 = thành công). */
3324
+ code: number;
3325
+ /** ID của media vừa được tạo trong Thư viện Zalo Ads (dùng để gán vào Creative/Banner). */
3326
+ mediaId: number;
3327
+ /** URL CDN trực tiếp của ảnh trên máy chủ Zalo (https://adtima-media.zascdn.me/...). */
3328
+ cdnUrl: string;
3329
+ /** Tên tệp đã lưu trong thư viện. */
3330
+ name: string;
3331
+ /** Chiều rộng ảnh (pixels). */
3332
+ width: number;
3333
+ /** Chiều cao ảnh (pixels). */
3334
+ height: number;
3335
+ /** Loại media (1 = Ảnh). */
3336
+ type: number;
3337
+ /** Chi tiết phản hồi từ API upload ảnh (/api/member/upload-image). */
3338
+ rawUploadResponse: ZaloAdsPostApiMemberUploadImageResponse;
3339
+ /** Chi tiết phản hồi từ API lưu media (/api/media/save). */
3340
+ rawSaveResponse: ZaloAdsPostApiMediaSaveResponse;
3341
+ }
3342
+ /**
3343
+ * Tham số đầu vào cho method tiện ích `uploadAndSaveVideo`.
3344
+ */
3345
+ interface ZaloUploadAndSaveVideoRequest {
3346
+ /**
3347
+ * Tệp video cần tải lên (Buffer, Uint8Array, Blob, File hoặc URL công khai .mp4).
3348
+ * Lưu ý: Không hỗ trợ đường dẫn tệp cục bộ trên ổ cứng.
3349
+ */
3350
+ file: FileInput;
3351
+ /** Tên hiển thị của video trong Thư viện Media. */
3352
+ fileName?: string;
3353
+ /** Chiều rộng video (pixels). Mặc định 1920 hoặc tự truyền. */
3354
+ width?: number;
3355
+ /** Chiều cao video (pixels). Mặc định 1080 hoặc tự truyền. */
3356
+ height?: number;
3357
+ /** Thời lượng video tính bằng giây (tối đa 60s). */
3358
+ duration?: number;
3359
+ /** URL ảnh thu nhỏ (thumbnail poster) của video. */
3360
+ thumbUrl?: string;
3361
+ }
3362
+ /**
3363
+ * Kết quả trả về từ method `uploadAndSaveVideo`.
3364
+ */
3365
+ interface ZaloUploadAndSaveVideoResult {
3366
+ code: number;
3367
+ mediaId: number;
3368
+ cdnUrl: string;
3369
+ name: string;
3370
+ width: number;
3371
+ height: number;
3372
+ duration?: number;
3373
+ type: number;
3374
+ rawUploadResponse: ZaloAdsUploadVideoResponse;
3375
+ rawSaveResponse: ZaloAdsPostApiMediaSaveResponse;
3376
+ }
3377
+ /**
3378
+ * Kết quả kiểm tra tính hợp lệ của tài nguyên media (Ảnh hoặc Video).
3379
+ */
3380
+ interface MediaValidationResult {
3381
+ /** Trạng thái hợp lệ (true nếu vượt qua toàn bộ quy chuẩn, false nếu có lỗi). */
3382
+ isValid: boolean;
3383
+ /** Mã trạng thái: 'VALID' | 'INVALID'. */
3384
+ status: "VALID" | "INVALID";
3385
+ /** Danh sách các thông báo lỗi nếu vi phạm tiêu chí kỹ thuật. Rỗng khi isValid = true. */
3386
+ errors: string[];
3387
+ /** Tóm tắt metadata đã phân tích được từ tệp. */
3388
+ metadata: {
3389
+ fileDetected: boolean;
3390
+ sizeBytes?: number;
3391
+ width?: number;
3392
+ height?: number;
3393
+ durationSeconds?: number;
3394
+ format?: string;
3395
+ aspectRatio?: string;
3396
+ };
3397
+ }
3398
+ /**
3399
+ * Dữ liệu đầu vào để kiểm tra tính hợp lệ của Ảnh.
3400
+ * Hỗ trợ nhận trực tiếp tệp (Buffer, Blob, path) hoặc metadata do backend (multer/busboy) trích xuất sẵn.
3401
+ *
3402
+ * Tiêu chuẩn quy định:
3403
+ * - "No file chosen": Bắt buộc phải có tệp.
3404
+ * - Dung lượng: Tối đa 2MB (2,097,152 bytes).
3405
+ * - Kích thước tối thiểu: 150x150 pixels.
3406
+ * - Định dạng: .JPG, .JPEG, .PNG.
3407
+ */
3408
+ interface ValidateImageInput {
3409
+ /** Tệp ảnh (Buffer, Blob, Uint8Array, đường dẫn file local trong Node.js, hoặc đối tượng có trường size). */
3410
+ file?: FileInput | {
3411
+ size?: number;
3412
+ buffer?: Uint8Array;
3413
+ mimetype?: string;
3414
+ originalname?: string;
3415
+ } | null;
3416
+ /** Dung lượng file tính bằng bytes (nếu truyền từ backend multipart/multer). */
3417
+ sizeBytes?: number;
3418
+ /** Chiều rộng ảnh tính bằng pixels (nếu đã phân tích sẵn). */
3419
+ width?: number;
3420
+ /** Chiều cao ảnh tính bằng pixels (nếu đã phân tích sẵn). */
3421
+ height?: number;
3422
+ /** Định dạng tệp / MIME type (ví dụ: 'image/jpeg', 'image/png', '.jpg', '.png'). */
3423
+ format?: string;
3424
+ /** Tên tệp gốc (ví dụ: 'banner.png'). */
3425
+ fileName?: string;
3426
+ }
3427
+ /**
3428
+ * Dữ liệu đầu vào để kiểm tra tính hợp lệ của Video.
3429
+ * Hỗ trợ nhận trực tiếp tệp hoặc metadata do backend trích xuất sẵn.
3430
+ *
3431
+ * Tiêu chuẩn quy định:
3432
+ * - "No file chosen": Bắt buộc phải có tệp.
3433
+ * - Định dạng: .MP4 H.264.
3434
+ * - Dung lượng: Tối đa 150MB (157,286,400 bytes).
3435
+ * - Thời lượng: Tối đa 60 giây.
3436
+ * - Tỉ lệ khung hình: 16:9, 9:16 hoặc 1:1.
3437
+ */
3438
+ interface ValidateVideoInput {
3439
+ /** Tệp video (Buffer, Blob, Uint8Array, đường dẫn file local, hoặc multer file object). */
3440
+ file?: FileInput | {
3441
+ size?: number;
3442
+ buffer?: Uint8Array;
3443
+ mimetype?: string;
3444
+ originalname?: string;
3445
+ } | null;
3446
+ /** Dung lượng video tính bằng bytes. */
3447
+ sizeBytes?: number;
3448
+ /** Thời lượng video tính bằng giây (tối đa 60 giây). */
3449
+ durationSeconds?: number;
3450
+ /** Chiều rộng video tính bằng pixels (dùng để tính tỉ lệ khung hình). */
3451
+ width?: number;
3452
+ /** Chiều cao video tính bằng pixels (dùng để tính tỉ lệ khung hình). */
3453
+ height?: number;
3454
+ /** Định dạng tệp hoặc codec (ví dụ: '.mp4', 'video/mp4', 'h264'). */
3455
+ format?: string;
3456
+ /** Tên tệp video gốc (ví dụ: 'promo.mp4'). */
3457
+ fileName?: string;
3458
+ }
2945
3459
 
2946
- declare class ZaloAdsService {
2947
- private readonly client;
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
+ declare class ZaloCampaignsService {
3465
+ protected readonly client: ZaloSdkHttpClient;
2948
3466
  constructor(client: ZaloSdkHttpClient);
2949
3467
  updateVideoAd(request: ZaloAdsUpdateVideoAdRequest, options?: RequestOptions): Promise<ZaloAdsUpdateVideoAdResponse>;
2950
- createFlow(request: ZaloAdsCreateFlowRequest, options?: RequestOptions): Promise<ZaloAdsCreateFlowResponse>;
2951
- updateFlow(request: ZaloAdsUpdateFlowRequest, options?: RequestOptions): Promise<ZaloAdsUpdateFlowResponse>;
2952
- listFlowsByOfficialAccount(request: ZaloAdsListFlowsByOfficialAccountRequest, options?: RequestOptions): Promise<ZaloAdsListFlowsByOfficialAccountResponse>;
2953
3468
  changeCampaignStatus(request: ZaloAdsChangeCampaignStatusRequest, options?: RequestOptions): Promise<ZaloAdsChangeCampaignStatusResponse>;
2954
3469
  deleteCampaign(request: ZaloAdsDeleteCampaignRequest, options?: RequestOptions): Promise<ZaloAdsDeleteCampaignResponse>;
2955
- createCustomAudience(request: ZaloAdsCreateCustomAudienceRequest, options?: RequestOptions): Promise<ZaloAdsCreateCustomAudienceResponse>;
2956
3470
  createWebsiteCampaign(request: ZaloAdsCreateWebsiteCampaignRequest, options?: RequestOptions): Promise<ZaloAdsCreateWebsiteCampaignResponse>;
2957
3471
  updateWebsiteAd(request: ZaloAdsUpdateWebsiteAdRequest, options?: RequestOptions): Promise<ZaloAdsUpdateWebsiteAdResponse>;
2958
3472
  createDisplayCampaign(request: ZaloAdsCreateDisplayCampaignRequest, options?: RequestOptions): Promise<ZaloAdsCreateDisplayCampaignResponse>;
@@ -2970,37 +3484,10 @@ declare class ZaloAdsService {
2970
3484
  createPostCampaign(request: ZaloAdsCreatePostCampaignRequest, options?: RequestOptions): Promise<ZaloAdsCreatePostCampaignResponse>;
2971
3485
  /** Alias theo tên tool chuẩn `zalo_ads_create_article_campaign` trong Project Schema Zalo ADS (`campaignType = 4`). */
2972
3486
  createArticleCampaign(request: ZaloAdsCreateArticleCampaignRequest, options?: RequestOptions): Promise<ZaloAdsCreateArticleCampaignResponse>;
2973
- listAutomatedRules(request?: ZaloAdsListAutomatedRulesRequest, options?: RequestOptions): Promise<ZaloAdsListAutomatedRulesResponse>;
2974
- createAutomatedRule(request: ZaloAdsCreateAutomatedRuleRequest, options?: RequestOptions): Promise<ZaloAdsCreateAutomatedRuleResponse>;
2975
- updateAutomatedRule(request: ZaloAdsUpdateAutomatedRuleRequest, options?: RequestOptions): Promise<ZaloAdsUpdateAutomatedRuleResponse>;
2976
- changeAutomatedRuleStatus(request: ZaloAdsChangeAutomatedRuleStatusRequest, options?: RequestOptions): Promise<ZaloAdsChangeAutomatedRuleStatusResponse>;
2977
- getAutomatedRuleHistory(request: ZaloAdsGetAutomatedRuleHistoryRequest, options?: RequestOptions): Promise<ZaloAdsGetAutomatedRuleHistoryResponse>;
2978
- deleteAutomatedRule(request: ZaloAdsDeleteAutomatedRuleRequest, options?: RequestOptions): Promise<ZaloAdsDeleteAutomatedRuleResponse>;
2979
- createConversion(request: ZaloAdsCreateConversionRequest, options?: RequestOptions): Promise<ZaloAdsCreateConversionResponse>;
2980
- deleteConversion(request: ZaloAdsDeleteConversionRequest, options?: RequestOptions): Promise<ZaloAdsDeleteConversionResponse>;
2981
- deleteCustomAudience(request: ZaloAdsDeleteCustomAudienceRequest, options?: RequestOptions): Promise<ZaloAdsDeleteCustomAudienceResponse>;
2982
3487
  getAdById(request?: ZaloAdsGetAdByIdRequest, options?: RequestOptions): Promise<ZaloAdsGetAdByIdResponse>;
2983
3488
  getAdChangeLog(request: ZaloAdsGetAdChangeLogRequest, options?: RequestOptions): Promise<ZaloAdsGetAdChangeLogResponse>;
2984
- getApiAdGetlistadadvancetargeting(request?: ZaloAdsGetApiAdGetlistadadvancetargetingRequest, options?: RequestOptions): Promise<ZaloAdsGetApiAdGetlistadadvancetargetingResponse>;
2985
- getApiBaAccountAllaccessors(request?: ZaloAdsGetApiBaAccountAllaccessorsRequest, options?: RequestOptions): Promise<ZaloAdsGetApiBaAccountAllaccessorsResponse>;
2986
- getApiBaAccountAllgrantedmembers(request?: ZaloAdsGetApiBaAccountAllgrantedmembersRequest, options?: RequestOptions): Promise<ZaloAdsGetApiBaAccountAllgrantedmembersResponse>;
2987
- getApiConversionAll(request?: ZaloAdsGetApiConversionAllRequest, options?: RequestOptions): Promise<ZaloAdsGetApiConversionAllResponse>;
2988
- getApiConversionStandardEvents(request?: ZaloAdsGetApiConversionStandardEventsRequest, options?: RequestOptions): Promise<ZaloAdsGetApiConversionStandardEventsResponse>;
2989
- getApiCustomAudienceAll(request?: ZaloAdsGetApiCustomAudienceAllRequest, options?: RequestOptions): Promise<ZaloAdsGetApiCustomAudienceAllResponse>;
2990
- getApiFilegroups(request?: ZaloAdsGetApiFilegroupsRequest, options?: RequestOptions): Promise<ZaloAdsGetApiFilegroupsResponse>;
2991
- getApiLpNews(request?: ZaloAdsGetApiLpNewsRequest, options?: RequestOptions): Promise<ZaloAdsGetApiLpNewsResponse>;
2992
- getApiMediaItems(request: ZaloAdsGetApiMediaItemsRequest, options?: RequestOptions): Promise<ZaloAdsGetApiMediaItemsResponse>;
2993
- getApiMemberFiles(request?: ZaloAdsGetApiMemberFilesRequest, options?: RequestOptions): Promise<ZaloAdsGetApiMemberFilesResponse>;
2994
- getApiNotifiesHeader(request?: ZaloAdsGetApiNotifiesHeaderRequest, options?: RequestOptions): Promise<ZaloAdsGetApiNotifiesHeaderResponse>;
2995
- getApiPaymentTransactionHistory(request: ZaloAdsGetApiPaymentTransactionHistoryRequest, options?: RequestOptions): Promise<ZaloAdsGetApiPaymentTransactionHistoryResponse>;
2996
3489
  getApiPlaceGetalldistricts(request?: ZaloAdsGetApiPlaceGetalldistrictsRequest, options?: RequestOptions): Promise<ZaloAdsGetApiPlaceGetalldistrictsResponse>;
2997
3490
  getApiSpellCheckV2(request: ZaloAdsGetApiSpellCheckV2Request, options?: RequestOptions): Promise<ZaloAdsGetApiSpellCheckV2Response>;
2998
- getApiWhoami(request?: ZaloAdsGetApiWhoamiRequest, options?: RequestOptions): Promise<ZaloAdsGetApiWhoamiResponse>;
2999
- getReportapiV2Ads(request: ZaloAdsGetReportapiV2AdsRequest, options?: RequestOptions): Promise<ZaloAdsGetReportapiV2AdsResponse>;
3000
- getReportapiV2Campaigns(request?: ZaloAdsGetReportapiV2CampaignsRequest, options?: RequestOptions): Promise<ZaloAdsGetReportapiV2CampaignsResponse>;
3001
- getReportapiV2UniqueUser(request?: ZaloAdsGetReportapiV2UniqueUserRequest, options?: RequestOptions): Promise<ZaloAdsGetReportapiV2UniqueUserResponse>;
3002
- getReportapiV3Campaigns(request: ZaloAdsGetReportapiV3CampaignsRequest, options?: RequestOptions): Promise<ZaloAdsGetReportapiV3CampaignsResponse>;
3003
- getZaapiCampaignReportcampaign(request?: ZaloAdsGetZaapiCampaignReportcampaignRequest, options?: RequestOptions): Promise<ZaloAdsGetZaapiCampaignReportcampaignResponse>;
3004
3491
  getZaapiCheckcamphasmanyads(request?: ZaloAdsGetZaapiCheckcamphasmanyadsRequest, options?: RequestOptions): Promise<ZaloAdsGetZaapiCheckcamphasmanyadsResponse>;
3005
3492
  getZaapiGetadsfromcampaignid(request?: ZaloAdsGetZaapiGetadsfromcampaignidRequest, options?: RequestOptions): Promise<ZaloAdsGetZaapiGetadsfromcampaignidResponse>;
3006
3493
  getZaapiGetallpages(request?: ZaloAdsGetZaapiGetallpagesRequest, options?: RequestOptions): Promise<ZaloAdsGetZaapiGetallpagesResponse>;
@@ -3009,16 +3496,8 @@ declare class ZaloAdsService {
3009
3496
  getOwnedArticles(request: ZaloAdsGetZaapiGetownedarticlesRequest, options?: RequestOptions): Promise<ZaloAdsGetZaapiGetownedarticlesResponse>;
3010
3497
  getZaapiGetownedpages(request?: ZaloAdsGetZaapiGetownedpagesRequest, options?: RequestOptions): Promise<ZaloAdsGetZaapiGetownedpagesResponse>;
3011
3498
  getOwnedPages(request?: ZaloAdsGetZaapiGetownedpagesRequest, options?: RequestOptions): Promise<ZaloAdsGetZaapiGetownedpagesResponse>;
3012
- listAgencyCustomersWithBudget(request?: ZaloAdsListAgencyCustomersWithBudgetRequest, options?: RequestOptions): Promise<ZaloAdsListAgencyCustomersWithBudgetResponse>;
3013
- listCustomReports(request?: ZaloAdsListCustomReportsRequest, options?: RequestOptions): Promise<ZaloAdsListCustomReportsResponse>;
3014
3499
  listFormsByOfficialAccount(request: ZaloAdsListFormsByOfficialAccountRequest, options?: RequestOptions): Promise<ZaloAdsListFormsByOfficialAccountResponse>;
3015
3500
  listMiniPagesByTemplate(request: ZaloAdsListMiniPagesByTemplateRequest, options?: RequestOptions): Promise<ZaloAdsListMiniPagesByTemplateResponse>;
3016
- listPersonalPixelLabels(request?: ZaloAdsListPersonalPixelLabelsRequest, options?: RequestOptions): Promise<ZaloAdsListPersonalPixelLabelsResponse>;
3017
- postApiAdEstimateaudience(request: ZaloAdsPostApiAdEstimateaudienceRequest, options?: RequestOptions): Promise<ZaloAdsPostApiAdEstimateaudienceResponse>;
3018
- postApiMediaSave(request: ZaloAdsPostApiMediaSaveRequest, options?: RequestOptions): Promise<ZaloAdsPostApiMediaSaveResponse>;
3019
- postApiMemberUploadImage(request: ZaloAdsPostApiMemberUploadImageRequest, options?: RequestOptions): Promise<ZaloAdsPostApiMemberUploadImageResponse>;
3020
- /** Alias tiện lợi cho `postApiMemberUploadImage` (`POST /api/member/upload-image`). */
3021
- uploadImage(request: ZaloAdsPostApiMemberUploadImageRequest, options?: RequestOptions): Promise<ZaloAdsPostApiMemberUploadImageResponse>;
3022
3501
  postZaapiDeletead(request?: ZaloAdsPostZaapiDeleteadRequest, options?: RequestOptions): Promise<ZaloAdsPostZaapiDeleteadResponse>;
3023
3502
  renameCampaign(request: ZaloAdsRenameCampaignRequest, options?: RequestOptions): Promise<ZaloAdsRenameCampaignResponse>;
3024
3503
  updateEcommerceAd(request: ZaloAdsUpdateEcommerceAdRequest, options?: RequestOptions): Promise<ZaloAdsUpdateEcommerceAdResponse>;
@@ -3033,9 +3512,371 @@ declare class ZaloAdsService {
3033
3512
  updatePostAd(request: ZaloAdsUpdatePostAdRequest, options?: RequestOptions): Promise<ZaloAdsUpdatePostAdResponse>;
3034
3513
  /** Alias theo tên tool chuẩn `zalo_ads_update_article_ad` trong Project Schema Zalo ADS (`Type = 3`, gắn `ZaloFeedId`). */
3035
3514
  updateArticleAd(request: ZaloAdsUpdateArticleAdRequest, options?: RequestOptions): Promise<ZaloAdsUpdateArticleAdResponse>;
3515
+ /** Xóa quảng cáo */
3516
+ deleteAd(...args: Parameters<this["postZaapiDeletead"]>): ReturnType<this["postZaapiDeletead"]>;
3517
+ /** Danh sách quận/huyện để nhắm mục tiêu */
3518
+ getAllDistricts(...args: Parameters<this["getApiPlaceGetalldistricts"]>): ReturnType<this["getApiPlaceGetalldistricts"]>;
3519
+ /** Kiểm tra chính tả văn bản quảng cáo */
3520
+ getSpellCheckV2(...args: Parameters<this["getApiSpellCheckV2"]>): ReturnType<this["getApiSpellCheckV2"]>;
3521
+ }
3522
+
3523
+ /**
3524
+ * Dịch vụ Quản lý Tài khoản & Thanh toán Zalo Ads (whoami, transactions, BA accessors, agency).
3525
+ */
3526
+
3527
+ declare class ZaloAccountService {
3528
+ protected readonly client: ZaloSdkHttpClient;
3529
+ constructor(client: ZaloSdkHttpClient);
3530
+ getApiWhoami(request?: ZaloAdsGetApiWhoamiRequest, options?: RequestOptions): Promise<ZaloAdsGetApiWhoamiResponse>;
3531
+ getApiPaymentTransactionHistory(request: ZaloAdsGetApiPaymentTransactionHistoryRequest, options?: RequestOptions): Promise<ZaloAdsGetApiPaymentTransactionHistoryResponse>;
3532
+ getApiBaAccountAllaccessors(request?: ZaloAdsGetApiBaAccountAllaccessorsRequest, options?: RequestOptions): Promise<ZaloAdsGetApiBaAccountAllaccessorsResponse>;
3533
+ getApiBaAccountAllgrantedmembers(request?: ZaloAdsGetApiBaAccountAllgrantedmembersRequest, options?: RequestOptions): Promise<ZaloAdsGetApiBaAccountAllgrantedmembersResponse>;
3534
+ listAgencyCustomersWithBudget(request?: ZaloAdsListAgencyCustomersWithBudgetRequest, options?: RequestOptions): Promise<ZaloAdsListAgencyCustomersWithBudgetResponse>;
3535
+ getApiNotifiesHeader(request?: ZaloAdsGetApiNotifiesHeaderRequest, options?: RequestOptions): Promise<ZaloAdsGetApiNotifiesHeaderResponse>;
3536
+ getApiLpNews(request?: ZaloAdsGetApiLpNewsRequest, options?: RequestOptions): Promise<ZaloAdsGetApiLpNewsResponse>;
3537
+ /** Lấy thông tin tài khoản đang đăng nhập */
3538
+ getWhoami(...args: Parameters<this["getApiWhoami"]>): ReturnType<this["getApiWhoami"]>;
3539
+ /** Lịch sử giao dịch thanh toán */
3540
+ getPaymentTransactionHistory(...args: Parameters<this["getApiPaymentTransactionHistory"]>): ReturnType<this["getApiPaymentTransactionHistory"]>;
3541
+ /** Danh sách accessor tài khoản BA */
3542
+ getBaAccountAllAccessors(...args: Parameters<this["getApiBaAccountAllaccessors"]>): ReturnType<this["getApiBaAccountAllaccessors"]>;
3543
+ /** Danh sách thành viên được cấp quyền BA */
3544
+ getBaAccountAllGrantedMembers(...args: Parameters<this["getApiBaAccountAllgrantedmembers"]>): ReturnType<this["getApiBaAccountAllgrantedmembers"]>;
3545
+ /** Thông báo trên thanh tiêu đề */
3546
+ getNotifiesHeader(...args: Parameters<this["getApiNotifiesHeader"]>): ReturnType<this["getApiNotifiesHeader"]>;
3547
+ /** Tin tức landing page / bảng tin */
3548
+ getLpNews(...args: Parameters<this["getApiLpNews"]>): ReturnType<this["getApiLpNews"]>;
3549
+ }
3550
+
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
+ declare class ZaloAudiencesService {
3556
+ protected readonly client: ZaloSdkHttpClient;
3557
+ constructor(client: ZaloSdkHttpClient);
3558
+ postApiAdEstimateaudience(request: ZaloAdsPostApiAdEstimateaudienceRequest, options?: RequestOptions): Promise<ZaloAdsPostApiAdEstimateaudienceResponse>;
3559
+ getApiAdGetlistadadvancetargeting(request?: ZaloAdsGetApiAdGetlistadadvancetargetingRequest, options?: RequestOptions): Promise<ZaloAdsGetApiAdGetlistadadvancetargetingResponse>;
3560
+ getApiCustomAudienceAll(request?: ZaloAdsGetApiCustomAudienceAllRequest, options?: RequestOptions): Promise<ZaloAdsGetApiCustomAudienceAllResponse>;
3561
+ createCustomAudience(request: ZaloAdsCreateCustomAudienceRequest, options?: RequestOptions): Promise<ZaloAdsCreateCustomAudienceResponse>;
3562
+ deleteCustomAudience(request: ZaloAdsDeleteCustomAudienceRequest, options?: RequestOptions): Promise<ZaloAdsDeleteCustomAudienceResponse>;
3036
3563
  uploadCustomAudiencePhoneList(request: ZaloAdsUploadCustomAudiencePhoneListRequest, options?: RequestOptions): Promise<ZaloAdsUploadCustomAudiencePhoneListResponse>;
3564
+ /** Tạo mới 'Nhóm đối tượng đã lưu' (`caType = 1` - `DEFAULT`) trên Zalo Ads (`POST /api/ad/audience`). */
3565
+ createSavedAudience(request: ZaloAdsCreateSavedAudienceRequest, options?: RequestOptions): Promise<ZaloAdsCreateSavedAudienceResponse>;
3566
+ /** Tạo mới Nhóm đối tượng từ danh sách Số điện thoại (`caType = 3` - `PHONE_LIST`). */
3567
+ createPhoneAudience(request: ZaloAdsCreatePhoneAudienceRequest, options?: RequestOptions): Promise<ZaloAdsCreatePhoneAudienceResponse>;
3568
+ /** Tạo mới Nhóm đối tượng tương tự Lookalike (`caType = 6` - `LOOKALIKE`). */
3569
+ createLookalikeAudience(request: ZaloAdsCreateLookalikeAudienceRequest, options?: RequestOptions): Promise<ZaloAdsCreateLookalikeAudienceResponse>;
3570
+ /** Tạo mới Nhóm đối tượng phát sinh sự kiện trên Zalo Form (`caType = 12` - `FORM_EVENT_AUDIENCE`). */
3571
+ createFormEventAudience(request: ZaloAdsCreateFormEventAudienceRequest, options?: RequestOptions): Promise<ZaloAdsCreateFormEventAudienceResponse>;
3572
+ /** Tạo mới Nhóm đối tượng phát sinh sự kiện trên Kịch bản Tin nhắn OA (`caType = 11` - `MESSAGE_AUDIENCE`). */
3573
+ createMessageOaEventAudience(request: ZaloAdsCreateMessageOaEventAudienceRequest, options?: RequestOptions): Promise<ZaloAdsCreateMessageOaEventAudienceResponse>;
3574
+ /** 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`). */
3575
+ createMessagePersonalEventAudience(request: ZaloAdsCreateMessagePersonalEventAudienceRequest, options?: RequestOptions): Promise<ZaloAdsCreateMessagePersonalEventAudienceResponse>;
3576
+ /** Tạo mới Nhóm đối tượng từ Trung tâm Lead - Zalo Form (`caType = 10` - `FORM_AUDIENCE`). */
3577
+ createFormLeadAudience(request: ZaloAdsCreateFormLeadAudienceRequest, options?: RequestOptions): Promise<ZaloAdsCreateFormLeadAudienceResponse>;
3578
+ /** Tạo mới Nhóm đối tượng từ Trung tâm Lead - Commerce Form (`caType = 15` - `COMMERCE_FORM_AUDIENCE`). */
3579
+ createCommerceFormAudience(request: ZaloAdsCreateCommerceFormAudienceRequest, options?: RequestOptions): Promise<ZaloAdsCreateCommerceFormAudienceResponse>;
3580
+ /** Tạo mới Nhóm đối tượng từ Trung tâm Lead - Kịch bản Tin nhắn OA (`caType = 13` - `MESSAGE_OA_AUDIENCE`). */
3581
+ createMessageOaLeadAudience(request: ZaloAdsCreateMessageOaLeadAudienceRequest, options?: RequestOptions): Promise<ZaloAdsCreateMessageOaLeadAudienceResponse>;
3582
+ /** Tạo mới Nhóm đối tượng từ Dữ liệu chuyển đổi Lead Signal (`caType = 16` - `LEAD_SIGNAL_AUDIENCE`). */
3583
+ createLeadSignalAudience(request: ZaloAdsCreateLeadSignalAudienceRequest, options?: RequestOptions): Promise<ZaloAdsCreateLeadSignalAudienceResponse>;
3584
+ /** Ước tính quy mô đối tượng tiếp cận */
3585
+ estimateAudience(...args: Parameters<this["postApiAdEstimateaudience"]>): ReturnType<this["postApiAdEstimateaudience"]>;
3586
+ /** Danh sách toàn bộ nhóm đối tượng tùy chỉnh */
3587
+ listCustomAudiences(...args: Parameters<this["getApiCustomAudienceAll"]>): ReturnType<this["getApiCustomAudienceAll"]>;
3588
+ /** Danh sách cấu hình nhắm mục tiêu nâng cao */
3589
+ getListAdAdvanceTargeting(...args: Parameters<this["getApiAdGetlistadadvancetargeting"]>): ReturnType<this["getApiAdGetlistadadvancetargeting"]>;
3590
+ }
3591
+
3592
+ /**
3593
+ * Dịch vụ Báo cáo & Thống kê Hiệu quả Zalo Ads (Campaigns, Ads, Demographics, Overview, Custom Reports).
3594
+ */
3595
+
3596
+ declare class ZaloReportsService {
3597
+ protected readonly client: ZaloSdkHttpClient;
3598
+ constructor(client: ZaloSdkHttpClient);
3599
+ getReportapiV2Ads(request: ZaloAdsGetReportapiV2AdsRequest, options?: RequestOptions): Promise<ZaloAdsGetReportapiV2AdsResponse>;
3600
+ getReportapiV2Campaigns(request?: ZaloAdsGetReportapiV2CampaignsRequest, options?: RequestOptions): Promise<ZaloAdsGetReportapiV2CampaignsResponse>;
3601
+ getReportapiV2UniqueUser(request: ZaloAdsGetReportapiV2UniqueUserRequest, options?: RequestOptions): Promise<ZaloAdsGetReportapiV2UniqueUserResponse>;
3602
+ getReportapiV3Campaigns(request: ZaloAdsGetReportapiV3CampaignsRequest, options?: RequestOptions): Promise<ZaloAdsGetReportapiV3CampaignsResponse>;
3603
+ getReportOverview(request: ZaloAdsGetReportOverviewRequest, options?: RequestOptions): Promise<ZaloAdsGetReportOverviewResponse>;
3604
+ getDemographicsReport(request: ZaloAdsGetDemographicsReportRequest, options?: RequestOptions): Promise<ZaloAdsGetDemographicsReportResponse>;
3605
+ getZaapiCampaignReportcampaign(request: ZaloAdsGetZaapiCampaignReportcampaignRequest, options?: RequestOptions): Promise<ZaloAdsGetZaapiCampaignReportcampaignResponse>;
3606
+ listCustomReports(request?: ZaloAdsListCustomReportsRequest, options?: RequestOptions): Promise<ZaloAdsListCustomReportsResponse>;
3607
+ upsertCustomReport(request: ZaloAdsUpsertCustomReportRequest, options?: RequestOptions): Promise<ZaloAdsUpsertCustomReportResponse>;
3608
+ deleteCustomReport(request: ZaloAdsDeleteCustomReportRequest, options?: RequestOptions): Promise<ZaloAdsDeleteCustomReportResponse>;
3609
+ listReportFilters(request: ZaloAdsListReportFiltersRequest, options?: RequestOptions): Promise<ZaloAdsListReportFiltersResponse>;
3610
+ /** Báo cáo hiệu quả chiến dịch (API V3 - Khuyên dùng) */
3611
+ getCampaignReportV3(...args: Parameters<this["getReportapiV3Campaigns"]>): ReturnType<this["getReportapiV3Campaigns"]>;
3612
+ /** Báo cáo hiệu quả chiến dịch (API V2) */
3613
+ getCampaignReportV2(...args: Parameters<this["getReportapiV2Campaigns"]>): ReturnType<this["getReportapiV2Campaigns"]>;
3614
+ /** Báo cáo hiệu quả quảng cáo (API V2) */
3615
+ getAdsReportV2(...args: Parameters<this["getReportapiV2Ads"]>): ReturnType<this["getReportapiV2Ads"]>;
3616
+ /** Báo cáo người dùng tiếp cận duy nhất (Unique Reach) */
3617
+ getUniqueUserReport(...args: Parameters<this["getReportapiV2UniqueUser"]>): ReturnType<this["getReportapiV2UniqueUser"]>;
3618
+ /** Báo cáo chiến dịch theo ngày/tháng (Legacy ZAAPI) */
3619
+ getCampaignReportLegacy(...args: Parameters<this["getZaapiCampaignReportcampaign"]>): ReturnType<this["getZaapiCampaignReportcampaign"]>;
3620
+ }
3621
+
3622
+ /**
3623
+ * Dịch vụ Quản lý Chuyển đổi & Zalo Pixel (Conversions, Standard Events, Lead Signals, Pixel Labels).
3624
+ */
3625
+
3626
+ declare class ZaloConversionsService {
3627
+ protected readonly client: ZaloSdkHttpClient;
3628
+ constructor(client: ZaloSdkHttpClient);
3629
+ createConversion(request: ZaloAdsCreateConversionRequest, options?: RequestOptions): Promise<ZaloAdsCreateConversionResponse>;
3630
+ deleteConversion(request: ZaloAdsDeleteConversionRequest, options?: RequestOptions): Promise<ZaloAdsDeleteConversionResponse>;
3631
+ getApiConversionAll(request?: ZaloAdsGetApiConversionAllRequest, options?: RequestOptions): Promise<ZaloAdsGetApiConversionAllResponse>;
3632
+ getApiConversionStandardEvents(request?: ZaloAdsGetApiConversionStandardEventsRequest, options?: RequestOptions): Promise<ZaloAdsGetApiConversionStandardEventsResponse>;
3633
+ listPersonalPixelLabels(request?: ZaloAdsListPersonalPixelLabelsRequest, options?: RequestOptions): Promise<ZaloAdsListPersonalPixelLabelsResponse>;
3634
+ /** Lấy danh sách tài khoản Zalo Official Account (OA) có dữ liệu chuyển đổi (Lead Signal) (`GET /api/ad/audience/leadSignal/oas`). */
3635
+ listLeadSignalOas(options?: RequestOptions): Promise<ZaloAdsListLeadSignalOasResponse>;
3636
+ /** Lấy danh sách rút gọn gồm ID và tên của toàn bộ các sự kiện chuyển đổi (Conversion) đã tạo trên tài khoản quảng cáo Zalo Ads (`GET /api/conversion/names`). */
3637
+ listConversionNames(request?: ZaloAdsListConversionNamesRequest, options?: RequestOptions): Promise<ZaloAdsListConversionNamesResponse>;
3638
+ /** Alias cho `listConversionNames` (`GET /api/conversion/names`). */
3639
+ getApiConversionNames(request?: ZaloAdsListConversionNamesRequest, options?: RequestOptions): Promise<ZaloAdsListConversionNamesResponse>;
3640
+ /** Danh sách toàn bộ sự kiện chuyển đổi */
3641
+ listConversions(...args: Parameters<this["getApiConversionAll"]>): ReturnType<this["getApiConversionAll"]>;
3642
+ /** Danh sách sự kiện chuyển đổi tiêu chuẩn */
3643
+ getConversionStandardEvents(...args: Parameters<this["getApiConversionStandardEvents"]>): ReturnType<this["getApiConversionStandardEvents"]>;
3644
+ }
3645
+
3646
+ /**
3647
+ * Dịch vụ Quản lý Quy tắc Tự động Zalo Ads (Automated Rules CRUD, Status, History).
3648
+ */
3649
+
3650
+ declare class ZaloAutomatedRulesService {
3651
+ protected readonly client: ZaloSdkHttpClient;
3652
+ constructor(client: ZaloSdkHttpClient);
3653
+ listAutomatedRules(request?: ZaloAdsListAutomatedRulesRequest, options?: RequestOptions): Promise<ZaloAdsListAutomatedRulesResponse>;
3654
+ createAutomatedRule(request: ZaloAdsCreateAutomatedRuleRequest, options?: RequestOptions): Promise<ZaloAdsCreateAutomatedRuleResponse>;
3655
+ updateAutomatedRule(request: ZaloAdsUpdateAutomatedRuleRequest, options?: RequestOptions): Promise<ZaloAdsUpdateAutomatedRuleResponse>;
3656
+ changeAutomatedRuleStatus(request: ZaloAdsChangeAutomatedRuleStatusRequest, options?: RequestOptions): Promise<ZaloAdsChangeAutomatedRuleStatusResponse>;
3657
+ getAutomatedRuleHistory(request: ZaloAdsGetAutomatedRuleHistoryRequest, options?: RequestOptions): Promise<ZaloAdsGetAutomatedRuleHistoryResponse>;
3658
+ deleteAutomatedRule(request: ZaloAdsDeleteAutomatedRuleRequest, options?: RequestOptions): Promise<ZaloAdsDeleteAutomatedRuleResponse>;
3659
+ }
3660
+
3661
+ /**
3662
+ * Dịch vụ Quản lý Kịch bản Tin nhắn OA (Message Flows get/create/update).
3663
+ */
3664
+
3665
+ declare class ZaloFlowsService {
3666
+ protected readonly client: ZaloSdkHttpClient;
3667
+ constructor(client: ZaloSdkHttpClient);
3668
+ listFlowsByOfficialAccount(request: ZaloAdsListFlowsByOfficialAccountRequest, options?: RequestOptions): Promise<ZaloAdsListFlowsByOfficialAccountResponse>;
3669
+ createFlow(request: ZaloAdsCreateFlowRequest, options?: RequestOptions): Promise<ZaloAdsCreateFlowResponse>;
3670
+ updateFlow(request: ZaloAdsUpdateFlowRequest, options?: RequestOptions): Promise<ZaloAdsUpdateFlowResponse>;
3671
+ }
3672
+
3673
+ /**
3674
+ * Zalo Ads Media & Assets Service (`https://ads.zalo.me`).
3675
+ * Quản lý kho hình ảnh, video, upload CDN, lưu thư viện Media, cắt ảnh (crop)
3676
+ * và cung cấp các tiện ích upload+save trọn gói cùng bộ validation độc lập cho backend.
3677
+ */
3678
+
3679
+ declare class ZaloMediaService {
3680
+ private readonly client;
3681
+ constructor(client: ZaloSdkHttpClient);
3682
+ /**
3683
+ * Lấy danh sách ảnh, video trong thư viện Zalo Ads theo khoảng thời gian (`GET /api/media/items`).
3684
+ */
3685
+ getApiMediaItems(request: ZaloAdsGetApiMediaItemsRequest, options?: RequestOptions): Promise<ZaloAdsGetApiMediaItemsResponse>;
3686
+ /**
3687
+ * Alias cho `getApiMediaItems`.
3688
+ */
3689
+ listMediaItems(request: ZaloAdsGetApiMediaItemsRequest, options?: RequestOptions): Promise<ZaloAdsGetApiMediaItemsResponse>;
3690
+ /**
3691
+ * Lấy các tệp do thành viên hiện tại quản lý trong tài khoản quảng cáo (`GET /api/member/files`).
3692
+ */
3693
+ getApiMemberFiles(request?: ZaloAdsGetApiMemberFilesRequest, options?: RequestOptions): Promise<ZaloAdsGetApiMemberFilesResponse>;
3694
+ /**
3695
+ * Alias cho `getApiMemberFiles`.
3696
+ */
3697
+ listMemberFiles(request?: ZaloAdsGetApiMemberFilesRequest, options?: RequestOptions): Promise<ZaloAdsGetApiMemberFilesResponse>;
3698
+ /**
3699
+ * Lấy danh sách nhóm tệp trong kho media (`GET /api/filegroups`).
3700
+ */
3701
+ getApiFilegroups(request?: ZaloAdsGetApiFilegroupsRequest, options?: RequestOptions): Promise<ZaloAdsGetApiFilegroupsResponse>;
3702
+ /**
3703
+ * Alias cho `getApiFilegroups`.
3704
+ */
3705
+ listFilegroups(request?: ZaloAdsGetApiFilegroupsRequest, options?: RequestOptions): Promise<ZaloAdsGetApiFilegroupsResponse>;
3706
+ /**
3707
+ * Lưu tài nguyên media vào thư viện Zalo Ads sau khi đã có URL ảnh/video và metadata (`POST /api/media/save`).
3708
+ * Phản hồi trả về `{ code: 0, data: <MediaId> }`.
3709
+ */
3710
+ postApiMediaSave(request: ZaloAdsPostApiMediaSaveRequest, options?: RequestOptions): Promise<ZaloAdsPostApiMediaSaveResponse>;
3711
+ /**
3712
+ * Alias cho `postApiMediaSave`.
3713
+ */
3714
+ saveMedia(request: ZaloAdsPostApiMediaSaveRequest, options?: RequestOptions): Promise<ZaloAdsPostApiMediaSaveResponse>;
3715
+ /**
3716
+ * Tải ảnh lên kho media của tài khoản quảng cáo (`POST /api/member/upload-image`).
3717
+ * Sử dụng multipart/form-data với trường `File` (chữ hoa). Trả về URL CDN Adtima.
3718
+ */
3719
+ postApiMemberUploadImage(request: ZaloAdsPostApiMemberUploadImageRequest, options?: RequestOptions): Promise<ZaloAdsPostApiMemberUploadImageResponse>;
3720
+ /**
3721
+ * Alias cho `postApiMemberUploadImage`.
3722
+ */
3723
+ uploadImage(request: ZaloAdsPostApiMemberUploadImageRequest, options?: RequestOptions): Promise<ZaloAdsPostApiMemberUploadImageResponse>;
3724
+ /**
3725
+ * Tải video lên kho media của tài khoản quảng cáo (`POST /api/member/upload-video`).
3726
+ * Định dạng chuẩn .MP4 (H.264), tối đa 150MB. Trả về URL video trên Adtima CDN.
3727
+ */
3037
3728
  uploadVideo(request: ZaloAdsUploadVideoRequest, options?: RequestOptions): Promise<ZaloAdsUploadVideoResponse>;
3729
+ /**
3730
+ * Tải ảnh và thiết lập vùng crop tạo asset dùng cho quảng cáo Zalo Ads (`POST /zaapi/UploadCrop`).
3731
+ */
3732
+ updateNewAds(request: ZaloAdsUpdateNewAdsRequest, options?: RequestOptions): Promise<ZaloAdsUpdateNewAdsResponse>;
3733
+ /**
3734
+ * Alias cho `updateNewAds` (`POST /zaapi/UploadCrop`).
3735
+ */
3736
+ uploadCrop(request: ZaloAdsUpdateNewAdsRequest, options?: RequestOptions): Promise<ZaloAdsUpdateNewAdsResponse>;
3737
+ /**
3738
+ * Method tiện ích trọn gói: Tự động tải ảnh lên CDN (`/api/member/upload-image`)
3739
+ * VÀ lưu vào Thư viện Zalo Ads (`/api/media/save`) trong cùng 1 lời gọi duy nhất.
3740
+ *
3741
+ * Trả về MediaId, URL CDN và kích thước để gắn ngay vào Creative/Quảng cáo.
3742
+ */
3743
+ uploadAndSaveImage(request: ZaloUploadAndSaveImageRequest, options?: RequestOptions): Promise<ZaloUploadAndSaveImageResult>;
3744
+ /**
3745
+ * Method tiện ích trọn gói cho Video: Tự động tải video lên CDN (`/api/member/upload-video`)
3746
+ * VÀ lưu vào Thư viện Zalo Ads (`/api/media/save`) để cấp MediaId.
3747
+ */
3748
+ uploadAndSaveVideo(request: ZaloUploadAndSaveVideoRequest, options?: RequestOptions): Promise<ZaloUploadAndSaveVideoResult>;
3749
+ /**
3750
+ * Kiểm tra tính hợp lệ của tệp Ảnh theo quy chuẩn Zalo Ads:
3751
+ * - "No file chosen": Bắt buộc phải có tệp.
3752
+ * - Dung lượng: Tối đa 2MB (2 * 1024 * 1024 bytes).
3753
+ * - Kích thước: Tối thiểu 150x150 pixels.
3754
+ * - Định dạng: Hỗ trợ .JPG, .JPEG, .PNG.
3755
+ *
3756
+ * Trả về `{ isValid: boolean, status: 'VALID' | 'INVALID', errors: string[], metadata: {...} }`.
3757
+ */
3758
+ validateImage(input: ValidateImageInput): MediaValidationResult;
3759
+ /**
3760
+ * Kiểm tra tính hợp lệ của tệp Video theo quy chuẩn Zalo Ads:
3761
+ * - "No file chosen": Bắt buộc phải có tệp.
3762
+ * - Định dạng: .MP4 H.264.
3763
+ * - Dung lượng: Tối đa 150MB (150 * 1024 * 1024 bytes).
3764
+ * - Thời lượng: Tối đa 60 giây.
3765
+ * - Tỉ lệ khung hình: 16:9, 9:16 hoặc 1:1.
3766
+ *
3767
+ * Trả về `{ isValid: boolean, status: 'VALID' | 'INVALID', errors: string[], metadata: {...} }`.
3768
+ */
3769
+ validateVideo(input: ValidateVideoInput): MediaValidationResult;
3770
+ }
3771
+
3772
+ /**
3773
+ * Zalo Ads API facade service.
3774
+ * Kế thừa toàn bộ API Chiến dịch & Quảng cáo từ `ZaloCampaignsService`,
3775
+ * đồng thời tích hợp và điều phối các module chuyên biệt:
3776
+ * - `account`: Quản lý tài khoản, phân quyền BA, thanh toán (`ZaloAccountService`)
3777
+ * - `audiences`: Nhóm đối tượng tùy chỉnh, Lookalike, Event/Lead Audiences (`ZaloAudiencesService`)
3778
+ * - `reports`: Báo cáo chiến dịch, quảng cáo, nhân khẩu học, báo cáo tùy chỉnh (`ZaloReportsService`)
3779
+ * - `conversions`: Sự kiện chuyển đổi, Zalo Pixel (`ZaloConversionsService`)
3780
+ * - `automatedRules`: Quy tắc tự động (`ZaloAutomatedRulesService`)
3781
+ * - `flows`: Kịch bản tin nhắn OA (`ZaloFlowsService`)
3782
+ * - `media`: Thư viện tài nguyên & tải lên ảnh/video (`ZaloMediaService`)
3783
+ */
3784
+
3785
+ declare class ZaloAdsService extends ZaloCampaignsService {
3786
+ readonly account: ZaloAccountService;
3787
+ readonly audiences: ZaloAudiencesService;
3788
+ readonly targeting: ZaloAudiencesService;
3789
+ readonly reports: ZaloReportsService;
3790
+ readonly conversions: ZaloConversionsService;
3791
+ readonly pixel: ZaloConversionsService;
3792
+ readonly automatedRules: ZaloAutomatedRulesService;
3793
+ readonly rules: ZaloAutomatedRulesService;
3794
+ readonly flows: ZaloFlowsService;
3795
+ readonly media: ZaloMediaService;
3796
+ readonly campaigns: ZaloCampaignsService;
3797
+ constructor(client: ZaloSdkHttpClient);
3798
+ getApiWhoami(request?: ZaloAdsGetApiWhoamiRequest, options?: RequestOptions): Promise<ZaloAdsGetApiWhoamiResponse>;
3799
+ getApiPaymentTransactionHistory(request: ZaloAdsGetApiPaymentTransactionHistoryRequest, options?: RequestOptions): Promise<ZaloAdsGetApiPaymentTransactionHistoryResponse>;
3800
+ getApiBaAccountAllaccessors(request?: ZaloAdsGetApiBaAccountAllaccessorsRequest, options?: RequestOptions): Promise<ZaloAdsGetApiBaAccountAllaccessorsResponse>;
3801
+ getApiBaAccountAllgrantedmembers(request?: ZaloAdsGetApiBaAccountAllgrantedmembersRequest, options?: RequestOptions): Promise<ZaloAdsGetApiBaAccountAllgrantedmembersResponse>;
3802
+ listAgencyCustomersWithBudget(request?: ZaloAdsListAgencyCustomersWithBudgetRequest, options?: RequestOptions): Promise<ZaloAdsListAgencyCustomersWithBudgetResponse>;
3803
+ getApiNotifiesHeader(request?: ZaloAdsGetApiNotifiesHeaderRequest, options?: RequestOptions): Promise<ZaloAdsGetApiNotifiesHeaderResponse>;
3804
+ getApiLpNews(request?: ZaloAdsGetApiLpNewsRequest, options?: RequestOptions): Promise<ZaloAdsGetApiLpNewsResponse>;
3805
+ postApiAdEstimateaudience(request: ZaloAdsPostApiAdEstimateaudienceRequest, options?: RequestOptions): Promise<ZaloAdsPostApiAdEstimateaudienceResponse>;
3806
+ getApiAdGetlistadadvancetargeting(request?: ZaloAdsGetApiAdGetlistadadvancetargetingRequest, options?: RequestOptions): Promise<ZaloAdsGetApiAdGetlistadadvancetargetingResponse>;
3807
+ getApiCustomAudienceAll(request?: ZaloAdsGetApiCustomAudienceAllRequest, options?: RequestOptions): Promise<ZaloAdsGetApiCustomAudienceAllResponse>;
3808
+ createCustomAudience(request: ZaloAdsCreateCustomAudienceRequest, options?: RequestOptions): Promise<ZaloAdsCreateCustomAudienceResponse>;
3809
+ deleteCustomAudience(request: ZaloAdsDeleteCustomAudienceRequest, options?: RequestOptions): Promise<ZaloAdsDeleteCustomAudienceResponse>;
3810
+ uploadCustomAudiencePhoneList(request: ZaloAdsUploadCustomAudiencePhoneListRequest, options?: RequestOptions): Promise<ZaloAdsUploadCustomAudiencePhoneListResponse>;
3811
+ /** Tạo mới 'Nhóm đối tượng đã lưu' (`caType = 1` - `DEFAULT`) trên Zalo Ads (`POST /api/ad/audience`). */
3812
+ createSavedAudience(request: ZaloAdsCreateSavedAudienceRequest, options?: RequestOptions): Promise<ZaloAdsCreateSavedAudienceResponse>;
3813
+ /** Tạo mới Nhóm đối tượng từ danh sách Số điện thoại (`caType = 3` - `PHONE_LIST`). */
3814
+ createPhoneAudience(request: ZaloAdsCreatePhoneAudienceRequest, options?: RequestOptions): Promise<ZaloAdsCreatePhoneAudienceResponse>;
3815
+ /** Tạo mới Nhóm đối tượng tương tự Lookalike (`caType = 6` - `LOOKALIKE`). */
3816
+ createLookalikeAudience(request: ZaloAdsCreateLookalikeAudienceRequest, options?: RequestOptions): Promise<ZaloAdsCreateLookalikeAudienceResponse>;
3817
+ /** Tạo mới Nhóm đối tượng phát sinh sự kiện trên Zalo Form (`caType = 12` - `FORM_EVENT_AUDIENCE`). */
3818
+ createFormEventAudience(request: ZaloAdsCreateFormEventAudienceRequest, options?: RequestOptions): Promise<ZaloAdsCreateFormEventAudienceResponse>;
3819
+ /** Tạo mới Nhóm đối tượng phát sinh sự kiện trên Kịch bản Tin nhắn OA (`caType = 11` - `MESSAGE_AUDIENCE`). */
3820
+ createMessageOaEventAudience(request: ZaloAdsCreateMessageOaEventAudienceRequest, options?: RequestOptions): Promise<ZaloAdsCreateMessageOaEventAudienceResponse>;
3821
+ /** 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`). */
3822
+ createMessagePersonalEventAudience(request: ZaloAdsCreateMessagePersonalEventAudienceRequest, options?: RequestOptions): Promise<ZaloAdsCreateMessagePersonalEventAudienceResponse>;
3823
+ /** Tạo mới Nhóm đối tượng từ Trung tâm Lead - Zalo Form (`caType = 10` - `FORM_AUDIENCE`). */
3824
+ createFormLeadAudience(request: ZaloAdsCreateFormLeadAudienceRequest, options?: RequestOptions): Promise<ZaloAdsCreateFormLeadAudienceResponse>;
3825
+ /** Tạo mới Nhóm đối tượng từ Trung tâm Lead - Commerce Form (`caType = 15` - `COMMERCE_FORM_AUDIENCE`). */
3826
+ createCommerceFormAudience(request: ZaloAdsCreateCommerceFormAudienceRequest, options?: RequestOptions): Promise<ZaloAdsCreateCommerceFormAudienceResponse>;
3827
+ /** Tạo mới Nhóm đối tượng từ Trung tâm Lead - Kịch bản Tin nhắn OA (`caType = 13` - `MESSAGE_OA_AUDIENCE`). */
3828
+ createMessageOaLeadAudience(request: ZaloAdsCreateMessageOaLeadAudienceRequest, options?: RequestOptions): Promise<ZaloAdsCreateMessageOaLeadAudienceResponse>;
3829
+ /** Tạo mới Nhóm đối tượng từ Dữ liệu chuyển đổi Lead Signal (`caType = 16` - `LEAD_SIGNAL_AUDIENCE`). */
3830
+ createLeadSignalAudience(request: ZaloAdsCreateLeadSignalAudienceRequest, options?: RequestOptions): Promise<ZaloAdsCreateLeadSignalAudienceResponse>;
3831
+ getReportapiV2Ads(request: ZaloAdsGetReportapiV2AdsRequest, options?: RequestOptions): Promise<ZaloAdsGetReportapiV2AdsResponse>;
3832
+ getReportapiV2Campaigns(request?: ZaloAdsGetReportapiV2CampaignsRequest, options?: RequestOptions): Promise<ZaloAdsGetReportapiV2CampaignsResponse>;
3833
+ getReportapiV2UniqueUser(request: ZaloAdsGetReportapiV2UniqueUserRequest, options?: RequestOptions): Promise<ZaloAdsGetReportapiV2UniqueUserResponse>;
3834
+ getReportapiV3Campaigns(request: ZaloAdsGetReportapiV3CampaignsRequest, options?: RequestOptions): Promise<ZaloAdsGetReportapiV3CampaignsResponse>;
3835
+ getReportOverview(request: ZaloAdsGetReportOverviewRequest, options?: RequestOptions): Promise<ZaloAdsGetReportOverviewResponse>;
3836
+ getDemographicsReport(request: ZaloAdsGetDemographicsReportRequest, options?: RequestOptions): Promise<ZaloAdsGetDemographicsReportResponse>;
3837
+ getZaapiCampaignReportcampaign(request: ZaloAdsGetZaapiCampaignReportcampaignRequest, options?: RequestOptions): Promise<ZaloAdsGetZaapiCampaignReportcampaignResponse>;
3838
+ listCustomReports(request?: ZaloAdsListCustomReportsRequest, options?: RequestOptions): Promise<ZaloAdsListCustomReportsResponse>;
3038
3839
  upsertCustomReport(request: ZaloAdsUpsertCustomReportRequest, options?: RequestOptions): Promise<ZaloAdsUpsertCustomReportResponse>;
3840
+ deleteCustomReport(request: ZaloAdsDeleteCustomReportRequest, options?: RequestOptions): Promise<ZaloAdsDeleteCustomReportResponse>;
3841
+ listReportFilters(request: ZaloAdsListReportFiltersRequest, options?: RequestOptions): Promise<ZaloAdsListReportFiltersResponse>;
3842
+ createConversion(request: ZaloAdsCreateConversionRequest, options?: RequestOptions): Promise<ZaloAdsCreateConversionResponse>;
3843
+ deleteConversion(request: ZaloAdsDeleteConversionRequest, options?: RequestOptions): Promise<ZaloAdsDeleteConversionResponse>;
3844
+ getApiConversionAll(request?: ZaloAdsGetApiConversionAllRequest, options?: RequestOptions): Promise<ZaloAdsGetApiConversionAllResponse>;
3845
+ getApiConversionStandardEvents(request?: ZaloAdsGetApiConversionStandardEventsRequest, options?: RequestOptions): Promise<ZaloAdsGetApiConversionStandardEventsResponse>;
3846
+ listPersonalPixelLabels(request?: ZaloAdsListPersonalPixelLabelsRequest, options?: RequestOptions): Promise<ZaloAdsListPersonalPixelLabelsResponse>;
3847
+ /** Lấy danh sách tài khoản Zalo Official Account (OA) có dữ liệu chuyển đổi (Lead Signal) (`GET /api/ad/audience/leadSignal/oas`). */
3848
+ listLeadSignalOas(options?: RequestOptions): Promise<ZaloAdsListLeadSignalOasResponse>;
3849
+ /** Lấy danh sách rút gọn gồm ID và tên của toàn bộ các sự kiện chuyển đổi (Conversion) đã tạo trên tài khoản quảng cáo Zalo Ads (`GET /api/conversion/names`). */
3850
+ listConversionNames(request?: ZaloAdsListConversionNamesRequest, options?: RequestOptions): Promise<ZaloAdsListConversionNamesResponse>;
3851
+ /** Alias cho `listConversionNames` (`GET /api/conversion/names`). */
3852
+ getApiConversionNames(request?: ZaloAdsListConversionNamesRequest, options?: RequestOptions): Promise<ZaloAdsListConversionNamesResponse>;
3853
+ listAutomatedRules(request?: ZaloAdsListAutomatedRulesRequest, options?: RequestOptions): Promise<ZaloAdsListAutomatedRulesResponse>;
3854
+ createAutomatedRule(request: ZaloAdsCreateAutomatedRuleRequest, options?: RequestOptions): Promise<ZaloAdsCreateAutomatedRuleResponse>;
3855
+ updateAutomatedRule(request: ZaloAdsUpdateAutomatedRuleRequest, options?: RequestOptions): Promise<ZaloAdsUpdateAutomatedRuleResponse>;
3856
+ changeAutomatedRuleStatus(request: ZaloAdsChangeAutomatedRuleStatusRequest, options?: RequestOptions): Promise<ZaloAdsChangeAutomatedRuleStatusResponse>;
3857
+ getAutomatedRuleHistory(request: ZaloAdsGetAutomatedRuleHistoryRequest, options?: RequestOptions): Promise<ZaloAdsGetAutomatedRuleHistoryResponse>;
3858
+ deleteAutomatedRule(request: ZaloAdsDeleteAutomatedRuleRequest, options?: RequestOptions): Promise<ZaloAdsDeleteAutomatedRuleResponse>;
3859
+ listFlowsByOfficialAccount(request: ZaloAdsListFlowsByOfficialAccountRequest, options?: RequestOptions): Promise<ZaloAdsListFlowsByOfficialAccountResponse>;
3860
+ createFlow(request: ZaloAdsCreateFlowRequest, options?: RequestOptions): Promise<ZaloAdsCreateFlowResponse>;
3861
+ updateFlow(request: ZaloAdsUpdateFlowRequest, options?: RequestOptions): Promise<ZaloAdsUpdateFlowResponse>;
3862
+ getApiFilegroups(request?: ZaloAdsGetApiFilegroupsRequest, options?: RequestOptions): Promise<ZaloAdsGetApiFilegroupsResponse>;
3863
+ getApiMediaItems(request: ZaloAdsGetApiMediaItemsRequest, options?: RequestOptions): Promise<ZaloAdsGetApiMediaItemsResponse>;
3864
+ getApiMemberFiles(request?: ZaloAdsGetApiMemberFilesRequest, options?: RequestOptions): Promise<ZaloAdsGetApiMemberFilesResponse>;
3865
+ postApiMediaSave(request: ZaloAdsPostApiMediaSaveRequest, options?: RequestOptions): Promise<ZaloAdsPostApiMediaSaveResponse>;
3866
+ postApiMemberUploadImage(request: ZaloAdsPostApiMemberUploadImageRequest, options?: RequestOptions): Promise<ZaloAdsPostApiMemberUploadImageResponse>;
3867
+ /** Alias tiện lợi cho `postApiMemberUploadImage` (`POST /api/member/upload-image`). */
3868
+ uploadImage(request: ZaloAdsPostApiMemberUploadImageRequest, options?: RequestOptions): Promise<ZaloAdsPostApiMemberUploadImageResponse>;
3869
+ uploadVideo(request: ZaloAdsUploadVideoRequest, options?: RequestOptions): Promise<ZaloAdsUploadVideoResponse>;
3870
+ /**
3871
+ * Kiểm tra tính hợp lệ của tệp Ảnh theo quy chuẩn Zalo Ads (độc lập cho backend).
3872
+ * Tiêu chí: Có file, Dung lượng tối đa 2MB, Kích thước tối thiểu 150x150, Định dạng JPG/PNG.
3873
+ */
3874
+ validateImage(input: ValidateImageInput): MediaValidationResult;
3875
+ /**
3876
+ * Kiểm tra tính hợp lệ của tệp Video theo quy chuẩn Zalo Ads (độc lập cho backend).
3877
+ * Tiêu chí: Có file, Định dạng .MP4 H.264, Dung lượng tối đa 150MB, Thời lượng tối đa 60s, Tỉ lệ 16:9, 9:16 hoặc 1:1.
3878
+ */
3879
+ validateVideo(input: ValidateVideoInput): MediaValidationResult;
3039
3880
  }
3040
3881
 
3041
3882
  /** Lấy cấu hình kết nối chat widget của Zalo Official Account, gồm loại đăng nhập và các endpoint dịch vụ. Đây là auth-sensitive detail tool thuộc lane zalo-ads-chat; dùng khi đã có OA ID và cần cấu hình kết nối chat hợp lệ. Dữ liệu khóa đăng nhập dạng opaque trong phản hồi không được hiển thị hoặc lưu trữ ngoài luồng bảo mật. */
@@ -3310,17 +4151,17 @@ type ZaloFormsListManagedFormsByOfficialAccountResponse = {
3310
4151
  /** Tổng số form khớp với OA và khoảng thời gian. */
3311
4152
  total: number;
3312
4153
  };
3313
- /** Lấy danh sách form có thể chọn của một Official Account theo thời gian, loại form và chế độ commerce. Đây là entry tool thuộc lane zalo-ads-form; dùng khi cần lấy data[].id làm formId để lọc lead. data[].status: 1 = Tạo mới, 2 = Không chạy - Form chờ duyệt, 3 = Đang mở, 4 = Không chạy - Form bị từ chối. */
4154
+ /** Lấy danh sách biểu mẫu (Zalo Form hoặc Commerce Form) của một Official Account theo khoảng thời gian, loại form (`type`) và chế độ thương mại (`isCommerce`). Phân loại: (1) Zalo Form: `type=1, isCommerce=false`; (2) Commerce Form: `type=5, isCommerce=true`. */
3314
4155
  type ZaloFormsListSimpleFormsByOfficialAccountRequest = {
3315
- /** ID Official Account, không phải formId. */
4156
+ /** ID Official Account dạng mã hóa chuỗi trên form.ads.zalo.me (ví dụ: "J4UB9MRE497YDQKKK"). */
3316
4157
  oaId: string;
3317
- /** Mã lọc loại form upstream; đã quan sát giá trị 1, chưa xác minh mapping đầy đủ. */
3318
- type: number;
4158
+ /** Mã phân loại biểu mẫu: 1 = Zalo Form (isCommerce=false), 5 = Commerce Form (isCommerce=true). */
4159
+ type: 1 | 5 | number;
3319
4160
  /** Unix epoch giây, cuối khoảng. */
3320
4161
  toTime: number;
3321
- /** Unix epoch giây, đầu khoảng. */
4162
+ /** Unix epoch giây, đầu khoảng (mặc định: 1588266000). */
3322
4163
  fromTime: number;
3323
- /** Chế độ lọc commerce. */
4164
+ /** Chế độ lọc commerce: false cho Zalo Form (type=1), true cho Commerce Form (type=5). */
3324
4165
  isCommerce: boolean;
3325
4166
  };
3326
4167
  type ZaloFormsListSimpleFormsByOfficialAccountResponse = {
@@ -3328,7 +4169,7 @@ type ZaloFormsListSimpleFormsByOfficialAccountResponse = {
3328
4169
  /** 0 là thành công. */
3329
4170
  code: number;
3330
4171
  data: Array<{
3331
- /** ID form, dùng làm formIds khi lọc lead form. */
4172
+ /** ID form, dùng làm formIds khi lọc lead form hoặc tạo nhóm đối tượng. */
3332
4173
  id: string;
3333
4174
  /** ID Official Account. */
3334
4175
  oaId: string;
@@ -3343,24 +4184,51 @@ type ZaloFormsListSimpleFormsByOfficialAccountResponse = {
3343
4184
  createAt: number;
3344
4185
  formName: string;
3345
4186
  oaAvatar: string;
3346
- /** Đã quan sát 0; chưa có mapping đáng tin cậy. */
4187
+ /** Cờ cấu hình xét duyệt của biểu mẫu (mặc định là 0). */
3347
4188
  admission: number;
3348
- /** Chuỗi số. */
4189
+ /** Chuỗi số tổng lượt xem. */
3349
4190
  totalView: string;
3350
4191
  /** Unix epoch giây. */
3351
4192
  updatedAt: number;
3352
4193
  coverPhoto: string;
3353
4194
  description: string;
3354
4195
  isAnonymous: boolean;
3355
- /** Chuỗi số. */
4196
+ /** Chuỗi số tổng lượt gửi. */
3356
4197
  totalSubmit: string;
3357
- /** Chuỗi số. */
4198
+ /** Chuỗi số tổng lượt nhận form. */
3358
4199
  totalGetForm: string;
3359
4200
  /** Giữ nguyên chữ hoa/thường của upstream. */
3360
4201
  RequiresUniqueResponse: boolean;
4202
+ /** Mã loại giao diện mẫu đối với Commerce Form (isCommerce=true, ví dụ: 7). */
4203
+ templateType?: number;
4204
+ /** Thời điểm gửi form gần nhất (Unix epoch giây). */
4205
+ lastSubmitTime?: number;
3361
4206
  }>;
3362
4207
  total: number;
3363
4208
  };
4209
+ /** Lấy danh sách kịch bản tin nhắn hội thoại (Conversation Scenarios) của một Official Account (`oaId`) trên hệ thống Lead Center (`form.ads.zalo.me`). */
4210
+ type ZaloFormsListScenariosByOfficialAccountRequest = {
4211
+ /** ID Official Account dạng mã hóa chuỗi trên form.ads.zalo.me (ví dụ: "J4UB9MRE497YDQKKK"). */
4212
+ oaId: string;
4213
+ };
4214
+ type ZaloFormsScenarioItem = {
4215
+ /** ID định danh kịch bản tin nhắn (ví dụ: "bf34d907e142081c5153"). Dùng làm sceneIds khi lọc lead hội thoại. */
4216
+ id: string;
4217
+ /** ID Official Account sở hữu kịch bản. */
4218
+ oaId: string;
4219
+ /** Tên kịch bản tin nhắn hiển thị trên giao diện (ví dụ: "Kịch bản chào hỏi"). */
4220
+ scenarioName: string;
4221
+ /** Thời điểm tạo kịch bản (Unix epoch giây). */
4222
+ createAt: number;
4223
+ /** Thời điểm cập nhật kịch bản gần nhất (Unix epoch giây). */
4224
+ updateAt: number;
4225
+ };
4226
+ type ZaloFormsListScenariosByOfficialAccountResponse = {
4227
+ msg: string;
4228
+ total?: number;
4229
+ code: number;
4230
+ data?: Array<ZaloFormsScenarioItem>;
4231
+ };
3364
4232
  /** Cập nhật chu kỳ thông báo lead cho một Zalo Form thuộc Official Account đã chọn. Đây là mutation tool thuộc lane zalo-ads-form; dùng khi cần đổi tần suất thông báo nhưng không thay đổi trạng thái bật/tắt, vì enable và disable là hai thao tác riêng. */
3365
4233
  type ZaloFormsUpdateFormLeadNotificationIntervalRequest = {
3366
4234
  /** ID Official Account sở hữu Form; không thay bằng formId. */
@@ -3436,13 +4304,31 @@ declare class ZaloFormsService {
3436
4304
  listFormLeads(request: ZaloFormsListFormLeadsRequest, options?: RequestOptions): Promise<ZaloFormsListFormLeadsResponse>;
3437
4305
  listManagedFormsByOfficialAccount(request: ZaloFormsListManagedFormsByOfficialAccountRequest, options?: RequestOptions): Promise<ZaloFormsListManagedFormsByOfficialAccountResponse>;
3438
4306
  listSimpleFormsByOfficialAccount(request: ZaloFormsListSimpleFormsByOfficialAccountRequest, options?: RequestOptions): Promise<ZaloFormsListSimpleFormsByOfficialAccountResponse>;
4307
+ listScenariosByOfficialAccount(request: ZaloFormsListScenariosByOfficialAccountRequest, options?: RequestOptions): Promise<ZaloFormsListScenariosByOfficialAccountResponse>;
3439
4308
  updateFormLeadNotificationInterval(request: ZaloFormsUpdateFormLeadNotificationIntervalRequest, options?: RequestOptions): Promise<ZaloFormsUpdateFormLeadNotificationIntervalResponse>;
3440
4309
  }
3441
4310
 
3442
- /** Zalo Instant Pages API service. Each API explicitly selects its own request transport. */
3443
-
3444
4311
  declare class ZaloInstantPagesService {
3445
4312
  private readonly client;
4313
+ /**
4314
+ * Bộ công cụ kiểm tra tính hợp lệ dữ liệu (Standalone Validators) cho 13 API Instant Pages.
4315
+ * Dùng ở backend (NestJS/Express/Fastify), middleware hoặc AI Agent để verify payload trước khi gọi SDK.
4316
+ */
4317
+ static readonly validator: {
4318
+ validateCloneInstantPage: typeof validateCloneInstantPageRequest;
4319
+ validateGetInstantPageDetail: typeof validateGetInstantPageDetailRequest;
4320
+ validateGetInstantPageSharedUser: typeof validateGetInstantPageSharedUserRequest;
4321
+ validateListInstantPageEditHistory: typeof validateListInstantPageEditHistoryRequest;
4322
+ validateListInstantPageFormRecords: typeof validateListInstantPageFormRecordsRequest;
4323
+ validateListInstantPageShares: typeof validateListInstantPageSharesRequest;
4324
+ validateListInstantPageUsers: typeof validateListInstantPageUsersRequest;
4325
+ validateListMiniPageTemplates: typeof validateListMiniPageTemplatesRequest;
4326
+ validateSearchInstantPages: typeof validateSearchInstantPagesRequest;
4327
+ validateUpdateInstantPage: typeof validateUpdateInstantPageRequest;
4328
+ validateListInstantPageLeads: typeof validateListInstantPageLeadsRequest;
4329
+ validateListOfficialAccounts: typeof validateListOfficialAccountsRequest;
4330
+ validateUpsertInstantPageForm: typeof validateUpsertInstantPageFormRequest;
4331
+ };
3446
4332
  constructor(client: ZaloSdkHttpClient);
3447
4333
  cloneInstantPage(request: ZaloInstantPagesCloneInstantPageRequest, options?: RequestOptions): Promise<ZaloInstantPagesCloneInstantPageResponse>;
3448
4334
  getInstantPageDetail(request: ZaloInstantPagesGetInstantPageDetailRequest, options?: RequestOptions): Promise<ZaloInstantPagesGetInstantPageDetailResponse>;
@@ -3771,6 +4657,17 @@ declare class ZaloWidgetApiService {
3771
4657
  declare class ZaloAdsSdk {
3772
4658
  private readonly client;
3773
4659
  readonly ads: ZaloAdsService;
4660
+ readonly campaigns: ZaloCampaignsService;
4661
+ readonly account: ZaloAccountService;
4662
+ readonly audiences: ZaloAudiencesService;
4663
+ readonly targeting: ZaloAudiencesService;
4664
+ readonly reports: ZaloReportsService;
4665
+ readonly conversions: ZaloConversionsService;
4666
+ readonly pixel: ZaloConversionsService;
4667
+ readonly automatedRules: ZaloAutomatedRulesService;
4668
+ readonly rules: ZaloAutomatedRulesService;
4669
+ readonly flows: ZaloFlowsService;
4670
+ readonly media: ZaloMediaService;
3774
4671
  readonly forms: ZaloFormsService;
3775
4672
  readonly instantPages: ZaloInstantPagesService;
3776
4673
  readonly profileAds: ZaloProfileAdsService;
@@ -3931,4 +4828,51 @@ declare class ZaloAdsIntegrationManager {
3931
4828
  get poolSize(): number;
3932
4829
  }
3933
4830
 
3934
- export { ALL_ZALO_ADS_DOMAINS, type BodyType, type FileDownloadResponse, type FileInput, type HttpMethod, MemoryZaloSessionStore, type MemoryZaloSessionStoreOptions, type OperationDefinition, RedisZaloSessionStore, type RedisZaloSessionStoreOptions, type RequestOptions, TieredZaloSessionStore, type TieredZaloSessionStoreOptions, 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 ZaloAdsConversionElementSelectorDto, type ZaloAdsConversionItemDto, type ZaloAdsCreateArticleCampaignRequest, type ZaloAdsCreateArticleCampaignResponse, type ZaloAdsCreateAutomatedRuleRequest, type ZaloAdsCreateAutomatedRuleResponse, type ZaloAdsCreateCommerceCampaignRequest, type ZaloAdsCreateCommerceCampaignResponse, type ZaloAdsCreateConversionRequest, type ZaloAdsCreateConversionResponse, type ZaloAdsCreateCustomAudienceRequest, type ZaloAdsCreateCustomAudienceResponse, type ZaloAdsCreateDisplayCampaignRequest, type ZaloAdsCreateDisplayCampaignResponse, type ZaloAdsCreateEcommerceCampaignRequest, type ZaloAdsCreateEcommerceCampaignResponse, ZaloAdsCreateFlowRequest, ZaloAdsCreateFlowResponse, type ZaloAdsCreateFormCampaignRequest, type ZaloAdsCreateFormCampaignResponse, type ZaloAdsCreateFormPayloadDto, type ZaloAdsCreateFormRequest, type ZaloAdsCreateFormResponse, type ZaloAdsCreateMessageCampaignRequest, type ZaloAdsCreateMessageCampaignResponse, type ZaloAdsCreateOaCampaignRequest, type ZaloAdsCreateOaCampaignResponse, type ZaloAdsCreateOfficialAccountCampaignRequest, type ZaloAdsCreateOfficialAccountCampaignResponse, ZaloAdsCreatePostCampaignRequest, ZaloAdsCreatePostCampaignResponse, 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 ZaloAdsDomain, type ZaloAdsFileGroupItemDto, ZaloAdsFlowButtonDto, ZaloAdsFlowChildMessageDto, ZaloAdsFlowMessageDto, type ZaloAdsFormAnswerDto, 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 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 ZaloAdsListAgencyCustomersWithBudgetRequest, type ZaloAdsListAgencyCustomersWithBudgetResponse, type ZaloAdsListAutomatedRulesRequest, type ZaloAdsListAutomatedRulesResponse, type ZaloAdsListCustomReportsRequest, type ZaloAdsListCustomReportsResponse, type ZaloAdsListFlowsByOfficialAccountRequest, type ZaloAdsListFlowsByOfficialAccountResponse, type ZaloAdsListFormsByOfficialAccountRequest, type ZaloAdsListFormsByOfficialAccountResponse, type ZaloAdsListMiniPagesByTemplateRequest, type ZaloAdsListMiniPagesByTemplateResponse, type ZaloAdsListPersonalPixelLabelsRequest, type ZaloAdsListPersonalPixelLabelsResponse, type ZaloAdsLpNewsButtonDto, type ZaloAdsLpNewsItemDto, type ZaloAdsMediaSavePayloadDto, type ZaloAdsMediaSaveSettingsDto, type ZaloAdsMemberFileItemDto, ZaloAdsMessageAdUpdateDataDto, type ZaloAdsNotifyHeaderItemDto, type ZaloAdsOwnedArticleItemDto, type ZaloAdsOwnedPageExtraInfoDto, type ZaloAdsOwnedPageItemDto, type ZaloAdsOwnedPageLocationDto, type ZaloAdsPageConfigDto, type ZaloAdsPaymentTransactionItemDto, 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 ZaloAuthDomain, ZaloAuthManager, type ZaloChatWidgetGetChatWidgetLoginConfigRequest, type ZaloChatWidgetGetChatWidgetLoginConfigResponse, type ZaloChatWidgetGetLoginConfigRequest, type ZaloChatWidgetGetLoginConfigResponse, ZaloChatWidgetService, type ZaloDomainSession, 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 ZaloFormsListSimpleFormsByOfficialAccountRequest, type ZaloFormsListSimpleFormsByOfficialAccountResponse, ZaloFormsService, type ZaloFormsUpdateFormLeadNotificationIntervalRequest, type ZaloFormsUpdateFormLeadNotificationIntervalResponse, 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, type ZaloIntegrationCredentials, type ZaloIntegrationVerificationResult, 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, type ZaloSdkAuth, type ZaloSdkAuthContext, ZaloSdkError, ZaloSdkHttpClient, type ZaloSessionStore, type ZaloSsoAuthOptions, 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 };
4831
+ /**
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.
4835
+ *
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.
4838
+ */
4839
+
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. */
4843
+ isValid: boolean;
4844
+ /** Danh sách các thông báo lỗi chi tiết. Rỗng nếu isValid = true. */
4845
+ errors: string[];
4846
+ /** Dữ liệu sau khi làm sạch và ép kiểu chuẩn (nếu hợp lệ). */
4847
+ data?: T;
4848
+ }
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;
4876
+ };
4877
+
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 };