zaileys 4.2.0 → 4.3.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
@@ -478,6 +478,7 @@ declare class CommunityModule {
478
478
 
479
479
  interface SenderInfo {
480
480
  jid: string;
481
+ deviceJid?: string;
481
482
  lid?: string;
482
483
  pn?: string;
483
484
  username?: string;
@@ -629,6 +630,7 @@ type NewsletterPayload = {
629
630
  update?: Record<string, unknown>;
630
631
  });
631
632
  type InboundEventMap = {
633
+ message: MessageContext;
632
634
  text: MessageContext;
633
635
  image: MessageContext;
634
636
  video: MessageContext;
@@ -759,6 +761,7 @@ interface TemplateMedia {
759
761
  type ContextMedia = MediaAttachment | PollMedia | ContactMedia | LocationMedia | EventMedia | ButtonsMedia | ListMedia | InteractiveMedia | TemplateMedia;
760
762
  interface MessageContext {
761
763
  uniqueId: string;
764
+ staticId: string;
762
765
  channelId: string;
763
766
  chatId: string;
764
767
  chatType: ChatType;
@@ -1326,6 +1329,7 @@ declare class Client extends TypedEventEmitter<ClientEventMap> {
1326
1329
  private handleAuthExhausted;
1327
1330
  private handleOpen;
1328
1331
  private resolveMessageForResend;
1332
+ private lidToPn;
1329
1333
  private lookupQuoted;
1330
1334
  private handleClose;
1331
1335
  private rejectPendingConnect;
package/dist/index.d.ts CHANGED
@@ -478,6 +478,7 @@ declare class CommunityModule {
478
478
 
479
479
  interface SenderInfo {
480
480
  jid: string;
481
+ deviceJid?: string;
481
482
  lid?: string;
482
483
  pn?: string;
483
484
  username?: string;
@@ -629,6 +630,7 @@ type NewsletterPayload = {
629
630
  update?: Record<string, unknown>;
630
631
  });
631
632
  type InboundEventMap = {
633
+ message: MessageContext;
632
634
  text: MessageContext;
633
635
  image: MessageContext;
634
636
  video: MessageContext;
@@ -759,6 +761,7 @@ interface TemplateMedia {
759
761
  type ContextMedia = MediaAttachment | PollMedia | ContactMedia | LocationMedia | EventMedia | ButtonsMedia | ListMedia | InteractiveMedia | TemplateMedia;
760
762
  interface MessageContext {
761
763
  uniqueId: string;
764
+ staticId: string;
762
765
  channelId: string;
763
766
  chatId: string;
764
767
  chatType: ChatType;
@@ -1326,6 +1329,7 @@ declare class Client extends TypedEventEmitter<ClientEventMap> {
1326
1329
  private handleAuthExhausted;
1327
1330
  private handleOpen;
1328
1331
  private resolveMessageForResend;
1332
+ private lidToPn;
1329
1333
  private lookupQuoted;
1330
1334
  private handleClose;
1331
1335
  private rejectPendingConnect;