@nerxa/socketon 0.0.0-stage → 1.21.1

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.
Files changed (289) hide show
  1. package/EXPERIMENTAL.md +350 -0
  2. package/LICENSE +24 -0
  3. package/README.md +6317 -2
  4. package/WAProto/index.d.ts +17301 -0
  5. package/WAProto/index.js +125088 -0
  6. package/engine-requirements.js +14 -0
  7. package/package.json +125 -4
  8. package/src/Defaults/index.d.ts +152 -0
  9. package/src/Defaults/index.js +164 -0
  10. package/src/MessageBuilder/bot-signature.d.ts +22 -0
  11. package/src/MessageBuilder/bot-signature.js +122 -0
  12. package/src/MessageBuilder/extras.d.ts +449 -0
  13. package/src/MessageBuilder/extras.js +1356 -0
  14. package/src/MessageBuilder/index.d.ts +210 -0
  15. package/src/MessageBuilder/index.js +3594 -0
  16. package/src/MessageBuilder/metaai.d.ts +438 -0
  17. package/src/MessageBuilder/metaai.js +890 -0
  18. package/src/Signal/Group/ciphertext-message.d.ts +9 -0
  19. package/src/Signal/Group/ciphertext-message.js +11 -0
  20. package/src/Signal/Group/group-session-builder.d.ts +7 -0
  21. package/src/Signal/Group/group-session-builder.js +27 -0
  22. package/src/Signal/Group/group_cipher.d.ts +11 -0
  23. package/src/Signal/Group/group_cipher.js +78 -0
  24. package/src/Signal/Group/index.d.ts +11 -0
  25. package/src/Signal/Group/index.js +11 -0
  26. package/src/Signal/Group/keyhelper.d.ts +6 -0
  27. package/src/Signal/Group/keyhelper.js +17 -0
  28. package/src/Signal/Group/sender-chain-key.d.ts +13 -0
  29. package/src/Signal/Group/sender-chain-key.js +25 -0
  30. package/src/Signal/Group/sender-key-distribution-message.d.ts +16 -0
  31. package/src/Signal/Group/sender-key-distribution-message.js +62 -0
  32. package/src/Signal/Group/sender-key-message.d.ts +18 -0
  33. package/src/Signal/Group/sender-key-message.js +65 -0
  34. package/src/Signal/Group/sender-key-name.d.ts +11 -0
  35. package/src/Signal/Group/sender-key-name.js +47 -0
  36. package/src/Signal/Group/sender-key-record.d.ts +12 -0
  37. package/src/Signal/Group/sender-key-record.js +40 -0
  38. package/src/Signal/Group/sender-key-state.d.ts +16 -0
  39. package/src/Signal/Group/sender-key-state.js +83 -0
  40. package/src/Signal/Group/sender-message-key.d.ts +11 -0
  41. package/src/Signal/Group/sender-message-key.js +25 -0
  42. package/src/Signal/libsignal.d.ts +54 -0
  43. package/src/Signal/libsignal.js +427 -0
  44. package/src/Signal/lid-mapping.d.ts +20 -0
  45. package/src/Signal/lid-mapping.js +274 -0
  46. package/src/Socket/Client/index.d.ts +2 -0
  47. package/src/Socket/Client/index.js +3 -0
  48. package/src/Socket/Client/tcp.js +177 -0
  49. package/src/Socket/Client/types.d.ts +5 -0
  50. package/src/Socket/Client/types.js +9 -0
  51. package/src/Socket/Client/websocket.d.ts +12 -0
  52. package/src/Socket/Client/websocket.js +53 -0
  53. package/src/Socket/business.d.ts +431 -0
  54. package/src/Socket/business.js +379 -0
  55. package/src/Socket/chats.d.ts +247 -0
  56. package/src/Socket/chats.js +1484 -0
  57. package/src/Socket/communities.d.ts +598 -0
  58. package/src/Socket/communities.js +421 -0
  59. package/src/Socket/email.js +145 -0
  60. package/src/Socket/groups.d.ts +298 -0
  61. package/src/Socket/groups.js +339 -0
  62. package/src/Socket/index.d.ts +581 -0
  63. package/src/Socket/index.js +77 -0
  64. package/src/Socket/messages-recv.d.ts +370 -0
  65. package/src/Socket/messages-recv.js +1864 -0
  66. package/src/Socket/messages-send.d.ts +390 -0
  67. package/src/Socket/messages-send.js +1574 -0
  68. package/src/Socket/mex.d.ts +1 -0
  69. package/src/Socket/mex.js +44 -0
  70. package/src/Socket/mobile-builders.js +72 -0
  71. package/src/Socket/mobile.js +424 -0
  72. package/src/Socket/newsletter.d.ts +468 -0
  73. package/src/Socket/newsletter.js +671 -0
  74. package/src/Socket/socket.d.ts +77 -0
  75. package/src/Socket/socket.js +1106 -0
  76. package/src/Store/index.d.ts +3 -0
  77. package/src/Store/index.js +3 -0
  78. package/src/Store/make-in-memory-store.d.ts +62 -0
  79. package/src/Store/make-in-memory-store.js +396 -0
  80. package/src/Store/make-ordered-dictionary.d.ts +12 -0
  81. package/src/Store/make-ordered-dictionary.js +78 -0
  82. package/src/Store/object-repository.d.ts +10 -0
  83. package/src/Store/object-repository.js +23 -0
  84. package/src/Types/Auth.d.ts +1 -0
  85. package/src/Types/Auth.js +1 -0
  86. package/src/Types/Bussines.d.ts +1 -0
  87. package/src/Types/Bussines.js +1 -0
  88. package/src/Types/Call.d.ts +1 -0
  89. package/src/Types/Call.js +1 -0
  90. package/src/Types/Chat.d.ts +2 -0
  91. package/src/Types/Chat.js +24 -0
  92. package/src/Types/Contact.d.ts +1 -0
  93. package/src/Types/Contact.js +1 -0
  94. package/src/Types/Events.d.ts +1 -0
  95. package/src/Types/Events.js +0 -0
  96. package/src/Types/GroupMetadata.d.ts +5 -0
  97. package/src/Types/GroupMetadata.js +6 -0
  98. package/src/Types/Label.d.ts +2 -0
  99. package/src/Types/Label.js +24 -0
  100. package/src/Types/LabelAssociation.d.ts +2 -0
  101. package/src/Types/LabelAssociation.js +6 -0
  102. package/src/Types/Message.d.ts +13 -0
  103. package/src/Types/Message.js +23 -0
  104. package/src/Types/Mex.d.ts +2 -0
  105. package/src/Types/Mex.js +95 -0
  106. package/src/Types/Product.d.ts +1 -0
  107. package/src/Types/Product.js +1 -0
  108. package/src/Types/Signal.d.ts +1 -0
  109. package/src/Types/Signal.js +0 -0
  110. package/src/Types/Socket.d.ts +1 -0
  111. package/src/Types/Socket.js +0 -0
  112. package/src/Types/State.d.ts +5 -0
  113. package/src/Types/State.js +54 -0
  114. package/src/Types/USync.d.ts +1 -0
  115. package/src/Types/USync.js +0 -0
  116. package/src/Types/index.d.ts +13 -0
  117. package/src/Types/index.js +25 -0
  118. package/src/Utils/auth-store.d.ts +29 -0
  119. package/src/Utils/auth-store.js +76 -0
  120. package/src/Utils/auth-utils.d.ts +58 -0
  121. package/src/Utils/auth-utils.js +273 -0
  122. package/src/Utils/browser-utils.d.ts +9 -0
  123. package/src/Utils/browser-utils.js +28 -0
  124. package/src/Utils/business.d.ts +49 -0
  125. package/src/Utils/business.js +226 -0
  126. package/src/Utils/chat-utils.d.ts +408 -0
  127. package/src/Utils/chat-utils.js +846 -0
  128. package/src/Utils/companion-reg-client-utils.d.ts +4 -0
  129. package/src/Utils/companion-reg-client-utils.js +39 -0
  130. package/src/Utils/crypto.d.ts +39 -0
  131. package/src/Utils/crypto.js +110 -0
  132. package/src/Utils/decode-wa-message.d.ts +99 -0
  133. package/src/Utils/decode-wa-message.js +373 -0
  134. package/src/Utils/event-buffer.d.ts +22 -0
  135. package/src/Utils/event-buffer.js +624 -0
  136. package/src/Utils/generics.d.ts +63 -0
  137. package/src/Utils/generics.js +375 -0
  138. package/src/Utils/group-metadata-cache.d.ts +4 -0
  139. package/src/Utils/group-metadata-cache.js +25 -0
  140. package/src/Utils/history.d.ts +75 -0
  141. package/src/Utils/history.js +131 -0
  142. package/src/Utils/html-app.d.ts +19 -0
  143. package/src/Utils/html-app.js +96 -0
  144. package/src/Utils/html-multiplayer.d.ts +10 -0
  145. package/src/Utils/html-multiplayer.js +94 -0
  146. package/src/Utils/identity-change-handler.d.ts +13 -0
  147. package/src/Utils/identity-change-handler.js +48 -0
  148. package/src/Utils/index.d.ts +44 -0
  149. package/src/Utils/index.js +44 -0
  150. package/src/Utils/link-preview-metadata.d.ts +47 -0
  151. package/src/Utils/link-preview-metadata.js +88 -0
  152. package/src/Utils/link-preview.d.ts +12 -0
  153. package/src/Utils/link-preview.js +79 -0
  154. package/src/Utils/logger.d.ts +2 -0
  155. package/src/Utils/logger.js +2 -0
  156. package/src/Utils/lt-hash.d.ts +6 -0
  157. package/src/Utils/lt-hash.js +3 -0
  158. package/src/Utils/make-mutex.d.ts +6 -0
  159. package/src/Utils/make-mutex.js +32 -0
  160. package/src/Utils/message-retry-manager.d.ts +79 -0
  161. package/src/Utils/message-retry-manager.js +255 -0
  162. package/src/Utils/messages-media.d.ts +136 -0
  163. package/src/Utils/messages-media.js +814 -0
  164. package/src/Utils/messages.d.ts +62 -0
  165. package/src/Utils/messages.js +2223 -0
  166. package/src/Utils/mobile-companion-crypto.js +191 -0
  167. package/src/Utils/modern-messages.d.ts +150 -0
  168. package/src/Utils/modern-messages.js +496 -0
  169. package/src/Utils/native-flow.d.ts +11 -0
  170. package/src/Utils/native-flow.js +115 -0
  171. package/src/Utils/newsletter-status.d.ts +158 -0
  172. package/src/Utils/newsletter-status.js +651 -0
  173. package/src/Utils/noise-handler.d.ts +20 -0
  174. package/src/Utils/noise-handler.js +200 -0
  175. package/src/Utils/offline-node-processor.d.ts +9 -0
  176. package/src/Utils/offline-node-processor.js +33 -0
  177. package/src/Utils/optional-media.d.ts +3 -0
  178. package/src/Utils/optional-media.js +45 -0
  179. package/src/Utils/payment-messages.d.ts +66 -0
  180. package/src/Utils/payment-messages.js +160 -0
  181. package/src/Utils/pre-key-manager.d.ts +25 -0
  182. package/src/Utils/pre-key-manager.js +95 -0
  183. package/src/Utils/process-message.d.ts +60 -0
  184. package/src/Utils/process-message.js +688 -0
  185. package/src/Utils/reporting-utils.d.ts +12 -0
  186. package/src/Utils/reporting-utils.js +256 -0
  187. package/src/Utils/scheduled-message.d.ts +51 -0
  188. package/src/Utils/scheduled-message.js +112 -0
  189. package/src/Utils/sender-key-memory.d.ts +19 -0
  190. package/src/Utils/sender-key-memory.js +51 -0
  191. package/src/Utils/signal.d.ts +82 -0
  192. package/src/Utils/signal.js +193 -0
  193. package/src/Utils/stanza-ack.d.ts +16 -0
  194. package/src/Utils/stanza-ack.js +30 -0
  195. package/src/Utils/status-stickers.d.ts +127 -0
  196. package/src/Utils/status-stickers.js +260 -0
  197. package/src/Utils/sync-action-utils.d.ts +2 -0
  198. package/src/Utils/sync-action-utils.js +44 -0
  199. package/src/Utils/tc-token-utils.d.ts +29 -0
  200. package/src/Utils/tc-token-utils.js +155 -0
  201. package/src/Utils/ttl-cache.d.ts +28 -0
  202. package/src/Utils/ttl-cache.js +120 -0
  203. package/src/Utils/use-mongo-auth-state.d.ts +21 -0
  204. package/src/Utils/use-mongo-auth-state.js +67 -0
  205. package/src/Utils/use-multi-file-auth-state.d.ts +11 -0
  206. package/src/Utils/use-multi-file-auth-state.js +106 -0
  207. package/src/Utils/use-mysql-auth-state.d.ts +19 -0
  208. package/src/Utils/use-mysql-auth-state.js +79 -0
  209. package/src/Utils/use-postgres-auth-state.d.ts +19 -0
  210. package/src/Utils/use-postgres-auth-state.js +79 -0
  211. package/src/Utils/use-redis-auth-state.d.ts +19 -0
  212. package/src/Utils/use-redis-auth-state.js +89 -0
  213. package/src/Utils/use-single-file-auth-state.d.ts +10 -0
  214. package/src/Utils/use-single-file-auth-state.js +108 -0
  215. package/src/Utils/use-sqlite-auth-state.d.ts +12 -0
  216. package/src/Utils/use-sqlite-auth-state.js +120 -0
  217. package/src/Utils/useNekoDBAuth.d.ts +19 -0
  218. package/src/Utils/useNekoDBAuth.js +111 -0
  219. package/src/Utils/username.d.ts +12 -0
  220. package/src/Utils/username.js +58 -0
  221. package/src/Utils/validate-connection.d.ts +43 -0
  222. package/src/Utils/validate-connection.js +277 -0
  223. package/src/Utils/voice-recognition.d.ts +53 -0
  224. package/src/Utils/voice-recognition.js +219 -0
  225. package/src/Voip/audio-feeder.d.ts +24 -0
  226. package/src/Voip/audio-feeder.js +268 -0
  227. package/src/Voip/index.d.ts +88 -0
  228. package/src/Voip/index.js +936 -0
  229. package/src/Voip/relay-transport.d.ts +5 -0
  230. package/src/Voip/relay-transport.js +824 -0
  231. package/src/Voip/signaling.d.ts +11 -0
  232. package/src/Voip/signaling.js +1099 -0
  233. package/src/Voip/types.d.ts +2 -0
  234. package/src/Voip/types.js +12 -0
  235. package/src/Voip/video-feeder.d.ts +24 -0
  236. package/src/Voip/video-feeder.js +268 -0
  237. package/src/Voip/wasm-engine.d.ts +26 -0
  238. package/src/Voip/wasm-engine.js +1307 -0
  239. package/src/Voip/worker-bootstrap.js +1023 -0
  240. package/src/WABinary/constants.d.ts +22 -0
  241. package/src/WABinary/constants.js +1300 -0
  242. package/src/WABinary/decode.d.ts +9 -0
  243. package/src/WABinary/decode.js +261 -0
  244. package/src/WABinary/encode.d.ts +2 -0
  245. package/src/WABinary/encode.js +219 -0
  246. package/src/WABinary/generic-utils.d.ts +76 -0
  247. package/src/WABinary/generic-utils.js +214 -0
  248. package/src/WABinary/index.d.ts +5 -0
  249. package/src/WABinary/index.js +5 -0
  250. package/src/WABinary/jid-utils.d.ts +30 -0
  251. package/src/WABinary/jid-utils.js +97 -0
  252. package/src/WABinary/types.d.ts +1 -0
  253. package/src/WABinary/types.js +0 -0
  254. package/src/WAM/BinaryInfo.d.ts +7 -0
  255. package/src/WAM/BinaryInfo.js +9 -0
  256. package/src/WAM/constants.d.ts +34926 -0
  257. package/src/WAM/constants.js +22852 -0
  258. package/src/WAM/encode.d.ts +1 -0
  259. package/src/WAM/encode.js +148 -0
  260. package/src/WAM/index.d.ts +3 -0
  261. package/src/WAM/index.js +3 -0
  262. package/src/WAUSync/Protocols/USyncContactProtocol.d.ts +36 -0
  263. package/src/WAUSync/Protocols/USyncContactProtocol.js +50 -0
  264. package/src/WAUSync/Protocols/USyncDeviceProtocol.d.ts +22 -0
  265. package/src/WAUSync/Protocols/USyncDeviceProtocol.js +51 -0
  266. package/src/WAUSync/Protocols/USyncDisappearingModeProtocol.d.ts +12 -0
  267. package/src/WAUSync/Protocols/USyncDisappearingModeProtocol.js +26 -0
  268. package/src/WAUSync/Protocols/USyncStatusProtocol.d.ts +12 -0
  269. package/src/WAUSync/Protocols/USyncStatusProtocol.js +37 -0
  270. package/src/WAUSync/Protocols/USyncUsernameProtocol.d.ts +9 -0
  271. package/src/WAUSync/Protocols/USyncUsernameProtocol.js +23 -0
  272. package/src/WAUSync/Protocols/UsyncBotProfileProtocol.d.ts +38 -0
  273. package/src/WAUSync/Protocols/UsyncBotProfileProtocol.js +49 -0
  274. package/src/WAUSync/Protocols/UsyncLIDProtocol.d.ts +14 -0
  275. package/src/WAUSync/Protocols/UsyncLIDProtocol.js +28 -0
  276. package/src/WAUSync/Protocols/index.d.ts +5 -0
  277. package/src/WAUSync/Protocols/index.js +5 -0
  278. package/src/WAUSync/USyncQuery.d.ts +20 -0
  279. package/src/WAUSync/USyncQuery.js +93 -0
  280. package/src/WAUSync/USyncUser.d.ts +16 -0
  281. package/src/WAUSync/USyncUser.js +30 -0
  282. package/src/WAUSync/index.d.ts +3 -0
  283. package/src/WAUSync/index.js +3 -0
  284. package/src/assets/wasm/README.md +76 -0
  285. package/src/assets/wasm/loader.js +5 -0
  286. package/src/assets/wasm/whatsapp.wasm +0 -0
  287. package/src/assets/wasm/worker-modules.js +273 -0
  288. package/src/index.d.ts +43 -0
  289. package/src/index.js +48 -0
@@ -0,0 +1,438 @@
1
+ export declare const MapQueryStatus: Readonly<Record<string, string>>;
2
+ export declare const MapItemMarkerType: Readonly<Record<string, string>>;
3
+ export declare const PlaceDetailsItemType: Readonly<Record<string, string>>;
4
+ export declare const PlaceOpeningStatus: Readonly<Record<string, string>>;
5
+ export declare const PlacePriceLevel: Readonly<Record<string, string>>;
6
+ export declare const ClippyArtifactType: Readonly<{ MINI_APP: 'MINI_APP'; STATIC_HTML: 'STATIC_HTML' }>;
7
+ export declare const QuotaUpsellMeterUsageType: Readonly<{ META_AI_THINK_HARD: 'META_AI_THINK_HARD' }>;
8
+ export declare const SportsLeague: Readonly<Record<string, string>>;
9
+ export declare const SportsGameStatus: Readonly<Record<string, string>>;
10
+ export declare const SportsSeasonType: Readonly<Record<string, string>>;
11
+ export declare const CompactEntityType: Readonly<Record<string, string>>;
12
+ export declare const CompactEntityActionType: Readonly<Record<string, string>>;
13
+ export declare const ActionListRowType: Readonly<Record<string, string>>;
14
+ export declare const SocialEntityItemType: Readonly<Record<string, string>>;
15
+ export declare const SourceApp: Readonly<Record<string, string>>;
16
+ export declare const PostType: Readonly<Record<string, string>>;
17
+ export declare const PostOrientation: Readonly<Record<string, string>>;
18
+ export declare const ProductSourceType: Readonly<Record<string, string>>;
19
+ export declare const SearchPlannerStepStatus: Readonly<Record<string, string>>;
20
+ export declare const OrchestratorSearchEngine: Readonly<Record<string, string>>;
21
+ export declare const ProfessionalConsentStatus: Readonly<Record<string, string>>;
22
+ export declare const AccountLinkingIntegration: Readonly<Record<string, string>>;
23
+ export declare const AccountLinkingStatus: Readonly<Record<string, string>>;
24
+ export declare const CalendarEventOperation: Readonly<Record<string, string>>;
25
+ export declare const CalendarEventState: Readonly<Record<string, string>>;
26
+ export declare const WidgetCtaKind: Readonly<Record<string, string>>;
27
+ export declare const WidgetCtaState: Readonly<Record<string, string>>;
28
+ export declare const MultipleResponseLayoutType: Readonly<Record<string, string>>;
29
+ export declare const ThreadSurfingEntityType: Readonly<Record<string, string>>;
30
+ export declare const ThreadSurfingActionType: Readonly<Record<string, string>>;
31
+ export declare const MediaShape: Readonly<Record<string, string>>;
32
+ export declare const MediaHorizontalAlignment: Readonly<Record<string, string>>;
33
+ export declare const MediaVerticalAlignment: Readonly<Record<string, string>>;
34
+ export declare const AddonActionAlignment: Readonly<Record<string, string>>;
35
+ export declare const ImageAssetQueryStatus: Readonly<Record<string, string>>;
36
+ export declare const CodeBlockType: Readonly<Record<string, string>>;
37
+ export declare const FollowUpSuggestionCategory: Readonly<Record<string, string>>;
38
+ export declare const InformTreatmentRenderingType: Readonly<Record<string, string>>;
39
+ export declare const UnifiedResponseSectionType: Readonly<Record<string, string>>;
40
+ export declare const UnifiedResponseMessageGroupKind: Readonly<Record<string, string>>;
41
+
42
+ export declare function customSection(typename: string, fields?: Record<string, any>, options?: { layout?: string }): any;
43
+
44
+ export declare function placeItem(options?: {
45
+ id?: string | number;
46
+ name?: string;
47
+ description?: string;
48
+ imageUrl?: string;
49
+ itemType?: string;
50
+ categoryId?: string;
51
+ categoryName?: string;
52
+ priceLevel?: string;
53
+ openingStatus?: string;
54
+ openingHours?: { day?: string; time?: string; open?: string; close?: string }[];
55
+ rating?: number;
56
+ latitude?: number;
57
+ longitude?: number;
58
+ streetAddress?: string;
59
+ street?: string;
60
+ locality?: string;
61
+ region?: string;
62
+ country?: string;
63
+ postalCode?: string;
64
+ timezone?: string;
65
+ marketplace?: { price?: string; salePrice?: string; unavailable?: boolean };
66
+ }): any;
67
+
68
+ export declare function mapSection(options?: {
69
+ items?: any[];
70
+ motivation?: string;
71
+ staticMapUrl?: string;
72
+ staticMapDarkUrl?: string;
73
+ queryStatus?: string;
74
+ }): any;
75
+
76
+ export declare function locationPermissionSection(placeholder?: string): any;
77
+ export declare function timestampPlaceholderSection(placeholder?: string): any;
78
+
79
+ export declare function sportsSection(options?: {
80
+ gameId: string | number;
81
+ league?: string;
82
+ status?: string;
83
+ statusDetail?: string;
84
+ startTime?: number;
85
+ venue?: { name?: string; city?: string; state?: string; country?: string };
86
+ group?: string;
87
+ groupName?: string;
88
+ homeTeam?: { name?: string; abbreviation?: string; countryCode?: string; icon?: string; iconFallback?: string };
89
+ awayTeam?: { name?: string; abbreviation?: string; countryCode?: string; icon?: string; iconFallback?: string };
90
+ homeScore?: number | string;
91
+ awayScore?: number | string;
92
+ homeRecord?: { wins?: number; losses?: number; ties?: number };
93
+ awayRecord?: { wins?: number; losses?: number; ties?: number };
94
+ seasonType?: string;
95
+ week?: number | string;
96
+ contentTypename?: string;
97
+ }): any;
98
+
99
+ export declare function videoSection(options?: {
100
+ postId?: string | number;
101
+ title?: string;
102
+ url?: string;
103
+ thumbnailUrl?: string;
104
+ creator?: string;
105
+ avatarUrl?: string;
106
+ contentHash?: string;
107
+ likes?: number;
108
+ comments?: number;
109
+ shares?: number;
110
+ isVerified?: boolean;
111
+ sourceApp?: string;
112
+ progressiveUrls?: string[];
113
+ dashManifests?: string[];
114
+ }): any;
115
+
116
+ export declare function reminderSection(options?: {
117
+ reminderId: string | number;
118
+ title?: string;
119
+ triggerType?: string;
120
+ triggerTime?: number | string;
121
+ createTime?: number | string;
122
+ isDeleted?: boolean;
123
+ thumbnailUrl?: string;
124
+ fullSizeUrl?: string;
125
+ mediaKey?: string;
126
+ }): any;
127
+
128
+ export declare function commentSection(options?: {
129
+ text?: string;
130
+ url?: string;
131
+ actorName?: string;
132
+ profileImage?: string;
133
+ subtitle?: string;
134
+ likes?: number;
135
+ replies?: number;
136
+ isVerified?: boolean;
137
+ }): any;
138
+
139
+ export declare function compactEntitySection(options?: {
140
+ title?: string;
141
+ subtitle?: string;
142
+ secondarySubtitle?: string;
143
+ image?: any;
144
+ entityId?: string | number;
145
+ entityUrl?: string;
146
+ entityType?: string;
147
+ actionType?: string;
148
+ isVerified?: boolean;
149
+ }): any;
150
+
151
+ export declare function actionListRow(options?: {
152
+ title?: string;
153
+ subtitle?: string;
154
+ action?: string;
155
+ icon?: string;
156
+ url?: string;
157
+ rowType?: string;
158
+ }): any;
159
+
160
+ export declare function actionListSection(rows?: any[]): any;
161
+
162
+ export interface PlannerOptions {
163
+ sources?: any[];
164
+ steps?: any[];
165
+ queryUrl?: string;
166
+ queryFavicon?: string;
167
+ searchEngine?: string;
168
+ facepileFavicons?: string[];
169
+ responseId?: string;
170
+ }
171
+
172
+ export declare function plannerStep(options?: { title?: string; instruction?: string; status?: string }): any;
173
+ export declare function searchPlannerSection(options?: PlannerOptions): any;
174
+ export declare function searchResultV2Section(options?: PlannerOptions): any;
175
+ export declare function plannerSnippetSection(options?: {
176
+ header?: string;
177
+ currentStep?: number;
178
+ totalSteps?: number;
179
+ status?: string;
180
+ }): any;
181
+
182
+ export declare function chainOfThoughtSection(options?: {
183
+ header?: string;
184
+ subtitle?: string;
185
+ plannerState?: any;
186
+ imageArtifacts?: any[];
187
+ text?: string;
188
+ }): any;
189
+
190
+ export declare function searchAdSection(options?: {
191
+ storyId?: string | number;
192
+ actorName?: string;
193
+ actorImageUrl?: string;
194
+ imageUrl?: string;
195
+ message?: string;
196
+ }): any;
197
+
198
+ export declare function transparencySignal(options?: {
199
+ id?: string | number;
200
+ signalType?: string;
201
+ value?: string;
202
+ memory?: string;
203
+ }): any;
204
+
205
+ export declare function transparencySection(options?: {
206
+ annotation?: string;
207
+ signals?: any[];
208
+ responseId?: string;
209
+ }): any;
210
+
211
+ export declare function professionalConsentSection(options?: Record<string, any>): any;
212
+
213
+ export declare function accountLinkingApp(options?: {
214
+ label?: string;
215
+ integrationFbid?: string | number;
216
+ integrationSlug?: string;
217
+ iconUrl?: string;
218
+ }): any;
219
+
220
+ export declare function accountLinkingSection(options?: {
221
+ title?: string;
222
+ subtitle?: string;
223
+ imageUrl?: string;
224
+ ctaLabel?: string;
225
+ ctaUrl?: string;
226
+ originalPrompt?: string;
227
+ integrationType?: string;
228
+ integrationStatus?: string;
229
+ integrationId?: string | number;
230
+ apps?: any[];
231
+ }): any;
232
+
233
+ export declare function calendarEvent(options?: {
234
+ title?: string;
235
+ startTime?: string | number;
236
+ endTime?: string | number;
237
+ location?: string;
238
+ description?: string;
239
+ recurrenceText?: string;
240
+ deeplink?: string;
241
+ attendees?: { email?: string; displayName?: string; name?: string }[];
242
+ }): any;
243
+
244
+ export declare function calendarWidgetSection(options?: {
245
+ title?: string;
246
+ iconUrls?: string[];
247
+ sections?: { date?: string; events?: any[] }[];
248
+ ctas?: { label?: string; kind?: string; state?: string; toolCallId?: string; toolName?: string; analyticsAction?: string }[];
249
+ toast?: string;
250
+ }): any;
251
+
252
+ export declare function chainingSuggestionSection(options?: {
253
+ promptText?: string;
254
+ title?: string;
255
+ imageUri?: string;
256
+ externalConversationId?: string;
257
+ topic?: string;
258
+ cardId?: string;
259
+ }): any;
260
+
261
+ export declare function mediaItem(options?: {
262
+ previewUrl?: string;
263
+ fullUrl?: string;
264
+ darkPreviewUrl?: string;
265
+ darkFullUrl?: string;
266
+ source?: string;
267
+ contentHash?: string;
268
+ assetQueryStatus?: string;
269
+ followUpPills?: (string | { promptText?: string; category?: string })[];
270
+ }): any;
271
+
272
+ export declare function mediaGridSection(items?: any[]): any;
273
+
274
+ export declare function contextualSourcesSection(sources?: {
275
+ uri?: string;
276
+ url?: string;
277
+ displayName?: string;
278
+ title?: string;
279
+ favicon?: string;
280
+ }[]): any;
281
+
282
+ export declare function threadSurfingItem(options?: {
283
+ entity?: string;
284
+ entityType?: string;
285
+ prompts?: (string | { prompt?: string; promptId?: string | number })[];
286
+ }): any;
287
+
288
+ export declare function socialEntityItem(options?: {
289
+ entityId?: string | number;
290
+ name?: string;
291
+ fullName?: string;
292
+ pictureUrl?: string;
293
+ entityUrl?: string;
294
+ entityType?: string;
295
+ isVerified?: boolean;
296
+ }): any;
297
+
298
+ export declare function placeEntityItem(options?: {
299
+ placeId?: string | number;
300
+ name?: string;
301
+ imageUrl?: string;
302
+ motivation?: string;
303
+ }): any;
304
+
305
+ export declare function productEntityItem(options?: {
306
+ productId?: string | number;
307
+ title?: string;
308
+ productUrl?: string;
309
+ imageUrl?: string;
310
+ additionalImages?: string[];
311
+ price?: string;
312
+ salePrice?: string;
313
+ brand?: string;
314
+ sourceType?: string;
315
+ isUnavailable?: boolean;
316
+ adTrackingCode?: string;
317
+ }): any;
318
+
319
+ export declare function sideBySideSurveyItem(options?: {
320
+ surveyId?: string | number;
321
+ threadId?: string | number;
322
+ botId?: string | number;
323
+ responseOtid?: string;
324
+ responseTimestampMs?: number;
325
+ simonSessionFbid?: string;
326
+ tessaSessionFbid?: string;
327
+ testArmName?: string;
328
+ }): any;
329
+
330
+ export declare function multipleResponseSection(responses?: any[], options?: {
331
+ layoutType?: string;
332
+ survey?: any;
333
+ }): any;
334
+
335
+ export declare function bloomCardSection(primitives?: any[]): any;
336
+
337
+ export declare function addonActionSection(primitives?: any[], options?: {
338
+ actionType?: string;
339
+ alignment?: string;
340
+ }): any;
341
+
342
+ export declare function quotaUpsellButton(button?: {
343
+ label?: string;
344
+ action?: string;
345
+ deeplink?: string;
346
+ }): any;
347
+
348
+ export declare function quotaUpsellSection(options?: {
349
+ title?: string;
350
+ body?: string;
351
+ bodyLine1?: string;
352
+ bodyLine2?: string;
353
+ meterUsageType?: string;
354
+ benefitType?: string;
355
+ buttons?: any[];
356
+ }): any;
357
+
358
+ export declare function quizQuestion(question?: {
359
+ question?: string;
360
+ options?: any[];
361
+ correctIndices?: number[];
362
+ explanation?: string;
363
+ hints?: any[];
364
+ }): any;
365
+
366
+ export declare function quizSection(options?: {
367
+ title?: string;
368
+ subject?: string;
369
+ questions?: any[];
370
+ }): any;
371
+
372
+ export declare function actionGroupButton(button?: {
373
+ actionId?: string;
374
+ clientActionId?: string;
375
+ label?: string;
376
+ deeplink?: any;
377
+ deeplinkUrl?: string;
378
+ androidDeeplinkUrl?: string;
379
+ }): any;
380
+
381
+ export declare function actionGroupSection(options?: {
382
+ groupId?: string;
383
+ recommendedActionId?: string;
384
+ buttons?: any[];
385
+ }): any;
386
+
387
+ export declare function fusedComparisonCta(cta?: {
388
+ label?: string;
389
+ uri?: string;
390
+ }): any;
391
+
392
+ export declare function fusedComparisonColumn(column?: {
393
+ productId?: string | number;
394
+ title?: string;
395
+ productUrl?: string;
396
+ merchant?: string;
397
+ image?: any;
398
+ price?: string;
399
+ originalPrice?: string;
400
+ cta?: any;
401
+ }): any;
402
+
403
+ export declare function fusedComparisonRow(row?: {
404
+ label?: string;
405
+ cells?: any[];
406
+ }): any;
407
+
408
+ export declare function fusedComparisonSection(options?: {
409
+ columns?: any[];
410
+ rows?: any[];
411
+ labelColumnIndex?: number;
412
+ pinLabelColumn?: boolean;
413
+ }): any;
414
+
415
+ export interface SignedRichResponse {
416
+ richResponseMessage: any;
417
+ botMetadata?: any;
418
+ botJid?: string;
419
+ unifiedResponseBytes?: Buffer;
420
+ proof?: any;
421
+ /** The proof fields are populated. Says nothing about whether it verifies. */
422
+ hasProof: boolean;
423
+ }
424
+
425
+ export declare function readSignedRichResponse(msg: any): SignedRichResponse | null;
426
+
427
+ export declare function verifyRichResponseSignature(
428
+ msg: any,
429
+ options?: { at?: number }
430
+ ): { status: 'passed' | 'failed'; reason?: string };
431
+
432
+ export declare function forwardRichResponse(sock: any, jid: string, msg: any, options?: {
433
+ quoted?: any;
434
+ contextInfo?: any;
435
+ messageId?: string;
436
+ additionalNodes?: any[];
437
+ [key: string]: any;
438
+ }): Promise<any>;