@vinikjkkj/wa-xml 0.1.0 → 2.3000.1040208462-0fb3e58

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 (3) hide show
  1. package/index.d.ts +108 -2
  2. package/index.js +3 -1
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  // AUTO-GENERATED — do not edit. Regenerated daily by wa-spec.
2
- // WhatsApp Version: 2.3000.1040100380
2
+ // WhatsApp Version: 2.3000.1040208462
3
3
 
4
4
  export interface WaXmlOperationSummary {
5
5
  readonly module: string
@@ -15,7 +15,7 @@ export declare const WA_XML_OPERATIONS: {
15
15
  readonly [K in WaXmlOperationKey]: WaXmlOperationSummary
16
16
  }
17
17
 
18
- export type WaXmlOperationKey = 'AcceptGroupAdd' | 'AcknowledgeGroup' | 'ActiveIQ' | 'AddParticipants' | 'Availability' | 'BannerSuggestion' | 'Batch' | 'BatchGetGroupInfo' | 'BotList' | 'CampaignStateChangedNotification' | 'CancelGroupMembershipRequests' | 'ChatBlockGet' | 'ChatBlockSet' | 'Client' | 'ClientExpiration' | 'ClientNotification' | 'CompanionFinish' | 'CompanionHello' | 'ContactForm' | 'Create' | 'CreateCustomPaymentMethod' | 'CreateSubGroupSuggestion' | 'DeleteParentGroup' | 'DeliverNewsletter' | 'EncryptedPayloadRequest' | 'Event' | 'FetchKeyBundles' | 'FetchMissingPreKeys' | 'GenerateAccessTokens' | 'GenerateWAEntACUser' | 'Get' | 'GetAccessTokenAndSessionCookies' | 'GetAccountNonce' | 'GetBlockList' | 'GetBusinessEligibility' | 'GetCertificate' | 'GetContactBlacklist' | 'GetCountryCode' | 'GetDisclosureStageByIds' | 'GetDisclosures' | 'GetExperimentConfig' | 'GetGroupExperimentConfig' | 'GetGroupInfo' | 'GetGroupProfilePictures' | 'GetInviteGroupInfo' | 'GetLinkedAccounts' | 'GetLinkedGroup' | 'GetLinkedGroupsParticipants' | 'GetMembershipApprovalRequests' | 'GetNewsletterMessageUpdates' | 'GetNewsletterMessages' | 'GetNewsletterResponses' | 'GetNewsletterStatusUpdates' | 'GetNewsletterStatuses' | 'GetOptOutList' | 'GetParticipatingGroups' | 'GetPrivacySetting' | 'GetReportedMessages' | 'GetSMBMeteredMessagingCheckout' | 'GroupReport' | 'GroupsDirtyNotification' | 'IncomingNewsletterStatus' | 'IndividualReport' | 'JoinLinkedGroup' | 'LinkCreate' | 'LinkQuery' | 'LinkSubGroups' | 'LiveUpdatesNotification' | 'MembershipRequestsAction' | 'MyAddOns' | 'NewsletterReport' | 'NonceNotification' | 'OffboardingNotification' | 'OnboardingStatusNotification' | 'OutSet' | 'PassiveIQ' | 'PostNewsletterStatus' | 'PrimaryHelloNotifyCompanion' | 'PromoteDemote' | 'PromoteDemoteAdmin' | 'PublishNewsletter' | 'PublishView' | 'QPNotification' | 'RefreshAccessTokens' | 'RefreshCodeNotifyCompanion' | 'RemoveParticipants' | 'ReportBug' | 'ReportMessages' | 'RequestSilentNonce' | 'ResetSmbLastQpPrefetchTimestamp' | 'RevokeRequestCode' | 'SendAccountRecoveryNonce' | 'SendBuffer' | 'SendFeedback' | 'ServerNotification' | 'ServerUpdate' | 'Set' | 'SetDescription' | 'SetPaymentsTOSv3' | 'SetPrivacySetting' | 'SetProperty' | 'SetReg' | 'SetResult' | 'SetSubject' | 'SetToCompanion' | 'Share' | 'SignCredential' | 'StateExists' | 'StatusReport' | 'StatusReportV2' | 'SubGroupSuggestionsAction' | 'Subscribe' | 'SubscribeToLiveUpdates' | 'SyncPrivacySetting' | 'UnlinkGroups' | 'UpdateBlockList' | 'UpdateOptOutList' | 'UpdatePreference' | 'UploadAdMedia' | 'WFPing' | 'WaitingRoomToggleCallLink'
18
+ export type WaXmlOperationKey = 'AcceptGroupAdd' | 'AcknowledgeGroup' | 'ActiveIQ' | 'AddParticipants' | 'Availability' | 'BannerSuggestion' | 'Batch' | 'BatchGetGroupInfo' | 'BotList' | 'CampaignStateChangedNotification' | 'CancelGroupMembershipRequests' | 'ChatBlockGet' | 'ChatBlockSet' | 'Client' | 'ClientExpiration' | 'ClientNotification' | 'CompanionFinish' | 'CompanionHello' | 'ContactForm' | 'Create' | 'CreateCustomPaymentMethod' | 'CreateSubGroupSuggestion' | 'DeleteParentGroup' | 'DeliverNewsletter' | 'EncryptedPayloadRequest' | 'Event' | 'FetchKeyBundles' | 'FetchMissingPreKeys' | 'ForceDeleteState' | 'ForceSuspendState' | 'GenerateAccessTokens' | 'GenerateWAEntACUser' | 'Get' | 'GetAccessTokenAndSessionCookies' | 'GetAccountNonce' | 'GetBlockList' | 'GetBusinessEligibility' | 'GetCertificate' | 'GetContactBlacklist' | 'GetCountryCode' | 'GetDisclosureStageByIds' | 'GetDisclosures' | 'GetExperimentConfig' | 'GetGroupExperimentConfig' | 'GetGroupInfo' | 'GetGroupProfilePictures' | 'GetInviteGroupInfo' | 'GetLinkedAccounts' | 'GetLinkedGroup' | 'GetLinkedGroupsParticipants' | 'GetMembershipApprovalRequests' | 'GetNewsletterMessageUpdates' | 'GetNewsletterMessages' | 'GetNewsletterResponses' | 'GetNewsletterStatusUpdates' | 'GetNewsletterStatuses' | 'GetOptOutList' | 'GetParticipatingGroups' | 'GetPrivacySetting' | 'GetReportedMessages' | 'GetSMBMeteredMessagingCheckout' | 'GroupReport' | 'GroupsDirtyNotification' | 'IncomingNewsletterStatus' | 'IndividualReport' | 'JoinLinkedGroup' | 'LinkCreate' | 'LinkQuery' | 'LinkSubGroups' | 'LiveUpdatesNotification' | 'MembershipRequestsAction' | 'MyAddOns' | 'NewsletterReport' | 'NonceNotification' | 'OffboardingNotification' | 'OnboardingStatusNotification' | 'OutSet' | 'PassiveIQ' | 'PostNewsletterStatus' | 'PrimaryHelloNotifyCompanion' | 'PromoteDemote' | 'PromoteDemoteAdmin' | 'PublishNewsletter' | 'PublishView' | 'QPNotification' | 'RefreshAccessTokens' | 'RefreshCodeNotifyCompanion' | 'RemoveParticipants' | 'ReportBug' | 'ReportMessages' | 'RequestSilentNonce' | 'ResetSmbLastQpPrefetchTimestamp' | 'RevokeRequestCode' | 'SendAccountRecoveryNonce' | 'SendBuffer' | 'SendFeedback' | 'ServerNotification' | 'ServerUpdate' | 'Set' | 'SetDescription' | 'SetPaymentsTOSv3' | 'SetPrivacySetting' | 'SetProperty' | 'SetReg' | 'SetResult' | 'SetSubject' | 'SetToCompanion' | 'Share' | 'SignCredential' | 'StateExists' | 'StatusReport' | 'StatusReportV2' | 'SubGroupSuggestionsAction' | 'Subscribe' | 'SubscribeToLiveUpdates' | 'SyncPrivacySetting' | 'UnlinkGroups' | 'UpdateBlockList' | 'UpdateOptOutList' | 'UpdatePreference' | 'UploadAdMedia' | 'WFPing' | 'WaitingRoomToggleCallLink'
19
19
 
20
20
  // Per-operation request/response shape literals — generated from the static
21
21
  // extraction over WASmaxOut*Request + WASmaxIn*Response* modules. Each
@@ -2597,6 +2597,112 @@ export interface WaXmlOperations {
2597
2597
  }
2598
2598
  } }
2599
2599
  }
2600
+ readonly ForceDeleteState: {
2601
+ readonly module: 'WASmaxWaffleForceDeleteStateRPC'
2602
+ readonly opName: 'ForceDeleteState'
2603
+ readonly xmlns: 'waffle'
2604
+ readonly type: 'get'
2605
+ readonly request: {
2606
+ readonly tag: 'iq'
2607
+ readonly attrs: {
2608
+ readonly xmlns: 'waffle'
2609
+ readonly smax_id: '59'
2610
+ readonly to: 's.whatsapp.net'
2611
+ readonly id: string
2612
+ readonly type: 'get'
2613
+ }
2614
+ readonly children: {
2615
+ readonly timestamp: {
2616
+ readonly tag: 'timestamp'
2617
+ readonly content: number
2618
+ }
2619
+ readonly only_if_suspended: {
2620
+ readonly tag: 'only_if_suspended'
2621
+ readonly content: Uint8Array
2622
+ } | undefined
2623
+ }
2624
+ }
2625
+ readonly response:
2626
+ | { readonly variant: 'Error'; readonly value: {
2627
+ readonly tag: 'iq'
2628
+ readonly attrs: {
2629
+ readonly id: string
2630
+ readonly from: string
2631
+ readonly type: 'error'
2632
+ }
2633
+ readonly children: {
2634
+ readonly error: {
2635
+ readonly tag: 'error'
2636
+ readonly attrs: {
2637
+ readonly text?: 'bad-request'
2638
+ readonly code?: number
2639
+ }
2640
+ }
2641
+ }
2642
+ } }
2643
+ | { readonly variant: 'Success'; readonly value: {
2644
+ readonly tag: 'iq'
2645
+ readonly attrs: {
2646
+ readonly id: string
2647
+ readonly from: string
2648
+ readonly type: 'result'
2649
+ }
2650
+ } }
2651
+ }
2652
+ readonly ForceSuspendState: {
2653
+ readonly module: 'WASmaxWaffleForceSuspendStateRPC'
2654
+ readonly opName: 'ForceSuspendState'
2655
+ readonly xmlns: 'waffle'
2656
+ readonly type: 'get'
2657
+ readonly request: {
2658
+ readonly tag: 'iq'
2659
+ readonly attrs: {
2660
+ readonly xmlns: 'waffle'
2661
+ readonly smax_id: '84'
2662
+ readonly to: 's.whatsapp.net'
2663
+ readonly id: string
2664
+ readonly type: 'get'
2665
+ }
2666
+ readonly children: {
2667
+ readonly timestamp: {
2668
+ readonly tag: 'timestamp'
2669
+ readonly content: number
2670
+ }
2671
+ }
2672
+ }
2673
+ readonly response:
2674
+ | { readonly variant: 'Error'; readonly value: {
2675
+ readonly tag: 'iq'
2676
+ readonly attrs: {
2677
+ readonly id: string
2678
+ readonly from: string
2679
+ readonly type: 'error'
2680
+ }
2681
+ readonly children: {
2682
+ readonly error: {
2683
+ readonly tag: 'error'
2684
+ readonly attrs: {
2685
+ readonly text?: 'bad-request'
2686
+ readonly code?: number
2687
+ }
2688
+ }
2689
+ }
2690
+ } }
2691
+ | { readonly variant: 'Success'; readonly value: {
2692
+ readonly tag: 'iq'
2693
+ readonly attrs: {
2694
+ readonly id: string
2695
+ readonly from: string
2696
+ readonly type: 'result'
2697
+ }
2698
+ readonly children: {
2699
+ readonly npr: {
2700
+ readonly tag: 'npr'
2701
+ readonly content: string
2702
+ }
2703
+ }
2704
+ } }
2705
+ }
2600
2706
  readonly GenerateAccessTokens: {
2601
2707
  readonly module: 'WASmaxWaffleGenerateAccessTokensRPC'
2602
2708
  readonly opName: 'GenerateAccessTokens'
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // AUTO-GENERATED — do not edit. Regenerated daily by wa-spec.
2
- // WhatsApp Version: 2.3000.1040100380
2
+ // WhatsApp Version: 2.3000.1040208462
3
3
  'use strict'
4
4
 
5
5
  const WA_XML_OPERATIONS = Object.freeze({
@@ -31,6 +31,8 @@ const WA_XML_OPERATIONS = Object.freeze({
31
31
  Event: Object.freeze({ module: 'WASmaxInAppCommsEventRPC', opName: 'Event', rootTag: 'iq', xmlns: 'w:comms', type: 'set', requestModule: 'WASmaxOutInAppCommsEventRequest', responseModules: Object.freeze(['WASmaxInInAppCommsEventResponseError', 'WASmaxInInAppCommsEventResponseSuccess']) }),
32
32
  FetchKeyBundles: Object.freeze({ module: 'WASmaxPreKeysFetchKeyBundlesRPC', opName: 'FetchKeyBundles', rootTag: 'iq', xmlns: 'encrypt', type: 'get', requestModule: 'WASmaxOutPreKeysFetchKeyBundlesRequest', responseModules: Object.freeze(['WASmaxInPreKeysFetchKeyBundlesResponseRequestError', 'WASmaxInPreKeysFetchKeyBundlesResponseServerError', 'WASmaxInPreKeysFetchKeyBundlesResponseSuccess']) }),
33
33
  FetchMissingPreKeys: Object.freeze({ module: 'WASmaxPreKeysFetchMissingPreKeysRPC', opName: 'FetchMissingPreKeys', rootTag: 'iq', xmlns: 'encrypt', type: 'get', requestModule: 'WASmaxOutPreKeysFetchMissingPreKeysRequest', responseModules: Object.freeze(['WASmaxInPreKeysFetchMissingPreKeysResponseRequestError', 'WASmaxInPreKeysFetchMissingPreKeysResponseServerError', 'WASmaxInPreKeysFetchMissingPreKeysResponseSuccess']) }),
34
+ ForceDeleteState: Object.freeze({ module: 'WASmaxWaffleForceDeleteStateRPC', opName: 'ForceDeleteState', rootTag: 'iq', xmlns: 'waffle', type: 'get', requestModule: 'WASmaxOutWaffleForceDeleteStateRequest', responseModules: Object.freeze(['WASmaxInWaffleForceDeleteStateResponseError', 'WASmaxInWaffleForceDeleteStateResponseSuccess']) }),
35
+ ForceSuspendState: Object.freeze({ module: 'WASmaxWaffleForceSuspendStateRPC', opName: 'ForceSuspendState', rootTag: 'iq', xmlns: 'waffle', type: 'get', requestModule: 'WASmaxOutWaffleForceSuspendStateRequest', responseModules: Object.freeze(['WASmaxInWaffleForceSuspendStateResponseError', 'WASmaxInWaffleForceSuspendStateResponseSuccess']) }),
34
36
  GenerateAccessTokens: Object.freeze({ module: 'WASmaxWaffleGenerateAccessTokensRPC', opName: 'GenerateAccessTokens', rootTag: 'iq', xmlns: 'waffle', type: 'get', requestModule: 'WASmaxOutWaffleGenerateAccessTokensRequest', responseModules: Object.freeze(['WASmaxInWaffleGenerateAccessTokensResponseError', 'WASmaxInWaffleGenerateAccessTokensResponseSuccess']) }),
35
37
  GenerateWAEntACUser: Object.freeze({ module: 'WASmaxWaffleGenerateWAEntACUserRPC', opName: 'GenerateWAEntACUser', rootTag: 'iq', xmlns: 'waffle', type: 'get', requestModule: 'WASmaxOutWaffleGenerateWAEntACUserRequest', responseModules: Object.freeze(['WASmaxInWaffleGenerateWAEntACUserResponseError', 'WASmaxInWaffleGenerateWAEntACUserResponseSuccess']) }),
36
38
  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']) }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vinikjkkj/wa-xml",
3
- "version": "0.1.0",
3
+ "version": "2.3000.1040208462-0fb3e58",
4
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
5
  "keywords": [
6
6
  "whatsapp",