@zernio/node 0.2.1494 → 0.2.1496

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
@@ -21801,6 +21801,11 @@ type WebhookPayloadMessage = {
21801
21801
  * supported). `text` on those messages is the fixed
21802
21802
  * `[Unsupported message]` placeholder.
21803
21803
  *
21804
+ * Also present with code 131052 when Meta could not download
21805
+ * media the sender attached, except on numbers also using the
21806
+ * WhatsApp Business app. The file is not available, so the sender
21807
+ * has to send it again.
21808
+ *
21804
21809
  */
21805
21810
  unsupported?: {
21806
21811
  /**
@@ -24651,7 +24656,16 @@ type GetAnalyticsError = ({
24651
24656
  code?: string;
24652
24657
  } | {
24653
24658
  error?: string;
24654
- } | AnalyticsSinglePostResponse);
24659
+ } | AnalyticsSinglePostResponse | {
24660
+ error?: string;
24661
+ details?: {
24662
+ currentCount?: number;
24663
+ limit?: number;
24664
+ retryAfterSeconds?: number;
24665
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
24666
+ window?: string;
24667
+ };
24668
+ });
24655
24669
  type GetAnalyticsDeltaData = {
24656
24670
  query?: {
24657
24671
  /**
@@ -24681,6 +24695,15 @@ type GetAnalyticsDeltaError = (ErrorResponse | {
24681
24695
  code?: string;
24682
24696
  } | {
24683
24697
  error?: string;
24698
+ } | {
24699
+ error?: string;
24700
+ details?: {
24701
+ currentCount?: number;
24702
+ limit?: number;
24703
+ retryAfterSeconds?: number;
24704
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
24705
+ window?: string;
24706
+ };
24684
24707
  });
24685
24708
  type GetYouTubeChannelInsightsData = {
24686
24709
  query: {
@@ -25497,6 +25520,15 @@ type GetDailyMetricsResponse = ({
25497
25520
  type GetDailyMetricsError = (ErrorResponse | {
25498
25521
  error?: string;
25499
25522
  code?: string;
25523
+ } | {
25524
+ error?: string;
25525
+ details?: {
25526
+ currentCount?: number;
25527
+ limit?: number;
25528
+ retryAfterSeconds?: number;
25529
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
25530
+ window?: string;
25531
+ };
25500
25532
  });
25501
25533
  type GetAnalyticsDashboardData = {
25502
25534
  query: {
@@ -25563,7 +25595,16 @@ type GetAnalyticsDashboardResponse = ({
25563
25595
  */
25564
25596
  dataAsOf: (string) | null;
25565
25597
  });
25566
- type GetAnalyticsDashboardError = (ErrorResponse | unknown);
25598
+ type GetAnalyticsDashboardError = (ErrorResponse | unknown | {
25599
+ error?: string;
25600
+ details?: {
25601
+ currentCount?: number;
25602
+ limit?: number;
25603
+ retryAfterSeconds?: number;
25604
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
25605
+ window?: string;
25606
+ };
25607
+ });
25567
25608
  type GetBestTimeToPostData = {
25568
25609
  query?: {
25569
25610
  /**
@@ -25607,6 +25648,15 @@ type GetBestTimeToPostResponse = ({
25607
25648
  type GetBestTimeToPostError = (ErrorResponse | {
25608
25649
  error?: string;
25609
25650
  requiresAddon?: boolean;
25651
+ } | {
25652
+ error?: string;
25653
+ details?: {
25654
+ currentCount?: number;
25655
+ limit?: number;
25656
+ retryAfterSeconds?: number;
25657
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
25658
+ window?: string;
25659
+ };
25610
25660
  });
25611
25661
  type GetContentDecayData = {
25612
25662
  query?: {
@@ -25651,6 +25701,15 @@ type GetContentDecayResponse = ({
25651
25701
  type GetContentDecayError = (unknown | ErrorResponse | {
25652
25702
  error?: string;
25653
25703
  requiresAddon?: boolean;
25704
+ } | {
25705
+ error?: string;
25706
+ details?: {
25707
+ currentCount?: number;
25708
+ limit?: number;
25709
+ retryAfterSeconds?: number;
25710
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
25711
+ window?: string;
25712
+ };
25654
25713
  });
25655
25714
  type GetPostingFrequencyData = {
25656
25715
  query?: {
@@ -25696,6 +25755,15 @@ type GetPostingFrequencyResponse = ({
25696
25755
  type GetPostingFrequencyError = (ErrorResponse | {
25697
25756
  error?: string;
25698
25757
  requiresAddon?: boolean;
25758
+ } | {
25759
+ error?: string;
25760
+ details?: {
25761
+ currentCount?: number;
25762
+ limit?: number;
25763
+ retryAfterSeconds?: number;
25764
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
25765
+ window?: string;
25766
+ };
25699
25767
  });
25700
25768
  type GetLedgerBalancesData = {
25701
25769
  query: {
@@ -26951,6 +27019,15 @@ type GetPostTimelineError = ({
26951
27019
  } | ErrorResponse | {
26952
27020
  error?: string;
26953
27021
  code?: string;
27022
+ } | {
27023
+ error?: string;
27024
+ details?: {
27025
+ currentCount?: number;
27026
+ limit?: number;
27027
+ retryAfterSeconds?: number;
27028
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
27029
+ window?: string;
27030
+ };
26954
27031
  });
26955
27032
  type RunGoogleAnalyticsReportData = {
26956
27033
  body: (GoogleAnalyticsReportFields & {
@@ -27081,6 +27158,15 @@ type ListTrackingWindowsResponse = ({
27081
27158
  type ListTrackingWindowsError = (ErrorResponse | {
27082
27159
  error?: string;
27083
27160
  code?: string;
27161
+ } | {
27162
+ error?: string;
27163
+ details?: {
27164
+ currentCount?: number;
27165
+ limit?: number;
27166
+ retryAfterSeconds?: number;
27167
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
27168
+ window?: string;
27169
+ };
27084
27170
  });
27085
27171
  type GetTrackingWindowData = {
27086
27172
  path: {
@@ -27091,6 +27177,15 @@ type GetTrackingWindowResponse = (TrackingWindowResponse);
27091
27177
  type GetTrackingWindowError = (ErrorResponse | {
27092
27178
  error?: string;
27093
27179
  code?: string;
27180
+ } | {
27181
+ error?: string;
27182
+ details?: {
27183
+ currentCount?: number;
27184
+ limit?: number;
27185
+ retryAfterSeconds?: number;
27186
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
27187
+ window?: string;
27188
+ };
27094
27189
  });
27095
27190
  type CancelTrackingWindowData = {
27096
27191
  path: {
@@ -27132,6 +27227,15 @@ type GetPostSamplesResponse = ({
27132
27227
  type GetPostSamplesError = (ErrorResponse | {
27133
27228
  error?: string;
27134
27229
  code?: string;
27230
+ } | {
27231
+ error?: string;
27232
+ details?: {
27233
+ currentCount?: number;
27234
+ limit?: number;
27235
+ retryAfterSeconds?: number;
27236
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
27237
+ window?: string;
27238
+ };
27135
27239
  });
27136
27240
  type GetPostAuthenticityData = {
27137
27241
  path: {
@@ -27358,7 +27462,16 @@ type GetInboxVolumeError = ({
27358
27462
  details?: {
27359
27463
  [key: string]: unknown;
27360
27464
  };
27361
- } | ErrorResponse);
27465
+ } | ErrorResponse | {
27466
+ error?: string;
27467
+ details?: {
27468
+ currentCount?: number;
27469
+ limit?: number;
27470
+ retryAfterSeconds?: number;
27471
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
27472
+ window?: string;
27473
+ };
27474
+ });
27362
27475
  type GetInboxHeatmapData = {
27363
27476
  query: {
27364
27477
  accountId?: string;
@@ -27393,7 +27506,16 @@ type GetInboxHeatmapError = ({
27393
27506
  details?: {
27394
27507
  [key: string]: unknown;
27395
27508
  };
27396
- } | ErrorResponse);
27509
+ } | ErrorResponse | {
27510
+ error?: string;
27511
+ details?: {
27512
+ currentCount?: number;
27513
+ limit?: number;
27514
+ retryAfterSeconds?: number;
27515
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
27516
+ window?: string;
27517
+ };
27518
+ });
27397
27519
  type GetInboxSourceBreakdownData = {
27398
27520
  query: {
27399
27521
  accountId?: string;
@@ -27425,7 +27547,16 @@ type GetInboxSourceBreakdownError = ({
27425
27547
  details?: {
27426
27548
  [key: string]: unknown;
27427
27549
  };
27428
- } | ErrorResponse);
27550
+ } | ErrorResponse | {
27551
+ error?: string;
27552
+ details?: {
27553
+ currentCount?: number;
27554
+ limit?: number;
27555
+ retryAfterSeconds?: number;
27556
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
27557
+ window?: string;
27558
+ };
27559
+ });
27429
27560
  type GetInboxResponseTimeData = {
27430
27561
  query: {
27431
27562
  accountId?: string;
@@ -27466,7 +27597,16 @@ type GetInboxResponseTimeError = ({
27466
27597
  details?: {
27467
27598
  [key: string]: unknown;
27468
27599
  };
27469
- } | ErrorResponse);
27600
+ } | ErrorResponse | {
27601
+ error?: string;
27602
+ details?: {
27603
+ currentCount?: number;
27604
+ limit?: number;
27605
+ retryAfterSeconds?: number;
27606
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
27607
+ window?: string;
27608
+ };
27609
+ });
27470
27610
  type GetInboxTopAccountsData = {
27471
27611
  query: {
27472
27612
  fromDate: string;
@@ -27508,7 +27648,16 @@ type GetInboxTopAccountsError = ({
27508
27648
  details?: {
27509
27649
  [key: string]: unknown;
27510
27650
  };
27511
- } | ErrorResponse);
27651
+ } | ErrorResponse | {
27652
+ error?: string;
27653
+ details?: {
27654
+ currentCount?: number;
27655
+ limit?: number;
27656
+ retryAfterSeconds?: number;
27657
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
27658
+ window?: string;
27659
+ };
27660
+ });
27512
27661
  type ListInboxConversationAnalyticsData = {
27513
27662
  query: {
27514
27663
  accountId?: string;
@@ -27566,7 +27715,16 @@ type ListInboxConversationAnalyticsError = ({
27566
27715
  details?: {
27567
27716
  [key: string]: unknown;
27568
27717
  };
27569
- } | ErrorResponse);
27718
+ } | ErrorResponse | {
27719
+ error?: string;
27720
+ details?: {
27721
+ currentCount?: number;
27722
+ limit?: number;
27723
+ retryAfterSeconds?: number;
27724
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
27725
+ window?: string;
27726
+ };
27727
+ });
27570
27728
  type GetInboxConversationAnalyticsData = {
27571
27729
  path: {
27572
27730
  /**
@@ -27621,6 +27779,15 @@ type GetInboxConversationAnalyticsError = ({
27621
27779
  } | ErrorResponse | {
27622
27780
  error?: string;
27623
27781
  code?: string;
27782
+ } | {
27783
+ error?: string;
27784
+ details?: {
27785
+ currentCount?: number;
27786
+ limit?: number;
27787
+ retryAfterSeconds?: number;
27788
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
27789
+ window?: string;
27790
+ };
27624
27791
  });
27625
27792
  type ListAccountGroupsResponse = ({
27626
27793
  groups?: Array<{
@@ -50437,7 +50604,16 @@ type ListAdsResponse = (AdsListResponse | (AdsListResponse & {
50437
50604
  */
50438
50605
  backfillPending: boolean;
50439
50606
  }));
50440
- type ListAdsError = (ErrorResponse | unknown);
50607
+ type ListAdsError = (ErrorResponse | unknown | {
50608
+ error?: string;
50609
+ details?: {
50610
+ currentCount?: number;
50611
+ limit?: number;
50612
+ retryAfterSeconds?: number;
50613
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
50614
+ window?: string;
50615
+ };
50616
+ });
50441
50617
  type GetAdsSearchTermsData = {
50442
50618
  query: {
50443
50619
  /**
@@ -51536,7 +51712,16 @@ type ListAdCampaignsResponse = ({
51536
51712
  campaigns?: Array<AdCampaign>;
51537
51713
  pagination?: Pagination;
51538
51714
  });
51539
- type ListAdCampaignsError = (ErrorResponse | unknown);
51715
+ type ListAdCampaignsError = (ErrorResponse | unknown | {
51716
+ error?: string;
51717
+ details?: {
51718
+ currentCount?: number;
51719
+ limit?: number;
51720
+ retryAfterSeconds?: number;
51721
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
51722
+ window?: string;
51723
+ };
51724
+ });
51540
51725
  type CreateAdCampaignData = {
51541
51726
  body: {
51542
51727
  /**
@@ -53456,7 +53641,16 @@ type GetAdTreeResponse = (AdTreeResponse | (AdTreeResponse & {
53456
53641
  */
53457
53642
  backfillPending: boolean;
53458
53643
  }));
53459
- type GetAdTreeError = (ErrorResponse | unknown);
53644
+ type GetAdTreeError = (ErrorResponse | unknown | {
53645
+ error?: string;
53646
+ details?: {
53647
+ currentCount?: number;
53648
+ limit?: number;
53649
+ retryAfterSeconds?: number;
53650
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
53651
+ window?: string;
53652
+ };
53653
+ });
53460
53654
  type ListAdsByPerformanceData = {
53461
53655
  query: {
53462
53656
  /**
@@ -53495,7 +53689,16 @@ type ListAdsByPerformanceResponse = (AdsPerformanceResponse | (AdsPerformanceRes
53495
53689
  */
53496
53690
  backfillPending: boolean;
53497
53691
  }));
53498
- type ListAdsByPerformanceError = (ErrorResponse | unknown);
53692
+ type ListAdsByPerformanceError = (ErrorResponse | unknown | {
53693
+ error?: string;
53694
+ details?: {
53695
+ currentCount?: number;
53696
+ limit?: number;
53697
+ retryAfterSeconds?: number;
53698
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
53699
+ window?: string;
53700
+ };
53701
+ });
53499
53702
  type GetAdsTimelineData = {
53500
53703
  query: {
53501
53704
  /**
@@ -53530,7 +53733,16 @@ type GetAdsTimelineResponse = (AdsTimelineResponse | (AdsTimelineResponse & {
53530
53733
  */
53531
53734
  backfillPending: boolean;
53532
53735
  }));
53533
- type GetAdsTimelineError = (ErrorResponse | unknown);
53736
+ type GetAdsTimelineError = (ErrorResponse | unknown | {
53737
+ error?: string;
53738
+ details?: {
53739
+ currentCount?: number;
53740
+ limit?: number;
53741
+ retryAfterSeconds?: number;
53742
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
53743
+ window?: string;
53744
+ };
53745
+ });
53534
53746
  type GetAdData = {
53535
53747
  path: {
53536
53748
  /**
@@ -54972,6 +55184,15 @@ type GetAdAnalyticsResponse = (AdAnalyticsResponse | (AdAnalyticsResponse & {
54972
55184
  }));
54973
55185
  type GetAdAnalyticsError = (ErrorResponse | unknown | {
54974
55186
  error?: string;
55187
+ } | {
55188
+ error?: string;
55189
+ details?: {
55190
+ currentCount?: number;
55191
+ limit?: number;
55192
+ retryAfterSeconds?: number;
55193
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
55194
+ window?: string;
55195
+ };
54975
55196
  });
54976
55197
  type GetAdTrackingTagsData = {
54977
55198
  path: {
@@ -55306,7 +55527,16 @@ type ListAdsAlertsResponse = ({
55306
55527
  info?: number;
55307
55528
  };
55308
55529
  });
55309
- type ListAdsAlertsError = (ErrorResponse | unknown);
55530
+ type ListAdsAlertsError = (ErrorResponse | unknown | {
55531
+ error?: string;
55532
+ details?: {
55533
+ currentCount?: number;
55534
+ limit?: number;
55535
+ retryAfterSeconds?: number;
55536
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
55537
+ window?: string;
55538
+ };
55539
+ });
55310
55540
  type DismissAdsAlertData = {
55311
55541
  path: {
55312
55542
  /**
package/dist/index.d.ts CHANGED
@@ -21801,6 +21801,11 @@ type WebhookPayloadMessage = {
21801
21801
  * supported). `text` on those messages is the fixed
21802
21802
  * `[Unsupported message]` placeholder.
21803
21803
  *
21804
+ * Also present with code 131052 when Meta could not download
21805
+ * media the sender attached, except on numbers also using the
21806
+ * WhatsApp Business app. The file is not available, so the sender
21807
+ * has to send it again.
21808
+ *
21804
21809
  */
21805
21810
  unsupported?: {
21806
21811
  /**
@@ -24651,7 +24656,16 @@ type GetAnalyticsError = ({
24651
24656
  code?: string;
24652
24657
  } | {
24653
24658
  error?: string;
24654
- } | AnalyticsSinglePostResponse);
24659
+ } | AnalyticsSinglePostResponse | {
24660
+ error?: string;
24661
+ details?: {
24662
+ currentCount?: number;
24663
+ limit?: number;
24664
+ retryAfterSeconds?: number;
24665
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
24666
+ window?: string;
24667
+ };
24668
+ });
24655
24669
  type GetAnalyticsDeltaData = {
24656
24670
  query?: {
24657
24671
  /**
@@ -24681,6 +24695,15 @@ type GetAnalyticsDeltaError = (ErrorResponse | {
24681
24695
  code?: string;
24682
24696
  } | {
24683
24697
  error?: string;
24698
+ } | {
24699
+ error?: string;
24700
+ details?: {
24701
+ currentCount?: number;
24702
+ limit?: number;
24703
+ retryAfterSeconds?: number;
24704
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
24705
+ window?: string;
24706
+ };
24684
24707
  });
24685
24708
  type GetYouTubeChannelInsightsData = {
24686
24709
  query: {
@@ -25497,6 +25520,15 @@ type GetDailyMetricsResponse = ({
25497
25520
  type GetDailyMetricsError = (ErrorResponse | {
25498
25521
  error?: string;
25499
25522
  code?: string;
25523
+ } | {
25524
+ error?: string;
25525
+ details?: {
25526
+ currentCount?: number;
25527
+ limit?: number;
25528
+ retryAfterSeconds?: number;
25529
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
25530
+ window?: string;
25531
+ };
25500
25532
  });
25501
25533
  type GetAnalyticsDashboardData = {
25502
25534
  query: {
@@ -25563,7 +25595,16 @@ type GetAnalyticsDashboardResponse = ({
25563
25595
  */
25564
25596
  dataAsOf: (string) | null;
25565
25597
  });
25566
- type GetAnalyticsDashboardError = (ErrorResponse | unknown);
25598
+ type GetAnalyticsDashboardError = (ErrorResponse | unknown | {
25599
+ error?: string;
25600
+ details?: {
25601
+ currentCount?: number;
25602
+ limit?: number;
25603
+ retryAfterSeconds?: number;
25604
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
25605
+ window?: string;
25606
+ };
25607
+ });
25567
25608
  type GetBestTimeToPostData = {
25568
25609
  query?: {
25569
25610
  /**
@@ -25607,6 +25648,15 @@ type GetBestTimeToPostResponse = ({
25607
25648
  type GetBestTimeToPostError = (ErrorResponse | {
25608
25649
  error?: string;
25609
25650
  requiresAddon?: boolean;
25651
+ } | {
25652
+ error?: string;
25653
+ details?: {
25654
+ currentCount?: number;
25655
+ limit?: number;
25656
+ retryAfterSeconds?: number;
25657
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
25658
+ window?: string;
25659
+ };
25610
25660
  });
25611
25661
  type GetContentDecayData = {
25612
25662
  query?: {
@@ -25651,6 +25701,15 @@ type GetContentDecayResponse = ({
25651
25701
  type GetContentDecayError = (unknown | ErrorResponse | {
25652
25702
  error?: string;
25653
25703
  requiresAddon?: boolean;
25704
+ } | {
25705
+ error?: string;
25706
+ details?: {
25707
+ currentCount?: number;
25708
+ limit?: number;
25709
+ retryAfterSeconds?: number;
25710
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
25711
+ window?: string;
25712
+ };
25654
25713
  });
25655
25714
  type GetPostingFrequencyData = {
25656
25715
  query?: {
@@ -25696,6 +25755,15 @@ type GetPostingFrequencyResponse = ({
25696
25755
  type GetPostingFrequencyError = (ErrorResponse | {
25697
25756
  error?: string;
25698
25757
  requiresAddon?: boolean;
25758
+ } | {
25759
+ error?: string;
25760
+ details?: {
25761
+ currentCount?: number;
25762
+ limit?: number;
25763
+ retryAfterSeconds?: number;
25764
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
25765
+ window?: string;
25766
+ };
25699
25767
  });
25700
25768
  type GetLedgerBalancesData = {
25701
25769
  query: {
@@ -26951,6 +27019,15 @@ type GetPostTimelineError = ({
26951
27019
  } | ErrorResponse | {
26952
27020
  error?: string;
26953
27021
  code?: string;
27022
+ } | {
27023
+ error?: string;
27024
+ details?: {
27025
+ currentCount?: number;
27026
+ limit?: number;
27027
+ retryAfterSeconds?: number;
27028
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
27029
+ window?: string;
27030
+ };
26954
27031
  });
26955
27032
  type RunGoogleAnalyticsReportData = {
26956
27033
  body: (GoogleAnalyticsReportFields & {
@@ -27081,6 +27158,15 @@ type ListTrackingWindowsResponse = ({
27081
27158
  type ListTrackingWindowsError = (ErrorResponse | {
27082
27159
  error?: string;
27083
27160
  code?: string;
27161
+ } | {
27162
+ error?: string;
27163
+ details?: {
27164
+ currentCount?: number;
27165
+ limit?: number;
27166
+ retryAfterSeconds?: number;
27167
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
27168
+ window?: string;
27169
+ };
27084
27170
  });
27085
27171
  type GetTrackingWindowData = {
27086
27172
  path: {
@@ -27091,6 +27177,15 @@ type GetTrackingWindowResponse = (TrackingWindowResponse);
27091
27177
  type GetTrackingWindowError = (ErrorResponse | {
27092
27178
  error?: string;
27093
27179
  code?: string;
27180
+ } | {
27181
+ error?: string;
27182
+ details?: {
27183
+ currentCount?: number;
27184
+ limit?: number;
27185
+ retryAfterSeconds?: number;
27186
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
27187
+ window?: string;
27188
+ };
27094
27189
  });
27095
27190
  type CancelTrackingWindowData = {
27096
27191
  path: {
@@ -27132,6 +27227,15 @@ type GetPostSamplesResponse = ({
27132
27227
  type GetPostSamplesError = (ErrorResponse | {
27133
27228
  error?: string;
27134
27229
  code?: string;
27230
+ } | {
27231
+ error?: string;
27232
+ details?: {
27233
+ currentCount?: number;
27234
+ limit?: number;
27235
+ retryAfterSeconds?: number;
27236
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
27237
+ window?: string;
27238
+ };
27135
27239
  });
27136
27240
  type GetPostAuthenticityData = {
27137
27241
  path: {
@@ -27358,7 +27462,16 @@ type GetInboxVolumeError = ({
27358
27462
  details?: {
27359
27463
  [key: string]: unknown;
27360
27464
  };
27361
- } | ErrorResponse);
27465
+ } | ErrorResponse | {
27466
+ error?: string;
27467
+ details?: {
27468
+ currentCount?: number;
27469
+ limit?: number;
27470
+ retryAfterSeconds?: number;
27471
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
27472
+ window?: string;
27473
+ };
27474
+ });
27362
27475
  type GetInboxHeatmapData = {
27363
27476
  query: {
27364
27477
  accountId?: string;
@@ -27393,7 +27506,16 @@ type GetInboxHeatmapError = ({
27393
27506
  details?: {
27394
27507
  [key: string]: unknown;
27395
27508
  };
27396
- } | ErrorResponse);
27509
+ } | ErrorResponse | {
27510
+ error?: string;
27511
+ details?: {
27512
+ currentCount?: number;
27513
+ limit?: number;
27514
+ retryAfterSeconds?: number;
27515
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
27516
+ window?: string;
27517
+ };
27518
+ });
27397
27519
  type GetInboxSourceBreakdownData = {
27398
27520
  query: {
27399
27521
  accountId?: string;
@@ -27425,7 +27547,16 @@ type GetInboxSourceBreakdownError = ({
27425
27547
  details?: {
27426
27548
  [key: string]: unknown;
27427
27549
  };
27428
- } | ErrorResponse);
27550
+ } | ErrorResponse | {
27551
+ error?: string;
27552
+ details?: {
27553
+ currentCount?: number;
27554
+ limit?: number;
27555
+ retryAfterSeconds?: number;
27556
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
27557
+ window?: string;
27558
+ };
27559
+ });
27429
27560
  type GetInboxResponseTimeData = {
27430
27561
  query: {
27431
27562
  accountId?: string;
@@ -27466,7 +27597,16 @@ type GetInboxResponseTimeError = ({
27466
27597
  details?: {
27467
27598
  [key: string]: unknown;
27468
27599
  };
27469
- } | ErrorResponse);
27600
+ } | ErrorResponse | {
27601
+ error?: string;
27602
+ details?: {
27603
+ currentCount?: number;
27604
+ limit?: number;
27605
+ retryAfterSeconds?: number;
27606
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
27607
+ window?: string;
27608
+ };
27609
+ });
27470
27610
  type GetInboxTopAccountsData = {
27471
27611
  query: {
27472
27612
  fromDate: string;
@@ -27508,7 +27648,16 @@ type GetInboxTopAccountsError = ({
27508
27648
  details?: {
27509
27649
  [key: string]: unknown;
27510
27650
  };
27511
- } | ErrorResponse);
27651
+ } | ErrorResponse | {
27652
+ error?: string;
27653
+ details?: {
27654
+ currentCount?: number;
27655
+ limit?: number;
27656
+ retryAfterSeconds?: number;
27657
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
27658
+ window?: string;
27659
+ };
27660
+ });
27512
27661
  type ListInboxConversationAnalyticsData = {
27513
27662
  query: {
27514
27663
  accountId?: string;
@@ -27566,7 +27715,16 @@ type ListInboxConversationAnalyticsError = ({
27566
27715
  details?: {
27567
27716
  [key: string]: unknown;
27568
27717
  };
27569
- } | ErrorResponse);
27718
+ } | ErrorResponse | {
27719
+ error?: string;
27720
+ details?: {
27721
+ currentCount?: number;
27722
+ limit?: number;
27723
+ retryAfterSeconds?: number;
27724
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
27725
+ window?: string;
27726
+ };
27727
+ });
27570
27728
  type GetInboxConversationAnalyticsData = {
27571
27729
  path: {
27572
27730
  /**
@@ -27621,6 +27779,15 @@ type GetInboxConversationAnalyticsError = ({
27621
27779
  } | ErrorResponse | {
27622
27780
  error?: string;
27623
27781
  code?: string;
27782
+ } | {
27783
+ error?: string;
27784
+ details?: {
27785
+ currentCount?: number;
27786
+ limit?: number;
27787
+ retryAfterSeconds?: number;
27788
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
27789
+ window?: string;
27790
+ };
27624
27791
  });
27625
27792
  type ListAccountGroupsResponse = ({
27626
27793
  groups?: Array<{
@@ -50437,7 +50604,16 @@ type ListAdsResponse = (AdsListResponse | (AdsListResponse & {
50437
50604
  */
50438
50605
  backfillPending: boolean;
50439
50606
  }));
50440
- type ListAdsError = (ErrorResponse | unknown);
50607
+ type ListAdsError = (ErrorResponse | unknown | {
50608
+ error?: string;
50609
+ details?: {
50610
+ currentCount?: number;
50611
+ limit?: number;
50612
+ retryAfterSeconds?: number;
50613
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
50614
+ window?: string;
50615
+ };
50616
+ });
50441
50617
  type GetAdsSearchTermsData = {
50442
50618
  query: {
50443
50619
  /**
@@ -51536,7 +51712,16 @@ type ListAdCampaignsResponse = ({
51536
51712
  campaigns?: Array<AdCampaign>;
51537
51713
  pagination?: Pagination;
51538
51714
  });
51539
- type ListAdCampaignsError = (ErrorResponse | unknown);
51715
+ type ListAdCampaignsError = (ErrorResponse | unknown | {
51716
+ error?: string;
51717
+ details?: {
51718
+ currentCount?: number;
51719
+ limit?: number;
51720
+ retryAfterSeconds?: number;
51721
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
51722
+ window?: string;
51723
+ };
51724
+ });
51540
51725
  type CreateAdCampaignData = {
51541
51726
  body: {
51542
51727
  /**
@@ -53456,7 +53641,16 @@ type GetAdTreeResponse = (AdTreeResponse | (AdTreeResponse & {
53456
53641
  */
53457
53642
  backfillPending: boolean;
53458
53643
  }));
53459
- type GetAdTreeError = (ErrorResponse | unknown);
53644
+ type GetAdTreeError = (ErrorResponse | unknown | {
53645
+ error?: string;
53646
+ details?: {
53647
+ currentCount?: number;
53648
+ limit?: number;
53649
+ retryAfterSeconds?: number;
53650
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
53651
+ window?: string;
53652
+ };
53653
+ });
53460
53654
  type ListAdsByPerformanceData = {
53461
53655
  query: {
53462
53656
  /**
@@ -53495,7 +53689,16 @@ type ListAdsByPerformanceResponse = (AdsPerformanceResponse | (AdsPerformanceRes
53495
53689
  */
53496
53690
  backfillPending: boolean;
53497
53691
  }));
53498
- type ListAdsByPerformanceError = (ErrorResponse | unknown);
53692
+ type ListAdsByPerformanceError = (ErrorResponse | unknown | {
53693
+ error?: string;
53694
+ details?: {
53695
+ currentCount?: number;
53696
+ limit?: number;
53697
+ retryAfterSeconds?: number;
53698
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
53699
+ window?: string;
53700
+ };
53701
+ });
53499
53702
  type GetAdsTimelineData = {
53500
53703
  query: {
53501
53704
  /**
@@ -53530,7 +53733,16 @@ type GetAdsTimelineResponse = (AdsTimelineResponse | (AdsTimelineResponse & {
53530
53733
  */
53531
53734
  backfillPending: boolean;
53532
53735
  }));
53533
- type GetAdsTimelineError = (ErrorResponse | unknown);
53736
+ type GetAdsTimelineError = (ErrorResponse | unknown | {
53737
+ error?: string;
53738
+ details?: {
53739
+ currentCount?: number;
53740
+ limit?: number;
53741
+ retryAfterSeconds?: number;
53742
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
53743
+ window?: string;
53744
+ };
53745
+ });
53534
53746
  type GetAdData = {
53535
53747
  path: {
53536
53748
  /**
@@ -54972,6 +55184,15 @@ type GetAdAnalyticsResponse = (AdAnalyticsResponse | (AdAnalyticsResponse & {
54972
55184
  }));
54973
55185
  type GetAdAnalyticsError = (ErrorResponse | unknown | {
54974
55186
  error?: string;
55187
+ } | {
55188
+ error?: string;
55189
+ details?: {
55190
+ currentCount?: number;
55191
+ limit?: number;
55192
+ retryAfterSeconds?: number;
55193
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
55194
+ window?: string;
55195
+ };
54975
55196
  });
54976
55197
  type GetAdTrackingTagsData = {
54977
55198
  path: {
@@ -55306,7 +55527,16 @@ type ListAdsAlertsResponse = ({
55306
55527
  info?: number;
55307
55528
  };
55308
55529
  });
55309
- type ListAdsAlertsError = (ErrorResponse | unknown);
55530
+ type ListAdsAlertsError = (ErrorResponse | unknown | {
55531
+ error?: string;
55532
+ details?: {
55533
+ currentCount?: number;
55534
+ limit?: number;
55535
+ retryAfterSeconds?: number;
55536
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
55537
+ window?: string;
55538
+ };
55539
+ });
55310
55540
  type DismissAdsAlertData = {
55311
55541
  path: {
55312
55542
  /**
package/dist/index.js CHANGED
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(index_exports);
36
36
  // package.json
37
37
  var package_default = {
38
38
  name: "@zernio/node",
39
- version: "0.2.1494",
39
+ version: "0.2.1496",
40
40
  description: "The official Node.js library for the Zernio API",
41
41
  main: "dist/index.js",
42
42
  module: "dist/index.mjs",
package/dist/index.mjs CHANGED
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
5
5
  // package.json
6
6
  var package_default = {
7
7
  name: "@zernio/node",
8
- version: "0.2.1494",
8
+ version: "0.2.1496",
9
9
  description: "The official Node.js library for the Zernio API",
10
10
  main: "dist/index.js",
11
11
  module: "dist/index.mjs",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zernio/node",
3
- "version": "0.2.1494",
3
+ "version": "0.2.1496",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -20367,6 +20367,11 @@ export type WebhookPayloadMessage = {
20367
20367
  * supported). `text` on those messages is the fixed
20368
20368
  * `[Unsupported message]` placeholder.
20369
20369
  *
20370
+ * Also present with code 131052 when Meta could not download
20371
+ * media the sender attached, except on numbers also using the
20372
+ * WhatsApp Business app. The file is not available, so the sender
20373
+ * has to send it again.
20374
+ *
20370
20375
  */
20371
20376
  unsupported?: {
20372
20377
  /**
@@ -23354,7 +23359,16 @@ export type GetAnalyticsError = ({
23354
23359
  code?: string;
23355
23360
  } | {
23356
23361
  error?: string;
23357
- } | AnalyticsSinglePostResponse);
23362
+ } | AnalyticsSinglePostResponse | {
23363
+ error?: string;
23364
+ details?: {
23365
+ currentCount?: number;
23366
+ limit?: number;
23367
+ retryAfterSeconds?: number;
23368
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
23369
+ window?: string;
23370
+ };
23371
+ });
23358
23372
 
23359
23373
  export type GetAnalyticsDeltaData = {
23360
23374
  query?: {
@@ -23387,6 +23401,15 @@ export type GetAnalyticsDeltaError = (ErrorResponse | {
23387
23401
  code?: string;
23388
23402
  } | {
23389
23403
  error?: string;
23404
+ } | {
23405
+ error?: string;
23406
+ details?: {
23407
+ currentCount?: number;
23408
+ limit?: number;
23409
+ retryAfterSeconds?: number;
23410
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
23411
+ window?: string;
23412
+ };
23390
23413
  });
23391
23414
 
23392
23415
  export type GetYouTubeChannelInsightsData = {
@@ -24251,6 +24274,15 @@ export type GetDailyMetricsResponse = ({
24251
24274
  export type GetDailyMetricsError = (ErrorResponse | {
24252
24275
  error?: string;
24253
24276
  code?: string;
24277
+ } | {
24278
+ error?: string;
24279
+ details?: {
24280
+ currentCount?: number;
24281
+ limit?: number;
24282
+ retryAfterSeconds?: number;
24283
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
24284
+ window?: string;
24285
+ };
24254
24286
  });
24255
24287
 
24256
24288
  export type GetAnalyticsDashboardData = {
@@ -24320,7 +24352,16 @@ export type GetAnalyticsDashboardResponse = ({
24320
24352
  dataAsOf: (string) | null;
24321
24353
  });
24322
24354
 
24323
- export type GetAnalyticsDashboardError = (ErrorResponse | unknown);
24355
+ export type GetAnalyticsDashboardError = (ErrorResponse | unknown | {
24356
+ error?: string;
24357
+ details?: {
24358
+ currentCount?: number;
24359
+ limit?: number;
24360
+ retryAfterSeconds?: number;
24361
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
24362
+ window?: string;
24363
+ };
24364
+ });
24324
24365
 
24325
24366
  export type GetBestTimeToPostData = {
24326
24367
  query?: {
@@ -24367,6 +24408,15 @@ export type GetBestTimeToPostResponse = ({
24367
24408
  export type GetBestTimeToPostError = (ErrorResponse | {
24368
24409
  error?: string;
24369
24410
  requiresAddon?: boolean;
24411
+ } | {
24412
+ error?: string;
24413
+ details?: {
24414
+ currentCount?: number;
24415
+ limit?: number;
24416
+ retryAfterSeconds?: number;
24417
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
24418
+ window?: string;
24419
+ };
24370
24420
  });
24371
24421
 
24372
24422
  export type GetContentDecayData = {
@@ -24414,6 +24464,15 @@ export type GetContentDecayResponse = ({
24414
24464
  export type GetContentDecayError = (unknown | ErrorResponse | {
24415
24465
  error?: string;
24416
24466
  requiresAddon?: boolean;
24467
+ } | {
24468
+ error?: string;
24469
+ details?: {
24470
+ currentCount?: number;
24471
+ limit?: number;
24472
+ retryAfterSeconds?: number;
24473
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
24474
+ window?: string;
24475
+ };
24417
24476
  });
24418
24477
 
24419
24478
  export type GetPostingFrequencyData = {
@@ -24462,6 +24521,15 @@ export type GetPostingFrequencyResponse = ({
24462
24521
  export type GetPostingFrequencyError = (ErrorResponse | {
24463
24522
  error?: string;
24464
24523
  requiresAddon?: boolean;
24524
+ } | {
24525
+ error?: string;
24526
+ details?: {
24527
+ currentCount?: number;
24528
+ limit?: number;
24529
+ retryAfterSeconds?: number;
24530
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
24531
+ window?: string;
24532
+ };
24465
24533
  });
24466
24534
 
24467
24535
  export type GetLedgerBalancesData = {
@@ -25799,6 +25867,15 @@ export type GetPostTimelineError = ({
25799
25867
  } | ErrorResponse | {
25800
25868
  error?: string;
25801
25869
  code?: string;
25870
+ } | {
25871
+ error?: string;
25872
+ details?: {
25873
+ currentCount?: number;
25874
+ limit?: number;
25875
+ retryAfterSeconds?: number;
25876
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
25877
+ window?: string;
25878
+ };
25802
25879
  });
25803
25880
 
25804
25881
  export type RunGoogleAnalyticsReportData = {
@@ -25944,6 +26021,15 @@ export type ListTrackingWindowsResponse = ({
25944
26021
  export type ListTrackingWindowsError = (ErrorResponse | {
25945
26022
  error?: string;
25946
26023
  code?: string;
26024
+ } | {
26025
+ error?: string;
26026
+ details?: {
26027
+ currentCount?: number;
26028
+ limit?: number;
26029
+ retryAfterSeconds?: number;
26030
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
26031
+ window?: string;
26032
+ };
25947
26033
  });
25948
26034
 
25949
26035
  export type GetTrackingWindowData = {
@@ -25957,6 +26043,15 @@ export type GetTrackingWindowResponse = (TrackingWindowResponse);
25957
26043
  export type GetTrackingWindowError = (ErrorResponse | {
25958
26044
  error?: string;
25959
26045
  code?: string;
26046
+ } | {
26047
+ error?: string;
26048
+ details?: {
26049
+ currentCount?: number;
26050
+ limit?: number;
26051
+ retryAfterSeconds?: number;
26052
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
26053
+ window?: string;
26054
+ };
25960
26055
  });
25961
26056
 
25962
26057
  export type CancelTrackingWindowData = {
@@ -26004,6 +26099,15 @@ export type GetPostSamplesResponse = ({
26004
26099
  export type GetPostSamplesError = (ErrorResponse | {
26005
26100
  error?: string;
26006
26101
  code?: string;
26102
+ } | {
26103
+ error?: string;
26104
+ details?: {
26105
+ currentCount?: number;
26106
+ limit?: number;
26107
+ retryAfterSeconds?: number;
26108
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
26109
+ window?: string;
26110
+ };
26007
26111
  });
26008
26112
 
26009
26113
  export type GetPostAuthenticityData = {
@@ -26245,7 +26349,16 @@ export type GetInboxVolumeError = ({
26245
26349
  details?: {
26246
26350
  [key: string]: unknown;
26247
26351
  };
26248
- } | ErrorResponse);
26352
+ } | ErrorResponse | {
26353
+ error?: string;
26354
+ details?: {
26355
+ currentCount?: number;
26356
+ limit?: number;
26357
+ retryAfterSeconds?: number;
26358
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
26359
+ window?: string;
26360
+ };
26361
+ });
26249
26362
 
26250
26363
  export type GetInboxHeatmapData = {
26251
26364
  query: {
@@ -26283,7 +26396,16 @@ export type GetInboxHeatmapError = ({
26283
26396
  details?: {
26284
26397
  [key: string]: unknown;
26285
26398
  };
26286
- } | ErrorResponse);
26399
+ } | ErrorResponse | {
26400
+ error?: string;
26401
+ details?: {
26402
+ currentCount?: number;
26403
+ limit?: number;
26404
+ retryAfterSeconds?: number;
26405
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
26406
+ window?: string;
26407
+ };
26408
+ });
26287
26409
 
26288
26410
  export type GetInboxSourceBreakdownData = {
26289
26411
  query: {
@@ -26318,7 +26440,16 @@ export type GetInboxSourceBreakdownError = ({
26318
26440
  details?: {
26319
26441
  [key: string]: unknown;
26320
26442
  };
26321
- } | ErrorResponse);
26443
+ } | ErrorResponse | {
26444
+ error?: string;
26445
+ details?: {
26446
+ currentCount?: number;
26447
+ limit?: number;
26448
+ retryAfterSeconds?: number;
26449
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
26450
+ window?: string;
26451
+ };
26452
+ });
26322
26453
 
26323
26454
  export type GetInboxResponseTimeData = {
26324
26455
  query: {
@@ -26362,7 +26493,16 @@ export type GetInboxResponseTimeError = ({
26362
26493
  details?: {
26363
26494
  [key: string]: unknown;
26364
26495
  };
26365
- } | ErrorResponse);
26496
+ } | ErrorResponse | {
26497
+ error?: string;
26498
+ details?: {
26499
+ currentCount?: number;
26500
+ limit?: number;
26501
+ retryAfterSeconds?: number;
26502
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
26503
+ window?: string;
26504
+ };
26505
+ });
26366
26506
 
26367
26507
  export type GetInboxTopAccountsData = {
26368
26508
  query: {
@@ -26407,7 +26547,16 @@ export type GetInboxTopAccountsError = ({
26407
26547
  details?: {
26408
26548
  [key: string]: unknown;
26409
26549
  };
26410
- } | ErrorResponse);
26550
+ } | ErrorResponse | {
26551
+ error?: string;
26552
+ details?: {
26553
+ currentCount?: number;
26554
+ limit?: number;
26555
+ retryAfterSeconds?: number;
26556
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
26557
+ window?: string;
26558
+ };
26559
+ });
26411
26560
 
26412
26561
  export type ListInboxConversationAnalyticsData = {
26413
26562
  query: {
@@ -26468,7 +26617,16 @@ export type ListInboxConversationAnalyticsError = ({
26468
26617
  details?: {
26469
26618
  [key: string]: unknown;
26470
26619
  };
26471
- } | ErrorResponse);
26620
+ } | ErrorResponse | {
26621
+ error?: string;
26622
+ details?: {
26623
+ currentCount?: number;
26624
+ limit?: number;
26625
+ retryAfterSeconds?: number;
26626
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
26627
+ window?: string;
26628
+ };
26629
+ });
26472
26630
 
26473
26631
  export type GetInboxConversationAnalyticsData = {
26474
26632
  path: {
@@ -26526,6 +26684,15 @@ export type GetInboxConversationAnalyticsError = ({
26526
26684
  } | ErrorResponse | {
26527
26685
  error?: string;
26528
26686
  code?: string;
26687
+ } | {
26688
+ error?: string;
26689
+ details?: {
26690
+ currentCount?: number;
26691
+ limit?: number;
26692
+ retryAfterSeconds?: number;
26693
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
26694
+ window?: string;
26695
+ };
26529
26696
  });
26530
26697
 
26531
26698
  export type ListAccountGroupsResponse = ({
@@ -51129,7 +51296,16 @@ export type ListAdsResponse = (AdsListResponse | (AdsListResponse & {
51129
51296
  backfillPending: boolean;
51130
51297
  }));
51131
51298
 
51132
- export type ListAdsError = (ErrorResponse | unknown);
51299
+ export type ListAdsError = (ErrorResponse | unknown | {
51300
+ error?: string;
51301
+ details?: {
51302
+ currentCount?: number;
51303
+ limit?: number;
51304
+ retryAfterSeconds?: number;
51305
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
51306
+ window?: string;
51307
+ };
51308
+ });
51133
51309
 
51134
51310
  export type GetAdsSearchTermsData = {
51135
51311
  query: {
@@ -52325,7 +52501,16 @@ export type ListAdCampaignsResponse = ({
52325
52501
  pagination?: Pagination;
52326
52502
  });
52327
52503
 
52328
- export type ListAdCampaignsError = (ErrorResponse | unknown);
52504
+ export type ListAdCampaignsError = (ErrorResponse | unknown | {
52505
+ error?: string;
52506
+ details?: {
52507
+ currentCount?: number;
52508
+ limit?: number;
52509
+ retryAfterSeconds?: number;
52510
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
52511
+ window?: string;
52512
+ };
52513
+ });
52329
52514
 
52330
52515
  export type CreateAdCampaignData = {
52331
52516
  body: {
@@ -54317,7 +54502,16 @@ export type GetAdTreeResponse = (AdTreeResponse | (AdTreeResponse & {
54317
54502
  backfillPending: boolean;
54318
54503
  }));
54319
54504
 
54320
- export type GetAdTreeError = (ErrorResponse | unknown);
54505
+ export type GetAdTreeError = (ErrorResponse | unknown | {
54506
+ error?: string;
54507
+ details?: {
54508
+ currentCount?: number;
54509
+ limit?: number;
54510
+ retryAfterSeconds?: number;
54511
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
54512
+ window?: string;
54513
+ };
54514
+ });
54321
54515
 
54322
54516
  export type ListAdsByPerformanceData = {
54323
54517
  query: {
@@ -54359,7 +54553,16 @@ export type ListAdsByPerformanceResponse = (AdsPerformanceResponse | (AdsPerform
54359
54553
  backfillPending: boolean;
54360
54554
  }));
54361
54555
 
54362
- export type ListAdsByPerformanceError = (ErrorResponse | unknown);
54556
+ export type ListAdsByPerformanceError = (ErrorResponse | unknown | {
54557
+ error?: string;
54558
+ details?: {
54559
+ currentCount?: number;
54560
+ limit?: number;
54561
+ retryAfterSeconds?: number;
54562
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
54563
+ window?: string;
54564
+ };
54565
+ });
54363
54566
 
54364
54567
  export type GetAdsTimelineData = {
54365
54568
  query: {
@@ -54397,7 +54600,16 @@ export type GetAdsTimelineResponse = (AdsTimelineResponse | (AdsTimelineResponse
54397
54600
  backfillPending: boolean;
54398
54601
  }));
54399
54602
 
54400
- export type GetAdsTimelineError = (ErrorResponse | unknown);
54603
+ export type GetAdsTimelineError = (ErrorResponse | unknown | {
54604
+ error?: string;
54605
+ details?: {
54606
+ currentCount?: number;
54607
+ limit?: number;
54608
+ retryAfterSeconds?: number;
54609
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
54610
+ window?: string;
54611
+ };
54612
+ });
54401
54613
 
54402
54614
  export type GetAdData = {
54403
54615
  path: {
@@ -55911,6 +56123,15 @@ export type GetAdAnalyticsResponse = (AdAnalyticsResponse | (AdAnalyticsResponse
55911
56123
 
55912
56124
  export type GetAdAnalyticsError = (ErrorResponse | unknown | {
55913
56125
  error?: string;
56126
+ } | {
56127
+ error?: string;
56128
+ details?: {
56129
+ currentCount?: number;
56130
+ limit?: number;
56131
+ retryAfterSeconds?: number;
56132
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
56133
+ window?: string;
56134
+ };
55914
56135
  });
55915
56136
 
55916
56137
  export type GetAdTrackingTagsData = {
@@ -56269,7 +56490,16 @@ export type ListAdsAlertsResponse = ({
56269
56490
  };
56270
56491
  });
56271
56492
 
56272
- export type ListAdsAlertsError = (ErrorResponse | unknown);
56493
+ export type ListAdsAlertsError = (ErrorResponse | unknown | {
56494
+ error?: string;
56495
+ details?: {
56496
+ currentCount?: number;
56497
+ limit?: number;
56498
+ retryAfterSeconds?: number;
56499
+ scope?: 'campaign-analytics' | 'ad-analytics' | 'ads-listings' | 'post-analytics';
56500
+ window?: string;
56501
+ };
56502
+ });
56273
56503
 
56274
56504
  export type DismissAdsAlertData = {
56275
56505
  path: {