@qadeer-xtech/stablebail 1.0.4 → 1.0.5
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/README.md +274 -64
- package/WAProto/WAProto.proto +6 -0
- package/WAProto/index.d.ts +20 -0
- package/WAProto/index.js +139 -0
- package/lib/Socket/chats.js +30 -1
- package/lib/Socket/messages-send.d.ts +19 -1
- package/lib/Socket/messages-send.js +134 -3
- package/lib/Socket/socket.js +7 -0
- package/lib/Types/Auth.d.ts +2 -1
- package/lib/Types/Socket.d.ts +2 -1
- package/lib/Utils/auth-utils.js +2 -2
- package/lib/Utils/banner.d.ts +6 -0
- package/lib/Utils/banner.js +19 -0
- package/lib/Utils/chat-utils.js +5 -1
- package/lib/Utils/history.js +1 -1
- package/lib/Utils/index.js +1 -1
- package/lib/Utils/process-message.js +4 -1
- package/lib/Utils/tc-token-utils.d.ts +3 -2
- package/lib/Utils/tc-token-utils.js +5 -1
- package/package.json +2 -2
- package/lib/Socket/chats.js.map +0 -1
- package/lib/Socket/messages-send.d.ts.map +0 -1
- package/lib/Socket/messages-send.js.map +0 -1
- package/lib/Types/Auth.d.ts.map +0 -1
- package/lib/Types/Socket.d.ts.map +0 -1
- package/lib/Utils/auth-utils.js.map +0 -1
- package/lib/Utils/chat-utils.js.map +0 -1
- package/lib/Utils/history.js.map +0 -1
- package/lib/Utils/index.js.map +0 -1
- package/lib/Utils/process-message.js.map +0 -1
- package/lib/Utils/tc-token-utils.d.ts.map +0 -1
- package/lib/Utils/tc-token-utils.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,111 +1,321 @@
|
|
|
1
|
-
|
|
1
|
+
@qadeer-xtech/stablebail
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
<p align="center">
|
|
4
|
+
**STABLEBAIL — POWERED BY TEAM QADEER**
|
|
5
|
+
</p>
|
|
4
6
|
|
|
5
|
-
|
|
7
|
+
A powerful WhatsApp Web API library built on the Baileys architecture, enhanced with custom fixes, improved media handling, advanced newsletter support, and additional WhatsApp features.
|
|
6
8
|
|
|
7
|
-
|
|
9
|
+
Designed for developers who need a familiar Baileys-compatible API with extra functionality and a smoother development experience.
|
|
10
|
+
|
|
11
|
+
## 📦 Installation
|
|
12
|
+
|
|
13
|
+
```bash
|
|
8
14
|
npm install @qadeer-xtech/stablebail
|
|
9
15
|
```
|
|
10
16
|
|
|
11
|
-
|
|
17
|
+
## Use as Official Baileys Replacement
|
|
18
|
+
|
|
19
|
+
To use StableBail without changing your existing import paths, add this alias to your "package.json":
|
|
12
20
|
|
|
13
21
|
```json
|
|
14
|
-
|
|
22
|
+
{
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"@whiskeysockets/baileys": "npm:@qadeer-xtech/stablebail@latest"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
This allows existing Baileys-based projects to use StableBail while keeping their original package imports.
|
|
30
|
+
|
|
31
|
+
## ✨ Key Features
|
|
32
|
+
|
|
33
|
+
- Baileys-Compatible API — Familiar socket methods and existing Baileys workflow.
|
|
34
|
+
- Newsletter Enhancements — Improved channel messaging, media uploads, subscriptions, and metadata fetching.
|
|
35
|
+
- Media Stream Fixes — Improved download error handling, media retries, and expired-link recovery.
|
|
36
|
+
- Windows Hybrid Support — Updated device identification for modern WhatsApp connections.
|
|
37
|
+
- LID Compatibility — Improved "onWhatsApp()" support for LID-based addresses.
|
|
38
|
+
- Status Mentions — Mention contacts and groups in WhatsApp status updates.
|
|
39
|
+
- CSToken / NCT Support — Additional token handling for LID-addressed messaging.
|
|
40
|
+
- Connection Banner — Optional branded startup banner.
|
|
41
|
+
- Improved Stability — Additional fixes for connection handling and media operations.
|
|
42
|
+
|
|
43
|
+
## 🔧 What's Included
|
|
44
|
+
|
|
45
|
+
### 1. Newsletter / Channel Support
|
|
46
|
+
|
|
47
|
+
Extended newsletter functionality with improved message fetching, media handling, and channel metadata support.
|
|
48
|
+
|
|
49
|
+
Available methods:
|
|
50
|
+
|
|
51
|
+
| Method | Description |
|
|
52
|
+
| --- | --- |
|
|
53
|
+
| "newsletterFromUrl()" | Fetch channel information from an invite link |
|
|
54
|
+
| "newsletterSubscribed()" | Get subscribed channels |
|
|
55
|
+
| "newsletterFetchAllSubscribe()" | Fetch all subscribed channels |
|
|
56
|
+
| "newsletterFetchMessages()" | Retrieve channel messages |
|
|
57
|
+
| "newsletterFetchUpdates()" | Fetch views and reactions |
|
|
58
|
+
| "newsletterReactionMode()" | Change channel reaction settings |
|
|
59
|
+
| "newsletterFollow()" | Follow a channel |
|
|
60
|
+
| "newsletterUnfollow()" | Unfollow a channel |
|
|
61
|
+
| "newsletterReactMessage()" | React to channel messages |
|
|
62
|
+
|
|
63
|
+
Additional improvements:
|
|
64
|
+
|
|
65
|
+
- Dedicated newsletter media upload handling.
|
|
66
|
+
- Improved channel message decoding.
|
|
67
|
+
- Better thumbnail handling.
|
|
68
|
+
- Protection against missing channel profile pictures.
|
|
69
|
+
- Support for legacy message-fetching arguments.
|
|
70
|
+
|
|
71
|
+
### 2. Media Streaming Improvements
|
|
72
|
+
|
|
73
|
+
Enhanced media download and retry handling.
|
|
74
|
+
|
|
75
|
+
- Proper stream error propagation.
|
|
76
|
+
- Prevents downloads from remaining stuck after stream failures.
|
|
77
|
+
- Improved recovery for expired media links.
|
|
78
|
+
- Handles CDN "403", "404", and "410" responses.
|
|
79
|
+
- Improved phone-based media reupload handling.
|
|
80
|
+
- Automatically converts Base64 media keys into usable byte data when required.
|
|
81
|
+
|
|
82
|
+
### 3. Connection & Device Compatibility
|
|
83
|
+
|
|
84
|
+
- Updated Windows device identification using "WIN_HYBRID".
|
|
85
|
+
- Updated default WhatsApp Web version configuration.
|
|
86
|
+
- Improved LID address handling in "onWhatsApp()".
|
|
87
|
+
- Returns LID information alongside standard WhatsApp lookup results when available.
|
|
88
|
+
|
|
89
|
+
Example response:
|
|
90
|
+
|
|
91
|
+
```js
|
|
92
|
+
{
|
|
93
|
+
jid,
|
|
94
|
+
exists,
|
|
95
|
+
lid
|
|
96
|
+
}
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
### 4. Status Mentions
|
|
100
|
+
|
|
101
|
+
StableBail includes "sendStatusMention()" for mentioning contacts or groups in WhatsApp status updates.
|
|
102
|
+
|
|
103
|
+
Mention individual contacts:
|
|
104
|
+
|
|
105
|
+
```js
|
|
106
|
+
await sock.sendStatusMention(
|
|
107
|
+
[
|
|
108
|
+
'923001234567@s.whatsapp.net',
|
|
109
|
+
'923009876543@s.whatsapp.net'
|
|
110
|
+
],
|
|
111
|
+
{
|
|
112
|
+
text: 'Eid Mubarak! 🌙'
|
|
113
|
+
}
|
|
114
|
+
)
|
|
15
115
|
```
|
|
16
116
|
|
|
17
|
-
|
|
117
|
+
Mention a group:
|
|
18
118
|
|
|
19
|
-
|
|
119
|
+
```js
|
|
120
|
+
await sock.sendStatusMention(
|
|
121
|
+
['120363000000000000@g.us'],
|
|
122
|
+
{
|
|
123
|
+
image: {
|
|
124
|
+
url: 'https://example.com/pic.jpg'
|
|
125
|
+
},
|
|
126
|
+
caption: 'Team Qadeer'
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
delayMs: 1500
|
|
130
|
+
}
|
|
131
|
+
)
|
|
132
|
+
```
|
|
20
133
|
|
|
21
|
-
|
|
22
|
-
- **Channel par media bhejna** — newsletter ke liye alag media upload rasta (`NEWSLETTER_MEDIA_PATH_MAP` + server thumbnail) lagaya hai; pehle channel par media ghalat raste se ja kar atak jata tha
|
|
23
|
-
- **Subscribed channels ki list** — naya `newsletterSubscribed()` (aur `newsletterFetchAllSubscribe()`), bilkul `groupFetchAllParticipating` ki tarah
|
|
24
|
-
- **Link se channel maloom karna** — naya `newsletterFromUrl(url)`: channel ke invite link se seedha metadata
|
|
25
|
-
- **Views aur reactions** — naya `newsletterFetchUpdates(jid)`: har message ke views count aur reactions ki list
|
|
26
|
-
- **Reaction mode** — naya `newsletterReactionMode(jid, mode)`: apne channel ki reaction setting badlein
|
|
27
|
-
- **Crash fix** — jis channel ki picture na ho, us ki metadata par ab crash nahi hota
|
|
134
|
+
"delayMs" controls the delay between mention operations. Its default value is "1500" milliseconds.
|
|
28
135
|
|
|
29
|
-
|
|
136
|
+
### 5. CSToken / NCT Support
|
|
30
137
|
|
|
31
|
-
|
|
138
|
+
Additional support for WhatsApp's NCT and contact token handling.
|
|
32
139
|
|
|
33
|
-
|
|
140
|
+
- Collects NCT salt through history and app-state synchronization.
|
|
141
|
+
- Stores available NCT salt in authentication credentials.
|
|
142
|
+
- Supports regular-high synchronization when history synchronization is disabled.
|
|
143
|
+
- Computes CSToken using HMAC-SHA256 when a required token is unavailable.
|
|
144
|
+
- Prioritizes existing TCToken data when available.
|
|
145
|
+
- Adds additional token handling for LID-addressed messaging.
|
|
34
146
|
|
|
35
|
-
|
|
36
|
-
- **Purani media par reupload** — CDN 404/410 de to bot phone se reupload mangta hai; fetch (undici) migration ke baad status check kharab tha, reupload kabhi manga hi nahi jata tha (official issue #2767).
|
|
37
|
-
- **Expire link (403) par bhi reupload** — signed media link expire ho jaye (oe param) to 403 ata tha aur media hamesha ke liye fail; ab WhatsApp Web ki tarah reupload se naya link ata hai.
|
|
38
|
-
- **mediaKey string wala bug** — database/JSON se restore hue messages ki mediaKey base64 string hoti thi, jis se retry decryption fail hoti thi; ab pehle bytes mein badalti hai.
|
|
147
|
+
The library also exposes existing reach-out timelock information through:
|
|
39
148
|
|
|
40
|
-
|
|
149
|
+
```js
|
|
150
|
+
sock.fetchAccountReachoutTimelock()
|
|
151
|
+
```
|
|
41
152
|
|
|
42
|
-
|
|
153
|
+
And the connection update event can provide "reachoutTimeLock" information.
|
|
43
154
|
|
|
44
|
-
|
|
155
|
+
### 6. Custom Connection Banner
|
|
45
156
|
|
|
46
|
-
|
|
47
|
-
- **WhatsApp version pin taza** — default version 2.3000.1048663002 kar diya. Purana pin pairing ko khamoshi se fail karta tha (phone par "Couldn't link device", socket par 408 / 405 client_too_old).
|
|
48
|
-
- **onWhatsApp ab LID par bhi kaam karta hai (official issue #1522)** — pehle @lid dete hi khali jawab ata tha. Ab pehle local LID<->number mapping se number nikala jata hai, phir aam check chalta hai aur jawab mein `lid` bhi milta hai: `{ jid, exists, lid }`. Jis LID ki mapping bot ke paas maujud hi nahi, wo pehle ki tarah skip hoti hai (ghalat exists:false nahi jata).
|
|
157
|
+
StableBail includes an optional branded connection banner.
|
|
49
158
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
159
|
+
```
|
|
160
|
+
╭───────────────────────────╮
|
|
161
|
+
│ ✦ Q A D E E R ✦ │
|
|
162
|
+
│ stablebail • Qadeer-Xtech │
|
|
163
|
+
╰───────────────────────────╯
|
|
164
|
+
```
|
|
54
165
|
|
|
55
|
-
|
|
166
|
+
The banner is displayed once when the connection opens.
|
|
56
167
|
|
|
57
|
-
|
|
168
|
+
To disable it:
|
|
58
169
|
|
|
59
170
|
```js
|
|
60
|
-
const
|
|
61
|
-
|
|
171
|
+
const sock = makeWASocket({
|
|
172
|
+
auth: state,
|
|
173
|
+
printQRInTerminal: true,
|
|
174
|
+
banner: false
|
|
175
|
+
})
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
## 🚀 Basic Usage
|
|
179
|
+
|
|
180
|
+
```js
|
|
181
|
+
const makeWASocket =
|
|
182
|
+
require('@qadeer-xtech/stablebail').default
|
|
183
|
+
|
|
184
|
+
const {
|
|
185
|
+
useMultiFileAuthState,
|
|
186
|
+
DisconnectReason
|
|
187
|
+
} = require('@qadeer-xtech/stablebail')
|
|
62
188
|
|
|
63
189
|
async function startBot() {
|
|
64
|
-
const { state, saveCreds } =
|
|
65
|
-
|
|
190
|
+
const { state, saveCreds } =
|
|
191
|
+
await useMultiFileAuthState('auth_info')
|
|
192
|
+
|
|
193
|
+
const sock = makeWASocket({
|
|
194
|
+
auth: state,
|
|
195
|
+
printQRInTerminal: true
|
|
196
|
+
})
|
|
197
|
+
|
|
66
198
|
sock.ev.on('creds.update', saveCreds)
|
|
199
|
+
|
|
67
200
|
return sock
|
|
68
201
|
}
|
|
202
|
+
|
|
203
|
+
startBot()
|
|
69
204
|
```
|
|
70
205
|
|
|
71
|
-
##
|
|
206
|
+
## 📡 Newsletter Examples
|
|
207
|
+
|
|
208
|
+
Fetch Channel Information
|
|
72
209
|
|
|
73
210
|
```js
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
211
|
+
const channel = await sock.newsletterFromUrl(
|
|
212
|
+
'https://whatsapp.com/channel/CHANNEL_ID'
|
|
213
|
+
)
|
|
214
|
+
|
|
215
|
+
console.log(
|
|
216
|
+
channel.id,
|
|
217
|
+
channel.name,
|
|
218
|
+
channel.subscribers
|
|
219
|
+
)
|
|
220
|
+
```
|
|
77
221
|
|
|
78
|
-
|
|
222
|
+
Follow / Unfollow
|
|
223
|
+
|
|
224
|
+
```js
|
|
79
225
|
await sock.newsletterFollow(channel.id)
|
|
226
|
+
|
|
80
227
|
await sock.newsletterUnfollow(channel.id)
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
Get Subscribed Channels
|
|
231
|
+
|
|
232
|
+
```js
|
|
233
|
+
const channels = await sock.newsletterSubscribed()
|
|
81
234
|
|
|
82
|
-
|
|
83
|
-
|
|
235
|
+
console.log(channels)
|
|
236
|
+
```
|
|
84
237
|
|
|
85
|
-
|
|
86
|
-
const msgs = await sock.newsletterFetchMessages('jid', channel.id, 20)
|
|
87
|
-
const msgsOld = await sock.newsletterFetchMessages(channel.id, 20)
|
|
238
|
+
Fetch Channel Messages
|
|
88
239
|
|
|
89
|
-
|
|
90
|
-
const
|
|
91
|
-
|
|
240
|
+
```js
|
|
241
|
+
const messages = await sock.newsletterFetchMessages(
|
|
242
|
+
channel.id,
|
|
243
|
+
20
|
|
244
|
+
)
|
|
92
245
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
await sock.sendMessage(channel.id, { image: { url: 'https://example.com/pic.jpg' }, caption: 'Nayi post' })
|
|
246
|
+
console.log(messages)
|
|
247
|
+
```
|
|
96
248
|
|
|
97
|
-
|
|
98
|
-
|
|
249
|
+
Fetch Views & Reactions
|
|
250
|
+
|
|
251
|
+
```js
|
|
252
|
+
const updates = await sock.newsletterFetchUpdates(
|
|
253
|
+
channel.id,
|
|
254
|
+
20
|
|
255
|
+
)
|
|
256
|
+
|
|
257
|
+
console.log(
|
|
258
|
+
updates[0].server_id,
|
|
259
|
+
updates[0].views,
|
|
260
|
+
updates[0].reactions
|
|
261
|
+
)
|
|
99
262
|
```
|
|
100
263
|
|
|
101
|
-
|
|
264
|
+
Send Channel Message
|
|
265
|
+
|
|
266
|
+
```js
|
|
267
|
+
await sock.sendMessage(channel.id, {
|
|
268
|
+
text: 'Assalam o Alaikum! 👋'
|
|
269
|
+
})
|
|
270
|
+
```
|
|
271
|
+
|
|
272
|
+
Send Channel Image
|
|
273
|
+
|
|
274
|
+
```js
|
|
275
|
+
await sock.sendMessage(channel.id, {
|
|
276
|
+
image: {
|
|
277
|
+
url: 'https://example.com/pic.jpg'
|
|
278
|
+
},
|
|
279
|
+
caption: 'New Channel Update'
|
|
280
|
+
})
|
|
281
|
+
```
|
|
282
|
+
|
|
283
|
+
React to Channel Message
|
|
284
|
+
|
|
285
|
+
```js
|
|
286
|
+
await sock.newsletterReactMessage(
|
|
287
|
+
channel.id,
|
|
288
|
+
updates[0].server_id,
|
|
289
|
+
'❤️'
|
|
290
|
+
)
|
|
291
|
+
```
|
|
292
|
+
|
|
293
|
+
## ⚙️ Compatibility
|
|
294
|
+
|
|
295
|
+
- Node.js environment
|
|
296
|
+
- Baileys-compatible socket workflow
|
|
297
|
+
- Existing Baileys-based bot projects
|
|
298
|
+
- Multi-file authentication
|
|
299
|
+
- WhatsApp Web connection workflows
|
|
300
|
+
|
|
301
|
+
StableBail is designed to minimize migration work for existing Baileys users. However, custom methods and options are specific to this package.
|
|
302
|
+
|
|
303
|
+
## ⚠️ Important Notes
|
|
304
|
+
|
|
305
|
+
- Some custom features may require live WhatsApp testing.
|
|
306
|
+
- Status mention functionality should be tested with a dedicated account before production use.
|
|
307
|
+
- WhatsApp may change its internal protocols without notice.
|
|
308
|
+
- Connection restrictions, account-level limitations, and server-side errors cannot always be resolved through library-side changes.
|
|
309
|
+
- Always keep your authentication credentials private.
|
|
310
|
+
|
|
311
|
+
## 📄 License
|
|
312
|
+
|
|
313
|
+
MIT License
|
|
314
|
+
|
|
315
|
+
## 🖤 Credits
|
|
102
316
|
|
|
103
|
-
|
|
104
|
-
- **1.0.3** — Media stream download fixes
|
|
105
|
-
- **1.0.2** — Channels/newsletter fixes
|
|
106
|
-
- **1.0.1** — Dependencies apne packages par: `@qadeer-xtech/libsignal`, `@qadeer-xtech/whatsapp-rust-bridge`
|
|
107
|
-
- **1.0.0** — Official Baileys 7.0.0-rc14 ki saaf copy
|
|
317
|
+
Developed and maintained by Team Qadeer.
|
|
108
318
|
|
|
109
|
-
|
|
319
|
+
STABLEBAIL — Built for developers. Enhanced for performance.
|
|
110
320
|
|
|
111
|
-
|
|
321
|
+
"Powered by Team Qadeer"
|
package/WAProto/WAProto.proto
CHANGED
|
@@ -1844,6 +1844,7 @@ message HistorySync {
|
|
|
1844
1844
|
optional string companionMetaNonce = 16;
|
|
1845
1845
|
optional bytes shareableChatIdentifierEncryptionKey = 17;
|
|
1846
1846
|
repeated Account accounts = 18;
|
|
1847
|
+
optional bytes nctSalt = 19;
|
|
1847
1848
|
enum BotAIWaitListState {
|
|
1848
1849
|
IN_WAITLIST = 0;
|
|
1849
1850
|
AI_AVAILABLE = 1;
|
|
@@ -4527,12 +4528,17 @@ message SyncActionValue {
|
|
|
4527
4528
|
optional NewsletterSavedInterestsAction newsletterSavedInterestsAction = 75;
|
|
4528
4529
|
optional AiThreadRenameAction aiThreadRenameAction = 76;
|
|
4529
4530
|
optional InteractiveMessageAction interactiveMessageAction = 77;
|
|
4531
|
+
optional NctSaltSyncAction nctSaltSyncAction = 80;
|
|
4530
4532
|
message AgentAction {
|
|
4531
4533
|
optional string name = 1;
|
|
4532
4534
|
optional int32 deviceID = 2;
|
|
4533
4535
|
optional bool isDeleted = 3;
|
|
4534
4536
|
}
|
|
4535
4537
|
|
|
4538
|
+
message NctSaltSyncAction {
|
|
4539
|
+
optional bytes salt = 1;
|
|
4540
|
+
}
|
|
4541
|
+
|
|
4536
4542
|
message AiThreadRenameAction {
|
|
4537
4543
|
optional string newTitle = 1;
|
|
4538
4544
|
}
|
package/WAProto/index.d.ts
CHANGED
|
@@ -4532,6 +4532,7 @@ export namespace proto {
|
|
|
4532
4532
|
companionMetaNonce?: (string|null);
|
|
4533
4533
|
shareableChatIdentifierEncryptionKey?: (Uint8Array|null);
|
|
4534
4534
|
accounts?: (proto.IAccount[]|null);
|
|
4535
|
+
nctSalt?: (Uint8Array|null);
|
|
4535
4536
|
}
|
|
4536
4537
|
|
|
4537
4538
|
class HistorySync implements IHistorySync {
|
|
@@ -4553,6 +4554,7 @@ export namespace proto {
|
|
|
4553
4554
|
public companionMetaNonce?: (string|null);
|
|
4554
4555
|
public shareableChatIdentifierEncryptionKey?: (Uint8Array|null);
|
|
4555
4556
|
public accounts: proto.IAccount[];
|
|
4557
|
+
public nctSalt?: (Uint8Array|null);
|
|
4556
4558
|
public static create(properties?: proto.IHistorySync): proto.HistorySync;
|
|
4557
4559
|
public static encode(m: proto.IHistorySync, w?: $protobuf.Writer): $protobuf.Writer;
|
|
4558
4560
|
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.HistorySync;
|
|
@@ -11494,6 +11496,7 @@ export namespace proto {
|
|
|
11494
11496
|
newsletterSavedInterestsAction?: (proto.SyncActionValue.INewsletterSavedInterestsAction|null);
|
|
11495
11497
|
aiThreadRenameAction?: (proto.SyncActionValue.IAiThreadRenameAction|null);
|
|
11496
11498
|
interactiveMessageAction?: (proto.SyncActionValue.IInteractiveMessageAction|null);
|
|
11499
|
+
nctSaltSyncAction?: (proto.SyncActionValue.INctSaltSyncAction|null);
|
|
11497
11500
|
}
|
|
11498
11501
|
|
|
11499
11502
|
class SyncActionValue implements ISyncActionValue {
|
|
@@ -11567,6 +11570,7 @@ export namespace proto {
|
|
|
11567
11570
|
public newsletterSavedInterestsAction?: (proto.SyncActionValue.INewsletterSavedInterestsAction|null);
|
|
11568
11571
|
public aiThreadRenameAction?: (proto.SyncActionValue.IAiThreadRenameAction|null);
|
|
11569
11572
|
public interactiveMessageAction?: (proto.SyncActionValue.IInteractiveMessageAction|null);
|
|
11573
|
+
public nctSaltSyncAction?: (proto.SyncActionValue.INctSaltSyncAction|null);
|
|
11570
11574
|
public static create(properties?: proto.ISyncActionValue): proto.SyncActionValue;
|
|
11571
11575
|
public static encode(m: proto.ISyncActionValue, w?: $protobuf.Writer): $protobuf.Writer;
|
|
11572
11576
|
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.SyncActionValue;
|
|
@@ -11598,6 +11602,22 @@ export namespace proto {
|
|
|
11598
11602
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
11599
11603
|
}
|
|
11600
11604
|
|
|
11605
|
+
interface INctSaltSyncAction {
|
|
11606
|
+
salt?: (Uint8Array|null);
|
|
11607
|
+
}
|
|
11608
|
+
|
|
11609
|
+
class NctSaltSyncAction implements INctSaltSyncAction {
|
|
11610
|
+
constructor(p?: proto.SyncActionValue.INctSaltSyncAction);
|
|
11611
|
+
public salt?: (Uint8Array|null);
|
|
11612
|
+
public static create(properties?: proto.SyncActionValue.INctSaltSyncAction): proto.SyncActionValue.NctSaltSyncAction;
|
|
11613
|
+
public static encode(m: proto.SyncActionValue.INctSaltSyncAction, w?: $protobuf.Writer): $protobuf.Writer;
|
|
11614
|
+
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.SyncActionValue.NctSaltSyncAction;
|
|
11615
|
+
public static fromObject(d: { [k: string]: any }): proto.SyncActionValue.NctSaltSyncAction;
|
|
11616
|
+
public static toObject(m: proto.SyncActionValue.NctSaltSyncAction, o?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
11617
|
+
public toJSON(): { [k: string]: any };
|
|
11618
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
11619
|
+
}
|
|
11620
|
+
|
|
11601
11621
|
interface IAiThreadRenameAction {
|
|
11602
11622
|
newTitle?: (string|null);
|
|
11603
11623
|
}
|