zapo-js 1.5.0 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/coordinators/WaAppStateMutationCoordinator.js +2 -2
- package/dist/client/coordinators/WaMessageDispatchCoordinator.js +1 -1
- package/dist/esm/client/coordinators/WaAppStateMutationCoordinator.js +2 -2
- package/dist/esm/client/coordinators/WaMessageDispatchCoordinator.js +1 -1
- package/dist/esm/signal/api/SignalDeviceSyncApi.js +133 -63
- package/dist/signal/api/SignalDeviceSyncApi.d.ts +29 -2
- package/dist/signal/api/SignalDeviceSyncApi.js +131 -61
- package/package.json +1 -1
- package/spec/appstate/index.d.ts +5 -4
- package/spec/appstate/index.js +21 -8
- package/spec/mex/index.d.ts +335 -73
- package/spec/mex/index.js +29 -21
- package/spec/proto/index.d.ts +833 -69
- package/spec/proto/index.js +1 -1
- package/spec/version/index.d.ts +1 -1
- package/spec/version/index.js +1 -1
- package/spec/version/version.json +1 -1
package/spec/appstate/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.
|
|
2
|
+
// WhatsApp Version: 2.3000.1043028647
|
|
3
3
|
|
|
4
4
|
export type WaAppstateCollection = 'regular' | 'regular_low' | 'regular_high' | 'critical_block' | 'critical_unblock_low'
|
|
5
5
|
|
|
@@ -72,11 +72,11 @@ export declare const WA_APPSTATE_SCHEMAS: {
|
|
|
72
72
|
readonly AiThreadRename: WaAppstateSchema<'ai_thread_rename', 'regular_low', 'chat', 'aiThreadRenameAction', 'SyncActionValue.AiThreadRenameAction', null, readonly [{ readonly type: 'literal'; readonly value: 'ai_thread_rename' }, { readonly type: 'jid'; readonly name: 'chatJid' }, { readonly type: 'string'; readonly name: 'id' }]>
|
|
73
73
|
readonly AndroidUnsupportedActions: WaAppstateSchema<'android_unsupported_actions', 'regular_low', 'account', 'androidUnsupportedActions', 'SyncActionValue.AndroidUnsupportedActions', null, readonly [{ readonly type: 'literal'; readonly value: 'android_unsupported_actions' }]>
|
|
74
74
|
readonly Archive: WaAppstateSchema<'archive', 'regular_low', 'chatMessageRange', 'archiveChatAction', 'SyncActionValue.ArchiveChatAction', null, readonly [{ readonly type: 'literal'; readonly value: 'archive' }, { readonly type: 'jid'; readonly name: 'chatJid' }]>
|
|
75
|
-
readonly AvatarUpdated: WaAppstateSchema<'avatar_updated_action', 'regular', 'account',
|
|
75
|
+
readonly AvatarUpdated: WaAppstateSchema<'avatar_updated_action', 'regular', 'account', null, null, null, readonly [{ readonly type: 'literal'; readonly value: 'avatar_updated_action' }]>
|
|
76
76
|
readonly BizAiSettingsNudge: WaAppstateSchema<'biz_ai_settings_nudge', 'regular_high', 'account', 'bizAiSettingsNudgeAction', 'SyncActionValue.BizAISettingsNudgeAction', { readonly 'category': 'BizAISettingsNudgeAction.BizAISettingsCategory' }, readonly [{ readonly type: 'literal'; readonly value: 'biz_ai_settings_nudge' }]>
|
|
77
77
|
readonly BotWelcomeRequest: WaAppstateSchema<'bot_welcome_request', 'regular_low', 'chat', 'botWelcomeRequestAction', 'SyncActionValue.BotWelcomeRequestAction', null, readonly [{ readonly type: 'literal'; readonly value: 'bot_welcome_request' }, { readonly type: 'jid'; readonly name: 'chatJid' }]>
|
|
78
78
|
readonly BusinessBroadcastCampaign: WaAppstateSchema<'business_broadcast_campaign', 'regular', 'account', 'businessBroadcastCampaignAction', 'SyncActionValue.BusinessBroadcastCampaignAction', { readonly 'status': 'BusinessBroadcastCampaignStatus' }, readonly [{ readonly type: 'literal'; readonly value: 'business_broadcast_campaign' }, { readonly type: 'string'; readonly name: 'campaign' }]>
|
|
79
|
-
readonly BusinessBroadcastInsights: WaAppstateSchema<'business_broadcast_insights_sync', 'regular', 'account', 'businessBroadcastInsightsAction', 'SyncActionValue.BusinessBroadcastInsightsAction', null, readonly [{ readonly type: 'literal'; readonly value: 'business_broadcast_insights_sync' }, { readonly type: 'string'; readonly name: '
|
|
79
|
+
readonly BusinessBroadcastInsights: WaAppstateSchema<'business_broadcast_insights_sync', 'regular', 'account', 'businessBroadcastInsightsAction', 'SyncActionValue.BusinessBroadcastInsightsAction', null, readonly [{ readonly type: 'literal'; readonly value: 'business_broadcast_insights_sync' }, { readonly type: 'string'; readonly name: 'campaignId' }]>
|
|
80
80
|
readonly BusinessBroadcastList: WaAppstateSchema<'business_broadcast_list', 'regular', 'account', 'businessBroadcastListAction', 'SyncActionValue.BusinessBroadcastListAction', null, readonly [{ readonly type: 'literal'; readonly value: 'business_broadcast_list' }, { readonly type: 'string'; readonly name: 'id' }]>
|
|
81
81
|
readonly CallLog: WaAppstateSchema<'call_log', 'regular', 'account', 'callLogAction', 'SyncActionValue.CallLogAction', { readonly 'callLogRecord.callResult': 'CallLogRecord.CallResult'; readonly 'callLogRecord.silenceReason': 'CallLogRecord.SilenceReason'; readonly 'callLogRecord.participants.callResult': 'CallLogRecord.CallResult'; readonly 'callLogRecord.callType': 'CallLogRecord.CallType' }, readonly [{ readonly type: 'literal'; readonly value: 'call_log' }]>
|
|
82
82
|
readonly ChatAssignment: WaAppstateSchema<'agentChatAssignment', 'regular', 'chat', 'chatAssignment', 'SyncActionValue.ChatAssignmentAction', null, readonly [{ readonly type: 'literal'; readonly value: 'agentChatAssignment' }, { readonly type: 'jid'; readonly name: 'chatJid' }]>
|
|
@@ -104,7 +104,7 @@ export declare const WA_APPSTATE_SCHEMAS: {
|
|
|
104
104
|
readonly MarkChatAsRead: WaAppstateSchema<'markChatAsRead', 'regular_low', 'chatMessageRange', 'markChatAsReadAction', 'SyncActionValue.MarkChatAsReadAction', null, readonly [{ readonly type: 'literal'; readonly value: 'markChatAsRead' }, { readonly type: 'jid'; readonly name: 'chatJid' }]>
|
|
105
105
|
readonly MarketingMessage: WaAppstateSchema<'marketingMessage', 'regular', 'account', 'marketingMessageAction', 'SyncActionValue.MarketingMessageAction', { readonly 'type': 'MarketingMessageAction.MarketingMessagePrototypeType' }, readonly [{ readonly type: 'literal'; readonly value: 'marketingMessage' }, { readonly type: 'string'; readonly name: 'id' }]>
|
|
106
106
|
readonly MarketingMessageBroadcast: WaAppstateSchema<'marketingMessageBroadcast', 'regular', 'account', null, null, null, readonly [{ readonly type: 'literal'; readonly value: 'marketingMessageBroadcast' }, { readonly type: 'string'; readonly name: 'premiumMessageId' }, { readonly type: 'string'; readonly name: 'messageId' }]>
|
|
107
|
-
readonly MerchantPaymentPartner: WaAppstateSchema<'merchant_payment_partner', 'regular_low', 'account',
|
|
107
|
+
readonly MerchantPaymentPartner: WaAppstateSchema<'merchant_payment_partner', 'regular_low', 'account', null, null, null, readonly [{ readonly type: 'literal'; readonly value: 'merchant_payment_partner' }]>
|
|
108
108
|
readonly Mute: WaAppstateSchema<'mute', 'regular_high', 'chat', 'muteAction', 'SyncActionValue.MuteAction', null, readonly [{ readonly type: 'literal'; readonly value: 'mute' }, { readonly type: 'jid'; readonly name: 'chatJid' }]>
|
|
109
109
|
readonly NctSaltSync: WaAppstateSchema<'nct_salt_sync', 'regular_high', 'account', 'nctSaltSyncAction', 'SyncActionValue.NctSaltSyncAction', null, readonly [{ readonly type: 'literal'; readonly value: 'nct_salt_sync' }]>
|
|
110
110
|
readonly NoteEdit: WaAppstateSchema<'note_edit', 'regular_low', 'account', 'noteEditAction', 'SyncActionValue.NoteEditAction', { readonly 'type': 'NoteEditAction.NoteType' }, readonly [{ readonly type: 'literal'; readonly value: 'note_edit' }, { readonly type: 'string'; readonly name: 'id' }]>
|
|
@@ -130,6 +130,7 @@ export declare const WA_APPSTATE_SCHEMAS: {
|
|
|
130
130
|
readonly UserStatusMute: WaAppstateSchema<'userStatusMute', 'regular_high', 'account', 'userStatusMuteAction', 'SyncActionValue.UserStatusMuteAction', null, readonly [{ readonly type: 'literal'; readonly value: 'userStatusMute' }, { readonly type: 'string'; readonly name: 'id' }]>
|
|
131
131
|
readonly VoipRelayAllCalls: WaAppstateSchema<'setting_relayAllCalls', 'regular', 'account', 'privacySettingRelayAllCalls', 'SyncActionValue.PrivacySettingRelayAllCalls', null, readonly [{ readonly type: 'literal'; readonly value: 'setting_relayAllCalls' }]>
|
|
132
132
|
readonly WaffleAccountLinkState: WaAppstateSchema<'waffle_account_link_state', 'regular_high', 'account', 'waffleAccountLinkStateAction', 'SyncActionValue.WaffleAccountLinkStateAction', { readonly 'linkState': 'WaffleAccountLinkStateAction.AccountLinkState' }, readonly [{ readonly type: 'literal'; readonly value: 'waffle_account_link_state' }]>
|
|
133
|
+
readonly WasaRootSecret: WaAppstateSchema<'wasa_root_secret', 'regular_high', 'chat', 'wasaRootSecretAction', 'SyncActionValue.WASARootSecretAction', null, readonly [{ readonly type: 'literal'; readonly value: 'wasa_root_secret' }, { readonly type: 'jid'; readonly name: 'chatJid' }]>
|
|
133
134
|
}
|
|
134
135
|
|
|
135
136
|
export type WaAppstateActionKey = keyof typeof WA_APPSTATE_SCHEMAS
|
package/spec/appstate/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// AUTO-GENERATED — do not edit. Regenerated daily by wa-spec.
|
|
2
|
-
// WhatsApp Version: 2.3000.
|
|
2
|
+
// WhatsApp Version: 2.3000.1043028647
|
|
3
3
|
'use strict'
|
|
4
4
|
|
|
5
5
|
const WA_APPSTATE_COLLECTIONS = Object.freeze(['regular', 'regular_low', 'regular_high', 'critical_block', 'critical_unblock_low'])
|
|
@@ -103,9 +103,9 @@ const WA_APPSTATE_SCHEMAS = Object.freeze({
|
|
|
103
103
|
collection: 'regular',
|
|
104
104
|
version: 7,
|
|
105
105
|
scope: 'account',
|
|
106
|
-
valueField:
|
|
107
|
-
valueProtoType:
|
|
108
|
-
valueEnumFields:
|
|
106
|
+
valueField: null,
|
|
107
|
+
valueProtoType: null,
|
|
108
|
+
valueEnumFields: null,
|
|
109
109
|
indexParts: Object.freeze([
|
|
110
110
|
Object.freeze({ type: 'literal', value: 'avatar_updated_action' })
|
|
111
111
|
])
|
|
@@ -158,7 +158,7 @@ const WA_APPSTATE_SCHEMAS = Object.freeze({
|
|
|
158
158
|
valueEnumFields: null,
|
|
159
159
|
indexParts: Object.freeze([
|
|
160
160
|
Object.freeze({ type: 'literal', value: 'business_broadcast_insights_sync' }),
|
|
161
|
-
Object.freeze({ type: 'string', name: '
|
|
161
|
+
Object.freeze({ type: 'string', name: 'campaignId' })
|
|
162
162
|
])
|
|
163
163
|
}),
|
|
164
164
|
BusinessBroadcastList: Object.freeze({
|
|
@@ -520,9 +520,9 @@ const WA_APPSTATE_SCHEMAS = Object.freeze({
|
|
|
520
520
|
collection: 'regular_low',
|
|
521
521
|
version: 7,
|
|
522
522
|
scope: 'account',
|
|
523
|
-
valueField:
|
|
524
|
-
valueProtoType:
|
|
525
|
-
valueEnumFields:
|
|
523
|
+
valueField: null,
|
|
524
|
+
valueProtoType: null,
|
|
525
|
+
valueEnumFields: null,
|
|
526
526
|
indexParts: Object.freeze([
|
|
527
527
|
Object.freeze({ type: 'literal', value: 'merchant_payment_partner' })
|
|
528
528
|
])
|
|
@@ -844,6 +844,19 @@ const WA_APPSTATE_SCHEMAS = Object.freeze({
|
|
|
844
844
|
indexParts: Object.freeze([
|
|
845
845
|
Object.freeze({ type: 'literal', value: 'waffle_account_link_state' })
|
|
846
846
|
])
|
|
847
|
+
}),
|
|
848
|
+
WasaRootSecret: Object.freeze({
|
|
849
|
+
name: 'wasa_root_secret',
|
|
850
|
+
collection: 'regular_high',
|
|
851
|
+
version: 1,
|
|
852
|
+
scope: 'chat',
|
|
853
|
+
valueField: 'wasaRootSecretAction',
|
|
854
|
+
valueProtoType: 'SyncActionValue.WASARootSecretAction',
|
|
855
|
+
valueEnumFields: null,
|
|
856
|
+
indexParts: Object.freeze([
|
|
857
|
+
Object.freeze({ type: 'literal', value: 'wasa_root_secret' }),
|
|
858
|
+
Object.freeze({ type: 'jid', name: 'chatJid' })
|
|
859
|
+
])
|
|
847
860
|
})
|
|
848
861
|
})
|
|
849
862
|
|