@zernio/node 0.1.58 → 0.2.1

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.
@@ -161,6 +161,7 @@ declare class Late {
161
161
  deleteAccount: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<DeleteAccountData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<DeleteAccountResponse, DeleteAccountError, ThrowOnError>;
162
162
  getAllAccountsHealth: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<GetAllAccountsHealthData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetAllAccountsHealthResponse, GetAllAccountsHealthError, ThrowOnError>;
163
163
  getAccountHealth: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetAccountHealthData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetAccountHealthResponse, GetAccountHealthError, ThrowOnError>;
164
+ getTikTokCreatorInfo: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetTikTokCreatorInfoData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetTikTokCreatorInfoResponse, GetTikTokCreatorInfoError, ThrowOnError>;
164
165
  getGoogleBusinessReviews: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetGoogleBusinessReviewsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetGoogleBusinessReviewsResponse, GetGoogleBusinessReviewsError, ThrowOnError>;
165
166
  getLinkedInMentions: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetLinkedInMentionsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetLinkedInMentionsResponse, GetLinkedInMentionsError, ThrowOnError>;
166
167
  };
@@ -398,17 +399,19 @@ declare class Late {
398
399
  releaseWhatsAppPhoneNumber: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ReleaseWhatsAppPhoneNumberData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ReleaseWhatsAppPhoneNumberResponse, unknown, ThrowOnError>;
399
400
  };
400
401
  /**
401
- * Create a new Late API client.
402
+ * Create a new Zernio API client.
402
403
  *
403
404
  * @param options - Configuration options for the client
404
405
  */
405
406
  constructor(options?: ClientOptions);
406
407
  }
408
+ /** @deprecated Use Zernio instead */
409
+ declare const Late: typeof Zernio;
407
410
 
408
411
  /**
409
- * Base error class for Late API errors
412
+ * Base error class for Zernio API errors
410
413
  */
411
- declare class LateApiError extends Error {
414
+ declare class ZernioApiError extends Error {
412
415
  readonly statusCode: number;
413
416
  readonly code?: string;
414
417
  readonly details?: Record<string, unknown>;
@@ -438,10 +441,12 @@ declare class LateApiError extends Error {
438
441
  */
439
442
  isPaymentRequired(): boolean;
440
443
  }
444
+ /** @deprecated Use ZernioApiError instead */
445
+ declare const LateApiError: typeof ZernioApiError;
441
446
  /**
442
447
  * Rate limit error with additional rate limit info
443
448
  */
444
- declare class RateLimitError extends LateApiError {
449
+ declare class RateLimitError extends ZernioApiError {
445
450
  readonly limit?: number;
446
451
  readonly remaining?: number;
447
452
  readonly resetAt?: Date;
@@ -454,7 +459,7 @@ declare class RateLimitError extends LateApiError {
454
459
  /**
455
460
  * Validation error with field-specific details
456
461
  */
457
- declare class ValidationError extends LateApiError {
462
+ declare class ValidationError extends ZernioApiError {
458
463
  readonly fields?: Record<string, string[]>;
459
464
  constructor(message: string, fields?: Record<string, string[]>);
460
465
  }
@@ -466,7 +471,7 @@ declare function parseApiError(response: Response, body?: {
466
471
  message?: string;
467
472
  code?: string;
468
473
  details?: Record<string, unknown>;
469
- }): LateApiError;
474
+ }): ZernioApiError;
470
475
 
471
476
  type AccountGetResponse = {
472
477
  account?: SocialAccount;
@@ -1790,9 +1795,13 @@ type TikTokPlatformData = {
1790
1795
  */
1791
1796
  mediaType?: 'video' | 'photo';
1792
1797
  /**
1793
- * Optional for video posts. Timestamp in milliseconds to select which frame to use as thumbnail (defaults to 1000ms/1 second).
1798
+ * 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
1799
  */
1795
1800
  videoCoverTimestampMs?: number;
1801
+ /**
1802
+ * Optional for video posts. URL of a custom thumbnail image (JPG, PNG, or WebP, max 20MB). The image is prepended as a 1-second still frame to the video and used as the cover. Overrides videoCoverTimestampMs when provided.
1803
+ */
1804
+ videoCoverImageUrl?: string;
1796
1805
  /**
1797
1806
  * Optional for photo carousels. Index of image to use as cover, 0-based (defaults to 0/first image).
1798
1807
  */
@@ -3670,6 +3679,76 @@ type GetAccountHealthResponse = ({
3670
3679
  type GetAccountHealthError = ({
3671
3680
  error?: string;
3672
3681
  });
3682
+ type GetTikTokCreatorInfoData = {
3683
+ path: {
3684
+ /**
3685
+ * The TikTok account ID
3686
+ */
3687
+ accountId: string;
3688
+ };
3689
+ query?: {
3690
+ /**
3691
+ * The media type to get creator info for (affects available interaction settings)
3692
+ */
3693
+ mediaType?: 'video' | 'photo';
3694
+ };
3695
+ };
3696
+ type GetTikTokCreatorInfoResponse = ({
3697
+ creator?: {
3698
+ /**
3699
+ * Creator display name
3700
+ */
3701
+ nickname?: string;
3702
+ /**
3703
+ * Creator avatar URL
3704
+ */
3705
+ avatarUrl?: string;
3706
+ /**
3707
+ * Whether the creator is verified
3708
+ */
3709
+ isVerified?: boolean;
3710
+ /**
3711
+ * Whether the creator can publish more posts right now
3712
+ */
3713
+ canPostMore?: boolean;
3714
+ };
3715
+ /**
3716
+ * Available privacy level options for this creator
3717
+ */
3718
+ privacyLevels?: Array<{
3719
+ /**
3720
+ * Privacy level value to use when creating posts (e.g. PUBLIC_TO_EVERYONE, MUTUAL_FOLLOW_FRIENDS, FOLLOWER_OF_CREATOR, SELF_ONLY)
3721
+ */
3722
+ value?: string;
3723
+ /**
3724
+ * Human-readable label
3725
+ */
3726
+ label?: string;
3727
+ }>;
3728
+ postingLimits?: {
3729
+ /**
3730
+ * Maximum video duration in seconds
3731
+ */
3732
+ maxVideoDurationSec?: number;
3733
+ /**
3734
+ * Available interaction toggles (comment, duet, stitch) and their defaults
3735
+ */
3736
+ interactionSettings?: {
3737
+ [key: string]: unknown;
3738
+ };
3739
+ };
3740
+ /**
3741
+ * Available commercial content disclosure options
3742
+ */
3743
+ commercialContentTypes?: Array<{
3744
+ value?: string;
3745
+ label?: string;
3746
+ requires?: Array<(string)>;
3747
+ }>;
3748
+ });
3749
+ type GetTikTokCreatorInfoError = ({
3750
+ error?: string;
3751
+ });
3673
3752
  type ListApiKeysResponse = ({
3674
3753
  apiKeys?: Array<ApiKey>;
3675
3754
  });
@@ -8500,4 +8579,4 @@ type ReleaseWhatsAppPhoneNumberError = (unknown | {
8500
8579
  error?: string;
8501
8580
  });
8502
8581
 
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 };
8582
+ 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 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 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, 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 };
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);
@@ -571,6 +573,12 @@ var getAccountHealth = (options) => {
571
573
  url: "/v1/accounts/{accountId}/health"
572
574
  });
573
575
  };
576
+ var getTikTokCreatorInfo = (options) => {
577
+ return (options?.client ?? client).get({
578
+ ...options,
579
+ url: "/v1/accounts/{accountId}/tiktok/creator-info"
580
+ });
581
+ };
574
582
  var listApiKeys = (options) => {
575
583
  return (options?.client ?? client).get({
576
584
  ...options,
@@ -1382,15 +1390,15 @@ var releaseWhatsAppPhoneNumber = (options) => {
1382
1390
  };
1383
1391
 
1384
1392
  // src/errors.ts
1385
- var LateApiError = class _LateApiError extends Error {
1393
+ var ZernioApiError = class _ZernioApiError extends Error {
1386
1394
  constructor(message, statusCode, code, details) {
1387
1395
  super(message);
1388
- this.name = "LateApiError";
1396
+ this.name = "ZernioApiError";
1389
1397
  this.statusCode = statusCode;
1390
1398
  this.code = code;
1391
1399
  this.details = details;
1392
1400
  if (Error.captureStackTrace) {
1393
- Error.captureStackTrace(this, _LateApiError);
1401
+ Error.captureStackTrace(this, _ZernioApiError);
1394
1402
  }
1395
1403
  }
1396
1404
  /**
@@ -1430,7 +1438,8 @@ var LateApiError = class _LateApiError extends Error {
1430
1438
  return this.statusCode === 402;
1431
1439
  }
1432
1440
  };
1433
- var RateLimitError = class extends LateApiError {
1441
+ var LateApiError = ZernioApiError;
1442
+ var RateLimitError = class extends ZernioApiError {
1434
1443
  constructor(message, limit, remaining, resetAt) {
1435
1444
  super(message, 429, "rate_limit_exceeded");
1436
1445
  this.name = "RateLimitError";
@@ -1446,7 +1455,7 @@ var RateLimitError = class extends LateApiError {
1446
1455
  return Math.max(0, Math.ceil((this.resetAt.getTime() - Date.now()) / 1e3));
1447
1456
  }
1448
1457
  };
1449
- var ValidationError = class extends LateApiError {
1458
+ var ValidationError = class extends ZernioApiError {
1450
1459
  constructor(message, fields) {
1451
1460
  super(message, 400, "validation_error", { fields });
1452
1461
  this.name = "ValidationError";
@@ -1471,13 +1480,13 @@ function parseApiError(response, body) {
1471
1480
  if (response.status === 400 && details?.fields) {
1472
1481
  return new ValidationError(message, details.fields);
1473
1482
  }
1474
- return new LateApiError(message, response.status, code, details);
1483
+ return new ZernioApiError(message, response.status, code, details);
1475
1484
  }
1476
1485
 
1477
1486
  // src/client.ts
1478
- var Late = class {
1487
+ var Zernio = class {
1479
1488
  /**
1480
- * Create a new Late API client.
1489
+ * Create a new Zernio API client.
1481
1490
  *
1482
1491
  * @param options - Configuration options for the client
1483
1492
  */
@@ -1588,6 +1597,7 @@ var Late = class {
1588
1597
  deleteAccount,
1589
1598
  getAllAccountsHealth,
1590
1599
  getAccountHealth,
1600
+ getTikTokCreatorInfo,
1591
1601
  getGoogleBusinessReviews,
1592
1602
  getLinkedInMentions
1593
1603
  };
@@ -1824,16 +1834,16 @@ var Late = class {
1824
1834
  getWhatsAppPhoneNumber,
1825
1835
  releaseWhatsAppPhoneNumber
1826
1836
  };
1827
- const apiKey = options.apiKey ?? process.env["LATE_API_KEY"];
1837
+ const apiKey = options.apiKey ?? process.env["ZERNIO_API_KEY"] ?? process.env["LATE_API_KEY"];
1828
1838
  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_...' }).",
1839
+ throw new ZernioApiError(
1840
+ "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
1841
  401,
1832
1842
  "missing_api_key"
1833
1843
  );
1834
1844
  }
1835
1845
  this.apiKey = apiKey;
1836
- this.baseURL = options.baseURL ?? "https://getlate.dev/api";
1846
+ this.baseURL = options.baseURL ?? "https://zernio.com/api";
1837
1847
  this._options = options;
1838
1848
  client.setConfig({
1839
1849
  baseUrl: this.baseURL
@@ -1860,11 +1870,14 @@ var Late = class {
1860
1870
  });
1861
1871
  }
1862
1872
  };
1873
+ var Late = Zernio;
1863
1874
  // Annotate the CommonJS export names for ESM import in node:
1864
1875
  0 && (module.exports = {
1865
1876
  Late,
1866
1877
  LateApiError,
1867
1878
  RateLimitError,
1868
1879
  ValidationError,
1880
+ Zernio,
1881
+ ZernioApiError,
1869
1882
  parseApiError
1870
1883
  });
package/dist/index.mjs CHANGED
@@ -542,6 +542,12 @@ var getAccountHealth = (options) => {
542
542
  url: "/v1/accounts/{accountId}/health"
543
543
  });
544
544
  };
545
+ var getTikTokCreatorInfo = (options) => {
546
+ return (options?.client ?? client).get({
547
+ ...options,
548
+ url: "/v1/accounts/{accountId}/tiktok/creator-info"
549
+ });
550
+ };
545
551
  var listApiKeys = (options) => {
546
552
  return (options?.client ?? client).get({
547
553
  ...options,
@@ -1353,15 +1359,15 @@ var releaseWhatsAppPhoneNumber = (options) => {
1353
1359
  };
1354
1360
 
1355
1361
  // src/errors.ts
1356
- var LateApiError = class _LateApiError extends Error {
1362
+ var ZernioApiError = class _ZernioApiError extends Error {
1357
1363
  constructor(message, statusCode, code, details) {
1358
1364
  super(message);
1359
- this.name = "LateApiError";
1365
+ this.name = "ZernioApiError";
1360
1366
  this.statusCode = statusCode;
1361
1367
  this.code = code;
1362
1368
  this.details = details;
1363
1369
  if (Error.captureStackTrace) {
1364
- Error.captureStackTrace(this, _LateApiError);
1370
+ Error.captureStackTrace(this, _ZernioApiError);
1365
1371
  }
1366
1372
  }
1367
1373
  /**
@@ -1401,7 +1407,8 @@ var LateApiError = class _LateApiError extends Error {
1401
1407
  return this.statusCode === 402;
1402
1408
  }
1403
1409
  };
1404
- var RateLimitError = class extends LateApiError {
1410
+ var LateApiError = ZernioApiError;
1411
+ var RateLimitError = class extends ZernioApiError {
1405
1412
  constructor(message, limit, remaining, resetAt) {
1406
1413
  super(message, 429, "rate_limit_exceeded");
1407
1414
  this.name = "RateLimitError";
@@ -1417,7 +1424,7 @@ var RateLimitError = class extends LateApiError {
1417
1424
  return Math.max(0, Math.ceil((this.resetAt.getTime() - Date.now()) / 1e3));
1418
1425
  }
1419
1426
  };
1420
- var ValidationError = class extends LateApiError {
1427
+ var ValidationError = class extends ZernioApiError {
1421
1428
  constructor(message, fields) {
1422
1429
  super(message, 400, "validation_error", { fields });
1423
1430
  this.name = "ValidationError";
@@ -1442,13 +1449,13 @@ function parseApiError(response, body) {
1442
1449
  if (response.status === 400 && details?.fields) {
1443
1450
  return new ValidationError(message, details.fields);
1444
1451
  }
1445
- return new LateApiError(message, response.status, code, details);
1452
+ return new ZernioApiError(message, response.status, code, details);
1446
1453
  }
1447
1454
 
1448
1455
  // src/client.ts
1449
- var Late = class {
1456
+ var Zernio = class {
1450
1457
  /**
1451
- * Create a new Late API client.
1458
+ * Create a new Zernio API client.
1452
1459
  *
1453
1460
  * @param options - Configuration options for the client
1454
1461
  */
@@ -1559,6 +1566,7 @@ var Late = class {
1559
1566
  deleteAccount,
1560
1567
  getAllAccountsHealth,
1561
1568
  getAccountHealth,
1569
+ getTikTokCreatorInfo,
1562
1570
  getGoogleBusinessReviews,
1563
1571
  getLinkedInMentions
1564
1572
  };
@@ -1795,16 +1803,16 @@ var Late = class {
1795
1803
  getWhatsAppPhoneNumber,
1796
1804
  releaseWhatsAppPhoneNumber
1797
1805
  };
1798
- const apiKey = options.apiKey ?? process.env["LATE_API_KEY"];
1806
+ const apiKey = options.apiKey ?? process.env["ZERNIO_API_KEY"] ?? process.env["LATE_API_KEY"];
1799
1807
  if (!apiKey) {
1800
- throw new LateApiError(
1801
- "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_...' }).",
1808
+ throw new ZernioApiError(
1809
+ "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.",
1802
1810
  401,
1803
1811
  "missing_api_key"
1804
1812
  );
1805
1813
  }
1806
1814
  this.apiKey = apiKey;
1807
- this.baseURL = options.baseURL ?? "https://getlate.dev/api";
1815
+ this.baseURL = options.baseURL ?? "https://zernio.com/api";
1808
1816
  this._options = options;
1809
1817
  client.setConfig({
1810
1818
  baseUrl: this.baseURL
@@ -1831,11 +1839,14 @@ var Late = class {
1831
1839
  });
1832
1840
  }
1833
1841
  };
1842
+ var Late = Zernio;
1834
1843
  export {
1835
1844
  Late,
1836
1845
  LateApiError,
1837
1846
  RateLimitError,
1838
1847
  ValidationError,
1839
- Late as default,
1848
+ Zernio,
1849
+ ZernioApiError,
1850
+ Zernio as default,
1840
1851
  parseApiError
1841
1852
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zernio/node",
3
- "version": "0.1.58",
4
- "description": "The official Node.js library for the Late API",
3
+ "version": "0.2.1",
4
+ "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
7
7
  "types": "dist/index.d.ts",
@@ -37,7 +37,7 @@
37
37
  "fetch-spec": "curl -o openapi.yaml https://zernio.com/openapi.yaml"
38
38
  },
39
39
  "keywords": [
40
- "late",
40
+ "zernio",
41
41
  "social-media",
42
42
  "scheduling",
43
43
  "api",
@@ -55,15 +55,15 @@
55
55
  "snapchat",
56
56
  "telegram"
57
57
  ],
58
- "author": "Late <support@getlate.dev>",
58
+ "author": "Zernio <support@zernio.com>",
59
59
  "license": "Apache-2.0",
60
60
  "repository": {
61
61
  "type": "git",
62
- "url": "git+https://github.com/getlatedev/late-node.git"
62
+ "url": "git+https://github.com/zernio-dev/zernio-node.git"
63
63
  },
64
- "homepage": "https://getlate.dev/docs/api",
64
+ "homepage": "https://zernio.com/docs/api",
65
65
  "bugs": {
66
- "url": "https://github.com/getlatedev/late-node/issues"
66
+ "url": "https://github.com/zernio-dev/zernio-node/issues"
67
67
  },
68
68
  "engines": {
69
69
  "node": ">=18"