zapo-js 0.2.0 → 1.0.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.
Files changed (863) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +103 -179
  3. package/dist/appstate/{WaAppStateCrypto.js → crypto/WaAppStateCrypto.js} +79 -62
  4. package/dist/appstate/index.js +8 -7
  5. package/dist/appstate/{encoding.js → parsers/encoding.js} +11 -4
  6. package/dist/appstate/{WaAppStateSyncResponseParser.js → parsers/response-parser.js} +20 -8
  7. package/dist/appstate/{WaAppStateSyncClient.js → sync/WaAppStateSyncClient.js} +246 -88
  8. package/dist/appstate/utils.js +16 -0
  9. package/dist/appstate-spec.js +89 -0
  10. package/dist/auth/WaAuthClient.js +117 -13
  11. package/dist/auth/credentials-flow.js +207 -0
  12. package/dist/auth/pairing/WaPairingFlow.js +53 -47
  13. package/dist/auth/pairing/pairing-code-crypto.js +91 -0
  14. package/dist/client/WaClient.js +369 -460
  15. package/dist/client/WaClientFactory.js +377 -93
  16. package/dist/client/connection/WaConnectionManager.js +31 -11
  17. package/dist/client/coordinators/WaAbPropsCoordinator.js +140 -0
  18. package/dist/client/coordinators/WaAppStateMutationCoordinator.js +663 -143
  19. package/dist/client/coordinators/WaBotCoordinator.js +345 -0
  20. package/dist/client/coordinators/WaBroadcastListCoordinator.js +20 -0
  21. package/dist/client/coordinators/WaBusinessCoordinator.js +81 -180
  22. package/dist/client/coordinators/WaEmailCoordinator.js +64 -0
  23. package/dist/client/coordinators/WaGroupCoordinator.js +529 -52
  24. package/dist/client/coordinators/WaIncomingNodeCoordinator.js +130 -20
  25. package/dist/client/coordinators/WaLowLevelCoordinator.js +41 -0
  26. package/dist/client/coordinators/WaMessageCoordinator.js +365 -0
  27. package/dist/client/coordinators/WaMessageDispatchCoordinator.js +724 -216
  28. package/dist/client/coordinators/WaNewsletterCoordinator.js +18 -0
  29. package/dist/client/coordinators/WaOfflineResumeCoordinator.js +114 -0
  30. package/dist/client/coordinators/WaPassiveTasksCoordinator.js +53 -22
  31. package/dist/client/coordinators/WaPresenceCoordinator.js +21 -0
  32. package/dist/client/coordinators/WaPrivacyCoordinator.js +7 -5
  33. package/dist/client/coordinators/WaProfileCoordinator.js +223 -50
  34. package/dist/client/coordinators/WaRetryCoordinator.js +256 -123
  35. package/dist/client/coordinators/WaStatusCoordinator.js +49 -0
  36. package/dist/client/coordinators/WaStreamControlCoordinator.js +6 -6
  37. package/dist/client/coordinators/WaTrustedContactTokenCoordinator.js +29 -10
  38. package/dist/client/events/abprops.js +43 -0
  39. package/dist/client/events/appstate-mutation.js +133 -0
  40. package/dist/client/events/business.js +375 -0
  41. package/dist/client/events/call.js +58 -0
  42. package/dist/client/events/chatstate.js +23 -0
  43. package/dist/client/events/devices.js +15 -16
  44. package/dist/client/{dirty.js → events/dirty.js} +34 -20
  45. package/dist/client/events/group.js +13 -24
  46. package/dist/client/events/identity.js +2 -1
  47. package/dist/client/events/incoming.js +502 -0
  48. package/dist/client/events/mex-notification.js +181 -0
  49. package/dist/client/events/picture.js +33 -0
  50. package/dist/client/events/presence.js +44 -0
  51. package/dist/client/events/privacy-token.js +1 -2
  52. package/dist/client/events/receipt.js +26 -0
  53. package/dist/client/events/registration.js +42 -0
  54. package/dist/client/media.js +400 -0
  55. package/dist/client/messaging/fanout.js +9 -10
  56. package/dist/client/messaging/{participants.js → group-metadata.js} +73 -35
  57. package/dist/client/messaging/ignore-key.js +132 -0
  58. package/dist/client/messaging/key-protocol.js +3 -17
  59. package/dist/client/messaging/link-preview.js +159 -0
  60. package/dist/client/messaging/messages.js +671 -0
  61. package/dist/client/newsletter/admin.js +165 -0
  62. package/dist/client/newsletter/content.js +253 -0
  63. package/dist/client/newsletter/discovery.js +115 -0
  64. package/dist/client/newsletter/messaging.js +197 -0
  65. package/dist/client/newsletter/mex.js +41 -0
  66. package/dist/client/newsletter/parse.js +217 -0
  67. package/dist/client/persistence/WriteBehindPersistence.js +31 -4
  68. package/dist/client/{history-sync.js → persistence/history-sync.js} +125 -18
  69. package/dist/client/persistence/mailbox.js +104 -0
  70. package/dist/client/tokens/cs-token.js +11 -17
  71. package/dist/crypto/core/hkdf.js +12 -12
  72. package/dist/crypto/core/index.js +9 -8
  73. package/dist/crypto/core/keys.js +1 -8
  74. package/dist/crypto/core/nonce.js +12 -12
  75. package/dist/crypto/core/primitives.js +123 -93
  76. package/dist/crypto/core/random.js +9 -9
  77. package/dist/crypto/core/xeddsa.js +59 -0
  78. package/dist/crypto/curves/Ed25519.js +32 -21
  79. package/dist/crypto/curves/X25519.js +71 -17
  80. package/dist/crypto/curves/constants.js +3 -1
  81. package/dist/crypto/math/constants.js +1 -2
  82. package/dist/crypto/math/mod.js +0 -33
  83. package/dist/esm/appstate/{WaAppStateCrypto.js → crypto/WaAppStateCrypto.js} +72 -55
  84. package/dist/esm/appstate/index.js +5 -5
  85. package/dist/esm/appstate/{encoding.js → parsers/encoding.js} +11 -4
  86. package/dist/esm/appstate/{WaAppStateSyncResponseParser.js → parsers/response-parser.js} +20 -8
  87. package/dist/esm/appstate/{WaAppStateSyncClient.js → sync/WaAppStateSyncClient.js} +235 -76
  88. package/dist/esm/appstate/utils.js +16 -0
  89. package/dist/esm/appstate-spec.js +79 -0
  90. package/dist/esm/auth/WaAuthClient.js +114 -10
  91. package/dist/esm/auth/credentials-flow.js +202 -0
  92. package/dist/esm/auth/pairing/WaPairingFlow.js +52 -46
  93. package/dist/esm/auth/pairing/pairing-code-crypto.js +85 -0
  94. package/dist/esm/client/WaClient.js +372 -463
  95. package/dist/esm/client/WaClientFactory.js +380 -96
  96. package/dist/esm/client/connection/WaConnectionManager.js +31 -11
  97. package/dist/esm/client/coordinators/WaAbPropsCoordinator.js +136 -0
  98. package/dist/esm/client/coordinators/WaAppStateMutationCoordinator.js +665 -145
  99. package/dist/esm/client/coordinators/WaBotCoordinator.js +342 -0
  100. package/dist/esm/client/coordinators/WaBroadcastListCoordinator.js +17 -0
  101. package/dist/esm/client/coordinators/WaBusinessCoordinator.js +78 -177
  102. package/dist/esm/client/coordinators/WaEmailCoordinator.js +61 -0
  103. package/dist/esm/client/coordinators/WaGroupCoordinator.js +532 -55
  104. package/dist/esm/client/coordinators/WaIncomingNodeCoordinator.js +132 -22
  105. package/dist/esm/client/coordinators/WaLowLevelCoordinator.js +38 -0
  106. package/dist/esm/client/coordinators/WaMessageCoordinator.js +361 -0
  107. package/dist/esm/client/coordinators/WaMessageDispatchCoordinator.js +719 -211
  108. package/dist/esm/client/coordinators/WaNewsletterCoordinator.js +13 -0
  109. package/dist/esm/client/coordinators/WaOfflineResumeCoordinator.js +110 -0
  110. package/dist/esm/client/coordinators/WaPassiveTasksCoordinator.js +54 -23
  111. package/dist/esm/client/coordinators/WaPresenceCoordinator.js +18 -0
  112. package/dist/esm/client/coordinators/WaPrivacyCoordinator.js +7 -5
  113. package/dist/esm/client/coordinators/WaProfileCoordinator.js +226 -53
  114. package/dist/esm/client/coordinators/WaRetryCoordinator.js +258 -125
  115. package/dist/esm/client/coordinators/WaStatusCoordinator.js +46 -0
  116. package/dist/esm/client/coordinators/WaStreamControlCoordinator.js +6 -6
  117. package/dist/esm/client/coordinators/WaTrustedContactTokenCoordinator.js +31 -12
  118. package/dist/esm/client/events/abprops.js +40 -0
  119. package/dist/esm/client/events/appstate-mutation.js +130 -0
  120. package/dist/esm/client/events/business.js +370 -0
  121. package/dist/esm/client/events/call.js +55 -0
  122. package/dist/esm/client/events/chatstate.js +20 -0
  123. package/dist/esm/client/events/devices.js +15 -16
  124. package/dist/esm/client/{dirty.js → events/dirty.js} +34 -20
  125. package/dist/esm/client/events/group.js +14 -25
  126. package/dist/esm/client/events/identity.js +2 -1
  127. package/dist/esm/client/events/incoming.js +487 -0
  128. package/dist/esm/client/events/mex-notification.js +178 -0
  129. package/dist/esm/client/events/picture.js +30 -0
  130. package/dist/esm/client/events/presence.js +41 -0
  131. package/dist/esm/client/events/privacy-token.js +1 -2
  132. package/dist/esm/client/events/receipt.js +23 -0
  133. package/dist/esm/client/events/registration.js +39 -0
  134. package/dist/esm/client/media.js +384 -0
  135. package/dist/esm/client/messaging/fanout.js +10 -11
  136. package/dist/esm/client/messaging/{participants.js → group-metadata.js} +72 -34
  137. package/dist/esm/client/messaging/ignore-key.js +126 -0
  138. package/dist/esm/client/messaging/key-protocol.js +3 -17
  139. package/dist/esm/client/messaging/link-preview.js +156 -0
  140. package/dist/esm/client/messaging/messages.js +667 -0
  141. package/dist/esm/client/newsletter/admin.js +162 -0
  142. package/dist/esm/client/newsletter/content.js +249 -0
  143. package/dist/esm/client/newsletter/discovery.js +112 -0
  144. package/dist/esm/client/newsletter/messaging.js +194 -0
  145. package/dist/esm/client/newsletter/mex.js +37 -0
  146. package/dist/esm/client/newsletter/parse.js +200 -0
  147. package/dist/esm/client/persistence/WriteBehindPersistence.js +31 -4
  148. package/dist/esm/client/{history-sync.js → persistence/history-sync.js} +124 -18
  149. package/dist/esm/client/persistence/mailbox.js +101 -0
  150. package/dist/esm/client/tokens/cs-token.js +12 -18
  151. package/dist/esm/crypto/core/hkdf.js +14 -14
  152. package/dist/esm/crypto/core/index.js +3 -2
  153. package/dist/esm/crypto/core/keys.js +1 -7
  154. package/dist/esm/crypto/core/nonce.js +11 -11
  155. package/dist/esm/crypto/core/primitives.js +121 -88
  156. package/dist/esm/crypto/core/random.js +8 -7
  157. package/dist/esm/crypto/core/xeddsa.js +55 -0
  158. package/dist/esm/crypto/curves/Ed25519.js +35 -24
  159. package/dist/esm/crypto/curves/X25519.js +74 -20
  160. package/dist/esm/crypto/curves/constants.js +2 -0
  161. package/dist/esm/crypto/math/constants.js +1 -2
  162. package/dist/esm/crypto/math/mod.js +0 -32
  163. package/dist/esm/index.js +7 -2
  164. package/dist/esm/infra/log/ConsoleLogger.js +30 -6
  165. package/dist/esm/infra/log/PinoLogger.js +64 -0
  166. package/dist/esm/infra/log/types.js +4 -2
  167. package/dist/esm/infra/perf/BackgroundQueue.js +55 -13
  168. package/dist/esm/infra/perf/StoreLock.js +7 -4
  169. package/dist/esm/media/constants.js +35 -2
  170. package/dist/esm/media/crypto/WaMediaCrypto.js +374 -0
  171. package/dist/esm/media/index.js +4 -3
  172. package/dist/esm/media/processor.js +1 -0
  173. package/dist/esm/media/sticker/sticker-pack.js +133 -0
  174. package/dist/esm/media/{WaMediaTransferClient.js → transfer/WaMediaTransferClient.js} +84 -196
  175. package/dist/esm/media/{conn.js → transfer/conn.js} +10 -5
  176. package/dist/esm/message/WaMessageClient.js +46 -15
  177. package/dist/esm/message/addons/link-preview/builder.js +36 -0
  178. package/dist/esm/message/addons/link-preview/detect.js +55 -0
  179. package/dist/esm/message/addons/link-preview/fetcher.js +391 -0
  180. package/dist/esm/message/addons/link-preview/types.js +1 -0
  181. package/dist/esm/message/context-info.js +123 -0
  182. package/dist/esm/message/crypto/addon-crypto.js +244 -0
  183. package/dist/esm/message/{icdc.js → crypto/icdc.js} +11 -13
  184. package/dist/esm/message/crypto/phash.js +133 -0
  185. package/dist/esm/message/{reporting-token.js → crypto/reporting-token.js} +7 -7
  186. package/dist/esm/message/{use-case-secret.js → crypto/use-case-secret.js} +21 -4
  187. package/dist/esm/message/{content.js → encode/content.js} +183 -8
  188. package/dist/esm/message/encode/media-payload.js +42 -0
  189. package/dist/esm/message/{padding.js → encode/padding.js} +9 -3
  190. package/dist/esm/message/index.js +2 -2
  191. package/dist/esm/message/kinds/bot.js +111 -0
  192. package/dist/esm/message/kinds/newsletter.js +244 -0
  193. package/dist/esm/message/kinds/sticker-pack.js +29 -0
  194. package/dist/esm/message/{ack.js → primitives/ack.js} +8 -1
  195. package/dist/esm/message/primitives/incoming.js +511 -0
  196. package/dist/esm/message/primitives/peer-data-operation.js +93 -0
  197. package/dist/esm/mex.js +1 -0
  198. package/dist/esm/protocol/abprops.js +169 -0
  199. package/dist/esm/protocol/appstate.js +6 -30
  200. package/dist/esm/protocol/auth.js +3 -2
  201. package/dist/esm/protocol/bot.js +77 -0
  202. package/dist/esm/protocol/browser.js +22 -0
  203. package/dist/esm/protocol/business.js +19 -0
  204. package/dist/esm/protocol/call.js +48 -0
  205. package/dist/esm/protocol/constants.js +10 -2
  206. package/dist/esm/protocol/defaults.js +3 -0
  207. package/dist/esm/protocol/email.js +30 -0
  208. package/dist/esm/protocol/index.js +1 -1
  209. package/dist/esm/protocol/jid.js +142 -11
  210. package/dist/esm/protocol/media.js +25 -12
  211. package/dist/esm/protocol/message.js +4 -1
  212. package/dist/esm/protocol/newsletter.js +61 -0
  213. package/dist/esm/protocol/nodes.js +26 -2
  214. package/dist/esm/protocol/notification.js +24 -2
  215. package/dist/esm/protocol/presence.js +13 -0
  216. package/dist/esm/protocol/status.js +6 -0
  217. package/dist/esm/retry/codec.js +5 -0
  218. package/dist/esm/retry/parse.js +20 -38
  219. package/dist/esm/retry/reason.js +6 -1
  220. package/dist/esm/retry/replay.js +131 -37
  221. package/dist/esm/retry/tracker.js +4 -8
  222. package/dist/esm/signal/api/SignalDeviceSyncApi.js +71 -21
  223. package/dist/esm/signal/api/SignalDigestSyncApi.js +15 -8
  224. package/dist/esm/signal/api/SignalIdentitySyncApi.js +13 -4
  225. package/dist/esm/signal/api/SignalMissingPreKeysSyncApi.js +24 -63
  226. package/dist/esm/signal/api/SignalRotateKeyApi.js +10 -0
  227. package/dist/esm/signal/api/SignalSessionSyncApi.js +23 -51
  228. package/dist/esm/signal/api/codec.js +52 -1
  229. package/dist/esm/signal/api/prekeys.js +4 -0
  230. package/dist/esm/signal/attestation/WaAdvSignature.js +17 -0
  231. package/dist/esm/signal/{crypto → attestation}/constants.js +0 -4
  232. package/dist/esm/signal/constants.js +3 -0
  233. package/dist/esm/signal/encoding.js +6 -332
  234. package/dist/esm/signal/group/SenderKeyChain.js +20 -35
  235. package/dist/esm/signal/group/SenderKeyCodec.js +5 -6
  236. package/dist/esm/signal/group/SenderKeyManager.js +37 -17
  237. package/dist/esm/signal/group/encoding.js +96 -0
  238. package/dist/esm/signal/index.js +4 -1
  239. package/dist/esm/signal/registration/encoding.js +34 -0
  240. package/dist/esm/signal/registration/keygen.js +12 -3
  241. package/dist/esm/signal/registration/utils.js +8 -2
  242. package/dist/esm/signal/session/SignalProtocol.js +129 -26
  243. package/dist/esm/signal/session/SignalRatchet.js +46 -64
  244. package/dist/esm/signal/session/SignalSerializer.js +5 -6
  245. package/dist/esm/signal/session/SignalSession.js +14 -19
  246. package/dist/esm/signal/session/encoding.js +173 -0
  247. package/dist/esm/signal/session/resolver.js +144 -35
  248. package/dist/esm/store/cache/identity.cache.js +75 -0
  249. package/dist/esm/store/cache/privacy-token.cache.js +57 -0
  250. package/dist/esm/store/cache/sender-key.cache.js +101 -0
  251. package/dist/esm/store/cache/session.cache.js +92 -0
  252. package/dist/esm/store/contracts/group-metadata.store.js +1 -0
  253. package/dist/esm/store/contracts/identity.store.js +1 -0
  254. package/dist/esm/store/contracts/message-secret.store.js +1 -0
  255. package/dist/esm/store/contracts/pre-key.store.js +1 -0
  256. package/dist/esm/store/contracts/session.store.js +1 -0
  257. package/dist/esm/store/createStore.js +129 -39
  258. package/dist/esm/store/index.js +15 -10
  259. package/dist/esm/store/locks/contact.lock.js +1 -0
  260. package/dist/esm/store/locks/device-list.lock.js +1 -0
  261. package/dist/esm/store/locks/group-metadata.lock.js +20 -0
  262. package/dist/esm/store/locks/identity.lock.js +16 -0
  263. package/dist/esm/store/locks/message-secret.lock.js +17 -0
  264. package/dist/esm/store/locks/pre-key.lock.js +27 -0
  265. package/dist/esm/store/locks/session.lock.js +19 -0
  266. package/dist/esm/store/locks/signal.lock.js +0 -24
  267. package/dist/esm/store/{providers/memory → memory}/appstate.store.js +5 -5
  268. package/dist/esm/store/memory/auth.store.js +24 -0
  269. package/dist/esm/store/memory/contact.store.js +79 -0
  270. package/dist/esm/store/memory/device-list.store.js +103 -0
  271. package/dist/esm/store/{providers/memory/participants.store.js → memory/group-metadata.store.js} +24 -12
  272. package/dist/esm/store/memory/identity.store.js +31 -0
  273. package/dist/esm/store/memory/message-secret.store.js +90 -0
  274. package/dist/esm/store/{providers/memory → memory}/message.store.js +2 -2
  275. package/dist/esm/store/memory/pre-key.store.js +97 -0
  276. package/dist/esm/store/{providers/memory → memory}/privacy-token.store.js +1 -1
  277. package/dist/esm/store/{providers/memory → memory}/retry.store.js +49 -14
  278. package/dist/esm/store/{providers/memory → memory}/sender-key.store.js +3 -3
  279. package/dist/esm/store/memory/session.store.js +45 -0
  280. package/dist/esm/store/memory/signal.store.js +36 -0
  281. package/dist/esm/store/{providers/memory → memory}/thread.store.js +2 -2
  282. package/dist/esm/store/noop.store.js +26 -4
  283. package/dist/esm/transport/WaComms.js +18 -8
  284. package/dist/esm/transport/WaWebSocket.js +41 -9
  285. package/dist/esm/transport/binary/constants.js +10 -4
  286. package/dist/esm/transport/binary/decoder.js +21 -15
  287. package/dist/esm/transport/binary/encoder.js +96 -21
  288. package/dist/esm/transport/binary/tokens.js +12 -12
  289. package/dist/esm/transport/index.js +7 -0
  290. package/dist/esm/transport/keepalive/WaKeepAlive.js +35 -12
  291. package/dist/esm/transport/node/WaMobileTcpSocket.js +120 -0
  292. package/dist/esm/transport/node/WaNodeOrchestrator.js +26 -13
  293. package/dist/esm/transport/node/WaNodeTransport.js +13 -0
  294. package/dist/esm/transport/node/builders/abprops.js +20 -0
  295. package/dist/esm/transport/node/builders/account-sync.js +7 -15
  296. package/dist/esm/transport/node/builders/bot.js +38 -0
  297. package/dist/esm/transport/node/builders/business.js +30 -30
  298. package/dist/esm/transport/node/builders/chatstate.js +28 -0
  299. package/dist/esm/transport/node/builders/community.js +53 -0
  300. package/dist/esm/transport/node/builders/device.js +11 -0
  301. package/dist/esm/transport/node/builders/email.js +66 -0
  302. package/dist/esm/transport/node/builders/global.js +1 -1
  303. package/dist/esm/transport/node/builders/group.js +114 -4
  304. package/dist/esm/transport/node/builders/media.js +2 -2
  305. package/dist/esm/transport/node/builders/message.js +83 -49
  306. package/dist/esm/transport/node/builders/newsletter.js +176 -0
  307. package/dist/esm/transport/node/builders/offline.js +14 -0
  308. package/dist/esm/transport/node/builders/passive.js +7 -0
  309. package/dist/esm/transport/node/builders/prekeys.js +40 -43
  310. package/dist/esm/transport/node/builders/presence.js +39 -0
  311. package/dist/esm/transport/node/builders/privacy-token.js +19 -23
  312. package/dist/esm/transport/node/builders/privacy.js +6 -6
  313. package/dist/esm/transport/node/builders/profile.js +28 -8
  314. package/dist/esm/transport/node/builders/retry.js +1 -1
  315. package/dist/esm/transport/node/builders/tos.js +58 -0
  316. package/dist/esm/transport/node/builders/usync.js +51 -2
  317. package/dist/esm/transport/node/helpers.js +27 -1
  318. package/dist/esm/transport/node/mex/argo-decoder.js +152 -0
  319. package/dist/esm/transport/node/mex/client.js +105 -0
  320. package/dist/esm/transport/node/query.js +17 -0
  321. package/dist/esm/transport/node/usync.js +12 -0
  322. package/dist/esm/transport/noise/WaClientPayload.js +23 -18
  323. package/dist/esm/transport/noise/WaFrameCodec.js +2 -2
  324. package/dist/esm/transport/noise/WaMobileClientPayload.js +58 -0
  325. package/dist/esm/transport/noise/WaNoiseCert.js +14 -27
  326. package/dist/esm/transport/noise/WaNoiseHandshake.js +27 -25
  327. package/dist/esm/transport/noise/WaNoiseSession.js +48 -67
  328. package/dist/esm/transport/noise/WaNoiseSocket.js +19 -13
  329. package/dist/esm/transport/noise/constants.js +0 -1
  330. package/dist/esm/transport/proxy.js +5 -0
  331. package/dist/esm/transport/stream/parse.js +3 -7
  332. package/dist/esm/transport/wa-web-version-fetcher.js +91 -0
  333. package/dist/esm/util/async.js +4 -0
  334. package/dist/esm/util/bytes.js +37 -2
  335. package/dist/esm/util/clock.js +15 -0
  336. package/dist/esm/util/coercion.js +45 -3
  337. package/dist/esm/util/collections.js +11 -0
  338. package/dist/esm/util/index.js +2 -2
  339. package/dist/esm/util/primitives.js +19 -0
  340. package/dist/esm/util/runtime.js +5 -0
  341. package/dist/esm/version-spec.js +1 -0
  342. package/dist/index.js +31 -1
  343. package/dist/infra/log/ConsoleLogger.js +30 -6
  344. package/dist/infra/log/PinoLogger.js +64 -0
  345. package/dist/infra/log/types.js +4 -2
  346. package/dist/infra/perf/BackgroundQueue.js +55 -13
  347. package/dist/infra/perf/StoreLock.js +7 -4
  348. package/dist/media/constants.js +36 -3
  349. package/dist/media/crypto/WaMediaCrypto.js +378 -0
  350. package/dist/media/index.js +9 -4
  351. package/dist/media/processor.js +2 -0
  352. package/dist/media/sticker/sticker-pack.js +136 -0
  353. package/dist/media/{WaMediaTransferClient.js → transfer/WaMediaTransferClient.js} +87 -229
  354. package/dist/media/{conn.js → transfer/conn.js} +10 -5
  355. package/dist/message/WaMessageClient.js +46 -15
  356. package/dist/message/addons/link-preview/builder.js +39 -0
  357. package/dist/message/addons/link-preview/detect.js +58 -0
  358. package/dist/message/addons/link-preview/fetcher.js +394 -0
  359. package/dist/message/addons/link-preview/types.js +2 -0
  360. package/dist/message/context-info.js +129 -0
  361. package/dist/message/crypto/addon-crypto.js +254 -0
  362. package/dist/message/{icdc.js → crypto/icdc.js} +11 -13
  363. package/dist/message/crypto/phash.js +136 -0
  364. package/dist/message/{reporting-token.js → crypto/reporting-token.js} +7 -7
  365. package/dist/message/{use-case-secret.js → crypto/use-case-secret.js} +21 -4
  366. package/dist/message/{content.js → encode/content.js} +200 -7
  367. package/dist/message/encode/media-payload.js +45 -0
  368. package/dist/message/{padding.js → encode/padding.js} +9 -3
  369. package/dist/message/index.js +2 -2
  370. package/dist/message/kinds/bot.js +120 -0
  371. package/dist/message/kinds/newsletter.js +248 -0
  372. package/dist/message/kinds/sticker-pack.js +34 -0
  373. package/dist/message/{ack.js → primitives/ack.js} +8 -1
  374. package/dist/message/{incoming.js → primitives/incoming.js} +225 -38
  375. package/dist/message/primitives/peer-data-operation.js +96 -0
  376. package/dist/mex.js +6 -0
  377. package/dist/proto.js +1 -1
  378. package/dist/protocol/abprops.js +173 -0
  379. package/dist/protocol/appstate.js +7 -31
  380. package/dist/protocol/auth.js +3 -2
  381. package/dist/protocol/bot.js +81 -0
  382. package/dist/protocol/browser.js +23 -0
  383. package/dist/protocol/business.js +22 -0
  384. package/dist/protocol/call.js +51 -0
  385. package/dist/protocol/constants.js +51 -3
  386. package/dist/protocol/defaults.js +3 -0
  387. package/dist/protocol/email.js +33 -0
  388. package/dist/protocol/index.js +12 -3
  389. package/dist/protocol/jid.js +148 -11
  390. package/dist/protocol/media.js +25 -12
  391. package/dist/protocol/message.js +4 -1
  392. package/dist/protocol/newsletter.js +64 -0
  393. package/dist/protocol/nodes.js +26 -2
  394. package/dist/protocol/notification.js +25 -3
  395. package/dist/protocol/presence.js +16 -0
  396. package/dist/protocol/status.js +9 -0
  397. package/dist/retry/codec.js +5 -0
  398. package/dist/retry/parse.js +16 -34
  399. package/dist/retry/reason.js +6 -1
  400. package/dist/retry/replay.js +129 -35
  401. package/dist/retry/tracker.js +3 -7
  402. package/dist/signal/api/SignalDeviceSyncApi.js +69 -19
  403. package/dist/signal/api/SignalDigestSyncApi.js +14 -7
  404. package/dist/signal/api/SignalIdentitySyncApi.js +13 -4
  405. package/dist/signal/api/SignalMissingPreKeysSyncApi.js +21 -60
  406. package/dist/signal/api/SignalRotateKeyApi.js +10 -0
  407. package/dist/signal/api/SignalSessionSyncApi.js +20 -48
  408. package/dist/signal/api/codec.js +52 -0
  409. package/dist/signal/api/prekeys.js +4 -0
  410. package/dist/signal/attestation/WaAdvSignature.js +26 -0
  411. package/dist/signal/{crypto → attestation}/constants.js +1 -5
  412. package/dist/signal/constants.js +4 -1
  413. package/dist/signal/encoding.js +5 -341
  414. package/dist/signal/group/SenderKeyChain.js +19 -34
  415. package/dist/signal/group/SenderKeyCodec.js +4 -5
  416. package/dist/signal/group/SenderKeyManager.js +36 -16
  417. package/dist/signal/group/encoding.js +101 -0
  418. package/dist/signal/index.js +13 -10
  419. package/dist/signal/registration/encoding.js +39 -0
  420. package/dist/signal/registration/keygen.js +11 -2
  421. package/dist/signal/registration/utils.js +8 -2
  422. package/dist/signal/session/SignalProtocol.js +128 -25
  423. package/dist/signal/session/SignalRatchet.js +41 -60
  424. package/dist/signal/session/SignalSerializer.js +5 -6
  425. package/dist/signal/session/SignalSession.js +13 -19
  426. package/dist/signal/session/encoding.js +183 -0
  427. package/dist/signal/session/resolver.js +144 -35
  428. package/dist/store/cache/identity.cache.js +78 -0
  429. package/dist/store/cache/privacy-token.cache.js +60 -0
  430. package/dist/store/cache/sender-key.cache.js +104 -0
  431. package/dist/store/cache/session.cache.js +95 -0
  432. package/dist/store/contracts/group-metadata.store.js +2 -0
  433. package/dist/store/contracts/identity.store.js +2 -0
  434. package/dist/store/contracts/message-secret.store.js +2 -0
  435. package/dist/store/contracts/pre-key.store.js +2 -0
  436. package/dist/store/contracts/session.store.js +2 -0
  437. package/dist/store/createStore.js +128 -38
  438. package/dist/store/index.js +22 -12
  439. package/dist/store/locks/contact.lock.js +1 -0
  440. package/dist/store/locks/device-list.lock.js +1 -0
  441. package/dist/store/locks/group-metadata.lock.js +23 -0
  442. package/dist/store/locks/identity.lock.js +19 -0
  443. package/dist/store/locks/message-secret.lock.js +20 -0
  444. package/dist/store/locks/pre-key.lock.js +30 -0
  445. package/dist/store/locks/session.lock.js +22 -0
  446. package/dist/store/locks/signal.lock.js +0 -24
  447. package/dist/store/{providers/memory → memory}/appstate.store.js +5 -5
  448. package/dist/store/memory/auth.store.js +28 -0
  449. package/dist/store/memory/contact.store.js +83 -0
  450. package/dist/store/memory/device-list.store.js +107 -0
  451. package/dist/store/{providers/memory/participants.store.js → memory/group-metadata.store.js} +26 -14
  452. package/dist/store/memory/identity.store.js +35 -0
  453. package/dist/store/memory/message-secret.store.js +94 -0
  454. package/dist/store/{providers/memory → memory}/message.store.js +2 -2
  455. package/dist/store/memory/pre-key.store.js +101 -0
  456. package/dist/store/{providers/memory → memory}/privacy-token.store.js +1 -1
  457. package/dist/store/{providers/memory → memory}/retry.store.js +49 -14
  458. package/dist/store/{providers/memory → memory}/sender-key.store.js +3 -3
  459. package/dist/store/memory/session.store.js +49 -0
  460. package/dist/store/memory/signal.store.js +40 -0
  461. package/dist/store/{providers/memory → memory}/thread.store.js +2 -2
  462. package/dist/store/noop.store.js +27 -5
  463. package/dist/transport/WaComms.js +18 -8
  464. package/dist/transport/WaWebSocket.js +41 -9
  465. package/dist/transport/binary/constants.js +11 -5
  466. package/dist/transport/binary/decoder.js +24 -18
  467. package/dist/transport/binary/encoder.js +109 -34
  468. package/dist/transport/binary/tokens.js +12 -12
  469. package/dist/transport/index.js +19 -1
  470. package/dist/transport/keepalive/WaKeepAlive.js +35 -12
  471. package/dist/transport/node/WaMobileTcpSocket.js +124 -0
  472. package/dist/transport/node/WaNodeOrchestrator.js +25 -12
  473. package/dist/transport/node/WaNodeTransport.js +13 -0
  474. package/dist/transport/node/builders/abprops.js +23 -0
  475. package/dist/transport/node/builders/account-sync.js +7 -16
  476. package/dist/transport/node/builders/bot.js +43 -0
  477. package/dist/transport/node/builders/business.js +31 -31
  478. package/dist/transport/node/builders/chatstate.js +31 -0
  479. package/dist/transport/node/builders/community.js +59 -0
  480. package/dist/transport/node/builders/device.js +14 -0
  481. package/dist/transport/node/builders/email.js +73 -0
  482. package/dist/transport/node/builders/global.js +1 -1
  483. package/dist/transport/node/builders/group.js +121 -3
  484. package/dist/transport/node/builders/media.js +1 -1
  485. package/dist/transport/node/builders/message.js +84 -49
  486. package/dist/transport/node/builders/newsletter.js +183 -0
  487. package/dist/transport/node/builders/offline.js +17 -0
  488. package/dist/transport/node/builders/passive.js +10 -0
  489. package/dist/transport/node/builders/prekeys.js +38 -41
  490. package/dist/transport/node/builders/presence.js +43 -0
  491. package/dist/transport/node/builders/privacy-token.js +18 -22
  492. package/dist/transport/node/builders/privacy.js +5 -5
  493. package/dist/transport/node/builders/profile.js +30 -7
  494. package/dist/transport/node/builders/retry.js +1 -1
  495. package/dist/transport/node/builders/tos.js +63 -0
  496. package/dist/transport/node/builders/usync.js +52 -1
  497. package/dist/transport/node/helpers.js +28 -1
  498. package/dist/transport/node/mex/argo-decoder.js +189 -0
  499. package/dist/transport/node/mex/client.js +109 -0
  500. package/dist/transport/node/query.js +17 -0
  501. package/dist/transport/node/usync.js +13 -0
  502. package/dist/transport/noise/WaClientPayload.js +22 -17
  503. package/dist/transport/noise/WaFrameCodec.js +1 -1
  504. package/dist/transport/noise/WaMobileClientPayload.js +61 -0
  505. package/dist/transport/noise/WaNoiseCert.js +13 -26
  506. package/dist/transport/noise/WaNoiseHandshake.js +25 -23
  507. package/dist/transport/noise/WaNoiseSession.js +47 -66
  508. package/dist/transport/noise/WaNoiseSocket.js +18 -12
  509. package/dist/transport/noise/constants.js +1 -2
  510. package/dist/transport/proxy.js +5 -0
  511. package/dist/transport/stream/parse.js +3 -7
  512. package/dist/transport/wa-web-version-fetcher.js +94 -0
  513. package/dist/types/appstate/constants.d.ts +1 -1
  514. package/dist/types/appstate/{WaAppStateCrypto.d.ts → crypto/WaAppStateCrypto.d.ts} +29 -9
  515. package/dist/types/appstate/index.d.ts +5 -5
  516. package/dist/types/appstate/{encoding.d.ts → parsers/encoding.d.ts} +8 -1
  517. package/dist/types/appstate/{WaAppStateSyncResponseParser.d.ts → parsers/response-parser.d.ts} +13 -3
  518. package/dist/types/appstate/sync/WaAppStateSyncClient.d.ts +105 -0
  519. package/dist/types/appstate/types.d.ts +1 -1
  520. package/dist/types/appstate/utils.d.ts +17 -1
  521. package/dist/types/appstate-spec.d.ts +24 -0
  522. package/dist/types/auth/WaAuthClient.d.ts +95 -3
  523. package/dist/types/auth/credentials-flow.d.ts +21 -0
  524. package/dist/types/auth/pairing/WaPairingFlow.d.ts +3 -2
  525. package/dist/types/auth/pairing/{WaPairingCodeCrypto.d.ts → pairing-code-crypto.d.ts} +5 -1
  526. package/dist/types/auth/types.d.ts +88 -1
  527. package/dist/types/client/WaClient.d.ts +183 -65
  528. package/dist/types/client/WaClientFactory.d.ts +40 -9
  529. package/dist/types/client/connection/WaConnectionManager.d.ts +4 -2
  530. package/dist/types/client/connection/WaReceiptQueue.d.ts +1 -1
  531. package/dist/types/client/coordinators/WaAbPropsCoordinator.d.ts +26 -0
  532. package/dist/types/client/coordinators/WaAppStateMutationCoordinator.d.ts +215 -5
  533. package/dist/types/client/coordinators/WaBotCoordinator.d.ts +117 -0
  534. package/dist/types/client/coordinators/WaBroadcastListCoordinator.d.ts +39 -0
  535. package/dist/types/client/coordinators/WaBusinessCoordinator.d.ts +45 -44
  536. package/dist/types/client/coordinators/WaEmailCoordinator.d.ts +40 -0
  537. package/dist/types/client/coordinators/WaGroupCoordinator.d.ts +311 -9
  538. package/dist/types/client/coordinators/WaIncomingNodeCoordinator.d.ts +16 -4
  539. package/dist/types/client/coordinators/WaLowLevelCoordinator.d.ts +47 -0
  540. package/dist/types/client/coordinators/WaMessageCoordinator.d.ts +232 -0
  541. package/dist/types/client/coordinators/WaMessageDispatchCoordinator.d.ts +65 -29
  542. package/dist/types/client/coordinators/WaNewsletterCoordinator.d.ts +13 -0
  543. package/dist/types/client/coordinators/WaOfflineResumeCoordinator.d.ts +31 -0
  544. package/dist/types/client/coordinators/WaPassiveTasksCoordinator.d.ts +15 -3
  545. package/dist/types/client/coordinators/WaPresenceCoordinator.d.ts +27 -0
  546. package/dist/types/client/coordinators/WaPrivacyCoordinator.d.ts +28 -1
  547. package/dist/types/client/coordinators/WaProfileCoordinator.d.ts +117 -2
  548. package/dist/types/client/coordinators/WaRetryCoordinator.d.ts +23 -15
  549. package/dist/types/client/coordinators/WaStatusCoordinator.d.ts +42 -0
  550. package/dist/types/client/coordinators/WaTrustedContactTokenCoordinator.d.ts +16 -2
  551. package/dist/types/client/events/abprops.d.ts +15 -0
  552. package/dist/types/client/events/appstate-mutation.d.ts +3 -0
  553. package/dist/types/client/events/business.d.ts +10 -0
  554. package/dist/types/client/events/call.d.ts +31 -0
  555. package/dist/types/client/events/chatstate.d.ts +9 -0
  556. package/dist/types/client/events/devices.d.ts +5 -4
  557. package/dist/types/client/{dirty.d.ts → events/dirty.d.ts} +7 -4
  558. package/dist/types/client/events/group.d.ts +2 -1
  559. package/dist/types/client/events/identity.d.ts +2 -1
  560. package/dist/types/client/events/incoming.d.ts +65 -0
  561. package/dist/types/client/events/mex-notification.d.ts +6 -0
  562. package/dist/types/client/events/picture.d.ts +8 -0
  563. package/dist/types/client/events/presence.d.ts +28 -0
  564. package/dist/types/client/events/receipt.d.ts +14 -0
  565. package/dist/types/client/events/registration.d.ts +18 -0
  566. package/dist/types/client/index.d.ts +1 -1
  567. package/dist/types/client/media.d.ts +65 -0
  568. package/dist/types/client/messaging/fanout.d.ts +2 -2
  569. package/dist/types/client/messaging/group-metadata.d.ts +19 -0
  570. package/dist/types/client/messaging/ignore-key.d.ts +11 -0
  571. package/dist/types/client/messaging/key-protocol.d.ts +9 -7
  572. package/dist/types/client/messaging/link-preview.d.ts +19 -0
  573. package/dist/types/client/messaging/messages.d.ts +28 -0
  574. package/dist/types/client/newsletter/admin.d.ts +71 -0
  575. package/dist/types/client/newsletter/content.d.ts +42 -0
  576. package/dist/types/client/newsletter/discovery.d.ts +33 -0
  577. package/dist/types/client/newsletter/messaging.d.ts +66 -0
  578. package/dist/types/client/newsletter/mex.d.ts +14 -0
  579. package/dist/types/client/newsletter/parse.d.ts +19 -0
  580. package/dist/types/client/newsletter/types.d.ts +190 -0
  581. package/dist/types/client/persistence/WriteBehindPersistence.d.ts +13 -2
  582. package/dist/types/client/persistence/history-sync.d.ts +29 -0
  583. package/dist/types/client/persistence/mailbox.d.ts +12 -0
  584. package/dist/types/client/tokens/cs-token.d.ts +1 -3
  585. package/dist/types/client/types.d.ts +926 -55
  586. package/dist/types/crypto/core/hkdf.d.ts +10 -2
  587. package/dist/types/crypto/core/index.d.ts +3 -2
  588. package/dist/types/crypto/core/keys.d.ts +0 -4
  589. package/dist/types/crypto/core/nonce.d.ts +4 -5
  590. package/dist/types/crypto/core/primitives.d.ts +31 -20
  591. package/dist/types/crypto/core/random.d.ts +7 -1
  592. package/dist/types/crypto/core/xeddsa.d.ts +11 -0
  593. package/dist/types/crypto/curves/Ed25519.d.ts +7 -1
  594. package/dist/types/crypto/curves/X25519.d.ts +20 -1
  595. package/dist/types/crypto/curves/constants.d.ts +4 -2
  596. package/dist/types/crypto/curves/types.d.ts +0 -5
  597. package/dist/types/crypto/index.d.ts +1 -0
  598. package/dist/types/crypto/math/constants.d.ts +0 -1
  599. package/dist/types/crypto/math/mod.d.ts +0 -1
  600. package/dist/types/index.d.ts +32 -5
  601. package/dist/types/infra/log/ConsoleLogger.d.ts +19 -2
  602. package/dist/types/infra/log/PinoLogger.d.ts +56 -2
  603. package/dist/types/infra/log/types.d.ts +6 -0
  604. package/dist/types/infra/perf/BackgroundQueue.d.ts +19 -0
  605. package/dist/types/infra/perf/StoreLock.d.ts +1 -0
  606. package/dist/types/media/constants.d.ts +9 -2
  607. package/dist/types/media/crypto/WaMediaCrypto.d.ts +59 -0
  608. package/dist/types/media/index.d.ts +7 -4
  609. package/dist/types/media/processor.d.ts +50 -0
  610. package/dist/types/media/sticker/sticker-pack.d.ts +6 -0
  611. package/dist/types/media/{WaMediaTransferClient.d.ts → transfer/WaMediaTransferClient.d.ts} +33 -12
  612. package/dist/types/media/transfer/conn.d.ts +7 -0
  613. package/dist/types/media/types.d.ts +10 -5
  614. package/dist/types/message/WaMessageClient.d.ts +14 -0
  615. package/dist/types/message/addons/link-preview/builder.d.ts +13 -0
  616. package/dist/types/message/addons/link-preview/detect.d.ts +5 -0
  617. package/dist/types/message/addons/link-preview/fetcher.d.ts +13 -0
  618. package/dist/types/message/addons/link-preview/types.d.ts +51 -0
  619. package/dist/types/message/context-info.d.ts +66 -0
  620. package/dist/types/message/crypto/addon-crypto.d.ts +78 -0
  621. package/dist/types/message/{icdc.d.ts → crypto/icdc.d.ts} +6 -6
  622. package/dist/types/message/{phash.d.ts → crypto/phash.d.ts} +1 -1
  623. package/dist/types/message/{reporting-token.d.ts → crypto/reporting-token.d.ts} +2 -2
  624. package/dist/types/message/{use-case-secret.d.ts → crypto/use-case-secret.d.ts} +17 -1
  625. package/dist/types/message/encode/content.d.ts +43 -0
  626. package/dist/types/message/{device-sent.d.ts → encode/device-sent.d.ts} +1 -1
  627. package/dist/types/message/encode/media-payload.d.ts +12 -0
  628. package/dist/types/message/index.d.ts +2 -2
  629. package/dist/types/message/kinds/bot.d.ts +31 -0
  630. package/dist/types/message/kinds/newsletter.d.ts +12 -0
  631. package/dist/types/message/kinds/sticker-pack.d.ts +6 -0
  632. package/dist/types/message/{ack.d.ts → primitives/ack.d.ts} +1 -1
  633. package/dist/types/message/primitives/incoming.d.ts +21 -0
  634. package/dist/types/message/primitives/peer-data-operation.d.ts +23 -0
  635. package/dist/types/message/types.d.ts +218 -28
  636. package/dist/types/mex.d.ts +2 -0
  637. package/dist/types/proto.d.ts +2 -2
  638. package/dist/types/protocol/abprops.d.ts +151 -0
  639. package/dist/types/protocol/appstate.d.ts +4 -49
  640. package/dist/types/protocol/auth.d.ts +2 -2
  641. package/dist/types/protocol/bot.d.ts +45 -0
  642. package/dist/types/protocol/browser.d.ts +9 -0
  643. package/dist/types/protocol/business.d.ts +21 -0
  644. package/dist/types/protocol/call.d.ts +44 -0
  645. package/dist/types/protocol/constants.d.ts +20 -3
  646. package/dist/types/protocol/defaults.d.ts +3 -0
  647. package/dist/types/protocol/email.d.ts +32 -0
  648. package/dist/types/protocol/group.d.ts +1 -1
  649. package/dist/types/protocol/index.d.ts +2 -1
  650. package/dist/types/protocol/jid.d.ts +79 -0
  651. package/dist/types/protocol/media.d.ts +21 -13
  652. package/dist/types/protocol/message.d.ts +4 -0
  653. package/dist/types/protocol/newsletter.d.ts +65 -0
  654. package/dist/types/protocol/nodes.d.ts +24 -0
  655. package/dist/types/protocol/notification.d.ts +22 -0
  656. package/dist/types/protocol/presence.d.ts +16 -0
  657. package/dist/types/protocol/status.d.ts +7 -0
  658. package/dist/types/protocol/stream.d.ts +1 -0
  659. package/dist/types/retry/codec.d.ts +5 -0
  660. package/dist/types/retry/index.d.ts +1 -1
  661. package/dist/types/retry/parse.d.ts +9 -0
  662. package/dist/types/retry/reason.d.ts +6 -1
  663. package/dist/types/retry/replay.d.ts +19 -5
  664. package/dist/types/retry/tracker.d.ts +10 -3
  665. package/dist/types/retry/types.d.ts +3 -8
  666. package/dist/types/signal/api/SignalDeviceSyncApi.d.ts +20 -0
  667. package/dist/types/signal/api/SignalDigestSyncApi.d.ts +13 -0
  668. package/dist/types/signal/api/SignalIdentitySyncApi.d.ts +12 -3
  669. package/dist/types/signal/api/SignalMissingPreKeysSyncApi.d.ts +8 -0
  670. package/dist/types/signal/api/SignalRotateKeyApi.d.ts +10 -0
  671. package/dist/types/signal/api/SignalSessionSyncApi.d.ts +13 -0
  672. package/dist/types/signal/api/codec.d.ts +20 -0
  673. package/dist/types/signal/api/constants.d.ts +1 -1
  674. package/dist/types/signal/api/prekeys.d.ts +4 -0
  675. package/dist/types/signal/{crypto → attestation}/WaAdvSignature.d.ts +2 -4
  676. package/dist/types/signal/attestation/constants.d.ts +4 -0
  677. package/dist/types/signal/constants.d.ts +7 -4
  678. package/dist/types/signal/encoding.d.ts +6 -62
  679. package/dist/types/signal/group/SenderKeyChain.d.ts +2 -2
  680. package/dist/types/signal/group/SenderKeyManager.d.ts +24 -2
  681. package/dist/types/signal/group/encoding.d.ts +25 -0
  682. package/dist/types/signal/index.d.ts +4 -1
  683. package/dist/types/signal/registration/encoding.d.ts +30 -0
  684. package/dist/types/signal/registration/keygen.d.ts +10 -0
  685. package/dist/types/signal/registration/utils.d.ts +7 -1
  686. package/dist/types/signal/session/SignalProtocol.d.ts +66 -2
  687. package/dist/types/signal/session/SignalRatchet.d.ts +2 -3
  688. package/dist/types/signal/session/SignalSerializer.d.ts +2 -1
  689. package/dist/types/signal/session/SignalSession.d.ts +0 -1
  690. package/dist/types/signal/session/encoding.d.ts +28 -0
  691. package/dist/types/signal/session/resolver.d.ts +18 -2
  692. package/dist/types/signal/types.d.ts +16 -4
  693. package/dist/types/store/cache/identity.cache.d.ts +15 -0
  694. package/dist/types/store/cache/privacy-token.cache.d.ts +15 -0
  695. package/dist/types/store/cache/sender-key.cache.d.ts +18 -0
  696. package/dist/types/store/cache/session.cache.d.ts +23 -0
  697. package/dist/types/store/contracts/contact.store.d.ts +14 -0
  698. package/dist/types/store/contracts/device-list.store.d.ts +13 -0
  699. package/dist/types/store/contracts/group-metadata.store.d.ts +14 -0
  700. package/dist/types/store/contracts/identity.store.d.ts +11 -0
  701. package/dist/types/store/contracts/message-secret.store.d.ts +16 -0
  702. package/dist/types/store/contracts/message.store.d.ts +0 -2
  703. package/dist/types/store/contracts/pre-key.store.d.ts +13 -0
  704. package/dist/types/store/contracts/session.store.d.ts +14 -0
  705. package/dist/types/store/contracts/signal.store.d.ts +1 -34
  706. package/dist/types/store/createStore.d.ts +54 -2
  707. package/dist/types/store/index.d.ts +22 -13
  708. package/dist/types/store/locks/group-metadata.lock.d.ts +2 -0
  709. package/dist/types/store/locks/identity.lock.d.ts +3 -0
  710. package/dist/types/store/locks/message-secret.lock.d.ts +3 -0
  711. package/dist/types/store/locks/pre-key.lock.d.ts +3 -0
  712. package/dist/types/store/locks/session.lock.d.ts +3 -0
  713. package/dist/types/store/{providers/memory → memory}/appstate.store.d.ts +2 -2
  714. package/dist/types/store/memory/auth.store.d.ts +18 -0
  715. package/dist/types/store/{providers/memory → memory}/contact.store.d.ts +6 -1
  716. package/dist/types/store/{providers/memory → memory}/device-list.store.d.ts +15 -2
  717. package/dist/types/store/memory/group-metadata.store.d.ts +27 -0
  718. package/dist/types/store/memory/identity.store.d.ts +18 -0
  719. package/dist/types/store/memory/message-secret.store.d.ts +31 -0
  720. package/dist/types/store/{providers/memory → memory}/message.store.d.ts +1 -1
  721. package/dist/types/store/memory/pre-key.store.d.ts +23 -0
  722. package/dist/types/store/{providers/memory → memory}/privacy-token.store.d.ts +1 -1
  723. package/dist/types/store/{providers/memory → memory}/retry.store.d.ts +23 -4
  724. package/dist/types/store/{providers/memory → memory}/sender-key.store.d.ts +2 -2
  725. package/dist/types/store/memory/session.store.d.ts +21 -0
  726. package/dist/types/store/memory/signal.store.d.ts +16 -0
  727. package/dist/types/store/{providers/memory → memory}/thread.store.d.ts +1 -1
  728. package/dist/types/store/noop.store.d.ts +6 -2
  729. package/dist/types/store/types.d.ts +271 -7
  730. package/dist/types/transport/WaComms.d.ts +5 -0
  731. package/dist/types/transport/WaWebSocket.d.ts +6 -0
  732. package/dist/types/transport/binary/constants.d.ts +8 -2
  733. package/dist/types/transport/binary/decoder.d.ts +5 -0
  734. package/dist/types/transport/binary/encoder.d.ts +5 -0
  735. package/dist/types/transport/binary/tokens.d.ts +6 -6
  736. package/dist/types/transport/index.d.ts +9 -0
  737. package/dist/types/transport/keepalive/WaKeepAlive.d.ts +11 -1
  738. package/dist/types/transport/node/WaMobileTcpSocket.d.ts +24 -0
  739. package/dist/types/transport/node/WaNodeOrchestrator.d.ts +11 -2
  740. package/dist/types/transport/node/WaNodeTransport.d.ts +13 -0
  741. package/dist/types/transport/node/builders/abprops.d.ts +5 -0
  742. package/dist/types/transport/node/builders/account-sync.d.ts +1 -2
  743. package/dist/types/transport/node/builders/bot.d.ts +4 -0
  744. package/dist/types/transport/node/builders/business.d.ts +21 -4
  745. package/dist/types/transport/node/builders/chatstate.d.ts +11 -0
  746. package/dist/types/transport/node/builders/community.d.ts +17 -0
  747. package/dist/types/transport/node/builders/device.d.ts +2 -0
  748. package/dist/types/transport/node/builders/email.d.ts +11 -0
  749. package/dist/types/transport/node/builders/group.d.ts +44 -2
  750. package/dist/types/transport/node/builders/message.d.ts +11 -6
  751. package/dist/types/transport/node/builders/newsletter.d.ts +73 -0
  752. package/dist/types/transport/node/builders/offline.d.ts +2 -0
  753. package/dist/types/transport/node/builders/passive.d.ts +3 -0
  754. package/dist/types/transport/node/builders/prekeys.d.ts +4 -3
  755. package/dist/types/transport/node/builders/presence.d.ts +13 -0
  756. package/dist/types/transport/node/builders/profile.d.ts +3 -0
  757. package/dist/types/transport/node/builders/tos.d.ts +12 -0
  758. package/dist/types/transport/node/builders/usync.d.ts +16 -0
  759. package/dist/types/transport/node/helpers.d.ts +3 -1
  760. package/dist/types/transport/node/mex/argo-decoder.d.ts +11 -0
  761. package/dist/types/transport/node/mex/client.d.ts +29 -0
  762. package/dist/types/transport/node/query.d.ts +19 -1
  763. package/dist/types/transport/node/usync.d.ts +3 -0
  764. package/dist/types/transport/noise/WaMobileClientPayload.d.ts +34 -0
  765. package/dist/types/transport/noise/WaNoiseCert.d.ts +12 -1
  766. package/dist/types/transport/noise/WaNoiseHandshake.d.ts +12 -6
  767. package/dist/types/transport/noise/WaNoiseSession.d.ts +1 -1
  768. package/dist/types/transport/noise/WaNoiseSocket.d.ts +12 -6
  769. package/dist/types/transport/noise/constants.d.ts +4 -5
  770. package/dist/types/transport/proxy.d.ts +5 -0
  771. package/dist/types/transport/types.d.ts +15 -0
  772. package/dist/types/transport/wa-web-version-fetcher.d.ts +44 -0
  773. package/dist/types/util/async.d.ts +4 -0
  774. package/dist/types/util/bytes.d.ts +36 -1
  775. package/dist/types/util/clock.d.ts +6 -0
  776. package/dist/types/util/coercion.d.ts +25 -0
  777. package/dist/types/util/collections.d.ts +8 -0
  778. package/dist/types/util/index.d.ts +2 -2
  779. package/dist/types/util/primitives.d.ts +11 -0
  780. package/dist/types/util/runtime.d.ts +5 -0
  781. package/dist/types/version-spec.d.ts +1 -0
  782. package/dist/util/async.js +4 -0
  783. package/dist/util/bytes.js +37 -2
  784. package/dist/util/clock.js +18 -0
  785. package/dist/util/coercion.js +48 -3
  786. package/dist/util/collections.js +12 -0
  787. package/dist/util/index.js +7 -1
  788. package/dist/util/primitives.js +20 -0
  789. package/dist/util/runtime.js +5 -0
  790. package/dist/version-spec.js +5 -0
  791. package/package.json +37 -11
  792. package/spec/appstate/index.d.ts +188 -0
  793. package/spec/appstate/index.js +850 -0
  794. package/spec/mex/index.d.ts +4172 -0
  795. package/spec/mex/index.js +261 -0
  796. package/spec/proto/index.d.ts +16305 -0
  797. package/spec/proto/index.js +1 -0
  798. package/spec/version/index.d.ts +4 -0
  799. package/spec/version/index.js +9 -0
  800. package/spec/version/version.json +3 -0
  801. package/dist/auth/flow/WaAuthCredentialsFlow.js +0 -130
  802. package/dist/auth/pairing/WaPairingCodeCrypto.js +0 -77
  803. package/dist/auth/pairing/constants.js +0 -5
  804. package/dist/client/connection/WaKeyShareCoordinator.js +0 -63
  805. package/dist/client/events/chat.js +0 -227
  806. package/dist/client/incoming.js +0 -269
  807. package/dist/client/mailbox.js +0 -50
  808. package/dist/client/messages.js +0 -228
  809. package/dist/esm/auth/flow/WaAuthCredentialsFlow.js +0 -125
  810. package/dist/esm/auth/pairing/WaPairingCodeCrypto.js +0 -73
  811. package/dist/esm/auth/pairing/constants.js +0 -2
  812. package/dist/esm/client/connection/WaKeyShareCoordinator.js +0 -59
  813. package/dist/esm/client/events/chat.js +0 -224
  814. package/dist/esm/client/incoming.js +0 -260
  815. package/dist/esm/client/mailbox.js +0 -47
  816. package/dist/esm/client/messages.js +0 -224
  817. package/dist/esm/media/WaMediaCrypto.js +0 -304
  818. package/dist/esm/message/addon-crypto.js +0 -59
  819. package/dist/esm/message/incoming.js +0 -325
  820. package/dist/esm/message/phash.js +0 -27
  821. package/dist/esm/signal/crypto/WaAdvSignature.js +0 -64
  822. package/dist/esm/store/locks/participants.lock.js +0 -20
  823. package/dist/esm/store/providers/memory/contact.store.js +0 -28
  824. package/dist/esm/store/providers/memory/device-list.store.js +0 -64
  825. package/dist/esm/store/providers/memory/signal.store.js +0 -199
  826. package/dist/esm/transport/node/builders/index.js +0 -11
  827. package/dist/media/WaMediaCrypto.js +0 -308
  828. package/dist/message/addon-crypto.js +0 -65
  829. package/dist/message/phash.js +0 -30
  830. package/dist/signal/crypto/WaAdvSignature.js +0 -76
  831. package/dist/store/locks/participants.lock.js +0 -23
  832. package/dist/store/providers/memory/contact.store.js +0 -32
  833. package/dist/store/providers/memory/device-list.store.js +0 -68
  834. package/dist/store/providers/memory/signal.store.js +0 -203
  835. package/dist/transport/node/builders/index.js +0 -51
  836. package/dist/types/appstate/WaAppStateSyncClient.d.ts +0 -66
  837. package/dist/types/auth/flow/WaAuthCredentialsFlow.d.ts +0 -14
  838. package/dist/types/auth/pairing/constants.d.ts +0 -2
  839. package/dist/types/client/connection/WaKeyShareCoordinator.d.ts +0 -14
  840. package/dist/types/client/events/chat.d.ts +0 -3
  841. package/dist/types/client/history-sync.d.ts +0 -20
  842. package/dist/types/client/incoming.d.ts +0 -37
  843. package/dist/types/client/mailbox.d.ts +0 -10
  844. package/dist/types/client/messages.d.ts +0 -16
  845. package/dist/types/client/messaging/participants.d.ts +0 -13
  846. package/dist/types/media/WaMediaCrypto.d.ts +0 -13
  847. package/dist/types/media/conn.d.ts +0 -3
  848. package/dist/types/message/addon-crypto.d.ts +0 -25
  849. package/dist/types/message/content.d.ts +0 -12
  850. package/dist/types/message/incoming.d.ts +0 -18
  851. package/dist/types/signal/crypto/constants.d.ts +0 -5
  852. package/dist/types/store/contracts/participants.store.d.ts +0 -13
  853. package/dist/types/store/locks/participants.lock.d.ts +0 -2
  854. package/dist/types/store/providers/memory/participants.store.d.ts +0 -17
  855. package/dist/types/store/providers/memory/signal.store.d.ts +0 -58
  856. package/dist/types/transport/node/builders/index.d.ts +0 -11
  857. package/proto/index.d.ts +0 -10903
  858. package/proto/index.js +0 -1
  859. /package/dist/{store/contracts/participants.store.js → client/newsletter/types.js} +0 -0
  860. /package/dist/esm/{store/contracts/participants.store.js → client/newsletter/types.js} +0 -0
  861. /package/dist/esm/message/{device-sent.js → encode/device-sent.js} +0 -0
  862. /package/dist/message/{device-sent.js → encode/device-sent.js} +0 -0
  863. /package/dist/types/message/{padding.d.ts → encode/padding.d.ts} +0 -0
@@ -0,0 +1,4172 @@
1
+ // AUTO-GENERATED — do not edit. Regenerated daily by wa-spec.
2
+ // WhatsApp Version: 2.3000.1040100380
3
+
4
+ export interface WaMexPersistId {
5
+ readonly docId: string
6
+ readonly clientDocId: string
7
+ }
8
+
9
+ export interface WaMexOperationSchema<
10
+ K extends 'query' | 'mutation' = 'query' | 'mutation',
11
+ V extends ReadonlyArray<string> = ReadonlyArray<string>
12
+ > {
13
+ readonly operationKind: K
14
+ readonly variables: V
15
+ }
16
+
17
+ export declare const WA_MEX_PERSIST_IDS: {
18
+ readonly ACSServerProviderConfig: WaMexPersistId
19
+ readonly ACSServerProviderIssuance: WaMexPersistId
20
+ readonly AcceptNewsletterAdminInvite: WaMexPersistId
21
+ readonly AiAgentAutoReplyControl: WaMexPersistId
22
+ readonly AuthAgentFeaturePolicy: WaMexPersistId
23
+ readonly BPAccessTokenAndSessionCookies: WaMexPersistId
24
+ readonly BizCreateOrder: WaMexPersistId
25
+ readonly BizCustomUrlGetUserGraphql: WaMexPersistId
26
+ readonly BizGetCategories: WaMexPersistId
27
+ readonly BizGetCategoriesV2: WaMexPersistId
28
+ readonly BizGetCustomUrlUserGraphql: WaMexPersistId
29
+ readonly BizGetMerchantCompliance: WaMexPersistId
30
+ readonly BizGetPriceTiers: WaMexPersistId
31
+ readonly BizGetProfileShimlinks: WaMexPersistId
32
+ readonly BizGraphQLRefreshCart: WaMexPersistId
33
+ readonly BizProfileAddressAutocomplete: WaMexPersistId
34
+ readonly BizQueryOrder: WaMexPersistId
35
+ readonly BizSetMerchantCompliance: WaMexPersistId
36
+ readonly CachedToken: WaMexPersistId
37
+ readonly CanonicalUserValid: WaMexPersistId
38
+ readonly ChangeNewsletterOwner: WaMexPersistId
39
+ readonly ConsumerFetchQuickPromotions: WaMexPersistId
40
+ readonly ConsumerQuickPromotionActionGraphQL: WaMexPersistId
41
+ readonly CreateInviteCode: WaMexPersistId
42
+ readonly CreateMarketingCampaignAction: WaMexPersistId
43
+ readonly CreateNewsletter: WaMexPersistId
44
+ readonly CreateNewsletterAdminInvite: WaMexPersistId
45
+ readonly CreateReportAppeal: WaMexPersistId
46
+ readonly CreateWhatsAppAdsIdentity: WaMexPersistId
47
+ readonly CustomLabel3pdEvent: WaMexPersistId
48
+ readonly DeleteNewsletter: WaMexPersistId
49
+ readonly DemoteNewsletterAdmin: WaMexPersistId
50
+ readonly EditBizProfile: WaMexPersistId
51
+ readonly ExternalCtxAuthoriseWAChat: WaMexPersistId
52
+ readonly FetchAboutStatus: WaMexPersistId
53
+ readonly FetchAdEntryPointsConfiguration: WaMexPersistId
54
+ readonly FetchAdEntryPointsConfigurationM1: WaMexPersistId
55
+ readonly FetchAllNewslettersMetadata: WaMexPersistId
56
+ readonly FetchAllSubgroups: WaMexPersistId
57
+ readonly FetchBotProfilesGQL: WaMexPersistId
58
+ readonly FetchDynamicAIModes: WaMexPersistId
59
+ readonly FetchGroupInfo: WaMexPersistId
60
+ readonly FetchGroupInfoIncludBots: WaMexPersistId
61
+ readonly FetchGroupInviteCode: WaMexPersistId
62
+ readonly FetchGroupIsInternal: WaMexPersistId
63
+ readonly FetchIntegritySignals: WaMexPersistId
64
+ readonly FetchNativeAdsMvpEligibility: WaMexPersistId
65
+ readonly FetchNewChatMessageCappingInfo: WaMexPersistId
66
+ readonly FetchNewsletter: WaMexPersistId
67
+ readonly FetchNewsletterAdminCapabilities: WaMexPersistId
68
+ readonly FetchNewsletterAdminInfo: WaMexPersistId
69
+ readonly FetchNewsletterDehydrated: WaMexPersistId
70
+ readonly FetchNewsletterDirectoryCategoriesPreview: WaMexPersistId
71
+ readonly FetchNewsletterDirectoryList: WaMexPersistId
72
+ readonly FetchNewsletterDirectorySearchResults: WaMexPersistId
73
+ readonly FetchNewsletterEnforcements: WaMexPersistId
74
+ readonly FetchNewsletterFollowers: WaMexPersistId
75
+ readonly FetchNewsletterInsights: WaMexPersistId
76
+ readonly FetchNewsletterIsDomainPreviewable: WaMexPersistId
77
+ readonly FetchNewsletterMessageReactionSenderList: WaMexPersistId
78
+ readonly FetchNewsletterPendingInvites: WaMexPersistId
79
+ readonly FetchNewsletterPollVoters: WaMexPersistId
80
+ readonly FetchNewsletterReports: WaMexPersistId
81
+ readonly FetchOHAIKeyConfig: WaMexPersistId
82
+ readonly FetchOIDCState: WaMexPersistId
83
+ readonly FetchPlaintextLinkPreview: WaMexPersistId
84
+ readonly FetchQuickPromotions: WaMexPersistId
85
+ readonly FetchReachoutTimelock: WaMexPersistId
86
+ readonly FetchRecommendedNewsletters: WaMexPersistId
87
+ readonly FetchSimilarNewsletters: WaMexPersistId
88
+ readonly FetchSubgroupSuggestions: WaMexPersistId
89
+ readonly FetchSubscriptionEntryPoints: WaMexPersistId
90
+ readonly FetchSubscriptions: WaMexPersistId
91
+ readonly FetchTextStatusList: WaMexPersistId
92
+ readonly GetAccessTokenFromOIDCCode: WaMexPersistId
93
+ readonly GetAccountNonce: WaMexPersistId
94
+ readonly GetDsbInfo: WaMexPersistId
95
+ readonly GetFBAccountPages: WaMexPersistId
96
+ readonly GetNumbersForBrandIds: WaMexPersistId
97
+ readonly GetPrivacyLists: WaMexPersistId
98
+ readonly GetPrivacySettings: WaMexPersistId
99
+ readonly GetUsername: WaMexPersistId
100
+ readonly GetWAAEligibility: WaMexPersistId
101
+ readonly GraphQLProductCatalogGetPublicKey: WaMexPersistId
102
+ readonly GraphQLVerifyPostcode: WaMexPersistId
103
+ readonly GroupStoreInviteSms: WaMexPersistId
104
+ readonly GroupSuspensionAppeal: WaMexPersistId
105
+ readonly IntegrityChallengeResponse: WaMexPersistId
106
+ readonly JoinNewsletter: WaMexPersistId
107
+ readonly LeaveNewsletter: WaMexPersistId
108
+ readonly LidChangeNotification: WaMexPersistId
109
+ readonly LogNewsletterExposures: WaMexPersistId
110
+ readonly NativeMLModel: WaMexPersistId
111
+ readonly NewsletterAddPaidPartnershipLabel: WaMexPersistId
112
+ readonly QueryCatalog: WaMexPersistId
113
+ readonly QueryCatalogHasCategories: WaMexPersistId
114
+ readonly QueryCatalogProduct: WaMexPersistId
115
+ readonly QueryProductCollections: WaMexPersistId
116
+ readonly QueryProductListCatalog: WaMexPersistId
117
+ readonly QueryProductSingleCollection: WaMexPersistId
118
+ readonly QuerySubgroupParticipantCount: WaMexPersistId
119
+ readonly QuickPromotionAction: WaMexPersistId
120
+ readonly ReportProduct: WaMexPersistId
121
+ readonly RequestClientLogsForBug: WaMexPersistId
122
+ readonly ResolveAccountTypeAndAdPage: WaMexPersistId
123
+ readonly ResolveAccountTypeAndAdPageQuery: WaMexPersistId
124
+ readonly RevokeNewsletterAdminInvite: WaMexPersistId
125
+ readonly SetUsername: WaMexPersistId
126
+ readonly SetUsernameKey: WaMexPersistId
127
+ readonly SignupMetadata: WaMexPersistId
128
+ readonly SupportBugReportSubmit: WaMexPersistId
129
+ readonly SupportContactFormSubmit: WaMexPersistId
130
+ readonly SupportMessageFeedbackSubmit: WaMexPersistId
131
+ readonly TransferCommunityOwnership: WaMexPersistId
132
+ readonly UpdateGroupProperty: WaMexPersistId
133
+ readonly UpdateNewsletter: WaMexPersistId
134
+ readonly UpdateNewsletterUserSetting: WaMexPersistId
135
+ readonly UpdateTextStatus: WaMexPersistId
136
+ readonly UsernameAvailability: WaMexPersistId
137
+ readonly Usync: WaMexPersistId
138
+ readonly WAAOnboarding: WaMexPersistId
139
+ readonly WaffleFXServiceDataQueryV2: WaMexPersistId
140
+ readonly WaffleFXWAMOUpdateUOOM: WaMexPersistId
141
+ readonly WaffleXE: WaMexPersistId
142
+ readonly useWAWebEstimatedDailyReach: WaMexPersistId
143
+ }
144
+
145
+ export declare const WA_MEX_OPERATION_SCHEMAS: {
146
+ readonly ACSServerProviderConfig: WaMexOperationSchema<'query', readonly ['project_name']>
147
+ readonly ACSServerProviderIssuance: WaMexOperationSchema<'mutation', readonly ['input']>
148
+ readonly AcceptNewsletterAdminInvite: WaMexOperationSchema<'mutation', readonly ['newsletter_id']>
149
+ readonly AiAgentAutoReplyControl: WaMexOperationSchema<'mutation', readonly ['consumer_lid', 'phone_number', 'thread_status']>
150
+ readonly AuthAgentFeaturePolicy: WaMexOperationSchema<'query', readonly []>
151
+ readonly BPAccessTokenAndSessionCookies: WaMexOperationSchema<'mutation', readonly ['application_id', 'code']>
152
+ readonly BizCreateOrder: WaMexOperationSchema<'mutation', readonly ['input']>
153
+ readonly BizCustomUrlGetUserGraphql: WaMexOperationSchema<'query', readonly ['data']>
154
+ readonly BizGetCategories: WaMexOperationSchema<'query', readonly ['query_params']>
155
+ readonly BizGetCategoriesV2: WaMexOperationSchema<'query', readonly ['query_params']>
156
+ readonly BizGetCustomUrlUserGraphql: WaMexOperationSchema<'query', readonly ['data']>
157
+ readonly BizGetMerchantCompliance: WaMexOperationSchema<'query', readonly ['request']>
158
+ readonly BizGetPriceTiers: WaMexOperationSchema<'query', readonly ['request']>
159
+ readonly BizGetProfileShimlinks: WaMexOperationSchema<'query', readonly ['bizJid']>
160
+ readonly BizGraphQLRefreshCart: WaMexOperationSchema<'query', readonly ['request']>
161
+ readonly BizProfileAddressAutocomplete: WaMexOperationSchema<'query', readonly ['input']>
162
+ readonly BizQueryOrder: WaMexOperationSchema<'query', readonly ['request']>
163
+ readonly BizSetMerchantCompliance: WaMexOperationSchema<'mutation', readonly ['input']>
164
+ readonly CachedToken: WaMexOperationSchema<'mutation', readonly ['input']>
165
+ readonly CanonicalUserValid: WaMexOperationSchema<'query', readonly []>
166
+ readonly ChangeNewsletterOwner: WaMexOperationSchema<'mutation', readonly ['newsletter_id', 'user_id']>
167
+ readonly ConsumerFetchQuickPromotions: WaMexOperationSchema<'query', readonly ['nux_ids', 'trigger_context']>
168
+ readonly ConsumerQuickPromotionActionGraphQL: WaMexOperationSchema<'mutation', readonly ['input']>
169
+ readonly CreateInviteCode: WaMexOperationSchema<'mutation', readonly ['input']>
170
+ readonly CreateMarketingCampaignAction: WaMexOperationSchema<'mutation', readonly ['input']>
171
+ readonly CreateNewsletter: WaMexOperationSchema<'mutation', readonly ['input']>
172
+ readonly CreateNewsletterAdminInvite: WaMexOperationSchema<'mutation', readonly ['newsletter_id', 'user_id']>
173
+ readonly CreateReportAppeal: WaMexOperationSchema<'mutation', readonly ['reason', 'report_id']>
174
+ readonly CreateWhatsAppAdsIdentity: WaMexOperationSchema<'mutation', readonly ['code', 'phone_number']>
175
+ readonly CustomLabel3pdEvent: WaMexOperationSchema<'query', readonly ['custom_labels', 'expt_group']>
176
+ readonly DeleteNewsletter: WaMexOperationSchema<'mutation', readonly ['newsletter_id']>
177
+ readonly DemoteNewsletterAdmin: WaMexOperationSchema<'mutation', readonly ['newsletter_id', 'user_id']>
178
+ readonly EditBizProfile: WaMexOperationSchema<'mutation', readonly ['input', 'lid']>
179
+ readonly ExternalCtxAuthoriseWAChat: WaMexOperationSchema<'mutation', readonly ['input']>
180
+ readonly FetchAboutStatus: WaMexOperationSchema<'query', readonly ['user']>
181
+ readonly FetchAdEntryPointsConfiguration: WaMexOperationSchema<'query', readonly []>
182
+ readonly FetchAdEntryPointsConfigurationM1: WaMexOperationSchema<'query', readonly []>
183
+ readonly FetchAllNewslettersMetadata: WaMexOperationSchema<'query', readonly ['fetch_status_metadata', 'fetch_wamo_sub']>
184
+ readonly FetchAllSubgroups: WaMexOperationSchema<'query', readonly ['group_id', 'query_context', 'sub_group_hint_id']>
185
+ readonly FetchBotProfilesGQL: WaMexOperationSchema<'query', readonly ['ids']>
186
+ readonly FetchDynamicAIModes: WaMexOperationSchema<'query', readonly []>
187
+ readonly FetchGroupInfo: WaMexOperationSchema<'query', readonly ['id', 'include_username', 'participants_phash', 'query_context']>
188
+ readonly FetchGroupInfoIncludBots: WaMexOperationSchema<'query', readonly ['id', 'include_username', 'participants_phash', 'query_context']>
189
+ readonly FetchGroupInviteCode: WaMexOperationSchema<'query', readonly ['id', 'query_context']>
190
+ readonly FetchGroupIsInternal: WaMexOperationSchema<'query', readonly ['id']>
191
+ readonly FetchIntegritySignals: WaMexOperationSchema<'query', readonly ['input']>
192
+ readonly FetchNativeAdsMvpEligibility: WaMexOperationSchema<'query', readonly ['phone_number']>
193
+ readonly FetchNewChatMessageCappingInfo: WaMexOperationSchema<'query', readonly ['input']>
194
+ readonly FetchNewsletter: WaMexOperationSchema<'query', readonly ['fetch_creation_time', 'fetch_full_image', 'fetch_status_metadata', 'fetch_viewer_metadata', 'fetch_wamo_sub', 'input']>
195
+ readonly FetchNewsletterAdminCapabilities: WaMexOperationSchema<'query', readonly ['newsletter_id']>
196
+ readonly FetchNewsletterAdminInfo: WaMexOperationSchema<'query', readonly ['newsletter_id']>
197
+ readonly FetchNewsletterDehydrated: WaMexOperationSchema<'query', readonly ['fetch_wamo_sub', 'input']>
198
+ readonly FetchNewsletterDirectoryCategoriesPreview: WaMexOperationSchema<'query', readonly ['fetch_status_metadata', 'input']>
199
+ readonly FetchNewsletterDirectoryList: WaMexOperationSchema<'query', readonly ['fetch_status_metadata', 'input']>
200
+ readonly FetchNewsletterDirectorySearchResults: WaMexOperationSchema<'query', readonly ['fetch_status_metadata', 'input']>
201
+ readonly FetchNewsletterEnforcements: WaMexOperationSchema<'query', readonly ['locale', 'newsletter_id']>
202
+ readonly FetchNewsletterFollowers: WaMexOperationSchema<'query', readonly ['input']>
203
+ readonly FetchNewsletterInsights: WaMexOperationSchema<'query', readonly ['input']>
204
+ readonly FetchNewsletterIsDomainPreviewable: WaMexOperationSchema<'query', readonly ['url_domains']>
205
+ readonly FetchNewsletterMessageReactionSenderList: WaMexOperationSchema<'query', readonly ['input']>
206
+ readonly FetchNewsletterPendingInvites: WaMexOperationSchema<'query', readonly ['newsletter_id']>
207
+ readonly FetchNewsletterPollVoters: WaMexOperationSchema<'query', readonly ['input']>
208
+ readonly FetchNewsletterReports: WaMexOperationSchema<'query', readonly []>
209
+ readonly FetchOHAIKeyConfig: WaMexOperationSchema<'query', readonly []>
210
+ readonly FetchOIDCState: WaMexOperationSchema<'query', readonly []>
211
+ readonly FetchPlaintextLinkPreview: WaMexOperationSchema<'query', readonly ['input']>
212
+ readonly FetchQuickPromotions: WaMexOperationSchema<'query', readonly ['nux_ids', 'trigger_context']>
213
+ readonly FetchReachoutTimelock: WaMexOperationSchema<'query', readonly []>
214
+ readonly FetchRecommendedNewsletters: WaMexOperationSchema<'query', readonly ['fetch_status_metadata', 'input']>
215
+ readonly FetchSimilarNewsletters: WaMexOperationSchema<'query', readonly ['fetch_status_metadata', 'input']>
216
+ readonly FetchSubgroupSuggestions: WaMexOperationSchema<'query', readonly ['group_id', 'query_context', 'sub_group_hint_id']>
217
+ readonly FetchSubscriptionEntryPoints: WaMexOperationSchema<'query', readonly []>
218
+ readonly FetchSubscriptions: WaMexOperationSchema<'query', readonly ['data']>
219
+ readonly FetchTextStatusList: WaMexOperationSchema<'query', readonly ['input']>
220
+ readonly GetAccessTokenFromOIDCCode: WaMexOperationSchema<'mutation', readonly ['code', 'state']>
221
+ readonly GetAccountNonce: WaMexOperationSchema<'mutation', readonly ['input']>
222
+ readonly GetDsbInfo: WaMexOperationSchema<'mutation', readonly ['input']>
223
+ readonly GetFBAccountPages: WaMexOperationSchema<'query', readonly ['userId']>
224
+ readonly GetNumbersForBrandIds: WaMexOperationSchema<'query', readonly ['input']>
225
+ readonly GetPrivacyLists: WaMexOperationSchema<'query', readonly ['input']>
226
+ readonly GetPrivacySettings: WaMexOperationSchema<'query', readonly ['input']>
227
+ readonly GetUsername: WaMexOperationSchema<'query', readonly []>
228
+ readonly GetWAAEligibility: WaMexOperationSchema<'query', readonly ['input']>
229
+ readonly GraphQLProductCatalogGetPublicKey: WaMexOperationSchema<'query', readonly ['request']>
230
+ readonly GraphQLVerifyPostcode: WaMexOperationSchema<'query', readonly ['request']>
231
+ readonly GroupStoreInviteSms: WaMexOperationSchema<'mutation', readonly ['input']>
232
+ readonly GroupSuspensionAppeal: WaMexOperationSchema<'mutation', readonly ['input']>
233
+ readonly IntegrityChallengeResponse: WaMexOperationSchema<'mutation', readonly ['input']>
234
+ readonly JoinNewsletter: WaMexOperationSchema<'mutation', readonly ['newsletter_id']>
235
+ readonly LeaveNewsletter: WaMexOperationSchema<'mutation', readonly ['newsletter_id']>
236
+ readonly LidChangeNotification: WaMexOperationSchema<'query', readonly []>
237
+ readonly LogNewsletterExposures: WaMexOperationSchema<'mutation', readonly ['input']>
238
+ readonly NativeMLModel: WaMexOperationSchema<'query', readonly ['client_capability_metadata', 'model_request_metadatas']>
239
+ readonly NewsletterAddPaidPartnershipLabel: WaMexOperationSchema<'mutation', readonly ['message_type', 'newsletter_id', 'server_id']>
240
+ readonly QueryCatalog: WaMexOperationSchema<'query', readonly ['request']>
241
+ readonly QueryCatalogHasCategories: WaMexOperationSchema<'query', readonly ['request']>
242
+ readonly QueryCatalogProduct: WaMexOperationSchema<'query', readonly ['request']>
243
+ readonly QueryProductCollections: WaMexOperationSchema<'query', readonly ['request']>
244
+ readonly QueryProductListCatalog: WaMexOperationSchema<'query', readonly ['request']>
245
+ readonly QueryProductSingleCollection: WaMexOperationSchema<'query', readonly ['request']>
246
+ readonly QuerySubgroupParticipantCount: WaMexOperationSchema<'query', readonly ['input']>
247
+ readonly QuickPromotionAction: WaMexOperationSchema<'mutation', readonly ['input']>
248
+ readonly ReportProduct: WaMexOperationSchema<'mutation', readonly ['input']>
249
+ readonly RequestClientLogsForBug: WaMexOperationSchema<'mutation', readonly ['input']>
250
+ readonly ResolveAccountTypeAndAdPage: WaMexOperationSchema<'mutation', readonly []>
251
+ readonly ResolveAccountTypeAndAdPageQuery: WaMexOperationSchema<'query', readonly ['pageId']>
252
+ readonly RevokeNewsletterAdminInvite: WaMexOperationSchema<'mutation', readonly ['newsletter_id', 'user_id']>
253
+ readonly SetUsername: WaMexOperationSchema<'mutation', readonly ['input', 'reserved', 'session_id', 'source']>
254
+ readonly SetUsernameKey: WaMexOperationSchema<'mutation', readonly ['pin']>
255
+ readonly SignupMetadata: WaMexOperationSchema<'query', readonly ['phone_number', 'signup_id']>
256
+ readonly SupportBugReportSubmit: WaMexOperationSchema<'mutation', readonly ['input']>
257
+ readonly SupportContactFormSubmit: WaMexOperationSchema<'mutation', readonly ['input']>
258
+ readonly SupportMessageFeedbackSubmit: WaMexOperationSchema<'mutation', readonly ['input']>
259
+ readonly TransferCommunityOwnership: WaMexOperationSchema<'mutation', readonly ['input']>
260
+ readonly UpdateGroupProperty: WaMexOperationSchema<'mutation', readonly ['group_id', 'update']>
261
+ readonly UpdateNewsletter: WaMexOperationSchema<'mutation', readonly ['newsletter_id', 'updates']>
262
+ readonly UpdateNewsletterUserSetting: WaMexOperationSchema<'mutation', readonly ['input']>
263
+ readonly UpdateTextStatus: WaMexOperationSchema<'mutation', readonly ['input']>
264
+ readonly UsernameAvailability: WaMexOperationSchema<'query', readonly ['input', 'session_id', 'source']>
265
+ readonly Usync: WaMexOperationSchema<'query', readonly ['include_about_status', 'include_country_code', 'include_username', 'input']>
266
+ readonly WAAOnboarding: WaMexOperationSchema<'mutation', readonly ['input']>
267
+ readonly WaffleFXServiceDataQueryV2: WaMexOperationSchema<'mutation', readonly []>
268
+ readonly WaffleFXWAMOUpdateUOOM: WaMexOperationSchema<'mutation', readonly []>
269
+ readonly WaffleXE: WaMexOperationSchema<'mutation', readonly ['input']>
270
+ readonly useWAWebEstimatedDailyReach: WaMexOperationSchema<'query', readonly ['audienceOptionAudience', 'configuredPlacementSpec', 'currency', 'flow', 'flowID', 'legacyAdAccountID', 'optimizationGoalInput', 'postID', 'targetingSpecAudience']>
271
+ }
272
+
273
+ export type WaMexACSServerProviderConfigVariables = {
274
+ readonly project_name?: string
275
+ }
276
+
277
+ export type WaMexACSServerProviderIssuanceVariables = {
278
+ readonly input?: {
279
+ readonly project_name?: string
280
+ readonly config_id?: string
281
+ readonly issue_element?: string
282
+ readonly request_proof?: string
283
+ }
284
+ }
285
+
286
+ export type WaMexAcceptNewsletterAdminInviteVariables = {
287
+ readonly newsletter_id?: string
288
+ }
289
+
290
+ export type WaMexAiAgentAutoReplyControlVariables = {
291
+ readonly consumer_lid?: string
292
+ readonly phone_number?: string
293
+ readonly thread_status?: string
294
+ }
295
+
296
+ export type WaMexAuthAgentFeaturePolicyVariables = Readonly<Record<string, never>>
297
+
298
+ export type WaMexBPAccessTokenAndSessionCookiesVariables = {
299
+ readonly application_id?: number
300
+ readonly code?: string
301
+ }
302
+
303
+ export type WaMexBizCreateOrderVariables = {
304
+ readonly input?: {
305
+ readonly order?: {
306
+ readonly jid?: string
307
+ readonly products?: ReadonlyArray<Readonly<Record<string, unknown>>>
308
+ }
309
+ }
310
+ }
311
+
312
+ export type WaMexBizCustomUrlGetUserGraphqlVariables = {
313
+ readonly data?: {
314
+ readonly custom_url?: {
315
+ readonly path?: string
316
+ }
317
+ }
318
+ }
319
+
320
+ export type WaMexBizGetCategoriesVariables = {
321
+ readonly query_params?: {
322
+ readonly query?: string
323
+ readonly locale?: string
324
+ readonly operation?: 'PROFILE_TYPEAHEAD'
325
+ readonly version?: 'V_1'
326
+ }
327
+ }
328
+
329
+ export type WaMexBizGetCategoriesV2Variables = {
330
+ readonly query_params?: {
331
+ readonly query?: string
332
+ readonly locale?: string
333
+ readonly operation?: 'PROFILE_TYPEAHEAD'
334
+ readonly version?: 'V_2'
335
+ }
336
+ }
337
+
338
+ export type WaMexBizGetCustomUrlUserGraphqlVariables = {
339
+ readonly data?: {
340
+ readonly custom_url?: {
341
+ readonly path?: string
342
+ }
343
+ }
344
+ }
345
+
346
+ export type WaMexBizGetMerchantComplianceVariables = {
347
+ readonly request?: Readonly<Record<string, unknown>>
348
+ }
349
+
350
+ export type WaMexBizGetPriceTiersVariables = {
351
+ readonly request?: {
352
+ readonly locale?: string
353
+ }
354
+ }
355
+
356
+ export type WaMexBizGetProfileShimlinksVariables = {
357
+ readonly bizJid?: string
358
+ }
359
+
360
+ export type WaMexBizGraphQLRefreshCartVariables = {
361
+ readonly request?: Readonly<Record<string, unknown>>
362
+ }
363
+
364
+ export type WaMexBizProfileAddressAutocompleteVariables = {
365
+ readonly input?: {
366
+ readonly center?: string
367
+ readonly query?: string
368
+ readonly use_case_id?: 'WHATSAPP_BIZ_PROFILE'
369
+ }
370
+ }
371
+
372
+ export type WaMexBizQueryOrderVariables = {
373
+ readonly request?: {
374
+ readonly order?: {
375
+ readonly jid?: string
376
+ readonly token?: {
377
+ readonly sensitive_string_value?: string
378
+ }
379
+ readonly id?: string
380
+ readonly image_dimensions?: {
381
+ readonly height?: number
382
+ readonly width?: number
383
+ }
384
+ readonly direct_connection_encrypted_info?: string
385
+ }
386
+ }
387
+ }
388
+
389
+ export type WaMexBizSetMerchantComplianceVariables = {
390
+ readonly input?: Readonly<Record<string, unknown>>
391
+ }
392
+
393
+ export type WaMexCachedTokenVariables = {
394
+ readonly input?: {
395
+ readonly client_pub_key?: string
396
+ readonly request_id?: string
397
+ }
398
+ }
399
+
400
+ export type WaMexCanonicalUserValidVariables = Readonly<Record<string, never>>
401
+
402
+ export type WaMexChangeNewsletterOwnerVariables = {
403
+ readonly newsletter_id?: string
404
+ readonly user_id?: string
405
+ }
406
+
407
+ export type WaMexConsumerFetchQuickPromotionsVariables = {
408
+ readonly nux_ids?: ReadonlyArray<string>
409
+ readonly trigger_context?: {
410
+ readonly wa_smb_trigger_context?: {
411
+ readonly is_from_wa_smb?: boolean
412
+ readonly app_version?: number
413
+ readonly country?: string
414
+ readonly locale?: string
415
+ }
416
+ }
417
+ }
418
+
419
+ export type WaMexConsumerQuickPromotionActionGraphQLVariables = {
420
+ readonly input?: string
421
+ }
422
+
423
+ export type WaMexCreateInviteCodeVariables = {
424
+ readonly input?: {
425
+ readonly receiver?: string
426
+ readonly entry_point?: string
427
+ readonly server_send_sms?: boolean
428
+ }
429
+ }
430
+
431
+ export type WaMexCreateMarketingCampaignActionVariables = {
432
+ readonly input?: string
433
+ }
434
+
435
+ export type WaMexCreateNewsletterVariables = {
436
+ readonly input?: {
437
+ readonly name?: string
438
+ readonly description?: string
439
+ readonly picture?: string
440
+ }
441
+ }
442
+
443
+ export type WaMexCreateNewsletterAdminInviteVariables = {
444
+ readonly newsletter_id?: string
445
+ readonly user_id?: string
446
+ }
447
+
448
+ export type WaMexCreateReportAppealVariables = {
449
+ readonly reason?: string
450
+ readonly report_id?: string
451
+ }
452
+
453
+ export type WaMexCreateWhatsAppAdsIdentityVariables = {
454
+ readonly code?: {
455
+ readonly sensitive_string_value?: string
456
+ }
457
+ readonly phone_number?: {
458
+ readonly sensitive_string_value?: string
459
+ }
460
+ }
461
+
462
+ export type WaMexCustomLabel3pdEventVariables = {
463
+ readonly custom_labels?: ReadonlyArray<string>
464
+ readonly expt_group?: string
465
+ }
466
+
467
+ export type WaMexDeleteNewsletterVariables = {
468
+ readonly newsletter_id?: string
469
+ }
470
+
471
+ export type WaMexDemoteNewsletterAdminVariables = {
472
+ readonly newsletter_id?: string
473
+ readonly user_id?: string
474
+ }
475
+
476
+ export type WaMexEditBizProfileVariables = {
477
+ readonly input?: Readonly<Record<string, unknown>>
478
+ readonly lid?: string
479
+ }
480
+
481
+ export type WaMexExternalCtxAuthoriseWAChatVariables = {
482
+ readonly input?: Readonly<Record<string, unknown>>
483
+ }
484
+
485
+ export type WaMexFetchAboutStatusVariables = {
486
+ readonly user?: {
487
+ readonly user_id?: string
488
+ }
489
+ }
490
+
491
+ export type WaMexFetchAdEntryPointsConfigurationVariables = Readonly<Record<string, never>>
492
+
493
+ export type WaMexFetchAdEntryPointsConfigurationM1Variables = Readonly<Record<string, never>>
494
+
495
+ export type WaMexFetchAllNewslettersMetadataVariables = {
496
+ readonly fetch_status_metadata?: boolean
497
+ readonly fetch_wamo_sub?: boolean
498
+ }
499
+
500
+ export type WaMexFetchAllSubgroupsVariables = {
501
+ readonly group_id?: string
502
+ readonly query_context?: string
503
+ readonly sub_group_hint_id?: string
504
+ }
505
+
506
+ export type WaMexFetchBotProfilesGQLVariables = {
507
+ readonly ids?: ReadonlyArray<string>
508
+ }
509
+
510
+ export type WaMexFetchDynamicAIModesVariables = Readonly<Record<string, never>>
511
+
512
+ export type WaMexFetchGroupInfoVariables = {
513
+ readonly id?: string
514
+ readonly include_username?: boolean
515
+ readonly participants_phash?: string
516
+ readonly query_context?: string
517
+ }
518
+
519
+ export type WaMexFetchGroupInfoIncludBotsVariables = {
520
+ readonly id?: string
521
+ readonly include_username?: boolean
522
+ readonly participants_phash?: string
523
+ readonly query_context?: string
524
+ }
525
+
526
+ export type WaMexFetchGroupInviteCodeVariables = {
527
+ readonly id?: string
528
+ readonly query_context?: 'INVITE_CODE'
529
+ }
530
+
531
+ export type WaMexFetchGroupIsInternalVariables = {
532
+ readonly id?: string
533
+ }
534
+
535
+ export type WaMexFetchIntegritySignalsVariables = {
536
+ readonly input?: {
537
+ readonly query_input?: ReadonlyArray<{
538
+ readonly jid?: string
539
+ readonly integrity_signals?: {
540
+ readonly use_case?: 'CHAT_FMX'
541
+ }
542
+ }>
543
+ readonly telemetry?: {
544
+ readonly context?: 'INTERACTIVE'
545
+ }
546
+ }
547
+ }
548
+
549
+ export type WaMexFetchNativeAdsMvpEligibilityVariables = {
550
+ readonly phone_number?: string
551
+ }
552
+
553
+ export type WaMexFetchNewChatMessageCappingInfoVariables = {
554
+ readonly input?: {
555
+ readonly type?: 'INDIVIDUAL_NEW_CHAT_THREAD'
556
+ }
557
+ }
558
+
559
+ export type WaMexFetchNewsletterVariables = {
560
+ readonly fetch_creation_time?: boolean
561
+ readonly fetch_full_image?: boolean
562
+ readonly fetch_status_metadata?: boolean
563
+ readonly fetch_viewer_metadata?: boolean
564
+ readonly fetch_wamo_sub?: boolean
565
+ readonly input?: {
566
+ readonly key?: string
567
+ readonly type?: 'INVITE' | 'JID'
568
+ readonly view_role?: 'ADMIN' | 'GUEST' | 'OWNER' | 'SUBSCRIBER'
569
+ }
570
+ }
571
+
572
+ export type WaMexFetchNewsletterAdminCapabilitiesVariables = {
573
+ readonly newsletter_id?: string
574
+ }
575
+
576
+ export type WaMexFetchNewsletterAdminInfoVariables = {
577
+ readonly newsletter_id?: string
578
+ }
579
+
580
+ export type WaMexFetchNewsletterDehydratedVariables = {
581
+ readonly fetch_wamo_sub?: boolean
582
+ readonly input?: {
583
+ readonly key?: string
584
+ readonly type?: 'INVITE' | 'JID'
585
+ readonly view_role?: 'ADMIN' | 'GUEST' | 'OWNER' | 'SUBSCRIBER'
586
+ }
587
+ }
588
+
589
+ export type WaMexFetchNewsletterDirectoryCategoriesPreviewVariables = {
590
+ readonly fetch_status_metadata?: boolean
591
+ readonly input?: {
592
+ readonly categories?: ReadonlyArray<string>
593
+ readonly country_code?: string
594
+ readonly per_category_limit?: number
595
+ }
596
+ }
597
+
598
+ export type WaMexFetchNewsletterDirectoryListVariables = {
599
+ readonly fetch_status_metadata?: boolean
600
+ readonly input?: {
601
+ readonly view?: string
602
+ readonly filters?: {
603
+ readonly country_codes?: ReadonlyArray<string>
604
+ readonly categories?: ReadonlyArray<string>
605
+ }
606
+ readonly limit?: number
607
+ readonly start_cursor?: string
608
+ }
609
+ }
610
+
611
+ export type WaMexFetchNewsletterDirectorySearchResultsVariables = {
612
+ readonly fetch_status_metadata?: boolean
613
+ readonly input?: {
614
+ readonly search_text?: string
615
+ readonly categories?: ReadonlyArray<string>
616
+ readonly limit?: number
617
+ readonly start_cursor?: string
618
+ }
619
+ }
620
+
621
+ export type WaMexFetchNewsletterEnforcementsVariables = {
622
+ readonly locale?: string
623
+ readonly newsletter_id?: string
624
+ }
625
+
626
+ export type WaMexFetchNewsletterFollowersVariables = {
627
+ readonly input?: {
628
+ readonly newsletter_id?: string
629
+ readonly count?: number
630
+ }
631
+ }
632
+
633
+ export type WaMexFetchNewsletterInsightsVariables = {
634
+ readonly input?: {
635
+ readonly newsletter_id?: string
636
+ readonly metrics?: ReadonlyArray<{
637
+ readonly id?: number
638
+ readonly type?: string
639
+ readonly group_by?: {
640
+ readonly number_of_days?: number
641
+ }
642
+ readonly limit?: number
643
+ }>
644
+ }
645
+ }
646
+
647
+ export type WaMexFetchNewsletterIsDomainPreviewableVariables = {
648
+ readonly url_domains?: ReadonlyArray<string>
649
+ }
650
+
651
+ export type WaMexFetchNewsletterMessageReactionSenderListVariables = {
652
+ readonly input?: {
653
+ readonly id?: string
654
+ readonly server_id?: string
655
+ }
656
+ }
657
+
658
+ export type WaMexFetchNewsletterPendingInvitesVariables = {
659
+ readonly newsletter_id?: string
660
+ }
661
+
662
+ export type WaMexFetchNewsletterPollVotersVariables = {
663
+ readonly input?: {
664
+ readonly limit?: number
665
+ readonly server_id?: string
666
+ readonly newsletter_id?: string
667
+ readonly vote_hash?: string
668
+ }
669
+ }
670
+
671
+ export type WaMexFetchNewsletterReportsVariables = Readonly<Record<string, never>>
672
+
673
+ export type WaMexFetchOHAIKeyConfigVariables = Readonly<Record<string, never>>
674
+
675
+ export type WaMexFetchOIDCStateVariables = Readonly<Record<string, never>>
676
+
677
+ export type WaMexFetchPlaintextLinkPreviewVariables = {
678
+ readonly input?: {
679
+ readonly url?: string
680
+ }
681
+ }
682
+
683
+ export type WaMexFetchQuickPromotionsVariables = {
684
+ readonly nux_ids?: ReadonlyArray<string>
685
+ readonly trigger_context?: {
686
+ readonly wa_smb_trigger_context?: {
687
+ readonly is_from_wa_smb?: boolean
688
+ readonly app_version?: number
689
+ readonly country?: string
690
+ readonly locale?: string
691
+ }
692
+ }
693
+ }
694
+
695
+ export type WaMexFetchReachoutTimelockVariables = Readonly<Record<string, never>>
696
+
697
+ export type WaMexFetchRecommendedNewslettersVariables = {
698
+ readonly fetch_status_metadata?: boolean
699
+ readonly input?: {
700
+ readonly limit?: number
701
+ readonly country_codes?: ReadonlyArray<string>
702
+ }
703
+ }
704
+
705
+ export type WaMexFetchSimilarNewslettersVariables = {
706
+ readonly fetch_status_metadata?: boolean
707
+ readonly input?: {
708
+ readonly newsletter_id?: string
709
+ readonly limit?: number
710
+ readonly country_codes?: ReadonlyArray<string>
711
+ }
712
+ }
713
+
714
+ export type WaMexFetchSubgroupSuggestionsVariables = {
715
+ readonly group_id?: string
716
+ readonly query_context?: string
717
+ readonly sub_group_hint_id?: string
718
+ }
719
+
720
+ export type WaMexFetchSubscriptionEntryPointsVariables = Readonly<Record<string, never>>
721
+
722
+ export type WaMexFetchSubscriptionsVariables = {
723
+ readonly data?: {
724
+ readonly platform?: 'UNKNOWN'
725
+ }
726
+ }
727
+
728
+ export type WaMexFetchTextStatusListVariables = {
729
+ readonly input?: Readonly<Record<string, unknown>>
730
+ }
731
+
732
+ export type WaMexGetAccessTokenFromOIDCCodeVariables = {
733
+ readonly code?: string
734
+ readonly state?: string
735
+ }
736
+
737
+ export type WaMexGetAccountNonceVariables = {
738
+ readonly input?: {
739
+ readonly identifier?: {
740
+ readonly scope?: 'REQUEST'
741
+ }
742
+ }
743
+ }
744
+
745
+ export type WaMexGetDsbInfoVariables = {
746
+ readonly input?: {
747
+ readonly entity_id?: string
748
+ }
749
+ }
750
+
751
+ export type WaMexGetFBAccountPagesVariables = {
752
+ readonly userId?: string
753
+ }
754
+
755
+ export type WaMexGetNumbersForBrandIdsVariables = {
756
+ readonly input?: {
757
+ readonly brand_ids?: ReadonlyArray<string>
758
+ readonly lid_based_response?: boolean
759
+ }
760
+ }
761
+
762
+ export type WaMexGetPrivacyListsVariables = {
763
+ readonly input?: {
764
+ readonly query_input?: ReadonlyArray<{
765
+ readonly jid?: string
766
+ readonly privacy_contact_list_type?: {
767
+ readonly dhash?: string
768
+ readonly category?: string
769
+ readonly type?: string
770
+ }
771
+ }>
772
+ }
773
+ }
774
+
775
+ export type WaMexGetPrivacySettingsVariables = {
776
+ readonly input?: {
777
+ readonly query_input?: ReadonlyArray<{
778
+ readonly jid?: string
779
+ readonly privacy_features?: ReadonlyArray<string>
780
+ }>
781
+ }
782
+ }
783
+
784
+ export type WaMexGetUsernameVariables = Readonly<Record<string, never>>
785
+
786
+ export type WaMexGetWAAEligibilityVariables = {
787
+ readonly input?: {
788
+ readonly flow_id?: string
789
+ readonly request_id?: string
790
+ }
791
+ }
792
+
793
+ export type WaMexGraphQLProductCatalogGetPublicKeyVariables = {
794
+ readonly request?: {
795
+ readonly public_key?: {
796
+ readonly biz_jid?: string
797
+ }
798
+ }
799
+ }
800
+
801
+ export type WaMexGraphQLVerifyPostcodeVariables = {
802
+ readonly request?: {
803
+ readonly verify_postcode?: {
804
+ readonly biz_jid?: string
805
+ readonly direct_connection_encrypted_info?: string
806
+ }
807
+ }
808
+ }
809
+
810
+ export type WaMexGroupStoreInviteSmsVariables = {
811
+ readonly input?: {
812
+ readonly partcipants?: ReadonlyArray<Readonly<Record<string, unknown>>>
813
+ readonly group_jid?: string
814
+ }
815
+ }
816
+
817
+ export type WaMexGroupSuspensionAppealVariables = {
818
+ readonly input?: {
819
+ readonly group_jid?: string
820
+ readonly appeal_reason?: string
821
+ readonly debug_info?: string
822
+ }
823
+ }
824
+
825
+ export type WaMexIntegrityChallengeResponseVariables = {
826
+ readonly input?: {
827
+ readonly challenge_type?: string
828
+ readonly passkey_response?: {
829
+ readonly signed_challenge?: string
830
+ readonly prf_available?: boolean
831
+ }
832
+ }
833
+ }
834
+
835
+ export type WaMexJoinNewsletterVariables = {
836
+ readonly newsletter_id?: string
837
+ }
838
+
839
+ export type WaMexLeaveNewsletterVariables = {
840
+ readonly newsletter_id?: string
841
+ }
842
+
843
+ export type WaMexLidChangeNotificationVariables = Readonly<Record<string, never>>
844
+
845
+ export type WaMexLogNewsletterExposuresVariables = {
846
+ readonly input?: {
847
+ readonly exposures?: ReadonlyArray<{
848
+ readonly newsletter_id?: string
849
+ readonly capability?: 'ADMIN_CONTEXT_CARD_1' | 'ADMIN_CONTEXT_CARD_2' | 'ADMIN_CONTEXT_CARD_3' | 'ADMIN_NOTIFICATIONS' | 'ADMIN_ONBOARDING' | 'ADMIN_ONBOARDING_2' | 'ADMIN_PROFILE' | 'CHANNEL_STATUS_PRODUCER' | 'INSIGHTS' | 'INVITE_ADMINS_BUTTON' | 'INVITE_FOLLOWERS' | 'JARVIS_INTEGRATION_ENABLED' | 'MUSIC' | 'NEW_MESSAGE_TYPES_TOOLTIP' | 'PHOTO_POLLS' | 'PINNING_NUDGE' | 'QUESTIONS' | 'QUESTIONS_M2' | 'QUIZ' | 'SHARE_STICKER_PACKS' | 'THREAD_MENU'
850
+ }>
851
+ }
852
+ }
853
+
854
+ export type WaMexNativeMLModelVariables = {
855
+ readonly client_capability_metadata?: string
856
+ readonly model_request_metadatas?: string
857
+ }
858
+
859
+ export type WaMexNewsletterAddPaidPartnershipLabelVariables = {
860
+ readonly message_type?: string
861
+ readonly newsletter_id?: string
862
+ readonly server_id?: string
863
+ }
864
+
865
+ export type WaMexQueryCatalogVariables = {
866
+ readonly request?: {
867
+ readonly product_catalog?: {
868
+ readonly jid?: string
869
+ readonly allow_shop_source?: 'ALLOWSHOPSOURCE_FALSE' | 'ALLOWSHOPSOURCE_TRUE'
870
+ readonly width?: string
871
+ readonly height?: string
872
+ readonly direct_connection_encrypted_info?: string
873
+ readonly limit?: string
874
+ readonly after?: string
875
+ readonly catalog_session_id?: string
876
+ readonly variant_info_fields?: Readonly<Record<string, unknown>>
877
+ readonly variant_thumbnail_height?: string
878
+ readonly variant_thumbnail_width?: string
879
+ }
880
+ }
881
+ }
882
+
883
+ export type WaMexQueryCatalogHasCategoriesVariables = {
884
+ readonly request?: {
885
+ readonly categories?: {
886
+ readonly biz_jid?: string
887
+ readonly direct_connection_encrypted_info?: string
888
+ readonly image_dimensions?: Readonly<Record<string, unknown>>
889
+ readonly catalog_session_id?: string
890
+ }
891
+ }
892
+ }
893
+
894
+ export type WaMexQueryCatalogProductVariables = {
895
+ readonly request?: {
896
+ readonly product?: {
897
+ readonly jid?: string
898
+ readonly product_id?: string
899
+ readonly width?: string
900
+ readonly height?: string
901
+ readonly fetch_compliance_info?: string
902
+ readonly direct_connection_encrypted_info?: string
903
+ readonly variant_info_fields?: Readonly<Record<string, unknown>>
904
+ readonly variant_thumbnail_height?: string
905
+ readonly variant_thumbnail_width?: string
906
+ }
907
+ }
908
+ }
909
+
910
+ export type WaMexQueryProductCollectionsVariables = {
911
+ readonly request?: {
912
+ readonly collections?: {
913
+ readonly biz_jid?: string
914
+ readonly collection_limit?: string
915
+ readonly item_limit?: string
916
+ readonly after?: string
917
+ readonly width?: string
918
+ readonly height?: string
919
+ readonly direct_connection_encrypted_info?: string
920
+ readonly variant_info_fields?: Readonly<Record<string, unknown>>
921
+ readonly variant_thumbnail_height?: string
922
+ readonly variant_thumbnail_width?: string
923
+ }
924
+ }
925
+ }
926
+
927
+ export type WaMexQueryProductListCatalogVariables = {
928
+ readonly request?: {
929
+ readonly product_list?: {
930
+ readonly jid?: string
931
+ readonly products?: ReadonlyArray<{
932
+ readonly id?: string
933
+ }>
934
+ readonly width?: string
935
+ readonly height?: string
936
+ readonly direct_connection_encrypted_info?: string
937
+ }
938
+ }
939
+ }
940
+
941
+ export type WaMexQueryProductSingleCollectionVariables = {
942
+ readonly request?: {
943
+ readonly collection?: {
944
+ readonly biz_jid?: string
945
+ readonly id?: string
946
+ readonly limit?: string
947
+ readonly after?: string
948
+ readonly width?: string
949
+ readonly height?: string
950
+ readonly direct_connection_encrypted_info?: string
951
+ readonly variant_info_fields?: Readonly<Record<string, unknown>>
952
+ readonly variant_thumbnail_height?: string
953
+ readonly variant_thumbnail_width?: string
954
+ }
955
+ }
956
+ }
957
+
958
+ export type WaMexQuerySubgroupParticipantCountVariables = {
959
+ readonly input?: {
960
+ readonly group_jid?: string
961
+ readonly query_context?: string
962
+ readonly sub_group_jid_hint?: string
963
+ }
964
+ }
965
+
966
+ export type WaMexQuickPromotionActionVariables = {
967
+ readonly input?: string
968
+ }
969
+
970
+ export type WaMexReportProductVariables = {
971
+ readonly input?: {
972
+ readonly jid?: string
973
+ readonly product_id?: string
974
+ }
975
+ }
976
+
977
+ export type WaMexRequestClientLogsForBugVariables = {
978
+ readonly input?: {
979
+ readonly bug_id?: string
980
+ readonly participant_ids?: ReadonlyArray<string>
981
+ readonly reporter_id?: string
982
+ readonly up_to_timestamp_secs?: number
983
+ }
984
+ }
985
+
986
+ export type WaMexResolveAccountTypeAndAdPageVariables = {
987
+ readonly pageId?: string
988
+ }
989
+
990
+ export type WaMexResolveAccountTypeAndAdPageQueryVariables = {
991
+ readonly pageId?: string
992
+ }
993
+
994
+ export type WaMexRevokeNewsletterAdminInviteVariables = {
995
+ readonly newsletter_id?: string
996
+ readonly user_id?: string
997
+ }
998
+
999
+ export type WaMexSetUsernameVariables = {
1000
+ readonly input?: string
1001
+ readonly reserved?: boolean
1002
+ readonly session_id?: string
1003
+ readonly source?: 'USER_INPUT'
1004
+ }
1005
+
1006
+ export type WaMexSetUsernameKeyVariables = {
1007
+ readonly pin?: string
1008
+ }
1009
+
1010
+ export type WaMexSignupMetadataVariables = {
1011
+ readonly phone_number?: string
1012
+ readonly signup_id?: string
1013
+ }
1014
+
1015
+ export type WaMexSupportBugReportSubmitVariables = {
1016
+ readonly input?: Readonly<Record<string, unknown>>
1017
+ }
1018
+
1019
+ export type WaMexSupportContactFormSubmitVariables = {
1020
+ readonly input?: Readonly<Record<string, unknown>>
1021
+ }
1022
+
1023
+ export type WaMexSupportMessageFeedbackSubmitVariables = {
1024
+ readonly input?: Readonly<Record<string, unknown>>
1025
+ }
1026
+
1027
+ export type WaMexTransferCommunityOwnershipVariables = {
1028
+ readonly input?: Readonly<Record<string, unknown>>
1029
+ }
1030
+
1031
+ export type WaMexUpdateGroupPropertyVariables = {
1032
+ readonly group_id?: string
1033
+ readonly update?: Readonly<Record<string, unknown>>
1034
+ }
1035
+
1036
+ export type WaMexUpdateNewsletterVariables = {
1037
+ readonly newsletter_id?: string
1038
+ readonly updates?: {
1039
+ readonly name?: string
1040
+ readonly description?: string
1041
+ readonly picture?: string
1042
+ readonly settings?: Readonly<Record<string, unknown>>
1043
+ }
1044
+ }
1045
+
1046
+ export type WaMexUpdateNewsletterUserSettingVariables = {
1047
+ readonly input?: Readonly<Record<string, unknown>>
1048
+ }
1049
+
1050
+ export type WaMexUpdateTextStatusVariables = {
1051
+ readonly input?: Readonly<Record<string, unknown>>
1052
+ }
1053
+
1054
+ export type WaMexUsernameAvailabilityVariables = {
1055
+ readonly input?: string
1056
+ readonly session_id?: string
1057
+ readonly source?: 'USER_INPUT'
1058
+ }
1059
+
1060
+ export type WaMexUsyncVariables = {
1061
+ readonly include_about_status?: boolean
1062
+ readonly include_country_code?: boolean
1063
+ readonly include_username?: boolean
1064
+ readonly input?: {
1065
+ readonly query_input?: Readonly<Record<string, unknown>>
1066
+ readonly telemetry?: Readonly<Record<string, unknown>>
1067
+ }
1068
+ }
1069
+
1070
+ export type WaMexWAAOnboardingVariables = {
1071
+ readonly input?: {
1072
+ readonly flow_id?: string
1073
+ readonly request_id?: string
1074
+ }
1075
+ }
1076
+
1077
+ export type WaMexWaffleFXServiceDataQueryV2Variables = Readonly<Record<string, never>>
1078
+
1079
+ export type WaMexWaffleFXWAMOUpdateUOOMVariables = Readonly<Record<string, never>>
1080
+
1081
+ export type WaMexWaffleXEVariables = {
1082
+ readonly input?: Readonly<Record<string, unknown>>
1083
+ }
1084
+
1085
+ export type WaMexuseWAWebEstimatedDailyReachVariables = {
1086
+ readonly audienceOptionAudience?: Readonly<Record<string, unknown>>
1087
+ readonly configuredPlacementSpec?: Readonly<Record<string, unknown>>
1088
+ readonly currency?: string
1089
+ readonly flow?: string
1090
+ readonly flowID?: string
1091
+ readonly legacyAdAccountID?: string
1092
+ readonly optimizationGoalInput?: Readonly<Record<string, unknown>>
1093
+ readonly postID?: string
1094
+ readonly targetingSpecAudience?: Readonly<Record<string, unknown>>
1095
+ }
1096
+
1097
+ export interface WaMexOperationVariables {
1098
+ readonly ACSServerProviderConfig: WaMexACSServerProviderConfigVariables
1099
+ readonly ACSServerProviderIssuance: WaMexACSServerProviderIssuanceVariables
1100
+ readonly AcceptNewsletterAdminInvite: WaMexAcceptNewsletterAdminInviteVariables
1101
+ readonly AiAgentAutoReplyControl: WaMexAiAgentAutoReplyControlVariables
1102
+ readonly AuthAgentFeaturePolicy: WaMexAuthAgentFeaturePolicyVariables
1103
+ readonly BPAccessTokenAndSessionCookies: WaMexBPAccessTokenAndSessionCookiesVariables
1104
+ readonly BizCreateOrder: WaMexBizCreateOrderVariables
1105
+ readonly BizCustomUrlGetUserGraphql: WaMexBizCustomUrlGetUserGraphqlVariables
1106
+ readonly BizGetCategories: WaMexBizGetCategoriesVariables
1107
+ readonly BizGetCategoriesV2: WaMexBizGetCategoriesV2Variables
1108
+ readonly BizGetCustomUrlUserGraphql: WaMexBizGetCustomUrlUserGraphqlVariables
1109
+ readonly BizGetMerchantCompliance: WaMexBizGetMerchantComplianceVariables
1110
+ readonly BizGetPriceTiers: WaMexBizGetPriceTiersVariables
1111
+ readonly BizGetProfileShimlinks: WaMexBizGetProfileShimlinksVariables
1112
+ readonly BizGraphQLRefreshCart: WaMexBizGraphQLRefreshCartVariables
1113
+ readonly BizProfileAddressAutocomplete: WaMexBizProfileAddressAutocompleteVariables
1114
+ readonly BizQueryOrder: WaMexBizQueryOrderVariables
1115
+ readonly BizSetMerchantCompliance: WaMexBizSetMerchantComplianceVariables
1116
+ readonly CachedToken: WaMexCachedTokenVariables
1117
+ readonly CanonicalUserValid: WaMexCanonicalUserValidVariables
1118
+ readonly ChangeNewsletterOwner: WaMexChangeNewsletterOwnerVariables
1119
+ readonly ConsumerFetchQuickPromotions: WaMexConsumerFetchQuickPromotionsVariables
1120
+ readonly ConsumerQuickPromotionActionGraphQL: WaMexConsumerQuickPromotionActionGraphQLVariables
1121
+ readonly CreateInviteCode: WaMexCreateInviteCodeVariables
1122
+ readonly CreateMarketingCampaignAction: WaMexCreateMarketingCampaignActionVariables
1123
+ readonly CreateNewsletter: WaMexCreateNewsletterVariables
1124
+ readonly CreateNewsletterAdminInvite: WaMexCreateNewsletterAdminInviteVariables
1125
+ readonly CreateReportAppeal: WaMexCreateReportAppealVariables
1126
+ readonly CreateWhatsAppAdsIdentity: WaMexCreateWhatsAppAdsIdentityVariables
1127
+ readonly CustomLabel3pdEvent: WaMexCustomLabel3pdEventVariables
1128
+ readonly DeleteNewsletter: WaMexDeleteNewsletterVariables
1129
+ readonly DemoteNewsletterAdmin: WaMexDemoteNewsletterAdminVariables
1130
+ readonly EditBizProfile: WaMexEditBizProfileVariables
1131
+ readonly ExternalCtxAuthoriseWAChat: WaMexExternalCtxAuthoriseWAChatVariables
1132
+ readonly FetchAboutStatus: WaMexFetchAboutStatusVariables
1133
+ readonly FetchAdEntryPointsConfiguration: WaMexFetchAdEntryPointsConfigurationVariables
1134
+ readonly FetchAdEntryPointsConfigurationM1: WaMexFetchAdEntryPointsConfigurationM1Variables
1135
+ readonly FetchAllNewslettersMetadata: WaMexFetchAllNewslettersMetadataVariables
1136
+ readonly FetchAllSubgroups: WaMexFetchAllSubgroupsVariables
1137
+ readonly FetchBotProfilesGQL: WaMexFetchBotProfilesGQLVariables
1138
+ readonly FetchDynamicAIModes: WaMexFetchDynamicAIModesVariables
1139
+ readonly FetchGroupInfo: WaMexFetchGroupInfoVariables
1140
+ readonly FetchGroupInfoIncludBots: WaMexFetchGroupInfoIncludBotsVariables
1141
+ readonly FetchGroupInviteCode: WaMexFetchGroupInviteCodeVariables
1142
+ readonly FetchGroupIsInternal: WaMexFetchGroupIsInternalVariables
1143
+ readonly FetchIntegritySignals: WaMexFetchIntegritySignalsVariables
1144
+ readonly FetchNativeAdsMvpEligibility: WaMexFetchNativeAdsMvpEligibilityVariables
1145
+ readonly FetchNewChatMessageCappingInfo: WaMexFetchNewChatMessageCappingInfoVariables
1146
+ readonly FetchNewsletter: WaMexFetchNewsletterVariables
1147
+ readonly FetchNewsletterAdminCapabilities: WaMexFetchNewsletterAdminCapabilitiesVariables
1148
+ readonly FetchNewsletterAdminInfo: WaMexFetchNewsletterAdminInfoVariables
1149
+ readonly FetchNewsletterDehydrated: WaMexFetchNewsletterDehydratedVariables
1150
+ readonly FetchNewsletterDirectoryCategoriesPreview: WaMexFetchNewsletterDirectoryCategoriesPreviewVariables
1151
+ readonly FetchNewsletterDirectoryList: WaMexFetchNewsletterDirectoryListVariables
1152
+ readonly FetchNewsletterDirectorySearchResults: WaMexFetchNewsletterDirectorySearchResultsVariables
1153
+ readonly FetchNewsletterEnforcements: WaMexFetchNewsletterEnforcementsVariables
1154
+ readonly FetchNewsletterFollowers: WaMexFetchNewsletterFollowersVariables
1155
+ readonly FetchNewsletterInsights: WaMexFetchNewsletterInsightsVariables
1156
+ readonly FetchNewsletterIsDomainPreviewable: WaMexFetchNewsletterIsDomainPreviewableVariables
1157
+ readonly FetchNewsletterMessageReactionSenderList: WaMexFetchNewsletterMessageReactionSenderListVariables
1158
+ readonly FetchNewsletterPendingInvites: WaMexFetchNewsletterPendingInvitesVariables
1159
+ readonly FetchNewsletterPollVoters: WaMexFetchNewsletterPollVotersVariables
1160
+ readonly FetchNewsletterReports: WaMexFetchNewsletterReportsVariables
1161
+ readonly FetchOHAIKeyConfig: WaMexFetchOHAIKeyConfigVariables
1162
+ readonly FetchOIDCState: WaMexFetchOIDCStateVariables
1163
+ readonly FetchPlaintextLinkPreview: WaMexFetchPlaintextLinkPreviewVariables
1164
+ readonly FetchQuickPromotions: WaMexFetchQuickPromotionsVariables
1165
+ readonly FetchReachoutTimelock: WaMexFetchReachoutTimelockVariables
1166
+ readonly FetchRecommendedNewsletters: WaMexFetchRecommendedNewslettersVariables
1167
+ readonly FetchSimilarNewsletters: WaMexFetchSimilarNewslettersVariables
1168
+ readonly FetchSubgroupSuggestions: WaMexFetchSubgroupSuggestionsVariables
1169
+ readonly FetchSubscriptionEntryPoints: WaMexFetchSubscriptionEntryPointsVariables
1170
+ readonly FetchSubscriptions: WaMexFetchSubscriptionsVariables
1171
+ readonly FetchTextStatusList: WaMexFetchTextStatusListVariables
1172
+ readonly GetAccessTokenFromOIDCCode: WaMexGetAccessTokenFromOIDCCodeVariables
1173
+ readonly GetAccountNonce: WaMexGetAccountNonceVariables
1174
+ readonly GetDsbInfo: WaMexGetDsbInfoVariables
1175
+ readonly GetFBAccountPages: WaMexGetFBAccountPagesVariables
1176
+ readonly GetNumbersForBrandIds: WaMexGetNumbersForBrandIdsVariables
1177
+ readonly GetPrivacyLists: WaMexGetPrivacyListsVariables
1178
+ readonly GetPrivacySettings: WaMexGetPrivacySettingsVariables
1179
+ readonly GetUsername: WaMexGetUsernameVariables
1180
+ readonly GetWAAEligibility: WaMexGetWAAEligibilityVariables
1181
+ readonly GraphQLProductCatalogGetPublicKey: WaMexGraphQLProductCatalogGetPublicKeyVariables
1182
+ readonly GraphQLVerifyPostcode: WaMexGraphQLVerifyPostcodeVariables
1183
+ readonly GroupStoreInviteSms: WaMexGroupStoreInviteSmsVariables
1184
+ readonly GroupSuspensionAppeal: WaMexGroupSuspensionAppealVariables
1185
+ readonly IntegrityChallengeResponse: WaMexIntegrityChallengeResponseVariables
1186
+ readonly JoinNewsletter: WaMexJoinNewsletterVariables
1187
+ readonly LeaveNewsletter: WaMexLeaveNewsletterVariables
1188
+ readonly LidChangeNotification: WaMexLidChangeNotificationVariables
1189
+ readonly LogNewsletterExposures: WaMexLogNewsletterExposuresVariables
1190
+ readonly NativeMLModel: WaMexNativeMLModelVariables
1191
+ readonly NewsletterAddPaidPartnershipLabel: WaMexNewsletterAddPaidPartnershipLabelVariables
1192
+ readonly QueryCatalog: WaMexQueryCatalogVariables
1193
+ readonly QueryCatalogHasCategories: WaMexQueryCatalogHasCategoriesVariables
1194
+ readonly QueryCatalogProduct: WaMexQueryCatalogProductVariables
1195
+ readonly QueryProductCollections: WaMexQueryProductCollectionsVariables
1196
+ readonly QueryProductListCatalog: WaMexQueryProductListCatalogVariables
1197
+ readonly QueryProductSingleCollection: WaMexQueryProductSingleCollectionVariables
1198
+ readonly QuerySubgroupParticipantCount: WaMexQuerySubgroupParticipantCountVariables
1199
+ readonly QuickPromotionAction: WaMexQuickPromotionActionVariables
1200
+ readonly ReportProduct: WaMexReportProductVariables
1201
+ readonly RequestClientLogsForBug: WaMexRequestClientLogsForBugVariables
1202
+ readonly ResolveAccountTypeAndAdPage: WaMexResolveAccountTypeAndAdPageVariables
1203
+ readonly ResolveAccountTypeAndAdPageQuery: WaMexResolveAccountTypeAndAdPageQueryVariables
1204
+ readonly RevokeNewsletterAdminInvite: WaMexRevokeNewsletterAdminInviteVariables
1205
+ readonly SetUsername: WaMexSetUsernameVariables
1206
+ readonly SetUsernameKey: WaMexSetUsernameKeyVariables
1207
+ readonly SignupMetadata: WaMexSignupMetadataVariables
1208
+ readonly SupportBugReportSubmit: WaMexSupportBugReportSubmitVariables
1209
+ readonly SupportContactFormSubmit: WaMexSupportContactFormSubmitVariables
1210
+ readonly SupportMessageFeedbackSubmit: WaMexSupportMessageFeedbackSubmitVariables
1211
+ readonly TransferCommunityOwnership: WaMexTransferCommunityOwnershipVariables
1212
+ readonly UpdateGroupProperty: WaMexUpdateGroupPropertyVariables
1213
+ readonly UpdateNewsletter: WaMexUpdateNewsletterVariables
1214
+ readonly UpdateNewsletterUserSetting: WaMexUpdateNewsletterUserSettingVariables
1215
+ readonly UpdateTextStatus: WaMexUpdateTextStatusVariables
1216
+ readonly UsernameAvailability: WaMexUsernameAvailabilityVariables
1217
+ readonly Usync: WaMexUsyncVariables
1218
+ readonly WAAOnboarding: WaMexWAAOnboardingVariables
1219
+ readonly WaffleFXServiceDataQueryV2: WaMexWaffleFXServiceDataQueryV2Variables
1220
+ readonly WaffleFXWAMOUpdateUOOM: WaMexWaffleFXWAMOUpdateUOOMVariables
1221
+ readonly WaffleXE: WaMexWaffleXEVariables
1222
+ readonly useWAWebEstimatedDailyReach: WaMexuseWAWebEstimatedDailyReachVariables
1223
+ }
1224
+
1225
+ export type WaMexACSServerProviderConfigResponse = {
1226
+ readonly xwa_wa_acs_config?: {
1227
+ readonly cipher_suite?: string
1228
+ readonly expire_time?: string
1229
+ readonly id?: string
1230
+ readonly max_evals?: number
1231
+ readonly public_key?: string
1232
+ readonly redemption_limit?: string
1233
+ readonly token_ttl?: number
1234
+ }
1235
+ }
1236
+
1237
+ export type WaMexACSServerProviderIssuanceResponse = {
1238
+ readonly xwa_wa_acs_issue_credentials?: {
1239
+ readonly success?: boolean
1240
+ readonly creds?: {
1241
+ readonly evaluation?: ReadonlyArray<{
1242
+ readonly data?: string
1243
+ }>
1244
+ readonly proof?: ReadonlyArray<{
1245
+ readonly c?: string
1246
+ readonly s?: string
1247
+ }>
1248
+ }
1249
+ readonly error_message?: string
1250
+ }
1251
+ }
1252
+
1253
+ export type WaMexAcceptNewsletterAdminInviteResponse = {
1254
+ readonly xwa2_newsletter_admin_invite_accept?: {
1255
+ readonly __typename?: string
1256
+ readonly id?: string
1257
+ }
1258
+ }
1259
+
1260
+ export type WaMexAiAgentAutoReplyControlResponse = {
1261
+ readonly xfb_whatsapp_smb_maiba_status_update?: {
1262
+ readonly success?: boolean
1263
+ }
1264
+ }
1265
+
1266
+ export type WaMexAuthAgentFeaturePolicyResponse = {
1267
+ readonly whatsapp_authorized_agent_feature_policy?: {
1268
+ readonly disabled_features?: ReadonlyArray<string>
1269
+ }
1270
+ }
1271
+
1272
+ export type WaMexBPAccessTokenAndSessionCookiesResponse = {
1273
+ readonly xwa_bp_access_token_and_session_cookies?: {
1274
+ readonly status?: string
1275
+ readonly access_token?: string
1276
+ readonly session_cookies?: string
1277
+ readonly bp_id?: string
1278
+ readonly access_token_type?: string
1279
+ readonly email_attr?: string
1280
+ }
1281
+ }
1282
+
1283
+ export type WaMexBizCreateOrderResponse = {
1284
+ readonly xwa_checkout_place_order?: {
1285
+ readonly order?: {
1286
+ readonly order_id?: string
1287
+ readonly token?: string
1288
+ readonly price?: {
1289
+ readonly currency?: string
1290
+ readonly subtotal_amount?: number
1291
+ readonly total_amount?: number
1292
+ readonly price_status?: string
1293
+ }
1294
+ }
1295
+ }
1296
+ }
1297
+
1298
+ export type WaMexBizCustomUrlGetUserGraphqlResponse = {
1299
+ readonly xwa_custom_url_get_user?: {
1300
+ readonly success?: boolean
1301
+ readonly lid?: string
1302
+ readonly error_code?: number
1303
+ readonly error_text?: string
1304
+ }
1305
+ }
1306
+
1307
+ export type WaMexBizGetCategoriesResponse = {
1308
+ readonly whatsapp_catkit_typeahead_proxy?: {
1309
+ readonly categories?: ReadonlyArray<{
1310
+ readonly id?: string
1311
+ readonly display_name?: string
1312
+ }>
1313
+ readonly not_a_biz?: {
1314
+ readonly id?: string
1315
+ readonly display_name?: string
1316
+ }
1317
+ }
1318
+ }
1319
+
1320
+ export type WaMexBizGetCategoriesV2Response = {
1321
+ readonly whatsapp_catkit_typeahead_proxy?: {
1322
+ readonly categories?: ReadonlyArray<{
1323
+ readonly id?: string
1324
+ readonly display_name?: string
1325
+ readonly categories?: ReadonlyArray<{
1326
+ readonly id?: string
1327
+ readonly display_name?: string
1328
+ readonly categories?: ReadonlyArray<{
1329
+ readonly id?: string
1330
+ readonly display_name?: string
1331
+ }>
1332
+ }>
1333
+ }>
1334
+ readonly not_a_biz?: {
1335
+ readonly id?: string
1336
+ readonly display_name?: string
1337
+ }
1338
+ }
1339
+ }
1340
+
1341
+ export type WaMexBizGetCustomUrlUserGraphqlResponse = {
1342
+ readonly xwa_custom_url_get_user?: {
1343
+ readonly success?: boolean
1344
+ readonly user?: {
1345
+ readonly jid?: string
1346
+ }
1347
+ readonly error_code?: number
1348
+ readonly error_text?: string
1349
+ }
1350
+ }
1351
+
1352
+ export type WaMexBizGetMerchantComplianceResponse = {
1353
+ readonly xfb_whatsapp_biz_merchant_compliance_info?: {
1354
+ readonly merchant_info?: {
1355
+ readonly entity_name?: string
1356
+ readonly entity_type?: string
1357
+ readonly is_registered?: boolean
1358
+ readonly entity_type_custom?: string
1359
+ readonly customer_care_details?: {
1360
+ readonly email?: string
1361
+ readonly landline_number?: string
1362
+ readonly mobile_number?: string
1363
+ }
1364
+ readonly grievance_officer_details?: {
1365
+ readonly name?: string
1366
+ readonly email?: string
1367
+ readonly landline_number?: string
1368
+ readonly mobile_number?: string
1369
+ }
1370
+ }
1371
+ }
1372
+ }
1373
+
1374
+ export type WaMexBizGetPriceTiersResponse = {
1375
+ readonly xwa_whatsapp_get_pricing_tiers?: {
1376
+ readonly price_tiers?: ReadonlyArray<{
1377
+ readonly id?: string
1378
+ readonly description?: string
1379
+ readonly symbol?: string
1380
+ }>
1381
+ }
1382
+ }
1383
+
1384
+ export type WaMexBizGetProfileShimlinksResponse = {
1385
+ readonly xwa_whatsapp_smb_get_profile_linkshims?: ReadonlyArray<{
1386
+ readonly website?: string
1387
+ readonly shimmed_website_url?: string
1388
+ }>
1389
+ }
1390
+
1391
+ export type WaMexBizGraphQLRefreshCartResponse = {
1392
+ readonly xwa_checkout_refresh_cart?: {
1393
+ readonly cart?: {
1394
+ readonly products?: ReadonlyArray<{
1395
+ readonly is_hidden?: boolean
1396
+ readonly availability?: string
1397
+ readonly product_availability?: string
1398
+ readonly status_info?: {
1399
+ readonly reject_reason?: string
1400
+ readonly status?: string
1401
+ readonly can_appeal?: boolean
1402
+ readonly commerce_url?: string
1403
+ }
1404
+ readonly image_fetch_status?: string
1405
+ readonly price?: string
1406
+ readonly currency?: string
1407
+ readonly retailer_id?: string
1408
+ readonly name?: string
1409
+ readonly description?: string
1410
+ readonly url?: string
1411
+ readonly id?: string
1412
+ readonly media?: {
1413
+ readonly images?: ReadonlyArray<{
1414
+ readonly id?: string
1415
+ readonly request_image_url?: string
1416
+ readonly original_dimensions?: {
1417
+ readonly height?: number
1418
+ readonly width?: number
1419
+ }
1420
+ }>
1421
+ readonly videos?: ReadonlyArray<{
1422
+ readonly thumbnail_url?: string
1423
+ readonly original_video_url?: string
1424
+ readonly id?: string
1425
+ }>
1426
+ }
1427
+ readonly sale_price?: {
1428
+ readonly price?: string
1429
+ readonly start_date?: string
1430
+ readonly end_date?: string
1431
+ }
1432
+ readonly max_available?: number
1433
+ readonly belongs_to?: string
1434
+ readonly status?: string
1435
+ readonly compliance_category?: string
1436
+ readonly compliance_info?: {
1437
+ readonly country_code_origin?: string
1438
+ readonly importer_name?: string
1439
+ readonly importer_address?: {
1440
+ readonly street1?: string
1441
+ readonly street2?: string
1442
+ readonly city?: string
1443
+ readonly region?: string
1444
+ readonly postal_code?: string
1445
+ readonly country_code?: string
1446
+ }
1447
+ }
1448
+ readonly variant_info?: {
1449
+ readonly types?: ReadonlyArray<{
1450
+ readonly name?: string
1451
+ readonly options?: ReadonlyArray<{
1452
+ readonly value?: string
1453
+ readonly thumbnail_media?: {
1454
+ readonly original_dimensions?: {
1455
+ readonly width?: number
1456
+ readonly height?: number
1457
+ }
1458
+ readonly request_image_url?: string
1459
+ readonly original_image_url?: string
1460
+ readonly id?: string
1461
+ }
1462
+ }>
1463
+ }>
1464
+ readonly listing_details?: {
1465
+ readonly description?: string
1466
+ readonly multi_price?: string
1467
+ readonly lowest_price?: string
1468
+ }
1469
+ readonly variant_properties?: ReadonlyArray<{
1470
+ readonly value?: string
1471
+ readonly name?: string
1472
+ }>
1473
+ readonly availability?: {
1474
+ readonly listing?: ReadonlyArray<{
1475
+ readonly is_available?: boolean
1476
+ readonly product_id?: string
1477
+ readonly options?: ReadonlyArray<{
1478
+ readonly name?: string
1479
+ readonly value?: string
1480
+ }>
1481
+ }>
1482
+ }
1483
+ }
1484
+ }>
1485
+ readonly price_details?: {
1486
+ readonly total_amount?: number
1487
+ readonly subtotal_amount?: number
1488
+ readonly currency?: string
1489
+ readonly price_status?: string
1490
+ }
1491
+ }
1492
+ }
1493
+ }
1494
+
1495
+ export type WaMexBizProfileAddressAutocompleteResponse = {
1496
+ readonly whatsapp_maps_typeahead?: {
1497
+ readonly items?: ReadonlyArray<{
1498
+ readonly id?: string
1499
+ readonly location?: {
1500
+ readonly latitude?: number
1501
+ readonly longitude?: number
1502
+ }
1503
+ readonly address?: {
1504
+ readonly city?: string
1505
+ readonly country?: string
1506
+ readonly postalcode?: string
1507
+ readonly stateprovince?: string
1508
+ readonly streetaddress?: string
1509
+ }
1510
+ readonly title?: string
1511
+ }>
1512
+ }
1513
+ }
1514
+
1515
+ export type WaMexBizQueryOrderResponse = {
1516
+ readonly xwa_checkout_get_order_info?: {
1517
+ readonly order?: {
1518
+ readonly creation_time_stamp?: string
1519
+ readonly products?: ReadonlyArray<{
1520
+ readonly id?: string
1521
+ readonly name?: string
1522
+ readonly price?: string
1523
+ readonly currency?: string
1524
+ readonly variant_info?: {
1525
+ readonly variant_properties?: ReadonlyArray<{
1526
+ readonly name?: string
1527
+ readonly value?: string
1528
+ }>
1529
+ }
1530
+ readonly media?: {
1531
+ readonly images?: ReadonlyArray<{
1532
+ readonly id?: string
1533
+ readonly request_image_url?: string
1534
+ }>
1535
+ }
1536
+ readonly quantity?: string
1537
+ }>
1538
+ readonly price_details?: {
1539
+ readonly subtotal_amount?: string
1540
+ readonly currency?: string
1541
+ readonly total_amount?: string
1542
+ }
1543
+ }
1544
+ }
1545
+ }
1546
+
1547
+ export type WaMexBizSetMerchantComplianceResponse = {
1548
+ readonly xfb_whatsapp_biz_merchant_set_compliance_info?: {
1549
+ readonly __typename?: string
1550
+ readonly merchant_info?: {
1551
+ readonly entity_name?: string
1552
+ readonly entity_type?: string
1553
+ readonly is_registered?: boolean
1554
+ readonly entity_type_custom?: string
1555
+ readonly customer_care_details?: {
1556
+ readonly email?: string
1557
+ readonly landline_number?: string
1558
+ readonly mobile_number?: string
1559
+ }
1560
+ readonly grievance_officer_details?: {
1561
+ readonly name?: string
1562
+ readonly email?: string
1563
+ readonly landline_number?: string
1564
+ readonly mobile_number?: string
1565
+ }
1566
+ }
1567
+ }
1568
+ }
1569
+
1570
+ export type WaMexCachedTokenResponse = {
1571
+ readonly xwa2_ent_trade_canonical_nonce_for_access_tokens?: {
1572
+ readonly encrypted_access_tokens?: {
1573
+ readonly key?: string
1574
+ readonly data?: string
1575
+ readonly tag?: string
1576
+ readonly nonce?: string
1577
+ readonly algorithm?: string
1578
+ }
1579
+ }
1580
+ }
1581
+
1582
+ export type WaMexCanonicalUserValidResponse = {
1583
+ readonly xwa_canonical_user_valid?: {
1584
+ readonly success?: boolean
1585
+ }
1586
+ }
1587
+
1588
+ export type WaMexChangeNewsletterOwnerResponse = {
1589
+ readonly xwa2_newsletter_change_owner?: {
1590
+ readonly __typename?: string
1591
+ readonly id?: string
1592
+ }
1593
+ }
1594
+
1595
+ export type WaMexConsumerFetchQuickPromotionsResponse = {
1596
+ readonly quick_promotion_multiverse_batch_fetch_root?: ReadonlyArray<{
1597
+ readonly surface_nux_id?: string
1598
+ readonly eligible_promotions?: {
1599
+ readonly edges?: ReadonlyArray<{
1600
+ readonly client_ttl_seconds?: number
1601
+ readonly priority?: number
1602
+ readonly is_holdout?: boolean
1603
+ readonly log_eligibility_waterfall?: string
1604
+ readonly time_range?: {
1605
+ readonly start?: string
1606
+ readonly end?: string
1607
+ }
1608
+ readonly node?: {
1609
+ readonly __typename?: string
1610
+ readonly promotion_id?: string
1611
+ readonly is_server_force_pass?: boolean
1612
+ readonly ab_prop_name?: string
1613
+ readonly max_impressions?: number
1614
+ readonly surface_delay_in_seconds?: number
1615
+ readonly encrypted_logging_data?: string
1616
+ readonly client_side_dry_run?: boolean
1617
+ readonly creatives?: ReadonlyArray<{
1618
+ readonly __typename?: string
1619
+ readonly title?: {
1620
+ readonly text?: string
1621
+ }
1622
+ readonly content?: {
1623
+ readonly text?: string
1624
+ }
1625
+ readonly primary_action?: {
1626
+ readonly __typename?: string
1627
+ readonly title?: {
1628
+ readonly text?: string
1629
+ }
1630
+ readonly limit?: number
1631
+ readonly url?: string
1632
+ }
1633
+ readonly dismiss_action?: {
1634
+ readonly __typename?: string
1635
+ readonly limit?: string
1636
+ }
1637
+ readonly wa_light_mode_media_details?: {
1638
+ readonly jpeg_thumbnail?: string
1639
+ }
1640
+ readonly wa_dark_mode_media_details?: {
1641
+ readonly jpeg_thumbnail?: string
1642
+ }
1643
+ readonly accessibility_text_for_image?: string
1644
+ readonly is_dismissible?: boolean
1645
+ readonly id?: string
1646
+ }>
1647
+ readonly content_attributes?: {
1648
+ readonly wa_banner_background_color?: {
1649
+ readonly light_mode_highlight_color?: string
1650
+ readonly dark_mode_highlight_color?: string
1651
+ readonly light_mode_background_color?: string
1652
+ readonly dark_mode_background_color?: string
1653
+ }
1654
+ readonly wa_primary_cta_alternative_url?: string
1655
+ readonly wa_eligible_duration_after_impression_in_seconds?: number
1656
+ }
1657
+ readonly wa_qp_content_attributes_do_not_use?: ReadonlyArray<{
1658
+ readonly name?: string
1659
+ readonly value?: string
1660
+ }>
1661
+ readonly contextual_filters_for_wa_do_not_use?: {
1662
+ readonly clause_type?: string
1663
+ readonly filters?: ReadonlyArray<Readonly<Record<string, unknown>>>
1664
+ readonly clauses?: ReadonlyArray<{
1665
+ readonly clause_type?: string
1666
+ readonly filters?: ReadonlyArray<Readonly<Record<string, unknown>>>
1667
+ readonly clauses?: ReadonlyArray<{
1668
+ readonly clause_type?: string
1669
+ readonly filters?: ReadonlyArray<Readonly<Record<string, unknown>>>
1670
+ readonly clauses?: ReadonlyArray<{
1671
+ readonly clause_type?: string
1672
+ readonly filters?: ReadonlyArray<Readonly<Record<string, unknown>>>
1673
+ readonly clauses?: ReadonlyArray<{
1674
+ readonly clause_type?: string
1675
+ readonly filters?: ReadonlyArray<Readonly<Record<string, unknown>>>
1676
+ readonly clauses?: ReadonlyArray<{
1677
+ readonly clause_type?: string
1678
+ readonly filters?: ReadonlyArray<Readonly<Record<string, unknown>>>
1679
+ readonly clauses?: ReadonlyArray<{
1680
+ readonly clause_type?: string
1681
+ readonly filters?: ReadonlyArray<Readonly<Record<string, unknown>>>
1682
+ readonly clauses?: ReadonlyArray<{
1683
+ readonly clause_type?: string
1684
+ readonly filters?: ReadonlyArray<Readonly<Record<string, unknown>>>
1685
+ }>
1686
+ }>
1687
+ }>
1688
+ }>
1689
+ }>
1690
+ }>
1691
+ }>
1692
+ }
1693
+ readonly id?: string
1694
+ }
1695
+ }>
1696
+ }
1697
+ }>
1698
+ }
1699
+
1700
+ export type WaMexConsumerQuickPromotionActionGraphQLResponse = {
1701
+ readonly wa_consumer_quick_promotion_log_event?: {
1702
+ readonly client_mutation_id?: string
1703
+ }
1704
+ }
1705
+
1706
+ export type WaMexCreateInviteCodeResponse = {
1707
+ readonly xwa2_growth_create_invite_code?: {
1708
+ readonly code?: string
1709
+ }
1710
+ }
1711
+
1712
+ export type WaMexCreateMarketingCampaignActionResponse = {
1713
+ readonly whatsapp_marketing_messages_create?: {
1714
+ readonly ad_campaign_group_id?: string
1715
+ readonly ad_campaign_id?: string
1716
+ readonly ad_group_id?: string
1717
+ readonly ad_id?: string
1718
+ readonly ad_creative_id?: string
1719
+ readonly campaign_name?: string
1720
+ readonly status?: string
1721
+ readonly lifetime_budget?: string
1722
+ readonly start_time?: string
1723
+ }
1724
+ }
1725
+
1726
+ export type WaMexCreateNewsletterResponse = {
1727
+ readonly xwa2_newsletter_create?: {
1728
+ readonly id?: string
1729
+ readonly state?: {
1730
+ readonly type?: 'ACTIVE' | 'DELETED' | 'GEOSUSPENDED' | 'NON_EXISTING' | 'SUSPENDED'
1731
+ }
1732
+ readonly thread_metadata?: {
1733
+ readonly name?: {
1734
+ readonly id?: string
1735
+ readonly text?: string
1736
+ readonly update_time?: string
1737
+ }
1738
+ readonly description?: {
1739
+ readonly id?: string
1740
+ readonly text?: string
1741
+ readonly update_time?: string
1742
+ }
1743
+ readonly picture?: {
1744
+ readonly id?: string
1745
+ readonly type?: 'IMAGE' | 'PREVIEW'
1746
+ readonly direct_path?: string
1747
+ }
1748
+ readonly preview?: {
1749
+ readonly id?: string
1750
+ readonly type?: 'PREVIEW'
1751
+ readonly direct_path?: string
1752
+ }
1753
+ readonly invite?: string
1754
+ readonly handle?: string
1755
+ readonly verification?: 'UNVERIFIED' | 'VERIFIED'
1756
+ readonly subscribers_count?: string
1757
+ readonly creation_time?: string
1758
+ }
1759
+ readonly viewer_metadata?: {
1760
+ readonly settings?: ReadonlyArray<{
1761
+ readonly type?: 'MUTE_ADMIN_ACTIVITY' | 'MUTE_FOLLOWER_ACTIVITY'
1762
+ readonly value?: 'OFF' | 'ON'
1763
+ }>
1764
+ readonly role?: 'ADMIN' | 'GUEST' | 'OWNER' | 'SUBSCRIBER'
1765
+ }
1766
+ }
1767
+ }
1768
+
1769
+ export type WaMexCreateNewsletterAdminInviteResponse = {
1770
+ readonly xwa2_newsletter_admin_invite_create?: {
1771
+ readonly invite_expiration_time?: string
1772
+ readonly id?: string
1773
+ }
1774
+ }
1775
+
1776
+ export type WaMexCreateReportAppealResponse = {
1777
+ readonly xwa2_create_channel_report_appeal_v2?: {
1778
+ readonly report_id?: string
1779
+ readonly status?: string
1780
+ readonly creation_time?: string
1781
+ readonly last_update_time?: string
1782
+ readonly channel_name?: string
1783
+ readonly channel_jid?: string
1784
+ readonly reported_content_data?: {
1785
+ readonly __typename?: string
1786
+ readonly server_msg_id?: string
1787
+ readonly server_id?: string
1788
+ readonly server_response_id?: string
1789
+ readonly notify_name?: string
1790
+ readonly question_data?: {
1791
+ readonly __typename?: string
1792
+ readonly server_msg_id?: string
1793
+ }
1794
+ }
1795
+ readonly appeal?: {
1796
+ readonly state?: 'CONTENT_UNAVAILABLE' | 'NON_APPEALABLE' | 'NOT_APPEALED' | 'PENDING' | 'REJECT' | 'SUCCESS'
1797
+ readonly appeal_reason?: string
1798
+ readonly creation_time?: string
1799
+ readonly report_id?: string
1800
+ readonly appeal_id?: string
1801
+ }
1802
+ }
1803
+ }
1804
+
1805
+ export type WaMexCreateWhatsAppAdsIdentityResponse = {
1806
+ readonly create_or_update_whatsapp_ads_identity?: {
1807
+ readonly id?: string
1808
+ }
1809
+ }
1810
+
1811
+ export type WaMexCustomLabel3pdEventResponse = {
1812
+ readonly xwa_get_3pd_event?: ReadonlyArray<{
1813
+ readonly custom_label?: string
1814
+ readonly ctwa_3pd_conversion_type?: string
1815
+ readonly ctwa_3pd_conversion_subtype?: string
1816
+ readonly ctwa_3pd_conversion_metadata?: string
1817
+ }>
1818
+ }
1819
+
1820
+ export type WaMexDeleteNewsletterResponse = {
1821
+ readonly xwa2_newsletter_delete_v2?: {
1822
+ readonly id?: string
1823
+ readonly state?: {
1824
+ readonly type?: 'ACTIVE' | 'DELETED' | 'GEOSUSPENDED' | 'NON_EXISTING' | 'SUSPENDED'
1825
+ }
1826
+ }
1827
+ }
1828
+
1829
+ export type WaMexDemoteNewsletterAdminResponse = {
1830
+ readonly xwa2_newsletter_admin_demote?: {
1831
+ readonly __typename?: string
1832
+ readonly id?: string
1833
+ }
1834
+ }
1835
+
1836
+ export type WaMexEditBizProfileResponse = {
1837
+ readonly edit_wa_web_biz_profile?: boolean
1838
+ }
1839
+
1840
+ export type WaMexExternalCtxAuthoriseWAChatResponse = {
1841
+ readonly xwa_external_ctx_authorise_wa_chat?: {
1842
+ readonly success?: boolean
1843
+ readonly partner_name?: string
1844
+ }
1845
+ }
1846
+
1847
+ export type WaMexFetchAboutStatusResponse = {
1848
+ readonly xwa2_users_updates_since?: ReadonlyArray<{
1849
+ readonly updates?: ReadonlyArray<{
1850
+ readonly __typename?: string
1851
+ readonly text?: string
1852
+ }>
1853
+ }>
1854
+ }
1855
+
1856
+ export type WaMexFetchAdEntryPointsConfigurationResponse = {
1857
+ readonly ctwa_client_entry_point_entitlement?: ReadonlyArray<{
1858
+ readonly entry_point_or_experience?: string
1859
+ readonly should_show?: boolean
1860
+ }>
1861
+ }
1862
+
1863
+ export type WaMexFetchAdEntryPointsConfigurationM1Response = {
1864
+ readonly ctwa_client_entry_point_entitlement?: ReadonlyArray<{
1865
+ readonly entry_point_or_experience?: string
1866
+ readonly should_show?: boolean
1867
+ readonly content?: string
1868
+ readonly sub_content?: string
1869
+ }>
1870
+ }
1871
+
1872
+ export type WaMexFetchAllNewslettersMetadataResponse = {
1873
+ readonly xwa2_newsletter_subscribed?: ReadonlyArray<{
1874
+ readonly id?: string
1875
+ readonly state?: {
1876
+ readonly type?: 'ACTIVE' | 'DELETED' | 'GEOSUSPENDED' | 'NON_EXISTING' | 'SUSPENDED'
1877
+ }
1878
+ readonly thread_metadata?: {
1879
+ readonly creation_time?: string
1880
+ readonly name?: {
1881
+ readonly id?: string
1882
+ readonly text?: string
1883
+ readonly update_time?: string
1884
+ }
1885
+ readonly picture?: {
1886
+ readonly id?: string
1887
+ readonly type?: 'IMAGE' | 'PREVIEW'
1888
+ readonly direct_path?: string
1889
+ }
1890
+ readonly preview?: {
1891
+ readonly id?: string
1892
+ readonly type?: 'PREVIEW'
1893
+ readonly direct_path?: string
1894
+ }
1895
+ readonly description?: {
1896
+ readonly id?: string
1897
+ readonly text?: string
1898
+ readonly update_time?: string
1899
+ }
1900
+ readonly invite?: string
1901
+ readonly handle?: string
1902
+ readonly verification?: 'UNVERIFIED' | 'VERIFIED'
1903
+ readonly settings?: {
1904
+ readonly reaction_codes?: {
1905
+ readonly value?: 'ALL'
1906
+ }
1907
+ }
1908
+ readonly wamo_sub?: {
1909
+ readonly plan_id?: string
1910
+ }
1911
+ }
1912
+ readonly viewer_metadata?: {
1913
+ readonly settings?: ReadonlyArray<{
1914
+ readonly type?: 'MUTE_ADMIN_ACTIVITY' | 'MUTE_FOLLOWER_ACTIVITY'
1915
+ readonly value?: 'OFF' | 'ON'
1916
+ }>
1917
+ readonly role?: 'ADMIN' | 'GUEST' | 'OWNER' | 'SUBSCRIBER'
1918
+ readonly wamo_sub_status?: 'ACTIVE' | 'INACTIVE'
1919
+ }
1920
+ readonly status_metadata?: {
1921
+ readonly last_status_server_id?: string
1922
+ readonly last_status_sent_time?: string
1923
+ }
1924
+ }>
1925
+ }
1926
+
1927
+ export type WaMexFetchAllSubgroupsResponse = {
1928
+ readonly xwa2_group_query_by_id?: {
1929
+ readonly id?: string
1930
+ readonly __typename?: string
1931
+ readonly default_sub_group?: {
1932
+ readonly id?: string
1933
+ readonly subject?: {
1934
+ readonly value?: string
1935
+ readonly creation_time?: string
1936
+ }
1937
+ }
1938
+ readonly sub_groups?: {
1939
+ readonly edges?: ReadonlyArray<{
1940
+ readonly node?: {
1941
+ readonly id?: string
1942
+ readonly subject?: {
1943
+ readonly value?: string
1944
+ readonly creation_time?: string
1945
+ }
1946
+ readonly properties?: {
1947
+ readonly general_chat?: boolean
1948
+ readonly membership_approval_mode_enabled?: boolean
1949
+ readonly hidden_group?: boolean
1950
+ }
1951
+ readonly membership_approval_requests?: {
1952
+ readonly total_count?: number
1953
+ }
1954
+ }
1955
+ }>
1956
+ }
1957
+ }
1958
+ }
1959
+
1960
+ export type WaMexFetchBotProfilesGQLResponse = {
1961
+ readonly xfb_fetch_genai_personas?: ReadonlyArray<{
1962
+ readonly __typename?: string
1963
+ readonly id?: string
1964
+ readonly jid?: string
1965
+ readonly is_meta_created?: boolean
1966
+ readonly creator?: {
1967
+ readonly name?: string
1968
+ readonly profile_uri?: string
1969
+ }
1970
+ readonly latest_published_version_for_viewer?: {
1971
+ readonly __typename?: string
1972
+ readonly name?: string
1973
+ readonly description?: string
1974
+ readonly icebreaker_prompt_list?: ReadonlyArray<string>
1975
+ readonly posing_as_professional?: boolean
1976
+ readonly id?: string
1977
+ }
1978
+ }>
1979
+ }
1980
+
1981
+ export type WaMexFetchDynamicAIModesResponse = {
1982
+ readonly xfb_meta_ai_modes?: ReadonlyArray<{
1983
+ readonly mode_id?: string
1984
+ readonly type?: string
1985
+ readonly is_experimental?: boolean
1986
+ readonly title?: string
1987
+ readonly subtitle?: string
1988
+ }>
1989
+ }
1990
+
1991
+ export type WaMexFetchGroupInfoResponse = {
1992
+ readonly xwa2_group_query_by_id?: {
1993
+ readonly __typename?: string
1994
+ readonly id?: string
1995
+ readonly creation_time?: string
1996
+ readonly creator?: {
1997
+ readonly id?: string
1998
+ readonly lid?: string
1999
+ readonly pn?: string
2000
+ readonly username_info?: {
2001
+ readonly __typename?: string
2002
+ readonly username?: string
2003
+ }
2004
+ }
2005
+ readonly state?: 'ACTIVE' | 'NON_EXISTENT' | 'SUSPENDED'
2006
+ readonly subject?: {
2007
+ readonly creator?: {
2008
+ readonly id?: string
2009
+ readonly lid?: string
2010
+ readonly pn?: string
2011
+ readonly username_info?: {
2012
+ readonly __typename?: string
2013
+ readonly username?: string
2014
+ }
2015
+ }
2016
+ readonly creation_time?: string
2017
+ readonly value?: string
2018
+ }
2019
+ readonly description?: {
2020
+ readonly id?: string
2021
+ readonly creation_time?: string
2022
+ readonly creator?: {
2023
+ readonly id?: string
2024
+ readonly lid?: string
2025
+ readonly pn?: string
2026
+ readonly username_info?: {
2027
+ readonly __typename?: string
2028
+ readonly username?: string
2029
+ }
2030
+ }
2031
+ readonly value?: string
2032
+ }
2033
+ readonly participants?: {
2034
+ readonly edges?: ReadonlyArray<{
2035
+ readonly node?: {
2036
+ readonly id?: string
2037
+ readonly lid?: string
2038
+ readonly pn?: string
2039
+ readonly display_name?: string
2040
+ readonly username_info?: {
2041
+ readonly __typename?: string
2042
+ readonly username?: string
2043
+ }
2044
+ }
2045
+ readonly role?: 'ADMIN_MEMBER' | 'MEMBER' | 'SUPERADMIN_MEMBER'
2046
+ }>
2047
+ readonly participants_phash_match?: boolean
2048
+ }
2049
+ readonly total_participants_count?: number
2050
+ readonly missing_participant_identification?: boolean
2051
+ readonly properties?: {
2052
+ readonly allow_non_admin_sub_group_creation?: boolean
2053
+ readonly closed_by_membership_approval_mode?: boolean
2054
+ readonly appeal_status?: string
2055
+ readonly appeal_update_time?: string
2056
+ readonly limit_sharing?: {
2057
+ readonly limit_sharing_enabled?: boolean
2058
+ }
2059
+ readonly lid_migration_state?: {
2060
+ readonly addressing_mode?: 'LID'
2061
+ }
2062
+ readonly ephemeral?: {
2063
+ readonly expiration_time_in_sec?: number
2064
+ }
2065
+ readonly growth_locked2?: {
2066
+ readonly locked?: boolean
2067
+ }
2068
+ readonly member_add_mode?: 'ADMIN_ADD' | 'ALL_MEMBER_ADD'
2069
+ readonly parent_group_jid?: string
2070
+ readonly group_safety_check?: boolean
2071
+ readonly announcement?: boolean
2072
+ readonly locked?: boolean
2073
+ readonly member_link_mode?: 'ADMIN_LINK' | 'ALL_MEMBER_LINK'
2074
+ readonly member_share_group_history_mode?: 'ALL_MEMBER_SHARE'
2075
+ readonly membership_approval_mode_enabled?: boolean
2076
+ readonly general_chat?: boolean
2077
+ readonly auto_add_disabled?: boolean
2078
+ readonly hidden_group?: boolean
2079
+ readonly capi?: boolean
2080
+ readonly support?: boolean
2081
+ }
2082
+ readonly membership_approval_request?: boolean
2083
+ }
2084
+ }
2085
+
2086
+ export type WaMexFetchGroupInfoIncludBotsResponse = {
2087
+ readonly xwa2_group_query_by_id?: {
2088
+ readonly __typename?: string
2089
+ readonly id?: string
2090
+ readonly creation_time?: string
2091
+ readonly creator?: {
2092
+ readonly id?: string
2093
+ readonly lid?: string
2094
+ readonly pn?: string
2095
+ readonly username_info?: {
2096
+ readonly __typename?: string
2097
+ readonly username?: string
2098
+ }
2099
+ }
2100
+ readonly state?: 'ACTIVE' | 'NON_EXISTENT' | 'SUSPENDED'
2101
+ readonly subject?: {
2102
+ readonly creator?: {
2103
+ readonly id?: string
2104
+ readonly lid?: string
2105
+ readonly pn?: string
2106
+ readonly username_info?: {
2107
+ readonly __typename?: string
2108
+ readonly username?: string
2109
+ }
2110
+ }
2111
+ readonly creation_time?: string
2112
+ readonly value?: string
2113
+ }
2114
+ readonly description?: {
2115
+ readonly id?: string
2116
+ readonly creation_time?: string
2117
+ readonly creator?: {
2118
+ readonly id?: string
2119
+ readonly lid?: string
2120
+ readonly pn?: string
2121
+ readonly username_info?: {
2122
+ readonly __typename?: string
2123
+ readonly username?: string
2124
+ }
2125
+ }
2126
+ readonly value?: string
2127
+ }
2128
+ readonly participants?: {
2129
+ readonly edges?: ReadonlyArray<{
2130
+ readonly participant?: {
2131
+ readonly __typename?: string
2132
+ readonly id?: string
2133
+ readonly lid?: string
2134
+ readonly pn?: string
2135
+ readonly display_name?: string
2136
+ readonly username_info?: {
2137
+ readonly __typename?: string
2138
+ readonly username?: string
2139
+ }
2140
+ readonly jid?: string
2141
+ }
2142
+ readonly role?: 'ADMIN_MEMBER' | 'MEMBER' | 'SUPERADMIN_MEMBER'
2143
+ }>
2144
+ readonly participants_phash_match?: boolean
2145
+ }
2146
+ readonly total_participants_count?: number
2147
+ readonly missing_participant_identification?: boolean
2148
+ readonly properties?: {
2149
+ readonly allow_non_admin_sub_group_creation?: boolean
2150
+ readonly closed_by_membership_approval_mode?: boolean
2151
+ readonly appeal_status?: string
2152
+ readonly appeal_update_time?: string
2153
+ readonly limit_sharing?: {
2154
+ readonly limit_sharing_enabled?: boolean
2155
+ }
2156
+ readonly lid_migration_state?: {
2157
+ readonly addressing_mode?: 'LID'
2158
+ }
2159
+ readonly allow_admin_reports?: boolean
2160
+ readonly announcement?: boolean
2161
+ readonly ephemeral?: {
2162
+ readonly expiration_time_in_sec?: number
2163
+ }
2164
+ readonly growth_locked2?: {
2165
+ readonly locked?: boolean
2166
+ }
2167
+ readonly locked?: boolean
2168
+ readonly member_add_mode?: 'ADMIN_ADD' | 'ALL_MEMBER_ADD'
2169
+ readonly member_link_mode?: 'ADMIN_LINK' | 'ALL_MEMBER_LINK'
2170
+ readonly member_share_group_history_mode?: 'ALL_MEMBER_SHARE'
2171
+ readonly membership_approval_mode_enabled?: boolean
2172
+ readonly parent_group_jid?: string
2173
+ readonly general_chat?: boolean
2174
+ readonly auto_add_disabled?: boolean
2175
+ readonly hidden_group?: boolean
2176
+ readonly group_safety_check?: boolean
2177
+ readonly capi?: boolean
2178
+ readonly support?: boolean
2179
+ }
2180
+ readonly membership_approval_request?: boolean
2181
+ }
2182
+ }
2183
+
2184
+ export type WaMexFetchGroupInviteCodeResponse = {
2185
+ readonly xwa2_group_query_by_id?: {
2186
+ readonly __typename?: string
2187
+ readonly invite_code?: string
2188
+ readonly id?: string
2189
+ }
2190
+ }
2191
+
2192
+ export type WaMexFetchGroupIsInternalResponse = {
2193
+ readonly xwa2_group_query_by_id?: {
2194
+ readonly __typename?: string
2195
+ readonly properties?: {
2196
+ readonly internal?: boolean
2197
+ }
2198
+ readonly id?: string
2199
+ }
2200
+ }
2201
+
2202
+ export type WaMexFetchIntegritySignalsResponse = {
2203
+ readonly xwa2_fetch_wa_users?: ReadonlyArray<{
2204
+ readonly __typename?: string
2205
+ readonly integrity_signals_info?: {
2206
+ readonly __typename?: string
2207
+ readonly is_suspicious_start_chat?: boolean
2208
+ readonly is_new_account?: boolean
2209
+ }
2210
+ readonly id?: string
2211
+ }>
2212
+ }
2213
+
2214
+ export type WaMexFetchNativeAdsMvpEligibilityResponse = {
2215
+ readonly wa_smb_native_ads_web_info?: {
2216
+ readonly lifetime_native_ctwa_advertiser?: boolean
2217
+ readonly webclient_l90_ad_creator?: boolean
2218
+ readonly is_page_asset_linked?: boolean
2219
+ readonly is_pageless_asset_linked?: boolean
2220
+ }
2221
+ }
2222
+
2223
+ export type WaMexFetchNewChatMessageCappingInfoResponse = {
2224
+ readonly xwa2_message_capping_info?: {
2225
+ readonly total_quota?: string
2226
+ readonly used_quota?: string
2227
+ readonly cycle_start_timestamp?: string
2228
+ readonly cycle_end_timestamp?: string
2229
+ readonly server_sent_timestamp?: string
2230
+ readonly ote_status?: string
2231
+ readonly mv_status?: string
2232
+ readonly capping_status?: string
2233
+ }
2234
+ }
2235
+
2236
+ export type WaMexFetchNewsletterResponse = {
2237
+ readonly xwa2_newsletter?: {
2238
+ readonly id?: string
2239
+ readonly state?: {
2240
+ readonly type?: 'ACTIVE' | 'DELETED' | 'GEOSUSPENDED' | 'NON_EXISTING' | 'SUSPENDED'
2241
+ }
2242
+ readonly thread_metadata?: {
2243
+ readonly creation_time?: string
2244
+ readonly name?: {
2245
+ readonly id?: string
2246
+ readonly text?: string
2247
+ readonly update_time?: string
2248
+ }
2249
+ readonly picture?: {
2250
+ readonly id?: string
2251
+ readonly type?: 'IMAGE' | 'PREVIEW'
2252
+ readonly direct_path?: string
2253
+ }
2254
+ readonly preview?: {
2255
+ readonly id?: string
2256
+ readonly type?: 'PREVIEW'
2257
+ readonly direct_path?: string
2258
+ }
2259
+ readonly description?: {
2260
+ readonly id?: string
2261
+ readonly text?: string
2262
+ readonly update_time?: string
2263
+ }
2264
+ readonly invite?: string
2265
+ readonly handle?: string
2266
+ readonly subscribers_count?: string
2267
+ readonly verification?: 'UNVERIFIED' | 'VERIFIED'
2268
+ readonly settings?: {
2269
+ readonly reaction_codes?: {
2270
+ readonly value?: 'ALL'
2271
+ }
2272
+ }
2273
+ readonly wamo_sub?: {
2274
+ readonly plan_id?: string
2275
+ }
2276
+ }
2277
+ readonly viewer_metadata?: {
2278
+ readonly settings?: ReadonlyArray<{
2279
+ readonly type?: 'MUTE_ADMIN_ACTIVITY' | 'MUTE_FOLLOWER_ACTIVITY'
2280
+ readonly value?: 'OFF' | 'ON'
2281
+ }>
2282
+ readonly role?: 'ADMIN' | 'GUEST' | 'OWNER' | 'SUBSCRIBER'
2283
+ readonly wamo_sub_status?: 'ACTIVE' | 'INACTIVE'
2284
+ }
2285
+ readonly status_metadata?: {
2286
+ readonly last_status_server_id?: string
2287
+ readonly last_status_sent_time?: string
2288
+ }
2289
+ }
2290
+ }
2291
+
2292
+ export type WaMexFetchNewsletterAdminCapabilitiesResponse = {
2293
+ readonly xwa2_newsletter_admin?: {
2294
+ readonly capabilities?: ReadonlyArray<'ADMIN_CONTEXT_CARD_1' | 'ADMIN_CONTEXT_CARD_2' | 'ADMIN_CONTEXT_CARD_3' | 'ADMIN_NOTIFICATIONS' | 'ADMIN_ONBOARDING' | 'ADMIN_ONBOARDING_2' | 'ADMIN_PROFILE' | 'CHANNEL_STATUS_PRODUCER' | 'INSIGHTS' | 'INVITE_ADMINS_BUTTON' | 'INVITE_FOLLOWERS' | 'JARVIS_INTEGRATION_ENABLED' | 'MUSIC' | 'NEW_MESSAGE_TYPES_TOOLTIP' | 'PHOTO_POLLS' | 'PINNING_NUDGE' | 'QUESTIONS' | 'QUESTIONS_M2' | 'QUIZ' | 'SHARE_STICKER_PACKS' | 'THREAD_MENU'>
2295
+ readonly id?: string
2296
+ }
2297
+ }
2298
+
2299
+ export type WaMexFetchNewsletterAdminInfoResponse = {
2300
+ readonly xwa2_newsletter_admin?: {
2301
+ readonly admin_count?: number
2302
+ readonly admin_profile?: {
2303
+ readonly id?: string
2304
+ readonly name?: string
2305
+ readonly picture?: {
2306
+ readonly id?: string
2307
+ readonly direct_path?: string
2308
+ }
2309
+ }
2310
+ readonly admin_settings?: {
2311
+ readonly admin_profiles_enabled?: boolean
2312
+ }
2313
+ readonly id?: string
2314
+ }
2315
+ }
2316
+
2317
+ export type WaMexFetchNewsletterDehydratedResponse = {
2318
+ readonly xwa2_newsletter?: {
2319
+ readonly id?: string
2320
+ readonly thread_metadata?: {
2321
+ readonly subscribers_count?: string
2322
+ readonly verification?: 'UNVERIFIED' | 'VERIFIED'
2323
+ readonly settings?: {
2324
+ readonly reaction_codes?: {
2325
+ readonly value?: 'ALL'
2326
+ }
2327
+ }
2328
+ readonly wamo_sub?: {
2329
+ readonly plan_id?: string
2330
+ }
2331
+ }
2332
+ readonly viewer_metadata?: {
2333
+ readonly wamo_sub_status?: 'ACTIVE' | 'INACTIVE'
2334
+ }
2335
+ }
2336
+ }
2337
+
2338
+ export type WaMexFetchNewsletterDirectoryCategoriesPreviewResponse = {
2339
+ readonly xwa2_newsletters_directory_category_preview?: {
2340
+ readonly result?: ReadonlyArray<{
2341
+ readonly category?: string
2342
+ readonly category_title?: string
2343
+ readonly newsletters?: ReadonlyArray<{
2344
+ readonly id?: string
2345
+ readonly thread_metadata?: {
2346
+ readonly creation_time?: string
2347
+ readonly invite?: string
2348
+ readonly handle?: string
2349
+ readonly subscribers_count?: string
2350
+ readonly name?: {
2351
+ readonly id?: string
2352
+ readonly text?: string
2353
+ readonly update_time?: string
2354
+ }
2355
+ readonly description?: {
2356
+ readonly id?: string
2357
+ readonly text?: string
2358
+ readonly update_time?: string
2359
+ }
2360
+ readonly picture?: {
2361
+ readonly id?: string
2362
+ readonly direct_path?: string
2363
+ readonly type?: 'IMAGE' | 'PREVIEW'
2364
+ }
2365
+ readonly verification?: 'UNVERIFIED' | 'VERIFIED'
2366
+ }
2367
+ readonly status_metadata?: {
2368
+ readonly last_status_server_id?: string
2369
+ readonly last_status_sent_time?: string
2370
+ }
2371
+ }>
2372
+ }>
2373
+ }
2374
+ }
2375
+
2376
+ export type WaMexFetchNewsletterDirectoryListResponse = {
2377
+ readonly xwa2_newsletters_directory_list?: {
2378
+ readonly page_info?: {
2379
+ readonly hasNextPage?: boolean
2380
+ readonly hasPreviousPage?: boolean
2381
+ readonly startCursor?: string
2382
+ readonly endCursor?: string
2383
+ }
2384
+ readonly result?: ReadonlyArray<{
2385
+ readonly id?: string
2386
+ readonly thread_metadata?: {
2387
+ readonly creation_time?: string
2388
+ readonly invite?: string
2389
+ readonly handle?: string
2390
+ readonly subscribers_count?: string
2391
+ readonly name?: {
2392
+ readonly id?: string
2393
+ readonly text?: string
2394
+ readonly update_time?: string
2395
+ }
2396
+ readonly description?: {
2397
+ readonly id?: string
2398
+ readonly text?: string
2399
+ readonly update_time?: string
2400
+ }
2401
+ readonly picture?: {
2402
+ readonly id?: string
2403
+ readonly direct_path?: string
2404
+ readonly type?: 'IMAGE' | 'PREVIEW'
2405
+ }
2406
+ readonly verification?: 'UNVERIFIED' | 'VERIFIED'
2407
+ }
2408
+ readonly status_metadata?: {
2409
+ readonly last_status_server_id?: string
2410
+ readonly last_status_sent_time?: string
2411
+ }
2412
+ }>
2413
+ }
2414
+ }
2415
+
2416
+ export type WaMexFetchNewsletterDirectorySearchResultsResponse = {
2417
+ readonly xwa2_newsletters_directory_search?: {
2418
+ readonly page_info?: {
2419
+ readonly hasNextPage?: boolean
2420
+ readonly hasPreviousPage?: boolean
2421
+ readonly startCursor?: string
2422
+ readonly endCursor?: string
2423
+ }
2424
+ readonly result?: ReadonlyArray<{
2425
+ readonly id?: string
2426
+ readonly thread_metadata?: {
2427
+ readonly creation_time?: string
2428
+ readonly invite?: string
2429
+ readonly handle?: string
2430
+ readonly subscribers_count?: string
2431
+ readonly name?: {
2432
+ readonly id?: string
2433
+ readonly text?: string
2434
+ readonly update_time?: string
2435
+ }
2436
+ readonly description?: {
2437
+ readonly id?: string
2438
+ readonly text?: string
2439
+ readonly update_time?: string
2440
+ }
2441
+ readonly picture?: {
2442
+ readonly id?: string
2443
+ readonly direct_path?: string
2444
+ readonly type?: 'IMAGE' | 'PREVIEW'
2445
+ }
2446
+ readonly verification?: 'UNVERIFIED' | 'VERIFIED'
2447
+ }
2448
+ readonly status_metadata?: {
2449
+ readonly last_status_server_id?: string
2450
+ readonly last_status_sent_time?: string
2451
+ }
2452
+ }>
2453
+ }
2454
+ }
2455
+
2456
+ export type WaMexFetchNewsletterEnforcementsResponse = {
2457
+ readonly xwa2_channel_enforcements?: {
2458
+ readonly profile_picture_deletions?: ReadonlyArray<{
2459
+ readonly enforcement_creation_time?: string
2460
+ readonly appeal_creation_time?: string
2461
+ readonly appeal_state?: string
2462
+ readonly enforcement_violation_category?: string
2463
+ readonly enforcement_source?: string
2464
+ readonly enforcement_id?: string
2465
+ readonly enforcement_extra_data?: {
2466
+ readonly ip_violation_report_data?: {
2467
+ readonly report_fbid?: string
2468
+ readonly appeal_form_url?: string
2469
+ readonly reporter_email?: string
2470
+ readonly reporter_name?: string
2471
+ }
2472
+ }
2473
+ readonly enforcement_policy_information?: {
2474
+ readonly overview?: string
2475
+ readonly headline?: string
2476
+ readonly subtitle?: string
2477
+ readonly explanation?: string
2478
+ readonly admin_disclaimer?: string
2479
+ }
2480
+ }>
2481
+ readonly suspensions?: ReadonlyArray<{
2482
+ readonly appeal_creation_time?: string
2483
+ readonly enforcement_creation_time?: string
2484
+ readonly appeal_state?: string
2485
+ readonly enforcement_violation_category?: string
2486
+ readonly enforcement_id?: string
2487
+ readonly enforcement_source?: string
2488
+ readonly enforcement_extra_data?: {
2489
+ readonly ip_violation_report_data?: {
2490
+ readonly report_fbid?: string
2491
+ readonly appeal_form_url?: string
2492
+ readonly reporter_email?: string
2493
+ readonly reporter_name?: string
2494
+ }
2495
+ readonly enforcement_target_data?: {
2496
+ readonly __typename?: string
2497
+ readonly server_msg_id?: string
2498
+ readonly server_id?: string
2499
+ readonly id?: string
2500
+ }
2501
+ readonly appeal_extra_data?: {
2502
+ readonly appeal_form_url?: string
2503
+ }
2504
+ }
2505
+ readonly enforcement_policy_information?: {
2506
+ readonly overview?: string
2507
+ readonly headline?: string
2508
+ readonly subtitle?: string
2509
+ readonly explanation?: string
2510
+ readonly admin_disclaimer?: string
2511
+ }
2512
+ }>
2513
+ readonly violating_messages?: ReadonlyArray<{
2514
+ readonly base_enforcement_data?: {
2515
+ readonly enforcement_creation_time?: string
2516
+ readonly appeal_creation_time?: string
2517
+ readonly appeal_state?: string
2518
+ readonly enforcement_id?: string
2519
+ readonly enforcement_violation_category?: string
2520
+ readonly enforcement_source?: string
2521
+ readonly enforcement_extra_data?: {
2522
+ readonly ip_violation_report_data?: {
2523
+ readonly report_fbid?: string
2524
+ readonly appeal_form_url?: string
2525
+ readonly reporter_email?: string
2526
+ readonly reporter_name?: string
2527
+ }
2528
+ }
2529
+ readonly enforcement_policy_information?: {
2530
+ readonly overview?: string
2531
+ readonly headline?: string
2532
+ readonly subtitle?: string
2533
+ readonly explanation?: string
2534
+ readonly admin_disclaimer?: string
2535
+ }
2536
+ }
2537
+ readonly content_data?: {
2538
+ readonly __typename?: string
2539
+ readonly server_msg_id?: string
2540
+ readonly server_id?: string
2541
+ }
2542
+ }>
2543
+ readonly geosuspensions?: ReadonlyArray<{
2544
+ readonly base_enforcement_data?: {
2545
+ readonly enforcement_creation_time?: string
2546
+ readonly appeal_creation_time?: string
2547
+ readonly appeal_state?: string
2548
+ readonly enforcement_id?: string
2549
+ readonly enforcement_violation_category?: string
2550
+ readonly enforcement_source?: string
2551
+ readonly enforcement_extra_data?: {
2552
+ readonly ip_violation_report_data?: {
2553
+ readonly report_fbid?: string
2554
+ readonly appeal_form_url?: string
2555
+ readonly reporter_email?: string
2556
+ readonly reporter_name?: string
2557
+ }
2558
+ readonly enforcement_target_data?: {
2559
+ readonly __typename?: string
2560
+ readonly server_msg_id?: string
2561
+ readonly server_id?: string
2562
+ readonly id?: string
2563
+ }
2564
+ readonly appeal_extra_data?: {
2565
+ readonly appeal_form_url?: string
2566
+ }
2567
+ readonly enforcing_entity_data?: {
2568
+ readonly name?: string
2569
+ }
2570
+ readonly enforcement_origin_workflow?: string
2571
+ readonly enforcement_origin_legal_basis?: string
2572
+ }
2573
+ readonly enforcement_policy_information?: {
2574
+ readonly overview?: string
2575
+ readonly headline?: string
2576
+ readonly subtitle?: string
2577
+ readonly explanation?: string
2578
+ readonly admin_disclaimer?: string
2579
+ }
2580
+ }
2581
+ readonly country_codes?: ReadonlyArray<string>
2582
+ }>
2583
+ }
2584
+ }
2585
+
2586
+ export type WaMexFetchNewsletterFollowersResponse = {
2587
+ readonly xwa2_newsletter_followers?: {
2588
+ readonly followers?: {
2589
+ readonly edges?: ReadonlyArray<{
2590
+ readonly node?: {
2591
+ readonly id?: string
2592
+ readonly display_name?: string
2593
+ readonly pn?: string
2594
+ readonly username_info?: {
2595
+ readonly __typename?: string
2596
+ readonly username?: string
2597
+ }
2598
+ }
2599
+ readonly follow_time?: string
2600
+ readonly role?: 'ADMIN' | 'GUEST' | 'OWNER' | 'SUBSCRIBER'
2601
+ readonly admin_profile?: {
2602
+ readonly id?: string
2603
+ readonly name?: string
2604
+ readonly picture?: {
2605
+ readonly direct_path?: string
2606
+ readonly id?: string
2607
+ }
2608
+ }
2609
+ }>
2610
+ }
2611
+ }
2612
+ }
2613
+
2614
+ export type WaMexFetchNewsletterInsightsResponse = {
2615
+ readonly xwa2_newsletter_admin_insights?: {
2616
+ readonly newsletter_id?: string
2617
+ readonly state?: {
2618
+ readonly type?: 'ACTIVE' | 'DELETED' | 'GEOSUSPENDED' | 'NON_EXISTING' | 'SUSPENDED'
2619
+ }
2620
+ readonly last_update_time?: string
2621
+ readonly metrics_status?: string
2622
+ readonly result?: ReadonlyArray<{
2623
+ readonly id?: string
2624
+ readonly values?: ReadonlyArray<{
2625
+ readonly value?: string
2626
+ readonly country?: string
2627
+ readonly role?: 'ADMIN' | 'GUEST' | 'OWNER' | 'SUBSCRIBER'
2628
+ readonly timestamp?: string
2629
+ }>
2630
+ }>
2631
+ }
2632
+ }
2633
+
2634
+ export type WaMexFetchNewsletterIsDomainPreviewableResponse = {
2635
+ readonly xwa2_newsletter_message_integrity?: {
2636
+ readonly url_previews?: ReadonlyArray<{
2637
+ readonly url_domain?: string
2638
+ readonly is_previewable?: boolean
2639
+ }>
2640
+ }
2641
+ }
2642
+
2643
+ export type WaMexFetchNewsletterMessageReactionSenderListResponse = {
2644
+ readonly xwa2_newsletters_reaction_sender_list?: {
2645
+ readonly reactions?: ReadonlyArray<{
2646
+ readonly reaction_code?: string
2647
+ readonly sender_list?: {
2648
+ readonly edges?: ReadonlyArray<{
2649
+ readonly node?: {
2650
+ readonly id?: string
2651
+ readonly profile_pic_direct_path?: string
2652
+ }
2653
+ }>
2654
+ }
2655
+ }>
2656
+ }
2657
+ }
2658
+
2659
+ export type WaMexFetchNewsletterPendingInvitesResponse = {
2660
+ readonly xwa2_newsletter_admin?: {
2661
+ readonly pending_admin_invites?: ReadonlyArray<{
2662
+ readonly user?: {
2663
+ readonly pn?: string
2664
+ readonly id?: string
2665
+ }
2666
+ }>
2667
+ readonly id?: string
2668
+ }
2669
+ }
2670
+
2671
+ export type WaMexFetchNewsletterPollVotersResponse = {
2672
+ readonly voter_list?: {
2673
+ readonly votes?: ReadonlyArray<{
2674
+ readonly vote_hash?: string
2675
+ readonly voter_list?: {
2676
+ readonly edges?: ReadonlyArray<{
2677
+ readonly action_time?: string
2678
+ readonly node?: {
2679
+ readonly id?: string
2680
+ }
2681
+ }>
2682
+ }
2683
+ }>
2684
+ }
2685
+ }
2686
+
2687
+ export type WaMexFetchNewsletterReportsResponse = {
2688
+ readonly xwa2_channels_reports?: {
2689
+ readonly channels_reports?: ReadonlyArray<{
2690
+ readonly report_id?: string
2691
+ readonly status?: string
2692
+ readonly creation_time?: string
2693
+ readonly last_update_time?: string
2694
+ readonly channel_name?: string
2695
+ readonly channel_jid?: string
2696
+ readonly reported_content_data?: {
2697
+ readonly __typename?: string
2698
+ readonly server_msg_id?: string
2699
+ readonly server_id?: string
2700
+ readonly server_response_id?: string
2701
+ readonly notify_name?: string
2702
+ readonly question_data?: {
2703
+ readonly __typename?: string
2704
+ readonly server_msg_id?: string
2705
+ }
2706
+ }
2707
+ readonly appeal?: {
2708
+ readonly state?: 'CONTENT_UNAVAILABLE' | 'NON_APPEALABLE' | 'NOT_APPEALED' | 'PENDING' | 'REJECT' | 'SUCCESS'
2709
+ readonly appeal_reason?: string
2710
+ readonly creation_time?: string
2711
+ readonly report_id?: string
2712
+ readonly appeal_id?: string
2713
+ }
2714
+ }>
2715
+ }
2716
+ }
2717
+
2718
+ export type WaMexFetchOHAIKeyConfigResponse = {
2719
+ readonly xwa2_ohai_configurations?: {
2720
+ readonly ohai_configs?: ReadonlyArray<{
2721
+ readonly aead_id?: number
2722
+ readonly expiration_date?: string
2723
+ readonly kdf_id?: number
2724
+ readonly kem_id?: number
2725
+ readonly key_id?: number
2726
+ readonly last_updated_time?: string
2727
+ readonly public_key?: string
2728
+ }>
2729
+ }
2730
+ }
2731
+
2732
+ export type WaMexFetchOIDCStateResponse = {
2733
+ readonly xfb_wa_biz_get_oidc_state?: string
2734
+ }
2735
+
2736
+ export type WaMexFetchPlaintextLinkPreviewResponse = {
2737
+ readonly xwa2_newsletter_link_preview?: {
2738
+ readonly description?: string
2739
+ readonly direct_path?: string
2740
+ readonly hash?: string
2741
+ readonly preview_type?: 'IMAGE'
2742
+ readonly thumb_data?: string
2743
+ readonly title?: string
2744
+ readonly height?: number
2745
+ readonly width?: number
2746
+ }
2747
+ }
2748
+
2749
+ export type WaMexFetchQuickPromotionsResponse = {
2750
+ readonly quick_promotion_batch_fetch_root?: ReadonlyArray<{
2751
+ readonly surface_nux_id?: string
2752
+ readonly eligible_promotions?: {
2753
+ readonly edges?: ReadonlyArray<{
2754
+ readonly client_ttl_seconds?: number
2755
+ readonly priority?: number
2756
+ readonly is_holdout?: boolean
2757
+ readonly log_eligibility_waterfall?: string
2758
+ readonly time_range?: {
2759
+ readonly start?: string
2760
+ readonly end?: string
2761
+ }
2762
+ readonly node?: {
2763
+ readonly promotion_id?: string
2764
+ readonly is_server_force_pass?: boolean
2765
+ readonly ab_prop_name?: string
2766
+ readonly surface_delay_in_seconds?: number
2767
+ readonly encrypted_logging_data?: string
2768
+ readonly client_side_dry_run?: boolean
2769
+ readonly creatives?: ReadonlyArray<{
2770
+ readonly title?: {
2771
+ readonly text?: string
2772
+ }
2773
+ readonly content?: {
2774
+ readonly text?: string
2775
+ }
2776
+ readonly primary_action?: {
2777
+ readonly title?: {
2778
+ readonly text?: string
2779
+ }
2780
+ readonly url?: string
2781
+ }
2782
+ readonly wa_light_mode_media_details?: {
2783
+ readonly jpeg_thumbnail?: string
2784
+ }
2785
+ readonly wa_dark_mode_media_details?: {
2786
+ readonly jpeg_thumbnail?: string
2787
+ }
2788
+ readonly accessibility_text_for_image?: string
2789
+ readonly is_dismissible?: boolean
2790
+ readonly id?: string
2791
+ }>
2792
+ readonly content_attributes?: {
2793
+ readonly wa_banner_background_color?: {
2794
+ readonly light_mode_highlight_color?: string
2795
+ readonly dark_mode_highlight_color?: string
2796
+ readonly light_mode_background_color?: string
2797
+ readonly dark_mode_background_color?: string
2798
+ }
2799
+ readonly wa_primary_cta_alternative_url?: string
2800
+ readonly wa_eligible_duration_after_impression_in_seconds?: number
2801
+ }
2802
+ readonly wa_qp_content_attributes_do_not_use?: ReadonlyArray<{
2803
+ readonly name?: string
2804
+ readonly value?: string
2805
+ }>
2806
+ readonly contextual_filters_for_wa_do_not_use?: {
2807
+ readonly clause_type?: string
2808
+ readonly filters?: ReadonlyArray<{
2809
+ readonly filter_name?: string
2810
+ readonly parameters?: ReadonlyArray<{
2811
+ readonly key?: string
2812
+ readonly value?: string
2813
+ }>
2814
+ readonly passes_if_client_not_supported?: boolean
2815
+ readonly filter_result?: string
2816
+ }>
2817
+ readonly clauses?: ReadonlyArray<{
2818
+ readonly clause_type?: string
2819
+ readonly filters?: ReadonlyArray<{
2820
+ readonly filter_name?: string
2821
+ readonly parameters?: ReadonlyArray<{
2822
+ readonly key?: string
2823
+ readonly value?: string
2824
+ }>
2825
+ readonly passes_if_client_not_supported?: boolean
2826
+ readonly filter_result?: string
2827
+ }>
2828
+ readonly clauses?: ReadonlyArray<{
2829
+ readonly clause_type?: string
2830
+ readonly filters?: ReadonlyArray<{
2831
+ readonly filter_name?: string
2832
+ readonly parameters?: ReadonlyArray<{
2833
+ readonly key?: string
2834
+ readonly value?: string
2835
+ }>
2836
+ readonly passes_if_client_not_supported?: boolean
2837
+ readonly filter_result?: string
2838
+ }>
2839
+ readonly clauses?: ReadonlyArray<{
2840
+ readonly clause_type?: string
2841
+ readonly filters?: ReadonlyArray<{
2842
+ readonly filter_name?: string
2843
+ readonly parameters?: ReadonlyArray<{
2844
+ readonly key?: string
2845
+ readonly value?: string
2846
+ }>
2847
+ readonly passes_if_client_not_supported?: boolean
2848
+ readonly filter_result?: string
2849
+ }>
2850
+ readonly clauses?: ReadonlyArray<{
2851
+ readonly clause_type?: string
2852
+ readonly filters?: ReadonlyArray<{
2853
+ readonly filter_name?: string
2854
+ readonly parameters?: ReadonlyArray<{
2855
+ readonly key?: string
2856
+ readonly value?: string
2857
+ }>
2858
+ readonly passes_if_client_not_supported?: boolean
2859
+ readonly filter_result?: string
2860
+ }>
2861
+ readonly clauses?: ReadonlyArray<{
2862
+ readonly clause_type?: string
2863
+ readonly filters?: ReadonlyArray<{
2864
+ readonly filter_name?: string
2865
+ readonly parameters?: ReadonlyArray<{
2866
+ readonly key?: string
2867
+ readonly value?: string
2868
+ }>
2869
+ readonly passes_if_client_not_supported?: boolean
2870
+ readonly filter_result?: string
2871
+ }>
2872
+ readonly clauses?: ReadonlyArray<{
2873
+ readonly clause_type?: string
2874
+ readonly filters?: ReadonlyArray<{
2875
+ readonly filter_name?: string
2876
+ readonly parameters?: ReadonlyArray<{
2877
+ readonly key?: string
2878
+ readonly value?: string
2879
+ }>
2880
+ readonly passes_if_client_not_supported?: boolean
2881
+ readonly filter_result?: string
2882
+ }>
2883
+ readonly clauses?: ReadonlyArray<{
2884
+ readonly clause_type?: string
2885
+ readonly filters?: ReadonlyArray<{
2886
+ readonly filter_name?: string
2887
+ readonly parameters?: ReadonlyArray<{
2888
+ readonly key?: string
2889
+ readonly value?: string
2890
+ }>
2891
+ readonly passes_if_client_not_supported?: boolean
2892
+ readonly filter_result?: string
2893
+ }>
2894
+ }>
2895
+ }>
2896
+ }>
2897
+ }>
2898
+ }>
2899
+ }>
2900
+ }>
2901
+ }
2902
+ readonly id?: string
2903
+ }
2904
+ }>
2905
+ }
2906
+ }>
2907
+ }
2908
+
2909
+ export type WaMexFetchReachoutTimelockResponse = {
2910
+ readonly xwa2_fetch_account_reachout_timelock?: {
2911
+ readonly is_active?: boolean
2912
+ readonly time_enforcement_ends?: string
2913
+ readonly enforcement_type?: 'GEOSUSPEND' | 'GEOSUSPEND_INFORM' | 'PROFILE_PICTURE_DELETION' | 'SUSPEND' | 'SUSPEND_INFORM' | 'VIOLATING_MSG'
2914
+ }
2915
+ }
2916
+
2917
+ export type WaMexFetchRecommendedNewslettersResponse = {
2918
+ readonly xwa2_newsletters_recommended?: {
2919
+ readonly page_info?: {
2920
+ readonly hasNextPage?: boolean
2921
+ readonly hasPreviousPage?: boolean
2922
+ readonly startCursor?: string
2923
+ readonly endCursor?: string
2924
+ }
2925
+ readonly result?: ReadonlyArray<{
2926
+ readonly id?: string
2927
+ readonly state?: {
2928
+ readonly type?: 'ACTIVE' | 'DELETED' | 'GEOSUSPENDED' | 'NON_EXISTING' | 'SUSPENDED'
2929
+ }
2930
+ readonly thread_metadata?: {
2931
+ readonly creation_time?: string
2932
+ readonly name?: {
2933
+ readonly id?: string
2934
+ readonly text?: string
2935
+ readonly update_time?: string
2936
+ }
2937
+ readonly description?: {
2938
+ readonly id?: string
2939
+ readonly text?: string
2940
+ readonly update_time?: string
2941
+ }
2942
+ readonly preview?: {
2943
+ readonly id?: string
2944
+ readonly type?: 'PREVIEW'
2945
+ readonly direct_path?: string
2946
+ }
2947
+ readonly invite?: string
2948
+ readonly handle?: string
2949
+ readonly verification?: 'UNVERIFIED' | 'VERIFIED'
2950
+ readonly subscribers_count?: string
2951
+ }
2952
+ readonly status_metadata?: {
2953
+ readonly last_status_server_id?: string
2954
+ readonly last_status_sent_time?: string
2955
+ }
2956
+ }>
2957
+ }
2958
+ }
2959
+
2960
+ export type WaMexFetchSimilarNewslettersResponse = {
2961
+ readonly xwa2_newsletters_similar?: {
2962
+ readonly result?: ReadonlyArray<{
2963
+ readonly id?: string
2964
+ readonly thread_metadata?: {
2965
+ readonly name?: {
2966
+ readonly id?: string
2967
+ readonly text?: string
2968
+ readonly update_time?: string
2969
+ }
2970
+ readonly picture?: {
2971
+ readonly id?: string
2972
+ readonly type?: 'IMAGE' | 'PREVIEW'
2973
+ readonly direct_path?: string
2974
+ }
2975
+ readonly verification?: 'UNVERIFIED' | 'VERIFIED'
2976
+ }
2977
+ readonly status_metadata?: {
2978
+ readonly last_status_server_id?: string
2979
+ }
2980
+ readonly state?: {
2981
+ readonly type?: 'ACTIVE' | 'DELETED' | 'GEOSUSPENDED' | 'NON_EXISTING' | 'SUSPENDED'
2982
+ }
2983
+ }>
2984
+ }
2985
+ }
2986
+
2987
+ export type WaMexFetchSubgroupSuggestionsResponse = {
2988
+ readonly xwa2_group_query_by_id?: {
2989
+ readonly __typename?: string
2990
+ readonly id?: string
2991
+ readonly sub_group_suggestions?: {
2992
+ readonly edges?: ReadonlyArray<{
2993
+ readonly node?: {
2994
+ readonly id?: string
2995
+ readonly subject?: {
2996
+ readonly value?: string
2997
+ }
2998
+ readonly description?: {
2999
+ readonly value?: string
3000
+ readonly id?: string
3001
+ }
3002
+ readonly creator?: {
3003
+ readonly id?: string
3004
+ }
3005
+ readonly creation_time?: string
3006
+ readonly total_participants_count?: number
3007
+ readonly is_existing_group?: boolean
3008
+ readonly hidden_group?: boolean
3009
+ }
3010
+ }>
3011
+ }
3012
+ }
3013
+ }
3014
+
3015
+ export type WaMexFetchSubscriptionEntryPointsResponse = {
3016
+ readonly waSubscriptionEntryPoints?: {
3017
+ readonly subscriptionEntryPoints?: ReadonlyArray<{
3018
+ readonly subscriptionType?: string
3019
+ readonly webEntryPointEligibility?: boolean
3020
+ readonly webEntryPointRedirectionUri?: string
3021
+ }>
3022
+ }
3023
+ }
3024
+
3025
+ export type WaMexFetchSubscriptionsResponse = {
3026
+ readonly xwa_get_subscriptions?: {
3027
+ readonly subscriptions?: ReadonlyArray<{
3028
+ readonly id?: string
3029
+ readonly status?: 'ACTIVE' | 'CANCELED'
3030
+ readonly end_time?: string
3031
+ readonly creation_time?: string
3032
+ readonly tier?: string
3033
+ readonly source?: string
3034
+ readonly is_platform_changed?: boolean
3035
+ readonly start_time?: string
3036
+ }>
3037
+ readonly feature_flags?: ReadonlyArray<{
3038
+ readonly name?: string
3039
+ readonly enabled?: boolean
3040
+ readonly expiration_time?: string
3041
+ readonly limit?: number
3042
+ }>
3043
+ }
3044
+ }
3045
+
3046
+ export type WaMexFetchTextStatusListResponse = {
3047
+ readonly xwa2_text_status_list?: ReadonlyArray<{
3048
+ readonly jid?: string
3049
+ readonly text?: string
3050
+ readonly last_update_time?: string
3051
+ readonly ephemeral_duration_sec?: number
3052
+ readonly emoji?: {
3053
+ readonly content?: string
3054
+ }
3055
+ }>
3056
+ }
3057
+
3058
+ export type WaMexGetAccessTokenFromOIDCCodeResponse = {
3059
+ readonly xfb_wa_biz_get_token_from_oidc_code?: {
3060
+ readonly access_token?: string
3061
+ readonly fb_user_id?: string
3062
+ }
3063
+ }
3064
+
3065
+ export type WaMexGetAccountNonceResponse = {
3066
+ readonly xfb_wa_biz_account_nonce?: {
3067
+ readonly detail?: {
3068
+ readonly nonce?: string
3069
+ readonly request?: {
3070
+ readonly id?: string
3071
+ }
3072
+ }
3073
+ }
3074
+ }
3075
+
3076
+ export type WaMexGetDsbInfoResponse = {
3077
+ readonly xwa2_get_dsb_info?: {
3078
+ readonly reference_number?: string
3079
+ }
3080
+ }
3081
+
3082
+ export type WaMexGetFBAccountPagesResponse = {
3083
+ readonly user?: {
3084
+ readonly facebook_pages?: {
3085
+ readonly nodes?: ReadonlyArray<{
3086
+ readonly name?: string
3087
+ readonly id?: string
3088
+ readonly profile_picture?: {
3089
+ readonly uri?: string
3090
+ }
3091
+ readonly permitted_tasks?: string
3092
+ }>
3093
+ }
3094
+ readonly id?: string
3095
+ }
3096
+ }
3097
+
3098
+ export type WaMexGetNumbersForBrandIdsResponse = {
3099
+ readonly xwa_get_numbers_for_brand_ids?: {
3100
+ readonly brand_ids_data?: ReadonlyArray<{
3101
+ readonly brand_id?: string
3102
+ readonly error?: boolean
3103
+ readonly phone_numbers?: ReadonlyArray<string>
3104
+ readonly lids?: ReadonlyArray<string>
3105
+ }>
3106
+ }
3107
+ }
3108
+
3109
+ export type WaMexGetPrivacyListsResponse = {
3110
+ readonly xwa2_fetch_wa_users?: ReadonlyArray<{
3111
+ readonly __typename?: string
3112
+ readonly privacy_contact_list?: {
3113
+ readonly dhash?: string
3114
+ readonly contacts?: ReadonlyArray<{
3115
+ readonly jid?: string
3116
+ readonly pn_jid?: string
3117
+ readonly username_info?: {
3118
+ readonly __typename?: string
3119
+ readonly username?: string
3120
+ }
3121
+ }>
3122
+ }
3123
+ readonly id?: string
3124
+ }>
3125
+ }
3126
+
3127
+ export type WaMexGetPrivacySettingsResponse = {
3128
+ readonly xwa2_fetch_wa_users?: ReadonlyArray<{
3129
+ readonly __typename?: string
3130
+ readonly privacy_settings?: {
3131
+ readonly settings?: ReadonlyArray<{
3132
+ readonly feature?: 'ABOUT' | 'CALLADD' | 'DEFENSE' | 'DEPENDENT_ACCOUNT_CALLING' | 'DEPENDENT_ACCOUNT_MESSAGES' | 'GROUPADD' | 'LAST' | 'LINKED_PROFILES' | 'MESSAGES' | 'ONLINE' | 'PIX' | 'PROFILE' | 'READRECEIPTS' | 'STICKERS'
3133
+ readonly setting?: 'ALL' | 'MYCONTACTS' | 'OFF'
3134
+ }>
3135
+ }
3136
+ readonly id?: string
3137
+ }>
3138
+ }
3139
+
3140
+ export type WaMexGetUsernameResponse = {
3141
+ readonly xwa2_username_get?: {
3142
+ readonly username_info?: {
3143
+ readonly username?: string
3144
+ readonly state?: string
3145
+ readonly pin?: string
3146
+ }
3147
+ }
3148
+ }
3149
+
3150
+ export type WaMexGetWAAEligibilityResponse = {
3151
+ readonly eval_wa_ad_account_eligibility_rules?: {
3152
+ readonly eligibility_result?: string
3153
+ }
3154
+ }
3155
+
3156
+ export type WaMexGraphQLProductCatalogGetPublicKeyResponse = {
3157
+ readonly xwa_product_catalog_get_public_key?: {
3158
+ readonly public_key_certificate_pem?: string
3159
+ readonly public_key_with_signature?: {
3160
+ readonly public_key_pem?: string
3161
+ readonly public_key_signature?: string
3162
+ }
3163
+ }
3164
+ }
3165
+
3166
+ export type WaMexGraphQLVerifyPostcodeResponse = {
3167
+ readonly xwa_product_catalog_get_verify_postcode?: {
3168
+ readonly postcode_verification_result?: {
3169
+ readonly result_code?: string
3170
+ readonly encrypted_location_name?: string
3171
+ }
3172
+ }
3173
+ }
3174
+
3175
+ export type WaMexGroupStoreInviteSmsResponse = {
3176
+ readonly xwa2_group_store_invites_sms?: {
3177
+ readonly group_jid?: string
3178
+ readonly participant_responses?: ReadonlyArray<{
3179
+ readonly error_code?: number
3180
+ }>
3181
+ }
3182
+ }
3183
+
3184
+ export type WaMexGroupSuspensionAppealResponse = {
3185
+ readonly wa_create_group_suspension_appeal?: {
3186
+ readonly response_code?: string
3187
+ readonly error_message?: string
3188
+ readonly appeal_creation_time?: string
3189
+ }
3190
+ }
3191
+
3192
+ export type WaMexIntegrityChallengeResponseResponse = {
3193
+ readonly xwa2_submit_integrity_challenge_response?: {
3194
+ readonly success?: boolean
3195
+ readonly error_message?: string
3196
+ }
3197
+ }
3198
+
3199
+ export type WaMexJoinNewsletterResponse = {
3200
+ readonly xwa2_newsletter_join_v2?: {
3201
+ readonly id?: string
3202
+ readonly state?: {
3203
+ readonly type?: 'ACTIVE' | 'DELETED' | 'GEOSUSPENDED' | 'NON_EXISTING' | 'SUSPENDED'
3204
+ }
3205
+ }
3206
+ }
3207
+
3208
+ export type WaMexLeaveNewsletterResponse = {
3209
+ readonly xwa2_newsletter_leave_v2?: {
3210
+ readonly id?: string
3211
+ readonly state?: {
3212
+ readonly type?: 'ACTIVE' | 'DELETED' | 'GEOSUSPENDED' | 'NON_EXISTING' | 'SUSPENDED'
3213
+ }
3214
+ }
3215
+ }
3216
+
3217
+ export type WaMexLidChangeNotificationResponse = {
3218
+ readonly xwa2_notify_lid_change?: {
3219
+ readonly old?: string
3220
+ readonly new?: string
3221
+ }
3222
+ }
3223
+
3224
+ export type WaMexLogNewsletterExposuresResponse = {
3225
+ readonly xwa2_newsletter_log_exposures?: {
3226
+ readonly __typename?: string
3227
+ }
3228
+ }
3229
+
3230
+ export type WaMexNativeMLModelResponse = {
3231
+ readonly aim_model_batched_manifest?: {
3232
+ readonly models?: ReadonlyArray<{
3233
+ readonly name?: string
3234
+ readonly version?: number
3235
+ readonly assets?: ReadonlyArray<{
3236
+ readonly name?: string
3237
+ readonly id?: string
3238
+ readonly cache_key?: string
3239
+ readonly source_content_hash?: string
3240
+ readonly md5_hash?: string
3241
+ readonly asset_handle?: string
3242
+ readonly creation_time?: string
3243
+ readonly url?: string
3244
+ readonly filesize_bytes?: number
3245
+ readonly compression_type?: string
3246
+ readonly asset_type?: string
3247
+ }>
3248
+ readonly properties?: ReadonlyArray<{
3249
+ readonly name?: string
3250
+ readonly value?: string
3251
+ }>
3252
+ }>
3253
+ readonly entry_point?: string
3254
+ readonly asset_count?: number
3255
+ readonly model_count?: number
3256
+ readonly status?: string
3257
+ readonly status_details?: string
3258
+ }
3259
+ }
3260
+
3261
+ export type WaMexNewsletterAddPaidPartnershipLabelResponse = {
3262
+ readonly xwa2_newsletter_label_paid_partnership?: {
3263
+ readonly id?: string
3264
+ }
3265
+ }
3266
+
3267
+ export type WaMexQueryCatalogResponse = {
3268
+ readonly xwa_product_catalog_get_product_catalog?: {
3269
+ readonly __typename?: string
3270
+ readonly product_catalog?: {
3271
+ readonly products?: ReadonlyArray<{
3272
+ readonly id?: string
3273
+ readonly retailer_id?: string
3274
+ readonly is_hidden?: boolean
3275
+ readonly is_sanctioned?: boolean
3276
+ readonly product_availability?: string
3277
+ readonly max_available?: number
3278
+ readonly name?: string
3279
+ readonly description?: string
3280
+ readonly url?: string
3281
+ readonly shimmed_url?: string
3282
+ readonly currency?: string
3283
+ readonly price?: string
3284
+ readonly status_info?: {
3285
+ readonly can_appeal?: boolean
3286
+ readonly status?: string
3287
+ }
3288
+ readonly sale_price?: {
3289
+ readonly price?: string
3290
+ readonly start_date?: string
3291
+ readonly end_date?: string
3292
+ }
3293
+ readonly media?: {
3294
+ readonly images?: ReadonlyArray<{
3295
+ readonly id?: string
3296
+ readonly original_image_url?: string
3297
+ readonly request_image_url?: string
3298
+ }>
3299
+ readonly videos?: ReadonlyArray<{
3300
+ readonly id?: string
3301
+ readonly original_video_url?: string
3302
+ readonly thumbnail_url?: string
3303
+ }>
3304
+ }
3305
+ readonly belongs_to?: string
3306
+ readonly compliance_category?: string
3307
+ readonly compliance_info?: {
3308
+ readonly country_code_origin?: string
3309
+ readonly importer_name?: string
3310
+ readonly importer_address?: {
3311
+ readonly street1?: string
3312
+ readonly street2?: string
3313
+ readonly postal_code?: string
3314
+ readonly city?: string
3315
+ readonly region?: string
3316
+ readonly country_code?: string
3317
+ }
3318
+ }
3319
+ readonly variant_info?: {
3320
+ readonly listing_details?: {
3321
+ readonly description?: string
3322
+ readonly multi_price?: string
3323
+ readonly lowest_price?: string
3324
+ }
3325
+ readonly availability?: {
3326
+ readonly listing?: ReadonlyArray<{
3327
+ readonly is_available?: boolean
3328
+ readonly options?: ReadonlyArray<{
3329
+ readonly name?: string
3330
+ readonly value?: string
3331
+ }>
3332
+ readonly product_id?: string
3333
+ }>
3334
+ }
3335
+ readonly types?: ReadonlyArray<{
3336
+ readonly name?: string
3337
+ readonly options?: ReadonlyArray<{
3338
+ readonly value?: string
3339
+ readonly thumbnail_media?: {
3340
+ readonly id?: string
3341
+ readonly original_dimensions?: {
3342
+ readonly height?: number
3343
+ readonly width?: number
3344
+ }
3345
+ readonly original_image_url?: string
3346
+ readonly request_image_url?: string
3347
+ }
3348
+ }>
3349
+ }>
3350
+ readonly variant_properties?: ReadonlyArray<{
3351
+ readonly name?: string
3352
+ readonly value?: string
3353
+ }>
3354
+ }
3355
+ }>
3356
+ readonly paging?: {
3357
+ readonly before?: string
3358
+ readonly after?: string
3359
+ }
3360
+ }
3361
+ }
3362
+ }
3363
+
3364
+ export type WaMexQueryCatalogHasCategoriesResponse = {
3365
+ readonly xwa_product_catalog_get_categories?: {
3366
+ readonly categories?: ReadonlyArray<{
3367
+ readonly __typename?: string
3368
+ }>
3369
+ }
3370
+ }
3371
+
3372
+ export type WaMexQueryCatalogProductResponse = {
3373
+ readonly xwa_product_catalog_get_product?: {
3374
+ readonly product_catalog?: {
3375
+ readonly product?: {
3376
+ readonly id?: string
3377
+ readonly retailer_id?: string
3378
+ readonly is_hidden?: boolean
3379
+ readonly is_sanctioned?: boolean
3380
+ readonly product_availability?: string
3381
+ readonly max_available?: number
3382
+ readonly name?: string
3383
+ readonly description?: string
3384
+ readonly url?: string
3385
+ readonly shimmed_url?: string
3386
+ readonly currency?: string
3387
+ readonly price?: string
3388
+ readonly status_info?: {
3389
+ readonly can_appeal?: boolean
3390
+ readonly status?: string
3391
+ }
3392
+ readonly sale_price?: {
3393
+ readonly price?: string
3394
+ readonly start_date?: string
3395
+ readonly end_date?: string
3396
+ }
3397
+ readonly media?: {
3398
+ readonly images?: ReadonlyArray<{
3399
+ readonly id?: string
3400
+ readonly original_image_url?: string
3401
+ readonly request_image_url?: string
3402
+ }>
3403
+ readonly videos?: ReadonlyArray<{
3404
+ readonly id?: string
3405
+ readonly original_video_url?: string
3406
+ readonly thumbnail_url?: string
3407
+ }>
3408
+ }
3409
+ readonly belongs_to?: string
3410
+ readonly compliance_category?: string
3411
+ readonly compliance_info?: {
3412
+ readonly country_code_origin?: string
3413
+ readonly importer_name?: string
3414
+ readonly importer_address?: {
3415
+ readonly street1?: string
3416
+ readonly street2?: string
3417
+ readonly postal_code?: string
3418
+ readonly city?: string
3419
+ readonly region?: string
3420
+ readonly country_code?: string
3421
+ }
3422
+ }
3423
+ readonly variant_info?: {
3424
+ readonly listing_details?: {
3425
+ readonly description?: string
3426
+ readonly multi_price?: string
3427
+ readonly lowest_price?: string
3428
+ }
3429
+ readonly availability?: {
3430
+ readonly listing?: ReadonlyArray<{
3431
+ readonly is_available?: boolean
3432
+ readonly options?: ReadonlyArray<{
3433
+ readonly name?: string
3434
+ readonly value?: string
3435
+ }>
3436
+ readonly product_id?: string
3437
+ }>
3438
+ }
3439
+ readonly types?: ReadonlyArray<{
3440
+ readonly name?: string
3441
+ readonly options?: ReadonlyArray<{
3442
+ readonly value?: string
3443
+ readonly thumbnail_media?: {
3444
+ readonly id?: string
3445
+ readonly original_dimensions?: {
3446
+ readonly height?: number
3447
+ readonly width?: number
3448
+ }
3449
+ readonly original_image_url?: string
3450
+ readonly request_image_url?: string
3451
+ }
3452
+ }>
3453
+ }>
3454
+ readonly variant_properties?: ReadonlyArray<{
3455
+ readonly name?: string
3456
+ readonly value?: string
3457
+ }>
3458
+ }
3459
+ }
3460
+ }
3461
+ }
3462
+ }
3463
+
3464
+ export type WaMexQueryProductCollectionsResponse = {
3465
+ readonly xwa_product_catalog_get_collections?: {
3466
+ readonly __typename?: string
3467
+ readonly collections?: ReadonlyArray<{
3468
+ readonly id?: string
3469
+ readonly name?: string
3470
+ readonly status_info?: {
3471
+ readonly status?: string
3472
+ readonly can_appeal?: string
3473
+ readonly reject_reason?: string
3474
+ readonly commerce_url?: string
3475
+ }
3476
+ readonly products?: ReadonlyArray<{
3477
+ readonly id?: string
3478
+ readonly retailer_id?: string
3479
+ readonly is_hidden?: boolean
3480
+ readonly is_sanctioned?: boolean
3481
+ readonly product_availability?: string
3482
+ readonly max_available?: number
3483
+ readonly name?: string
3484
+ readonly description?: string
3485
+ readonly url?: string
3486
+ readonly shimmed_url?: string
3487
+ readonly currency?: string
3488
+ readonly price?: string
3489
+ readonly status_info?: {
3490
+ readonly can_appeal?: string
3491
+ readonly status?: string
3492
+ }
3493
+ readonly sale_price?: {
3494
+ readonly price?: string
3495
+ readonly start_date?: string
3496
+ readonly end_date?: string
3497
+ }
3498
+ readonly media?: {
3499
+ readonly images?: ReadonlyArray<{
3500
+ readonly id?: string
3501
+ readonly original_image_url?: string
3502
+ readonly request_image_url?: string
3503
+ }>
3504
+ readonly videos?: ReadonlyArray<{
3505
+ readonly id?: string
3506
+ readonly original_video_url?: string
3507
+ readonly thumbnail_url?: string
3508
+ }>
3509
+ }
3510
+ readonly belongs_to?: string
3511
+ readonly compliance_category?: string
3512
+ readonly compliance_info?: {
3513
+ readonly country_code_origin?: string
3514
+ readonly importer_name?: string
3515
+ readonly importer_address?: {
3516
+ readonly street1?: string
3517
+ readonly street2?: string
3518
+ readonly postal_code?: string
3519
+ readonly city?: string
3520
+ readonly region?: string
3521
+ readonly country_code?: string
3522
+ }
3523
+ }
3524
+ readonly variant_info?: {
3525
+ readonly listing_details?: {
3526
+ readonly description?: string
3527
+ readonly multi_price?: string
3528
+ readonly lowest_price?: string
3529
+ }
3530
+ readonly availability?: {
3531
+ readonly listing?: ReadonlyArray<{
3532
+ readonly is_available?: boolean
3533
+ readonly options?: ReadonlyArray<{
3534
+ readonly name?: string
3535
+ readonly value?: string
3536
+ }>
3537
+ readonly product_id?: string
3538
+ }>
3539
+ }
3540
+ readonly types?: ReadonlyArray<{
3541
+ readonly name?: string
3542
+ readonly options?: ReadonlyArray<{
3543
+ readonly value?: string
3544
+ readonly thumbnail_media?: {
3545
+ readonly id?: string
3546
+ readonly original_dimensions?: {
3547
+ readonly height?: number
3548
+ readonly width?: number
3549
+ }
3550
+ readonly original_image_url?: string
3551
+ readonly request_image_url?: string
3552
+ }
3553
+ }>
3554
+ }>
3555
+ readonly variant_properties?: ReadonlyArray<{
3556
+ readonly name?: string
3557
+ readonly value?: string
3558
+ }>
3559
+ }
3560
+ }>
3561
+ }>
3562
+ readonly paging?: {
3563
+ readonly after?: string
3564
+ }
3565
+ }
3566
+ }
3567
+
3568
+ export type WaMexQueryProductListCatalogResponse = {
3569
+ readonly xwa_product_catalog_get_product_list?: {
3570
+ readonly __typename?: string
3571
+ readonly product_list?: {
3572
+ readonly products?: ReadonlyArray<{
3573
+ readonly id?: string
3574
+ readonly retailer_id?: string
3575
+ readonly is_hidden?: boolean
3576
+ readonly is_sanctioned?: boolean
3577
+ readonly product_availability?: string
3578
+ readonly max_available?: number
3579
+ readonly name?: string
3580
+ readonly description?: string
3581
+ readonly url?: string
3582
+ readonly shimmed_url?: string
3583
+ readonly currency?: string
3584
+ readonly price?: string
3585
+ readonly status_info?: {
3586
+ readonly can_appeal?: boolean
3587
+ readonly status?: string
3588
+ }
3589
+ readonly sale_price?: {
3590
+ readonly price?: string
3591
+ readonly start_date?: string
3592
+ readonly end_date?: string
3593
+ }
3594
+ readonly media?: {
3595
+ readonly images?: ReadonlyArray<{
3596
+ readonly id?: string
3597
+ readonly original_image_url?: string
3598
+ readonly request_image_url?: string
3599
+ }>
3600
+ readonly videos?: ReadonlyArray<{
3601
+ readonly id?: string
3602
+ readonly original_video_url?: string
3603
+ readonly thumbnail_url?: string
3604
+ }>
3605
+ }
3606
+ readonly belongs_to?: string
3607
+ readonly compliance_category?: string
3608
+ readonly compliance_info?: {
3609
+ readonly country_code_origin?: string
3610
+ readonly importer_name?: string
3611
+ readonly importer_address?: {
3612
+ readonly street1?: string
3613
+ readonly street2?: string
3614
+ readonly postal_code?: string
3615
+ readonly city?: string
3616
+ readonly region?: string
3617
+ readonly country_code?: string
3618
+ }
3619
+ }
3620
+ readonly variant_info?: {
3621
+ readonly listing_details?: {
3622
+ readonly description?: string
3623
+ readonly multi_price?: string
3624
+ readonly lowest_price?: string
3625
+ }
3626
+ readonly availability?: {
3627
+ readonly listing?: ReadonlyArray<{
3628
+ readonly is_available?: boolean
3629
+ readonly options?: ReadonlyArray<{
3630
+ readonly name?: string
3631
+ readonly value?: string
3632
+ }>
3633
+ readonly product_id?: string
3634
+ }>
3635
+ }
3636
+ readonly types?: ReadonlyArray<{
3637
+ readonly name?: string
3638
+ readonly options?: ReadonlyArray<{
3639
+ readonly value?: string
3640
+ readonly thumbnail_media?: {
3641
+ readonly id?: string
3642
+ readonly original_dimensions?: {
3643
+ readonly height?: number
3644
+ readonly width?: number
3645
+ }
3646
+ readonly original_image_url?: string
3647
+ readonly request_image_url?: string
3648
+ }
3649
+ }>
3650
+ }>
3651
+ readonly variant_properties?: ReadonlyArray<{
3652
+ readonly name?: string
3653
+ readonly value?: string
3654
+ }>
3655
+ }
3656
+ }>
3657
+ }
3658
+ }
3659
+ }
3660
+
3661
+ export type WaMexQueryProductSingleCollectionResponse = {
3662
+ readonly xwa_product_catalog_get_single_collection?: {
3663
+ readonly collection?: {
3664
+ readonly id?: string
3665
+ readonly name?: string
3666
+ readonly status_info?: {
3667
+ readonly status?: string
3668
+ readonly can_appeal?: string
3669
+ readonly reject_reason?: string
3670
+ readonly commerce_url?: string
3671
+ }
3672
+ readonly products?: ReadonlyArray<{
3673
+ readonly id?: string
3674
+ readonly retailer_id?: string
3675
+ readonly is_hidden?: boolean
3676
+ readonly is_sanctioned?: boolean
3677
+ readonly product_availability?: string
3678
+ readonly max_available?: number
3679
+ readonly name?: string
3680
+ readonly description?: string
3681
+ readonly url?: string
3682
+ readonly shimmed_url?: string
3683
+ readonly currency?: string
3684
+ readonly price?: string
3685
+ readonly status_info?: {
3686
+ readonly can_appeal?: string
3687
+ readonly status?: string
3688
+ }
3689
+ readonly sale_price?: {
3690
+ readonly price?: string
3691
+ readonly start_date?: string
3692
+ readonly end_date?: string
3693
+ }
3694
+ readonly media?: {
3695
+ readonly images?: ReadonlyArray<{
3696
+ readonly id?: string
3697
+ readonly original_image_url?: string
3698
+ readonly request_image_url?: string
3699
+ }>
3700
+ readonly videos?: ReadonlyArray<{
3701
+ readonly id?: string
3702
+ readonly original_video_url?: string
3703
+ readonly thumbnail_url?: string
3704
+ }>
3705
+ }
3706
+ readonly belongs_to?: string
3707
+ readonly compliance_category?: string
3708
+ readonly compliance_info?: {
3709
+ readonly country_code_origin?: string
3710
+ readonly importer_name?: string
3711
+ readonly importer_address?: {
3712
+ readonly street1?: string
3713
+ readonly street2?: string
3714
+ readonly postal_code?: string
3715
+ readonly city?: string
3716
+ readonly region?: string
3717
+ readonly country_code?: string
3718
+ }
3719
+ }
3720
+ readonly variant_info?: {
3721
+ readonly listing_details?: {
3722
+ readonly description?: string
3723
+ readonly multi_price?: string
3724
+ readonly lowest_price?: string
3725
+ }
3726
+ readonly availability?: {
3727
+ readonly listing?: ReadonlyArray<{
3728
+ readonly is_available?: boolean
3729
+ readonly options?: ReadonlyArray<{
3730
+ readonly name?: string
3731
+ readonly value?: string
3732
+ }>
3733
+ readonly product_id?: string
3734
+ }>
3735
+ }
3736
+ readonly types?: ReadonlyArray<{
3737
+ readonly name?: string
3738
+ readonly options?: ReadonlyArray<{
3739
+ readonly value?: string
3740
+ readonly thumbnail_media?: {
3741
+ readonly id?: string
3742
+ readonly original_dimensions?: {
3743
+ readonly height?: number
3744
+ readonly width?: number
3745
+ }
3746
+ readonly original_image_url?: string
3747
+ readonly request_image_url?: string
3748
+ }
3749
+ }>
3750
+ }>
3751
+ readonly variant_properties?: ReadonlyArray<{
3752
+ readonly name?: string
3753
+ readonly value?: string
3754
+ }>
3755
+ }
3756
+ }>
3757
+ }
3758
+ readonly paging?: {
3759
+ readonly after?: string
3760
+ }
3761
+ }
3762
+ }
3763
+
3764
+ export type WaMexQuerySubgroupParticipantCountResponse = {
3765
+ readonly xwa2_group_query_by_id?: {
3766
+ readonly __typename?: string
3767
+ readonly sub_groups?: {
3768
+ readonly edges?: ReadonlyArray<{
3769
+ readonly node?: {
3770
+ readonly id?: string
3771
+ readonly total_participants_count?: number
3772
+ }
3773
+ }>
3774
+ }
3775
+ readonly id?: string
3776
+ }
3777
+ }
3778
+
3779
+ export type WaMexQuickPromotionActionResponse = {
3780
+ readonly wa_quick_promotion_log_event?: {
3781
+ readonly client_mutation_id?: string
3782
+ }
3783
+ }
3784
+
3785
+ export type WaMexReportProductResponse = {
3786
+ readonly xwa_whatsapp_catalog_report_product?: {
3787
+ readonly __typename?: string
3788
+ readonly success?: boolean
3789
+ }
3790
+ }
3791
+
3792
+ export type WaMexRequestClientLogsForBugResponse = {
3793
+ readonly xwa2_request_client_logs_for_bug?: boolean
3794
+ }
3795
+
3796
+ export type WaMexResolveAccountTypeAndAdPageResponse = {
3797
+ readonly xfb_wa_biz_clear_oidc_preference?: boolean
3798
+ }
3799
+
3800
+ export type WaMexResolveAccountTypeAndAdPageQueryResponse = {
3801
+ readonly page?: {
3802
+ readonly can_viewer_do_actions?: boolean
3803
+ readonly id?: string
3804
+ }
3805
+ }
3806
+
3807
+ export type WaMexRevokeNewsletterAdminInviteResponse = {
3808
+ readonly xwa2_newsletter_admin_invite_revoke?: {
3809
+ readonly __typename?: string
3810
+ readonly id?: string
3811
+ }
3812
+ }
3813
+
3814
+ export type WaMexSetUsernameResponse = {
3815
+ readonly xwa2_username_set?: {
3816
+ readonly result?: 'SUCCESS'
3817
+ }
3818
+ }
3819
+
3820
+ export type WaMexSetUsernameKeyResponse = {
3821
+ readonly xwa2_username_pin_set?: {
3822
+ readonly result?: 'SUCCESS'
3823
+ }
3824
+ }
3825
+
3826
+ export type WaMexSignupMetadataResponse = {
3827
+ readonly wa_signup_metadata?: {
3828
+ readonly id?: string
3829
+ readonly signup_message?: string
3830
+ readonly privacy_policy_url?: string
3831
+ }
3832
+ }
3833
+
3834
+ export type WaMexSupportBugReportSubmitResponse = {
3835
+ readonly xwa_wa_support_bug_report_submit?: {
3836
+ readonly success?: boolean
3837
+ readonly error_code?: number
3838
+ readonly error_message?: string
3839
+ readonly bug_report_id?: string
3840
+ readonly task_id?: string
3841
+ }
3842
+ }
3843
+
3844
+ export type WaMexSupportContactFormSubmitResponse = {
3845
+ readonly xwa_wa_support_contact_form_submit?: {
3846
+ readonly success?: boolean
3847
+ readonly error_code?: number
3848
+ readonly error_message?: string
3849
+ readonly ticket_id?: string
3850
+ readonly support_phone_number_jid?: string
3851
+ }
3852
+ }
3853
+
3854
+ export type WaMexSupportMessageFeedbackSubmitResponse = {
3855
+ readonly xwa_wa_support_message_feedback_submit?: {
3856
+ readonly success?: boolean
3857
+ readonly error_code?: number
3858
+ readonly error_message?: string
3859
+ }
3860
+ }
3861
+
3862
+ export type WaMexTransferCommunityOwnershipResponse = {
3863
+ readonly xwa2_group_update_users_role?: {
3864
+ readonly group_id?: string
3865
+ readonly lid_migration_state?: {
3866
+ readonly addressing_mode?: string
3867
+ }
3868
+ }
3869
+ }
3870
+
3871
+ export type WaMexUpdateGroupPropertyResponse = {
3872
+ readonly xwa2_group_update_property?: {
3873
+ readonly id?: string
3874
+ readonly state?: string
3875
+ }
3876
+ }
3877
+
3878
+ export type WaMexUpdateNewsletterResponse = {
3879
+ readonly xwa2_newsletter_update?: {
3880
+ readonly id?: string
3881
+ readonly state?: {
3882
+ readonly type?: 'ACTIVE' | 'DELETED' | 'GEOSUSPENDED' | 'NON_EXISTING' | 'SUSPENDED'
3883
+ }
3884
+ readonly thread_metadata?: {
3885
+ readonly name?: {
3886
+ readonly id?: string
3887
+ readonly text?: string
3888
+ readonly update_time?: string
3889
+ }
3890
+ readonly description?: {
3891
+ readonly id?: string
3892
+ readonly text?: string
3893
+ readonly update_time?: string
3894
+ }
3895
+ readonly picture?: {
3896
+ readonly id?: string
3897
+ readonly type?: 'IMAGE' | 'PREVIEW'
3898
+ readonly direct_path?: string
3899
+ }
3900
+ readonly preview?: {
3901
+ readonly id?: string
3902
+ readonly type?: 'PREVIEW'
3903
+ readonly direct_path?: string
3904
+ }
3905
+ readonly invite?: string
3906
+ readonly handle?: string
3907
+ readonly verification?: 'UNVERIFIED' | 'VERIFIED'
3908
+ readonly creation_time?: string
3909
+ readonly settings?: {
3910
+ readonly reaction_codes?: {
3911
+ readonly value?: 'ALL'
3912
+ }
3913
+ }
3914
+ }
3915
+ }
3916
+ }
3917
+
3918
+ export type WaMexUpdateNewsletterUserSettingResponse = {
3919
+ readonly xwa2_newsletter_update_user_setting?: {
3920
+ readonly id?: string
3921
+ readonly state?: {
3922
+ readonly type?: 'ACTIVE' | 'DELETED' | 'GEOSUSPENDED' | 'NON_EXISTING' | 'SUSPENDED'
3923
+ }
3924
+ }
3925
+ }
3926
+
3927
+ export type WaMexUpdateTextStatusResponse = {
3928
+ readonly xwa2_update_text_status?: {
3929
+ readonly result?: string
3930
+ }
3931
+ }
3932
+
3933
+ export type WaMexUsernameAvailabilityResponse = {
3934
+ readonly xwa2_username_check?: {
3935
+ readonly result?: 'SUCCESS'
3936
+ readonly suggestions?: ReadonlyArray<string>
3937
+ }
3938
+ }
3939
+
3940
+ export type WaMexUsyncResponse = {
3941
+ readonly xwa2_fetch_wa_users?: ReadonlyArray<{
3942
+ readonly __typename?: string
3943
+ readonly jid?: string
3944
+ readonly country_code?: string
3945
+ readonly username_info?: {
3946
+ readonly __typename?: string
3947
+ readonly username?: string
3948
+ readonly state?: string
3949
+ readonly timestamp?: string
3950
+ readonly pin?: string
3951
+ readonly status?: string
3952
+ }
3953
+ readonly about_status_info?: {
3954
+ readonly __typename?: string
3955
+ readonly text?: string
3956
+ readonly timestamp?: string
3957
+ readonly status?: string
3958
+ }
3959
+ readonly id?: string
3960
+ }>
3961
+ }
3962
+
3963
+ export type WaMexWAAOnboardingResponse = {
3964
+ readonly create_or_onboard_wa_ad_account?: {
3965
+ readonly ad_account_id?: string
3966
+ readonly status?: string
3967
+ }
3968
+ }
3969
+
3970
+ export type WaMexWaffleFXServiceDataQueryV2Response = {
3971
+ readonly waffle_fx_service_data?: {
3972
+ readonly services?: {
3973
+ readonly waffle_sxs?: ReadonlyArray<{
3974
+ readonly waffle_di?: string
3975
+ readonly waffle_da?: string
3976
+ readonly waffle_xss?: ReadonlyArray<{
3977
+ readonly waffle_iaxe?: string
3978
+ readonly waffle_x_surface?: string
3979
+ }>
3980
+ }>
3981
+ readonly waffle_afs?: {
3982
+ readonly waffle_wes?: string
3983
+ }
3984
+ readonly foa_to_wa_link_eligibility?: {
3985
+ readonly is_eligible_to_link_to_unlinked_fb?: boolean
3986
+ readonly is_eligible_to_link_to_linked_fb?: boolean
3987
+ readonly is_eligible_to_link_to_unlinked_ig?: boolean
3988
+ readonly is_eligible_to_link_to_linked_ig?: boolean
3989
+ readonly is_eligible_to_link_to_unlinked_rl?: boolean
3990
+ readonly is_eligible_to_link_to_linked_rl?: boolean
3991
+ }
3992
+ }
3993
+ }
3994
+ }
3995
+
3996
+ export type WaMexWaffleFXWAMOUpdateUOOMResponse = {
3997
+ readonly xfb_waffle_fx_wamo_update_uoom?: boolean
3998
+ }
3999
+
4000
+ export type WaMexWaffleXEResponse = {
4001
+ readonly waffle_xe_root?: {
4002
+ readonly purpose_public_keys?: {
4003
+ readonly purpose_public_ek?: string
4004
+ readonly purpose_public_ik?: string
4005
+ readonly purpose_public_ik_sig?: string
4006
+ readonly purpose_public_ik_enc_certificate?: string
4007
+ readonly purpose_dummy_ciphertext?: string
4008
+ readonly purpose_dummy_nonce?: string
4009
+ }
4010
+ readonly waffle_unique_ids?: string
4011
+ readonly waffle_d?: ReadonlyArray<{
4012
+ readonly waffle_xas?: {
4013
+ readonly waffle_xan?: string
4014
+ readonly waffle_xs?: string
4015
+ }
4016
+ readonly waffle_di?: string
4017
+ }>
4018
+ readonly waffle_xps?: ReadonlyArray<{
4019
+ readonly waffle_xas?: {
4020
+ readonly waffle_xan?: string
4021
+ readonly waffle_xs?: string
4022
+ }
4023
+ readonly waffle_hcbc?: string
4024
+ }>
4025
+ }
4026
+ }
4027
+
4028
+ export type WaMexuseWAWebEstimatedDailyReachResponse = {
4029
+ readonly lwi?: {
4030
+ readonly budget_estimate_data_v2?: {
4031
+ readonly daily_outcomes_curve?: ReadonlyArray<{
4032
+ readonly actions?: number
4033
+ readonly actions_lower_bound?: number
4034
+ readonly actions_upper_bound?: number
4035
+ readonly bid?: number
4036
+ readonly impressions?: number
4037
+ readonly reach?: number
4038
+ readonly reach_lower_bound?: number
4039
+ readonly reach_upper_bound?: number
4040
+ readonly spend?: number
4041
+ }>
4042
+ }
4043
+ }
4044
+ }
4045
+
4046
+ export interface WaMexOperationResponses {
4047
+ readonly ACSServerProviderConfig: WaMexACSServerProviderConfigResponse
4048
+ readonly ACSServerProviderIssuance: WaMexACSServerProviderIssuanceResponse
4049
+ readonly AcceptNewsletterAdminInvite: WaMexAcceptNewsletterAdminInviteResponse
4050
+ readonly AiAgentAutoReplyControl: WaMexAiAgentAutoReplyControlResponse
4051
+ readonly AuthAgentFeaturePolicy: WaMexAuthAgentFeaturePolicyResponse
4052
+ readonly BPAccessTokenAndSessionCookies: WaMexBPAccessTokenAndSessionCookiesResponse
4053
+ readonly BizCreateOrder: WaMexBizCreateOrderResponse
4054
+ readonly BizCustomUrlGetUserGraphql: WaMexBizCustomUrlGetUserGraphqlResponse
4055
+ readonly BizGetCategories: WaMexBizGetCategoriesResponse
4056
+ readonly BizGetCategoriesV2: WaMexBizGetCategoriesV2Response
4057
+ readonly BizGetCustomUrlUserGraphql: WaMexBizGetCustomUrlUserGraphqlResponse
4058
+ readonly BizGetMerchantCompliance: WaMexBizGetMerchantComplianceResponse
4059
+ readonly BizGetPriceTiers: WaMexBizGetPriceTiersResponse
4060
+ readonly BizGetProfileShimlinks: WaMexBizGetProfileShimlinksResponse
4061
+ readonly BizGraphQLRefreshCart: WaMexBizGraphQLRefreshCartResponse
4062
+ readonly BizProfileAddressAutocomplete: WaMexBizProfileAddressAutocompleteResponse
4063
+ readonly BizQueryOrder: WaMexBizQueryOrderResponse
4064
+ readonly BizSetMerchantCompliance: WaMexBizSetMerchantComplianceResponse
4065
+ readonly CachedToken: WaMexCachedTokenResponse
4066
+ readonly CanonicalUserValid: WaMexCanonicalUserValidResponse
4067
+ readonly ChangeNewsletterOwner: WaMexChangeNewsletterOwnerResponse
4068
+ readonly ConsumerFetchQuickPromotions: WaMexConsumerFetchQuickPromotionsResponse
4069
+ readonly ConsumerQuickPromotionActionGraphQL: WaMexConsumerQuickPromotionActionGraphQLResponse
4070
+ readonly CreateInviteCode: WaMexCreateInviteCodeResponse
4071
+ readonly CreateMarketingCampaignAction: WaMexCreateMarketingCampaignActionResponse
4072
+ readonly CreateNewsletter: WaMexCreateNewsletterResponse
4073
+ readonly CreateNewsletterAdminInvite: WaMexCreateNewsletterAdminInviteResponse
4074
+ readonly CreateReportAppeal: WaMexCreateReportAppealResponse
4075
+ readonly CreateWhatsAppAdsIdentity: WaMexCreateWhatsAppAdsIdentityResponse
4076
+ readonly CustomLabel3pdEvent: WaMexCustomLabel3pdEventResponse
4077
+ readonly DeleteNewsletter: WaMexDeleteNewsletterResponse
4078
+ readonly DemoteNewsletterAdmin: WaMexDemoteNewsletterAdminResponse
4079
+ readonly EditBizProfile: WaMexEditBizProfileResponse
4080
+ readonly ExternalCtxAuthoriseWAChat: WaMexExternalCtxAuthoriseWAChatResponse
4081
+ readonly FetchAboutStatus: WaMexFetchAboutStatusResponse
4082
+ readonly FetchAdEntryPointsConfiguration: WaMexFetchAdEntryPointsConfigurationResponse
4083
+ readonly FetchAdEntryPointsConfigurationM1: WaMexFetchAdEntryPointsConfigurationM1Response
4084
+ readonly FetchAllNewslettersMetadata: WaMexFetchAllNewslettersMetadataResponse
4085
+ readonly FetchAllSubgroups: WaMexFetchAllSubgroupsResponse
4086
+ readonly FetchBotProfilesGQL: WaMexFetchBotProfilesGQLResponse
4087
+ readonly FetchDynamicAIModes: WaMexFetchDynamicAIModesResponse
4088
+ readonly FetchGroupInfo: WaMexFetchGroupInfoResponse
4089
+ readonly FetchGroupInfoIncludBots: WaMexFetchGroupInfoIncludBotsResponse
4090
+ readonly FetchGroupInviteCode: WaMexFetchGroupInviteCodeResponse
4091
+ readonly FetchGroupIsInternal: WaMexFetchGroupIsInternalResponse
4092
+ readonly FetchIntegritySignals: WaMexFetchIntegritySignalsResponse
4093
+ readonly FetchNativeAdsMvpEligibility: WaMexFetchNativeAdsMvpEligibilityResponse
4094
+ readonly FetchNewChatMessageCappingInfo: WaMexFetchNewChatMessageCappingInfoResponse
4095
+ readonly FetchNewsletter: WaMexFetchNewsletterResponse
4096
+ readonly FetchNewsletterAdminCapabilities: WaMexFetchNewsletterAdminCapabilitiesResponse
4097
+ readonly FetchNewsletterAdminInfo: WaMexFetchNewsletterAdminInfoResponse
4098
+ readonly FetchNewsletterDehydrated: WaMexFetchNewsletterDehydratedResponse
4099
+ readonly FetchNewsletterDirectoryCategoriesPreview: WaMexFetchNewsletterDirectoryCategoriesPreviewResponse
4100
+ readonly FetchNewsletterDirectoryList: WaMexFetchNewsletterDirectoryListResponse
4101
+ readonly FetchNewsletterDirectorySearchResults: WaMexFetchNewsletterDirectorySearchResultsResponse
4102
+ readonly FetchNewsletterEnforcements: WaMexFetchNewsletterEnforcementsResponse
4103
+ readonly FetchNewsletterFollowers: WaMexFetchNewsletterFollowersResponse
4104
+ readonly FetchNewsletterInsights: WaMexFetchNewsletterInsightsResponse
4105
+ readonly FetchNewsletterIsDomainPreviewable: WaMexFetchNewsletterIsDomainPreviewableResponse
4106
+ readonly FetchNewsletterMessageReactionSenderList: WaMexFetchNewsletterMessageReactionSenderListResponse
4107
+ readonly FetchNewsletterPendingInvites: WaMexFetchNewsletterPendingInvitesResponse
4108
+ readonly FetchNewsletterPollVoters: WaMexFetchNewsletterPollVotersResponse
4109
+ readonly FetchNewsletterReports: WaMexFetchNewsletterReportsResponse
4110
+ readonly FetchOHAIKeyConfig: WaMexFetchOHAIKeyConfigResponse
4111
+ readonly FetchOIDCState: WaMexFetchOIDCStateResponse
4112
+ readonly FetchPlaintextLinkPreview: WaMexFetchPlaintextLinkPreviewResponse
4113
+ readonly FetchQuickPromotions: WaMexFetchQuickPromotionsResponse
4114
+ readonly FetchReachoutTimelock: WaMexFetchReachoutTimelockResponse
4115
+ readonly FetchRecommendedNewsletters: WaMexFetchRecommendedNewslettersResponse
4116
+ readonly FetchSimilarNewsletters: WaMexFetchSimilarNewslettersResponse
4117
+ readonly FetchSubgroupSuggestions: WaMexFetchSubgroupSuggestionsResponse
4118
+ readonly FetchSubscriptionEntryPoints: WaMexFetchSubscriptionEntryPointsResponse
4119
+ readonly FetchSubscriptions: WaMexFetchSubscriptionsResponse
4120
+ readonly FetchTextStatusList: WaMexFetchTextStatusListResponse
4121
+ readonly GetAccessTokenFromOIDCCode: WaMexGetAccessTokenFromOIDCCodeResponse
4122
+ readonly GetAccountNonce: WaMexGetAccountNonceResponse
4123
+ readonly GetDsbInfo: WaMexGetDsbInfoResponse
4124
+ readonly GetFBAccountPages: WaMexGetFBAccountPagesResponse
4125
+ readonly GetNumbersForBrandIds: WaMexGetNumbersForBrandIdsResponse
4126
+ readonly GetPrivacyLists: WaMexGetPrivacyListsResponse
4127
+ readonly GetPrivacySettings: WaMexGetPrivacySettingsResponse
4128
+ readonly GetUsername: WaMexGetUsernameResponse
4129
+ readonly GetWAAEligibility: WaMexGetWAAEligibilityResponse
4130
+ readonly GraphQLProductCatalogGetPublicKey: WaMexGraphQLProductCatalogGetPublicKeyResponse
4131
+ readonly GraphQLVerifyPostcode: WaMexGraphQLVerifyPostcodeResponse
4132
+ readonly GroupStoreInviteSms: WaMexGroupStoreInviteSmsResponse
4133
+ readonly GroupSuspensionAppeal: WaMexGroupSuspensionAppealResponse
4134
+ readonly IntegrityChallengeResponse: WaMexIntegrityChallengeResponseResponse
4135
+ readonly JoinNewsletter: WaMexJoinNewsletterResponse
4136
+ readonly LeaveNewsletter: WaMexLeaveNewsletterResponse
4137
+ readonly LidChangeNotification: WaMexLidChangeNotificationResponse
4138
+ readonly LogNewsletterExposures: WaMexLogNewsletterExposuresResponse
4139
+ readonly NativeMLModel: WaMexNativeMLModelResponse
4140
+ readonly NewsletterAddPaidPartnershipLabel: WaMexNewsletterAddPaidPartnershipLabelResponse
4141
+ readonly QueryCatalog: WaMexQueryCatalogResponse
4142
+ readonly QueryCatalogHasCategories: WaMexQueryCatalogHasCategoriesResponse
4143
+ readonly QueryCatalogProduct: WaMexQueryCatalogProductResponse
4144
+ readonly QueryProductCollections: WaMexQueryProductCollectionsResponse
4145
+ readonly QueryProductListCatalog: WaMexQueryProductListCatalogResponse
4146
+ readonly QueryProductSingleCollection: WaMexQueryProductSingleCollectionResponse
4147
+ readonly QuerySubgroupParticipantCount: WaMexQuerySubgroupParticipantCountResponse
4148
+ readonly QuickPromotionAction: WaMexQuickPromotionActionResponse
4149
+ readonly ReportProduct: WaMexReportProductResponse
4150
+ readonly RequestClientLogsForBug: WaMexRequestClientLogsForBugResponse
4151
+ readonly ResolveAccountTypeAndAdPage: WaMexResolveAccountTypeAndAdPageResponse
4152
+ readonly ResolveAccountTypeAndAdPageQuery: WaMexResolveAccountTypeAndAdPageQueryResponse
4153
+ readonly RevokeNewsletterAdminInvite: WaMexRevokeNewsletterAdminInviteResponse
4154
+ readonly SetUsername: WaMexSetUsernameResponse
4155
+ readonly SetUsernameKey: WaMexSetUsernameKeyResponse
4156
+ readonly SignupMetadata: WaMexSignupMetadataResponse
4157
+ readonly SupportBugReportSubmit: WaMexSupportBugReportSubmitResponse
4158
+ readonly SupportContactFormSubmit: WaMexSupportContactFormSubmitResponse
4159
+ readonly SupportMessageFeedbackSubmit: WaMexSupportMessageFeedbackSubmitResponse
4160
+ readonly TransferCommunityOwnership: WaMexTransferCommunityOwnershipResponse
4161
+ readonly UpdateGroupProperty: WaMexUpdateGroupPropertyResponse
4162
+ readonly UpdateNewsletter: WaMexUpdateNewsletterResponse
4163
+ readonly UpdateNewsletterUserSetting: WaMexUpdateNewsletterUserSettingResponse
4164
+ readonly UpdateTextStatus: WaMexUpdateTextStatusResponse
4165
+ readonly UsernameAvailability: WaMexUsernameAvailabilityResponse
4166
+ readonly Usync: WaMexUsyncResponse
4167
+ readonly WAAOnboarding: WaMexWAAOnboardingResponse
4168
+ readonly WaffleFXServiceDataQueryV2: WaMexWaffleFXServiceDataQueryV2Response
4169
+ readonly WaffleFXWAMOUpdateUOOM: WaMexWaffleFXWAMOUpdateUOOMResponse
4170
+ readonly WaffleXE: WaMexWaffleXEResponse
4171
+ readonly useWAWebEstimatedDailyReach: WaMexuseWAWebEstimatedDailyReachResponse
4172
+ }