zaileys 4.1.1 → 4.2.0

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.cts CHANGED
@@ -90,7 +90,7 @@ type ButtonDef = {
90
90
  id: string;
91
91
  text: string;
92
92
  };
93
- type ListSection = {
93
+ type ListSection$1 = {
94
94
  title: string;
95
95
  rows: Array<{
96
96
  id: string;
@@ -103,7 +103,7 @@ type ListOptions = {
103
103
  description?: string;
104
104
  buttonText: string;
105
105
  footerText?: string;
106
- sections: ListSection[];
106
+ sections: ListSection$1[];
107
107
  };
108
108
  type PollOptions = {
109
109
  multipleChoice?: boolean;
@@ -172,6 +172,7 @@ type BuilderInternalState = {
172
172
  mentionAll?: boolean;
173
173
  disappearingSeconds?: number;
174
174
  resolveRecipient?: (raw: string) => Promise<string>;
175
+ recordSent?: (message: WAMessage) => void;
175
176
  };
176
177
 
177
178
  interface BuilderSocketLike {
@@ -194,7 +195,7 @@ declare class MessageBuilder<State extends BuilderState> {
194
195
  protected readonly socket: BuilderSocketLike;
195
196
  protected readonly internal: BuilderInternalState;
196
197
  constructor(socket: BuilderSocketLike, internal: BuilderInternalState);
197
- static create(socket: BuilderSocketLike, recipient: string, resolveRecipient?: (raw: string) => Promise<string>): MessageBuilder<'init'>;
198
+ static create(socket: BuilderSocketLike, recipient: string, resolveRecipient?: (raw: string) => Promise<string>, recordSent?: (message: WAMessage) => void): MessageBuilder<'init'>;
198
199
  to(this: MessageBuilder<'init'>, recipient: string): MessageBuilder<'init'>;
199
200
  text(this: MessageBuilder<'init'>, content: string, opts?: TextOptions): MessageBuilder<'content-set'>;
200
201
  image(this: MessageBuilder<'init'>, src: MediaSource, opts?: ImageOptions): MessageBuilder<'content-set'>;
@@ -659,7 +660,7 @@ type InboundEventMap = {
659
660
  };
660
661
  type InboundEventName = keyof InboundEventMap;
661
662
 
662
- type ChatType = 'text' | 'image' | 'video' | 'audio' | 'document' | 'sticker' | 'unknown';
663
+ type ChatType = 'text' | 'image' | 'video' | 'audio' | 'document' | 'sticker' | 'poll' | 'contact' | 'location' | 'live-location' | 'event' | 'buttons' | 'list' | 'interactive' | 'template' | 'unknown';
663
664
  type SenderDevice = 'unknown' | 'android' | 'ios' | 'web' | 'desktop' | string;
664
665
  interface CitationConfig {
665
666
  authors?: string[] | ((jid: string) => boolean | Promise<boolean>);
@@ -669,10 +670,93 @@ interface CitationPredicates {
669
670
  authors(): Promise<boolean>;
670
671
  banned(): Promise<boolean>;
671
672
  }
672
- interface ContextMedia {
673
+ interface MediaAttachment {
674
+ type: 'image' | 'video' | 'audio' | 'document' | 'sticker';
675
+ mimetype: string | null;
676
+ caption: string | null;
677
+ fileName: string | null;
678
+ fileSize: number | null;
679
+ ptt: boolean;
673
680
  buffer(): Promise<Buffer>;
674
681
  stream(): Promise<Readable>;
675
682
  }
683
+ interface PollMedia {
684
+ type: 'poll';
685
+ name: string | null;
686
+ options: string[];
687
+ selectableCount: number;
688
+ }
689
+ interface ContactCard {
690
+ displayName: string | null;
691
+ vcard: string | null;
692
+ }
693
+ interface ContactMedia {
694
+ type: 'contact';
695
+ displayName: string | null;
696
+ vcard: string | null;
697
+ contacts: ContactCard[];
698
+ }
699
+ interface LocationMedia {
700
+ type: 'location' | 'live-location';
701
+ latitude: number | null;
702
+ longitude: number | null;
703
+ name: string | null;
704
+ address: string | null;
705
+ accuracy: number | null;
706
+ speed: number | null;
707
+ caption: string | null;
708
+ }
709
+ interface EventMedia {
710
+ type: 'event';
711
+ name: string | null;
712
+ description: string | null;
713
+ location: string | null;
714
+ startTime: number | null;
715
+ endTime: number | null;
716
+ isCanceled: boolean;
717
+ }
718
+ interface MessageButton {
719
+ id: string | null;
720
+ text: string | null;
721
+ }
722
+ interface ButtonsMedia {
723
+ type: 'buttons';
724
+ contentText: string | null;
725
+ footerText: string | null;
726
+ buttons: MessageButton[];
727
+ }
728
+ interface ListRow {
729
+ id: string | null;
730
+ title: string | null;
731
+ description: string | null;
732
+ }
733
+ interface ListSection {
734
+ title: string | null;
735
+ rows: ListRow[];
736
+ }
737
+ interface ListMedia {
738
+ type: 'list';
739
+ title: string | null;
740
+ description: string | null;
741
+ buttonText: string | null;
742
+ sections: ListSection[];
743
+ }
744
+ interface InteractiveMedia {
745
+ type: 'interactive';
746
+ title: string | null;
747
+ body: string | null;
748
+ footer: string | null;
749
+ buttons: Array<{
750
+ name: string | null;
751
+ params: string | null;
752
+ }>;
753
+ }
754
+ interface TemplateMedia {
755
+ type: 'template';
756
+ text: string | null;
757
+ buttons: MessageButton[];
758
+ }
759
+ type ContextMedia = MediaAttachment | PollMedia | ContactMedia | LocationMedia | EventMedia | ButtonsMedia | ListMedia | InteractiveMedia | TemplateMedia;
676
760
  interface MessageContext {
677
761
  uniqueId: string;
678
762
  channelId: string;
@@ -1772,4 +1856,4 @@ declare class Media {
1772
1856
  toBuffer(): Promise<Buffer>;
1773
1857
  }
1774
1858
 
1775
- export { type AddressButton, type AlbumItem, type AudioOptions, AudioProcessor, type AudioType, type AuthAttemptBlockReason, type AuthAttemptDecision, type AuthCredsStore, type AuthGuard, type AuthGuardOptions, type AuthStore, type AuthStoreBundle, type AuthStoreKey, type AuthStoreValue, type AutomationErrorCode, type AutomationSocketLike, type BaileysSocket, type BaileysSocketLike, type BottomSheetOptions, type BroadcastDeps, type BroadcastOptions, type BroadcastResult, BufferConverter, type BuildContextInput, type BuilderContext, type BuilderErrorCode, type BuilderSocketLike, type BuilderState, type ButtonClickPayload, type ButtonDef, type CacheableAuthStoreOptions, type CallBase, type CallButton, type CallPayload, type CancelReminderButton, type ChatType, type CitationConfig, type CitationPredicates, Client, type ClientEventMap, type ClientEventName, type ClientOptions, type CommandContext, type CommandDefinition, type CommandErrorCode, type CommandHandler, type CommandPrefix, CommandRegistry, CommunityModule, type ConnectionAuthType, type ConnectionEventHandler, type ConnectionEventMap, type ConnectionEventName, type ConnectionState, type ConnectionStateMachine, type ContextMedia, ConvexAuthStore, type ConvexAuthStoreOptions, ConvexMessageStore, type ConvexMessageStoreOptions, type CopyButton, type CreateLoggerOptions, type DeleteOptions, type DeletePayload, type DisconnectReasonDomain, type DispatcherDeps, type DispatcherHandle, type DocumentOptions, DocumentProcessor, type DomainErrorCode, type DomainSocketLike, EditBuilder, type EditPayload, FFMPEG_CONSTANTS, type FFmpegConfig, FFmpegProcessor, FileAuthStore, type FileAuthStoreOptions, type FileExtension, FileManager, type GroupJoinPayload, type GroupLeavePayload, GroupModule, type GroupParticipantInfo, type GroupUpdatePayload, type HistorySyncPayload, type ImageOptions, ImageProcessor, type InboundEventMap, type InboundEventName, type InteractiveButton, type LIDMapping, type LIDMappingUpdatePayload, type LimitedPayload, type LimitedTimeOfferOptions, type LinkedGroup, type ListOptions, type ListSection, type ListSelectPayload, type LocationOptions, type LocationRequestButton, type Logger, type LoggerLevel, Media, type MediaDescriptor, type MediaDownloadResult, type MediaInput, type MediaKind, type MediaSource, type MemberTagPayload, MemoryAuthStore, MemoryMessageStore, type MentionAllContext, type MentionContext, MessageBuilder, type MessageContext, type MessageStore, type MessageStoreListOptions, type Middleware, MimeValidator, NewsletterModule, type NewsletterPayload, type OperationCategory, type OperationGuard, type OperationGuardClock, type OperationGuardOptions, type PairingFlow, type PairingFlowOptions, type PairingFlowResult, type ParsedArgs, type ParticipantUpdateResult, type PollOptions, type PollVotePayload, PostgresAuthStore, type PostgresAuthStoreOptions, PostgresMessageStore, type PostgresMessageStoreOptions, type PresenceClock, PresenceModule, type PresencePayload, type PresenceThrottleOptions, type PrivacyConfig, PrivacyModule, type PrivacySettings, type QuotedRef, RateLimiter, type RateLimiterClock, type RateLimiterOptions, type ReactionPayload, type ReconnectDecision, type ReconnectOptions, type ReconnectStrategy, type ReconnectStrategyDeps, RedisAuthStore, type RedisAuthStoreOptions, RedisMessageStore, type RedisMessageStoreOptions, type ReminderButton, type ReplyButton, type ResolvedCommand, type RetryPolicy, SELF_ONLY_PROTOCOL_TYPES, type ScheduleHandle, type ScheduledContentSnapshot, type ScheduledJob, type ScheduledJobRecord, Scheduler, type SchedulerDeps, type SchedulerTimer, type SelfOnlyProtocolType, type SenderDevice, type SenderInfo, SqliteAuthStore, type SqliteAuthStoreOptions, SqliteMessageStore, type SqliteMessageStoreOptions, type StateTransitionListener, type StickerMetadataType, type StickerOptions, StickerProcessor, type StickerShapeType, type StoreErrorCode, TaskQueue, type TaskQueueClock, type TaskQueueOptions, type TemplateOptions, type TextOptions, TypedEventEmitter, type TypedEventEmitterOptions, type UpsertPayload, type UrlButton, type UsernameResolveSocketLike, type VideoOptions, VideoProcessor, type WAPresence, ZaileysAutomationError, ZaileysBuilderError, ZaileysCommandError, ZaileysDomainError, type ZaileysLogger, ZaileysStoreError, adoptLogger, attachCommandDispatcher, buildMessageContext, chunk, createAuthGuard, createConnectionStateMachine, createLogger, createOperationGuard, createPairingFlow, createReconnectStrategy, deleteMessage, detectFileType, dropSpoofedSelfOnly, ffmpegTransform, forwardMessage, generateId, initializeFFmpeg, isFatalDisconnect, isJid, isRateLimited, makeCacheableAuthStore, mapDisconnectReason, normalizePhoneNumber, parseCommand, printQrToTerminal, reactToMessage, renderQrInTerminal, resolveUsername, runBroadcast, runMiddleware, shouldClearAuth, shouldReconnect, signalKeyStoreFromAuthStore, validateE164 };
1859
+ export { type AddressButton, type AlbumItem, type AudioOptions, AudioProcessor, type AudioType, type AuthAttemptBlockReason, type AuthAttemptDecision, type AuthCredsStore, type AuthGuard, type AuthGuardOptions, type AuthStore, type AuthStoreBundle, type AuthStoreKey, type AuthStoreValue, type AutomationErrorCode, type AutomationSocketLike, type BaileysSocket, type BaileysSocketLike, type BottomSheetOptions, type BroadcastDeps, type BroadcastOptions, type BroadcastResult, BufferConverter, type BuildContextInput, type BuilderContext, type BuilderErrorCode, type BuilderSocketLike, type BuilderState, type ButtonClickPayload, type ButtonDef, type CacheableAuthStoreOptions, type CallBase, type CallButton, type CallPayload, type CancelReminderButton, type ChatType, type CitationConfig, type CitationPredicates, Client, type ClientEventMap, type ClientEventName, type ClientOptions, type CommandContext, type CommandDefinition, type CommandErrorCode, type CommandHandler, type CommandPrefix, CommandRegistry, CommunityModule, type ConnectionAuthType, type ConnectionEventHandler, type ConnectionEventMap, type ConnectionEventName, type ConnectionState, type ConnectionStateMachine, type ContextMedia, ConvexAuthStore, type ConvexAuthStoreOptions, ConvexMessageStore, type ConvexMessageStoreOptions, type CopyButton, type CreateLoggerOptions, type DeleteOptions, type DeletePayload, type DisconnectReasonDomain, type DispatcherDeps, type DispatcherHandle, type DocumentOptions, DocumentProcessor, type DomainErrorCode, type DomainSocketLike, EditBuilder, type EditPayload, FFMPEG_CONSTANTS, type FFmpegConfig, FFmpegProcessor, FileAuthStore, type FileAuthStoreOptions, type FileExtension, FileManager, type GroupJoinPayload, type GroupLeavePayload, GroupModule, type GroupParticipantInfo, type GroupUpdatePayload, type HistorySyncPayload, type ImageOptions, ImageProcessor, type InboundEventMap, type InboundEventName, type InteractiveButton, type LIDMapping, type LIDMappingUpdatePayload, type LimitedPayload, type LimitedTimeOfferOptions, type LinkedGroup, type ListOptions, type ListSection$1 as ListSection, type ListSelectPayload, type LocationOptions, type LocationRequestButton, type Logger, type LoggerLevel, Media, type MediaDescriptor, type MediaDownloadResult, type MediaInput, type MediaKind, type MediaSource, type MemberTagPayload, MemoryAuthStore, MemoryMessageStore, type MentionAllContext, type MentionContext, MessageBuilder, type MessageContext, type MessageStore, type MessageStoreListOptions, type Middleware, MimeValidator, NewsletterModule, type NewsletterPayload, type OperationCategory, type OperationGuard, type OperationGuardClock, type OperationGuardOptions, type PairingFlow, type PairingFlowOptions, type PairingFlowResult, type ParsedArgs, type ParticipantUpdateResult, type PollOptions, type PollVotePayload, PostgresAuthStore, type PostgresAuthStoreOptions, PostgresMessageStore, type PostgresMessageStoreOptions, type PresenceClock, PresenceModule, type PresencePayload, type PresenceThrottleOptions, type PrivacyConfig, PrivacyModule, type PrivacySettings, type QuotedRef, RateLimiter, type RateLimiterClock, type RateLimiterOptions, type ReactionPayload, type ReconnectDecision, type ReconnectOptions, type ReconnectStrategy, type ReconnectStrategyDeps, RedisAuthStore, type RedisAuthStoreOptions, RedisMessageStore, type RedisMessageStoreOptions, type ReminderButton, type ReplyButton, type ResolvedCommand, type RetryPolicy, SELF_ONLY_PROTOCOL_TYPES, type ScheduleHandle, type ScheduledContentSnapshot, type ScheduledJob, type ScheduledJobRecord, Scheduler, type SchedulerDeps, type SchedulerTimer, type SelfOnlyProtocolType, type SenderDevice, type SenderInfo, SqliteAuthStore, type SqliteAuthStoreOptions, SqliteMessageStore, type SqliteMessageStoreOptions, type StateTransitionListener, type StickerMetadataType, type StickerOptions, StickerProcessor, type StickerShapeType, type StoreErrorCode, TaskQueue, type TaskQueueClock, type TaskQueueOptions, type TemplateOptions, type TextOptions, TypedEventEmitter, type TypedEventEmitterOptions, type UpsertPayload, type UrlButton, type UsernameResolveSocketLike, type VideoOptions, VideoProcessor, type WAPresence, ZaileysAutomationError, ZaileysBuilderError, ZaileysCommandError, ZaileysDomainError, type ZaileysLogger, ZaileysStoreError, adoptLogger, attachCommandDispatcher, buildMessageContext, chunk, createAuthGuard, createConnectionStateMachine, createLogger, createOperationGuard, createPairingFlow, createReconnectStrategy, deleteMessage, detectFileType, dropSpoofedSelfOnly, ffmpegTransform, forwardMessage, generateId, initializeFFmpeg, isFatalDisconnect, isJid, isRateLimited, makeCacheableAuthStore, mapDisconnectReason, normalizePhoneNumber, parseCommand, printQrToTerminal, reactToMessage, renderQrInTerminal, resolveUsername, runBroadcast, runMiddleware, shouldClearAuth, shouldReconnect, signalKeyStoreFromAuthStore, validateE164 };
package/dist/index.d.ts CHANGED
@@ -90,7 +90,7 @@ type ButtonDef = {
90
90
  id: string;
91
91
  text: string;
92
92
  };
93
- type ListSection = {
93
+ type ListSection$1 = {
94
94
  title: string;
95
95
  rows: Array<{
96
96
  id: string;
@@ -103,7 +103,7 @@ type ListOptions = {
103
103
  description?: string;
104
104
  buttonText: string;
105
105
  footerText?: string;
106
- sections: ListSection[];
106
+ sections: ListSection$1[];
107
107
  };
108
108
  type PollOptions = {
109
109
  multipleChoice?: boolean;
@@ -172,6 +172,7 @@ type BuilderInternalState = {
172
172
  mentionAll?: boolean;
173
173
  disappearingSeconds?: number;
174
174
  resolveRecipient?: (raw: string) => Promise<string>;
175
+ recordSent?: (message: WAMessage) => void;
175
176
  };
176
177
 
177
178
  interface BuilderSocketLike {
@@ -194,7 +195,7 @@ declare class MessageBuilder<State extends BuilderState> {
194
195
  protected readonly socket: BuilderSocketLike;
195
196
  protected readonly internal: BuilderInternalState;
196
197
  constructor(socket: BuilderSocketLike, internal: BuilderInternalState);
197
- static create(socket: BuilderSocketLike, recipient: string, resolveRecipient?: (raw: string) => Promise<string>): MessageBuilder<'init'>;
198
+ static create(socket: BuilderSocketLike, recipient: string, resolveRecipient?: (raw: string) => Promise<string>, recordSent?: (message: WAMessage) => void): MessageBuilder<'init'>;
198
199
  to(this: MessageBuilder<'init'>, recipient: string): MessageBuilder<'init'>;
199
200
  text(this: MessageBuilder<'init'>, content: string, opts?: TextOptions): MessageBuilder<'content-set'>;
200
201
  image(this: MessageBuilder<'init'>, src: MediaSource, opts?: ImageOptions): MessageBuilder<'content-set'>;
@@ -659,7 +660,7 @@ type InboundEventMap = {
659
660
  };
660
661
  type InboundEventName = keyof InboundEventMap;
661
662
 
662
- type ChatType = 'text' | 'image' | 'video' | 'audio' | 'document' | 'sticker' | 'unknown';
663
+ type ChatType = 'text' | 'image' | 'video' | 'audio' | 'document' | 'sticker' | 'poll' | 'contact' | 'location' | 'live-location' | 'event' | 'buttons' | 'list' | 'interactive' | 'template' | 'unknown';
663
664
  type SenderDevice = 'unknown' | 'android' | 'ios' | 'web' | 'desktop' | string;
664
665
  interface CitationConfig {
665
666
  authors?: string[] | ((jid: string) => boolean | Promise<boolean>);
@@ -669,10 +670,93 @@ interface CitationPredicates {
669
670
  authors(): Promise<boolean>;
670
671
  banned(): Promise<boolean>;
671
672
  }
672
- interface ContextMedia {
673
+ interface MediaAttachment {
674
+ type: 'image' | 'video' | 'audio' | 'document' | 'sticker';
675
+ mimetype: string | null;
676
+ caption: string | null;
677
+ fileName: string | null;
678
+ fileSize: number | null;
679
+ ptt: boolean;
673
680
  buffer(): Promise<Buffer>;
674
681
  stream(): Promise<Readable>;
675
682
  }
683
+ interface PollMedia {
684
+ type: 'poll';
685
+ name: string | null;
686
+ options: string[];
687
+ selectableCount: number;
688
+ }
689
+ interface ContactCard {
690
+ displayName: string | null;
691
+ vcard: string | null;
692
+ }
693
+ interface ContactMedia {
694
+ type: 'contact';
695
+ displayName: string | null;
696
+ vcard: string | null;
697
+ contacts: ContactCard[];
698
+ }
699
+ interface LocationMedia {
700
+ type: 'location' | 'live-location';
701
+ latitude: number | null;
702
+ longitude: number | null;
703
+ name: string | null;
704
+ address: string | null;
705
+ accuracy: number | null;
706
+ speed: number | null;
707
+ caption: string | null;
708
+ }
709
+ interface EventMedia {
710
+ type: 'event';
711
+ name: string | null;
712
+ description: string | null;
713
+ location: string | null;
714
+ startTime: number | null;
715
+ endTime: number | null;
716
+ isCanceled: boolean;
717
+ }
718
+ interface MessageButton {
719
+ id: string | null;
720
+ text: string | null;
721
+ }
722
+ interface ButtonsMedia {
723
+ type: 'buttons';
724
+ contentText: string | null;
725
+ footerText: string | null;
726
+ buttons: MessageButton[];
727
+ }
728
+ interface ListRow {
729
+ id: string | null;
730
+ title: string | null;
731
+ description: string | null;
732
+ }
733
+ interface ListSection {
734
+ title: string | null;
735
+ rows: ListRow[];
736
+ }
737
+ interface ListMedia {
738
+ type: 'list';
739
+ title: string | null;
740
+ description: string | null;
741
+ buttonText: string | null;
742
+ sections: ListSection[];
743
+ }
744
+ interface InteractiveMedia {
745
+ type: 'interactive';
746
+ title: string | null;
747
+ body: string | null;
748
+ footer: string | null;
749
+ buttons: Array<{
750
+ name: string | null;
751
+ params: string | null;
752
+ }>;
753
+ }
754
+ interface TemplateMedia {
755
+ type: 'template';
756
+ text: string | null;
757
+ buttons: MessageButton[];
758
+ }
759
+ type ContextMedia = MediaAttachment | PollMedia | ContactMedia | LocationMedia | EventMedia | ButtonsMedia | ListMedia | InteractiveMedia | TemplateMedia;
676
760
  interface MessageContext {
677
761
  uniqueId: string;
678
762
  channelId: string;
@@ -1772,4 +1856,4 @@ declare class Media {
1772
1856
  toBuffer(): Promise<Buffer>;
1773
1857
  }
1774
1858
 
1775
- export { type AddressButton, type AlbumItem, type AudioOptions, AudioProcessor, type AudioType, type AuthAttemptBlockReason, type AuthAttemptDecision, type AuthCredsStore, type AuthGuard, type AuthGuardOptions, type AuthStore, type AuthStoreBundle, type AuthStoreKey, type AuthStoreValue, type AutomationErrorCode, type AutomationSocketLike, type BaileysSocket, type BaileysSocketLike, type BottomSheetOptions, type BroadcastDeps, type BroadcastOptions, type BroadcastResult, BufferConverter, type BuildContextInput, type BuilderContext, type BuilderErrorCode, type BuilderSocketLike, type BuilderState, type ButtonClickPayload, type ButtonDef, type CacheableAuthStoreOptions, type CallBase, type CallButton, type CallPayload, type CancelReminderButton, type ChatType, type CitationConfig, type CitationPredicates, Client, type ClientEventMap, type ClientEventName, type ClientOptions, type CommandContext, type CommandDefinition, type CommandErrorCode, type CommandHandler, type CommandPrefix, CommandRegistry, CommunityModule, type ConnectionAuthType, type ConnectionEventHandler, type ConnectionEventMap, type ConnectionEventName, type ConnectionState, type ConnectionStateMachine, type ContextMedia, ConvexAuthStore, type ConvexAuthStoreOptions, ConvexMessageStore, type ConvexMessageStoreOptions, type CopyButton, type CreateLoggerOptions, type DeleteOptions, type DeletePayload, type DisconnectReasonDomain, type DispatcherDeps, type DispatcherHandle, type DocumentOptions, DocumentProcessor, type DomainErrorCode, type DomainSocketLike, EditBuilder, type EditPayload, FFMPEG_CONSTANTS, type FFmpegConfig, FFmpegProcessor, FileAuthStore, type FileAuthStoreOptions, type FileExtension, FileManager, type GroupJoinPayload, type GroupLeavePayload, GroupModule, type GroupParticipantInfo, type GroupUpdatePayload, type HistorySyncPayload, type ImageOptions, ImageProcessor, type InboundEventMap, type InboundEventName, type InteractiveButton, type LIDMapping, type LIDMappingUpdatePayload, type LimitedPayload, type LimitedTimeOfferOptions, type LinkedGroup, type ListOptions, type ListSection, type ListSelectPayload, type LocationOptions, type LocationRequestButton, type Logger, type LoggerLevel, Media, type MediaDescriptor, type MediaDownloadResult, type MediaInput, type MediaKind, type MediaSource, type MemberTagPayload, MemoryAuthStore, MemoryMessageStore, type MentionAllContext, type MentionContext, MessageBuilder, type MessageContext, type MessageStore, type MessageStoreListOptions, type Middleware, MimeValidator, NewsletterModule, type NewsletterPayload, type OperationCategory, type OperationGuard, type OperationGuardClock, type OperationGuardOptions, type PairingFlow, type PairingFlowOptions, type PairingFlowResult, type ParsedArgs, type ParticipantUpdateResult, type PollOptions, type PollVotePayload, PostgresAuthStore, type PostgresAuthStoreOptions, PostgresMessageStore, type PostgresMessageStoreOptions, type PresenceClock, PresenceModule, type PresencePayload, type PresenceThrottleOptions, type PrivacyConfig, PrivacyModule, type PrivacySettings, type QuotedRef, RateLimiter, type RateLimiterClock, type RateLimiterOptions, type ReactionPayload, type ReconnectDecision, type ReconnectOptions, type ReconnectStrategy, type ReconnectStrategyDeps, RedisAuthStore, type RedisAuthStoreOptions, RedisMessageStore, type RedisMessageStoreOptions, type ReminderButton, type ReplyButton, type ResolvedCommand, type RetryPolicy, SELF_ONLY_PROTOCOL_TYPES, type ScheduleHandle, type ScheduledContentSnapshot, type ScheduledJob, type ScheduledJobRecord, Scheduler, type SchedulerDeps, type SchedulerTimer, type SelfOnlyProtocolType, type SenderDevice, type SenderInfo, SqliteAuthStore, type SqliteAuthStoreOptions, SqliteMessageStore, type SqliteMessageStoreOptions, type StateTransitionListener, type StickerMetadataType, type StickerOptions, StickerProcessor, type StickerShapeType, type StoreErrorCode, TaskQueue, type TaskQueueClock, type TaskQueueOptions, type TemplateOptions, type TextOptions, TypedEventEmitter, type TypedEventEmitterOptions, type UpsertPayload, type UrlButton, type UsernameResolveSocketLike, type VideoOptions, VideoProcessor, type WAPresence, ZaileysAutomationError, ZaileysBuilderError, ZaileysCommandError, ZaileysDomainError, type ZaileysLogger, ZaileysStoreError, adoptLogger, attachCommandDispatcher, buildMessageContext, chunk, createAuthGuard, createConnectionStateMachine, createLogger, createOperationGuard, createPairingFlow, createReconnectStrategy, deleteMessage, detectFileType, dropSpoofedSelfOnly, ffmpegTransform, forwardMessage, generateId, initializeFFmpeg, isFatalDisconnect, isJid, isRateLimited, makeCacheableAuthStore, mapDisconnectReason, normalizePhoneNumber, parseCommand, printQrToTerminal, reactToMessage, renderQrInTerminal, resolveUsername, runBroadcast, runMiddleware, shouldClearAuth, shouldReconnect, signalKeyStoreFromAuthStore, validateE164 };
1859
+ export { type AddressButton, type AlbumItem, type AudioOptions, AudioProcessor, type AudioType, type AuthAttemptBlockReason, type AuthAttemptDecision, type AuthCredsStore, type AuthGuard, type AuthGuardOptions, type AuthStore, type AuthStoreBundle, type AuthStoreKey, type AuthStoreValue, type AutomationErrorCode, type AutomationSocketLike, type BaileysSocket, type BaileysSocketLike, type BottomSheetOptions, type BroadcastDeps, type BroadcastOptions, type BroadcastResult, BufferConverter, type BuildContextInput, type BuilderContext, type BuilderErrorCode, type BuilderSocketLike, type BuilderState, type ButtonClickPayload, type ButtonDef, type CacheableAuthStoreOptions, type CallBase, type CallButton, type CallPayload, type CancelReminderButton, type ChatType, type CitationConfig, type CitationPredicates, Client, type ClientEventMap, type ClientEventName, type ClientOptions, type CommandContext, type CommandDefinition, type CommandErrorCode, type CommandHandler, type CommandPrefix, CommandRegistry, CommunityModule, type ConnectionAuthType, type ConnectionEventHandler, type ConnectionEventMap, type ConnectionEventName, type ConnectionState, type ConnectionStateMachine, type ContextMedia, ConvexAuthStore, type ConvexAuthStoreOptions, ConvexMessageStore, type ConvexMessageStoreOptions, type CopyButton, type CreateLoggerOptions, type DeleteOptions, type DeletePayload, type DisconnectReasonDomain, type DispatcherDeps, type DispatcherHandle, type DocumentOptions, DocumentProcessor, type DomainErrorCode, type DomainSocketLike, EditBuilder, type EditPayload, FFMPEG_CONSTANTS, type FFmpegConfig, FFmpegProcessor, FileAuthStore, type FileAuthStoreOptions, type FileExtension, FileManager, type GroupJoinPayload, type GroupLeavePayload, GroupModule, type GroupParticipantInfo, type GroupUpdatePayload, type HistorySyncPayload, type ImageOptions, ImageProcessor, type InboundEventMap, type InboundEventName, type InteractiveButton, type LIDMapping, type LIDMappingUpdatePayload, type LimitedPayload, type LimitedTimeOfferOptions, type LinkedGroup, type ListOptions, type ListSection$1 as ListSection, type ListSelectPayload, type LocationOptions, type LocationRequestButton, type Logger, type LoggerLevel, Media, type MediaDescriptor, type MediaDownloadResult, type MediaInput, type MediaKind, type MediaSource, type MemberTagPayload, MemoryAuthStore, MemoryMessageStore, type MentionAllContext, type MentionContext, MessageBuilder, type MessageContext, type MessageStore, type MessageStoreListOptions, type Middleware, MimeValidator, NewsletterModule, type NewsletterPayload, type OperationCategory, type OperationGuard, type OperationGuardClock, type OperationGuardOptions, type PairingFlow, type PairingFlowOptions, type PairingFlowResult, type ParsedArgs, type ParticipantUpdateResult, type PollOptions, type PollVotePayload, PostgresAuthStore, type PostgresAuthStoreOptions, PostgresMessageStore, type PostgresMessageStoreOptions, type PresenceClock, PresenceModule, type PresencePayload, type PresenceThrottleOptions, type PrivacyConfig, PrivacyModule, type PrivacySettings, type QuotedRef, RateLimiter, type RateLimiterClock, type RateLimiterOptions, type ReactionPayload, type ReconnectDecision, type ReconnectOptions, type ReconnectStrategy, type ReconnectStrategyDeps, RedisAuthStore, type RedisAuthStoreOptions, RedisMessageStore, type RedisMessageStoreOptions, type ReminderButton, type ReplyButton, type ResolvedCommand, type RetryPolicy, SELF_ONLY_PROTOCOL_TYPES, type ScheduleHandle, type ScheduledContentSnapshot, type ScheduledJob, type ScheduledJobRecord, Scheduler, type SchedulerDeps, type SchedulerTimer, type SelfOnlyProtocolType, type SenderDevice, type SenderInfo, SqliteAuthStore, type SqliteAuthStoreOptions, SqliteMessageStore, type SqliteMessageStoreOptions, type StateTransitionListener, type StickerMetadataType, type StickerOptions, StickerProcessor, type StickerShapeType, type StoreErrorCode, TaskQueue, type TaskQueueClock, type TaskQueueOptions, type TemplateOptions, type TextOptions, TypedEventEmitter, type TypedEventEmitterOptions, type UpsertPayload, type UrlButton, type UsernameResolveSocketLike, type VideoOptions, VideoProcessor, type WAPresence, ZaileysAutomationError, ZaileysBuilderError, ZaileysCommandError, ZaileysDomainError, type ZaileysLogger, ZaileysStoreError, adoptLogger, attachCommandDispatcher, buildMessageContext, chunk, createAuthGuard, createConnectionStateMachine, createLogger, createOperationGuard, createPairingFlow, createReconnectStrategy, deleteMessage, detectFileType, dropSpoofedSelfOnly, ffmpegTransform, forwardMessage, generateId, initializeFFmpeg, isFatalDisconnect, isJid, isRateLimited, makeCacheableAuthStore, mapDisconnectReason, normalizePhoneNumber, parseCommand, printQrToTerminal, reactToMessage, renderQrInTerminal, resolveUsername, runBroadcast, runMiddleware, shouldClearAuth, shouldReconnect, signalKeyStoreFromAuthStore, validateE164 };