@getlatedev/node 0.1.42 → 0.1.44

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
@@ -339,6 +339,53 @@ declare class Late {
339
339
  replyToInboxReview: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ReplyToInboxReviewData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ReplyToInboxReviewResponse, unknown, ThrowOnError>;
340
340
  deleteInboxReviewReply: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<DeleteInboxReviewReplyData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<DeleteInboxReviewReplyResponse, unknown, ThrowOnError>;
341
341
  };
342
+ /**
343
+ * whatsapp API
344
+ */
345
+ whatsapp: {
346
+ sendWhatsAppBulk: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<SendWhatsAppBulkData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<SendWhatsAppBulkResponse, unknown, ThrowOnError>;
347
+ getWhatsAppContacts: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetWhatsAppContactsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetWhatsAppContactsResponse, unknown, ThrowOnError>;
348
+ createWhatsAppContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateWhatsAppContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CreateWhatsAppContactResponse, unknown, ThrowOnError>;
349
+ getWhatsAppContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetWhatsAppContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetWhatsAppContactResponse, GetWhatsAppContactError, ThrowOnError>;
350
+ updateWhatsAppContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateWhatsAppContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UpdateWhatsAppContactResponse, UpdateWhatsAppContactError, ThrowOnError>;
351
+ deleteWhatsAppContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<DeleteWhatsAppContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<DeleteWhatsAppContactResponse, DeleteWhatsAppContactError, ThrowOnError>;
352
+ importWhatsAppContacts: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ImportWhatsAppContactsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ImportWhatsAppContactsResponse, unknown, ThrowOnError>;
353
+ bulkUpdateWhatsAppContacts: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<BulkUpdateWhatsAppContactsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<BulkUpdateWhatsAppContactsResponse, unknown, ThrowOnError>;
354
+ bulkDeleteWhatsAppContacts: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<BulkDeleteWhatsAppContactsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<BulkDeleteWhatsAppContactsResponse, unknown, ThrowOnError>;
355
+ getWhatsAppGroups: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetWhatsAppGroupsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetWhatsAppGroupsResponse, unknown, ThrowOnError>;
356
+ renameWhatsAppGroup: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<RenameWhatsAppGroupData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<RenameWhatsAppGroupResponse, unknown, ThrowOnError>;
357
+ deleteWhatsAppGroup: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<DeleteWhatsAppGroupData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<DeleteWhatsAppGroupResponse, unknown, ThrowOnError>;
358
+ getWhatsAppTemplates: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetWhatsAppTemplatesData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetWhatsAppTemplatesResponse, unknown, ThrowOnError>;
359
+ createWhatsAppTemplate: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateWhatsAppTemplateData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CreateWhatsAppTemplateResponse, unknown, ThrowOnError>;
360
+ getWhatsAppTemplate: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetWhatsAppTemplateData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetWhatsAppTemplateResponse, unknown, ThrowOnError>;
361
+ updateWhatsAppTemplate: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateWhatsAppTemplateData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UpdateWhatsAppTemplateResponse, unknown, ThrowOnError>;
362
+ deleteWhatsAppTemplate: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<DeleteWhatsAppTemplateData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<DeleteWhatsAppTemplateResponse, unknown, ThrowOnError>;
363
+ getWhatsAppBroadcasts: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetWhatsAppBroadcastsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetWhatsAppBroadcastsResponse, unknown, ThrowOnError>;
364
+ createWhatsAppBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateWhatsAppBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CreateWhatsAppBroadcastResponse, unknown, ThrowOnError>;
365
+ getWhatsAppBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetWhatsAppBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetWhatsAppBroadcastResponse, GetWhatsAppBroadcastError, ThrowOnError>;
366
+ deleteWhatsAppBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<DeleteWhatsAppBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<DeleteWhatsAppBroadcastResponse, unknown, ThrowOnError>;
367
+ sendWhatsAppBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<SendWhatsAppBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<SendWhatsAppBroadcastResponse, unknown, ThrowOnError>;
368
+ scheduleWhatsAppBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ScheduleWhatsAppBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ScheduleWhatsAppBroadcastResponse, unknown, ThrowOnError>;
369
+ cancelWhatsAppBroadcastSchedule: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CancelWhatsAppBroadcastScheduleData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CancelWhatsAppBroadcastScheduleResponse, unknown, ThrowOnError>;
370
+ getWhatsAppBroadcastRecipients: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetWhatsAppBroadcastRecipientsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetWhatsAppBroadcastRecipientsResponse, GetWhatsAppBroadcastRecipientsError, ThrowOnError>;
371
+ addWhatsAppBroadcastRecipients: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<AddWhatsAppBroadcastRecipientsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<AddWhatsAppBroadcastRecipientsResponse, unknown, ThrowOnError>;
372
+ removeWhatsAppBroadcastRecipients: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<RemoveWhatsAppBroadcastRecipientsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<RemoveWhatsAppBroadcastRecipientsResponse, unknown, ThrowOnError>;
373
+ getWhatsAppBusinessProfile: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetWhatsAppBusinessProfileData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetWhatsAppBusinessProfileResponse, unknown, ThrowOnError>;
374
+ updateWhatsAppBusinessProfile: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateWhatsAppBusinessProfileData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UpdateWhatsAppBusinessProfileResponse, unknown, ThrowOnError>;
375
+ };
376
+ /**
377
+ * whatsappphonenumbers API
378
+ */
379
+ whatsappphonenumbers: {
380
+ getWhatsAppPhoneNumbers: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<GetWhatsAppPhoneNumbersData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetWhatsAppPhoneNumbersResponse, GetWhatsAppPhoneNumbersError, ThrowOnError>;
381
+ searchAvailableWhatsAppNumbers: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<SearchAvailableWhatsAppNumbersData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<SearchAvailableWhatsAppNumbersResponse, unknown, ThrowOnError>;
382
+ getPreverifiedWhatsAppNumbers: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetPreverifiedWhatsAppNumbersData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetPreverifiedWhatsAppNumbersResponse, unknown, ThrowOnError>;
383
+ purchaseWhatsAppPhoneNumber: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<PurchaseWhatsAppPhoneNumberData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<PurchaseWhatsAppPhoneNumberResponse, unknown, ThrowOnError>;
384
+ getWhatsAppPhoneNumber: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetWhatsAppPhoneNumberData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetWhatsAppPhoneNumberResponse, GetWhatsAppPhoneNumberError, ThrowOnError>;
385
+ releaseWhatsAppPhoneNumber: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ReleaseWhatsAppPhoneNumberData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ReleaseWhatsAppPhoneNumberResponse, unknown, ThrowOnError>;
386
+ requestWhatsAppVerificationCode: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<RequestWhatsAppVerificationCodeData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<RequestWhatsAppVerificationCodeResponse, unknown, ThrowOnError>;
387
+ verifyWhatsAppPhoneNumber: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<VerifyWhatsAppPhoneNumberData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<VerifyWhatsAppPhoneNumberResponse, unknown, ThrowOnError>;
388
+ };
342
389
  /**
343
390
  * Create a new Late API client.
344
391
  *
@@ -1650,9 +1697,13 @@ type TranscriptSegment = {
1650
1697
  };
1651
1698
  type TwitterPlatformData = {
1652
1699
  /**
1653
- * Controls who can reply to the tweet. "following" allows only people you follow, "mentionedUsers" allows only mentioned users, "subscribers" allows only subscribers. Omit for default (everyone can reply). For threads, applies to the first tweet only.
1700
+ * ID of an existing tweet to reply to. The published tweet will appear as a reply in that tweet's thread. For threads, only the first tweet replies to the target; subsequent tweets chain normally.
1701
+ */
1702
+ replyToTweetId?: string;
1703
+ /**
1704
+ * Controls who can reply to the tweet. "following" allows only people you follow, "mentionedUsers" allows only mentioned users, "subscribers" allows only subscribers, "verified" allows only verified users. Omit for default (everyone can reply). For threads, applies to the first tweet only. Cannot be combined with replyToTweetId.
1654
1705
  */
1655
- replySettings?: 'following' | 'mentionedUsers' | 'subscribers';
1706
+ replySettings?: 'following' | 'mentionedUsers' | 'subscribers' | 'verified';
1656
1707
  /**
1657
1708
  * Sequence of tweets in a thread. First item is the root tweet.
1658
1709
  */
@@ -1662,9 +1713,9 @@ type TwitterPlatformData = {
1662
1713
  }>;
1663
1714
  };
1664
1715
  /**
1665
- * Controls who can reply to the tweet. "following" allows only people you follow, "mentionedUsers" allows only mentioned users, "subscribers" allows only subscribers. Omit for default (everyone can reply). For threads, applies to the first tweet only.
1716
+ * Controls who can reply to the tweet. "following" allows only people you follow, "mentionedUsers" allows only mentioned users, "subscribers" allows only subscribers, "verified" allows only verified users. Omit for default (everyone can reply). For threads, applies to the first tweet only. Cannot be combined with replyToTweetId.
1666
1717
  */
1667
- type replySettings = 'following' | 'mentionedUsers' | 'subscribers';
1718
+ type replySettings = 'following' | 'mentionedUsers' | 'subscribers' | 'verified';
1668
1719
  type UploadedFile = {
1669
1720
  type?: 'image' | 'video' | 'document';
1670
1721
  url?: string;
@@ -6660,5 +6711,1298 @@ type DeleteInboxReviewReplyResponse = ({
6660
6711
  type DeleteInboxReviewReplyError = ({
6661
6712
  error?: string;
6662
6713
  } | unknown);
6714
+ type SendWhatsAppBulkData = {
6715
+ body: {
6716
+ /**
6717
+ * WhatsApp social account ID
6718
+ */
6719
+ accountId: string;
6720
+ /**
6721
+ * List of recipients (max 100)
6722
+ */
6723
+ recipients: Array<{
6724
+ /**
6725
+ * Recipient phone number in E.164 format
6726
+ */
6727
+ phone: string;
6728
+ /**
6729
+ * Per-recipient template variables keyed by index (e.g., "1", "2")
6730
+ */
6731
+ variables?: {
6732
+ [key: string]: (string);
6733
+ };
6734
+ }>;
6735
+ template: {
6736
+ /**
6737
+ * Template name
6738
+ */
6739
+ name: string;
6740
+ /**
6741
+ * Template language code
6742
+ */
6743
+ language: string;
6744
+ /**
6745
+ * Base template components
6746
+ */
6747
+ components?: Array<{
6748
+ [key: string]: unknown;
6749
+ }>;
6750
+ };
6751
+ };
6752
+ };
6753
+ type SendWhatsAppBulkResponse = ({
6754
+ success?: boolean;
6755
+ summary?: {
6756
+ total?: number;
6757
+ sent?: number;
6758
+ failed?: number;
6759
+ };
6760
+ results?: Array<{
6761
+ phone?: string;
6762
+ success?: boolean;
6763
+ messageId?: string;
6764
+ error?: string;
6765
+ }>;
6766
+ });
6767
+ type SendWhatsAppBulkError = (unknown | {
6768
+ error?: string;
6769
+ });
6770
+ type GetWhatsAppContactsData = {
6771
+ query: {
6772
+ /**
6773
+ * WhatsApp social account ID
6774
+ */
6775
+ accountId: string;
6776
+ /**
6777
+ * Filter by group
6778
+ */
6779
+ group?: string;
6780
+ /**
6781
+ * Maximum results (default 50)
6782
+ */
6783
+ limit?: number;
6784
+ /**
6785
+ * Filter by opt-in status
6786
+ */
6787
+ optedIn?: 'true' | 'false';
6788
+ /**
6789
+ * Search contacts by name, phone, email, or company
6790
+ */
6791
+ search?: string;
6792
+ /**
6793
+ * Offset for pagination
6794
+ */
6795
+ skip?: number;
6796
+ /**
6797
+ * Filter by tag
6798
+ */
6799
+ tag?: string;
6800
+ };
6801
+ };
6802
+ type GetWhatsAppContactsResponse = ({
6803
+ success?: boolean;
6804
+ contacts?: Array<{
6805
+ id?: string;
6806
+ phone?: string;
6807
+ waId?: string;
6808
+ name?: string;
6809
+ email?: string;
6810
+ company?: string;
6811
+ tags?: Array<(string)>;
6812
+ groups?: Array<(string)>;
6813
+ isOptedIn?: boolean;
6814
+ lastMessageSentAt?: string;
6815
+ lastMessageReceivedAt?: string;
6816
+ messagesSentCount?: number;
6817
+ messagesReceivedCount?: number;
6818
+ customFields?: {
6819
+ [key: string]: unknown;
6820
+ };
6821
+ notes?: string;
6822
+ createdAt?: string;
6823
+ }>;
6824
+ filters?: {
6825
+ tags?: Array<(string)>;
6826
+ groups?: Array<(string)>;
6827
+ };
6828
+ pagination?: {
6829
+ total?: number;
6830
+ limit?: number;
6831
+ skip?: number;
6832
+ hasMore?: boolean;
6833
+ };
6834
+ });
6835
+ type GetWhatsAppContactsError = (unknown | {
6836
+ error?: string;
6837
+ });
6838
+ type CreateWhatsAppContactData = {
6839
+ body: {
6840
+ /**
6841
+ * WhatsApp social account ID
6842
+ */
6843
+ accountId: string;
6844
+ /**
6845
+ * Phone number in E.164 format
6846
+ */
6847
+ phone: string;
6848
+ /**
6849
+ * Contact name
6850
+ */
6851
+ name: string;
6852
+ /**
6853
+ * Contact email
6854
+ */
6855
+ email?: string;
6856
+ /**
6857
+ * Company name
6858
+ */
6859
+ company?: string;
6860
+ /**
6861
+ * Tags for categorization
6862
+ */
6863
+ tags?: Array<(string)>;
6864
+ /**
6865
+ * Groups the contact belongs to
6866
+ */
6867
+ groups?: Array<(string)>;
6868
+ /**
6869
+ * Whether the contact has opted in to receive messages
6870
+ */
6871
+ isOptedIn?: boolean;
6872
+ /**
6873
+ * Custom key-value fields
6874
+ */
6875
+ customFields?: {
6876
+ [key: string]: (string);
6877
+ };
6878
+ /**
6879
+ * Notes about the contact
6880
+ */
6881
+ notes?: string;
6882
+ };
6883
+ };
6884
+ type CreateWhatsAppContactResponse = ({
6885
+ success?: boolean;
6886
+ contact?: {
6887
+ id?: string;
6888
+ phone?: string;
6889
+ name?: string;
6890
+ email?: string;
6891
+ company?: string;
6892
+ tags?: Array<(string)>;
6893
+ groups?: Array<(string)>;
6894
+ isOptedIn?: boolean;
6895
+ createdAt?: string;
6896
+ };
6897
+ });
6898
+ type CreateWhatsAppContactError = (unknown | {
6899
+ error?: string;
6900
+ });
6901
+ type GetWhatsAppContactData = {
6902
+ path: {
6903
+ /**
6904
+ * Contact ID
6905
+ */
6906
+ contactId: string;
6907
+ };
6908
+ };
6909
+ type GetWhatsAppContactResponse = ({
6910
+ success?: boolean;
6911
+ contact?: {
6912
+ id?: string;
6913
+ phone?: string;
6914
+ waId?: string;
6915
+ name?: string;
6916
+ email?: string;
6917
+ company?: string;
6918
+ tags?: Array<(string)>;
6919
+ groups?: Array<(string)>;
6920
+ isOptedIn?: boolean;
6921
+ optInDate?: string;
6922
+ optOutDate?: string;
6923
+ isBlocked?: boolean;
6924
+ lastMessageSentAt?: string;
6925
+ lastMessageReceivedAt?: string;
6926
+ messagesSentCount?: number;
6927
+ messagesReceivedCount?: number;
6928
+ customFields?: {
6929
+ [key: string]: unknown;
6930
+ };
6931
+ notes?: string;
6932
+ createdAt?: string;
6933
+ updatedAt?: string;
6934
+ };
6935
+ });
6936
+ type GetWhatsAppContactError = ({
6937
+ error?: string;
6938
+ });
6939
+ type UpdateWhatsAppContactData = {
6940
+ body: {
6941
+ /**
6942
+ * Contact name
6943
+ */
6944
+ name?: string;
6945
+ /**
6946
+ * Contact email
6947
+ */
6948
+ email?: string;
6949
+ /**
6950
+ * Company name
6951
+ */
6952
+ company?: string;
6953
+ /**
6954
+ * Tags (replaces existing)
6955
+ */
6956
+ tags?: Array<(string)>;
6957
+ /**
6958
+ * Groups (replaces existing)
6959
+ */
6960
+ groups?: Array<(string)>;
6961
+ /**
6962
+ * Opt-in status (changes are timestamped)
6963
+ */
6964
+ isOptedIn?: boolean;
6965
+ /**
6966
+ * Block status
6967
+ */
6968
+ isBlocked?: boolean;
6969
+ /**
6970
+ * Custom fields to merge (set value to null to remove a field)
6971
+ */
6972
+ customFields?: {
6973
+ [key: string]: ((string) | null);
6974
+ };
6975
+ /**
6976
+ * Notes about the contact
6977
+ */
6978
+ notes?: string;
6979
+ };
6980
+ path: {
6981
+ /**
6982
+ * Contact ID
6983
+ */
6984
+ contactId: string;
6985
+ };
6986
+ };
6987
+ type UpdateWhatsAppContactResponse = ({
6988
+ success?: boolean;
6989
+ contact?: {
6990
+ id?: string;
6991
+ phone?: string;
6992
+ name?: string;
6993
+ email?: string;
6994
+ company?: string;
6995
+ tags?: Array<(string)>;
6996
+ groups?: Array<(string)>;
6997
+ isOptedIn?: boolean;
6998
+ isBlocked?: boolean;
6999
+ customFields?: {
7000
+ [key: string]: unknown;
7001
+ };
7002
+ notes?: string;
7003
+ updatedAt?: string;
7004
+ };
7005
+ });
7006
+ type UpdateWhatsAppContactError = ({
7007
+ error?: string;
7008
+ });
7009
+ type DeleteWhatsAppContactData = {
7010
+ path: {
7011
+ /**
7012
+ * Contact ID
7013
+ */
7014
+ contactId: string;
7015
+ };
7016
+ };
7017
+ type DeleteWhatsAppContactResponse = ({
7018
+ success?: boolean;
7019
+ message?: string;
7020
+ });
7021
+ type DeleteWhatsAppContactError = ({
7022
+ error?: string;
7023
+ });
7024
+ type ImportWhatsAppContactsData = {
7025
+ body: {
7026
+ /**
7027
+ * WhatsApp social account ID
7028
+ */
7029
+ accountId: string;
7030
+ /**
7031
+ * Contacts to import (max 1000)
7032
+ */
7033
+ contacts: Array<{
7034
+ /**
7035
+ * Phone number in E.164 format
7036
+ */
7037
+ phone: string;
7038
+ /**
7039
+ * Contact name
7040
+ */
7041
+ name: string;
7042
+ email?: string;
7043
+ company?: string;
7044
+ tags?: Array<(string)>;
7045
+ groups?: Array<(string)>;
7046
+ customFields?: {
7047
+ [key: string]: (string);
7048
+ };
7049
+ notes?: string;
7050
+ }>;
7051
+ /**
7052
+ * Tags applied to all imported contacts
7053
+ */
7054
+ defaultTags?: Array<(string)>;
7055
+ /**
7056
+ * Groups applied to all imported contacts
7057
+ */
7058
+ defaultGroups?: Array<(string)>;
7059
+ /**
7060
+ * Skip contacts with existing phone numbers
7061
+ */
7062
+ skipDuplicates?: boolean;
7063
+ };
7064
+ };
7065
+ type ImportWhatsAppContactsResponse = ({
7066
+ success?: boolean;
7067
+ summary?: {
7068
+ total?: number;
7069
+ created?: number;
7070
+ skipped?: number;
7071
+ failed?: number;
7072
+ };
7073
+ results?: Array<{
7074
+ phone?: string;
7075
+ name?: string;
7076
+ success?: boolean;
7077
+ contactId?: string;
7078
+ error?: string;
7079
+ }>;
7080
+ });
7081
+ type ImportWhatsAppContactsError = (unknown | {
7082
+ error?: string;
7083
+ });
7084
+ type BulkUpdateWhatsAppContactsData = {
7085
+ body: {
7086
+ /**
7087
+ * Bulk action to perform
7088
+ */
7089
+ action: 'addTags' | 'removeTags' | 'addGroups' | 'removeGroups' | 'optIn' | 'optOut' | 'block' | 'unblock';
7090
+ /**
7091
+ * Contact IDs to update (max 500)
7092
+ */
7093
+ contactIds: Array<(string)>;
7094
+ /**
7095
+ * Tags to add or remove (required for addTags/removeTags)
7096
+ */
7097
+ tags?: Array<(string)>;
7098
+ /**
7099
+ * Groups to add or remove (required for addGroups/removeGroups)
7100
+ */
7101
+ groups?: Array<(string)>;
7102
+ };
7103
+ };
7104
+ type BulkUpdateWhatsAppContactsResponse = ({
7105
+ success?: boolean;
7106
+ action?: string;
7107
+ /**
7108
+ * Number of contacts modified
7109
+ */
7110
+ modified?: number;
7111
+ /**
7112
+ * Number of contacts matched
7113
+ */
7114
+ matched?: number;
7115
+ });
7116
+ type BulkUpdateWhatsAppContactsError = (unknown | {
7117
+ error?: string;
7118
+ });
7119
+ type BulkDeleteWhatsAppContactsData = {
7120
+ body: {
7121
+ /**
7122
+ * Contact IDs to delete (max 500)
7123
+ */
7124
+ contactIds: Array<(string)>;
7125
+ };
7126
+ };
7127
+ type BulkDeleteWhatsAppContactsResponse = ({
7128
+ success?: boolean;
7129
+ /**
7130
+ * Number of contacts deleted
7131
+ */
7132
+ deleted?: number;
7133
+ });
7134
+ type BulkDeleteWhatsAppContactsError = (unknown | {
7135
+ error?: string;
7136
+ });
7137
+ type GetWhatsAppGroupsData = {
7138
+ query: {
7139
+ /**
7140
+ * WhatsApp social account ID
7141
+ */
7142
+ accountId: string;
7143
+ };
7144
+ };
7145
+ type GetWhatsAppGroupsResponse = ({
7146
+ success?: boolean;
7147
+ groups?: Array<{
7148
+ name?: string;
7149
+ /**
7150
+ * Total contacts in this group
7151
+ */
7152
+ totalCount?: number;
7153
+ /**
7154
+ * Opted-in contacts in this group
7155
+ */
7156
+ optedInCount?: number;
7157
+ }>;
7158
+ summary?: {
7159
+ totalContacts?: number;
7160
+ optedInContacts?: number;
7161
+ groupCount?: number;
7162
+ };
7163
+ });
7164
+ type GetWhatsAppGroupsError = (unknown | {
7165
+ error?: string;
7166
+ });
7167
+ type RenameWhatsAppGroupData = {
7168
+ body: {
7169
+ /**
7170
+ * WhatsApp social account ID
7171
+ */
7172
+ accountId: string;
7173
+ /**
7174
+ * Current group name
7175
+ */
7176
+ oldName: string;
7177
+ /**
7178
+ * New group name
7179
+ */
7180
+ newName: string;
7181
+ };
7182
+ };
7183
+ type RenameWhatsAppGroupResponse = ({
7184
+ success?: boolean;
7185
+ message?: string;
7186
+ /**
7187
+ * Number of contacts updated
7188
+ */
7189
+ modified?: number;
7190
+ });
7191
+ type RenameWhatsAppGroupError = (unknown | {
7192
+ error?: string;
7193
+ });
7194
+ type DeleteWhatsAppGroupData = {
7195
+ body: {
7196
+ /**
7197
+ * WhatsApp social account ID
7198
+ */
7199
+ accountId: string;
7200
+ /**
7201
+ * Group name to delete
7202
+ */
7203
+ groupName: string;
7204
+ };
7205
+ };
7206
+ type DeleteWhatsAppGroupResponse = ({
7207
+ success?: boolean;
7208
+ message?: string;
7209
+ /**
7210
+ * Number of contacts updated
7211
+ */
7212
+ modified?: number;
7213
+ });
7214
+ type DeleteWhatsAppGroupError = (unknown | {
7215
+ error?: string;
7216
+ });
7217
+ type GetWhatsAppTemplatesData = {
7218
+ query: {
7219
+ /**
7220
+ * WhatsApp social account ID
7221
+ */
7222
+ accountId: string;
7223
+ };
7224
+ };
7225
+ type GetWhatsAppTemplatesResponse = ({
7226
+ success?: boolean;
7227
+ templates?: Array<{
7228
+ /**
7229
+ * WhatsApp template ID
7230
+ */
7231
+ id?: string;
7232
+ name?: string;
7233
+ status?: 'APPROVED' | 'PENDING' | 'REJECTED';
7234
+ category?: 'AUTHENTICATION' | 'MARKETING' | 'UTILITY';
7235
+ language?: string;
7236
+ components?: Array<{
7237
+ [key: string]: unknown;
7238
+ }>;
7239
+ }>;
7240
+ });
7241
+ type GetWhatsAppTemplatesError = (unknown | {
7242
+ error?: string;
7243
+ });
7244
+ type CreateWhatsAppTemplateData = {
7245
+ body: {
7246
+ /**
7247
+ * WhatsApp social account ID
7248
+ */
7249
+ accountId: string;
7250
+ /**
7251
+ * Template name (lowercase, letters/numbers/underscores, must start with a letter)
7252
+ */
7253
+ name: string;
7254
+ /**
7255
+ * Template category
7256
+ */
7257
+ category: 'AUTHENTICATION' | 'MARKETING' | 'UTILITY';
7258
+ /**
7259
+ * Template language code (e.g., en_US)
7260
+ */
7261
+ language: string;
7262
+ /**
7263
+ * Template components (header, body, footer, buttons)
7264
+ */
7265
+ components: Array<{
7266
+ [key: string]: unknown;
7267
+ }>;
7268
+ };
7269
+ };
7270
+ type CreateWhatsAppTemplateResponse = ({
7271
+ success?: boolean;
7272
+ template?: {
7273
+ id?: string;
7274
+ name?: string;
7275
+ status?: string;
7276
+ category?: string;
7277
+ language?: string;
7278
+ };
7279
+ });
7280
+ type CreateWhatsAppTemplateError = (unknown | {
7281
+ error?: string;
7282
+ });
7283
+ type GetWhatsAppTemplateData = {
7284
+ path: {
7285
+ /**
7286
+ * Template name
7287
+ */
7288
+ templateName: string;
7289
+ };
7290
+ query: {
7291
+ /**
7292
+ * WhatsApp social account ID
7293
+ */
7294
+ accountId: string;
7295
+ };
7296
+ };
7297
+ type GetWhatsAppTemplateResponse = ({
7298
+ success?: boolean;
7299
+ template?: {
7300
+ id?: string;
7301
+ name?: string;
7302
+ status?: string;
7303
+ category?: string;
7304
+ language?: string;
7305
+ components?: Array<{
7306
+ [key: string]: unknown;
7307
+ }>;
7308
+ };
7309
+ });
7310
+ type GetWhatsAppTemplateError = (unknown | {
7311
+ error?: string;
7312
+ });
7313
+ type UpdateWhatsAppTemplateData = {
7314
+ body: {
7315
+ /**
7316
+ * WhatsApp social account ID
7317
+ */
7318
+ accountId: string;
7319
+ /**
7320
+ * Updated template components
7321
+ */
7322
+ components: Array<{
7323
+ [key: string]: unknown;
7324
+ }>;
7325
+ };
7326
+ path: {
7327
+ /**
7328
+ * Template name
7329
+ */
7330
+ templateName: string;
7331
+ };
7332
+ };
7333
+ type UpdateWhatsAppTemplateResponse = ({
7334
+ success?: boolean;
7335
+ template?: {
7336
+ id?: string;
7337
+ name?: string;
7338
+ status?: string;
7339
+ };
7340
+ });
7341
+ type UpdateWhatsAppTemplateError = (unknown | {
7342
+ error?: string;
7343
+ });
7344
+ type DeleteWhatsAppTemplateData = {
7345
+ path: {
7346
+ /**
7347
+ * Template name
7348
+ */
7349
+ templateName: string;
7350
+ };
7351
+ query: {
7352
+ /**
7353
+ * WhatsApp social account ID
7354
+ */
7355
+ accountId: string;
7356
+ };
7357
+ };
7358
+ type DeleteWhatsAppTemplateResponse = ({
7359
+ success?: boolean;
7360
+ message?: string;
7361
+ });
7362
+ type DeleteWhatsAppTemplateError = (unknown | {
7363
+ error?: string;
7364
+ });
7365
+ type GetWhatsAppBroadcastsData = {
7366
+ query: {
7367
+ /**
7368
+ * WhatsApp social account ID
7369
+ */
7370
+ accountId: string;
7371
+ /**
7372
+ * Maximum results (default 50)
7373
+ */
7374
+ limit?: number;
7375
+ /**
7376
+ * Offset for pagination
7377
+ */
7378
+ skip?: number;
7379
+ /**
7380
+ * Filter by broadcast status
7381
+ */
7382
+ status?: 'draft' | 'scheduled' | 'sending' | 'completed' | 'failed' | 'cancelled';
7383
+ };
7384
+ };
7385
+ type GetWhatsAppBroadcastsResponse = ({
7386
+ success?: boolean;
7387
+ broadcasts?: Array<{
7388
+ id?: string;
7389
+ name?: string;
7390
+ description?: string;
7391
+ template?: {
7392
+ name?: string;
7393
+ language?: string;
7394
+ };
7395
+ status?: 'draft' | 'scheduled' | 'sending' | 'completed' | 'failed' | 'cancelled';
7396
+ recipientCount?: number;
7397
+ scheduledAt?: string;
7398
+ startedAt?: string;
7399
+ completedAt?: string;
7400
+ sentCount?: number;
7401
+ deliveredCount?: number;
7402
+ readCount?: number;
7403
+ failedCount?: number;
7404
+ createdAt?: string;
7405
+ }>;
7406
+ pagination?: {
7407
+ total?: number;
7408
+ limit?: number;
7409
+ skip?: number;
7410
+ hasMore?: boolean;
7411
+ };
7412
+ });
7413
+ type GetWhatsAppBroadcastsError = (unknown | {
7414
+ error?: string;
7415
+ });
7416
+ type CreateWhatsAppBroadcastData = {
7417
+ body: {
7418
+ /**
7419
+ * WhatsApp social account ID
7420
+ */
7421
+ accountId: string;
7422
+ /**
7423
+ * Broadcast name
7424
+ */
7425
+ name: string;
7426
+ /**
7427
+ * Broadcast description
7428
+ */
7429
+ description?: string;
7430
+ template: {
7431
+ /**
7432
+ * Template name
7433
+ */
7434
+ name: string;
7435
+ /**
7436
+ * Template language code
7437
+ */
7438
+ language: string;
7439
+ /**
7440
+ * Base template components
7441
+ */
7442
+ components?: Array<{
7443
+ [key: string]: unknown;
7444
+ }>;
7445
+ };
7446
+ /**
7447
+ * Initial recipients (optional)
7448
+ */
7449
+ recipients?: Array<{
7450
+ /**
7451
+ * Phone number in E.164 format
7452
+ */
7453
+ phone: string;
7454
+ name?: string;
7455
+ /**
7456
+ * Per-recipient template variables
7457
+ */
7458
+ variables?: {
7459
+ [key: string]: (string);
7460
+ };
7461
+ }>;
7462
+ };
7463
+ };
7464
+ type CreateWhatsAppBroadcastResponse = ({
7465
+ success?: boolean;
7466
+ broadcast?: {
7467
+ id?: string;
7468
+ name?: string;
7469
+ description?: string;
7470
+ template?: {
7471
+ [key: string]: unknown;
7472
+ };
7473
+ /**
7474
+ * Always "draft" for new broadcasts
7475
+ */
7476
+ status?: string;
7477
+ recipientCount?: number;
7478
+ createdAt?: string;
7479
+ };
7480
+ });
7481
+ type CreateWhatsAppBroadcastError = (unknown | {
7482
+ error?: string;
7483
+ });
7484
+ type GetWhatsAppBroadcastData = {
7485
+ path: {
7486
+ /**
7487
+ * Broadcast ID
7488
+ */
7489
+ broadcastId: string;
7490
+ };
7491
+ };
7492
+ type GetWhatsAppBroadcastResponse = ({
7493
+ success?: boolean;
7494
+ broadcast?: {
7495
+ id?: string;
7496
+ name?: string;
7497
+ description?: string;
7498
+ template?: {
7499
+ [key: string]: unknown;
7500
+ };
7501
+ status?: 'draft' | 'scheduled' | 'sending' | 'completed' | 'failed' | 'cancelled';
7502
+ recipientCount?: number;
7503
+ scheduledAt?: string;
7504
+ startedAt?: string;
7505
+ completedAt?: string;
7506
+ sentCount?: number;
7507
+ deliveredCount?: number;
7508
+ readCount?: number;
7509
+ failedCount?: number;
7510
+ createdAt?: string;
7511
+ updatedAt?: string;
7512
+ };
7513
+ });
7514
+ type GetWhatsAppBroadcastError = ({
7515
+ error?: string;
7516
+ });
7517
+ type DeleteWhatsAppBroadcastData = {
7518
+ path: {
7519
+ /**
7520
+ * Broadcast ID
7521
+ */
7522
+ broadcastId: string;
7523
+ };
7524
+ };
7525
+ type DeleteWhatsAppBroadcastResponse = ({
7526
+ success?: boolean;
7527
+ message?: string;
7528
+ });
7529
+ type DeleteWhatsAppBroadcastError = (unknown | {
7530
+ error?: string;
7531
+ });
7532
+ type SendWhatsAppBroadcastData = {
7533
+ path: {
7534
+ /**
7535
+ * Broadcast ID
7536
+ */
7537
+ broadcastId: string;
7538
+ };
7539
+ };
7540
+ type SendWhatsAppBroadcastResponse = ({
7541
+ success?: boolean;
7542
+ /**
7543
+ * Final broadcast status
7544
+ */
7545
+ status?: 'completed' | 'failed';
7546
+ /**
7547
+ * Number of messages sent successfully
7548
+ */
7549
+ sent?: number;
7550
+ /**
7551
+ * Number of messages that failed
7552
+ */
7553
+ failed?: number;
7554
+ /**
7555
+ * Total recipient count
7556
+ */
7557
+ total?: number;
7558
+ });
7559
+ type SendWhatsAppBroadcastError = (unknown | {
7560
+ error?: string;
7561
+ });
7562
+ type ScheduleWhatsAppBroadcastData = {
7563
+ body: {
7564
+ /**
7565
+ * ISO 8601 date-time for sending (must be in the future, max 30 days)
7566
+ */
7567
+ scheduledAt: string;
7568
+ };
7569
+ path: {
7570
+ /**
7571
+ * Broadcast ID
7572
+ */
7573
+ broadcastId: string;
7574
+ };
7575
+ };
7576
+ type ScheduleWhatsAppBroadcastResponse = ({
7577
+ success?: boolean;
7578
+ broadcast?: {
7579
+ id?: string;
7580
+ /**
7581
+ * "scheduled"
7582
+ */
7583
+ status?: string;
7584
+ scheduledAt?: string;
7585
+ };
7586
+ });
7587
+ type ScheduleWhatsAppBroadcastError = (unknown | {
7588
+ error?: string;
7589
+ });
7590
+ type CancelWhatsAppBroadcastScheduleData = {
7591
+ path: {
7592
+ /**
7593
+ * Broadcast ID
7594
+ */
7595
+ broadcastId: string;
7596
+ };
7597
+ };
7598
+ type CancelWhatsAppBroadcastScheduleResponse = ({
7599
+ success?: boolean;
7600
+ broadcast?: {
7601
+ id?: string;
7602
+ /**
7603
+ * "draft"
7604
+ */
7605
+ status?: string;
7606
+ };
7607
+ message?: string;
7608
+ });
7609
+ type CancelWhatsAppBroadcastScheduleError = (unknown | {
7610
+ error?: string;
7611
+ });
7612
+ type GetWhatsAppBroadcastRecipientsData = {
7613
+ path: {
7614
+ /**
7615
+ * Broadcast ID
7616
+ */
7617
+ broadcastId: string;
7618
+ };
7619
+ query?: {
7620
+ /**
7621
+ * Maximum results (default 100)
7622
+ */
7623
+ limit?: number;
7624
+ /**
7625
+ * Offset for pagination
7626
+ */
7627
+ skip?: number;
7628
+ /**
7629
+ * Filter by recipient delivery status
7630
+ */
7631
+ status?: 'pending' | 'sent' | 'delivered' | 'read' | 'failed';
7632
+ };
7633
+ };
7634
+ type GetWhatsAppBroadcastRecipientsResponse = ({
7635
+ success?: boolean;
7636
+ recipients?: Array<{
7637
+ phone?: string;
7638
+ name?: string;
7639
+ variables?: {
7640
+ [key: string]: unknown;
7641
+ };
7642
+ status?: 'pending' | 'sent' | 'delivered' | 'read' | 'failed';
7643
+ messageId?: string;
7644
+ error?: string;
7645
+ sentAt?: string;
7646
+ deliveredAt?: string;
7647
+ readAt?: string;
7648
+ }>;
7649
+ pagination?: {
7650
+ total?: number;
7651
+ limit?: number;
7652
+ skip?: number;
7653
+ hasMore?: boolean;
7654
+ };
7655
+ summary?: {
7656
+ total?: number;
7657
+ pending?: number;
7658
+ sent?: number;
7659
+ delivered?: number;
7660
+ read?: number;
7661
+ failed?: number;
7662
+ };
7663
+ });
7664
+ type GetWhatsAppBroadcastRecipientsError = ({
7665
+ error?: string;
7666
+ });
7667
+ type AddWhatsAppBroadcastRecipientsData = {
7668
+ body: {
7669
+ /**
7670
+ * Recipients to add (max 1000)
7671
+ */
7672
+ recipients: Array<{
7673
+ /**
7674
+ * Phone number in E.164 format
7675
+ */
7676
+ phone: string;
7677
+ name?: string;
7678
+ variables?: {
7679
+ [key: string]: (string);
7680
+ };
7681
+ }>;
7682
+ };
7683
+ path: {
7684
+ /**
7685
+ * Broadcast ID
7686
+ */
7687
+ broadcastId: string;
7688
+ };
7689
+ };
7690
+ type AddWhatsAppBroadcastRecipientsResponse = ({
7691
+ success?: boolean;
7692
+ /**
7693
+ * Number of new recipients added
7694
+ */
7695
+ added?: number;
7696
+ /**
7697
+ * Number of duplicate phone numbers skipped
7698
+ */
7699
+ duplicates?: number;
7700
+ /**
7701
+ * Total recipient count after addition
7702
+ */
7703
+ totalRecipients?: number;
7704
+ });
7705
+ type AddWhatsAppBroadcastRecipientsError = (unknown | {
7706
+ error?: string;
7707
+ });
7708
+ type RemoveWhatsAppBroadcastRecipientsData = {
7709
+ body: {
7710
+ /**
7711
+ * Phone numbers to remove
7712
+ */
7713
+ phones: Array<(string)>;
7714
+ };
7715
+ path: {
7716
+ /**
7717
+ * Broadcast ID
7718
+ */
7719
+ broadcastId: string;
7720
+ };
7721
+ };
7722
+ type RemoveWhatsAppBroadcastRecipientsResponse = ({
7723
+ success?: boolean;
7724
+ /**
7725
+ * Number of recipients removed
7726
+ */
7727
+ removed?: number;
7728
+ /**
7729
+ * Remaining recipient count
7730
+ */
7731
+ totalRecipients?: number;
7732
+ });
7733
+ type RemoveWhatsAppBroadcastRecipientsError = (unknown | {
7734
+ error?: string;
7735
+ });
7736
+ type GetWhatsAppBusinessProfileData = {
7737
+ query: {
7738
+ /**
7739
+ * WhatsApp social account ID
7740
+ */
7741
+ accountId: string;
7742
+ };
7743
+ };
7744
+ type GetWhatsAppBusinessProfileResponse = ({
7745
+ success?: boolean;
7746
+ businessProfile?: {
7747
+ /**
7748
+ * Short description (max 139 chars)
7749
+ */
7750
+ about?: string;
7751
+ address?: string;
7752
+ /**
7753
+ * Full description (max 512 chars)
7754
+ */
7755
+ description?: string;
7756
+ email?: string;
7757
+ profilePictureUrl?: string;
7758
+ websites?: Array<(string)>;
7759
+ /**
7760
+ * Business category
7761
+ */
7762
+ vertical?: string;
7763
+ };
7764
+ });
7765
+ type GetWhatsAppBusinessProfileError = (unknown | {
7766
+ error?: string;
7767
+ });
7768
+ type UpdateWhatsAppBusinessProfileData = {
7769
+ body: {
7770
+ /**
7771
+ * WhatsApp social account ID
7772
+ */
7773
+ accountId: string;
7774
+ /**
7775
+ * Short business description (max 139 characters)
7776
+ */
7777
+ about?: string;
7778
+ /**
7779
+ * Business address
7780
+ */
7781
+ address?: string;
7782
+ /**
7783
+ * Full business description (max 512 characters)
7784
+ */
7785
+ description?: string;
7786
+ /**
7787
+ * Business email
7788
+ */
7789
+ email?: string;
7790
+ /**
7791
+ * Business websites (max 2)
7792
+ */
7793
+ websites?: Array<(string)>;
7794
+ /**
7795
+ * Business category (e.g., RETAIL, ENTERTAINMENT, etc.)
7796
+ */
7797
+ vertical?: string;
7798
+ /**
7799
+ * Handle from resumable upload for profile picture
7800
+ */
7801
+ profilePictureHandle?: string;
7802
+ };
7803
+ };
7804
+ type UpdateWhatsAppBusinessProfileResponse = ({
7805
+ success?: boolean;
7806
+ message?: string;
7807
+ });
7808
+ type UpdateWhatsAppBusinessProfileError = (unknown | {
7809
+ error?: string;
7810
+ });
7811
+ type GetWhatsAppPhoneNumbersData = {
7812
+ query?: {
7813
+ /**
7814
+ * Filter by profile
7815
+ */
7816
+ profileId?: string;
7817
+ /**
7818
+ * Filter by status (by default excludes released numbers)
7819
+ */
7820
+ status?: 'provisioning' | 'active' | 'suspended' | 'releasing' | 'released';
7821
+ };
7822
+ };
7823
+ type GetWhatsAppPhoneNumbersResponse = ({
7824
+ numbers?: Array<{
7825
+ _id?: string;
7826
+ phoneNumber?: string;
7827
+ country?: string;
7828
+ status?: 'pending_payment' | 'provisioning' | 'active' | 'suspended' | 'releasing' | 'released';
7829
+ profileId?: {
7830
+ [key: string]: unknown;
7831
+ };
7832
+ provisionedAt?: string;
7833
+ metaPreverifiedId?: string;
7834
+ metaVerificationStatus?: string;
7835
+ createdAt?: string;
7836
+ }>;
7837
+ });
7838
+ type GetWhatsAppPhoneNumbersError = ({
7839
+ error?: string;
7840
+ });
7841
+ type SearchAvailableWhatsAppNumbersData = {
7842
+ query?: {
7843
+ /**
7844
+ * Pattern to match within the phone number
7845
+ */
7846
+ contains?: string;
7847
+ /**
7848
+ * Maximum results (default 20, max 100)
7849
+ */
7850
+ limit?: number;
7851
+ /**
7852
+ * City name (e.g., "New York")
7853
+ */
7854
+ locality?: string;
7855
+ /**
7856
+ * Area code to search (e.g., "212" for New York)
7857
+ */
7858
+ prefix?: string;
7859
+ };
7860
+ };
7861
+ type SearchAvailableWhatsAppNumbersResponse = ({
7862
+ numbers?: Array<{
7863
+ [key: string]: unknown;
7864
+ }>;
7865
+ });
7866
+ type SearchAvailableWhatsAppNumbersError = ({
7867
+ error?: string;
7868
+ } | unknown);
7869
+ type GetPreverifiedWhatsAppNumbersData = {
7870
+ query: {
7871
+ /**
7872
+ * Profile ID to filter by
7873
+ */
7874
+ profileId: string;
7875
+ };
7876
+ };
7877
+ type GetPreverifiedWhatsAppNumbersResponse = ({
7878
+ /**
7879
+ * IDs to pass in FB.login() extras.setup.preVerifiedPhone.ids
7880
+ */
7881
+ preVerifiedIds?: Array<(string)>;
7882
+ numbers?: Array<{
7883
+ id?: string;
7884
+ phoneNumber?: string;
7885
+ metaPreverifiedId?: string;
7886
+ metaVerifiedAt?: string;
7887
+ metaVerificationExpiresAt?: string;
7888
+ }>;
7889
+ });
7890
+ type GetPreverifiedWhatsAppNumbersError = (unknown | {
7891
+ error?: string;
7892
+ });
7893
+ type PurchaseWhatsAppPhoneNumberData = {
7894
+ body: {
7895
+ /**
7896
+ * Profile to associate the number with
7897
+ */
7898
+ profileId: string;
7899
+ };
7900
+ };
7901
+ type PurchaseWhatsAppPhoneNumberResponse = (({
7902
+ message?: string;
7903
+ checkoutUrl?: string;
7904
+ } | {
7905
+ message?: string;
7906
+ phoneNumber?: {
7907
+ id?: string;
7908
+ phoneNumber?: string;
7909
+ status?: string;
7910
+ country?: string;
7911
+ provisionedAt?: string;
7912
+ metaPreverifiedId?: string;
7913
+ metaVerificationStatus?: string;
7914
+ };
7915
+ }));
7916
+ type PurchaseWhatsAppPhoneNumberError = (unknown | {
7917
+ error?: string;
7918
+ });
7919
+ type GetWhatsAppPhoneNumberData = {
7920
+ path: {
7921
+ /**
7922
+ * Phone number record ID
7923
+ */
7924
+ phoneNumberId: string;
7925
+ };
7926
+ };
7927
+ type GetWhatsAppPhoneNumberResponse = ({
7928
+ phoneNumber?: {
7929
+ id?: string;
7930
+ phoneNumber?: string;
7931
+ status?: 'pending_payment' | 'provisioning' | 'active' | 'suspended' | 'releasing' | 'released';
7932
+ country?: string;
7933
+ metaPreverifiedId?: string;
7934
+ metaVerificationStatus?: string;
7935
+ provisionedAt?: string;
7936
+ };
7937
+ });
7938
+ type GetWhatsAppPhoneNumberError = ({
7939
+ error?: string;
7940
+ });
7941
+ type ReleaseWhatsAppPhoneNumberData = {
7942
+ path: {
7943
+ /**
7944
+ * Phone number record ID
7945
+ */
7946
+ phoneNumberId: string;
7947
+ };
7948
+ };
7949
+ type ReleaseWhatsAppPhoneNumberResponse = ({
7950
+ message?: string;
7951
+ phoneNumber?: {
7952
+ id?: string;
7953
+ phoneNumber?: string;
7954
+ /**
7955
+ * "released"
7956
+ */
7957
+ status?: string;
7958
+ releasedAt?: string;
7959
+ };
7960
+ });
7961
+ type ReleaseWhatsAppPhoneNumberError = (unknown | {
7962
+ error?: string;
7963
+ });
7964
+ type RequestWhatsAppVerificationCodeData = {
7965
+ body?: {
7966
+ /**
7967
+ * Delivery method for the verification code
7968
+ */
7969
+ method?: 'SMS' | 'VOICE';
7970
+ };
7971
+ path: {
7972
+ /**
7973
+ * Phone number record ID
7974
+ */
7975
+ phoneNumberId: string;
7976
+ };
7977
+ };
7978
+ type RequestWhatsAppVerificationCodeResponse = ({
7979
+ message?: string;
7980
+ method?: 'SMS' | 'VOICE';
7981
+ });
7982
+ type RequestWhatsAppVerificationCodeError = (unknown | {
7983
+ error?: string;
7984
+ });
7985
+ type VerifyWhatsAppPhoneNumberData = {
7986
+ body: {
7987
+ /**
7988
+ * 6-digit verification code
7989
+ */
7990
+ code: string;
7991
+ };
7992
+ path: {
7993
+ /**
7994
+ * Phone number record ID
7995
+ */
7996
+ phoneNumberId: string;
7997
+ };
7998
+ };
7999
+ type VerifyWhatsAppPhoneNumberResponse = ({
8000
+ message?: string;
8001
+ metaVerifiedAt?: string;
8002
+ metaVerificationExpiresAt?: string;
8003
+ });
8004
+ type VerifyWhatsAppPhoneNumberError = (unknown | {
8005
+ error?: string;
8006
+ });
6663
8007
 
6664
- export { type AccountGetResponse, type AccountWithFollowerStats, type AccountsListResponse, type AnalyticsListResponse, type AnalyticsOverview, type AnalyticsSinglePostResponse, type ApiKey, type BlueskyPlatformData, type BulkUploadPostsData, type BulkUploadPostsError, type BulkUploadPostsResponse, type CaptionResponse, type CheckInstagramHashtagsData, type CheckInstagramHashtagsError, type CheckInstagramHashtagsResponse, type ClientOptions, type CompleteTelegramConnectData, type CompleteTelegramConnectError, type CompleteTelegramConnectResponse, type ConnectBlueskyCredentialsData, type ConnectBlueskyCredentialsError, type ConnectBlueskyCredentialsResponse, 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 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 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 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 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 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 QueueDeleteResponse, type QueueNextSlotResponse, type QueuePreviewResponse, type QueueSchedule, type QueueSlot, type QueueSlotsResponse, type QueueUpdateResponse, RateLimitError, type RecyclingConfig, type RecyclingState, type RedditPlatformData, type ReplyToInboxPostData, type ReplyToInboxPostError, type ReplyToInboxPostResponse, type ReplyToInboxReviewData, type ReplyToInboxReviewError, type ReplyToInboxReviewResponse, type RetryPostData, type RetryPostError, type RetryPostResponse, 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 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 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 UploadTokenResponse, type UploadTokenStatusResponse, 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, 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 type, type type2, type type3, type visibility };
8008
+ export { type AccountGetResponse, type AccountWithFollowerStats, type AccountsListResponse, type AddWhatsAppBroadcastRecipientsData, type AddWhatsAppBroadcastRecipientsError, type AddWhatsAppBroadcastRecipientsResponse, type AnalyticsListResponse, type AnalyticsOverview, type AnalyticsSinglePostResponse, type ApiKey, type BlueskyPlatformData, 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 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 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 GetPreverifiedWhatsAppNumbersData, type GetPreverifiedWhatsAppNumbersError, type GetPreverifiedWhatsAppNumbersResponse, 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 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 RemoveWhatsAppBroadcastRecipientsData, type RemoveWhatsAppBroadcastRecipientsError, type RemoveWhatsAppBroadcastRecipientsResponse, type RenameWhatsAppGroupData, type RenameWhatsAppGroupError, type RenameWhatsAppGroupResponse, type ReplyToInboxPostData, type ReplyToInboxPostError, type ReplyToInboxPostResponse, type ReplyToInboxReviewData, type ReplyToInboxReviewError, type ReplyToInboxReviewResponse, type RequestWhatsAppVerificationCodeData, type RequestWhatsAppVerificationCodeError, type RequestWhatsAppVerificationCodeResponse, type RetryPostData, type RetryPostError, type RetryPostResponse, type ScheduleWhatsAppBroadcastData, type ScheduleWhatsAppBroadcastError, type ScheduleWhatsAppBroadcastResponse, type SearchAvailableWhatsAppNumbersData, type SearchAvailableWhatsAppNumbersError, type SearchAvailableWhatsAppNumbersResponse, 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 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 UpdateWhatsAppTemplateData, type UpdateWhatsAppTemplateError, type UpdateWhatsAppTemplateResponse, type UploadTokenResponse, type UploadTokenStatusResponse, 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 VerifyWhatsAppPhoneNumberData, type VerifyWhatsAppPhoneNumberError, type VerifyWhatsAppPhoneNumberResponse, 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, 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 type, type type2, type type3, type visibility };