cuki-bailx 1.2.6 → 2.0.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/AICommon.js +27981 -0
- package/WAProto/AICommon.proto +713 -0
- package/WAProto/Ephemeral.js +295 -0
- package/WAProto/Ephemeral.proto +7 -0
- package/WAProto/cuki.js +7 -0
- package/lib/Defaults/baileys-version.json +3 -0
- package/lib/Defaults/index.js +56 -31
- package/lib/Signal/libsignal.js +0 -2
- package/lib/Socket/chats.js +87 -131
- package/lib/Socket/messages-recv.js +1 -1
- package/lib/Socket/messages-send.js +268 -9
- package/lib/Socket/newsletter.js +14 -1
- package/lib/Socket/setup.js +433 -0
- package/lib/Socket/socket.js +1 -1
- package/lib/Store/make-in-memory-store.js +1 -1
- package/lib/Utils/baileys-event-stream.js +1 -1
- package/lib/Utils/event-buffer.js +2 -2
- package/lib/Utils/generics.js +10 -38
- package/lib/Utils/index.js +0 -2
- package/lib/Utils/messages-media.js +234 -64
- package/lib/Utils/messages.js +127 -220
- package/lib/Utils/noise-handler.js +1 -0
- package/lib/Utils/process-message.js +25 -108
- package/lib/Utils/signal.js +10 -1
- package/lib/Utils/use-multi-file-auth-state.js +1 -1
- package/lib/Utils/validate-connection.js +5 -1
- package/lib/WABinary/jid-utils.js +1 -17
- package/lib/index.js +1 -1
- package/package.json +19 -29
- package/LICENSE +0 -21
- package/engine-requirements.js +0 -10
- package/lib/Defaults/vyzen-baileysx-version.json +0 -3
- package/lib/Utils/browser-utils.js +0 -35
- package/lib/Utils/message-retry-manager.js +0 -128
|
@@ -0,0 +1,713 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
package AICommon;
|
|
3
|
+
|
|
4
|
+
import "../StatusAttributions/StatusAttributions.proto";
|
|
5
|
+
import "../Protocol/Protocol.proto";
|
|
6
|
+
|
|
7
|
+
message AIRichResponseSubMessage {
|
|
8
|
+
optional AIRichResponseSubMessageType messageType = 1;
|
|
9
|
+
optional AIRichResponseGridImageMetadata gridImageMetadata = 2;
|
|
10
|
+
optional string messageText = 3;
|
|
11
|
+
optional AIRichResponseInlineImageMetadata imageMetadata = 4;
|
|
12
|
+
optional AIRichResponseCodeMetadata codeMetadata = 5;
|
|
13
|
+
optional AIRichResponseTableMetadata tableMetadata = 6;
|
|
14
|
+
optional AIRichResponseDynamicMetadata dynamicMetadata = 7;
|
|
15
|
+
optional AIRichResponseLatexMetadata latexMetadata = 8;
|
|
16
|
+
optional AIRichResponseMapMetadata mapMetadata = 9;
|
|
17
|
+
optional AIRichResponseContentItemsMetadata contentItemsMetadata = 10;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
message AIRichResponseContentItemsMetadata {
|
|
21
|
+
repeated AIRichResponseContentItemMetadata itemsMetadata = 1;
|
|
22
|
+
optional ContentType contentType = 2;
|
|
23
|
+
message AIRichResponseContentItemMetadata {
|
|
24
|
+
oneof aIRichResponseContentItem {
|
|
25
|
+
AIRichResponseContentItemsMetadata.AIRichResponseReelItem reelItem = 1;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
message AIRichResponseReelItem {
|
|
29
|
+
optional string title = 1;
|
|
30
|
+
optional string profileIconUrl = 2;
|
|
31
|
+
optional string thumbnailUrl = 3;
|
|
32
|
+
optional string videoUrl = 4;
|
|
33
|
+
}
|
|
34
|
+
enum ContentType {
|
|
35
|
+
DEFAULT = 0;
|
|
36
|
+
CAROUSEL = 1;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
message AIRichResponseMapMetadata {
|
|
41
|
+
optional double centerLatitude = 1;
|
|
42
|
+
optional double centerLongitude = 2;
|
|
43
|
+
optional double latitudeDelta = 3;
|
|
44
|
+
optional double longitudeDelta = 4;
|
|
45
|
+
repeated AIRichResponseMapAnnotation annotations = 5;
|
|
46
|
+
optional bool showInfoList = 6;
|
|
47
|
+
message AIRichResponseMapAnnotation {
|
|
48
|
+
optional uint32 annotationNumber = 1;
|
|
49
|
+
optional double latitude = 2;
|
|
50
|
+
optional double longitude = 3;
|
|
51
|
+
optional string title = 4;
|
|
52
|
+
optional string body = 5;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
message AIRichResponseLatexMetadata {
|
|
57
|
+
optional string text = 1;
|
|
58
|
+
repeated AIRichResponseLatexExpression expressions = 2;
|
|
59
|
+
message AIRichResponseLatexExpression {
|
|
60
|
+
optional string latexExpression = 1;
|
|
61
|
+
optional string url = 2;
|
|
62
|
+
optional double width = 3;
|
|
63
|
+
optional double height = 4;
|
|
64
|
+
optional double fontHeight = 5;
|
|
65
|
+
optional double imageTopPadding = 6;
|
|
66
|
+
optional double imageLeadingPadding = 7;
|
|
67
|
+
optional double imageBottomPadding = 8;
|
|
68
|
+
optional double imageTrailingPadding = 9;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
message AIRichResponseUnifiedResponse {
|
|
73
|
+
optional bytes data = 1;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
message AIRichResponseDynamicMetadata {
|
|
77
|
+
optional AIRichResponseDynamicMetadataType type = 1;
|
|
78
|
+
optional uint64 version = 2;
|
|
79
|
+
optional string url = 3;
|
|
80
|
+
optional uint32 loopCount = 4;
|
|
81
|
+
enum AIRichResponseDynamicMetadataType {
|
|
82
|
+
AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_UNKNOWN = 0;
|
|
83
|
+
AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_IMAGE = 1;
|
|
84
|
+
AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_GIF = 2;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
message AIRichResponseTableMetadata {
|
|
89
|
+
repeated AIRichResponseTableRow rows = 1;
|
|
90
|
+
optional string title = 2;
|
|
91
|
+
message AIRichResponseTableRow {
|
|
92
|
+
repeated string items = 1;
|
|
93
|
+
optional bool isHeading = 2;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
message AIRichResponseCodeMetadata {
|
|
98
|
+
optional string codeLanguage = 1;
|
|
99
|
+
repeated AIRichResponseCodeBlock codeBlocks = 2;
|
|
100
|
+
message AIRichResponseCodeBlock {
|
|
101
|
+
optional AIRichResponseCodeMetadata.AIRichResponseCodeHighlightType highlightType = 1;
|
|
102
|
+
optional string codeContent = 2;
|
|
103
|
+
}
|
|
104
|
+
enum AIRichResponseCodeHighlightType {
|
|
105
|
+
AI_RICH_RESPONSE_CODE_HIGHLIGHT_DEFAULT = 0;
|
|
106
|
+
AI_RICH_RESPONSE_CODE_HIGHLIGHT_KEYWORD = 1;
|
|
107
|
+
AI_RICH_RESPONSE_CODE_HIGHLIGHT_METHOD = 2;
|
|
108
|
+
AI_RICH_RESPONSE_CODE_HIGHLIGHT_STRING = 3;
|
|
109
|
+
AI_RICH_RESPONSE_CODE_HIGHLIGHT_NUMBER = 4;
|
|
110
|
+
AI_RICH_RESPONSE_CODE_HIGHLIGHT_COMMENT = 5;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
message AIRichResponseInlineImageMetadata {
|
|
115
|
+
optional AIRichResponseImageURL imageUrl = 1;
|
|
116
|
+
optional string imageText = 2;
|
|
117
|
+
optional AIRichResponseImageAlignment alignment = 3;
|
|
118
|
+
optional string tapLinkUrl = 4;
|
|
119
|
+
enum AIRichResponseImageAlignment {
|
|
120
|
+
AI_RICH_RESPONSE_IMAGE_LAYOUT_LEADING_ALIGNED = 0;
|
|
121
|
+
AI_RICH_RESPONSE_IMAGE_LAYOUT_TRAILING_ALIGNED = 1;
|
|
122
|
+
AI_RICH_RESPONSE_IMAGE_LAYOUT_CENTER_ALIGNED = 2;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
message AIRichResponseGridImageMetadata {
|
|
127
|
+
optional AIRichResponseImageURL gridImageUrl = 1;
|
|
128
|
+
repeated AIRichResponseImageURL imageUrls = 2;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
message AIRichResponseImageURL {
|
|
132
|
+
optional string imagePreviewUrl = 1;
|
|
133
|
+
optional string imageHighResUrl = 2;
|
|
134
|
+
optional string sourceUrl = 3;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
message ForwardedAIBotMessageInfo {
|
|
138
|
+
optional string botName = 1;
|
|
139
|
+
optional string botJid = 2;
|
|
140
|
+
optional string creatorName = 3;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
message BotFeedbackMessage {
|
|
144
|
+
optional Protocol.MessageKey messageKey = 1;
|
|
145
|
+
optional BotFeedbackKind kind = 2;
|
|
146
|
+
optional string text = 3;
|
|
147
|
+
optional uint64 kindNegative = 4;
|
|
148
|
+
optional uint64 kindPositive = 5;
|
|
149
|
+
optional ReportKind kindReport = 6;
|
|
150
|
+
optional SideBySideSurveyMetadata sideBySideSurveyMetadata = 7;
|
|
151
|
+
enum BotFeedbackKind {
|
|
152
|
+
BOT_FEEDBACK_POSITIVE = 0;
|
|
153
|
+
BOT_FEEDBACK_NEGATIVE_GENERIC = 1;
|
|
154
|
+
BOT_FEEDBACK_NEGATIVE_HELPFUL = 2;
|
|
155
|
+
BOT_FEEDBACK_NEGATIVE_INTERESTING = 3;
|
|
156
|
+
BOT_FEEDBACK_NEGATIVE_ACCURATE = 4;
|
|
157
|
+
BOT_FEEDBACK_NEGATIVE_SAFE = 5;
|
|
158
|
+
BOT_FEEDBACK_NEGATIVE_OTHER = 6;
|
|
159
|
+
BOT_FEEDBACK_NEGATIVE_REFUSED = 7;
|
|
160
|
+
BOT_FEEDBACK_NEGATIVE_NOT_VISUALLY_APPEALING = 8;
|
|
161
|
+
BOT_FEEDBACK_NEGATIVE_NOT_RELEVANT_TO_TEXT = 9;
|
|
162
|
+
BOT_FEEDBACK_NEGATIVE_PERSONALIZED = 10;
|
|
163
|
+
BOT_FEEDBACK_NEGATIVE_CLARITY = 11;
|
|
164
|
+
BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON = 12;
|
|
165
|
+
BOT_FEEDBACK_NEGATIVE_HALLUCINATION_INTERNAL_ONLY = 13;
|
|
166
|
+
BOT_FEEDBACK_NEGATIVE = 14;
|
|
167
|
+
}
|
|
168
|
+
enum BotFeedbackKindMultipleNegative {
|
|
169
|
+
BOT_FEEDBACK_MULTIPLE_NEGATIVE_GENERIC = 1;
|
|
170
|
+
BOT_FEEDBACK_MULTIPLE_NEGATIVE_HELPFUL = 2;
|
|
171
|
+
BOT_FEEDBACK_MULTIPLE_NEGATIVE_INTERESTING = 4;
|
|
172
|
+
BOT_FEEDBACK_MULTIPLE_NEGATIVE_ACCURATE = 8;
|
|
173
|
+
BOT_FEEDBACK_MULTIPLE_NEGATIVE_SAFE = 16;
|
|
174
|
+
BOT_FEEDBACK_MULTIPLE_NEGATIVE_OTHER = 32;
|
|
175
|
+
BOT_FEEDBACK_MULTIPLE_NEGATIVE_REFUSED = 64;
|
|
176
|
+
BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_VISUALLY_APPEALING = 128;
|
|
177
|
+
BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_RELEVANT_TO_TEXT = 256;
|
|
178
|
+
}
|
|
179
|
+
enum BotFeedbackKindMultiplePositive {
|
|
180
|
+
BOT_FEEDBACK_MULTIPLE_POSITIVE_GENERIC = 1;
|
|
181
|
+
}
|
|
182
|
+
enum ReportKind {
|
|
183
|
+
NONE = 0;
|
|
184
|
+
GENERIC = 1;
|
|
185
|
+
}
|
|
186
|
+
message SideBySideSurveyMetadata {
|
|
187
|
+
optional string selectedRequestId = 1;
|
|
188
|
+
optional uint32 surveyId = 2;
|
|
189
|
+
optional string simonSessionFbid = 3;
|
|
190
|
+
optional string responseOtid = 4;
|
|
191
|
+
optional string responseTimestampMsString = 5;
|
|
192
|
+
optional bool isSelectedResponsePrimary = 6;
|
|
193
|
+
optional string messageIdToEdit = 7;
|
|
194
|
+
optional SideBySideSurveyAnalyticsData analyticsData = 8;
|
|
195
|
+
message SideBySideSurveyAnalyticsData {
|
|
196
|
+
optional string tessaEvent = 1;
|
|
197
|
+
optional string tessaSessionFbid = 2;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
message BotMetadata {
|
|
203
|
+
optional BotAvatarMetadata avatarMetadata = 1;
|
|
204
|
+
optional string personaId = 2;
|
|
205
|
+
optional BotPluginMetadata pluginMetadata = 3;
|
|
206
|
+
optional BotSuggestedPromptMetadata suggestedPromptMetadata = 4;
|
|
207
|
+
optional string invokerJid = 5;
|
|
208
|
+
optional BotSessionMetadata sessionMetadata = 6;
|
|
209
|
+
optional BotMemuMetadata memuMetadata = 7;
|
|
210
|
+
optional string timezone = 8;
|
|
211
|
+
optional BotReminderMetadata reminderMetadata = 9;
|
|
212
|
+
optional BotModelMetadata modelMetadata = 10;
|
|
213
|
+
optional string messageDisclaimerText = 11;
|
|
214
|
+
optional BotProgressIndicatorMetadata progressIndicatorMetadata = 12;
|
|
215
|
+
optional BotCapabilityMetadata capabilityMetadata = 13;
|
|
216
|
+
optional BotImagineMetadata imagineMetadata = 14;
|
|
217
|
+
optional BotMemoryMetadata memoryMetadata = 15;
|
|
218
|
+
optional BotRenderingMetadata renderingMetadata = 16;
|
|
219
|
+
optional BotMetricsMetadata botMetricsMetadata = 17;
|
|
220
|
+
optional BotLinkedAccountsMetadata botLinkedAccountsMetadata = 18;
|
|
221
|
+
optional BotSourcesMetadata richResponseSourcesMetadata = 19;
|
|
222
|
+
optional bytes aiConversationContext = 20;
|
|
223
|
+
optional BotPromotionMessageMetadata botPromotionMessageMetadata = 21;
|
|
224
|
+
optional BotModeSelectionMetadata botModeSelectionMetadata = 22;
|
|
225
|
+
optional BotQuotaMetadata botQuotaMetadata = 23;
|
|
226
|
+
optional BotAgeCollectionMetadata botAgeCollectionMetadata = 24;
|
|
227
|
+
optional string conversationStarterPromptId = 25;
|
|
228
|
+
optional string botResponseId = 26;
|
|
229
|
+
optional BotSignatureVerificationMetadata verificationMetadata = 27;
|
|
230
|
+
optional BotUnifiedResponseMutation unifiedResponseMutation = 28;
|
|
231
|
+
optional BotMessageOriginMetadata botMessageOriginMetadata = 29;
|
|
232
|
+
optional InThreadSurveyMetadata inThreadSurveyMetadata = 30;
|
|
233
|
+
optional AIThreadInfo botThreadInfo = 31;
|
|
234
|
+
optional bytes internalMetadata = 999;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
message AIThreadInfo {
|
|
238
|
+
optional AIThreadServerInfo serverInfo = 1;
|
|
239
|
+
optional AIThreadClientInfo clientInfo = 2;
|
|
240
|
+
message AIThreadClientInfo {
|
|
241
|
+
optional AIThreadType type = 1;
|
|
242
|
+
enum AIThreadType {
|
|
243
|
+
UNKNOWN = 0;
|
|
244
|
+
DEFAULT = 1;
|
|
245
|
+
INCOGNITO = 2;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
message AIThreadServerInfo {
|
|
249
|
+
optional string title = 1;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
message BotUnifiedResponseMutation {
|
|
254
|
+
optional SideBySideMetadata sbsMetadata = 1;
|
|
255
|
+
repeated MediaDetailsMetadata mediaDetailsMetadataList = 2;
|
|
256
|
+
message MediaDetailsMetadata {
|
|
257
|
+
optional string id = 1;
|
|
258
|
+
optional BotMediaMetadata highResMedia = 2;
|
|
259
|
+
optional BotMediaMetadata previewMedia = 3;
|
|
260
|
+
}
|
|
261
|
+
message SideBySideMetadata {
|
|
262
|
+
optional string primaryResponseId = 1;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
message BotMessageOrigin {
|
|
267
|
+
optional BotMessageOriginType type = 1;
|
|
268
|
+
enum BotMessageOriginType {
|
|
269
|
+
BOT_MESSAGE_ORIGIN_TYPE_AI_INITIATED = 0;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
message BotMessageOriginMetadata {
|
|
274
|
+
repeated BotMessageOrigin origins = 1;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
message InThreadSurveyMetadata {
|
|
278
|
+
optional string tessaSessionId = 1;
|
|
279
|
+
optional string simonSessionId = 2;
|
|
280
|
+
optional string simonSurveyId = 3;
|
|
281
|
+
optional string tessaRootId = 4;
|
|
282
|
+
optional string requestId = 5;
|
|
283
|
+
optional string tessaEvent = 6;
|
|
284
|
+
optional string invitationHeaderText = 7;
|
|
285
|
+
optional string invitationBodyText = 8;
|
|
286
|
+
optional string invitationCtaText = 9;
|
|
287
|
+
optional string invitationCtaUrl = 10;
|
|
288
|
+
optional string surveyTitle = 11;
|
|
289
|
+
repeated InThreadSurveyQuestion questions = 12;
|
|
290
|
+
optional string surveyContinueButtonText = 13;
|
|
291
|
+
optional string surveySubmitButtonText = 14;
|
|
292
|
+
optional string privacyStatementFull = 15;
|
|
293
|
+
repeated InThreadSurveyPrivacyStatementPart privacyStatementParts = 16;
|
|
294
|
+
optional string feedbackToastText = 17;
|
|
295
|
+
message InThreadSurveyOption {
|
|
296
|
+
optional string stringValue = 1;
|
|
297
|
+
optional uint32 numericValue = 2;
|
|
298
|
+
optional string textTranslated = 3;
|
|
299
|
+
}
|
|
300
|
+
message InThreadSurveyPrivacyStatementPart {
|
|
301
|
+
optional string text = 1;
|
|
302
|
+
optional string url = 2;
|
|
303
|
+
}
|
|
304
|
+
message InThreadSurveyQuestion {
|
|
305
|
+
optional string questionText = 1;
|
|
306
|
+
optional string questionId = 2;
|
|
307
|
+
repeated InThreadSurveyMetadata.InThreadSurveyOption questionOptions = 3;
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
message BotSourcesMetadata {
|
|
312
|
+
repeated BotSourceItem sources = 1;
|
|
313
|
+
message BotSourceItem {
|
|
314
|
+
optional SourceProvider provider = 1;
|
|
315
|
+
optional string thumbnailCdnUrl = 2;
|
|
316
|
+
optional string sourceProviderUrl = 3;
|
|
317
|
+
optional string sourceQuery = 4;
|
|
318
|
+
optional string faviconCdnUrl = 5;
|
|
319
|
+
optional uint32 citationNumber = 6;
|
|
320
|
+
optional string sourceTitle = 7;
|
|
321
|
+
enum SourceProvider {
|
|
322
|
+
UNKNOWN = 0;
|
|
323
|
+
BING = 1;
|
|
324
|
+
GOOGLE = 2;
|
|
325
|
+
SUPPORT = 3;
|
|
326
|
+
OTHER = 4;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
message BotAgeCollectionMetadata {
|
|
332
|
+
optional bool ageCollectionEligible = 1;
|
|
333
|
+
optional bool shouldTriggerAgeCollectionOnClient = 2;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
message BotImagineMetadata {
|
|
337
|
+
optional ImagineType imagineType = 1;
|
|
338
|
+
enum ImagineType {
|
|
339
|
+
UNKNOWN = 0;
|
|
340
|
+
IMAGINE = 1;
|
|
341
|
+
MEMU = 2;
|
|
342
|
+
FLASH = 3;
|
|
343
|
+
EDIT = 4;
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
message BotQuotaMetadata {
|
|
348
|
+
repeated BotFeatureQuotaMetadata botFeatureQuotaMetadata = 1;
|
|
349
|
+
message BotFeatureQuotaMetadata {
|
|
350
|
+
optional BotFeatureType featureType = 1;
|
|
351
|
+
optional uint32 remainingQuota = 2;
|
|
352
|
+
optional uint64 expirationTimestamp = 3;
|
|
353
|
+
enum BotFeatureType {
|
|
354
|
+
UNKNOWN_FEATURE = 0;
|
|
355
|
+
REASONING_FEATURE = 1;
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
message BotModeSelectionMetadata {
|
|
361
|
+
repeated BotUserSelectionMode mode = 1;
|
|
362
|
+
enum BotUserSelectionMode {
|
|
363
|
+
UNKNOWN_MODE = 0;
|
|
364
|
+
REASONING_MODE = 1;
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
message BotCapabilityMetadata {
|
|
369
|
+
repeated BotCapabilityType capabilities = 1;
|
|
370
|
+
enum BotCapabilityType {
|
|
371
|
+
UNKNOWN = 0;
|
|
372
|
+
PROGRESS_INDICATOR = 1;
|
|
373
|
+
RICH_RESPONSE_HEADING = 2;
|
|
374
|
+
RICH_RESPONSE_NESTED_LIST = 3;
|
|
375
|
+
AI_MEMORY = 4;
|
|
376
|
+
RICH_RESPONSE_THREAD_SURFING = 5;
|
|
377
|
+
RICH_RESPONSE_TABLE = 6;
|
|
378
|
+
RICH_RESPONSE_CODE = 7;
|
|
379
|
+
RICH_RESPONSE_STRUCTURED_RESPONSE = 8;
|
|
380
|
+
RICH_RESPONSE_INLINE_IMAGE = 9;
|
|
381
|
+
WA_IG_1P_PLUGIN_RANKING_CONTROL = 10;
|
|
382
|
+
WA_IG_1P_PLUGIN_RANKING_UPDATE_1 = 11;
|
|
383
|
+
WA_IG_1P_PLUGIN_RANKING_UPDATE_2 = 12;
|
|
384
|
+
WA_IG_1P_PLUGIN_RANKING_UPDATE_3 = 13;
|
|
385
|
+
WA_IG_1P_PLUGIN_RANKING_UPDATE_4 = 14;
|
|
386
|
+
WA_IG_1P_PLUGIN_RANKING_UPDATE_5 = 15;
|
|
387
|
+
WA_IG_1P_PLUGIN_RANKING_UPDATE_6 = 16;
|
|
388
|
+
WA_IG_1P_PLUGIN_RANKING_UPDATE_7 = 17;
|
|
389
|
+
WA_IG_1P_PLUGIN_RANKING_UPDATE_8 = 18;
|
|
390
|
+
WA_IG_1P_PLUGIN_RANKING_UPDATE_9 = 19;
|
|
391
|
+
WA_IG_1P_PLUGIN_RANKING_UPDATE_10 = 20;
|
|
392
|
+
RICH_RESPONSE_SUB_HEADING = 21;
|
|
393
|
+
RICH_RESPONSE_GRID_IMAGE = 22;
|
|
394
|
+
AI_STUDIO_UGC_MEMORY = 23;
|
|
395
|
+
RICH_RESPONSE_LATEX = 24;
|
|
396
|
+
RICH_RESPONSE_MAPS = 25;
|
|
397
|
+
RICH_RESPONSE_INLINE_REELS = 26;
|
|
398
|
+
AGENTIC_PLANNING = 27;
|
|
399
|
+
ACCOUNT_LINKING = 28;
|
|
400
|
+
STREAMING_DISAGGREGATION = 29;
|
|
401
|
+
RICH_RESPONSE_GRID_IMAGE_3P = 30;
|
|
402
|
+
RICH_RESPONSE_LATEX_INLINE = 31;
|
|
403
|
+
QUERY_PLAN = 32;
|
|
404
|
+
PROACTIVE_MESSAGE = 33;
|
|
405
|
+
RICH_RESPONSE_UNIFIED_RESPONSE = 34;
|
|
406
|
+
PROMOTION_MESSAGE = 35;
|
|
407
|
+
SIMPLIFIED_PROFILE_PAGE = 36;
|
|
408
|
+
RICH_RESPONSE_SOURCES_IN_MESSAGE = 37;
|
|
409
|
+
RICH_RESPONSE_SIDE_BY_SIDE_SURVEY = 38;
|
|
410
|
+
RICH_RESPONSE_UNIFIED_TEXT_COMPONENT = 39;
|
|
411
|
+
AI_SHARED_MEMORY = 40;
|
|
412
|
+
RICH_RESPONSE_UNIFIED_SOURCES = 41;
|
|
413
|
+
RICH_RESPONSE_UNIFIED_DOMAIN_CITATIONS = 42;
|
|
414
|
+
RICH_RESPONSE_UR_INLINE_REELS_ENABLED = 43;
|
|
415
|
+
RICH_RESPONSE_UR_MEDIA_GRID_ENABLED = 44;
|
|
416
|
+
RICH_RESPONSE_UR_TIMESTAMP_PLACEHOLDER = 45;
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
message BotProgressIndicatorMetadata {
|
|
421
|
+
optional string progressDescription = 1;
|
|
422
|
+
repeated BotPlanningStepMetadata stepsMetadata = 2;
|
|
423
|
+
message BotPlanningStepMetadata {
|
|
424
|
+
optional string statusTitle = 1;
|
|
425
|
+
optional string statusBody = 2;
|
|
426
|
+
repeated BotPlanningSearchSourcesMetadata sourcesMetadata = 3;
|
|
427
|
+
optional PlanningStepStatus status = 4;
|
|
428
|
+
optional bool isReasoning = 5;
|
|
429
|
+
optional bool isEnhancedSearch = 6;
|
|
430
|
+
repeated BotPlanningStepSectionMetadata sections = 7;
|
|
431
|
+
message BotPlanningSearchSourceMetadata {
|
|
432
|
+
optional string title = 1;
|
|
433
|
+
optional BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotSearchSourceProvider provider = 2;
|
|
434
|
+
optional string sourceUrl = 3;
|
|
435
|
+
optional string favIconUrl = 4;
|
|
436
|
+
}
|
|
437
|
+
message BotPlanningSearchSourcesMetadata {
|
|
438
|
+
optional string sourceTitle = 1;
|
|
439
|
+
optional BotPlanningSearchSourceProvider provider = 2;
|
|
440
|
+
optional string sourceUrl = 3;
|
|
441
|
+
enum BotPlanningSearchSourceProvider {
|
|
442
|
+
UNKNOWN = 0;
|
|
443
|
+
OTHER = 1;
|
|
444
|
+
GOOGLE = 2;
|
|
445
|
+
BING = 3;
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
message BotPlanningStepSectionMetadata {
|
|
449
|
+
optional string sectionTitle = 1;
|
|
450
|
+
optional string sectionBody = 2;
|
|
451
|
+
repeated BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourceMetadata sourcesMetadata = 3;
|
|
452
|
+
}
|
|
453
|
+
enum BotSearchSourceProvider {
|
|
454
|
+
UNKNOWN_PROVIDER = 0;
|
|
455
|
+
OTHER = 1;
|
|
456
|
+
GOOGLE = 2;
|
|
457
|
+
BING = 3;
|
|
458
|
+
}
|
|
459
|
+
enum PlanningStepStatus {
|
|
460
|
+
UNKNOWN = 0;
|
|
461
|
+
PLANNED = 1;
|
|
462
|
+
EXECUTING = 2;
|
|
463
|
+
FINISHED = 3;
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
message BotModelMetadata {
|
|
469
|
+
optional ModelType modelType = 1;
|
|
470
|
+
optional PremiumModelStatus premiumModelStatus = 2;
|
|
471
|
+
enum ModelType {
|
|
472
|
+
UNKNOWN_TYPE = 0;
|
|
473
|
+
LLAMA_PROD = 1;
|
|
474
|
+
LLAMA_PROD_PREMIUM = 2;
|
|
475
|
+
}
|
|
476
|
+
enum PremiumModelStatus {
|
|
477
|
+
UNKNOWN_STATUS = 0;
|
|
478
|
+
AVAILABLE = 1;
|
|
479
|
+
QUOTA_EXCEED_LIMIT = 2;
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
message BotReminderMetadata {
|
|
484
|
+
optional Protocol.MessageKey requestMessageKey = 1;
|
|
485
|
+
optional ReminderAction action = 2;
|
|
486
|
+
optional string name = 3;
|
|
487
|
+
optional uint64 nextTriggerTimestamp = 4;
|
|
488
|
+
optional ReminderFrequency frequency = 5;
|
|
489
|
+
enum ReminderAction {
|
|
490
|
+
NOTIFY = 1;
|
|
491
|
+
CREATE = 2;
|
|
492
|
+
DELETE = 3;
|
|
493
|
+
UPDATE = 4;
|
|
494
|
+
}
|
|
495
|
+
enum ReminderFrequency {
|
|
496
|
+
ONCE = 1;
|
|
497
|
+
DAILY = 2;
|
|
498
|
+
WEEKLY = 3;
|
|
499
|
+
BIWEEKLY = 4;
|
|
500
|
+
MONTHLY = 5;
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
message BotMemuMetadata {
|
|
505
|
+
repeated BotMediaMetadata faceImages = 1;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
message BotMediaMetadata {
|
|
509
|
+
optional string fileSha256 = 1;
|
|
510
|
+
optional string mediaKey = 2;
|
|
511
|
+
optional string fileEncSha256 = 3;
|
|
512
|
+
optional string directPath = 4;
|
|
513
|
+
optional int64 mediaKeyTimestamp = 5;
|
|
514
|
+
optional string mimetype = 6;
|
|
515
|
+
optional OrientationType orientationType = 7;
|
|
516
|
+
enum OrientationType {
|
|
517
|
+
CENTER = 1;
|
|
518
|
+
LEFT = 2;
|
|
519
|
+
RIGHT = 3;
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
message BotSessionMetadata {
|
|
524
|
+
optional string sessionId = 1;
|
|
525
|
+
optional BotSessionSource sessionSource = 2;
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
message BotMetricsMetadata {
|
|
529
|
+
optional string destinationId = 1;
|
|
530
|
+
optional BotMetricsEntryPoint destinationEntryPoint = 2;
|
|
531
|
+
optional BotMetricsThreadEntryPoint threadOrigin = 3;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
message BotRenderingMetadata {
|
|
535
|
+
repeated Keyword keywords = 1;
|
|
536
|
+
message Keyword {
|
|
537
|
+
optional string value = 1;
|
|
538
|
+
repeated string associatedPrompts = 2;
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
message BotPromotionMessageMetadata {
|
|
543
|
+
optional BotPromotionType promotionType = 1;
|
|
544
|
+
optional string buttonTitle = 2;
|
|
545
|
+
enum BotPromotionType {
|
|
546
|
+
UNKNOWN_TYPE = 0;
|
|
547
|
+
C50 = 1;
|
|
548
|
+
SURVEY_PLATFORM = 2;
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
message BotSignatureVerificationUseCaseProof {
|
|
553
|
+
optional int32 version = 1;
|
|
554
|
+
optional BotSignatureUseCase useCase = 2;
|
|
555
|
+
optional bytes signature = 3;
|
|
556
|
+
repeated bytes certificateChain = 4;
|
|
557
|
+
enum BotSignatureUseCase {
|
|
558
|
+
UNSPECIFIED = 0;
|
|
559
|
+
WA_BOT_MSG = 1;
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
message BotSignatureVerificationMetadata {
|
|
564
|
+
repeated BotSignatureVerificationUseCaseProof proofs = 1;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
message BotMemoryFact {
|
|
568
|
+
optional string fact = 1;
|
|
569
|
+
optional string factId = 2;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
message BotMemoryMetadata {
|
|
573
|
+
repeated BotMemoryFact addedFacts = 1;
|
|
574
|
+
repeated BotMemoryFact removedFacts = 2;
|
|
575
|
+
optional string disclaimer = 3;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
message BotLinkedAccount {
|
|
579
|
+
optional BotLinkedAccountType type = 1;
|
|
580
|
+
enum BotLinkedAccountType {
|
|
581
|
+
BOT_LINKED_ACCOUNT_TYPE_1P = 0;
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
message BotLinkedAccountsMetadata {
|
|
586
|
+
repeated BotLinkedAccount accounts = 1;
|
|
587
|
+
optional bytes acAuthTokens = 2;
|
|
588
|
+
optional int32 acErrorCode = 3;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
message BotPromptSuggestion {
|
|
592
|
+
optional string prompt = 1;
|
|
593
|
+
optional string promptId = 2;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
message BotPromptSuggestions {
|
|
597
|
+
repeated BotPromptSuggestion suggestions = 1;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
message BotSuggestedPromptMetadata {
|
|
601
|
+
repeated string suggestedPrompts = 1;
|
|
602
|
+
optional uint32 selectedPromptIndex = 2;
|
|
603
|
+
optional BotPromptSuggestions promptSuggestions = 3;
|
|
604
|
+
optional string selectedPromptId = 4;
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
message BotPluginMetadata {
|
|
608
|
+
optional SearchProvider provider = 1;
|
|
609
|
+
optional PluginType pluginType = 2;
|
|
610
|
+
optional string thumbnailCdnUrl = 3;
|
|
611
|
+
optional string profilePhotoCdnUrl = 4;
|
|
612
|
+
optional string searchProviderUrl = 5;
|
|
613
|
+
optional uint32 referenceIndex = 6;
|
|
614
|
+
optional uint32 expectedLinksCount = 7;
|
|
615
|
+
optional string searchQuery = 9;
|
|
616
|
+
optional Protocol.MessageKey parentPluginMessageKey = 10;
|
|
617
|
+
optional PluginType deprecatedField = 11;
|
|
618
|
+
optional PluginType parentPluginType = 12;
|
|
619
|
+
optional string faviconCdnUrl = 13;
|
|
620
|
+
enum PluginType {
|
|
621
|
+
UNKNOWN_PLUGIN = 0;
|
|
622
|
+
REELS = 1;
|
|
623
|
+
SEARCH = 2;
|
|
624
|
+
}
|
|
625
|
+
enum SearchProvider {
|
|
626
|
+
UNKNOWN = 0;
|
|
627
|
+
BING = 1;
|
|
628
|
+
GOOGLE = 2;
|
|
629
|
+
SUPPORT = 3;
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
message BotAvatarMetadata {
|
|
634
|
+
optional uint32 sentiment = 1;
|
|
635
|
+
optional string behaviorGraph = 2;
|
|
636
|
+
optional uint32 action = 3;
|
|
637
|
+
optional uint32 intensity = 4;
|
|
638
|
+
optional uint32 wordCount = 5;
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
enum AIRichResponseSubMessageType {
|
|
642
|
+
AI_RICH_RESPONSE_UNKNOWN = 0;
|
|
643
|
+
AI_RICH_RESPONSE_GRID_IMAGE = 1;
|
|
644
|
+
AI_RICH_RESPONSE_TEXT = 2;
|
|
645
|
+
AI_RICH_RESPONSE_INLINE_IMAGE = 3;
|
|
646
|
+
AI_RICH_RESPONSE_TABLE = 4;
|
|
647
|
+
AI_RICH_RESPONSE_CODE = 5;
|
|
648
|
+
AI_RICH_RESPONSE_DYNAMIC = 6;
|
|
649
|
+
AI_RICH_RESPONSE_MAP = 7;
|
|
650
|
+
AI_RICH_RESPONSE_LATEX = 8;
|
|
651
|
+
AI_RICH_RESPONSE_CONTENT_ITEMS = 9;
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
enum AIRichResponseMessageType {
|
|
655
|
+
AI_RICH_RESPONSE_TYPE_UNKNOWN = 0;
|
|
656
|
+
AI_RICH_RESPONSE_TYPE_STANDARD = 1;
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
enum BotSessionSource {
|
|
660
|
+
NONE = 0;
|
|
661
|
+
NULL_STATE = 1;
|
|
662
|
+
TYPEAHEAD = 2;
|
|
663
|
+
USER_INPUT = 3;
|
|
664
|
+
EMU_FLASH = 4;
|
|
665
|
+
EMU_FLASH_FOLLOWUP = 5;
|
|
666
|
+
VOICE = 6;
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
enum BotMetricsThreadEntryPoint {
|
|
670
|
+
AI_TAB_THREAD = 1;
|
|
671
|
+
AI_HOME_THREAD = 2;
|
|
672
|
+
AI_DEEPLINK_IMMERSIVE_THREAD = 3;
|
|
673
|
+
AI_DEEPLINK_THREAD = 4;
|
|
674
|
+
ASK_META_AI_CONTEXT_MENU_THREAD = 5;
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
enum BotMetricsEntryPoint {
|
|
678
|
+
UNDEFINED_ENTRY_POINT = 0;
|
|
679
|
+
FAVICON = 1;
|
|
680
|
+
CHATLIST = 2;
|
|
681
|
+
AISEARCH_NULL_STATE_PAPER_PLANE = 3;
|
|
682
|
+
AISEARCH_NULL_STATE_SUGGESTION = 4;
|
|
683
|
+
AISEARCH_TYPE_AHEAD_SUGGESTION = 5;
|
|
684
|
+
AISEARCH_TYPE_AHEAD_PAPER_PLANE = 6;
|
|
685
|
+
AISEARCH_TYPE_AHEAD_RESULT_CHATLIST = 7;
|
|
686
|
+
AISEARCH_TYPE_AHEAD_RESULT_MESSAGES = 8;
|
|
687
|
+
AIVOICE_SEARCH_BAR = 9;
|
|
688
|
+
AIVOICE_FAVICON = 10;
|
|
689
|
+
AISTUDIO = 11;
|
|
690
|
+
DEEPLINK = 12;
|
|
691
|
+
NOTIFICATION = 13;
|
|
692
|
+
PROFILE_MESSAGE_BUTTON = 14;
|
|
693
|
+
FORWARD = 15;
|
|
694
|
+
APP_SHORTCUT = 16;
|
|
695
|
+
FF_FAMILY = 17;
|
|
696
|
+
AI_TAB = 18;
|
|
697
|
+
AI_HOME = 19;
|
|
698
|
+
AI_DEEPLINK_IMMERSIVE = 20;
|
|
699
|
+
AI_DEEPLINK = 21;
|
|
700
|
+
META_AI_CHAT_SHORTCUT_AI_STUDIO = 22;
|
|
701
|
+
UGC_CHAT_SHORTCUT_AI_STUDIO = 23;
|
|
702
|
+
NEW_CHAT_AI_STUDIO = 24;
|
|
703
|
+
AIVOICE_FAVICON_CALL_HISTORY = 25;
|
|
704
|
+
ASK_META_AI_CONTEXT_MENU = 26;
|
|
705
|
+
ASK_META_AI_CONTEXT_MENU_1ON1 = 27;
|
|
706
|
+
ASK_META_AI_CONTEXT_MENU_GROUP = 28;
|
|
707
|
+
INVOKE_META_AI_1ON1 = 29;
|
|
708
|
+
INVOKE_META_AI_GROUP = 30;
|
|
709
|
+
META_AI_FORWARD = 31;
|
|
710
|
+
NEW_CHAT_AI_CONTACT = 32;
|
|
711
|
+
MESSAGE_QUICK_ACTION = 33;
|
|
712
|
+
ATTACHMENT_TRAY = 34;
|
|
713
|
+
}
|