@vinikjkkj/wa-xml 0.1.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.
- package/README.md +273 -0
- package/index.d.ts +11704 -0
- package/index.js +146 -0
- package/package.json +52 -0
package/index.js
ADDED
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
// AUTO-GENERATED — do not edit. Regenerated daily by wa-spec.
|
|
2
|
+
// WhatsApp Version: 2.3000.1040100380
|
|
3
|
+
'use strict'
|
|
4
|
+
|
|
5
|
+
const WA_XML_OPERATIONS = Object.freeze({
|
|
6
|
+
AcceptGroupAdd: Object.freeze({ module: 'WASmaxGroupsAcceptGroupAddRPC', opName: 'AcceptGroupAdd', rootTag: 'iq', xmlns: 'w:g2', type: 'set', requestModule: 'WASmaxOutGroupsAcceptGroupAddRequest', responseModules: Object.freeze(['WASmaxInGroupsAcceptGroupAddResponseClientError', 'WASmaxInGroupsAcceptGroupAddResponseGroupJoinRequestSuccess', 'WASmaxInGroupsAcceptGroupAddResponseServerError', 'WASmaxInGroupsAcceptGroupAddResponseSuccess']) }),
|
|
7
|
+
AcknowledgeGroup: Object.freeze({ module: 'WASmaxGroupsAcknowledgeGroupRPC', opName: 'AcknowledgeGroup', rootTag: 'iq', xmlns: 'w:g2', type: 'set', requestModule: 'WASmaxOutGroupsAcknowledgeGroupRequest', responseModules: Object.freeze(['WASmaxInGroupsAcknowledgeGroupResponseClientError', 'WASmaxInGroupsAcknowledgeGroupResponseServerError', 'WASmaxInGroupsAcknowledgeGroupResponseSuccess']) }),
|
|
8
|
+
ActiveIQ: Object.freeze({ module: 'WASmaxPassiveModeActiveIQRPC', opName: 'ActiveIQ', rootTag: 'iq', xmlns: 'passive', type: 'set', requestModule: 'WASmaxOutPassiveModeActiveIQRequest', responseModules: Object.freeze(['WASmaxInPassiveModeActiveIQResponseSuccess']) }),
|
|
9
|
+
AddParticipants: Object.freeze({ module: 'WASmaxGroupsAddParticipantsRPC', opName: 'AddParticipants', rootTag: 'iq', xmlns: 'w:g2', type: 'set', requestModule: 'WASmaxOutGroupsAddParticipantsRequest', responseModules: Object.freeze(['WASmaxInGroupsAddParticipantsResponseClientError', 'WASmaxInGroupsAddParticipantsResponseServerError', 'WASmaxInGroupsAddParticipantsResponseSuccess']) }),
|
|
10
|
+
Availability: Object.freeze({ module: 'WASmaxPresenceAvailabilityRPC', opName: 'Availability', rootTag: 'presence', xmlns: null, type: null, requestModule: 'WASmaxOutPresenceAvailabilityRequest', responseModules: Object.freeze([]) }),
|
|
11
|
+
BannerSuggestion: Object.freeze({ module: 'WASmaxBizCtwaActionBannerSuggestionRPC', opName: 'BannerSuggestion', rootTag: 'notification', xmlns: null, type: null, requestModule: null, responseModules: Object.freeze(['WASmaxInBizCtwaActionBannerSuggestionRequest']) }),
|
|
12
|
+
Batch: Object.freeze({ module: 'WASmaxOfflineBatchRPC', opName: 'Batch', rootTag: 'ib', xmlns: null, type: null, requestModule: 'WASmaxOutOfflineBatchRequest', responseModules: Object.freeze([]) }),
|
|
13
|
+
BatchGetGroupInfo: Object.freeze({ module: 'WASmaxGroupsBatchGetGroupInfoRPC', opName: 'BatchGetGroupInfo', rootTag: 'iq', xmlns: 'w:g2', type: 'get', requestModule: 'WASmaxOutGroupsBatchGetGroupInfoRequest', responseModules: Object.freeze(['WASmaxInGroupsBatchGetGroupInfoResponseClientError', 'WASmaxInGroupsBatchGetGroupInfoResponseServerError', 'WASmaxInGroupsBatchGetGroupInfoResponseSuccess']) }),
|
|
14
|
+
BotList: Object.freeze({ module: 'WASmaxBotBotListRPC', opName: 'BotList', rootTag: 'iq', xmlns: 'bot', type: 'get', requestModule: 'WASmaxOutBotBotListRequest', responseModules: Object.freeze(['WASmaxInBotBotListResponseError', 'WASmaxInBotBotListResponseSuccessV2', 'WASmaxInBotBotListResponseSuccessV3']) }),
|
|
15
|
+
CampaignStateChangedNotification: Object.freeze({ module: 'WASmaxSmbMeteredMessagesCampaignCampaignStateChangedNotificationRPC', opName: 'CampaignStateChangedNotification', rootTag: 'notification', xmlns: null, type: null, requestModule: null, responseModules: Object.freeze(['WASmaxInSmbMeteredMessagesCampaignCampaignStateChangedNotificationRequest']) }),
|
|
16
|
+
CancelGroupMembershipRequests: Object.freeze({ module: 'WASmaxGroupsCancelGroupMembershipRequestsRPC', opName: 'CancelGroupMembershipRequests', rootTag: 'iq', xmlns: 'w:g2', type: 'set', requestModule: 'WASmaxOutGroupsCancelGroupMembershipRequestsRequest', responseModules: Object.freeze(['WASmaxInGroupsCancelGroupMembershipRequestsResponseClientError', 'WASmaxInGroupsCancelGroupMembershipRequestsResponseServerError', 'WASmaxInGroupsCancelGroupMembershipRequestsResponseSuccess']) }),
|
|
17
|
+
ChatBlockGet: Object.freeze({ module: 'WASmaxPsaChatBlockGetRPC', opName: 'ChatBlockGet', rootTag: 'iq', xmlns: 'w:comms:chat', type: 'get', requestModule: 'WASmaxOutPsaChatBlockGetRequest', responseModules: Object.freeze(['WASmaxInPsaChatBlockGetResponseServerError', 'WASmaxInPsaChatBlockGetResponseSuccess']) }),
|
|
18
|
+
ChatBlockSet: Object.freeze({ module: 'WASmaxPsaChatBlockSetRPC', opName: 'ChatBlockSet', rootTag: 'iq', xmlns: 'w:comms:chat', type: 'set', requestModule: 'WASmaxOutPsaChatBlockSetRequest', responseModules: Object.freeze(['WASmaxInPsaChatBlockSetResponseServerError', 'WASmaxInPsaChatBlockSetResponseSuccess']) }),
|
|
19
|
+
Client: Object.freeze({ module: 'WASmaxOutPingsClientRequest', opName: 'Client', rootTag: 'iq', xmlns: 'w:p', type: 'get', requestModule: 'WASmaxOutPingsClientRequest', responseModules: Object.freeze(['WASmaxInPingsClientResponseServerResponse']) }),
|
|
20
|
+
ClientExpiration: Object.freeze({ module: 'WASmaxClientExpirationClientExpirationRPC', opName: 'ClientExpiration', rootTag: 'ib', xmlns: null, type: null, requestModule: null, responseModules: Object.freeze(['WASmaxInClientExpirationClientExpirationRequest']) }),
|
|
21
|
+
ClientNotification: Object.freeze({ module: 'WASmaxChatstateClientNotificationRPC', opName: 'ClientNotification', rootTag: 'chatstate', xmlns: null, type: null, requestModule: 'WASmaxOutChatstateClientNotificationRequest', responseModules: Object.freeze([]) }),
|
|
22
|
+
CompanionFinish: Object.freeze({ module: 'WASmaxMdCompanionFinishRPC', opName: 'CompanionFinish', rootTag: 'iq', xmlns: 'md', type: 'set', requestModule: 'WASmaxOutMdCompanionFinishRequest', responseModules: Object.freeze(['WASmaxInMdCompanionFinishResponseError', 'WASmaxInMdCompanionFinishResponseSuccess']) }),
|
|
23
|
+
CompanionHello: Object.freeze({ module: 'WASmaxMdCompanionHelloRPC', opName: 'CompanionHello', rootTag: 'iq', xmlns: 'md', type: 'set', requestModule: 'WASmaxOutMdCompanionHelloRequest', responseModules: Object.freeze(['WASmaxInMdCompanionHelloResponseError', 'WASmaxInMdCompanionHelloResponseNotifyCompanion']) }),
|
|
24
|
+
ContactForm: Object.freeze({ module: 'WASmaxSupportContactFormRPC', opName: 'ContactForm', rootTag: 'iq', xmlns: 'fb:thrift_iq', type: 'set', requestModule: 'WASmaxOutSupportContactFormRequest', responseModules: Object.freeze(['WASmaxInSupportContactFormResponseError', 'WASmaxInSupportContactFormResponseRetryableError', 'WASmaxInSupportContactFormResponseSuccess']) }),
|
|
25
|
+
Create: Object.freeze({ module: 'WASmaxGroupsCreateRPC', opName: 'Create', rootTag: 'iq', xmlns: 'w:g2', type: 'set', requestModule: 'WASmaxOutGroupsCreateRequest', responseModules: Object.freeze(['WASmaxInGroupsCreateResponseClientError', 'WASmaxInGroupsCreateResponseGroupAlreadyExists', 'WASmaxInGroupsCreateResponseServerError', 'WASmaxInGroupsCreateResponseSuccess']) }),
|
|
26
|
+
CreateCustomPaymentMethod: Object.freeze({ module: 'WASmaxBrPaymentCreateCustomPaymentMethodRPC', opName: 'CreateCustomPaymentMethod', rootTag: 'iq', xmlns: 'w:pay', type: 'set', requestModule: 'WASmaxOutBrPaymentCreateCustomPaymentMethodRequest', responseModules: Object.freeze(['WASmaxInBrPaymentCreateCustomPaymentMethodResponseIQErrorWithCodeAndReason', 'WASmaxInBrPaymentCreateCustomPaymentMethodResponseSuccess']) }),
|
|
27
|
+
CreateSubGroupSuggestion: Object.freeze({ module: 'WASmaxGroupsCreateSubGroupSuggestionRPC', opName: 'CreateSubGroupSuggestion', rootTag: 'iq', xmlns: 'w:g2', type: 'set', requestModule: 'WASmaxOutGroupsCreateSubGroupSuggestionRequest', responseModules: Object.freeze(['WASmaxInGroupsCreateSubGroupSuggestionResponseClientError', 'WASmaxInGroupsCreateSubGroupSuggestionResponseExistingGroupsSuggestionSuccess', 'WASmaxInGroupsCreateSubGroupSuggestionResponseNewGroupSuggestionSuccess', 'WASmaxInGroupsCreateSubGroupSuggestionResponseServerError']) }),
|
|
28
|
+
DeleteParentGroup: Object.freeze({ module: 'WASmaxGroupsDeleteParentGroupRPC', opName: 'DeleteParentGroup', rootTag: 'iq', xmlns: 'w:g2', type: 'set', requestModule: 'WASmaxOutGroupsDeleteParentGroupRequest', responseModules: Object.freeze(['WASmaxInGroupsDeleteParentGroupResponseClientError', 'WASmaxInGroupsDeleteParentGroupResponseServerError', 'WASmaxInGroupsDeleteParentGroupResponseSuccess']) }),
|
|
29
|
+
DeliverNewsletter: Object.freeze({ module: 'WASmaxMessageDeliverNewsletterRPC', opName: 'Newsletter', rootTag: 'message', xmlns: null, type: null, requestModule: null, responseModules: Object.freeze(['WASmaxInMessageDeliverNewsletterRequest']) }),
|
|
30
|
+
EncryptedPayloadRequest: Object.freeze({ module: 'WASmaxWaffleEncryptedPayloadRequestRPC', opName: 'EncryptedPayloadRequest', rootTag: 'iq', xmlns: 'waffle', type: 'get', requestModule: 'WASmaxOutWaffleEncryptedPayloadRequestRequest', responseModules: Object.freeze(['WASmaxInWaffleEncryptedPayloadRequestResponseError', 'WASmaxInWaffleEncryptedPayloadRequestResponseSuccess']) }),
|
|
31
|
+
Event: Object.freeze({ module: 'WASmaxInAppCommsEventRPC', opName: 'Event', rootTag: 'iq', xmlns: 'w:comms', type: 'set', requestModule: 'WASmaxOutInAppCommsEventRequest', responseModules: Object.freeze(['WASmaxInInAppCommsEventResponseError', 'WASmaxInInAppCommsEventResponseSuccess']) }),
|
|
32
|
+
FetchKeyBundles: Object.freeze({ module: 'WASmaxPreKeysFetchKeyBundlesRPC', opName: 'FetchKeyBundles', rootTag: 'iq', xmlns: 'encrypt', type: 'get', requestModule: 'WASmaxOutPreKeysFetchKeyBundlesRequest', responseModules: Object.freeze(['WASmaxInPreKeysFetchKeyBundlesResponseRequestError', 'WASmaxInPreKeysFetchKeyBundlesResponseServerError', 'WASmaxInPreKeysFetchKeyBundlesResponseSuccess']) }),
|
|
33
|
+
FetchMissingPreKeys: Object.freeze({ module: 'WASmaxPreKeysFetchMissingPreKeysRPC', opName: 'FetchMissingPreKeys', rootTag: 'iq', xmlns: 'encrypt', type: 'get', requestModule: 'WASmaxOutPreKeysFetchMissingPreKeysRequest', responseModules: Object.freeze(['WASmaxInPreKeysFetchMissingPreKeysResponseRequestError', 'WASmaxInPreKeysFetchMissingPreKeysResponseServerError', 'WASmaxInPreKeysFetchMissingPreKeysResponseSuccess']) }),
|
|
34
|
+
GenerateAccessTokens: Object.freeze({ module: 'WASmaxWaffleGenerateAccessTokensRPC', opName: 'GenerateAccessTokens', rootTag: 'iq', xmlns: 'waffle', type: 'get', requestModule: 'WASmaxOutWaffleGenerateAccessTokensRequest', responseModules: Object.freeze(['WASmaxInWaffleGenerateAccessTokensResponseError', 'WASmaxInWaffleGenerateAccessTokensResponseSuccess']) }),
|
|
35
|
+
GenerateWAEntACUser: Object.freeze({ module: 'WASmaxWaffleGenerateWAEntACUserRPC', opName: 'GenerateWAEntACUser', rootTag: 'iq', xmlns: 'waffle', type: 'get', requestModule: 'WASmaxOutWaffleGenerateWAEntACUserRequest', responseModules: Object.freeze(['WASmaxInWaffleGenerateWAEntACUserResponseError', 'WASmaxInWaffleGenerateWAEntACUserResponseSuccess']) }),
|
|
36
|
+
Get: Object.freeze({ module: 'WASmaxProfilePictureGetRPC', opName: 'Get', rootTag: 'iq', xmlns: 'w:profile:picture', type: 'get', requestModule: 'WASmaxOutProfilePictureGetRequest', responseModules: Object.freeze(['WASmaxInProfilePictureGetResponseError', 'WASmaxInProfilePictureGetResponseSuccessAvatarURLs', 'WASmaxInProfilePictureGetResponseSuccessNoData', 'WASmaxInProfilePictureGetResponseSuccessPictureBlob', 'WASmaxInProfilePictureGetResponseSuccessPictureURL']) }),
|
|
37
|
+
GetAccessTokenAndSessionCookies: Object.freeze({ module: 'WASmaxBizCtwaAdAccountGetAccessTokenAndSessionCookiesRPC', opName: 'GetAccessTokenAndSessionCookies', rootTag: 'iq', xmlns: 'fb:thrift_iq', type: 'get', requestModule: 'WASmaxOutBizCtwaAdAccountGetAccessTokenAndSessionCookiesRequest', responseModules: Object.freeze(['WASmaxInBizCtwaAdAccountGetAccessTokenAndSessionCookiesResponseError', 'WASmaxInBizCtwaAdAccountGetAccessTokenAndSessionCookiesResponseIncorrectNonce', 'WASmaxInBizCtwaAdAccountGetAccessTokenAndSessionCookiesResponseSuccess', 'WASmaxInBizCtwaAdAccountGetAccessTokenAndSessionCookiesResponseTooManyAttempts']) }),
|
|
38
|
+
GetAccountNonce: Object.freeze({ module: 'WASmaxBizLinkingGetAccountNonceRPC', opName: 'GetAccountNonce', rootTag: 'iq', xmlns: 'fb:thrift_iq', type: 'get', requestModule: 'WASmaxOutBizLinkingGetAccountNonceRequest', responseModules: Object.freeze(['WASmaxInBizLinkingGetAccountNonceResponseError', 'WASmaxInBizLinkingGetAccountNonceResponseSuccess']) }),
|
|
39
|
+
GetBlockList: Object.freeze({ module: 'WASmaxBlocklistsGetBlockListRPC', opName: 'GetBlockList', rootTag: 'iq', xmlns: 'blocklist', type: 'get', requestModule: 'WASmaxOutBlocklistsGetBlockListRequest', responseModules: Object.freeze(['WASmaxInBlocklistsGetBlockListResponseCAPISuccessWithMismatch', 'WASmaxInBlocklistsGetBlockListResponseForceMigratedSuccessWithMismatch', 'WASmaxInBlocklistsGetBlockListResponseInternalServerError', 'WASmaxInBlocklistsGetBlockListResponseInvalidRequest', 'WASmaxInBlocklistsGetBlockListResponseMigratedSuccessWithMismatch', 'WASmaxInBlocklistsGetBlockListResponseSuccessWithMatch', 'WASmaxInBlocklistsGetBlockListResponseSuccessWithMismatch']) }),
|
|
40
|
+
GetBusinessEligibility: Object.freeze({ module: 'WASmaxBizMarketingMessageGetBusinessEligibilityRPC', opName: 'GetBusinessEligibility', rootTag: 'iq', xmlns: 'w:biz', type: 'get', requestModule: 'WASmaxOutBizMarketingMessageGetBusinessEligibilityRequest', responseModules: Object.freeze(['WASmaxInBizMarketingMessageGetBusinessEligibilityResponseError', 'WASmaxInBizMarketingMessageGetBusinessEligibilityResponseSuccess']) }),
|
|
41
|
+
GetCertificate: Object.freeze({ module: 'WASmaxWaffleGetCertificateRPC', opName: 'GetCertificate', rootTag: 'iq', xmlns: 'waffle', type: 'get', requestModule: 'WASmaxOutWaffleGetCertificateRequest', responseModules: Object.freeze(['WASmaxInWaffleGetCertificateResponseError', 'WASmaxInWaffleGetCertificateResponseSuccess']) }),
|
|
42
|
+
GetContactBlacklist: Object.freeze({ module: 'WASmaxPrivacyGetContactBlacklistRPC', opName: 'GetContactBlacklist', rootTag: 'iq', xmlns: 'privacy', type: 'get', requestModule: 'WASmaxOutPrivacyGetContactBlacklistRequest', responseModules: Object.freeze(['WASmaxInPrivacyGetContactBlacklistResponseError', 'WASmaxInPrivacyGetContactBlacklistResponseSuccess', 'WASmaxInPrivacyGetContactBlacklistResponseSuccessLID']) }),
|
|
43
|
+
GetCountryCode: Object.freeze({ module: 'WASmaxMdGetCountryCodeRPC', opName: 'GetCountryCode', rootTag: 'iq', xmlns: 'md', type: 'get', requestModule: 'WASmaxOutMdGetCountryCodeRequest', responseModules: Object.freeze(['WASmaxInMdGetCountryCodeResponseError', 'WASmaxInMdGetCountryCodeResponseGetCountryCodeResponse']) }),
|
|
44
|
+
GetDisclosureStageByIds: Object.freeze({ module: 'WASmaxUserNoticeGetDisclosureStageByIdsRPC', opName: 'GetDisclosureStageByIds', rootTag: 'iq', xmlns: 'tos', type: 'get', requestModule: 'WASmaxOutUserNoticeGetDisclosureStageByIdsRequest', responseModules: Object.freeze(['WASmaxInUserNoticeGetDisclosureStageByIdsResponseClientError', 'WASmaxInUserNoticeGetDisclosureStageByIdsResponseClientSuccess', 'WASmaxInUserNoticeGetDisclosureStageByIdsResponseServerError']) }),
|
|
45
|
+
GetDisclosures: Object.freeze({ module: 'WASmaxUserNoticeGetDisclosuresRPC', opName: 'GetDisclosures', rootTag: 'iq', xmlns: 'tos', type: 'get', requestModule: 'WASmaxOutUserNoticeGetDisclosuresRequest', responseModules: Object.freeze(['WASmaxInUserNoticeGetDisclosuresResponseClientError', 'WASmaxInUserNoticeGetDisclosuresResponseClientSuccess', 'WASmaxInUserNoticeGetDisclosuresResponseServerError']) }),
|
|
46
|
+
GetExperimentConfig: Object.freeze({ module: 'WASmaxAbPropsGetExperimentConfigRPC', opName: 'GetExperimentConfig', rootTag: 'iq', xmlns: 'abt', type: 'get', requestModule: 'WASmaxOutAbPropsGetExperimentConfigRequest', responseModules: Object.freeze(['WASmaxInAbPropsGetExperimentConfigResponseErrorNoRetry', 'WASmaxInAbPropsGetExperimentConfigResponseErrorRetry', 'WASmaxInAbPropsGetExperimentConfigResponseSuccess']) }),
|
|
47
|
+
GetGroupExperimentConfig: Object.freeze({ module: 'WASmaxAbPropsGetGroupExperimentConfigRPC', opName: 'GetGroupExperimentConfig', rootTag: 'iq', xmlns: 'abt', type: 'get', requestModule: 'WASmaxOutAbPropsGetGroupExperimentConfigRequest', responseModules: Object.freeze(['WASmaxInAbPropsGetGroupExperimentConfigResponseErrorNoRetry', 'WASmaxInAbPropsGetGroupExperimentConfigResponseErrorRetry', 'WASmaxInAbPropsGetGroupExperimentConfigResponseSuccess']) }),
|
|
48
|
+
GetGroupInfo: Object.freeze({ module: 'WASmaxGroupsGetGroupInfoRPC', opName: 'GetGroupInfo', rootTag: 'iq', xmlns: 'w:g2', type: 'get', requestModule: 'WASmaxOutGroupsGetGroupInfoRequest', responseModules: Object.freeze(['WASmaxInGroupsGetGroupInfoResponseClientError', 'WASmaxInGroupsGetGroupInfoResponseServerError', 'WASmaxInGroupsGetGroupInfoResponseSuccess']) }),
|
|
49
|
+
GetGroupProfilePictures: Object.freeze({ module: 'WASmaxGroupsGetGroupProfilePicturesRPC', opName: 'GetGroupProfilePictures', rootTag: 'iq', xmlns: 'w:g2', type: null, requestModule: 'WASmaxOutGroupsGetGroupProfilePicturesRequest', responseModules: Object.freeze(['WASmaxInGroupsGetGroupProfilePicturesResponseClientError', 'WASmaxInGroupsGetGroupProfilePicturesResponseServerError', 'WASmaxInGroupsGetGroupProfilePicturesResponseSuccessGroupPictures']) }),
|
|
50
|
+
GetInviteGroupInfo: Object.freeze({ module: 'WASmaxGroupsGetInviteGroupInfoRPC', opName: 'GetInviteGroupInfo', rootTag: 'iq', xmlns: 'w:g2', type: 'get', requestModule: 'WASmaxOutGroupsGetInviteGroupInfoRequest', responseModules: Object.freeze(['WASmaxInGroupsGetInviteGroupInfoResponseClientError', 'WASmaxInGroupsGetInviteGroupInfoResponseServerError', 'WASmaxInGroupsGetInviteGroupInfoResponseSuccess']) }),
|
|
51
|
+
GetLinkedAccounts: Object.freeze({ module: 'WASmaxBizLinkingGetLinkedAccountsRPC', opName: 'GetLinkedAccounts', rootTag: 'iq', xmlns: 'fb:thrift_iq', type: 'get', requestModule: 'WASmaxOutBizLinkingGetLinkedAccountsRequest', responseModules: Object.freeze(['WASmaxInBizLinkingGetLinkedAccountsResponseError', 'WASmaxInBizLinkingGetLinkedAccountsResponseForbidden', 'WASmaxInBizLinkingGetLinkedAccountsResponseSuccess']) }),
|
|
52
|
+
GetLinkedGroup: Object.freeze({ module: 'WASmaxGroupsGetLinkedGroupRPC', opName: 'GetLinkedGroup', rootTag: 'iq', xmlns: 'w:g2', type: 'get', requestModule: 'WASmaxOutGroupsGetLinkedGroupRequest', responseModules: Object.freeze(['WASmaxInGroupsGetLinkedGroupResponseClientError', 'WASmaxInGroupsGetLinkedGroupResponseServerError', 'WASmaxInGroupsGetLinkedGroupResponseSuccess']) }),
|
|
53
|
+
GetLinkedGroupsParticipants: Object.freeze({ module: 'WASmaxGroupsGetLinkedGroupsParticipantsRPC', opName: 'GetLinkedGroupsParticipants', rootTag: 'iq', xmlns: 'w:g2', type: 'get', requestModule: 'WASmaxOutGroupsGetLinkedGroupsParticipantsRequest', responseModules: Object.freeze(['WASmaxInGroupsGetLinkedGroupsParticipantsResponseClientError', 'WASmaxInGroupsGetLinkedGroupsParticipantsResponseServerError', 'WASmaxInGroupsGetLinkedGroupsParticipantsResponseSuccess']) }),
|
|
54
|
+
GetMembershipApprovalRequests: Object.freeze({ module: 'WASmaxGroupsGetMembershipApprovalRequestsRPC', opName: 'GetMembershipApprovalRequests', rootTag: 'iq', xmlns: 'w:g2', type: 'get', requestModule: 'WASmaxOutGroupsGetMembershipApprovalRequestsRequest', responseModules: Object.freeze(['WASmaxInGroupsGetMembershipApprovalRequestsResponseClientError', 'WASmaxInGroupsGetMembershipApprovalRequestsResponseServerError', 'WASmaxInGroupsGetMembershipApprovalRequestsResponseSuccess']) }),
|
|
55
|
+
GetNewsletterMessageUpdates: Object.freeze({ module: 'WASmaxNewslettersGetNewsletterMessageUpdatesRPC', opName: 'GetNewsletterMessageUpdates', rootTag: 'iq', xmlns: 'newsletter', type: 'get', requestModule: 'WASmaxOutNewslettersGetNewsletterMessageUpdatesRequest', responseModules: Object.freeze(['WASmaxInNewslettersGetNewsletterMessageUpdatesResponseClientError', 'WASmaxInNewslettersGetNewsletterMessageUpdatesResponseServerError', 'WASmaxInNewslettersGetNewsletterMessageUpdatesResponseSuccess']) }),
|
|
56
|
+
GetNewsletterMessages: Object.freeze({ module: 'WASmaxNewslettersGetNewsletterMessagesRPC', opName: 'GetNewsletterMessages', rootTag: 'iq', xmlns: 'newsletter', type: 'get', requestModule: 'WASmaxOutNewslettersGetNewsletterMessagesRequest', responseModules: Object.freeze(['WASmaxInNewslettersGetNewsletterMessagesResponseClientError', 'WASmaxInNewslettersGetNewsletterMessagesResponseServerError', 'WASmaxInNewslettersGetNewsletterMessagesResponseSuccess']) }),
|
|
57
|
+
GetNewsletterResponses: Object.freeze({ module: 'WASmaxNewslettersGetNewsletterResponsesRPC', opName: 'GetNewsletterResponses', rootTag: 'iq', xmlns: 'newsletter', type: 'get', requestModule: 'WASmaxOutNewslettersGetNewsletterResponsesRequest', responseModules: Object.freeze(['WASmaxInNewslettersGetNewsletterResponsesResponseClientError', 'WASmaxInNewslettersGetNewsletterResponsesResponseServerError', 'WASmaxInNewslettersGetNewsletterResponsesResponseSuccess']) }),
|
|
58
|
+
GetNewsletterStatusUpdates: Object.freeze({ module: 'WASmaxNewslettersGetNewsletterStatusUpdatesRPC', opName: 'GetNewsletterStatusUpdates', rootTag: 'iq', xmlns: 'newsletter', type: 'get', requestModule: 'WASmaxOutNewslettersGetNewsletterStatusUpdatesRequest', responseModules: Object.freeze(['WASmaxInNewslettersGetNewsletterStatusUpdatesResponseClientError', 'WASmaxInNewslettersGetNewsletterStatusUpdatesResponseServerError', 'WASmaxInNewslettersGetNewsletterStatusUpdatesResponseSuccess']) }),
|
|
59
|
+
GetNewsletterStatuses: Object.freeze({ module: 'WASmaxNewslettersGetNewsletterStatusesRPC', opName: 'GetNewsletterStatuses', rootTag: 'iq', xmlns: 'newsletter', type: 'get', requestModule: 'WASmaxOutNewslettersGetNewsletterStatusesRequest', responseModules: Object.freeze(['WASmaxInNewslettersGetNewsletterStatusesResponseClientError', 'WASmaxInNewslettersGetNewsletterStatusesResponseServerError', 'WASmaxInNewslettersGetNewsletterStatusesResponseSuccess']) }),
|
|
60
|
+
GetOptOutList: Object.freeze({ module: 'WASmaxBlocklistsGetOptOutListRPC', opName: 'GetOptOutList', rootTag: 'iq', xmlns: 'optoutlist', type: 'get', requestModule: 'WASmaxOutBlocklistsGetOptOutListRequest', responseModules: Object.freeze(['WASmaxInBlocklistsGetOptOutListResponseInternalServerError', 'WASmaxInBlocklistsGetOptOutListResponseInvalidRequest', 'WASmaxInBlocklistsGetOptOutListResponseSuccessWithMatch', 'WASmaxInBlocklistsGetOptOutListResponseSuccessWithMismatch']) }),
|
|
61
|
+
GetParticipatingGroups: Object.freeze({ module: 'WASmaxGroupsGetParticipatingGroupsRPC', opName: 'GetParticipatingGroups', rootTag: 'iq', xmlns: 'w:g2', type: 'get', requestModule: 'WASmaxOutGroupsGetParticipatingGroupsRequest', responseModules: Object.freeze(['WASmaxInGroupsGetParticipatingGroupsResponseClientError', 'WASmaxInGroupsGetParticipatingGroupsResponseServerError', 'WASmaxInGroupsGetParticipatingGroupsResponseSuccess']) }),
|
|
62
|
+
GetPrivacySetting: Object.freeze({ module: 'WASmaxBizSettingsGetPrivacySettingRPC', opName: 'GetPrivacySetting', rootTag: 'iq', xmlns: 'w:biz', type: 'get', requestModule: 'WASmaxOutBizSettingsGetPrivacySettingRequest', responseModules: Object.freeze(['WASmaxInBizSettingsGetPrivacySettingResponseError', 'WASmaxInBizSettingsGetPrivacySettingResponseSuccess']) }),
|
|
63
|
+
GetReportedMessages: Object.freeze({ module: 'WASmaxGroupsGetReportedMessagesRPC', opName: 'GetReportedMessages', rootTag: 'iq', xmlns: 'w:g2', type: 'get', requestModule: 'WASmaxOutGroupsGetReportedMessagesRequest', responseModules: Object.freeze(['WASmaxInGroupsGetReportedMessagesResponseClientError', 'WASmaxInGroupsGetReportedMessagesResponseServerError', 'WASmaxInGroupsGetReportedMessagesResponseSuccess']) }),
|
|
64
|
+
GetSMBMeteredMessagingCheckout: Object.freeze({ module: 'WASmaxSmbMeteredMessagingAccountGetSMBMeteredMessagingCheckoutRPC', opName: 'GetSMBMeteredMessagingCheckout', rootTag: 'iq', xmlns: 'w:biz', type: 'get', requestModule: 'WASmaxOutSmbMeteredMessagingAccountGetSMBMeteredMessagingCheckoutRequest', responseModules: Object.freeze(['WASmaxInSmbMeteredMessagingAccountGetSMBMeteredMessagingCheckoutResponseError', 'WASmaxInSmbMeteredMessagingAccountGetSMBMeteredMessagingCheckoutResponseSuccess']) }),
|
|
65
|
+
GroupReport: Object.freeze({ module: 'WASmaxSpamGroupReportRPC', opName: 'GroupReport', rootTag: 'iq', xmlns: 'spam', type: 'set', requestModule: 'WASmaxOutSpamGroupReportRequest', responseModules: Object.freeze(['WASmaxInSpamGroupReportResponseError', 'WASmaxInSpamGroupReportResponseSuccess']) }),
|
|
66
|
+
GroupsDirtyNotification: Object.freeze({ module: 'WASmaxGroupsGroupsDirtyNotificationRPC', opName: 'GroupsDirtyNotification', rootTag: 'notification', xmlns: null, type: null, requestModule: null, responseModules: Object.freeze(['WASmaxInGroupsGroupsDirtyNotificationRequest']) }),
|
|
67
|
+
IncomingNewsletterStatus: Object.freeze({ module: 'WASmaxStatusDeliverIncomingNewsletterStatusRPC', opName: 'IncomingNewsletterStatus', rootTag: 'status', xmlns: null, type: null, requestModule: null, responseModules: Object.freeze(['WASmaxInStatusDeliverIncomingNewsletterStatusRequest']) }),
|
|
68
|
+
IndividualReport: Object.freeze({ module: 'WASmaxSpamIndividualReportRPC', opName: 'IndividualReport', rootTag: 'iq', xmlns: 'spam', type: 'set', requestModule: 'WASmaxOutSpamIndividualReportRequest', responseModules: Object.freeze(['WASmaxInSpamIndividualReportResponseError', 'WASmaxInSpamIndividualReportResponseSuccess']) }),
|
|
69
|
+
JoinLinkedGroup: Object.freeze({ module: 'WASmaxGroupsJoinLinkedGroupRPC', opName: 'JoinLinkedGroup', rootTag: 'iq', xmlns: 'w:g2', type: 'set', requestModule: 'WASmaxOutGroupsJoinLinkedGroupRequest', responseModules: Object.freeze(['WASmaxInGroupsJoinLinkedGroupResponseClientError', 'WASmaxInGroupsJoinLinkedGroupResponseGroupJoinRequestSuccess', 'WASmaxInGroupsJoinLinkedGroupResponseServerError', 'WASmaxInGroupsJoinLinkedGroupResponseSuccess']) }),
|
|
70
|
+
LinkCreate: Object.freeze({ module: 'WASmaxVoipLinkCreateRPC', opName: 'LinkCreate', rootTag: 'call', xmlns: null, type: null, requestModule: 'WASmaxOutVoipLinkCreateRequest', responseModules: Object.freeze(['WASmaxInVoipLinkCreateResponseLinkCreateAck', 'WASmaxInVoipLinkCreateResponseLinkCreateNack']) }),
|
|
71
|
+
LinkQuery: Object.freeze({ module: 'WASmaxVoipLinkQueryRPC', opName: 'LinkQuery', rootTag: 'call', xmlns: null, type: null, requestModule: 'WASmaxOutVoipLinkQueryRequest', responseModules: Object.freeze(['WASmaxInVoipLinkQueryResponseLinkQueryAck', 'WASmaxInVoipLinkQueryResponseLinkQueryNack']) }),
|
|
72
|
+
LinkSubGroups: Object.freeze({ module: 'WASmaxGroupsLinkSubGroupsRPC', opName: 'LinkSubGroups', rootTag: 'iq', xmlns: 'w:g2', type: 'set', requestModule: 'WASmaxOutGroupsLinkSubGroupsRequest', responseModules: Object.freeze(['WASmaxInGroupsLinkSubGroupsResponseClientError', 'WASmaxInGroupsLinkSubGroupsResponseServerError', 'WASmaxInGroupsLinkSubGroupsResponseSuccess']) }),
|
|
73
|
+
LiveUpdatesNotification: Object.freeze({ module: 'WASmaxNewslettersLiveUpdatesNotificationRPC', opName: 'LiveUpdatesNotification', rootTag: 'notification', xmlns: null, type: null, requestModule: null, responseModules: Object.freeze(['WASmaxInNewslettersLiveUpdatesNotificationRequest']) }),
|
|
74
|
+
MembershipRequestsAction: Object.freeze({ module: 'WASmaxGroupsMembershipRequestsActionRPC', opName: 'MembershipRequestsAction', rootTag: 'iq', xmlns: 'w:g2', type: 'set', requestModule: 'WASmaxOutGroupsMembershipRequestsActionRequest', responseModules: Object.freeze(['WASmaxInGroupsMembershipRequestsActionResponseClientError', 'WASmaxInGroupsMembershipRequestsActionResponseServerError', 'WASmaxInGroupsMembershipRequestsActionResponseSuccess']) }),
|
|
75
|
+
MyAddOns: Object.freeze({ module: 'WASmaxNewslettersMyAddOnsRPC', opName: 'MyAddOns', rootTag: 'iq', xmlns: 'newsletter', type: 'get', requestModule: 'WASmaxOutNewslettersMyAddOnsRequest', responseModules: Object.freeze(['WASmaxInNewslettersMyAddOnsResponseClientError', 'WASmaxInNewslettersMyAddOnsResponseServerError', 'WASmaxInNewslettersMyAddOnsResponseSuccess']) }),
|
|
76
|
+
NewsletterReport: Object.freeze({ module: 'WASmaxSpamNewsletterReportRPC', opName: 'NewsletterReport', rootTag: 'iq', xmlns: 'spam', type: 'set', requestModule: 'WASmaxOutSpamNewsletterReportRequest', responseModules: Object.freeze(['WASmaxInSpamNewsletterReportResponseError', 'WASmaxInSpamNewsletterReportResponseSuccess']) }),
|
|
77
|
+
NonceNotification: Object.freeze({ module: 'WASmaxBizCtwaAdAccountNonceNotificationRPC', opName: 'NonceNotification', rootTag: 'notification', xmlns: null, type: null, requestModule: null, responseModules: Object.freeze(['WASmaxInBizCtwaAdAccountNonceNotificationRequest']) }),
|
|
78
|
+
OffboardingNotification: Object.freeze({ module: 'WASmaxCoexistenceOffboardingNotificationRPC', opName: 'OffboardingNotification', rootTag: 'notification', xmlns: null, type: null, requestModule: null, responseModules: Object.freeze(['WASmaxInCoexistenceOffboardingNotificationRequest']) }),
|
|
79
|
+
OnboardingStatusNotification: Object.freeze({ module: 'WASmaxCoexistenceOnboardingStatusNotificationRPC', opName: 'OnboardingStatusNotification', rootTag: 'notification', xmlns: null, type: null, requestModule: null, responseModules: Object.freeze(['WASmaxInCoexistenceOnboardingStatusNotificationRequest']) }),
|
|
80
|
+
OutSet: Object.freeze({ module: 'WASmaxOutUserNoticeSetRequest', opName: 'Set', rootTag: 'iq', xmlns: 'tos', type: 'set', requestModule: 'WASmaxOutUserNoticeSetRequest', responseModules: Object.freeze(['WASmaxInUserNoticeSetResponseClientError', 'WASmaxInUserNoticeSetResponseServerError', 'WASmaxInUserNoticeSetResponseSuccess']) }),
|
|
81
|
+
PassiveIQ: Object.freeze({ module: 'WASmaxPassiveModePassiveIQRPC', opName: 'PassiveIQ', rootTag: 'iq', xmlns: 'passive', type: 'set', requestModule: 'WASmaxOutPassiveModePassiveIQRequest', responseModules: Object.freeze(['WASmaxInPassiveModePassiveIQResponseSuccess']) }),
|
|
82
|
+
PostNewsletterStatus: Object.freeze({ module: 'WASmaxStatusPublishPostNewsletterStatusRPC', opName: 'PostNewsletterStatus', rootTag: 'status', xmlns: null, type: 'reaction', requestModule: 'WASmaxOutStatusPublishPostNewsletterStatusRequest', responseModules: Object.freeze(['WASmaxInStatusPublishPostNewsletterStatusResponseNegative', 'WASmaxInStatusPublishPostNewsletterStatusResponseSuccess']) }),
|
|
83
|
+
PrimaryHelloNotifyCompanion: Object.freeze({ module: 'WASmaxMdPrimaryHelloNotifyCompanionRPC', opName: 'PrimaryHelloNotifyCompanion', rootTag: 'notification', xmlns: null, type: null, requestModule: null, responseModules: Object.freeze(['WASmaxInMdPrimaryHelloNotifyCompanionRequest']) }),
|
|
84
|
+
PromoteDemote: Object.freeze({ module: 'WASmaxGroupsPromoteDemoteRPC', opName: 'PromoteDemote', rootTag: 'iq', xmlns: 'w:g2', type: 'set', requestModule: 'WASmaxOutGroupsPromoteDemoteRequest', responseModules: Object.freeze(['WASmaxInGroupsPromoteDemoteResponseClientError', 'WASmaxInGroupsPromoteDemoteResponseServerError', 'WASmaxInGroupsPromoteDemoteResponseSuccessDemote', 'WASmaxInGroupsPromoteDemoteResponseSuccessPromote']) }),
|
|
85
|
+
PromoteDemoteAdmin: Object.freeze({ module: 'WASmaxGroupsPromoteDemoteAdminRPC', opName: 'PromoteDemoteAdmin', rootTag: 'iq', xmlns: 'w:g2', type: 'set', requestModule: 'WASmaxOutGroupsPromoteDemoteAdminRequest', responseModules: Object.freeze(['WASmaxInGroupsPromoteDemoteAdminResponseClientError', 'WASmaxInGroupsPromoteDemoteAdminResponseServerError', 'WASmaxInGroupsPromoteDemoteAdminResponseSuccessMultiAdmin']) }),
|
|
86
|
+
PublishNewsletter: Object.freeze({ module: 'WASmaxMessagePublishNewsletterRPC', opName: 'Newsletter', rootTag: 'message', xmlns: null, type: 'text', requestModule: 'WASmaxOutMessagePublishNewsletterRequest', responseModules: Object.freeze(['WASmaxInMessagePublishNewsletterResponseNegative', 'WASmaxInMessagePublishNewsletterResponseSuccess']) }),
|
|
87
|
+
PublishView: Object.freeze({ module: 'WASmaxReceiptPublishViewRPC', opName: 'PublishView', rootTag: 'receipt', xmlns: null, type: 'view', requestModule: 'WASmaxOutReceiptPublishViewRequest', responseModules: Object.freeze(['WASmaxInReceiptPublishViewResponseSuccess']) }),
|
|
88
|
+
QPNotification: Object.freeze({ module: 'WASmaxQpSurfacesQPNotificationRPC', opName: 'QPNotification', rootTag: 'notification', xmlns: null, type: null, requestModule: null, responseModules: Object.freeze(['WASmaxInQpSurfacesQPNotificationRequest']) }),
|
|
89
|
+
RefreshAccessTokens: Object.freeze({ module: 'WASmaxWaffleRefreshAccessTokensRPC', opName: 'RefreshAccessTokens', rootTag: 'iq', xmlns: 'waffle', type: 'get', requestModule: 'WASmaxOutWaffleRefreshAccessTokensRequest', responseModules: Object.freeze(['WASmaxInWaffleRefreshAccessTokensResponseError', 'WASmaxInWaffleRefreshAccessTokensResponseSuccess']) }),
|
|
90
|
+
RefreshCodeNotifyCompanion: Object.freeze({ module: 'WASmaxMdRefreshCodeNotifyCompanionRPC', opName: 'RefreshCodeNotifyCompanion', rootTag: 'notification', xmlns: null, type: null, requestModule: null, responseModules: Object.freeze(['WASmaxInMdRefreshCodeNotifyCompanionRequest']) }),
|
|
91
|
+
RemoveParticipants: Object.freeze({ module: 'WASmaxGroupsRemoveParticipantsRPC', opName: 'RemoveParticipants', rootTag: 'iq', xmlns: 'w:g2', type: 'set', requestModule: 'WASmaxOutGroupsRemoveParticipantsRequest', responseModules: Object.freeze(['WASmaxInGroupsRemoveParticipantsResponseClientError', 'WASmaxInGroupsRemoveParticipantsResponseServerError', 'WASmaxInGroupsRemoveParticipantsResponseSuccess']) }),
|
|
92
|
+
ReportBug: Object.freeze({ module: 'WASmaxBugReportingReportBugRPC', opName: 'ReportBug', rootTag: 'iq', xmlns: 'fb:thrift_iq', type: 'set', requestModule: 'WASmaxOutBugReportingReportBugRequest', responseModules: Object.freeze(['WASmaxInBugReportingReportBugResponseError', 'WASmaxInBugReportingReportBugResponseSuccess']) }),
|
|
93
|
+
ReportMessages: Object.freeze({ module: 'WASmaxGroupsReportMessagesRPC', opName: 'ReportMessages', rootTag: 'iq', xmlns: 'w:g2', type: 'set', requestModule: 'WASmaxOutGroupsReportMessagesRequest', responseModules: Object.freeze(['WASmaxInGroupsReportMessagesResponseClientError', 'WASmaxInGroupsReportMessagesResponseServerError', 'WASmaxInGroupsReportMessagesResponseSuccess']) }),
|
|
94
|
+
RequestSilentNonce: Object.freeze({ module: 'WASmaxBizAccessTokenRequestSilentNonceRPC', opName: 'RequestSilentNonce', rootTag: 'iq', xmlns: 'fb:thrift_iq', type: 'get', requestModule: 'WASmaxOutBizAccessTokenRequestSilentNonceRequest', responseModules: Object.freeze(['WASmaxInBizAccessTokenRequestSilentNonceResponseError', 'WASmaxInBizAccessTokenRequestSilentNonceResponseRecoveryRequired', 'WASmaxInBizAccessTokenRequestSilentNonceResponseSuccess']) }),
|
|
95
|
+
ResetSmbLastQpPrefetchTimestamp: Object.freeze({ module: 'WASmaxPsaResetSmbLastQpPrefetchTimestampRPC', opName: 'ResetSmbLastQpPrefetchTimestamp', rootTag: 'notification', xmlns: null, type: null, requestModule: null, responseModules: Object.freeze(['WASmaxInPsaResetSmbLastQpPrefetchTimestampRequest']) }),
|
|
96
|
+
RevokeRequestCode: Object.freeze({ module: 'WASmaxGroupsRevokeRequestCodeRPC', opName: 'RevokeRequestCode', rootTag: 'iq', xmlns: 'w:g2', type: 'set', requestModule: 'WASmaxOutGroupsRevokeRequestCodeRequest', responseModules: Object.freeze(['WASmaxInGroupsRevokeRequestCodeResponseClientError', 'WASmaxInGroupsRevokeRequestCodeResponseServerError', 'WASmaxInGroupsRevokeRequestCodeResponseSuccess']) }),
|
|
97
|
+
SendAccountRecoveryNonce: Object.freeze({ module: 'WASmaxBizCtwaAdAccountSendAccountRecoveryNonceRPC', opName: 'SendAccountRecoveryNonce', rootTag: 'iq', xmlns: 'fb:thrift_iq', type: 'get', requestModule: 'WASmaxOutBizCtwaAdAccountSendAccountRecoveryNonceRequest', responseModules: Object.freeze(['WASmaxInBizCtwaAdAccountSendAccountRecoveryNonceResponseError', 'WASmaxInBizCtwaAdAccountSendAccountRecoveryNonceResponseSuccess']) }),
|
|
98
|
+
SendBuffer: Object.freeze({ module: 'WASmaxStatsSendBufferRPC', opName: 'SendBuffer', rootTag: 'iq', xmlns: 'w:stats', type: 'set', requestModule: 'WASmaxOutStatsSendBufferRequest', responseModules: Object.freeze(['WASmaxInStatsSendBufferResponseErrorNoRetry', 'WASmaxInStatsSendBufferResponseErrorRetry', 'WASmaxInStatsSendBufferResponseSuccess']) }),
|
|
99
|
+
SendFeedback: Object.freeze({ module: 'WASmaxSupportMessageFeedbackSendFeedbackRPC', opName: 'SendFeedback', rootTag: 'iq', xmlns: 'fb:thrift_iq', type: 'set', requestModule: 'WASmaxOutSupportMessageFeedbackSendFeedbackRequest', responseModules: Object.freeze(['WASmaxInSupportMessageFeedbackSendFeedbackResponseError', 'WASmaxInSupportMessageFeedbackSendFeedbackResponseSuccess']) }),
|
|
100
|
+
ServerNotification: Object.freeze({ module: 'WASmaxChatstateServerNotificationRPC', opName: 'ServerNotification', rootTag: 'chatstate', xmlns: null, type: null, requestModule: null, responseModules: Object.freeze(['WASmaxInChatstateServerNotificationRequest']) }),
|
|
101
|
+
ServerUpdate: Object.freeze({ module: 'WASmaxPresenceServerUpdateRPC', opName: 'ServerUpdate', rootTag: 'presence', xmlns: null, type: null, requestModule: null, responseModules: Object.freeze(['WASmaxInPresenceServerUpdateRequest']) }),
|
|
102
|
+
Set: Object.freeze({ module: 'WASmaxPushConfigSetRPC', opName: 'Set', rootTag: 'iq', xmlns: 'urn:xmpp:whatsapp:push', type: 'set', requestModule: 'WASmaxOutPushConfigSetRequest', responseModules: Object.freeze(['WASmaxInPushConfigSetResponseConflict', 'WASmaxInPushConfigSetResponseInternalServerError', 'WASmaxInPushConfigSetResponseSuccess']) }),
|
|
103
|
+
SetDescription: Object.freeze({ module: 'WASmaxGroupsSetDescriptionRPC', opName: 'SetDescription', rootTag: 'iq', xmlns: 'w:g2', type: 'set', requestModule: 'WASmaxOutGroupsSetDescriptionRequest', responseModules: Object.freeze(['WASmaxInGroupsSetDescriptionResponseClientError', 'WASmaxInGroupsSetDescriptionResponseServerError', 'WASmaxInGroupsSetDescriptionResponseSuccess']) }),
|
|
104
|
+
SetPaymentsTOSv3: Object.freeze({ module: 'WASmaxAccountSetPaymentsTOSv3RPC', opName: 'SetPaymentsTOSv3', rootTag: 'iq', xmlns: 'urn:xmpp:whatsapp:account', type: 'set', requestModule: 'WASmaxOutAccountSetPaymentsTOSv3Request', responseModules: Object.freeze(['WASmaxInAccountSetPaymentsTOSv3ResponseError', 'WASmaxInAccountSetPaymentsTOSv3ResponseSuccess']) }),
|
|
105
|
+
SetPrivacySetting: Object.freeze({ module: 'WASmaxBizSettingsSetPrivacySettingRPC', opName: 'SetPrivacySetting', rootTag: 'iq', xmlns: 'w:biz', type: 'set', requestModule: 'WASmaxOutBizSettingsSetPrivacySettingRequest', responseModules: Object.freeze(['WASmaxInBizSettingsSetPrivacySettingResponseError', 'WASmaxInBizSettingsSetPrivacySettingResponseSuccess']) }),
|
|
106
|
+
SetProperty: Object.freeze({ module: 'WASmaxGroupsSetPropertyRPC', opName: 'SetProperty', rootTag: 'iq', xmlns: 'w:g2', type: 'set', requestModule: 'WASmaxOutGroupsSetPropertyRequest', responseModules: Object.freeze(['WASmaxInGroupsSetPropertyResponseClientError', 'WASmaxInGroupsSetPropertyResponseServerError', 'WASmaxInGroupsSetPropertyResponseSuccess']) }),
|
|
107
|
+
SetReg: Object.freeze({ module: 'WASmaxMdSetRegRPC', opName: 'SetReg', rootTag: 'iq', xmlns: null, type: null, requestModule: null, responseModules: Object.freeze(['WASmaxInMdSetRegRequest']) }),
|
|
108
|
+
SetResult: Object.freeze({ module: 'WASmaxOutUserNoticeSetResultRequest', opName: 'SetResult', rootTag: 'iq', xmlns: 'tos', type: 'set', requestModule: 'WASmaxOutUserNoticeSetResultRequest', responseModules: Object.freeze(['WASmaxInUserNoticeSetResultResponseClientError', 'WASmaxInUserNoticeSetResultResponseServerError', 'WASmaxInUserNoticeSetResultResponseSuccess']) }),
|
|
109
|
+
SetSubject: Object.freeze({ module: 'WASmaxGroupsSetSubjectRPC', opName: 'SetSubject', rootTag: 'iq', xmlns: 'w:g2', type: 'set', requestModule: 'WASmaxOutGroupsSetSubjectRequest', responseModules: Object.freeze(['WASmaxInGroupsSetSubjectResponseClientError', 'WASmaxInGroupsSetSubjectResponseServerError', 'WASmaxInGroupsSetSubjectResponseSuccess']) }),
|
|
110
|
+
SetToCompanion: Object.freeze({ module: 'WASmaxMdSetToCompanionRPC', opName: 'SetToCompanion', rootTag: 'iq', xmlns: null, type: null, requestModule: null, responseModules: Object.freeze(['WASmaxInMdSetToCompanionRequest']) }),
|
|
111
|
+
Share: Object.freeze({ module: 'WASmaxUnifiedSessionShareRPC', opName: 'Share', rootTag: 'ib', xmlns: null, type: null, requestModule: 'WASmaxOutUnifiedSessionShareRequest', responseModules: Object.freeze([]) }),
|
|
112
|
+
SignCredential: Object.freeze({ module: 'WASmaxPrivatestatsSignCredentialRPC', opName: 'SignCredential', rootTag: 'iq', xmlns: 'privatestats', type: 'get', requestModule: 'WASmaxOutPrivatestatsSignCredentialRequest', responseModules: Object.freeze(['WASmaxInPrivatestatsSignCredentialResponseErrorNoRetry', 'WASmaxInPrivatestatsSignCredentialResponseErrorRetry', 'WASmaxInPrivatestatsSignCredentialResponseSuccess']) }),
|
|
113
|
+
StateExists: Object.freeze({ module: 'WASmaxWaffleStateExistsRPC', opName: 'StateExists', rootTag: 'iq', xmlns: 'waffle', type: 'get', requestModule: 'WASmaxOutWaffleStateExistsRequest', responseModules: Object.freeze(['WASmaxInWaffleStateExistsResponseError', 'WASmaxInWaffleStateExistsResponseSuccess']) }),
|
|
114
|
+
StatusReport: Object.freeze({ module: 'WASmaxSpamStatusReportRPC', opName: 'StatusReport', rootTag: 'iq', xmlns: 'spam', type: 'set', requestModule: 'WASmaxOutSpamStatusReportRequest', responseModules: Object.freeze(['WASmaxInSpamStatusReportResponseError', 'WASmaxInSpamStatusReportResponseSuccess']) }),
|
|
115
|
+
StatusReportV2: Object.freeze({ module: 'WASmaxSpamStatusReportV2RPC', opName: 'StatusReportV2', rootTag: 'iq', xmlns: 'spam', type: 'set', requestModule: 'WASmaxOutSpamStatusReportV2Request', responseModules: Object.freeze(['WASmaxInSpamStatusReportV2ResponseError', 'WASmaxInSpamStatusReportV2ResponseSuccess']) }),
|
|
116
|
+
SubGroupSuggestionsAction: Object.freeze({ module: 'WASmaxGroupsSubGroupSuggestionsActionRPC', opName: 'SubGroupSuggestionsAction', rootTag: 'iq', xmlns: 'w:g2', type: 'set', requestModule: 'WASmaxOutGroupsSubGroupSuggestionsActionRequest', responseModules: Object.freeze(['WASmaxInGroupsSubGroupSuggestionsActionResponseClientError', 'WASmaxInGroupsSubGroupSuggestionsActionResponseServerError', 'WASmaxInGroupsSubGroupSuggestionsActionResponseSuccess']) }),
|
|
117
|
+
Subscribe: Object.freeze({ module: 'WASmaxPresenceSubscribeRPC', opName: 'Subscribe', rootTag: 'presence', xmlns: null, type: 'subscribe', requestModule: 'WASmaxOutPresenceSubscribeRequest', responseModules: Object.freeze([]) }),
|
|
118
|
+
SubscribeToLiveUpdates: Object.freeze({ module: 'WASmaxNewslettersSubscribeToLiveUpdatesRPC', opName: 'SubscribeToLiveUpdates', rootTag: 'iq', xmlns: 'newsletter', type: 'set', requestModule: 'WASmaxOutNewslettersSubscribeToLiveUpdatesRequest', responseModules: Object.freeze(['WASmaxInNewslettersSubscribeToLiveUpdatesResponseClientError', 'WASmaxInNewslettersSubscribeToLiveUpdatesResponseServerError', 'WASmaxInNewslettersSubscribeToLiveUpdatesResponseSuccess']) }),
|
|
119
|
+
SyncPrivacySetting: Object.freeze({ module: 'WASmaxBizSettingsSyncPrivacySettingRPC', opName: 'SyncPrivacySetting', rootTag: 'notification', xmlns: null, type: null, requestModule: null, responseModules: Object.freeze(['WASmaxInBizSettingsSyncPrivacySettingRequest']) }),
|
|
120
|
+
UnlinkGroups: Object.freeze({ module: 'WASmaxGroupsUnlinkGroupsRPC', opName: 'UnlinkGroups', rootTag: 'iq', xmlns: 'w:g2', type: 'set', requestModule: 'WASmaxOutGroupsUnlinkGroupsRequest', responseModules: Object.freeze(['WASmaxInGroupsUnlinkGroupsResponseClientError', 'WASmaxInGroupsUnlinkGroupsResponseServerError', 'WASmaxInGroupsUnlinkGroupsResponseSuccess']) }),
|
|
121
|
+
UpdateBlockList: Object.freeze({ module: 'WASmaxBlocklistsUpdateBlockListRPC', opName: 'UpdateBlockList', rootTag: 'iq', xmlns: 'blocklist', type: 'set', requestModule: 'WASmaxOutBlocklistsUpdateBlockListRequest', responseModules: Object.freeze(['WASmaxInBlocklistsUpdateBlockListResponseCAPISuccessWithMismatch', 'WASmaxInBlocklistsUpdateBlockListResponseInvalidRequest', 'WASmaxInBlocklistsUpdateBlockListResponseMigratedSuccessWithMismatch', 'WASmaxInBlocklistsUpdateBlockListResponseServerError', 'WASmaxInBlocklistsUpdateBlockListResponseSuccessWithMatch', 'WASmaxInBlocklistsUpdateBlockListResponseSuccessWithMismatch']) }),
|
|
122
|
+
UpdateOptOutList: Object.freeze({ module: 'WASmaxBlocklistsUpdateOptOutListRPC', opName: 'UpdateOptOutList', rootTag: 'iq', xmlns: 'optoutlist', type: 'set', requestModule: 'WASmaxOutBlocklistsUpdateOptOutListRequest', responseModules: Object.freeze(['WASmaxInBlocklistsUpdateOptOutListResponseInvalidRequest', 'WASmaxInBlocklistsUpdateOptOutListResponseServerError', 'WASmaxInBlocklistsUpdateOptOutListResponseSuccessWithMatch', 'WASmaxInBlocklistsUpdateOptOutListResponseSuccessWithMismatch']) }),
|
|
123
|
+
UpdatePreference: Object.freeze({ module: 'WASmaxBizMsgUserFeedbackUpdatePreferenceRPC', opName: 'UpdatePreference', rootTag: 'iq', xmlns: 'w:biz:msg_feedback', type: 'set', requestModule: 'WASmaxOutBizMsgUserFeedbackUpdatePreferenceRequest', responseModules: Object.freeze(['WASmaxInBizMsgUserFeedbackUpdatePreferenceResponseInvalidRequest', 'WASmaxInBizMsgUserFeedbackUpdatePreferenceResponseServerError', 'WASmaxInBizMsgUserFeedbackUpdatePreferenceResponseSuccess']) }),
|
|
124
|
+
UploadAdMedia: Object.freeze({ module: 'WASmaxBizCtwaNativeAdUploadAdMediaRPC', opName: 'UploadAdMedia', rootTag: 'iq', xmlns: 'fb:thrift_iq', type: 'set', requestModule: 'WASmaxOutBizCtwaNativeAdUploadAdMediaRequest', responseModules: Object.freeze(['WASmaxInBizCtwaNativeAdUploadAdMediaResponseError', 'WASmaxInBizCtwaNativeAdUploadAdMediaResponseSuccess']) }),
|
|
125
|
+
WFPing: Object.freeze({ module: 'WASmaxWaffleWFPingRPC', opName: 'WFPing', rootTag: 'iq', xmlns: 'waffle', type: 'get', requestModule: 'WASmaxOutWaffleWFPingRequest', responseModules: Object.freeze(['WASmaxInWaffleWFPingResponseError', 'WASmaxInWaffleWFPingResponseSuccess']) }),
|
|
126
|
+
WaitingRoomToggleCallLink: Object.freeze({ module: 'WASmaxVoipWaitingRoomToggleCallLinkRPC', opName: 'WaitingRoomToggleCallLink', rootTag: 'call', xmlns: null, type: null, requestModule: 'WASmaxOutVoipWaitingRoomToggleCallLinkRequest', responseModules: Object.freeze(['WASmaxInVoipWaitingRoomToggleCallLinkResponseWaitingRoomToggleCallLinkAck', 'WASmaxInVoipWaitingRoomToggleCallLinkResponseWaitingRoomToggleCallLinkNack']) })
|
|
127
|
+
})
|
|
128
|
+
|
|
129
|
+
const WA_XML_STANZAS = Object.freeze({
|
|
130
|
+
call: Object.freeze({ tag: 'call', handler: Object.freeze({ module: 'WAWebHandleVoipCall', method: 'handleCall' }) }),
|
|
131
|
+
chatstate: Object.freeze({ tag: 'chatstate', handler: Object.freeze({ module: 'WACreateHandleChatState', method: 'createHandleChatState' }) }),
|
|
132
|
+
error: Object.freeze({ tag: 'error', handler: Object.freeze({ module: 'WABackendHandleError', method: 'handleError' }) }),
|
|
133
|
+
failure: Object.freeze({ tag: 'failure', handler: Object.freeze({ module: 'WAWebHandleFailure', method: 'default' }) }),
|
|
134
|
+
ib: Object.freeze({ tag: 'ib', handler: Object.freeze({ module: 'WAWebHandleInfoBulletin', method: 'default' }) }),
|
|
135
|
+
iq: Object.freeze({ tag: 'iq', discriminator: 'firstChildTag', variants: Object.freeze({ 'pair-device': Object.freeze({ module: 'WAWebHandlePairDevice', method: 'default' }), 'pair-success': Object.freeze({ module: 'WAWebHandlePairSuccess', method: 'default' }) }) }),
|
|
136
|
+
message: Object.freeze({ tag: 'message', discriminator: 'condition', variants: Object.freeze({ 'from-is-not-newsletter': Object.freeze({ module: 'WAWebHandleMsg', method: 'default' }), 'from-is-newsletter': Object.freeze({ module: 'WAWebHandleNewsletterMsg', method: 'default' }) }) }),
|
|
137
|
+
notification: Object.freeze({ tag: 'notification', discriminator: 'type', variants: Object.freeze({ server_sync: Object.freeze({ module: 'WAWebHandleServerSyncNotification', method: 'handleServerSyncNotification' }), picture: Object.freeze({ module: 'WAWebHandleProfilePicNotification', method: 'handleProfilePicNotificationJob' }), business: Object.freeze({ module: 'WAWebHandleBusinessNotification', method: 'handleBusinessNotificationJob' }), digital_commerce_subscription: Object.freeze({ module: 'WAWebHandleDigitalCommerceSubscriptionNotification', method: 'handleDigitalCommerceSubscriptionNotificationJob' }), contacts: Object.freeze({ module: 'WAWebHandleContactNotification', method: 'default' }), devices: Object.freeze({ module: 'WAWebHandleDeviceNotification', method: 'handleDevicesNotification' }), disappearing_mode: Object.freeze({ module: 'WAWebHandleDisappearingModeNotification', method: 'handleDisappearingModeNotificationJob' }), mediaretry: Object.freeze({ module: 'WAWebHandleMediaRetryNotification', method: 'default' }), 'encrypt/count': Object.freeze({ module: 'WAWebHandlePreKeyLow', method: 'default' }), 'encrypt/digest': Object.freeze({ module: 'WAWebHandleDigestKey', method: 'default' }), encrypt: Object.freeze({ module: 'WAWebHandlePreKeyLow', method: 'default' }), server: Object.freeze({ module: 'WAWebHandleServerNotification', method: 'handleServerNotification' }), status: Object.freeze({ module: 'WAWebHandleAboutNotification', method: 'handleAboutNotification' }), account_sync: Object.freeze({ module: 'WAWebHandleAccountSyncNotification', method: 'handleAccountSyncNotification' }), pay: Object.freeze({ module: 'WAWebPaymentNotificationHandler', method: 'handlePaymentNotification' }), 'psa/surfaces': Object.freeze({ module: 'WAWebHandleQPSurfacesNotification', method: 'handleQPSurfacesNotification' }), 'psa/reset_smb_last_qp_prefetch_timestamp': Object.freeze({ module: 'WAWebHandleQPPrefetchTimestampNotification', method: 'handleQPPrefetchTimestampNotification' }), 'psa/*': Object.freeze({ module: 'WAWebHandleWaChat', method: 'default' }), psa: Object.freeze({ module: 'WAWebHandlePsa', method: 'default' }), privacy_token: Object.freeze({ module: 'WAWebHandlePrivacyTokensNotification', method: 'default' }), link_code_companion_reg: Object.freeze({ module: 'WAWebAltDeviceLinkingHandleNotification', method: 'handleAltDeviceLinkingNotification' }), newsletter: Object.freeze({ module: 'WAWebHandleNewsletterNotification', method: 'default' }), 'w:growth': Object.freeze({ module: 'WAWebHandleGrowthNotification', method: 'default' }), registration: Object.freeze({ module: 'WAWebHandleDeviceSwitchingNotification', method: 'default' }), mex: Object.freeze({ module: 'WAWebHandleMexNotification', method: 'handleMexNotification' }), companion_reg_refresh: Object.freeze({ module: 'WAWebHandleCompanionReqRefreshNotification', method: 'handleCompanionReqRefreshNotification' }), waffle: Object.freeze({ module: 'WAWebAccountLinkingNotificationHandler', method: 'handleAccountLinkingNotification' }), 'fb:update': Object.freeze({ module: 'WAWebHandleBotProfileNotification', method: 'handleBotProfileNotification' }), hosted: Object.freeze({ module: 'WAWebHandleHostedNotification', method: 'handleHostedNotification' }), 'w:gp2': Object.freeze({ module: 'WAWebHandleGroupNotification', method: 'handleGroupNotification' }), 'encrypt/identity': Object.freeze({ module: 'WAWebHandleIdentityChange', method: 'handleE2eIdentityChange' }) }) }),
|
|
138
|
+
presence: Object.freeze({ tag: 'presence', handler: Object.freeze({ module: 'WAWebHandlePresence', method: 'default' }) }),
|
|
139
|
+
receipt: Object.freeze({ tag: 'receipt', discriminator: 'type', variants: Object.freeze({ retry: Object.freeze({ module: 'WAWebHandleMessageRetryRequest', method: 'handleMessageRetryRequest' }), enc_rekey_retry: Object.freeze({ module: 'WAWebHandleMessageRetryRequest', method: 'handleMessageRetryRequest' }), 'is-call-receipt': Object.freeze({ module: 'WAWebHandleVoipCallReceipt', method: 'handleCallReceipt' }), 'is-not-call-receipt': Object.freeze({ module: 'WAWebHandleMsgReceipt', method: 'default' }) }) }),
|
|
140
|
+
status: Object.freeze({ tag: 'status', handler: Object.freeze({ module: 'WAWebHandleNewsletterStatus', method: 'default' }) }),
|
|
141
|
+
'stream:error': Object.freeze({ tag: 'stream:error', handler: Object.freeze({ module: 'WAWebHandleStreamError', method: 'default' }) }),
|
|
142
|
+
success: Object.freeze({ tag: 'success', handler: Object.freeze({ module: 'WAWebHandleSuccess', method: 'default' }) }),
|
|
143
|
+
xmlstreamend: Object.freeze({ tag: 'xmlstreamend', handler: null })
|
|
144
|
+
})
|
|
145
|
+
|
|
146
|
+
module.exports = { WA_XML_OPERATIONS, WA_XML_STANZAS }
|
package/package.json
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@vinikjkkj/wa-xml",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "WhatsApp Web XML/stanza schemas — per-IQ-operation request + response trees (tag, attrs, children, content) recovered from Smax RPC modules (daily-extracted).",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"whatsapp",
|
|
7
|
+
"whatsapp-web",
|
|
8
|
+
"xml",
|
|
9
|
+
"xmpp",
|
|
10
|
+
"stanza",
|
|
11
|
+
"wapnode",
|
|
12
|
+
"smax",
|
|
13
|
+
"wa-spec"
|
|
14
|
+
],
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"author": {
|
|
17
|
+
"name": "vinikjkkj",
|
|
18
|
+
"url": "https://github.com/vinikjkkj"
|
|
19
|
+
},
|
|
20
|
+
"homepage": "https://github.com/vinikjkkj/wa-spec/tree/main/packages/xml#readme",
|
|
21
|
+
"bugs": {
|
|
22
|
+
"url": "https://github.com/vinikjkkj/wa-spec/issues"
|
|
23
|
+
},
|
|
24
|
+
"repository": {
|
|
25
|
+
"type": "git",
|
|
26
|
+
"url": "git+https://github.com/vinikjkkj/wa-spec.git",
|
|
27
|
+
"directory": "packages/xml"
|
|
28
|
+
},
|
|
29
|
+
"funding": [
|
|
30
|
+
{
|
|
31
|
+
"type": "github",
|
|
32
|
+
"url": "https://github.com/sponsors/vinikjkkj"
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"main": "index.js",
|
|
36
|
+
"types": "index.d.ts",
|
|
37
|
+
"sideEffects": false,
|
|
38
|
+
"files": [
|
|
39
|
+
"index.js",
|
|
40
|
+
"index.d.ts",
|
|
41
|
+
"README.md"
|
|
42
|
+
],
|
|
43
|
+
"scripts": {
|
|
44
|
+
"apply": "node ./scripts/apply.cjs"
|
|
45
|
+
},
|
|
46
|
+
"engines": {
|
|
47
|
+
"node": ">=20.9.0"
|
|
48
|
+
},
|
|
49
|
+
"publishConfig": {
|
|
50
|
+
"access": "public"
|
|
51
|
+
}
|
|
52
|
+
}
|