@itsliaaa/baileys 0.3.5 → 0.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/WAProto/index.d.ts +67 -61
- package/WAProto/index.js +428 -426
- package/lib/Defaults/index.d.ts +0 -4
- package/lib/Defaults/index.d.ts.map +1 -1
- package/lib/Defaults/index.js +1 -5
- package/lib/Defaults/index.js.map +1 -1
- package/lib/Socket/business.d.ts +2 -2
- package/lib/Socket/chats.d.ts +2 -2
- package/lib/Socket/chats.d.ts.map +1 -1
- package/lib/Socket/chats.js +6 -3
- package/lib/Socket/chats.js.map +1 -1
- package/lib/Socket/communities.d.ts +2 -2
- package/lib/Socket/groups.d.ts +2 -2
- package/lib/Socket/index.d.ts +2 -2
- package/lib/Socket/messages-recv.d.ts +2 -2
- package/lib/Socket/messages-send.d.ts +2 -2
- package/lib/Socket/newsletter.d.ts +2 -2
- package/lib/Utils/generics.js +1 -1
- package/lib/Utils/rich-message-utils.d.ts +0 -32
- package/lib/Utils/rich-message-utils.d.ts.map +1 -1
- package/lib/Utils/rich-message-utils.js +8 -11
- package/lib/Utils/rich-message-utils.js.map +1 -1
- package/package.json +30 -32
package/WAProto/index.d.ts
CHANGED
|
@@ -1118,7 +1118,10 @@ export namespace proto {
|
|
|
1118
1118
|
JSON_PATCH_STREAMING = 58,
|
|
1119
1119
|
AI_TAB_FORCE_CLIPPY = 59,
|
|
1120
1120
|
UNIFIED_RESPONSE_EMBEDDED_SCREENS = 60,
|
|
1121
|
-
AI_SUBSCRIPTION_ENABLED = 61
|
|
1121
|
+
AI_SUBSCRIPTION_ENABLED = 61,
|
|
1122
|
+
UNIFIED_RESPONSE_AI_CONTENT_SEARCH_ENABLED = 62,
|
|
1123
|
+
UNIFIED_RESPONSE_MARKDOWN_LINKS_ENABLED = 63,
|
|
1124
|
+
AI_RICH_RESPONSE_MAPS_V2_ENABLED = 64
|
|
1122
1125
|
}
|
|
1123
1126
|
}
|
|
1124
1127
|
|
|
@@ -3640,7 +3643,9 @@ export namespace proto {
|
|
|
3640
3643
|
OFFERS = 7,
|
|
3641
3644
|
BESTSELLERS = 8,
|
|
3642
3645
|
MENU = 9,
|
|
3643
|
-
ABOUT = 10
|
|
3646
|
+
ABOUT = 10,
|
|
3647
|
+
SHOP = 11,
|
|
3648
|
+
ORDER = 12
|
|
3644
3649
|
}
|
|
3645
3650
|
}
|
|
3646
3651
|
|
|
@@ -4824,7 +4829,8 @@ export namespace proto {
|
|
|
4824
4829
|
INJECTED = 1,
|
|
4825
4830
|
INJECTED_PARTIAL = 2,
|
|
4826
4831
|
INJECTION_FAILED = 3,
|
|
4827
|
-
INJECTION_FAILED_NO_RETRY = 4
|
|
4832
|
+
INJECTION_FAILED_NO_RETRY = 4,
|
|
4833
|
+
DEDUPED = 5
|
|
4828
4834
|
}
|
|
4829
4835
|
}
|
|
4830
4836
|
|
|
@@ -5876,8 +5882,9 @@ export namespace proto {
|
|
|
5876
5882
|
pollAddOptionMessage?: (proto.Message.IPollAddOptionMessage|null);
|
|
5877
5883
|
eventInviteMessage?: (proto.Message.IEventInviteMessage|null);
|
|
5878
5884
|
groupRootKeyShare?: (proto.IGroupRootKeyShare|null);
|
|
5879
|
-
|
|
5885
|
+
paymentReminderMessage?: (proto.Message.IPaymentReminderMessage|null);
|
|
5880
5886
|
splitPaymentMessage?: (proto.Message.ISplitPaymentMessage|null);
|
|
5887
|
+
newsletterAdminProfileStatusMessage?: (proto.Message.IFutureProofMessage|null);
|
|
5881
5888
|
}
|
|
5882
5889
|
|
|
5883
5890
|
class Message implements IMessage {
|
|
@@ -5985,8 +5992,9 @@ export namespace proto {
|
|
|
5985
5992
|
public pollAddOptionMessage?: (proto.Message.IPollAddOptionMessage|null);
|
|
5986
5993
|
public eventInviteMessage?: (proto.Message.IEventInviteMessage|null);
|
|
5987
5994
|
public groupRootKeyShare?: (proto.IGroupRootKeyShare|null);
|
|
5988
|
-
public
|
|
5995
|
+
public paymentReminderMessage?: (proto.Message.IPaymentReminderMessage|null);
|
|
5989
5996
|
public splitPaymentMessage?: (proto.Message.ISplitPaymentMessage|null);
|
|
5997
|
+
public newsletterAdminProfileStatusMessage?: (proto.Message.IFutureProofMessage|null);
|
|
5990
5998
|
public static create(properties?: proto.IMessage): proto.Message;
|
|
5991
5999
|
public static encode(m: proto.IMessage, w?: $protobuf.Writer): $protobuf.Writer;
|
|
5992
6000
|
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message;
|
|
@@ -6907,6 +6915,7 @@ export namespace proto {
|
|
|
6907
6915
|
caption?: (string|null);
|
|
6908
6916
|
isCanceled?: (boolean|null);
|
|
6909
6917
|
endTime?: (number|Long|null);
|
|
6918
|
+
callLink?: (string|null);
|
|
6910
6919
|
}
|
|
6911
6920
|
|
|
6912
6921
|
class EventInviteMessage implements IEventInviteMessage {
|
|
@@ -6919,6 +6928,7 @@ export namespace proto {
|
|
|
6919
6928
|
public caption?: (string|null);
|
|
6920
6929
|
public isCanceled?: (boolean|null);
|
|
6921
6930
|
public endTime?: (number|Long|null);
|
|
6931
|
+
public callLink?: (string|null);
|
|
6922
6932
|
public static create(properties?: proto.Message.IEventInviteMessage): proto.Message.EventInviteMessage;
|
|
6923
6933
|
public static encode(m: proto.Message.IEventInviteMessage, w?: $protobuf.Writer): $protobuf.Writer;
|
|
6924
6934
|
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.EventInviteMessage;
|
|
@@ -8439,62 +8449,6 @@ export namespace proto {
|
|
|
8439
8449
|
}
|
|
8440
8450
|
}
|
|
8441
8451
|
|
|
8442
|
-
interface IP2PPaymentReminderNotification {
|
|
8443
|
-
reminderId?: (string|null);
|
|
8444
|
-
amount?: (proto.IMoney|null);
|
|
8445
|
-
frequency?: (proto.Message.P2PPaymentReminderNotification.ReminderFrequency|null);
|
|
8446
|
-
nextReminderTimestamp?: (number|Long|null);
|
|
8447
|
-
expiryTimestamp?: (number|Long|null);
|
|
8448
|
-
state?: (proto.Message.P2PPaymentReminderNotification.ReminderState|null);
|
|
8449
|
-
description?: (string|null);
|
|
8450
|
-
creatorJid?: (string|null);
|
|
8451
|
-
receiverJid?: (string|null);
|
|
8452
|
-
upiId?: (string|null);
|
|
8453
|
-
createdTimestamp?: (number|Long|null);
|
|
8454
|
-
}
|
|
8455
|
-
|
|
8456
|
-
class P2PPaymentReminderNotification implements IP2PPaymentReminderNotification {
|
|
8457
|
-
constructor(p?: proto.Message.IP2PPaymentReminderNotification);
|
|
8458
|
-
public reminderId?: (string|null);
|
|
8459
|
-
public amount?: (proto.IMoney|null);
|
|
8460
|
-
public frequency?: (proto.Message.P2PPaymentReminderNotification.ReminderFrequency|null);
|
|
8461
|
-
public nextReminderTimestamp?: (number|Long|null);
|
|
8462
|
-
public expiryTimestamp?: (number|Long|null);
|
|
8463
|
-
public state?: (proto.Message.P2PPaymentReminderNotification.ReminderState|null);
|
|
8464
|
-
public description?: (string|null);
|
|
8465
|
-
public creatorJid?: (string|null);
|
|
8466
|
-
public receiverJid?: (string|null);
|
|
8467
|
-
public upiId?: (string|null);
|
|
8468
|
-
public createdTimestamp?: (number|Long|null);
|
|
8469
|
-
public static create(properties?: proto.Message.IP2PPaymentReminderNotification): proto.Message.P2PPaymentReminderNotification;
|
|
8470
|
-
public static encode(m: proto.Message.IP2PPaymentReminderNotification, w?: $protobuf.Writer): $protobuf.Writer;
|
|
8471
|
-
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.P2PPaymentReminderNotification;
|
|
8472
|
-
public static fromObject(d: { [k: string]: any }): proto.Message.P2PPaymentReminderNotification;
|
|
8473
|
-
public static toObject(m: proto.Message.P2PPaymentReminderNotification, o?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
8474
|
-
public toJSON(): { [k: string]: any };
|
|
8475
|
-
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
8476
|
-
}
|
|
8477
|
-
|
|
8478
|
-
namespace P2PPaymentReminderNotification {
|
|
8479
|
-
|
|
8480
|
-
enum ReminderFrequency {
|
|
8481
|
-
UNKNOWN_FREQUENCY = 0,
|
|
8482
|
-
WEEKLY = 1,
|
|
8483
|
-
BIWEEKLY = 2,
|
|
8484
|
-
MONTHLY = 3,
|
|
8485
|
-
CUSTOM = 4
|
|
8486
|
-
}
|
|
8487
|
-
|
|
8488
|
-
enum ReminderState {
|
|
8489
|
-
UNKNOWN_STATE = 0,
|
|
8490
|
-
ACTIVE = 1,
|
|
8491
|
-
PAUSED = 2,
|
|
8492
|
-
STOPPED = 3,
|
|
8493
|
-
EXPIRED = 4,
|
|
8494
|
-
CANCELLED = 5
|
|
8495
|
-
}
|
|
8496
|
-
}
|
|
8497
|
-
|
|
8498
8452
|
interface IPaymentExtendedMetadata {
|
|
8499
8453
|
type?: (number|null);
|
|
8500
8454
|
platform?: (string|null);
|
|
@@ -8631,6 +8585,58 @@ export namespace proto {
|
|
|
8631
8585
|
}
|
|
8632
8586
|
}
|
|
8633
8587
|
|
|
8588
|
+
interface IPaymentReminderMessage {
|
|
8589
|
+
reminderId?: (string|null);
|
|
8590
|
+
instanceId?: (string|null);
|
|
8591
|
+
description?: (string|null);
|
|
8592
|
+
frequency?: (proto.Message.PaymentReminderMessage.ReminderFrequency|null);
|
|
8593
|
+
status?: (proto.Message.PaymentReminderMessage.ReminderStatus|null);
|
|
8594
|
+
payeeVpa?: (string|null);
|
|
8595
|
+
payeeJid?: (string|null);
|
|
8596
|
+
payerJid?: (string|null);
|
|
8597
|
+
amount?: (proto.IMoney|null);
|
|
8598
|
+
}
|
|
8599
|
+
|
|
8600
|
+
class PaymentReminderMessage implements IPaymentReminderMessage {
|
|
8601
|
+
constructor(p?: proto.Message.IPaymentReminderMessage);
|
|
8602
|
+
public reminderId?: (string|null);
|
|
8603
|
+
public instanceId?: (string|null);
|
|
8604
|
+
public description?: (string|null);
|
|
8605
|
+
public frequency?: (proto.Message.PaymentReminderMessage.ReminderFrequency|null);
|
|
8606
|
+
public status?: (proto.Message.PaymentReminderMessage.ReminderStatus|null);
|
|
8607
|
+
public payeeVpa?: (string|null);
|
|
8608
|
+
public payeeJid?: (string|null);
|
|
8609
|
+
public payerJid?: (string|null);
|
|
8610
|
+
public amount?: (proto.IMoney|null);
|
|
8611
|
+
public static create(properties?: proto.Message.IPaymentReminderMessage): proto.Message.PaymentReminderMessage;
|
|
8612
|
+
public static encode(m: proto.Message.IPaymentReminderMessage, w?: $protobuf.Writer): $protobuf.Writer;
|
|
8613
|
+
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.PaymentReminderMessage;
|
|
8614
|
+
public static fromObject(d: { [k: string]: any }): proto.Message.PaymentReminderMessage;
|
|
8615
|
+
public static toObject(m: proto.Message.PaymentReminderMessage, o?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
8616
|
+
public toJSON(): { [k: string]: any };
|
|
8617
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
8618
|
+
}
|
|
8619
|
+
|
|
8620
|
+
namespace PaymentReminderMessage {
|
|
8621
|
+
|
|
8622
|
+
enum ReminderFrequency {
|
|
8623
|
+
REMINDER_FREQUENCY_UNKNOWN = 0,
|
|
8624
|
+
WEEKLY = 1,
|
|
8625
|
+
BI_WEEKLY = 2,
|
|
8626
|
+
MONTHLY = 3,
|
|
8627
|
+
QUARTERLY = 4
|
|
8628
|
+
}
|
|
8629
|
+
|
|
8630
|
+
enum ReminderStatus {
|
|
8631
|
+
REMINDER_STATUS_UNKNOWN = 0,
|
|
8632
|
+
ACTIVE = 1,
|
|
8633
|
+
CANCELLED_BY_CREATOR = 2,
|
|
8634
|
+
STOPPED_BY_RECEIVER = 3,
|
|
8635
|
+
EXPIRED = 4,
|
|
8636
|
+
PAID = 5
|
|
8637
|
+
}
|
|
8638
|
+
}
|
|
8639
|
+
|
|
8634
8640
|
interface IPeerDataOperationRequestMessage {
|
|
8635
8641
|
peerDataOperationRequestType?: (proto.Message.PeerDataOperationRequestType|null);
|
|
8636
8642
|
requestStickerReupload?: (proto.Message.PeerDataOperationRequestMessage.IRequestStickerReupload[]|null);
|