@getlatedev/node 0.1.58 → 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.ts CHANGED
@@ -2,12 +2,12 @@ import * as _hey_api_client_fetch from '@hey-api/client-fetch';
2
2
 
3
3
  interface ClientOptions {
4
4
  /**
5
- * API key for authentication. Defaults to process.env['LATE_API_KEY'].
5
+ * API key for authentication. Defaults to process.env['ZERNIO_API_KEY'] (falls back to LATE_API_KEY).
6
6
  */
7
7
  apiKey?: string | undefined;
8
8
  /**
9
9
  * Override the default base URL for the API.
10
- * @default "https://getlate.dev/api"
10
+ * @default "https://zernio.com/api"
11
11
  */
12
12
  baseURL?: string | null | undefined;
13
13
  /**
@@ -21,20 +21,20 @@ interface ClientOptions {
21
21
  defaultHeaders?: Record<string, string>;
22
22
  }
23
23
  /**
24
- * API Client for the Late API.
24
+ * API Client for the Zernio API.
25
25
  *
26
26
  * @example
27
27
  * ```typescript
28
- * import Late from '@getlatedev/node';
28
+ * import Zernio from '@zernio/node';
29
29
  *
30
- * const late = new Late({
31
- * apiKey: process.env['LATE_API_KEY'], // This is the default and can be omitted
30
+ * const zernio = new Zernio({
31
+ * apiKey: process.env['ZERNIO_API_KEY'], // This is the default and can be omitted
32
32
  * });
33
33
  *
34
34
  * async function main() {
35
- * const post = await late.posts.create({
35
+ * const post = await zernio.posts.create({
36
36
  * body: {
37
- * content: 'Hello from the Late SDK!',
37
+ * content: 'Hello from the Zernio SDK!',
38
38
  * platforms: [{ platform: 'twitter', accountId: 'acc_123' }],
39
39
  * publishNow: true,
40
40
  * },
@@ -45,7 +45,7 @@ interface ClientOptions {
45
45
  * main();
46
46
  * ```
47
47
  */
48
- declare class Late {
48
+ declare class Zernio {
49
49
  private _options;
50
50
  /**
51
51
  * API key used for authentication.
@@ -84,6 +84,8 @@ declare class Late {
84
84
  analytics: {
85
85
  getAnalytics: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<GetAnalyticsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetAnalyticsResponse, GetAnalyticsError, ThrowOnError>;
86
86
  getYouTubeDailyViews: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetYouTubeDailyViewsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<YouTubeDailyViewsResponse, GetYouTubeDailyViewsError, ThrowOnError>;
87
+ getInstagramAccountInsights: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetInstagramAccountInsightsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<InstagramAccountInsightsResponse, GetInstagramAccountInsightsError, ThrowOnError>;
88
+ getInstagramDemographics: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetInstagramDemographicsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<InstagramDemographicsResponse, GetInstagramDemographicsError, ThrowOnError>;
87
89
  getDailyMetrics: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<GetDailyMetricsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetDailyMetricsResponse, GetDailyMetricsError, ThrowOnError>;
88
90
  getBestTimeToPost: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<GetBestTimeToPostData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetBestTimeToPostResponse, GetBestTimeToPostError, ThrowOnError>;
89
91
  getContentDecay: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<GetContentDecayData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetContentDecayResponse, GetContentDecayError, ThrowOnError>;
@@ -161,6 +163,7 @@ declare class Late {
161
163
  deleteAccount: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<DeleteAccountData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<DeleteAccountResponse, DeleteAccountError, ThrowOnError>;
162
164
  getAllAccountsHealth: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<GetAllAccountsHealthData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetAllAccountsHealthResponse, GetAllAccountsHealthError, ThrowOnError>;
163
165
  getAccountHealth: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetAccountHealthData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetAccountHealthResponse, GetAccountHealthError, ThrowOnError>;
166
+ getTikTokCreatorInfo: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetTikTokCreatorInfoData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetTikTokCreatorInfoResponse, GetTikTokCreatorInfoError, ThrowOnError>;
164
167
  getGoogleBusinessReviews: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetGoogleBusinessReviewsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetGoogleBusinessReviewsResponse, GetGoogleBusinessReviewsError, ThrowOnError>;
165
168
  getLinkedInMentions: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetLinkedInMentionsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetLinkedInMentionsResponse, GetLinkedInMentionsError, ThrowOnError>;
166
169
  };
@@ -398,17 +401,19 @@ declare class Late {
398
401
  releaseWhatsAppPhoneNumber: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ReleaseWhatsAppPhoneNumberData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ReleaseWhatsAppPhoneNumberResponse, unknown, ThrowOnError>;
399
402
  };
400
403
  /**
401
- * Create a new Late API client.
404
+ * Create a new Zernio API client.
402
405
  *
403
406
  * @param options - Configuration options for the client
404
407
  */
405
408
  constructor(options?: ClientOptions);
406
409
  }
410
+ /** @deprecated Use Zernio instead */
411
+ declare const Late: typeof Zernio;
407
412
 
408
413
  /**
409
- * Base error class for Late API errors
414
+ * Base error class for Zernio API errors
410
415
  */
411
- declare class LateApiError extends Error {
416
+ declare class ZernioApiError extends Error {
412
417
  readonly statusCode: number;
413
418
  readonly code?: string;
414
419
  readonly details?: Record<string, unknown>;
@@ -438,10 +443,12 @@ declare class LateApiError extends Error {
438
443
  */
439
444
  isPaymentRequired(): boolean;
440
445
  }
446
+ /** @deprecated Use ZernioApiError instead */
447
+ declare const LateApiError: typeof ZernioApiError;
441
448
  /**
442
449
  * Rate limit error with additional rate limit info
443
450
  */
444
- declare class RateLimitError extends LateApiError {
451
+ declare class RateLimitError extends ZernioApiError {
445
452
  readonly limit?: number;
446
453
  readonly remaining?: number;
447
454
  readonly resetAt?: Date;
@@ -454,7 +461,7 @@ declare class RateLimitError extends LateApiError {
454
461
  /**
455
462
  * Validation error with field-specific details
456
463
  */
457
- declare class ValidationError extends LateApiError {
464
+ declare class ValidationError extends ZernioApiError {
458
465
  readonly fields?: Record<string, string[]>;
459
466
  constructor(message: string, fields?: Record<string, string[]>);
460
467
  }
@@ -466,7 +473,7 @@ declare function parseApiError(response: Response, body?: {
466
473
  message?: string;
467
474
  code?: string;
468
475
  details?: Record<string, unknown>;
469
- }): LateApiError;
476
+ }): ZernioApiError;
470
477
 
471
478
  type AccountGetResponse = {
472
479
  account?: SocialAccount;
@@ -966,6 +973,86 @@ type HashtagInfo = {
966
973
  postCount?: number;
967
974
  };
968
975
  type status2 = 'safe' | 'banned' | 'restricted' | 'unknown';
976
+ type InstagramAccountInsightsResponse = {
977
+ success?: boolean;
978
+ /**
979
+ * The Zernio SocialAccount ID
980
+ */
981
+ accountId?: string;
982
+ platform?: string;
983
+ dateRange?: {
984
+ since?: string;
985
+ until?: string;
986
+ };
987
+ metricType?: 'time_series' | 'total_value';
988
+ /**
989
+ * Breakdown dimension used (only present when breakdown was requested)
990
+ */
991
+ breakdown?: string;
992
+ /**
993
+ * Object keyed by metric name. For time_series: each metric has "total" (number) and "values" (array of {date, value}).
994
+ * For total_value: each metric has "total" (number) and optionally "breakdowns" (array of {dimension, value}).
995
+ *
996
+ */
997
+ metrics?: {
998
+ [key: string]: {
999
+ /**
1000
+ * Sum or aggregate value for the metric
1001
+ */
1002
+ total?: number;
1003
+ /**
1004
+ * Daily values (only for time_series)
1005
+ */
1006
+ values?: Array<{
1007
+ date?: string;
1008
+ value?: number;
1009
+ }>;
1010
+ /**
1011
+ * Breakdown values (only for total_value with breakdown)
1012
+ */
1013
+ breakdowns?: Array<{
1014
+ dimension?: string;
1015
+ value?: number;
1016
+ }>;
1017
+ };
1018
+ };
1019
+ dataDelay?: string;
1020
+ };
1021
+ type metricType = 'time_series' | 'total_value';
1022
+ type InstagramDemographicsResponse = {
1023
+ success?: boolean;
1024
+ /**
1025
+ * The Zernio SocialAccount ID
1026
+ */
1027
+ accountId?: string;
1028
+ platform?: string;
1029
+ metric?: 'follower_demographics' | 'engaged_audience_demographics';
1030
+ /**
1031
+ * The timeframe used for demographic data
1032
+ */
1033
+ timeframe?: 'this_week' | 'this_month';
1034
+ /**
1035
+ * Object keyed by breakdown dimension (age, city, country, gender)
1036
+ */
1037
+ demographics?: {
1038
+ [key: string]: Array<{
1039
+ /**
1040
+ * The dimension value (e.g., "25-34", "US", "M")
1041
+ */
1042
+ dimension?: string;
1043
+ /**
1044
+ * Count of accounts in this dimension
1045
+ */
1046
+ value?: number;
1047
+ }>;
1048
+ };
1049
+ note?: string;
1050
+ };
1051
+ type metric = 'follower_demographics' | 'engaged_audience_demographics';
1052
+ /**
1053
+ * The timeframe used for demographic data
1054
+ */
1055
+ type timeframe = 'this_week' | 'this_month';
969
1056
  /**
970
1057
  * Feed aspect ratio 0.8-1.91, carousels up to 10 items, stories require media (no captions). User tag coordinates 0.0-1.0 from top-left. Images over 8 MB and videos over platform limits are auto-compressed.
971
1058
  */
@@ -1790,9 +1877,13 @@ type TikTokPlatformData = {
1790
1877
  */
1791
1878
  mediaType?: 'video' | 'photo';
1792
1879
  /**
1793
- * Optional for video posts. Timestamp in milliseconds to select which frame to use as thumbnail (defaults to 1000ms/1 second).
1880
+ * Optional for video posts. Timestamp in milliseconds to select which frame to use as thumbnail (defaults to 1000ms/1 second). Ignored when videoCoverImageUrl is provided.
1794
1881
  */
1795
1882
  videoCoverTimestampMs?: number;
1883
+ /**
1884
+ * Optional for video posts. URL of a custom thumbnail image (JPG, PNG, or WebP, max 20MB). The image is stitched as a single frame at the start of the video and used as the cover. Overrides videoCoverTimestampMs when provided.
1885
+ */
1886
+ videoCoverImageUrl?: string;
1796
1887
  /**
1797
1888
  * Optional for photo carousels. Index of image to use as cover, 0-based (defaults to 0/first image).
1798
1889
  */
@@ -2738,6 +2829,80 @@ type GetYouTubeDailyViewsError = ({
2738
2829
  success?: boolean;
2739
2830
  error?: string;
2740
2831
  });
2832
+ type GetInstagramAccountInsightsData = {
2833
+ query: {
2834
+ /**
2835
+ * The Zernio SocialAccount ID for the Instagram account
2836
+ */
2837
+ accountId: string;
2838
+ /**
2839
+ * Breakdown dimension (only valid with metricType=total_value).
2840
+ * Valid values depend on the metric: media_product_type, follow_type, follower_type, contact_button_type.
2841
+ *
2842
+ */
2843
+ breakdown?: string;
2844
+ /**
2845
+ * Comma-separated list of metrics. Defaults to "reach,views,accounts_engaged,total_interactions".
2846
+ * Valid metrics: reach, views, accounts_engaged, total_interactions, comments, likes, saves, shares,
2847
+ * replies, reposts, follows_and_unfollows, profile_links_taps.
2848
+ * Note: only "reach" supports metricType=time_series. All other metrics are total_value only.
2849
+ *
2850
+ */
2851
+ metrics?: string;
2852
+ /**
2853
+ * "total_value" (default) returns aggregated totals and supports breakdowns.
2854
+ * "time_series" returns daily values but only works with the "reach" metric.
2855
+ *
2856
+ */
2857
+ metricType?: 'time_series' | 'total_value';
2858
+ /**
2859
+ * Start date (YYYY-MM-DD). Defaults to 30 days ago.
2860
+ */
2861
+ since?: string;
2862
+ /**
2863
+ * End date (YYYY-MM-DD). Defaults to today.
2864
+ */
2865
+ until?: string;
2866
+ };
2867
+ };
2868
+ type GetInstagramAccountInsightsResponse = (InstagramAccountInsightsResponse);
2869
+ type GetInstagramAccountInsightsError = ({
2870
+ error?: string;
2871
+ } | {
2872
+ error?: string;
2873
+ code?: string;
2874
+ });
2875
+ type GetInstagramDemographicsData = {
2876
+ query: {
2877
+ /**
2878
+ * The Zernio SocialAccount ID for the Instagram account
2879
+ */
2880
+ accountId: string;
2881
+ /**
2882
+ * Comma-separated list of demographic dimensions: age, city, country, gender.
2883
+ * Defaults to all four if omitted.
2884
+ *
2885
+ */
2886
+ breakdown?: string;
2887
+ /**
2888
+ * "follower_demographics" for follower audience data, or "engaged_audience_demographics" for engaged viewers.
2889
+ *
2890
+ */
2891
+ metric?: 'follower_demographics' | 'engaged_audience_demographics';
2892
+ /**
2893
+ * Time period for demographic data. Defaults to "this_month".
2894
+ *
2895
+ */
2896
+ timeframe?: 'this_week' | 'this_month';
2897
+ };
2898
+ };
2899
+ type GetInstagramDemographicsResponse = (InstagramDemographicsResponse);
2900
+ type GetInstagramDemographicsError = ({
2901
+ error?: string;
2902
+ } | {
2903
+ error?: string;
2904
+ code?: string;
2905
+ });
2741
2906
  type GetDailyMetricsData = {
2742
2907
  query?: {
2743
2908
  /**
@@ -3670,6 +3835,76 @@ type GetAccountHealthResponse = ({
3670
3835
  type GetAccountHealthError = ({
3671
3836
  error?: string;
3672
3837
  });
3838
+ type GetTikTokCreatorInfoData = {
3839
+ path: {
3840
+ /**
3841
+ * The TikTok account ID
3842
+ */
3843
+ accountId: string;
3844
+ };
3845
+ query?: {
3846
+ /**
3847
+ * The media type to get creator info for (affects available interaction settings)
3848
+ */
3849
+ mediaType?: 'video' | 'photo';
3850
+ };
3851
+ };
3852
+ type GetTikTokCreatorInfoResponse = ({
3853
+ creator?: {
3854
+ /**
3855
+ * Creator display name
3856
+ */
3857
+ nickname?: string;
3858
+ /**
3859
+ * Creator avatar URL
3860
+ */
3861
+ avatarUrl?: string;
3862
+ /**
3863
+ * Whether the creator is verified
3864
+ */
3865
+ isVerified?: boolean;
3866
+ /**
3867
+ * Whether the creator can publish more posts right now
3868
+ */
3869
+ canPostMore?: boolean;
3870
+ };
3871
+ /**
3872
+ * Available privacy level options for this creator
3873
+ */
3874
+ privacyLevels?: Array<{
3875
+ /**
3876
+ * Privacy level value to use when creating posts (e.g. PUBLIC_TO_EVERYONE, MUTUAL_FOLLOW_FRIENDS, FOLLOWER_OF_CREATOR, SELF_ONLY)
3877
+ */
3878
+ value?: string;
3879
+ /**
3880
+ * Human-readable label
3881
+ */
3882
+ label?: string;
3883
+ }>;
3884
+ postingLimits?: {
3885
+ /**
3886
+ * Maximum video duration in seconds
3887
+ */
3888
+ maxVideoDurationSec?: number;
3889
+ /**
3890
+ * Available interaction toggles (comment, duet, stitch) and their defaults
3891
+ */
3892
+ interactionSettings?: {
3893
+ [key: string]: unknown;
3894
+ };
3895
+ };
3896
+ /**
3897
+ * Available commercial content disclosure options
3898
+ */
3899
+ commercialContentTypes?: Array<{
3900
+ value?: string;
3901
+ label?: string;
3902
+ requires?: Array<(string)>;
3903
+ }>;
3904
+ });
3905
+ type GetTikTokCreatorInfoError = ({
3906
+ error?: string;
3907
+ });
3673
3908
  type ListApiKeysResponse = ({
3674
3909
  apiKeys?: Array<ApiKey>;
3675
3910
  });
@@ -6270,6 +6505,14 @@ type SendInboxMessageData = {
6270
6505
  * Message text
6271
6506
  */
6272
6507
  message?: string;
6508
+ /**
6509
+ * URL of the attachment to send (image, video, audio, or file). The URL must be publicly accessible. For binary file uploads, use multipart/form-data instead.
6510
+ */
6511
+ attachmentUrl?: string;
6512
+ /**
6513
+ * Type of attachment. Defaults to file if not specified.
6514
+ */
6515
+ attachmentType?: 'image' | 'video' | 'audio' | 'file';
6273
6516
  /**
6274
6517
  * Quick reply buttons. Mutually exclusive with buttons. Max 13 items.
6275
6518
  */
@@ -8500,4 +8743,4 @@ type ReleaseWhatsAppPhoneNumberError = (unknown | {
8500
8743
  error?: string;
8501
8744
  });
8502
8745
 
8503
- export { type AccountGetResponse, type AccountWithFollowerStats, type AccountsListResponse, type AddWhatsAppBroadcastRecipientsData, type AddWhatsAppBroadcastRecipientsError, type AddWhatsAppBroadcastRecipientsResponse, type AnalyticsListResponse, type AnalyticsOverview, type AnalyticsSinglePostResponse, type ApiKey, type BlueskyPlatformData, type BookmarkPostData, type BookmarkPostError, type BookmarkPostResponse, type BulkDeleteWhatsAppContactsData, type BulkDeleteWhatsAppContactsError, type BulkDeleteWhatsAppContactsResponse, type BulkUpdateWhatsAppContactsData, type BulkUpdateWhatsAppContactsError, type BulkUpdateWhatsAppContactsResponse, type BulkUploadPostsData, type BulkUploadPostsError, type BulkUploadPostsResponse, type CancelWhatsAppBroadcastScheduleData, type CancelWhatsAppBroadcastScheduleError, type CancelWhatsAppBroadcastScheduleResponse, type CaptionResponse, type CheckInstagramHashtagsData, type CheckInstagramHashtagsError, type CheckInstagramHashtagsResponse, type ClientOptions, type CompleteTelegramConnectData, type CompleteTelegramConnectError, type CompleteTelegramConnectResponse, type ConnectBlueskyCredentialsData, type ConnectBlueskyCredentialsError, type ConnectBlueskyCredentialsResponse, type ConnectWhatsAppCredentialsData, type ConnectWhatsAppCredentialsError, type ConnectWhatsAppCredentialsResponse, type ConnectionLog, type CreateAccountGroupData, type CreateAccountGroupError, type CreateAccountGroupResponse, type CreateApiKeyData, type CreateApiKeyError, type CreateApiKeyResponse, type CreateGoogleBusinessMediaData, type CreateGoogleBusinessMediaError, type CreateGoogleBusinessMediaResponse, type CreateGoogleBusinessPlaceActionData, type CreateGoogleBusinessPlaceActionError, type CreateGoogleBusinessPlaceActionResponse, type CreateInviteTokenData, type CreateInviteTokenError, type CreateInviteTokenResponse, type CreatePostData, type CreatePostError, type CreatePostResponse, type CreateProfileData, type CreateProfileError, type CreateProfileResponse, type CreateQueueSlotData, type CreateQueueSlotError, type CreateQueueSlotResponse, type CreateWebhookSettingsData, type CreateWebhookSettingsError, type CreateWebhookSettingsResponse, type CreateWhatsAppBroadcastData, type CreateWhatsAppBroadcastError, type CreateWhatsAppBroadcastResponse, type CreateWhatsAppContactData, type CreateWhatsAppContactError, type CreateWhatsAppContactResponse, type CreateWhatsAppTemplateData, type CreateWhatsAppTemplateError, type CreateWhatsAppTemplateResponse, type DeleteAccountData, type DeleteAccountError, type DeleteAccountGroupData, type DeleteAccountGroupError, type DeleteAccountGroupResponse, type DeleteAccountResponse, type DeleteApiKeyData, type DeleteApiKeyError, type DeleteApiKeyResponse, type DeleteGoogleBusinessMediaData, type DeleteGoogleBusinessMediaError, type DeleteGoogleBusinessMediaResponse, type DeleteGoogleBusinessPlaceActionData, type DeleteGoogleBusinessPlaceActionError, type DeleteGoogleBusinessPlaceActionResponse, type DeleteInboxCommentData, type DeleteInboxCommentError, type DeleteInboxCommentResponse, type DeleteInboxReviewReplyData, type DeleteInboxReviewReplyError, type DeleteInboxReviewReplyResponse, type DeleteInstagramIceBreakersData, type DeleteInstagramIceBreakersError, type DeleteInstagramIceBreakersResponse, type DeleteMessengerMenuData, type DeleteMessengerMenuError, type DeleteMessengerMenuResponse, type DeletePostData, type DeletePostError, type DeletePostResponse, type DeleteProfileData, type DeleteProfileError, type DeleteProfileResponse, type DeleteQueueSlotData, type DeleteQueueSlotError, type DeleteQueueSlotResponse, type DeleteTelegramCommandsData, type DeleteTelegramCommandsError, type DeleteTelegramCommandsResponse, type DeleteWebhookSettingsData, type DeleteWebhookSettingsError, type DeleteWebhookSettingsResponse, type DeleteWhatsAppBroadcastData, type DeleteWhatsAppBroadcastError, type DeleteWhatsAppBroadcastResponse, type DeleteWhatsAppContactData, type DeleteWhatsAppContactError, type DeleteWhatsAppContactResponse, type DeleteWhatsAppGroupData, type DeleteWhatsAppGroupError, type DeleteWhatsAppGroupResponse, type DeleteWhatsAppTemplateData, type DeleteWhatsAppTemplateError, type DeleteWhatsAppTemplateResponse, type DownloadBlueskyMediaData, type DownloadBlueskyMediaError, type DownloadBlueskyMediaResponse, type DownloadFacebookVideoData, type DownloadFacebookVideoError, type DownloadFacebookVideoResponse, type DownloadFormat, type DownloadInstagramMediaData, type DownloadInstagramMediaError, type DownloadInstagramMediaResponse, type DownloadLinkedInVideoData, type DownloadLinkedInVideoError, type DownloadLinkedInVideoResponse, type DownloadResponse, type DownloadTikTokVideoData, type DownloadTikTokVideoError, type DownloadTikTokVideoResponse, type DownloadTwitterMediaData, type DownloadTwitterMediaError, type DownloadTwitterMediaResponse, type DownloadYouTubeVideoData, type DownloadYouTubeVideoError, type DownloadYouTubeVideoResponse, type EditInboxMessageData, type EditInboxMessageError, type EditInboxMessageResponse, type ErrorResponse, type FacebookPlatformData, type FollowUserData, type FollowUserError, type FollowUserResponse, type FollowerStatsResponse, type FoodMenu, type FoodMenuItem, type FoodMenuItemAttributes, type FoodMenuLabel, type FoodMenuSection, type GetAccountHealthData, type GetAccountHealthError, type GetAccountHealthResponse, type GetAllAccountsHealthData, type GetAllAccountsHealthError, type GetAllAccountsHealthResponse, type GetAnalyticsData, type GetAnalyticsError, type GetAnalyticsResponse, type GetBestTimeToPostData, type GetBestTimeToPostError, type GetBestTimeToPostResponse, type GetConnectUrlData, type GetConnectUrlError, type GetConnectUrlResponse, type GetContentDecayData, type GetContentDecayError, type GetContentDecayResponse, type GetDailyMetricsData, type GetDailyMetricsError, type GetDailyMetricsResponse, type GetFacebookPagesData, type GetFacebookPagesError, type GetFacebookPagesResponse, type GetFollowerStatsData, type GetFollowerStatsError, type GetFollowerStatsResponse, type GetGmbLocationsData, type GetGmbLocationsError, type GetGmbLocationsResponse, type GetGoogleBusinessAttributesData, type GetGoogleBusinessAttributesError, type GetGoogleBusinessAttributesResponse, type GetGoogleBusinessFoodMenusData, type GetGoogleBusinessFoodMenusError, type GetGoogleBusinessFoodMenusResponse, type GetGoogleBusinessLocationDetailsData, type GetGoogleBusinessLocationDetailsError, type GetGoogleBusinessLocationDetailsResponse, type GetGoogleBusinessReviewsData, type GetGoogleBusinessReviewsError, type GetGoogleBusinessReviewsResponse, type GetInboxConversationData, type GetInboxConversationError, type GetInboxConversationMessagesData, type GetInboxConversationMessagesError, type GetInboxConversationMessagesResponse, type GetInboxConversationResponse, type GetInboxPostCommentsData, type GetInboxPostCommentsError, type GetInboxPostCommentsResponse, type GetInstagramIceBreakersData, type GetInstagramIceBreakersError, type GetInstagramIceBreakersResponse, type GetLinkedInAggregateAnalyticsData, type GetLinkedInAggregateAnalyticsError, type GetLinkedInAggregateAnalyticsResponse, type GetLinkedInMentionsData, type GetLinkedInMentionsError, type GetLinkedInMentionsResponse, type GetLinkedInOrganizationsData, type GetLinkedInOrganizationsError, type GetLinkedInOrganizationsResponse, type GetLinkedInPostAnalyticsData, type GetLinkedInPostAnalyticsError, type GetLinkedInPostAnalyticsResponse, type GetLinkedInPostReactionsData, type GetLinkedInPostReactionsError, type GetLinkedInPostReactionsResponse, type GetMediaPresignedUrlData, type GetMediaPresignedUrlError, type GetMediaPresignedUrlResponse, type GetMessengerMenuData, type GetMessengerMenuError, type GetMessengerMenuResponse, type GetNextQueueSlotData, type GetNextQueueSlotError, type GetNextQueueSlotResponse, type GetPendingOAuthDataData, type GetPendingOAuthDataError, type GetPendingOAuthDataResponse, type GetPinterestBoardsData, type GetPinterestBoardsError, type GetPinterestBoardsResponse, type GetPostData, type GetPostError, type GetPostLogsData, type GetPostLogsError, type GetPostLogsResponse, type GetPostResponse, type GetPostTimelineData, type GetPostTimelineError, type GetPostTimelineResponse, type GetPostingFrequencyData, type GetPostingFrequencyError, type GetPostingFrequencyResponse, type GetProfileData, type GetProfileError, type GetProfileResponse, type GetRedditFeedData, type GetRedditFeedError, type GetRedditFeedResponse, type GetRedditFlairsData, type GetRedditFlairsError, type GetRedditFlairsResponse, type GetRedditSubredditsData, type GetRedditSubredditsError, type GetRedditSubredditsResponse, type GetTelegramCommandsData, type GetTelegramCommandsError, type GetTelegramCommandsResponse, type GetTelegramConnectStatusData, type GetTelegramConnectStatusError, type GetTelegramConnectStatusResponse, type GetUsageStatsError, type GetUsageStatsResponse, type GetUserData, type GetUserError, type GetUserResponse, type GetWebhookLogsData, type GetWebhookLogsError, type GetWebhookLogsResponse, type GetWebhookSettingsError, type GetWebhookSettingsResponse, type GetWhatsAppBroadcastData, type GetWhatsAppBroadcastError, type GetWhatsAppBroadcastRecipientsData, type GetWhatsAppBroadcastRecipientsError, type GetWhatsAppBroadcastRecipientsResponse, type GetWhatsAppBroadcastResponse, type GetWhatsAppBroadcastsData, type GetWhatsAppBroadcastsError, type GetWhatsAppBroadcastsResponse, type GetWhatsAppBusinessProfileData, type GetWhatsAppBusinessProfileError, type GetWhatsAppBusinessProfileResponse, type GetWhatsAppContactData, type GetWhatsAppContactError, type GetWhatsAppContactResponse, type GetWhatsAppContactsData, type GetWhatsAppContactsError, type GetWhatsAppContactsResponse, type GetWhatsAppDisplayNameData, type GetWhatsAppDisplayNameError, type GetWhatsAppDisplayNameResponse, type GetWhatsAppGroupsData, type GetWhatsAppGroupsError, type GetWhatsAppGroupsResponse, type GetWhatsAppPhoneNumberData, type GetWhatsAppPhoneNumberError, type GetWhatsAppPhoneNumberResponse, type GetWhatsAppPhoneNumbersData, type GetWhatsAppPhoneNumbersError, type GetWhatsAppPhoneNumbersResponse, type GetWhatsAppTemplateData, type GetWhatsAppTemplateError, type GetWhatsAppTemplateResponse, type GetWhatsAppTemplatesData, type GetWhatsAppTemplatesError, type GetWhatsAppTemplatesResponse, type GetYouTubeDailyViewsData, type GetYouTubeDailyViewsError, type GetYouTubeDailyViewsResponse, type GetYouTubeTranscriptData, type GetYouTubeTranscriptError, type GetYouTubeTranscriptResponse, type GoogleBusinessPlatformData, type HandleOAuthCallbackData, type HandleOAuthCallbackError, type HandleOAuthCallbackResponse, type HashtagCheckResponse, type HashtagInfo, type HideInboxCommentData, type HideInboxCommentError, type HideInboxCommentResponse, type ImportWhatsAppContactsData, type ImportWhatsAppContactsError, type ImportWhatsAppContactsResponse, type InitiateTelegramConnectData, type InitiateTelegramConnectError, type InitiateTelegramConnectResponse, type InstagramPlatformData, Late, LateApiError, type LikeInboxCommentData, type LikeInboxCommentError, type LikeInboxCommentResponse, type LinkedInAggregateAnalyticsDailyResponse, type LinkedInAggregateAnalyticsTotalResponse, type LinkedInPlatformData, type ListAccountGroupsError, type ListAccountGroupsResponse, type ListAccountsData, type ListAccountsError, type ListAccountsResponse, type ListApiKeysError, type ListApiKeysResponse, type ListConnectionLogsData, type ListConnectionLogsError, type ListConnectionLogsResponse, type ListFacebookPagesData, type ListFacebookPagesError, type ListFacebookPagesResponse, type ListGoogleBusinessLocationsData, type ListGoogleBusinessLocationsError, type ListGoogleBusinessLocationsResponse, type ListGoogleBusinessMediaData, type ListGoogleBusinessMediaError, type ListGoogleBusinessMediaResponse, type ListGoogleBusinessPlaceActionsData, type ListGoogleBusinessPlaceActionsError, type ListGoogleBusinessPlaceActionsResponse, type ListInboxCommentsData, type ListInboxCommentsError, type ListInboxCommentsResponse, type ListInboxConversationsData, type ListInboxConversationsError, type ListInboxConversationsResponse, type ListInboxReviewsData, type ListInboxReviewsError, type ListInboxReviewsResponse, type ListLinkedInOrganizationsData, type ListLinkedInOrganizationsError, type ListLinkedInOrganizationsResponse, type ListPinterestBoardsForSelectionData, type ListPinterestBoardsForSelectionError, type ListPinterestBoardsForSelectionResponse, type ListPostsData, type ListPostsError, type ListPostsLogsData, type ListPostsLogsError, type ListPostsLogsResponse, type ListPostsResponse, type ListProfilesData, type ListProfilesError, type ListProfilesResponse, type ListQueueSlotsData, type ListQueueSlotsError, type ListQueueSlotsResponse, type ListSnapchatProfilesData, type ListSnapchatProfilesError, type ListSnapchatProfilesResponse, type ListUsersError, type ListUsersResponse, type MediaItem, type MediaUploadResponse, type Money, type Pagination, type ParameterLimitParam, type ParameterPageParam, type PinterestPlatformData, type PlatformAnalytics, type PlatformTarget, type Post, type PostAnalytics, type PostCreateResponse, type PostDeleteResponse, type PostGetResponse, type PostLog, type PostRetryResponse, type PostUpdateResponse, type PostsListResponse, type PreviewQueueData, type PreviewQueueError, type PreviewQueueResponse, type Profile, type ProfileCreateResponse, type ProfileDeleteResponse, type ProfileGetResponse, type ProfileUpdateResponse, type ProfilesListResponse, type PurchaseWhatsAppPhoneNumberData, type PurchaseWhatsAppPhoneNumberError, type PurchaseWhatsAppPhoneNumberResponse, type QueueDeleteResponse, type QueueNextSlotResponse, type QueuePreviewResponse, type QueueSchedule, type QueueSlot, type QueueSlotsResponse, type QueueUpdateResponse, RateLimitError, type RecyclingConfig, type RecyclingState, type RedditPlatformData, type ReleaseWhatsAppPhoneNumberData, type ReleaseWhatsAppPhoneNumberError, type ReleaseWhatsAppPhoneNumberResponse, type RemoveBookmarkData, type RemoveBookmarkError, type RemoveBookmarkResponse, type RemoveWhatsAppBroadcastRecipientsData, type RemoveWhatsAppBroadcastRecipientsError, type RemoveWhatsAppBroadcastRecipientsResponse, type RenameWhatsAppGroupData, type RenameWhatsAppGroupError, type RenameWhatsAppGroupResponse, type ReplyToInboxPostData, type ReplyToInboxPostError, type ReplyToInboxPostResponse, type ReplyToInboxReviewData, type ReplyToInboxReviewError, type ReplyToInboxReviewResponse, type RetryPostData, type RetryPostError, type RetryPostResponse, type RetweetPostData, type RetweetPostError, type RetweetPostResponse, type ScheduleWhatsAppBroadcastData, type ScheduleWhatsAppBroadcastError, type ScheduleWhatsAppBroadcastResponse, type SearchRedditData, type SearchRedditError, type SearchRedditResponse, type SelectFacebookPageData, type SelectFacebookPageError, type SelectFacebookPageResponse, type SelectGoogleBusinessLocationData, type SelectGoogleBusinessLocationError, type SelectGoogleBusinessLocationResponse, type SelectLinkedInOrganizationData, type SelectLinkedInOrganizationError, type SelectLinkedInOrganizationResponse, type SelectPinterestBoardData, type SelectPinterestBoardError, type SelectPinterestBoardResponse, type SelectSnapchatProfileData, type SelectSnapchatProfileError, type SelectSnapchatProfileResponse, type SendInboxMessageData, type SendInboxMessageError, type SendInboxMessageResponse, type SendPrivateReplyToCommentData, type SendPrivateReplyToCommentError, type SendPrivateReplyToCommentResponse, type SendWhatsAppBroadcastData, type SendWhatsAppBroadcastError, type SendWhatsAppBroadcastResponse, type SendWhatsAppBulkData, type SendWhatsAppBulkError, type SendWhatsAppBulkResponse, type SetInstagramIceBreakersData, type SetInstagramIceBreakersError, type SetInstagramIceBreakersResponse, type SetMessengerMenuData, type SetMessengerMenuError, type SetMessengerMenuResponse, type SetTelegramCommandsData, type SetTelegramCommandsError, type SetTelegramCommandsResponse, type SnapchatPlatformData, type SocialAccount, type TelegramPlatformData, type TestWebhookData, type TestWebhookError, type TestWebhookResponse, type ThreadsPlatformData, type TikTokPlatformData, type TranscriptResponse, type TranscriptSegment, type TwitterPlatformData, type UndoRetweetData, type UndoRetweetError, type UndoRetweetResponse, type UnfollowUserData, type UnfollowUserError, type UnfollowUserResponse, type UnhideInboxCommentData, type UnhideInboxCommentError, type UnhideInboxCommentResponse, type UnlikeInboxCommentData, type UnlikeInboxCommentError, type UnlikeInboxCommentResponse, type UnpublishPostData, type UnpublishPostError, type UnpublishPostResponse, type UpdateAccountData, type UpdateAccountError, type UpdateAccountGroupData, type UpdateAccountGroupError, type UpdateAccountGroupResponse, type UpdateAccountResponse, type UpdateFacebookPageData, type UpdateFacebookPageError, type UpdateFacebookPageResponse, type UpdateGmbLocationData, type UpdateGmbLocationError, type UpdateGmbLocationResponse, type UpdateGoogleBusinessAttributesData, type UpdateGoogleBusinessAttributesError, type UpdateGoogleBusinessAttributesResponse, type UpdateGoogleBusinessFoodMenusData, type UpdateGoogleBusinessFoodMenusError, type UpdateGoogleBusinessFoodMenusResponse, type UpdateGoogleBusinessLocationDetailsData, type UpdateGoogleBusinessLocationDetailsError, type UpdateGoogleBusinessLocationDetailsResponse, type UpdateInboxConversationData, type UpdateInboxConversationError, type UpdateInboxConversationResponse, type UpdateLinkedInOrganizationData, type UpdateLinkedInOrganizationError, type UpdateLinkedInOrganizationResponse, type UpdatePinterestBoardsData, type UpdatePinterestBoardsError, type UpdatePinterestBoardsResponse, type UpdatePostData, type UpdatePostError, type UpdatePostResponse, type UpdateProfileData, type UpdateProfileError, type UpdateProfileResponse, type UpdateQueueSlotData, type UpdateQueueSlotError, type UpdateQueueSlotResponse, type UpdateRedditSubredditsData, type UpdateRedditSubredditsError, type UpdateRedditSubredditsResponse, type UpdateWebhookSettingsData, type UpdateWebhookSettingsError, type UpdateWebhookSettingsResponse, type UpdateWhatsAppBusinessProfileData, type UpdateWhatsAppBusinessProfileError, type UpdateWhatsAppBusinessProfileResponse, type UpdateWhatsAppContactData, type UpdateWhatsAppContactError, type UpdateWhatsAppContactResponse, type UpdateWhatsAppDisplayNameData, type UpdateWhatsAppDisplayNameError, type UpdateWhatsAppDisplayNameResponse, type UpdateWhatsAppTemplateData, type UpdateWhatsAppTemplateError, type UpdateWhatsAppTemplateResponse, type UploadTokenResponse, type UploadTokenStatusResponse, type UploadWhatsAppProfilePhotoData, type UploadWhatsAppProfilePhotoError, type UploadWhatsAppProfilePhotoResponse, type UploadedFile, type UsageStats, type User, type UserGetResponse, type UsersListResponse, type ValidateMediaData, type ValidateMediaError, type ValidateMediaResponse, type ValidatePostData, type ValidatePostError, type ValidatePostLengthData, type ValidatePostLengthError, type ValidatePostLengthResponse, type ValidatePostResponse, type ValidateSubredditData, type ValidateSubredditError, type ValidateSubredditResponse, ValidationError, type Webhook, type WebhookLog, type WebhookPayloadAccountConnected, type WebhookPayloadAccountDisconnected, type WebhookPayloadComment, type WebhookPayloadMessage, type WebhookPayloadPost, type YouTubeDailyViewsResponse, type YouTubePlatformData, type YouTubeScopeMissingResponse, type action, type aggregation, type aggregation2, type aggregation3, type billingPeriod, type commercialContentType, type connectionMethod, type contentType, type contentType2, type contentType3, Late as default, type direction, type disconnectionType, type errorCategory, type errorSource, type event, type event2, type event3, type event4, type event5, type event6, type eventType, type gapFreq, type graduationStrategy, type mediaType, type mediaType2, parseApiError, type parseMode, type permission, type platform, type platform2, type platform3, type replySettings, type scope, type status, type status2, type status3, type status4, type status5, type status6, type status7, type status8, type syncStatus, type syncStatus2, type type, type type2, type type3, type visibility };
8746
+ export { type AccountGetResponse, type AccountWithFollowerStats, type AccountsListResponse, type AddWhatsAppBroadcastRecipientsData, type AddWhatsAppBroadcastRecipientsError, type AddWhatsAppBroadcastRecipientsResponse, type AnalyticsListResponse, type AnalyticsOverview, type AnalyticsSinglePostResponse, type ApiKey, type BlueskyPlatformData, type BookmarkPostData, type BookmarkPostError, type BookmarkPostResponse, type BulkDeleteWhatsAppContactsData, type BulkDeleteWhatsAppContactsError, type BulkDeleteWhatsAppContactsResponse, type BulkUpdateWhatsAppContactsData, type BulkUpdateWhatsAppContactsError, type BulkUpdateWhatsAppContactsResponse, type BulkUploadPostsData, type BulkUploadPostsError, type BulkUploadPostsResponse, type CancelWhatsAppBroadcastScheduleData, type CancelWhatsAppBroadcastScheduleError, type CancelWhatsAppBroadcastScheduleResponse, type CaptionResponse, type CheckInstagramHashtagsData, type CheckInstagramHashtagsError, type CheckInstagramHashtagsResponse, type ClientOptions, type CompleteTelegramConnectData, type CompleteTelegramConnectError, type CompleteTelegramConnectResponse, type ConnectBlueskyCredentialsData, type ConnectBlueskyCredentialsError, type ConnectBlueskyCredentialsResponse, type ConnectWhatsAppCredentialsData, type ConnectWhatsAppCredentialsError, type ConnectWhatsAppCredentialsResponse, type ConnectionLog, type CreateAccountGroupData, type CreateAccountGroupError, type CreateAccountGroupResponse, type CreateApiKeyData, type CreateApiKeyError, type CreateApiKeyResponse, type CreateGoogleBusinessMediaData, type CreateGoogleBusinessMediaError, type CreateGoogleBusinessMediaResponse, type CreateGoogleBusinessPlaceActionData, type CreateGoogleBusinessPlaceActionError, type CreateGoogleBusinessPlaceActionResponse, type CreateInviteTokenData, type CreateInviteTokenError, type CreateInviteTokenResponse, type CreatePostData, type CreatePostError, type CreatePostResponse, type CreateProfileData, type CreateProfileError, type CreateProfileResponse, type CreateQueueSlotData, type CreateQueueSlotError, type CreateQueueSlotResponse, type CreateWebhookSettingsData, type CreateWebhookSettingsError, type CreateWebhookSettingsResponse, type CreateWhatsAppBroadcastData, type CreateWhatsAppBroadcastError, type CreateWhatsAppBroadcastResponse, type CreateWhatsAppContactData, type CreateWhatsAppContactError, type CreateWhatsAppContactResponse, type CreateWhatsAppTemplateData, type CreateWhatsAppTemplateError, type CreateWhatsAppTemplateResponse, type DeleteAccountData, type DeleteAccountError, type DeleteAccountGroupData, type DeleteAccountGroupError, type DeleteAccountGroupResponse, type DeleteAccountResponse, type DeleteApiKeyData, type DeleteApiKeyError, type DeleteApiKeyResponse, type DeleteGoogleBusinessMediaData, type DeleteGoogleBusinessMediaError, type DeleteGoogleBusinessMediaResponse, type DeleteGoogleBusinessPlaceActionData, type DeleteGoogleBusinessPlaceActionError, type DeleteGoogleBusinessPlaceActionResponse, type DeleteInboxCommentData, type DeleteInboxCommentError, type DeleteInboxCommentResponse, type DeleteInboxReviewReplyData, type DeleteInboxReviewReplyError, type DeleteInboxReviewReplyResponse, type DeleteInstagramIceBreakersData, type DeleteInstagramIceBreakersError, type DeleteInstagramIceBreakersResponse, type DeleteMessengerMenuData, type DeleteMessengerMenuError, type DeleteMessengerMenuResponse, type DeletePostData, type DeletePostError, type DeletePostResponse, type DeleteProfileData, type DeleteProfileError, type DeleteProfileResponse, type DeleteQueueSlotData, type DeleteQueueSlotError, type DeleteQueueSlotResponse, type DeleteTelegramCommandsData, type DeleteTelegramCommandsError, type DeleteTelegramCommandsResponse, type DeleteWebhookSettingsData, type DeleteWebhookSettingsError, type DeleteWebhookSettingsResponse, type DeleteWhatsAppBroadcastData, type DeleteWhatsAppBroadcastError, type DeleteWhatsAppBroadcastResponse, type DeleteWhatsAppContactData, type DeleteWhatsAppContactError, type DeleteWhatsAppContactResponse, type DeleteWhatsAppGroupData, type DeleteWhatsAppGroupError, type DeleteWhatsAppGroupResponse, type DeleteWhatsAppTemplateData, type DeleteWhatsAppTemplateError, type DeleteWhatsAppTemplateResponse, type DownloadBlueskyMediaData, type DownloadBlueskyMediaError, type DownloadBlueskyMediaResponse, type DownloadFacebookVideoData, type DownloadFacebookVideoError, type DownloadFacebookVideoResponse, type DownloadFormat, type DownloadInstagramMediaData, type DownloadInstagramMediaError, type DownloadInstagramMediaResponse, type DownloadLinkedInVideoData, type DownloadLinkedInVideoError, type DownloadLinkedInVideoResponse, type DownloadResponse, type DownloadTikTokVideoData, type DownloadTikTokVideoError, type DownloadTikTokVideoResponse, type DownloadTwitterMediaData, type DownloadTwitterMediaError, type DownloadTwitterMediaResponse, type DownloadYouTubeVideoData, type DownloadYouTubeVideoError, type DownloadYouTubeVideoResponse, type EditInboxMessageData, type EditInboxMessageError, type EditInboxMessageResponse, type ErrorResponse, type FacebookPlatformData, type FollowUserData, type FollowUserError, type FollowUserResponse, type FollowerStatsResponse, type FoodMenu, type FoodMenuItem, type FoodMenuItemAttributes, type FoodMenuLabel, type FoodMenuSection, type GetAccountHealthData, type GetAccountHealthError, type GetAccountHealthResponse, type GetAllAccountsHealthData, type GetAllAccountsHealthError, type GetAllAccountsHealthResponse, type GetAnalyticsData, type GetAnalyticsError, type GetAnalyticsResponse, type GetBestTimeToPostData, type GetBestTimeToPostError, type GetBestTimeToPostResponse, type GetConnectUrlData, type GetConnectUrlError, type GetConnectUrlResponse, type GetContentDecayData, type GetContentDecayError, type GetContentDecayResponse, type GetDailyMetricsData, type GetDailyMetricsError, type GetDailyMetricsResponse, type GetFacebookPagesData, type GetFacebookPagesError, type GetFacebookPagesResponse, type GetFollowerStatsData, type GetFollowerStatsError, type GetFollowerStatsResponse, type GetGmbLocationsData, type GetGmbLocationsError, type GetGmbLocationsResponse, type GetGoogleBusinessAttributesData, type GetGoogleBusinessAttributesError, type GetGoogleBusinessAttributesResponse, type GetGoogleBusinessFoodMenusData, type GetGoogleBusinessFoodMenusError, type GetGoogleBusinessFoodMenusResponse, type GetGoogleBusinessLocationDetailsData, type GetGoogleBusinessLocationDetailsError, type GetGoogleBusinessLocationDetailsResponse, type GetGoogleBusinessReviewsData, type GetGoogleBusinessReviewsError, type GetGoogleBusinessReviewsResponse, type GetInboxConversationData, type GetInboxConversationError, type GetInboxConversationMessagesData, type GetInboxConversationMessagesError, type GetInboxConversationMessagesResponse, type GetInboxConversationResponse, type GetInboxPostCommentsData, type GetInboxPostCommentsError, type GetInboxPostCommentsResponse, type GetInstagramAccountInsightsData, type GetInstagramAccountInsightsError, type GetInstagramAccountInsightsResponse, type GetInstagramDemographicsData, type GetInstagramDemographicsError, type GetInstagramDemographicsResponse, type GetInstagramIceBreakersData, type GetInstagramIceBreakersError, type GetInstagramIceBreakersResponse, type GetLinkedInAggregateAnalyticsData, type GetLinkedInAggregateAnalyticsError, type GetLinkedInAggregateAnalyticsResponse, type GetLinkedInMentionsData, type GetLinkedInMentionsError, type GetLinkedInMentionsResponse, type GetLinkedInOrganizationsData, type GetLinkedInOrganizationsError, type GetLinkedInOrganizationsResponse, type GetLinkedInPostAnalyticsData, type GetLinkedInPostAnalyticsError, type GetLinkedInPostAnalyticsResponse, type GetLinkedInPostReactionsData, type GetLinkedInPostReactionsError, type GetLinkedInPostReactionsResponse, type GetMediaPresignedUrlData, type GetMediaPresignedUrlError, type GetMediaPresignedUrlResponse, type GetMessengerMenuData, type GetMessengerMenuError, type GetMessengerMenuResponse, type GetNextQueueSlotData, type GetNextQueueSlotError, type GetNextQueueSlotResponse, type GetPendingOAuthDataData, type GetPendingOAuthDataError, type GetPendingOAuthDataResponse, type GetPinterestBoardsData, type GetPinterestBoardsError, type GetPinterestBoardsResponse, type GetPostData, type GetPostError, type GetPostLogsData, type GetPostLogsError, type GetPostLogsResponse, type GetPostResponse, type GetPostTimelineData, type GetPostTimelineError, type GetPostTimelineResponse, type GetPostingFrequencyData, type GetPostingFrequencyError, type GetPostingFrequencyResponse, type GetProfileData, type GetProfileError, type GetProfileResponse, type GetRedditFeedData, type GetRedditFeedError, type GetRedditFeedResponse, type GetRedditFlairsData, type GetRedditFlairsError, type GetRedditFlairsResponse, type GetRedditSubredditsData, type GetRedditSubredditsError, type GetRedditSubredditsResponse, type GetTelegramCommandsData, type GetTelegramCommandsError, type GetTelegramCommandsResponse, type GetTelegramConnectStatusData, type GetTelegramConnectStatusError, type GetTelegramConnectStatusResponse, type GetTikTokCreatorInfoData, type GetTikTokCreatorInfoError, type GetTikTokCreatorInfoResponse, type GetUsageStatsError, type GetUsageStatsResponse, type GetUserData, type GetUserError, type GetUserResponse, type GetWebhookLogsData, type GetWebhookLogsError, type GetWebhookLogsResponse, type GetWebhookSettingsError, type GetWebhookSettingsResponse, type GetWhatsAppBroadcastData, type GetWhatsAppBroadcastError, type GetWhatsAppBroadcastRecipientsData, type GetWhatsAppBroadcastRecipientsError, type GetWhatsAppBroadcastRecipientsResponse, type GetWhatsAppBroadcastResponse, type GetWhatsAppBroadcastsData, type GetWhatsAppBroadcastsError, type GetWhatsAppBroadcastsResponse, type GetWhatsAppBusinessProfileData, type GetWhatsAppBusinessProfileError, type GetWhatsAppBusinessProfileResponse, type GetWhatsAppContactData, type GetWhatsAppContactError, type GetWhatsAppContactResponse, type GetWhatsAppContactsData, type GetWhatsAppContactsError, type GetWhatsAppContactsResponse, type GetWhatsAppDisplayNameData, type GetWhatsAppDisplayNameError, type GetWhatsAppDisplayNameResponse, type GetWhatsAppGroupsData, type GetWhatsAppGroupsError, type GetWhatsAppGroupsResponse, type GetWhatsAppPhoneNumberData, type GetWhatsAppPhoneNumberError, type GetWhatsAppPhoneNumberResponse, type GetWhatsAppPhoneNumbersData, type GetWhatsAppPhoneNumbersError, type GetWhatsAppPhoneNumbersResponse, type GetWhatsAppTemplateData, type GetWhatsAppTemplateError, type GetWhatsAppTemplateResponse, type GetWhatsAppTemplatesData, type GetWhatsAppTemplatesError, type GetWhatsAppTemplatesResponse, type GetYouTubeDailyViewsData, type GetYouTubeDailyViewsError, type GetYouTubeDailyViewsResponse, type GetYouTubeTranscriptData, type GetYouTubeTranscriptError, type GetYouTubeTranscriptResponse, type GoogleBusinessPlatformData, type HandleOAuthCallbackData, type HandleOAuthCallbackError, type HandleOAuthCallbackResponse, type HashtagCheckResponse, type HashtagInfo, type HideInboxCommentData, type HideInboxCommentError, type HideInboxCommentResponse, type ImportWhatsAppContactsData, type ImportWhatsAppContactsError, type ImportWhatsAppContactsResponse, type InitiateTelegramConnectData, type InitiateTelegramConnectError, type InitiateTelegramConnectResponse, type InstagramAccountInsightsResponse, type InstagramDemographicsResponse, type InstagramPlatformData, Late, LateApiError, type LikeInboxCommentData, type LikeInboxCommentError, type LikeInboxCommentResponse, type LinkedInAggregateAnalyticsDailyResponse, type LinkedInAggregateAnalyticsTotalResponse, type LinkedInPlatformData, type ListAccountGroupsError, type ListAccountGroupsResponse, type ListAccountsData, type ListAccountsError, type ListAccountsResponse, type ListApiKeysError, type ListApiKeysResponse, type ListConnectionLogsData, type ListConnectionLogsError, type ListConnectionLogsResponse, type ListFacebookPagesData, type ListFacebookPagesError, type ListFacebookPagesResponse, type ListGoogleBusinessLocationsData, type ListGoogleBusinessLocationsError, type ListGoogleBusinessLocationsResponse, type ListGoogleBusinessMediaData, type ListGoogleBusinessMediaError, type ListGoogleBusinessMediaResponse, type ListGoogleBusinessPlaceActionsData, type ListGoogleBusinessPlaceActionsError, type ListGoogleBusinessPlaceActionsResponse, type ListInboxCommentsData, type ListInboxCommentsError, type ListInboxCommentsResponse, type ListInboxConversationsData, type ListInboxConversationsError, type ListInboxConversationsResponse, type ListInboxReviewsData, type ListInboxReviewsError, type ListInboxReviewsResponse, type ListLinkedInOrganizationsData, type ListLinkedInOrganizationsError, type ListLinkedInOrganizationsResponse, type ListPinterestBoardsForSelectionData, type ListPinterestBoardsForSelectionError, type ListPinterestBoardsForSelectionResponse, type ListPostsData, type ListPostsError, type ListPostsLogsData, type ListPostsLogsError, type ListPostsLogsResponse, type ListPostsResponse, type ListProfilesData, type ListProfilesError, type ListProfilesResponse, type ListQueueSlotsData, type ListQueueSlotsError, type ListQueueSlotsResponse, type ListSnapchatProfilesData, type ListSnapchatProfilesError, type ListSnapchatProfilesResponse, type ListUsersError, type ListUsersResponse, type MediaItem, type MediaUploadResponse, type Money, type Pagination, type ParameterLimitParam, type ParameterPageParam, type PinterestPlatformData, type PlatformAnalytics, type PlatformTarget, type Post, type PostAnalytics, type PostCreateResponse, type PostDeleteResponse, type PostGetResponse, type PostLog, type PostRetryResponse, type PostUpdateResponse, type PostsListResponse, type PreviewQueueData, type PreviewQueueError, type PreviewQueueResponse, type Profile, type ProfileCreateResponse, type ProfileDeleteResponse, type ProfileGetResponse, type ProfileUpdateResponse, type ProfilesListResponse, type PurchaseWhatsAppPhoneNumberData, type PurchaseWhatsAppPhoneNumberError, type PurchaseWhatsAppPhoneNumberResponse, type QueueDeleteResponse, type QueueNextSlotResponse, type QueuePreviewResponse, type QueueSchedule, type QueueSlot, type QueueSlotsResponse, type QueueUpdateResponse, RateLimitError, type RecyclingConfig, type RecyclingState, type RedditPlatformData, type ReleaseWhatsAppPhoneNumberData, type ReleaseWhatsAppPhoneNumberError, type ReleaseWhatsAppPhoneNumberResponse, type RemoveBookmarkData, type RemoveBookmarkError, type RemoveBookmarkResponse, type RemoveWhatsAppBroadcastRecipientsData, type RemoveWhatsAppBroadcastRecipientsError, type RemoveWhatsAppBroadcastRecipientsResponse, type RenameWhatsAppGroupData, type RenameWhatsAppGroupError, type RenameWhatsAppGroupResponse, type ReplyToInboxPostData, type ReplyToInboxPostError, type ReplyToInboxPostResponse, type ReplyToInboxReviewData, type ReplyToInboxReviewError, type ReplyToInboxReviewResponse, type RetryPostData, type RetryPostError, type RetryPostResponse, type RetweetPostData, type RetweetPostError, type RetweetPostResponse, type ScheduleWhatsAppBroadcastData, type ScheduleWhatsAppBroadcastError, type ScheduleWhatsAppBroadcastResponse, type SearchRedditData, type SearchRedditError, type SearchRedditResponse, type SelectFacebookPageData, type SelectFacebookPageError, type SelectFacebookPageResponse, type SelectGoogleBusinessLocationData, type SelectGoogleBusinessLocationError, type SelectGoogleBusinessLocationResponse, type SelectLinkedInOrganizationData, type SelectLinkedInOrganizationError, type SelectLinkedInOrganizationResponse, type SelectPinterestBoardData, type SelectPinterestBoardError, type SelectPinterestBoardResponse, type SelectSnapchatProfileData, type SelectSnapchatProfileError, type SelectSnapchatProfileResponse, type SendInboxMessageData, type SendInboxMessageError, type SendInboxMessageResponse, type SendPrivateReplyToCommentData, type SendPrivateReplyToCommentError, type SendPrivateReplyToCommentResponse, type SendWhatsAppBroadcastData, type SendWhatsAppBroadcastError, type SendWhatsAppBroadcastResponse, type SendWhatsAppBulkData, type SendWhatsAppBulkError, type SendWhatsAppBulkResponse, type SetInstagramIceBreakersData, type SetInstagramIceBreakersError, type SetInstagramIceBreakersResponse, type SetMessengerMenuData, type SetMessengerMenuError, type SetMessengerMenuResponse, type SetTelegramCommandsData, type SetTelegramCommandsError, type SetTelegramCommandsResponse, type SnapchatPlatformData, type SocialAccount, type TelegramPlatformData, type TestWebhookData, type TestWebhookError, type TestWebhookResponse, type ThreadsPlatformData, type TikTokPlatformData, type TranscriptResponse, type TranscriptSegment, type TwitterPlatformData, type UndoRetweetData, type UndoRetweetError, type UndoRetweetResponse, type UnfollowUserData, type UnfollowUserError, type UnfollowUserResponse, type UnhideInboxCommentData, type UnhideInboxCommentError, type UnhideInboxCommentResponse, type UnlikeInboxCommentData, type UnlikeInboxCommentError, type UnlikeInboxCommentResponse, type UnpublishPostData, type UnpublishPostError, type UnpublishPostResponse, type UpdateAccountData, type UpdateAccountError, type UpdateAccountGroupData, type UpdateAccountGroupError, type UpdateAccountGroupResponse, type UpdateAccountResponse, type UpdateFacebookPageData, type UpdateFacebookPageError, type UpdateFacebookPageResponse, type UpdateGmbLocationData, type UpdateGmbLocationError, type UpdateGmbLocationResponse, type UpdateGoogleBusinessAttributesData, type UpdateGoogleBusinessAttributesError, type UpdateGoogleBusinessAttributesResponse, type UpdateGoogleBusinessFoodMenusData, type UpdateGoogleBusinessFoodMenusError, type UpdateGoogleBusinessFoodMenusResponse, type UpdateGoogleBusinessLocationDetailsData, type UpdateGoogleBusinessLocationDetailsError, type UpdateGoogleBusinessLocationDetailsResponse, type UpdateInboxConversationData, type UpdateInboxConversationError, type UpdateInboxConversationResponse, type UpdateLinkedInOrganizationData, type UpdateLinkedInOrganizationError, type UpdateLinkedInOrganizationResponse, type UpdatePinterestBoardsData, type UpdatePinterestBoardsError, type UpdatePinterestBoardsResponse, type UpdatePostData, type UpdatePostError, type UpdatePostResponse, type UpdateProfileData, type UpdateProfileError, type UpdateProfileResponse, type UpdateQueueSlotData, type UpdateQueueSlotError, type UpdateQueueSlotResponse, type UpdateRedditSubredditsData, type UpdateRedditSubredditsError, type UpdateRedditSubredditsResponse, type UpdateWebhookSettingsData, type UpdateWebhookSettingsError, type UpdateWebhookSettingsResponse, type UpdateWhatsAppBusinessProfileData, type UpdateWhatsAppBusinessProfileError, type UpdateWhatsAppBusinessProfileResponse, type UpdateWhatsAppContactData, type UpdateWhatsAppContactError, type UpdateWhatsAppContactResponse, type UpdateWhatsAppDisplayNameData, type UpdateWhatsAppDisplayNameError, type UpdateWhatsAppDisplayNameResponse, type UpdateWhatsAppTemplateData, type UpdateWhatsAppTemplateError, type UpdateWhatsAppTemplateResponse, type UploadTokenResponse, type UploadTokenStatusResponse, type UploadWhatsAppProfilePhotoData, type UploadWhatsAppProfilePhotoError, type UploadWhatsAppProfilePhotoResponse, type UploadedFile, type UsageStats, type User, type UserGetResponse, type UsersListResponse, type ValidateMediaData, type ValidateMediaError, type ValidateMediaResponse, type ValidatePostData, type ValidatePostError, type ValidatePostLengthData, type ValidatePostLengthError, type ValidatePostLengthResponse, type ValidatePostResponse, type ValidateSubredditData, type ValidateSubredditError, type ValidateSubredditResponse, ValidationError, type Webhook, type WebhookLog, type WebhookPayloadAccountConnected, type WebhookPayloadAccountDisconnected, type WebhookPayloadComment, type WebhookPayloadMessage, type WebhookPayloadPost, type YouTubeDailyViewsResponse, type YouTubePlatformData, type YouTubeScopeMissingResponse, Zernio, ZernioApiError, type action, type aggregation, type aggregation2, type aggregation3, type billingPeriod, type commercialContentType, type connectionMethod, type contentType, type contentType2, type contentType3, Zernio as default, type direction, type disconnectionType, type errorCategory, type errorSource, type event, type event2, type event3, type event4, type event5, type event6, type eventType, type gapFreq, type graduationStrategy, type mediaType, type mediaType2, type metric, type metricType, parseApiError, type parseMode, type permission, type platform, type platform2, type platform3, type replySettings, type scope, type status, type status2, type status3, type status4, type status5, type status6, type status7, type status8, type syncStatus, type syncStatus2, type timeframe, type type, type type2, type type3, type visibility };
package/dist/index.js CHANGED
@@ -26,7 +26,9 @@ __export(index_exports, {
26
26
  LateApiError: () => LateApiError,
27
27
  RateLimitError: () => RateLimitError,
28
28
  ValidationError: () => ValidationError,
29
- default: () => Late,
29
+ Zernio: () => Zernio,
30
+ ZernioApiError: () => ZernioApiError,
31
+ default: () => Zernio,
30
32
  parseApiError: () => parseApiError
31
33
  });
32
34
  module.exports = __toCommonJS(index_exports);
@@ -362,6 +364,18 @@ var getYouTubeDailyViews = (options) => {
362
364
  url: "/v1/analytics/youtube/daily-views"
363
365
  });
364
366
  };
367
+ var getInstagramAccountInsights = (options) => {
368
+ return (options?.client ?? client).get({
369
+ ...options,
370
+ url: "/v1/analytics/instagram/account-insights"
371
+ });
372
+ };
373
+ var getInstagramDemographics = (options) => {
374
+ return (options?.client ?? client).get({
375
+ ...options,
376
+ url: "/v1/analytics/instagram/demographics"
377
+ });
378
+ };
365
379
  var getDailyMetrics = (options) => {
366
380
  return (options?.client ?? client).get({
367
381
  ...options,
@@ -571,6 +585,12 @@ var getAccountHealth = (options) => {
571
585
  url: "/v1/accounts/{accountId}/health"
572
586
  });
573
587
  };
588
+ var getTikTokCreatorInfo = (options) => {
589
+ return (options?.client ?? client).get({
590
+ ...options,
591
+ url: "/v1/accounts/{accountId}/tiktok/creator-info"
592
+ });
593
+ };
574
594
  var listApiKeys = (options) => {
575
595
  return (options?.client ?? client).get({
576
596
  ...options,
@@ -1382,15 +1402,15 @@ var releaseWhatsAppPhoneNumber = (options) => {
1382
1402
  };
1383
1403
 
1384
1404
  // src/errors.ts
1385
- var LateApiError = class _LateApiError extends Error {
1405
+ var ZernioApiError = class _ZernioApiError extends Error {
1386
1406
  constructor(message, statusCode, code, details) {
1387
1407
  super(message);
1388
- this.name = "LateApiError";
1408
+ this.name = "ZernioApiError";
1389
1409
  this.statusCode = statusCode;
1390
1410
  this.code = code;
1391
1411
  this.details = details;
1392
1412
  if (Error.captureStackTrace) {
1393
- Error.captureStackTrace(this, _LateApiError);
1413
+ Error.captureStackTrace(this, _ZernioApiError);
1394
1414
  }
1395
1415
  }
1396
1416
  /**
@@ -1430,7 +1450,8 @@ var LateApiError = class _LateApiError extends Error {
1430
1450
  return this.statusCode === 402;
1431
1451
  }
1432
1452
  };
1433
- var RateLimitError = class extends LateApiError {
1453
+ var LateApiError = ZernioApiError;
1454
+ var RateLimitError = class extends ZernioApiError {
1434
1455
  constructor(message, limit, remaining, resetAt) {
1435
1456
  super(message, 429, "rate_limit_exceeded");
1436
1457
  this.name = "RateLimitError";
@@ -1446,7 +1467,7 @@ var RateLimitError = class extends LateApiError {
1446
1467
  return Math.max(0, Math.ceil((this.resetAt.getTime() - Date.now()) / 1e3));
1447
1468
  }
1448
1469
  };
1449
- var ValidationError = class extends LateApiError {
1470
+ var ValidationError = class extends ZernioApiError {
1450
1471
  constructor(message, fields) {
1451
1472
  super(message, 400, "validation_error", { fields });
1452
1473
  this.name = "ValidationError";
@@ -1471,13 +1492,13 @@ function parseApiError(response, body) {
1471
1492
  if (response.status === 400 && details?.fields) {
1472
1493
  return new ValidationError(message, details.fields);
1473
1494
  }
1474
- return new LateApiError(message, response.status, code, details);
1495
+ return new ZernioApiError(message, response.status, code, details);
1475
1496
  }
1476
1497
 
1477
1498
  // src/client.ts
1478
- var Late = class {
1499
+ var Zernio = class {
1479
1500
  /**
1480
- * Create a new Late API client.
1501
+ * Create a new Zernio API client.
1481
1502
  *
1482
1503
  * @param options - Configuration options for the client
1483
1504
  */
@@ -1511,6 +1532,8 @@ var Late = class {
1511
1532
  this.analytics = {
1512
1533
  getAnalytics,
1513
1534
  getYouTubeDailyViews,
1535
+ getInstagramAccountInsights,
1536
+ getInstagramDemographics,
1514
1537
  getDailyMetrics,
1515
1538
  getBestTimeToPost,
1516
1539
  getContentDecay,
@@ -1588,6 +1611,7 @@ var Late = class {
1588
1611
  deleteAccount,
1589
1612
  getAllAccountsHealth,
1590
1613
  getAccountHealth,
1614
+ getTikTokCreatorInfo,
1591
1615
  getGoogleBusinessReviews,
1592
1616
  getLinkedInMentions
1593
1617
  };
@@ -1824,16 +1848,16 @@ var Late = class {
1824
1848
  getWhatsAppPhoneNumber,
1825
1849
  releaseWhatsAppPhoneNumber
1826
1850
  };
1827
- const apiKey = options.apiKey ?? process.env["LATE_API_KEY"];
1851
+ const apiKey = options.apiKey ?? process.env["ZERNIO_API_KEY"] ?? process.env["LATE_API_KEY"];
1828
1852
  if (!apiKey) {
1829
- throw new LateApiError(
1830
- "The LATE_API_KEY environment variable is missing or empty; either provide it, or instantiate the Late client with an apiKey option, like new Late({ apiKey: 'sk_...' }).",
1853
+ throw new ZernioApiError(
1854
+ "The ZERNIO_API_KEY environment variable is missing or empty; either provide it, or instantiate the Zernio client with an apiKey option, like new Zernio({ apiKey: 'sk_...' }). LATE_API_KEY is also supported for backwards compatibility.",
1831
1855
  401,
1832
1856
  "missing_api_key"
1833
1857
  );
1834
1858
  }
1835
1859
  this.apiKey = apiKey;
1836
- this.baseURL = options.baseURL ?? "https://getlate.dev/api";
1860
+ this.baseURL = options.baseURL ?? "https://zernio.com/api";
1837
1861
  this._options = options;
1838
1862
  client.setConfig({
1839
1863
  baseUrl: this.baseURL
@@ -1860,11 +1884,14 @@ var Late = class {
1860
1884
  });
1861
1885
  }
1862
1886
  };
1887
+ var Late = Zernio;
1863
1888
  // Annotate the CommonJS export names for ESM import in node:
1864
1889
  0 && (module.exports = {
1865
1890
  Late,
1866
1891
  LateApiError,
1867
1892
  RateLimitError,
1868
1893
  ValidationError,
1894
+ Zernio,
1895
+ ZernioApiError,
1869
1896
  parseApiError
1870
1897
  });