@getlatedev/node 0.2.5 → 0.2.7

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.
@@ -1,7 +1,7 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
2
 
3
3
  import { createClient, createConfig, type OptionsLegacyParser, formDataBodySerializer } from '@hey-api/client-fetch';
4
- import type { DownloadYouTubeVideoData, DownloadYouTubeVideoError, DownloadYouTubeVideoResponse, GetYouTubeTranscriptData, GetYouTubeTranscriptError, GetYouTubeTranscriptResponse, DownloadInstagramMediaData, DownloadInstagramMediaError, DownloadInstagramMediaResponse, CheckInstagramHashtagsData, CheckInstagramHashtagsError, CheckInstagramHashtagsResponse, DownloadTikTokVideoData, DownloadTikTokVideoError, DownloadTikTokVideoResponse, DownloadTwitterMediaData, DownloadTwitterMediaError, DownloadTwitterMediaResponse, DownloadFacebookVideoData, DownloadFacebookVideoError, DownloadFacebookVideoResponse, DownloadLinkedInVideoData, DownloadLinkedInVideoError, DownloadLinkedInVideoResponse, DownloadBlueskyMediaData, DownloadBlueskyMediaError, DownloadBlueskyMediaResponse, ValidatePostLengthData, ValidatePostLengthError, ValidatePostLengthResponse, ValidatePostData, ValidatePostError, ValidatePostResponse, ValidateMediaData, ValidateMediaError, ValidateMediaResponse, ValidateSubredditData, ValidateSubredditError, ValidateSubredditResponse, GetAnalyticsData, GetAnalyticsError, GetAnalyticsResponse, GetYouTubeDailyViewsData, GetYouTubeDailyViewsError, GetYouTubeDailyViewsResponse, GetInstagramAccountInsightsData, GetInstagramAccountInsightsError, GetInstagramAccountInsightsResponse, GetInstagramDemographicsData, GetInstagramDemographicsError, GetInstagramDemographicsResponse, GetDailyMetricsData, GetDailyMetricsError, GetDailyMetricsResponse, GetBestTimeToPostData, GetBestTimeToPostError, GetBestTimeToPostResponse, GetContentDecayData, GetContentDecayError, GetContentDecayResponse, GetPostingFrequencyData, GetPostingFrequencyError, GetPostingFrequencyResponse, GetPostTimelineData, GetPostTimelineError, GetPostTimelineResponse, ListAccountGroupsError, ListAccountGroupsResponse, CreateAccountGroupData, CreateAccountGroupError, CreateAccountGroupResponse, UpdateAccountGroupData, UpdateAccountGroupError, UpdateAccountGroupResponse, DeleteAccountGroupData, DeleteAccountGroupError, DeleteAccountGroupResponse, GetMediaPresignedUrlData, GetMediaPresignedUrlError, GetMediaPresignedUrlResponse, SearchRedditData, SearchRedditError, SearchRedditResponse, GetRedditFeedData, GetRedditFeedError, GetRedditFeedResponse, GetUsageStatsError, GetUsageStatsResponse, ListPostsData, ListPostsError, ListPostsResponse, CreatePostData, CreatePostError, CreatePostResponse, GetPostData, GetPostError, GetPostResponse, UpdatePostData, UpdatePostError, UpdatePostResponse, DeletePostData, DeletePostError, DeletePostResponse, BulkUploadPostsData, BulkUploadPostsError, BulkUploadPostsResponse, RetryPostData, RetryPostError, RetryPostResponse, UnpublishPostData, UnpublishPostError, UnpublishPostResponse, ListUsersError, ListUsersResponse, GetUserData, GetUserError, GetUserResponse, ListProfilesData, ListProfilesError, ListProfilesResponse, CreateProfileData, CreateProfileError, CreateProfileResponse, GetProfileData, GetProfileError, GetProfileResponse, UpdateProfileData, UpdateProfileError, UpdateProfileResponse, DeleteProfileData, DeleteProfileError, DeleteProfileResponse, ListAccountsData, ListAccountsError, ListAccountsResponse, GetFollowerStatsData, GetFollowerStatsError, GetFollowerStatsResponse, UpdateAccountData, UpdateAccountError, UpdateAccountResponse, DeleteAccountData, DeleteAccountError, DeleteAccountResponse, GetAllAccountsHealthData, GetAllAccountsHealthError, GetAllAccountsHealthResponse, GetAccountHealthData, GetAccountHealthError, GetAccountHealthResponse, GetTikTokCreatorInfoData, GetTikTokCreatorInfoError, GetTikTokCreatorInfoResponse, ListApiKeysError, ListApiKeysResponse, CreateApiKeyData, CreateApiKeyError, CreateApiKeyResponse, DeleteApiKeyData, DeleteApiKeyError, DeleteApiKeyResponse, CreateInviteTokenData, CreateInviteTokenError, CreateInviteTokenResponse, GetConnectUrlData, GetConnectUrlError, GetConnectUrlResponse, HandleOAuthCallbackData, HandleOAuthCallbackError, HandleOAuthCallbackResponse, ListFacebookPagesData, ListFacebookPagesError, ListFacebookPagesResponse, SelectFacebookPageData, SelectFacebookPageError, SelectFacebookPageResponse, ListGoogleBusinessLocationsData, ListGoogleBusinessLocationsError, ListGoogleBusinessLocationsResponse, SelectGoogleBusinessLocationData, SelectGoogleBusinessLocationError, SelectGoogleBusinessLocationResponse, GetGoogleBusinessReviewsData, GetGoogleBusinessReviewsError, GetGoogleBusinessReviewsResponse, GetGoogleBusinessFoodMenusData, GetGoogleBusinessFoodMenusError, GetGoogleBusinessFoodMenusResponse, UpdateGoogleBusinessFoodMenusData, UpdateGoogleBusinessFoodMenusError, UpdateGoogleBusinessFoodMenusResponse, GetGoogleBusinessLocationDetailsData, GetGoogleBusinessLocationDetailsError, GetGoogleBusinessLocationDetailsResponse, UpdateGoogleBusinessLocationDetailsData, UpdateGoogleBusinessLocationDetailsError, UpdateGoogleBusinessLocationDetailsResponse, ListGoogleBusinessMediaData, ListGoogleBusinessMediaError, ListGoogleBusinessMediaResponse, CreateGoogleBusinessMediaData, CreateGoogleBusinessMediaError, CreateGoogleBusinessMediaResponse, DeleteGoogleBusinessMediaData, DeleteGoogleBusinessMediaError, DeleteGoogleBusinessMediaResponse, GetGoogleBusinessAttributesData, GetGoogleBusinessAttributesError, GetGoogleBusinessAttributesResponse, UpdateGoogleBusinessAttributesData, UpdateGoogleBusinessAttributesError, UpdateGoogleBusinessAttributesResponse, ListGoogleBusinessPlaceActionsData, ListGoogleBusinessPlaceActionsError, ListGoogleBusinessPlaceActionsResponse, CreateGoogleBusinessPlaceActionData, CreateGoogleBusinessPlaceActionError, CreateGoogleBusinessPlaceActionResponse, DeleteGoogleBusinessPlaceActionData, DeleteGoogleBusinessPlaceActionError, DeleteGoogleBusinessPlaceActionResponse, GetPendingOAuthDataData, GetPendingOAuthDataError, GetPendingOAuthDataResponse, ListLinkedInOrganizationsData, ListLinkedInOrganizationsError, ListLinkedInOrganizationsResponse, SelectLinkedInOrganizationData, SelectLinkedInOrganizationError, SelectLinkedInOrganizationResponse, ListPinterestBoardsForSelectionData, ListPinterestBoardsForSelectionError, ListPinterestBoardsForSelectionResponse, SelectPinterestBoardData, SelectPinterestBoardError, SelectPinterestBoardResponse, ListSnapchatProfilesData, ListSnapchatProfilesError, ListSnapchatProfilesResponse, SelectSnapchatProfileData, SelectSnapchatProfileError, SelectSnapchatProfileResponse, ConnectBlueskyCredentialsData, ConnectBlueskyCredentialsError, ConnectBlueskyCredentialsResponse, ConnectWhatsAppCredentialsData, ConnectWhatsAppCredentialsError, ConnectWhatsAppCredentialsResponse, GetTelegramConnectStatusData, GetTelegramConnectStatusError, GetTelegramConnectStatusResponse, InitiateTelegramConnectData, InitiateTelegramConnectError, InitiateTelegramConnectResponse, CompleteTelegramConnectData, CompleteTelegramConnectError, CompleteTelegramConnectResponse, GetFacebookPagesData, GetFacebookPagesError, GetFacebookPagesResponse, UpdateFacebookPageData, UpdateFacebookPageError, UpdateFacebookPageResponse, GetLinkedInOrganizationsData, GetLinkedInOrganizationsError, GetLinkedInOrganizationsResponse, GetLinkedInAggregateAnalyticsData, GetLinkedInAggregateAnalyticsError, GetLinkedInAggregateAnalyticsResponse, GetLinkedInPostAnalyticsData, GetLinkedInPostAnalyticsError, GetLinkedInPostAnalyticsResponse, GetLinkedInPostReactionsData, GetLinkedInPostReactionsError, GetLinkedInPostReactionsResponse, UpdateLinkedInOrganizationData, UpdateLinkedInOrganizationError, UpdateLinkedInOrganizationResponse, GetLinkedInMentionsData, GetLinkedInMentionsError, GetLinkedInMentionsResponse, GetPinterestBoardsData, GetPinterestBoardsError, GetPinterestBoardsResponse, UpdatePinterestBoardsData, UpdatePinterestBoardsError, UpdatePinterestBoardsResponse, GetGmbLocationsData, GetGmbLocationsError, GetGmbLocationsResponse, UpdateGmbLocationData, UpdateGmbLocationError, UpdateGmbLocationResponse, GetRedditSubredditsData, GetRedditSubredditsError, GetRedditSubredditsResponse, UpdateRedditSubredditsData, UpdateRedditSubredditsError, UpdateRedditSubredditsResponse, GetRedditFlairsData, GetRedditFlairsError, GetRedditFlairsResponse, ListQueueSlotsData, ListQueueSlotsError, ListQueueSlotsResponse, CreateQueueSlotData, CreateQueueSlotError, CreateQueueSlotResponse, UpdateQueueSlotData, UpdateQueueSlotError, UpdateQueueSlotResponse, DeleteQueueSlotData, DeleteQueueSlotError, DeleteQueueSlotResponse, PreviewQueueData, PreviewQueueError, PreviewQueueResponse, GetNextQueueSlotData, GetNextQueueSlotError, GetNextQueueSlotResponse, GetWebhookSettingsError, GetWebhookSettingsResponse, CreateWebhookSettingsData, CreateWebhookSettingsError, CreateWebhookSettingsResponse, UpdateWebhookSettingsData, UpdateWebhookSettingsError, UpdateWebhookSettingsResponse, DeleteWebhookSettingsData, DeleteWebhookSettingsError, DeleteWebhookSettingsResponse, TestWebhookData, TestWebhookError, TestWebhookResponse, GetWebhookLogsData, GetWebhookLogsError, GetWebhookLogsResponse, ListPostsLogsData, ListPostsLogsError, ListPostsLogsResponse, ListConnectionLogsData, ListConnectionLogsError, ListConnectionLogsResponse, GetPostLogsData, GetPostLogsError, GetPostLogsResponse, ListInboxConversationsData, ListInboxConversationsError, ListInboxConversationsResponse, GetInboxConversationData, GetInboxConversationError, GetInboxConversationResponse, UpdateInboxConversationData, UpdateInboxConversationError, UpdateInboxConversationResponse, GetInboxConversationMessagesData, GetInboxConversationMessagesError, GetInboxConversationMessagesResponse, SendInboxMessageData, SendInboxMessageError, SendInboxMessageResponse, EditInboxMessageData, EditInboxMessageError, EditInboxMessageResponse, GetMessengerMenuData, GetMessengerMenuError, GetMessengerMenuResponse, SetMessengerMenuData, SetMessengerMenuError, SetMessengerMenuResponse, DeleteMessengerMenuData, DeleteMessengerMenuError, DeleteMessengerMenuResponse, GetInstagramIceBreakersData, GetInstagramIceBreakersError, GetInstagramIceBreakersResponse, SetInstagramIceBreakersData, SetInstagramIceBreakersError, SetInstagramIceBreakersResponse, DeleteInstagramIceBreakersData, DeleteInstagramIceBreakersError, DeleteInstagramIceBreakersResponse, GetTelegramCommandsData, GetTelegramCommandsError, GetTelegramCommandsResponse, SetTelegramCommandsData, SetTelegramCommandsError, SetTelegramCommandsResponse, DeleteTelegramCommandsData, DeleteTelegramCommandsError, DeleteTelegramCommandsResponse, ListInboxCommentsData, ListInboxCommentsError, ListInboxCommentsResponse, GetInboxPostCommentsData, GetInboxPostCommentsError, GetInboxPostCommentsResponse, ReplyToInboxPostData, ReplyToInboxPostError, ReplyToInboxPostResponse, DeleteInboxCommentData, DeleteInboxCommentError, DeleteInboxCommentResponse, HideInboxCommentData, HideInboxCommentError, HideInboxCommentResponse, UnhideInboxCommentData, UnhideInboxCommentError, UnhideInboxCommentResponse, LikeInboxCommentData, LikeInboxCommentError, LikeInboxCommentResponse, UnlikeInboxCommentData, UnlikeInboxCommentError, UnlikeInboxCommentResponse, SendPrivateReplyToCommentData, SendPrivateReplyToCommentError, SendPrivateReplyToCommentResponse, RetweetPostData, RetweetPostError, RetweetPostResponse, UndoRetweetData, UndoRetweetError, UndoRetweetResponse, BookmarkPostData, BookmarkPostError, BookmarkPostResponse, RemoveBookmarkData, RemoveBookmarkError, RemoveBookmarkResponse, FollowUserData, FollowUserError, FollowUserResponse, UnfollowUserData, UnfollowUserError, UnfollowUserResponse, ListInboxReviewsData, ListInboxReviewsError, ListInboxReviewsResponse, ReplyToInboxReviewData, ReplyToInboxReviewError, ReplyToInboxReviewResponse, DeleteInboxReviewReplyData, DeleteInboxReviewReplyError, DeleteInboxReviewReplyResponse, SendWhatsAppBulkData, SendWhatsAppBulkError, SendWhatsAppBulkResponse, GetWhatsAppContactsData, GetWhatsAppContactsError, GetWhatsAppContactsResponse, CreateWhatsAppContactData, CreateWhatsAppContactError, CreateWhatsAppContactResponse, GetWhatsAppContactData, GetWhatsAppContactError, GetWhatsAppContactResponse, UpdateWhatsAppContactData, UpdateWhatsAppContactError, UpdateWhatsAppContactResponse, DeleteWhatsAppContactData, DeleteWhatsAppContactError, DeleteWhatsAppContactResponse, ImportWhatsAppContactsData, ImportWhatsAppContactsError, ImportWhatsAppContactsResponse, BulkUpdateWhatsAppContactsData, BulkUpdateWhatsAppContactsError, BulkUpdateWhatsAppContactsResponse, BulkDeleteWhatsAppContactsData, BulkDeleteWhatsAppContactsError, BulkDeleteWhatsAppContactsResponse, GetWhatsAppGroupsData, GetWhatsAppGroupsError, GetWhatsAppGroupsResponse, RenameWhatsAppGroupData, RenameWhatsAppGroupError, RenameWhatsAppGroupResponse, DeleteWhatsAppGroupData, DeleteWhatsAppGroupError, DeleteWhatsAppGroupResponse, GetWhatsAppTemplatesData, GetWhatsAppTemplatesError, GetWhatsAppTemplatesResponse, CreateWhatsAppTemplateData, CreateWhatsAppTemplateError, CreateWhatsAppTemplateResponse, GetWhatsAppTemplateData, GetWhatsAppTemplateError, GetWhatsAppTemplateResponse, UpdateWhatsAppTemplateData, UpdateWhatsAppTemplateError, UpdateWhatsAppTemplateResponse, DeleteWhatsAppTemplateData, DeleteWhatsAppTemplateError, DeleteWhatsAppTemplateResponse, GetWhatsAppBroadcastsData, GetWhatsAppBroadcastsError, GetWhatsAppBroadcastsResponse, CreateWhatsAppBroadcastData, CreateWhatsAppBroadcastError, CreateWhatsAppBroadcastResponse, GetWhatsAppBroadcastData, GetWhatsAppBroadcastError, GetWhatsAppBroadcastResponse, DeleteWhatsAppBroadcastData, DeleteWhatsAppBroadcastError, DeleteWhatsAppBroadcastResponse, SendWhatsAppBroadcastData, SendWhatsAppBroadcastError, SendWhatsAppBroadcastResponse, ScheduleWhatsAppBroadcastData, ScheduleWhatsAppBroadcastError, ScheduleWhatsAppBroadcastResponse, CancelWhatsAppBroadcastScheduleData, CancelWhatsAppBroadcastScheduleError, CancelWhatsAppBroadcastScheduleResponse, GetWhatsAppBroadcastRecipientsData, GetWhatsAppBroadcastRecipientsError, GetWhatsAppBroadcastRecipientsResponse, AddWhatsAppBroadcastRecipientsData, AddWhatsAppBroadcastRecipientsError, AddWhatsAppBroadcastRecipientsResponse, RemoveWhatsAppBroadcastRecipientsData, RemoveWhatsAppBroadcastRecipientsError, RemoveWhatsAppBroadcastRecipientsResponse, GetWhatsAppBusinessProfileData, GetWhatsAppBusinessProfileError, GetWhatsAppBusinessProfileResponse, UpdateWhatsAppBusinessProfileData, UpdateWhatsAppBusinessProfileError, UpdateWhatsAppBusinessProfileResponse, UploadWhatsAppProfilePhotoData, UploadWhatsAppProfilePhotoError, UploadWhatsAppProfilePhotoResponse, GetWhatsAppDisplayNameData, GetWhatsAppDisplayNameError, GetWhatsAppDisplayNameResponse, UpdateWhatsAppDisplayNameData, UpdateWhatsAppDisplayNameError, UpdateWhatsAppDisplayNameResponse, GetWhatsAppPhoneNumbersData, GetWhatsAppPhoneNumbersError, GetWhatsAppPhoneNumbersResponse, PurchaseWhatsAppPhoneNumberData, PurchaseWhatsAppPhoneNumberError, PurchaseWhatsAppPhoneNumberResponse, GetWhatsAppPhoneNumberData, GetWhatsAppPhoneNumberError, GetWhatsAppPhoneNumberResponse, ReleaseWhatsAppPhoneNumberData, ReleaseWhatsAppPhoneNumberError, ReleaseWhatsAppPhoneNumberResponse } from './types.gen';
4
+ import type { DownloadYouTubeVideoData, DownloadYouTubeVideoError, DownloadYouTubeVideoResponse, GetYouTubeTranscriptData, GetYouTubeTranscriptError, GetYouTubeTranscriptResponse, DownloadInstagramMediaData, DownloadInstagramMediaError, DownloadInstagramMediaResponse, CheckInstagramHashtagsData, CheckInstagramHashtagsError, CheckInstagramHashtagsResponse, DownloadTikTokVideoData, DownloadTikTokVideoError, DownloadTikTokVideoResponse, DownloadTwitterMediaData, DownloadTwitterMediaError, DownloadTwitterMediaResponse, DownloadFacebookVideoData, DownloadFacebookVideoError, DownloadFacebookVideoResponse, DownloadLinkedInVideoData, DownloadLinkedInVideoError, DownloadLinkedInVideoResponse, DownloadBlueskyMediaData, DownloadBlueskyMediaError, DownloadBlueskyMediaResponse, ValidatePostLengthData, ValidatePostLengthError, ValidatePostLengthResponse, ValidatePostData, ValidatePostError, ValidatePostResponse, ValidateMediaData, ValidateMediaError, ValidateMediaResponse, ValidateSubredditData, ValidateSubredditError, ValidateSubredditResponse, GetAnalyticsData, GetAnalyticsError, GetAnalyticsResponse, GetYouTubeDailyViewsData, GetYouTubeDailyViewsError, GetYouTubeDailyViewsResponse, GetInstagramAccountInsightsData, GetInstagramAccountInsightsError, GetInstagramAccountInsightsResponse, GetInstagramDemographicsData, GetInstagramDemographicsError, GetInstagramDemographicsResponse, GetDailyMetricsData, GetDailyMetricsError, GetDailyMetricsResponse, GetBestTimeToPostData, GetBestTimeToPostError, GetBestTimeToPostResponse, GetContentDecayData, GetContentDecayError, GetContentDecayResponse, GetPostingFrequencyData, GetPostingFrequencyError, GetPostingFrequencyResponse, GetPostTimelineData, GetPostTimelineError, GetPostTimelineResponse, ListAccountGroupsError, ListAccountGroupsResponse, CreateAccountGroupData, CreateAccountGroupError, CreateAccountGroupResponse, UpdateAccountGroupData, UpdateAccountGroupError, UpdateAccountGroupResponse, DeleteAccountGroupData, DeleteAccountGroupError, DeleteAccountGroupResponse, GetMediaPresignedUrlData, GetMediaPresignedUrlError, GetMediaPresignedUrlResponse, SearchRedditData, SearchRedditError, SearchRedditResponse, GetRedditFeedData, GetRedditFeedError, GetRedditFeedResponse, GetUsageStatsError, GetUsageStatsResponse, ListPostsData, ListPostsError, ListPostsResponse, CreatePostData, CreatePostError, CreatePostResponse, GetPostData, GetPostError, GetPostResponse, UpdatePostData, UpdatePostError, UpdatePostResponse, DeletePostData, DeletePostError, DeletePostResponse, BulkUploadPostsData, BulkUploadPostsError, BulkUploadPostsResponse, RetryPostData, RetryPostError, RetryPostResponse, UnpublishPostData, UnpublishPostError, UnpublishPostResponse, ListUsersError, ListUsersResponse, GetUserData, GetUserError, GetUserResponse, ListProfilesData, ListProfilesError, ListProfilesResponse, CreateProfileData, CreateProfileError, CreateProfileResponse, GetProfileData, GetProfileError, GetProfileResponse, UpdateProfileData, UpdateProfileError, UpdateProfileResponse, DeleteProfileData, DeleteProfileError, DeleteProfileResponse, ListAccountsData, ListAccountsError, ListAccountsResponse, GetFollowerStatsData, GetFollowerStatsError, GetFollowerStatsResponse, UpdateAccountData, UpdateAccountError, UpdateAccountResponse, DeleteAccountData, DeleteAccountError, DeleteAccountResponse, GetAllAccountsHealthData, GetAllAccountsHealthError, GetAllAccountsHealthResponse, GetAccountHealthData, GetAccountHealthError, GetAccountHealthResponse, GetTikTokCreatorInfoData, GetTikTokCreatorInfoError, GetTikTokCreatorInfoResponse, ListApiKeysError, ListApiKeysResponse, CreateApiKeyData, CreateApiKeyError, CreateApiKeyResponse, DeleteApiKeyData, DeleteApiKeyError, DeleteApiKeyResponse, CreateInviteTokenData, CreateInviteTokenError, CreateInviteTokenResponse, GetConnectUrlData, GetConnectUrlError, GetConnectUrlResponse, HandleOAuthCallbackData, HandleOAuthCallbackError, HandleOAuthCallbackResponse, ListFacebookPagesData, ListFacebookPagesError, ListFacebookPagesResponse, SelectFacebookPageData, SelectFacebookPageError, SelectFacebookPageResponse, ListGoogleBusinessLocationsData, ListGoogleBusinessLocationsError, ListGoogleBusinessLocationsResponse, SelectGoogleBusinessLocationData, SelectGoogleBusinessLocationError, SelectGoogleBusinessLocationResponse, GetGoogleBusinessReviewsData, GetGoogleBusinessReviewsError, GetGoogleBusinessReviewsResponse, GetGoogleBusinessFoodMenusData, GetGoogleBusinessFoodMenusError, GetGoogleBusinessFoodMenusResponse, UpdateGoogleBusinessFoodMenusData, UpdateGoogleBusinessFoodMenusError, UpdateGoogleBusinessFoodMenusResponse, GetGoogleBusinessLocationDetailsData, GetGoogleBusinessLocationDetailsError, GetGoogleBusinessLocationDetailsResponse, UpdateGoogleBusinessLocationDetailsData, UpdateGoogleBusinessLocationDetailsError, UpdateGoogleBusinessLocationDetailsResponse, ListGoogleBusinessMediaData, ListGoogleBusinessMediaError, ListGoogleBusinessMediaResponse, CreateGoogleBusinessMediaData, CreateGoogleBusinessMediaError, CreateGoogleBusinessMediaResponse, DeleteGoogleBusinessMediaData, DeleteGoogleBusinessMediaError, DeleteGoogleBusinessMediaResponse, GetGoogleBusinessAttributesData, GetGoogleBusinessAttributesError, GetGoogleBusinessAttributesResponse, UpdateGoogleBusinessAttributesData, UpdateGoogleBusinessAttributesError, UpdateGoogleBusinessAttributesResponse, ListGoogleBusinessPlaceActionsData, ListGoogleBusinessPlaceActionsError, ListGoogleBusinessPlaceActionsResponse, CreateGoogleBusinessPlaceActionData, CreateGoogleBusinessPlaceActionError, CreateGoogleBusinessPlaceActionResponse, DeleteGoogleBusinessPlaceActionData, DeleteGoogleBusinessPlaceActionError, DeleteGoogleBusinessPlaceActionResponse, GetPendingOAuthDataData, GetPendingOAuthDataError, GetPendingOAuthDataResponse, ListLinkedInOrganizationsData, ListLinkedInOrganizationsError, ListLinkedInOrganizationsResponse, SelectLinkedInOrganizationData, SelectLinkedInOrganizationError, SelectLinkedInOrganizationResponse, ListPinterestBoardsForSelectionData, ListPinterestBoardsForSelectionError, ListPinterestBoardsForSelectionResponse, SelectPinterestBoardData, SelectPinterestBoardError, SelectPinterestBoardResponse, ListSnapchatProfilesData, ListSnapchatProfilesError, ListSnapchatProfilesResponse, SelectSnapchatProfileData, SelectSnapchatProfileError, SelectSnapchatProfileResponse, ConnectBlueskyCredentialsData, ConnectBlueskyCredentialsError, ConnectBlueskyCredentialsResponse, ConnectWhatsAppCredentialsData, ConnectWhatsAppCredentialsError, ConnectWhatsAppCredentialsResponse, GetTelegramConnectStatusData, GetTelegramConnectStatusError, GetTelegramConnectStatusResponse, InitiateTelegramConnectData, InitiateTelegramConnectError, InitiateTelegramConnectResponse, CompleteTelegramConnectData, CompleteTelegramConnectError, CompleteTelegramConnectResponse, GetFacebookPagesData, GetFacebookPagesError, GetFacebookPagesResponse, UpdateFacebookPageData, UpdateFacebookPageError, UpdateFacebookPageResponse, GetLinkedInOrganizationsData, GetLinkedInOrganizationsError, GetLinkedInOrganizationsResponse, GetLinkedInAggregateAnalyticsData, GetLinkedInAggregateAnalyticsError, GetLinkedInAggregateAnalyticsResponse, GetLinkedInPostAnalyticsData, GetLinkedInPostAnalyticsError, GetLinkedInPostAnalyticsResponse, GetLinkedInPostReactionsData, GetLinkedInPostReactionsError, GetLinkedInPostReactionsResponse, UpdateLinkedInOrganizationData, UpdateLinkedInOrganizationError, UpdateLinkedInOrganizationResponse, GetLinkedInMentionsData, GetLinkedInMentionsError, GetLinkedInMentionsResponse, GetPinterestBoardsData, GetPinterestBoardsError, GetPinterestBoardsResponse, UpdatePinterestBoardsData, UpdatePinterestBoardsError, UpdatePinterestBoardsResponse, GetGmbLocationsData, GetGmbLocationsError, GetGmbLocationsResponse, UpdateGmbLocationData, UpdateGmbLocationError, UpdateGmbLocationResponse, GetRedditSubredditsData, GetRedditSubredditsError, GetRedditSubredditsResponse, UpdateRedditSubredditsData, UpdateRedditSubredditsError, UpdateRedditSubredditsResponse, GetRedditFlairsData, GetRedditFlairsError, GetRedditFlairsResponse, ListQueueSlotsData, ListQueueSlotsError, ListQueueSlotsResponse, CreateQueueSlotData, CreateQueueSlotError, CreateQueueSlotResponse, UpdateQueueSlotData, UpdateQueueSlotError, UpdateQueueSlotResponse, DeleteQueueSlotData, DeleteQueueSlotError, DeleteQueueSlotResponse, PreviewQueueData, PreviewQueueError, PreviewQueueResponse, GetNextQueueSlotData, GetNextQueueSlotError, GetNextQueueSlotResponse, GetWebhookSettingsError, GetWebhookSettingsResponse, CreateWebhookSettingsData, CreateWebhookSettingsError, CreateWebhookSettingsResponse, UpdateWebhookSettingsData, UpdateWebhookSettingsError, UpdateWebhookSettingsResponse, DeleteWebhookSettingsData, DeleteWebhookSettingsError, DeleteWebhookSettingsResponse, TestWebhookData, TestWebhookError, TestWebhookResponse, GetWebhookLogsData, GetWebhookLogsError, GetWebhookLogsResponse, ListPostsLogsData, ListPostsLogsError, ListPostsLogsResponse, ListConnectionLogsData, ListConnectionLogsError, ListConnectionLogsResponse, GetPostLogsData, GetPostLogsError, GetPostLogsResponse, ListInboxConversationsData, ListInboxConversationsError, ListInboxConversationsResponse, GetInboxConversationData, GetInboxConversationError, GetInboxConversationResponse, UpdateInboxConversationData, UpdateInboxConversationError, UpdateInboxConversationResponse, GetInboxConversationMessagesData, GetInboxConversationMessagesError, GetInboxConversationMessagesResponse, SendInboxMessageData, SendInboxMessageError, SendInboxMessageResponse, EditInboxMessageData, EditInboxMessageError, EditInboxMessageResponse, GetMessengerMenuData, GetMessengerMenuError, GetMessengerMenuResponse, SetMessengerMenuData, SetMessengerMenuError, SetMessengerMenuResponse, DeleteMessengerMenuData, DeleteMessengerMenuError, DeleteMessengerMenuResponse, GetInstagramIceBreakersData, GetInstagramIceBreakersError, GetInstagramIceBreakersResponse, SetInstagramIceBreakersData, SetInstagramIceBreakersError, SetInstagramIceBreakersResponse, DeleteInstagramIceBreakersData, DeleteInstagramIceBreakersError, DeleteInstagramIceBreakersResponse, GetTelegramCommandsData, GetTelegramCommandsError, GetTelegramCommandsResponse, SetTelegramCommandsData, SetTelegramCommandsError, SetTelegramCommandsResponse, DeleteTelegramCommandsData, DeleteTelegramCommandsError, DeleteTelegramCommandsResponse, ListInboxCommentsData, ListInboxCommentsError, ListInboxCommentsResponse, GetInboxPostCommentsData, GetInboxPostCommentsError, GetInboxPostCommentsResponse, ReplyToInboxPostData, ReplyToInboxPostError, ReplyToInboxPostResponse, DeleteInboxCommentData, DeleteInboxCommentError, DeleteInboxCommentResponse, HideInboxCommentData, HideInboxCommentError, HideInboxCommentResponse, UnhideInboxCommentData, UnhideInboxCommentError, UnhideInboxCommentResponse, LikeInboxCommentData, LikeInboxCommentError, LikeInboxCommentResponse, UnlikeInboxCommentData, UnlikeInboxCommentError, UnlikeInboxCommentResponse, SendPrivateReplyToCommentData, SendPrivateReplyToCommentError, SendPrivateReplyToCommentResponse, RetweetPostData, RetweetPostError, RetweetPostResponse, UndoRetweetData, UndoRetweetError, UndoRetweetResponse, BookmarkPostData, BookmarkPostError, BookmarkPostResponse, RemoveBookmarkData, RemoveBookmarkError, RemoveBookmarkResponse, FollowUserData, FollowUserError, FollowUserResponse, UnfollowUserData, UnfollowUserError, UnfollowUserResponse, ListInboxReviewsData, ListInboxReviewsError, ListInboxReviewsResponse, ReplyToInboxReviewData, ReplyToInboxReviewError, ReplyToInboxReviewResponse, DeleteInboxReviewReplyData, DeleteInboxReviewReplyError, DeleteInboxReviewReplyResponse, SendWhatsAppBulkData, SendWhatsAppBulkError, SendWhatsAppBulkResponse, GetWhatsAppContactsData, GetWhatsAppContactsError, GetWhatsAppContactsResponse, CreateWhatsAppContactData, CreateWhatsAppContactError, CreateWhatsAppContactResponse, GetWhatsAppContactData, GetWhatsAppContactError, GetWhatsAppContactResponse, UpdateWhatsAppContactData, UpdateWhatsAppContactError, UpdateWhatsAppContactResponse, DeleteWhatsAppContactData, DeleteWhatsAppContactError, DeleteWhatsAppContactResponse, ImportWhatsAppContactsData, ImportWhatsAppContactsError, ImportWhatsAppContactsResponse, BulkUpdateWhatsAppContactsData, BulkUpdateWhatsAppContactsError, BulkUpdateWhatsAppContactsResponse, BulkDeleteWhatsAppContactsData, BulkDeleteWhatsAppContactsError, BulkDeleteWhatsAppContactsResponse, GetWhatsAppGroupsData, GetWhatsAppGroupsError, GetWhatsAppGroupsResponse, RenameWhatsAppGroupData, RenameWhatsAppGroupError, RenameWhatsAppGroupResponse, DeleteWhatsAppGroupData, DeleteWhatsAppGroupError, DeleteWhatsAppGroupResponse, GetWhatsAppTemplatesData, GetWhatsAppTemplatesError, GetWhatsAppTemplatesResponse, CreateWhatsAppTemplateData, CreateWhatsAppTemplateError, CreateWhatsAppTemplateResponse, GetWhatsAppTemplateData, GetWhatsAppTemplateError, GetWhatsAppTemplateResponse, UpdateWhatsAppTemplateData, UpdateWhatsAppTemplateError, UpdateWhatsAppTemplateResponse, DeleteWhatsAppTemplateData, DeleteWhatsAppTemplateError, DeleteWhatsAppTemplateResponse, GetWhatsAppBroadcastsData, GetWhatsAppBroadcastsError, GetWhatsAppBroadcastsResponse, CreateWhatsAppBroadcastData, CreateWhatsAppBroadcastError, CreateWhatsAppBroadcastResponse, GetWhatsAppBroadcastData, GetWhatsAppBroadcastError, GetWhatsAppBroadcastResponse, DeleteWhatsAppBroadcastData, DeleteWhatsAppBroadcastError, DeleteWhatsAppBroadcastResponse, SendWhatsAppBroadcastData, SendWhatsAppBroadcastError, SendWhatsAppBroadcastResponse, ScheduleWhatsAppBroadcastData, ScheduleWhatsAppBroadcastError, ScheduleWhatsAppBroadcastResponse, CancelWhatsAppBroadcastScheduleData, CancelWhatsAppBroadcastScheduleError, CancelWhatsAppBroadcastScheduleResponse, GetWhatsAppBroadcastRecipientsData, GetWhatsAppBroadcastRecipientsError, GetWhatsAppBroadcastRecipientsResponse, AddWhatsAppBroadcastRecipientsData, AddWhatsAppBroadcastRecipientsError, AddWhatsAppBroadcastRecipientsResponse, RemoveWhatsAppBroadcastRecipientsData, RemoveWhatsAppBroadcastRecipientsError, RemoveWhatsAppBroadcastRecipientsResponse, GetWhatsAppBusinessProfileData, GetWhatsAppBusinessProfileError, GetWhatsAppBusinessProfileResponse, UpdateWhatsAppBusinessProfileData, UpdateWhatsAppBusinessProfileError, UpdateWhatsAppBusinessProfileResponse, UploadWhatsAppProfilePhotoData, UploadWhatsAppProfilePhotoError, UploadWhatsAppProfilePhotoResponse, GetWhatsAppDisplayNameData, GetWhatsAppDisplayNameError, GetWhatsAppDisplayNameResponse, UpdateWhatsAppDisplayNameData, UpdateWhatsAppDisplayNameError, UpdateWhatsAppDisplayNameResponse, GetWhatsAppPhoneNumbersData, GetWhatsAppPhoneNumbersError, GetWhatsAppPhoneNumbersResponse, PurchaseWhatsAppPhoneNumberData, PurchaseWhatsAppPhoneNumberError, PurchaseWhatsAppPhoneNumberResponse, GetWhatsAppPhoneNumberData, GetWhatsAppPhoneNumberError, GetWhatsAppPhoneNumberResponse, ReleaseWhatsAppPhoneNumberData, ReleaseWhatsAppPhoneNumberError, ReleaseWhatsAppPhoneNumberResponse, ListContactsData, ListContactsError, ListContactsResponse, CreateContactData, CreateContactError, CreateContactResponse, GetContactData, GetContactError, GetContactResponse, UpdateContactData, UpdateContactError, UpdateContactResponse, DeleteContactData, DeleteContactError, DeleteContactResponse, GetContactChannelsData, GetContactChannelsError, GetContactChannelsResponse, BulkCreateContactsData, BulkCreateContactsError, BulkCreateContactsResponse, SetContactFieldValueData, SetContactFieldValueError, SetContactFieldValueResponse, ClearContactFieldValueData, ClearContactFieldValueError, ClearContactFieldValueResponse, ListCustomFieldsData, ListCustomFieldsError, ListCustomFieldsResponse, CreateCustomFieldData, CreateCustomFieldError, CreateCustomFieldResponse, UpdateCustomFieldData, UpdateCustomFieldError, UpdateCustomFieldResponse, DeleteCustomFieldData, DeleteCustomFieldError, DeleteCustomFieldResponse, ListBroadcastsData, ListBroadcastsError, ListBroadcastsResponse, CreateBroadcastData, CreateBroadcastError, CreateBroadcastResponse, GetBroadcastData, GetBroadcastError, GetBroadcastResponse, UpdateBroadcastData, UpdateBroadcastError, UpdateBroadcastResponse, DeleteBroadcastData, DeleteBroadcastError, DeleteBroadcastResponse, SendBroadcastData, SendBroadcastError, SendBroadcastResponse, ScheduleBroadcastData, ScheduleBroadcastError, ScheduleBroadcastResponse, CancelBroadcastData, CancelBroadcastError, CancelBroadcastResponse, ListBroadcastRecipientsData, ListBroadcastRecipientsError, ListBroadcastRecipientsResponse, AddBroadcastRecipientsData, AddBroadcastRecipientsError, AddBroadcastRecipientsResponse, ListSequencesData, ListSequencesError, ListSequencesResponse, CreateSequenceData, CreateSequenceError, CreateSequenceResponse, GetSequenceData, GetSequenceError, GetSequenceResponse, UpdateSequenceData, UpdateSequenceError, UpdateSequenceResponse, DeleteSequenceData, DeleteSequenceError, DeleteSequenceResponse, ActivateSequenceData, ActivateSequenceError, ActivateSequenceResponse, PauseSequenceData, PauseSequenceError, PauseSequenceResponse, EnrollContactsData, EnrollContactsError, EnrollContactsResponse, UnenrollContactData, UnenrollContactError, UnenrollContactResponse, ListSequenceEnrollmentsData, ListSequenceEnrollmentsError, ListSequenceEnrollmentsResponse, ListCommentAutomationsData, ListCommentAutomationsError, ListCommentAutomationsResponse, CreateCommentAutomationData, CreateCommentAutomationError, CreateCommentAutomationResponse, GetCommentAutomationData, GetCommentAutomationError, GetCommentAutomationResponse, UpdateCommentAutomationData, UpdateCommentAutomationError, UpdateCommentAutomationResponse, DeleteCommentAutomationData, DeleteCommentAutomationError, DeleteCommentAutomationResponse, ListCommentAutomationLogsData, ListCommentAutomationLogsError, ListCommentAutomationLogsResponse } from './types.gen';
5
5
 
6
6
  export const client = createClient(createConfig());
7
7
 
@@ -1830,7 +1830,9 @@ export const deleteInboxReviewReply = <ThrowOnError extends boolean = false>(opt
1830
1830
  };
1831
1831
 
1832
1832
  /**
1833
+ * @deprecated
1833
1834
  * Bulk send template messages
1835
+ * **Deprecated.** Use `POST /v1/broadcasts` to create a broadcast, `POST /v1/broadcasts/{id}/recipients` to add recipients, then `POST /v1/broadcasts/{id}/send` to send.
1834
1836
  * Send a template message to multiple recipients in a single request. Maximum 100 recipients per request.
1835
1837
  * Only template messages are supported for bulk sending (not free-form text).
1836
1838
  *
@@ -1846,7 +1848,9 @@ export const sendWhatsAppBulk = <ThrowOnError extends boolean = false>(options:
1846
1848
  };
1847
1849
 
1848
1850
  /**
1851
+ * @deprecated
1849
1852
  * List contacts
1853
+ * **Deprecated.** Use `GET /v1/contacts?profileId={profileId}` instead.
1850
1854
  * List WhatsApp contacts for an account. Supports filtering by tags, groups, opt-in status,
1851
1855
  * and text search. Returns contacts sorted by name with available filter options.
1852
1856
  *
@@ -1859,7 +1863,9 @@ export const getWhatsAppContacts = <ThrowOnError extends boolean = false>(option
1859
1863
  };
1860
1864
 
1861
1865
  /**
1866
+ * @deprecated
1862
1867
  * Create contact
1868
+ * **Deprecated.** Use `POST /v1/contacts` instead.
1863
1869
  * Create a new WhatsApp contact. Phone number must be unique per account
1864
1870
  * and in E.164 format (e.g., +1234567890).
1865
1871
  *
@@ -1872,8 +1878,11 @@ export const createWhatsAppContact = <ThrowOnError extends boolean = false>(opti
1872
1878
  };
1873
1879
 
1874
1880
  /**
1881
+ * @deprecated
1875
1882
  * Get contact
1883
+ * **Deprecated.** Use `GET /v1/contacts/{id}` instead.
1876
1884
  * Retrieve a single WhatsApp contact by ID with full details.
1885
+ *
1877
1886
  */
1878
1887
  export const getWhatsAppContact = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetWhatsAppContactData, ThrowOnError>) => {
1879
1888
  return (options?.client ?? client).get<GetWhatsAppContactResponse, GetWhatsAppContactError, ThrowOnError>({
@@ -1883,7 +1892,9 @@ export const getWhatsAppContact = <ThrowOnError extends boolean = false>(options
1883
1892
  };
1884
1893
 
1885
1894
  /**
1895
+ * @deprecated
1886
1896
  * Update contact
1897
+ * **Deprecated.** Use `PATCH /v1/contacts/{id}` instead.
1887
1898
  * Update an existing WhatsApp contact. All fields are optional; only provided fields will be updated.
1888
1899
  * Custom fields are merged with existing values. Set a custom field to null to remove it.
1889
1900
  *
@@ -1896,8 +1907,11 @@ export const updateWhatsAppContact = <ThrowOnError extends boolean = false>(opti
1896
1907
  };
1897
1908
 
1898
1909
  /**
1910
+ * @deprecated
1899
1911
  * Delete contact
1912
+ * **Deprecated.** Use `DELETE /v1/contacts/{id}` instead.
1900
1913
  * Permanently delete a WhatsApp contact.
1914
+ *
1901
1915
  */
1902
1916
  export const deleteWhatsAppContact = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DeleteWhatsAppContactData, ThrowOnError>) => {
1903
1917
  return (options?.client ?? client).delete<DeleteWhatsAppContactResponse, DeleteWhatsAppContactError, ThrowOnError>({
@@ -1907,7 +1921,9 @@ export const deleteWhatsAppContact = <ThrowOnError extends boolean = false>(opti
1907
1921
  };
1908
1922
 
1909
1923
  /**
1924
+ * @deprecated
1910
1925
  * Bulk import contacts
1926
+ * **Deprecated.** Use `POST /v1/contacts/bulk` instead.
1911
1927
  * Import up to 1000 contacts at once. Each contact requires a phone number and name.
1912
1928
  * Duplicates are skipped by default. Supports default tags and groups applied to all imported contacts.
1913
1929
  *
@@ -1920,7 +1936,9 @@ export const importWhatsAppContacts = <ThrowOnError extends boolean = false>(opt
1920
1936
  };
1921
1937
 
1922
1938
  /**
1939
+ * @deprecated
1923
1940
  * Bulk update contacts
1941
+ * **Deprecated.** Use `PATCH /v1/contacts/{id}` for individual updates instead.
1924
1942
  * Perform bulk operations on multiple contacts (max 500 per request). Supported actions:
1925
1943
  * addTags, removeTags, addGroups, removeGroups, optIn, optOut, block, unblock.
1926
1944
  *
@@ -1933,8 +1951,11 @@ export const bulkUpdateWhatsAppContacts = <ThrowOnError extends boolean = false>
1933
1951
  };
1934
1952
 
1935
1953
  /**
1954
+ * @deprecated
1936
1955
  * Bulk delete contacts
1956
+ * **Deprecated.** Use `DELETE /v1/contacts/{id}` for individual deletes instead.
1937
1957
  * Permanently delete multiple contacts at once (max 500 per request).
1958
+ *
1938
1959
  */
1939
1960
  export const bulkDeleteWhatsAppContacts = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<BulkDeleteWhatsAppContactsData, ThrowOnError>) => {
1940
1961
  return (options?.client ?? client).delete<BulkDeleteWhatsAppContactsResponse, BulkDeleteWhatsAppContactsError, ThrowOnError>({
@@ -1944,7 +1965,9 @@ export const bulkDeleteWhatsAppContacts = <ThrowOnError extends boolean = false>
1944
1965
  };
1945
1966
 
1946
1967
  /**
1968
+ * @deprecated
1947
1969
  * List contact groups
1970
+ * **Deprecated.** Use contact tags via `GET /v1/contacts` for grouping instead. WhatsApp groups have no cross-platform equivalent.
1948
1971
  * List all contact groups for a WhatsApp account with contact counts.
1949
1972
  * Groups are derived from the groups field on contacts, not stored as separate documents.
1950
1973
  *
@@ -1957,8 +1980,11 @@ export const getWhatsAppGroups = <ThrowOnError extends boolean = false>(options:
1957
1980
  };
1958
1981
 
1959
1982
  /**
1983
+ * @deprecated
1960
1984
  * Rename group
1985
+ * **Deprecated.** Use contact tags via `PATCH /v1/contacts/{id}` instead.
1961
1986
  * Rename a contact group. This updates the group name on all contacts that belong to the group.
1987
+ *
1962
1988
  */
1963
1989
  export const renameWhatsAppGroup = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<RenameWhatsAppGroupData, ThrowOnError>) => {
1964
1990
  return (options?.client ?? client).post<RenameWhatsAppGroupResponse, RenameWhatsAppGroupError, ThrowOnError>({
@@ -1968,8 +1994,11 @@ export const renameWhatsAppGroup = <ThrowOnError extends boolean = false>(option
1968
1994
  };
1969
1995
 
1970
1996
  /**
1997
+ * @deprecated
1971
1998
  * Delete group
1999
+ * **Deprecated.** Use contact tags via `PATCH /v1/contacts/{id}` instead.
1972
2000
  * Delete a contact group. This removes the group from all contacts but does not delete the contacts themselves.
2001
+ *
1973
2002
  */
1974
2003
  export const deleteWhatsAppGroup = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DeleteWhatsAppGroupData, ThrowOnError>) => {
1975
2004
  return (options?.client ?? client).delete<DeleteWhatsAppGroupResponse, DeleteWhatsAppGroupError, ThrowOnError>({
@@ -2014,6 +2043,7 @@ export const createWhatsAppTemplate = <ThrowOnError extends boolean = false>(opt
2014
2043
  /**
2015
2044
  * Get template
2016
2045
  * Retrieve a single message template by name.
2046
+ *
2017
2047
  */
2018
2048
  export const getWhatsAppTemplate = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetWhatsAppTemplateData, ThrowOnError>) => {
2019
2049
  return (options?.client ?? client).get<GetWhatsAppTemplateResponse, GetWhatsAppTemplateError, ThrowOnError>({
@@ -2038,6 +2068,7 @@ export const updateWhatsAppTemplate = <ThrowOnError extends boolean = false>(opt
2038
2068
  /**
2039
2069
  * Delete template
2040
2070
  * Permanently delete a message template by name.
2071
+ *
2041
2072
  */
2042
2073
  export const deleteWhatsAppTemplate = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DeleteWhatsAppTemplateData, ThrowOnError>) => {
2043
2074
  return (options?.client ?? client).delete<DeleteWhatsAppTemplateResponse, DeleteWhatsAppTemplateError, ThrowOnError>({
@@ -2047,7 +2078,9 @@ export const deleteWhatsAppTemplate = <ThrowOnError extends boolean = false>(opt
2047
2078
  };
2048
2079
 
2049
2080
  /**
2081
+ * @deprecated
2050
2082
  * List broadcasts
2083
+ * **Deprecated.** Use `GET /v1/broadcasts?profileId={profileId}` instead.
2051
2084
  * List all WhatsApp broadcasts for an account. Returns broadcasts sorted by creation date
2052
2085
  * (newest first) without the full recipients list for performance.
2053
2086
  *
@@ -2060,7 +2093,9 @@ export const getWhatsAppBroadcasts = <ThrowOnError extends boolean = false>(opti
2060
2093
  };
2061
2094
 
2062
2095
  /**
2096
+ * @deprecated
2063
2097
  * Create broadcast
2098
+ * **Deprecated.** Use `POST /v1/broadcasts` instead.
2064
2099
  * Create a new draft broadcast. Optionally include initial recipients.
2065
2100
  * After creation, add recipients and then send or schedule the broadcast.
2066
2101
  *
@@ -2073,8 +2108,11 @@ export const createWhatsAppBroadcast = <ThrowOnError extends boolean = false>(op
2073
2108
  };
2074
2109
 
2075
2110
  /**
2111
+ * @deprecated
2076
2112
  * Get broadcast
2113
+ * **Deprecated.** Use `GET /v1/broadcasts/{id}` instead.
2077
2114
  * Retrieve detailed information about a single broadcast including delivery statistics.
2115
+ *
2078
2116
  */
2079
2117
  export const getWhatsAppBroadcast = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetWhatsAppBroadcastData, ThrowOnError>) => {
2080
2118
  return (options?.client ?? client).get<GetWhatsAppBroadcastResponse, GetWhatsAppBroadcastError, ThrowOnError>({
@@ -2084,8 +2122,11 @@ export const getWhatsAppBroadcast = <ThrowOnError extends boolean = false>(optio
2084
2122
  };
2085
2123
 
2086
2124
  /**
2125
+ * @deprecated
2087
2126
  * Delete broadcast
2127
+ * **Deprecated.** Use `DELETE /v1/broadcasts/{id}` instead.
2088
2128
  * Delete a broadcast. Only draft or cancelled broadcasts can be deleted.
2129
+ *
2089
2130
  */
2090
2131
  export const deleteWhatsAppBroadcast = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DeleteWhatsAppBroadcastData, ThrowOnError>) => {
2091
2132
  return (options?.client ?? client).delete<DeleteWhatsAppBroadcastResponse, DeleteWhatsAppBroadcastError, ThrowOnError>({
@@ -2095,7 +2136,9 @@ export const deleteWhatsAppBroadcast = <ThrowOnError extends boolean = false>(op
2095
2136
  };
2096
2137
 
2097
2138
  /**
2139
+ * @deprecated
2098
2140
  * Send broadcast
2141
+ * **Deprecated.** Use `POST /v1/broadcasts/{id}/send` instead.
2099
2142
  * Start sending a broadcast immediately. The broadcast must be in draft or scheduled status
2100
2143
  * and have at least one recipient. Messages are sent sequentially with rate limiting.
2101
2144
  *
@@ -2108,7 +2151,9 @@ export const sendWhatsAppBroadcast = <ThrowOnError extends boolean = false>(opti
2108
2151
  };
2109
2152
 
2110
2153
  /**
2154
+ * @deprecated
2111
2155
  * Schedule broadcast
2156
+ * **Deprecated.** Use `POST /v1/broadcasts/{id}/schedule` instead.
2112
2157
  * Schedule a draft broadcast for future sending. The scheduled time must be in the future
2113
2158
  * and no more than 30 days in advance. The broadcast must be in draft status and have recipients.
2114
2159
  *
@@ -2121,7 +2166,9 @@ export const scheduleWhatsAppBroadcast = <ThrowOnError extends boolean = false>(
2121
2166
  };
2122
2167
 
2123
2168
  /**
2169
+ * @deprecated
2124
2170
  * Cancel scheduled broadcast
2171
+ * **Deprecated.** Use `POST /v1/broadcasts/{id}/cancel` instead.
2125
2172
  * Cancel a scheduled broadcast and return it to draft status. Only broadcasts in
2126
2173
  * scheduled status can be cancelled.
2127
2174
  *
@@ -2134,7 +2181,9 @@ export const cancelWhatsAppBroadcastSchedule = <ThrowOnError extends boolean = f
2134
2181
  };
2135
2182
 
2136
2183
  /**
2184
+ * @deprecated
2137
2185
  * List recipients
2186
+ * **Deprecated.** Use `GET /v1/broadcasts/{id}/recipients` instead.
2138
2187
  * List recipients of a broadcast with their delivery status. Supports filtering
2139
2188
  * by delivery status and pagination.
2140
2189
  *
@@ -2147,7 +2196,9 @@ export const getWhatsAppBroadcastRecipients = <ThrowOnError extends boolean = fa
2147
2196
  };
2148
2197
 
2149
2198
  /**
2199
+ * @deprecated
2150
2200
  * Add recipients
2201
+ * **Deprecated.** Use `POST /v1/broadcasts/{id}/recipients` instead.
2151
2202
  * Add recipients to a draft broadcast. Maximum 1000 recipients per request.
2152
2203
  * Duplicate phone numbers are automatically skipped.
2153
2204
  *
@@ -2160,8 +2211,11 @@ export const addWhatsAppBroadcastRecipients = <ThrowOnError extends boolean = fa
2160
2211
  };
2161
2212
 
2162
2213
  /**
2214
+ * @deprecated
2163
2215
  * Remove recipients
2216
+ * **Deprecated.** Use `POST /v1/broadcasts/{id}/recipients` with removal flag instead.
2164
2217
  * Remove recipients from a draft broadcast by phone number.
2218
+ *
2165
2219
  */
2166
2220
  export const removeWhatsAppBroadcastRecipients = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<RemoveWhatsAppBroadcastRecipientsData, ThrowOnError>) => {
2167
2221
  return (options?.client ?? client).delete<RemoveWhatsAppBroadcastRecipientsResponse, RemoveWhatsAppBroadcastRecipientsError, ThrowOnError>({
@@ -2173,6 +2227,7 @@ export const removeWhatsAppBroadcastRecipients = <ThrowOnError extends boolean =
2173
2227
  /**
2174
2228
  * Get business profile
2175
2229
  * Retrieve the WhatsApp Business profile for the account (about, address, description, email, websites, etc.).
2230
+ *
2176
2231
  */
2177
2232
  export const getWhatsAppBusinessProfile = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetWhatsAppBusinessProfileData, ThrowOnError>) => {
2178
2233
  return (options?.client ?? client).get<GetWhatsAppBusinessProfileResponse, GetWhatsAppBusinessProfileError, ThrowOnError>({
@@ -2296,4 +2351,403 @@ export const releaseWhatsAppPhoneNumber = <ThrowOnError extends boolean = false>
2296
2351
  ...options,
2297
2352
  url: '/v1/whatsapp/phone-numbers/{phoneNumberId}'
2298
2353
  });
2354
+ };
2355
+
2356
+ /**
2357
+ * List contacts
2358
+ * List and search contacts for a profile. Supports filtering by tags, platform, subscription status, and full-text search.
2359
+ */
2360
+ export const listContacts = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<ListContactsData, ThrowOnError>) => {
2361
+ return (options?.client ?? client).get<ListContactsResponse, ListContactsError, ThrowOnError>({
2362
+ ...options,
2363
+ url: '/v1/contacts'
2364
+ });
2365
+ };
2366
+
2367
+ /**
2368
+ * Create a contact
2369
+ * Create a new contact. Optionally create a platform channel in the same request by providing accountId, platform, and platformIdentifier.
2370
+ */
2371
+ export const createContact = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CreateContactData, ThrowOnError>) => {
2372
+ return (options?.client ?? client).post<CreateContactResponse, CreateContactError, ThrowOnError>({
2373
+ ...options,
2374
+ url: '/v1/contacts'
2375
+ });
2376
+ };
2377
+
2378
+ /**
2379
+ * Get contact with channels
2380
+ */
2381
+ export const getContact = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetContactData, ThrowOnError>) => {
2382
+ return (options?.client ?? client).get<GetContactResponse, GetContactError, ThrowOnError>({
2383
+ ...options,
2384
+ url: '/v1/contacts/{contactId}'
2385
+ });
2386
+ };
2387
+
2388
+ /**
2389
+ * Update a contact
2390
+ */
2391
+ export const updateContact = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdateContactData, ThrowOnError>) => {
2392
+ return (options?.client ?? client).patch<UpdateContactResponse, UpdateContactError, ThrowOnError>({
2393
+ ...options,
2394
+ url: '/v1/contacts/{contactId}'
2395
+ });
2396
+ };
2397
+
2398
+ /**
2399
+ * Delete a contact
2400
+ */
2401
+ export const deleteContact = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DeleteContactData, ThrowOnError>) => {
2402
+ return (options?.client ?? client).delete<DeleteContactResponse, DeleteContactError, ThrowOnError>({
2403
+ ...options,
2404
+ url: '/v1/contacts/{contactId}'
2405
+ });
2406
+ };
2407
+
2408
+ /**
2409
+ * List channels for a contact
2410
+ */
2411
+ export const getContactChannels = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetContactChannelsData, ThrowOnError>) => {
2412
+ return (options?.client ?? client).get<GetContactChannelsResponse, GetContactChannelsError, ThrowOnError>({
2413
+ ...options,
2414
+ url: '/v1/contacts/{contactId}/channels'
2415
+ });
2416
+ };
2417
+
2418
+ /**
2419
+ * Bulk create contacts
2420
+ * Import up to 1000 contacts at a time. Skips duplicates.
2421
+ */
2422
+ export const bulkCreateContacts = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<BulkCreateContactsData, ThrowOnError>) => {
2423
+ return (options?.client ?? client).post<BulkCreateContactsResponse, BulkCreateContactsError, ThrowOnError>({
2424
+ ...options,
2425
+ url: '/v1/contacts/bulk'
2426
+ });
2427
+ };
2428
+
2429
+ /**
2430
+ * Set a custom field value
2431
+ */
2432
+ export const setContactFieldValue = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<SetContactFieldValueData, ThrowOnError>) => {
2433
+ return (options?.client ?? client).put<SetContactFieldValueResponse, SetContactFieldValueError, ThrowOnError>({
2434
+ ...options,
2435
+ url: '/v1/contacts/{contactId}/fields/{slug}'
2436
+ });
2437
+ };
2438
+
2439
+ /**
2440
+ * Clear a custom field value
2441
+ */
2442
+ export const clearContactFieldValue = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ClearContactFieldValueData, ThrowOnError>) => {
2443
+ return (options?.client ?? client).delete<ClearContactFieldValueResponse, ClearContactFieldValueError, ThrowOnError>({
2444
+ ...options,
2445
+ url: '/v1/contacts/{contactId}/fields/{slug}'
2446
+ });
2447
+ };
2448
+
2449
+ /**
2450
+ * List custom field definitions
2451
+ */
2452
+ export const listCustomFields = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<ListCustomFieldsData, ThrowOnError>) => {
2453
+ return (options?.client ?? client).get<ListCustomFieldsResponse, ListCustomFieldsError, ThrowOnError>({
2454
+ ...options,
2455
+ url: '/v1/custom-fields'
2456
+ });
2457
+ };
2458
+
2459
+ /**
2460
+ * Create a custom field definition
2461
+ */
2462
+ export const createCustomField = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CreateCustomFieldData, ThrowOnError>) => {
2463
+ return (options?.client ?? client).post<CreateCustomFieldResponse, CreateCustomFieldError, ThrowOnError>({
2464
+ ...options,
2465
+ url: '/v1/custom-fields'
2466
+ });
2467
+ };
2468
+
2469
+ /**
2470
+ * Update a custom field definition
2471
+ */
2472
+ export const updateCustomField = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdateCustomFieldData, ThrowOnError>) => {
2473
+ return (options?.client ?? client).patch<UpdateCustomFieldResponse, UpdateCustomFieldError, ThrowOnError>({
2474
+ ...options,
2475
+ url: '/v1/custom-fields/{fieldId}'
2476
+ });
2477
+ };
2478
+
2479
+ /**
2480
+ * Delete a custom field definition
2481
+ */
2482
+ export const deleteCustomField = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DeleteCustomFieldData, ThrowOnError>) => {
2483
+ return (options?.client ?? client).delete<DeleteCustomFieldResponse, DeleteCustomFieldError, ThrowOnError>({
2484
+ ...options,
2485
+ url: '/v1/custom-fields/{fieldId}'
2486
+ });
2487
+ };
2488
+
2489
+ /**
2490
+ * List broadcasts
2491
+ */
2492
+ export const listBroadcasts = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<ListBroadcastsData, ThrowOnError>) => {
2493
+ return (options?.client ?? client).get<ListBroadcastsResponse, ListBroadcastsError, ThrowOnError>({
2494
+ ...options,
2495
+ url: '/v1/broadcasts'
2496
+ });
2497
+ };
2498
+
2499
+ /**
2500
+ * Create a broadcast draft
2501
+ */
2502
+ export const createBroadcast = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CreateBroadcastData, ThrowOnError>) => {
2503
+ return (options?.client ?? client).post<CreateBroadcastResponse, CreateBroadcastError, ThrowOnError>({
2504
+ ...options,
2505
+ url: '/v1/broadcasts'
2506
+ });
2507
+ };
2508
+
2509
+ /**
2510
+ * Get broadcast details
2511
+ */
2512
+ export const getBroadcast = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetBroadcastData, ThrowOnError>) => {
2513
+ return (options?.client ?? client).get<GetBroadcastResponse, GetBroadcastError, ThrowOnError>({
2514
+ ...options,
2515
+ url: '/v1/broadcasts/{broadcastId}'
2516
+ });
2517
+ };
2518
+
2519
+ /**
2520
+ * Update a broadcast
2521
+ */
2522
+ export const updateBroadcast = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdateBroadcastData, ThrowOnError>) => {
2523
+ return (options?.client ?? client).patch<UpdateBroadcastResponse, UpdateBroadcastError, ThrowOnError>({
2524
+ ...options,
2525
+ url: '/v1/broadcasts/{broadcastId}'
2526
+ });
2527
+ };
2528
+
2529
+ /**
2530
+ * Delete a broadcast (draft only)
2531
+ */
2532
+ export const deleteBroadcast = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DeleteBroadcastData, ThrowOnError>) => {
2533
+ return (options?.client ?? client).delete<DeleteBroadcastResponse, DeleteBroadcastError, ThrowOnError>({
2534
+ ...options,
2535
+ url: '/v1/broadcasts/{broadcastId}'
2536
+ });
2537
+ };
2538
+
2539
+ /**
2540
+ * Trigger immediate send
2541
+ */
2542
+ export const sendBroadcast = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<SendBroadcastData, ThrowOnError>) => {
2543
+ return (options?.client ?? client).post<SendBroadcastResponse, SendBroadcastError, ThrowOnError>({
2544
+ ...options,
2545
+ url: '/v1/broadcasts/{broadcastId}/send'
2546
+ });
2547
+ };
2548
+
2549
+ /**
2550
+ * Schedule broadcast for later
2551
+ */
2552
+ export const scheduleBroadcast = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ScheduleBroadcastData, ThrowOnError>) => {
2553
+ return (options?.client ?? client).post<ScheduleBroadcastResponse, ScheduleBroadcastError, ThrowOnError>({
2554
+ ...options,
2555
+ url: '/v1/broadcasts/{broadcastId}/schedule'
2556
+ });
2557
+ };
2558
+
2559
+ /**
2560
+ * Cancel a broadcast
2561
+ */
2562
+ export const cancelBroadcast = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CancelBroadcastData, ThrowOnError>) => {
2563
+ return (options?.client ?? client).post<CancelBroadcastResponse, CancelBroadcastError, ThrowOnError>({
2564
+ ...options,
2565
+ url: '/v1/broadcasts/{broadcastId}/cancel'
2566
+ });
2567
+ };
2568
+
2569
+ /**
2570
+ * List broadcast recipients
2571
+ */
2572
+ export const listBroadcastRecipients = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ListBroadcastRecipientsData, ThrowOnError>) => {
2573
+ return (options?.client ?? client).get<ListBroadcastRecipientsResponse, ListBroadcastRecipientsError, ThrowOnError>({
2574
+ ...options,
2575
+ url: '/v1/broadcasts/{broadcastId}/recipients'
2576
+ });
2577
+ };
2578
+
2579
+ /**
2580
+ * Add recipients to a broadcast
2581
+ */
2582
+ export const addBroadcastRecipients = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<AddBroadcastRecipientsData, ThrowOnError>) => {
2583
+ return (options?.client ?? client).post<AddBroadcastRecipientsResponse, AddBroadcastRecipientsError, ThrowOnError>({
2584
+ ...options,
2585
+ url: '/v1/broadcasts/{broadcastId}/recipients'
2586
+ });
2587
+ };
2588
+
2589
+ /**
2590
+ * List sequences
2591
+ */
2592
+ export const listSequences = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<ListSequencesData, ThrowOnError>) => {
2593
+ return (options?.client ?? client).get<ListSequencesResponse, ListSequencesError, ThrowOnError>({
2594
+ ...options,
2595
+ url: '/v1/sequences'
2596
+ });
2597
+ };
2598
+
2599
+ /**
2600
+ * Create a sequence
2601
+ */
2602
+ export const createSequence = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CreateSequenceData, ThrowOnError>) => {
2603
+ return (options?.client ?? client).post<CreateSequenceResponse, CreateSequenceError, ThrowOnError>({
2604
+ ...options,
2605
+ url: '/v1/sequences'
2606
+ });
2607
+ };
2608
+
2609
+ /**
2610
+ * Get sequence with steps
2611
+ */
2612
+ export const getSequence = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetSequenceData, ThrowOnError>) => {
2613
+ return (options?.client ?? client).get<GetSequenceResponse, GetSequenceError, ThrowOnError>({
2614
+ ...options,
2615
+ url: '/v1/sequences/{sequenceId}'
2616
+ });
2617
+ };
2618
+
2619
+ /**
2620
+ * Update a sequence
2621
+ */
2622
+ export const updateSequence = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdateSequenceData, ThrowOnError>) => {
2623
+ return (options?.client ?? client).patch<UpdateSequenceResponse, UpdateSequenceError, ThrowOnError>({
2624
+ ...options,
2625
+ url: '/v1/sequences/{sequenceId}'
2626
+ });
2627
+ };
2628
+
2629
+ /**
2630
+ * Delete a sequence
2631
+ */
2632
+ export const deleteSequence = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DeleteSequenceData, ThrowOnError>) => {
2633
+ return (options?.client ?? client).delete<DeleteSequenceResponse, DeleteSequenceError, ThrowOnError>({
2634
+ ...options,
2635
+ url: '/v1/sequences/{sequenceId}'
2636
+ });
2637
+ };
2638
+
2639
+ /**
2640
+ * Activate a sequence
2641
+ */
2642
+ export const activateSequence = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ActivateSequenceData, ThrowOnError>) => {
2643
+ return (options?.client ?? client).post<ActivateSequenceResponse, ActivateSequenceError, ThrowOnError>({
2644
+ ...options,
2645
+ url: '/v1/sequences/{sequenceId}/activate'
2646
+ });
2647
+ };
2648
+
2649
+ /**
2650
+ * Pause a sequence
2651
+ */
2652
+ export const pauseSequence = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<PauseSequenceData, ThrowOnError>) => {
2653
+ return (options?.client ?? client).post<PauseSequenceResponse, PauseSequenceError, ThrowOnError>({
2654
+ ...options,
2655
+ url: '/v1/sequences/{sequenceId}/pause'
2656
+ });
2657
+ };
2658
+
2659
+ /**
2660
+ * Enroll contacts in a sequence
2661
+ */
2662
+ export const enrollContacts = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<EnrollContactsData, ThrowOnError>) => {
2663
+ return (options?.client ?? client).post<EnrollContactsResponse, EnrollContactsError, ThrowOnError>({
2664
+ ...options,
2665
+ url: '/v1/sequences/{sequenceId}/enroll'
2666
+ });
2667
+ };
2668
+
2669
+ /**
2670
+ * Unenroll a contact from a sequence
2671
+ */
2672
+ export const unenrollContact = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UnenrollContactData, ThrowOnError>) => {
2673
+ return (options?.client ?? client).delete<UnenrollContactResponse, UnenrollContactError, ThrowOnError>({
2674
+ ...options,
2675
+ url: '/v1/sequences/{sequenceId}/enroll/{contactId}'
2676
+ });
2677
+ };
2678
+
2679
+ /**
2680
+ * List enrollments for a sequence
2681
+ */
2682
+ export const listSequenceEnrollments = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ListSequenceEnrollmentsData, ThrowOnError>) => {
2683
+ return (options?.client ?? client).get<ListSequenceEnrollmentsResponse, ListSequenceEnrollmentsError, ThrowOnError>({
2684
+ ...options,
2685
+ url: '/v1/sequences/{sequenceId}/enrollments'
2686
+ });
2687
+ };
2688
+
2689
+ /**
2690
+ * List comment-to-DM automations
2691
+ * List all comment-to-DM automations for a profile. Returns automations with their stats.
2692
+ */
2693
+ export const listCommentAutomations = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<ListCommentAutomationsData, ThrowOnError>) => {
2694
+ return (options?.client ?? client).get<ListCommentAutomationsResponse, ListCommentAutomationsError, ThrowOnError>({
2695
+ ...options,
2696
+ url: '/v1/comment-automations'
2697
+ });
2698
+ };
2699
+
2700
+ /**
2701
+ * Create a comment-to-DM automation
2702
+ * Create a keyword-triggered DM automation on an Instagram or Facebook post.
2703
+ * When someone comments a matching keyword, they automatically receive a DM.
2704
+ * Only one active automation per post is allowed.
2705
+ *
2706
+ */
2707
+ export const createCommentAutomation = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CreateCommentAutomationData, ThrowOnError>) => {
2708
+ return (options?.client ?? client).post<CreateCommentAutomationResponse, CreateCommentAutomationError, ThrowOnError>({
2709
+ ...options,
2710
+ url: '/v1/comment-automations'
2711
+ });
2712
+ };
2713
+
2714
+ /**
2715
+ * Get automation details with recent logs
2716
+ */
2717
+ export const getCommentAutomation = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetCommentAutomationData, ThrowOnError>) => {
2718
+ return (options?.client ?? client).get<GetCommentAutomationResponse, GetCommentAutomationError, ThrowOnError>({
2719
+ ...options,
2720
+ url: '/v1/comment-automations/{automationId}'
2721
+ });
2722
+ };
2723
+
2724
+ /**
2725
+ * Update automation settings
2726
+ */
2727
+ export const updateCommentAutomation = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdateCommentAutomationData, ThrowOnError>) => {
2728
+ return (options?.client ?? client).patch<UpdateCommentAutomationResponse, UpdateCommentAutomationError, ThrowOnError>({
2729
+ ...options,
2730
+ url: '/v1/comment-automations/{automationId}'
2731
+ });
2732
+ };
2733
+
2734
+ /**
2735
+ * Delete automation and all logs
2736
+ */
2737
+ export const deleteCommentAutomation = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DeleteCommentAutomationData, ThrowOnError>) => {
2738
+ return (options?.client ?? client).delete<DeleteCommentAutomationResponse, DeleteCommentAutomationError, ThrowOnError>({
2739
+ ...options,
2740
+ url: '/v1/comment-automations/{automationId}'
2741
+ });
2742
+ };
2743
+
2744
+ /**
2745
+ * List trigger logs for an automation
2746
+ * Paginated list of every comment that triggered this automation, with send status and commenter info.
2747
+ */
2748
+ export const listCommentAutomationLogs = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ListCommentAutomationLogsData, ThrowOnError>) => {
2749
+ return (options?.client ?? client).get<ListCommentAutomationLogsResponse, ListCommentAutomationLogsError, ThrowOnError>({
2750
+ ...options,
2751
+ url: '/v1/comment-automations/{automationId}/logs'
2752
+ });
2299
2753
  };