dcodeindra-baileyspro 2.3.9
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/LICENSE +21 -0
- package/README.md +2534 -0
- package/WAProto/Adv/Adv.d.ts +518 -0
- package/WAProto/Adv/Adv.js +1734 -0
- package/WAProto/Adv/Adv.proto +36 -0
- package/WAProto/BotMetadata/BotMetadata.d.ts +5745 -0
- package/WAProto/BotMetadata/BotMetadata.js +16291 -0
- package/WAProto/BotMetadata/BotMetadata.proto +463 -0
- package/WAProto/Cert/Cert.d.ts +497 -0
- package/WAProto/Cert/Cert.js +1503 -0
- package/WAProto/Cert/Cert.proto +28 -0
- package/WAProto/ChatLockSettings/ChatLockSettings.d.ts +391 -0
- package/WAProto/ChatLockSettings/ChatLockSettings.js +1155 -0
- package/WAProto/ChatLockSettings/ChatLockSettings.proto +7 -0
- package/WAProto/CompanionReg/CompanionReg.d.ts +1055 -0
- package/WAProto/CompanionReg/CompanionReg.js +3532 -0
- package/WAProto/CompanionReg/CompanionReg.proto +89 -0
- package/WAProto/DeviceCapabilities/DeviceCapabilities.d.ts +187 -0
- package/WAProto/DeviceCapabilities/DeviceCapabilities.js +520 -0
- package/WAProto/DeviceCapabilities/DeviceCapabilities.proto +14 -0
- package/WAProto/E2E/E2E.d.ts +28417 -0
- package/WAProto/E2E/E2E.js +98438 -0
- package/WAProto/E2E/E2E.proto +2289 -0
- package/WAProto/Ephemeral/Ephemeral.d.ts +95 -0
- package/WAProto/Ephemeral/Ephemeral.js +269 -0
- package/WAProto/Ephemeral/Ephemeral.proto +6 -0
- package/WAProto/HistorySync/HistorySync.d.ts +40728 -0
- package/WAProto/HistorySync/HistorySync.js +142980 -0
- package/WAProto/HistorySync/HistorySync.proto +207 -0
- package/WAProto/LidMigrationSyncPayload/LidMigrationSyncPayload.d.ts +189 -0
- package/WAProto/LidMigrationSyncPayload/LidMigrationSyncPayload.js +585 -0
- package/WAProto/LidMigrationSyncPayload/LidMigrationSyncPayload.proto +11 -0
- package/WAProto/MdStorageChatRowOpaqueData/MdStorageChatRowOpaqueData.d.ts +461 -0
- package/WAProto/MdStorageChatRowOpaqueData/MdStorageChatRowOpaqueData.js +1559 -0
- package/WAProto/MdStorageChatRowOpaqueData/MdStorageChatRowOpaqueData.proto +37 -0
- package/WAProto/MdStorageMsgRowOpaqueData/MdStorageMsgRowOpaqueData.d.ts +29294 -0
- package/WAProto/MdStorageMsgRowOpaqueData/MdStorageMsgRowOpaqueData.js +101732 -0
- package/WAProto/MdStorageMsgRowOpaqueData/MdStorageMsgRowOpaqueData.proto +76 -0
- package/WAProto/MmsRetry/MmsRetry.d.ts +200 -0
- package/WAProto/MmsRetry/MmsRetry.js +586 -0
- package/WAProto/MmsRetry/MmsRetry.proto +17 -0
- package/WAProto/Protocol/Protocol.d.ts +218 -0
- package/WAProto/Protocol/Protocol.js +701 -0
- package/WAProto/Protocol/Protocol.proto +20 -0
- package/WAProto/Reporting/Reporting.d.ts +301 -0
- package/WAProto/Reporting/Reporting.js +989 -0
- package/WAProto/Reporting/Reporting.proto +19 -0
- package/WAProto/ServerSync/ServerSync.d.ts +1050 -0
- package/WAProto/ServerSync/ServerSync.js +3176 -0
- package/WAProto/ServerSync/ServerSync.proto +59 -0
- package/WAProto/SignalLocalStorageProtocol/SignalLocalStorageProtocol.d.ts +1507 -0
- package/WAProto/SignalLocalStorageProtocol/SignalLocalStorageProtocol.js +4756 -0
- package/WAProto/SignalLocalStorageProtocol/SignalLocalStorageProtocol.proto +88 -0
- package/WAProto/SignalWhisperTextProtocol/SignalWhisperTextProtocol.d.ts +617 -0
- package/WAProto/SignalWhisperTextProtocol/SignalWhisperTextProtocol.js +1940 -0
- package/WAProto/SignalWhisperTextProtocol/SignalWhisperTextProtocol.proto +38 -0
- package/WAProto/StatusAttributions/StatusAttributions.d.ts +636 -0
- package/WAProto/StatusAttributions/StatusAttributions.js +2037 -0
- package/WAProto/StatusAttributions/StatusAttributions.proto +61 -0
- package/WAProto/SyncAction/SyncAction.d.ts +7227 -0
- package/WAProto/SyncAction/SyncAction.js +22271 -0
- package/WAProto/SyncAction/SyncAction.proto +423 -0
- package/WAProto/UserPassword/UserPassword.d.ts +298 -0
- package/WAProto/UserPassword/UserPassword.js +898 -0
- package/WAProto/UserPassword/UserPassword.proto +27 -0
- package/WAProto/VnameCert/VnameCert.d.ts +658 -0
- package/WAProto/VnameCert/VnameCert.js +2225 -0
- package/WAProto/VnameCert/VnameCert.proto +60 -0
- package/WAProto/Wa6/Wa6.d.ts +1613 -0
- package/WAProto/Wa6/Wa6.js +6299 -0
- package/WAProto/Wa6/Wa6.proto +229 -0
- package/WAProto/Web/Web.d.ts +31718 -0
- package/WAProto/Web/Web.js +113402 -0
- package/WAProto/Web/Web.proto +545 -0
- package/WAProto/index.d.ts +49 -0
- package/WAProto/index.js +28 -0
- package/WASignalGroup/GroupProtocol.js +1771 -0
- package/WASignalGroup/ciphertext_message.js +10 -0
- package/WASignalGroup/group_cipher.js +103 -0
- package/WASignalGroup/group_session_builder.js +39 -0
- package/WASignalGroup/index.js +5 -0
- package/WASignalGroup/keyhelper.js +17 -0
- package/WASignalGroup/protobufs.js +2 -0
- package/WASignalGroup/queue_job.js +64 -0
- package/WASignalGroup/sender_chain_key.js +38 -0
- package/WASignalGroup/sender_key_distribution_message.js +68 -0
- package/WASignalGroup/sender_key_message.js +79 -0
- package/WASignalGroup/sender_key_name.js +59 -0
- package/WASignalGroup/sender_key_record.js +47 -0
- package/WASignalGroup/sender_key_state.js +110 -0
- package/WASignalGroup/sender_message_key.js +30 -0
- package/check-node-version.js +10 -0
- package/lib/Defaults/baileys-version.json +3 -0
- package/lib/Defaults/index.d.ts +51 -0
- package/lib/Defaults/index.js +108 -0
- package/lib/Defaults/phonenumber-mcc.json +223 -0
- package/lib/Signal/Group/ciphertext-message.d.ts +9 -0
- package/lib/Signal/Group/ciphertext-message.js +19 -0
- package/lib/Signal/Group/group-session-builder.d.ts +17 -0
- package/lib/Signal/Group/group-session-builder.js +72 -0
- package/lib/Signal/Group/group_cipher.d.ts +19 -0
- package/lib/Signal/Group/group_cipher.js +99 -0
- package/lib/Signal/Group/index.d.ts +11 -0
- package/lib/Signal/Group/index.js +61 -0
- package/lib/Signal/Group/keyhelper.d.ts +16 -0
- package/lib/Signal/Group/keyhelper.js +66 -0
- package/lib/Signal/Group/queue-job.d.ts +1 -0
- package/lib/Signal/Group/queue-job.js +64 -0
- package/lib/Signal/Group/sender-chain-key.d.ts +14 -0
- package/lib/Signal/Group/sender-chain-key.js +39 -0
- package/lib/Signal/Group/sender-key-distribution-message.d.ts +17 -0
- package/lib/Signal/Group/sender-key-distribution-message.js +71 -0
- package/lib/Signal/Group/sender-key-message.d.ts +19 -0
- package/lib/Signal/Group/sender-key-message.js +73 -0
- package/lib/Signal/Group/sender-key-name.d.ts +19 -0
- package/lib/Signal/Group/sender-key-name.js +59 -0
- package/lib/Signal/Group/sender-key-record.d.ts +32 -0
- package/lib/Signal/Group/sender-key-record.js +53 -0
- package/lib/Signal/Group/sender-key-record.ts +77 -0
- package/lib/Signal/Group/sender-key-state.d.ts +44 -0
- package/lib/Signal/Group/sender-key-state.js +104 -0
- package/lib/Signal/Group/sender-message-key.d.ts +11 -0
- package/lib/Signal/Group/sender-message-key.js +33 -0
- package/lib/Signal/libsignal.d.ts +3 -0
- package/lib/Signal/libsignal.js +153 -0
- package/lib/Socket/Client/index.d.ts +2 -0
- package/lib/Socket/Client/index.js +18 -0
- package/lib/Socket/Client/types.d.ts +15 -0
- package/lib/Socket/Client/types.js +14 -0
- package/lib/Socket/Client/websocket.d.ts +12 -0
- package/lib/Socket/Client/websocket.js +57 -0
- package/lib/Socket/business.d.ts +181 -0
- package/lib/Socket/business.js +259 -0
- package/lib/Socket/chats.d.ts +95 -0
- package/lib/Socket/chats.js +906 -0
- package/lib/Socket/community.d.ts +131 -0
- package/lib/Socket/community.js +369 -0
- package/lib/Socket/groups.d.ts +122 -0
- package/lib/Socket/groups.js +360 -0
- package/lib/Socket/index.d.ts +183 -0
- package/lib/Socket/index.js +10 -0
- package/lib/Socket/messages-recv.d.ts +170 -0
- package/lib/Socket/messages-recv.js +1074 -0
- package/lib/Socket/messages-send.d.ts +161 -0
- package/lib/Socket/messages-send.js +982 -0
- package/lib/Socket/newsletter.d.ts +140 -0
- package/lib/Socket/newsletter.js +242 -0
- package/lib/Socket/socket.d.ts +43 -0
- package/lib/Socket/socket.js +749 -0
- package/lib/Socket/usync.d.ts +36 -0
- package/lib/Socket/usync.js +71 -0
- package/lib/Store/index.d.ts +4 -0
- package/lib/Store/index.js +20 -0
- package/lib/Store/make-cache-manager-store.d.ts +13 -0
- package/lib/Store/make-cache-manager-store.js +77 -0
- package/lib/Store/make-in-memory-store.d.ts +117 -0
- package/lib/Store/make-in-memory-store.js +420 -0
- package/lib/Store/make-ordered-dictionary.d.ts +12 -0
- package/lib/Store/make-ordered-dictionary.js +83 -0
- package/lib/Store/object-repository.d.ts +10 -0
- package/lib/Store/object-repository.js +28 -0
- package/lib/Types/Auth.d.ts +103 -0
- package/lib/Types/Auth.js +2 -0
- package/lib/Types/Call.d.ts +13 -0
- package/lib/Types/Call.js +2 -0
- package/lib/Types/Chat.d.ts +115 -0
- package/lib/Types/Chat.js +6 -0
- package/lib/Types/Contact.d.ts +35 -0
- package/lib/Types/Contact.js +2 -0
- package/lib/Types/Events.d.ts +208 -0
- package/lib/Types/Events.js +2 -0
- package/lib/Types/GroupMetadata.d.ts +81 -0
- package/lib/Types/GroupMetadata.js +2 -0
- package/lib/Types/Label.d.ts +46 -0
- package/lib/Types/Label.js +28 -0
- package/lib/Types/LabelAssociation.d.ts +29 -0
- package/lib/Types/LabelAssociation.js +10 -0
- package/lib/Types/Message.d.ts +480 -0
- package/lib/Types/Message.js +9 -0
- package/lib/Types/MexUpdates.d.ts +9 -0
- package/lib/Types/MexUpdates.js +18 -0
- package/lib/Types/Newsletter.d.ts +92 -0
- package/lib/Types/Newsletter.js +33 -0
- package/lib/Types/Product.d.ts +78 -0
- package/lib/Types/Product.js +2 -0
- package/lib/Types/Signal.d.ts +57 -0
- package/lib/Types/Signal.js +2 -0
- package/lib/Types/Socket.d.ts +116 -0
- package/lib/Types/Socket.js +2 -0
- package/lib/Types/State.d.ts +27 -0
- package/lib/Types/State.js +2 -0
- package/lib/Types/USync.d.ts +25 -0
- package/lib/Types/USync.js +2 -0
- package/lib/Types/index.d.ts +70 -0
- package/lib/Types/index.js +42 -0
- package/lib/Utils/auth-utils.d.ts +18 -0
- package/lib/Utils/auth-utils.js +198 -0
- package/lib/Utils/baileys-event-stream.d.ts +16 -0
- package/lib/Utils/baileys-event-stream.js +64 -0
- package/lib/Utils/business.d.ts +22 -0
- package/lib/Utils/business.js +243 -0
- package/lib/Utils/chat-utils.d.ts +72 -0
- package/lib/Utils/chat-utils.js +762 -0
- package/lib/Utils/crypto.d.ts +40 -0
- package/lib/Utils/crypto.js +150 -0
- package/lib/Utils/decode-wa-message.d.ts +252 -0
- package/lib/Utils/decode-wa-message.js +232 -0
- package/lib/Utils/event-buffer.d.ts +35 -0
- package/lib/Utils/event-buffer.js +539 -0
- package/lib/Utils/generics.d.ts +96 -0
- package/lib/Utils/generics.js +553 -0
- package/lib/Utils/history.d.ts +29 -0
- package/lib/Utils/history.js +109 -0
- package/lib/Utils/index.d.ts +19 -0
- package/lib/Utils/index.js +35 -0
- package/lib/Utils/link-preview.d.ts +21 -0
- package/lib/Utils/link-preview.js +112 -0
- package/lib/Utils/logger.d.ts +11 -0
- package/lib/Utils/logger.js +7 -0
- package/lib/Utils/lt-hash.d.ts +12 -0
- package/lib/Utils/lt-hash.js +53 -0
- package/lib/Utils/make-mutex.d.ts +7 -0
- package/lib/Utils/make-mutex.js +45 -0
- package/lib/Utils/messages-media.d.ts +104 -0
- package/lib/Utils/messages-media.js +751 -0
- package/lib/Utils/messages.d.ts +80 -0
- package/lib/Utils/messages.js +1741 -0
- package/lib/Utils/noise-handler.d.ts +19 -0
- package/lib/Utils/noise-handler.js +150 -0
- package/lib/Utils/process-message.d.ts +41 -0
- package/lib/Utils/process-message.js +391 -0
- package/lib/Utils/signal.d.ts +33 -0
- package/lib/Utils/signal.js +154 -0
- package/lib/Utils/use-mongo-file-auth-state.d.ts +5 -0
- package/lib/Utils/use-mongo-file-auth-state.js +75 -0
- package/lib/Utils/use-multi-file-auth-state.d.ts +12 -0
- package/lib/Utils/use-multi-file-auth-state.js +123 -0
- package/lib/Utils/use-single-file-auth-state.d.ts +12 -0
- package/lib/Utils/use-single-file-auth-state.js +75 -0
- package/lib/Utils/validate-connection.d.ts +10 -0
- package/lib/Utils/validate-connection.js +174 -0
- package/lib/WABinary/constants.d.ts +27 -0
- package/lib/WABinary/constants.js +45 -0
- package/lib/WABinary/decode.d.ts +6 -0
- package/lib/WABinary/decode.js +255 -0
- package/lib/WABinary/encode.d.ts +2 -0
- package/lib/WABinary/encode.js +243 -0
- package/lib/WABinary/generic-utils.d.ts +16 -0
- package/lib/WABinary/generic-utils.js +125 -0
- package/lib/WABinary/index.d.ts +5 -0
- package/lib/WABinary/index.js +21 -0
- package/lib/WABinary/jid-utils.d.ts +34 -0
- package/lib/WABinary/jid-utils.js +73 -0
- package/lib/WABinary/types.d.ts +18 -0
- package/lib/WABinary/types.js +2 -0
- package/lib/WAM/BinaryInfo.d.ts +16 -0
- package/lib/WAM/BinaryInfo.js +14 -0
- package/lib/WAM/constants.d.ts +39 -0
- package/lib/WAM/constants.js +15362 -0
- package/lib/WAM/encode.d.ts +2 -0
- package/lib/WAM/encode.js +156 -0
- package/lib/WAM/index.d.ts +3 -0
- package/lib/WAM/index.js +19 -0
- package/lib/WAUSync/Protocols/USyncBotProfileProtocol.d.ts +25 -0
- package/lib/WAUSync/Protocols/USyncBotProfileProtocol.js +60 -0
- package/lib/WAUSync/Protocols/USyncContactProtocol.d.ts +9 -0
- package/lib/WAUSync/Protocols/USyncContactProtocol.js +32 -0
- package/lib/WAUSync/Protocols/USyncDeviceProtocol.d.ts +22 -0
- package/lib/WAUSync/Protocols/USyncDeviceProtocol.js +58 -0
- package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.d.ts +12 -0
- package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +31 -0
- package/lib/WAUSync/Protocols/USyncLIDProtocol.d.ts +8 -0
- package/lib/WAUSync/Protocols/USyncLIDProtocol.js +26 -0
- package/lib/WAUSync/Protocols/USyncStatusProtocol.d.ts +12 -0
- package/lib/WAUSync/Protocols/USyncStatusProtocol.js +42 -0
- package/lib/WAUSync/Protocols/index.d.ts +6 -0
- package/lib/WAUSync/Protocols/index.js +22 -0
- package/lib/WAUSync/USyncQuery.d.ts +28 -0
- package/lib/WAUSync/USyncQuery.js +88 -0
- package/lib/WAUSync/USyncUser.d.ts +12 -0
- package/lib/WAUSync/USyncUser.js +27 -0
- package/lib/WAUSync/index.d.ts +3 -0
- package/lib/WAUSync/index.js +19 -0
- package/lib/index.d.ts +13 -0
- package/lib/index.js +45 -0
- package/package.json +63 -0
|
@@ -0,0 +1,586 @@
|
|
|
1
|
+
/*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/
|
|
2
|
+
"use strict";
|
|
3
|
+
var $protobuf = require("protobufjs/minimal");
|
|
4
|
+
// Common aliases
|
|
5
|
+
var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util;
|
|
6
|
+
// Exported root namespace
|
|
7
|
+
var $root = $protobuf.roots["default"] || ($protobuf.roots["default"] = {});
|
|
8
|
+
$root.MmsRetry = (function() {
|
|
9
|
+
/**
|
|
10
|
+
* Namespace MmsRetry.
|
|
11
|
+
* @exports MmsRetry
|
|
12
|
+
* @namespace
|
|
13
|
+
*/
|
|
14
|
+
var MmsRetry = {};
|
|
15
|
+
MmsRetry.ServerErrorReceipt = (function() {
|
|
16
|
+
/**
|
|
17
|
+
* Properties of a ServerErrorReceipt.
|
|
18
|
+
* @memberof MmsRetry
|
|
19
|
+
* @interface IServerErrorReceipt
|
|
20
|
+
* @property {string|null} [stanzaId] ServerErrorReceipt stanzaId
|
|
21
|
+
*/
|
|
22
|
+
/**
|
|
23
|
+
* Constructs a new ServerErrorReceipt.
|
|
24
|
+
* @memberof MmsRetry
|
|
25
|
+
* @classdesc Represents a ServerErrorReceipt.
|
|
26
|
+
* @implements IServerErrorReceipt
|
|
27
|
+
* @constructor
|
|
28
|
+
* @param {MmsRetry.IServerErrorReceipt=} [properties] Properties to set
|
|
29
|
+
*/
|
|
30
|
+
function ServerErrorReceipt(properties) {
|
|
31
|
+
if (properties)
|
|
32
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
33
|
+
if (properties[keys[i]] != null)
|
|
34
|
+
this[keys[i]] = properties[keys[i]];
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* ServerErrorReceipt stanzaId.
|
|
38
|
+
* @member {string|null|undefined} stanzaId
|
|
39
|
+
* @memberof MmsRetry.ServerErrorReceipt
|
|
40
|
+
* @instance
|
|
41
|
+
*/
|
|
42
|
+
ServerErrorReceipt.prototype.stanzaId = null;
|
|
43
|
+
// OneOf field names bound to virtual getters and setters
|
|
44
|
+
var $oneOfFields;
|
|
45
|
+
/**
|
|
46
|
+
* ServerErrorReceipt _stanzaId.
|
|
47
|
+
* @member {"stanzaId"|undefined} _stanzaId
|
|
48
|
+
* @memberof MmsRetry.ServerErrorReceipt
|
|
49
|
+
* @instance
|
|
50
|
+
*/
|
|
51
|
+
Object.defineProperty(ServerErrorReceipt.prototype, "_stanzaId", {
|
|
52
|
+
get: $util.oneOfGetter($oneOfFields = ["stanzaId"]),
|
|
53
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
54
|
+
});
|
|
55
|
+
/**
|
|
56
|
+
* Creates a new ServerErrorReceipt instance using the specified properties.
|
|
57
|
+
* @function create
|
|
58
|
+
* @memberof MmsRetry.ServerErrorReceipt
|
|
59
|
+
* @static
|
|
60
|
+
* @param {MmsRetry.IServerErrorReceipt=} [properties] Properties to set
|
|
61
|
+
* @returns {MmsRetry.ServerErrorReceipt} ServerErrorReceipt instance
|
|
62
|
+
*/
|
|
63
|
+
ServerErrorReceipt.create = function create(properties) {
|
|
64
|
+
return new ServerErrorReceipt(properties);
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* Encodes the specified ServerErrorReceipt message. Does not implicitly {@link MmsRetry.ServerErrorReceipt.verify|verify} messages.
|
|
68
|
+
* @function encode
|
|
69
|
+
* @memberof MmsRetry.ServerErrorReceipt
|
|
70
|
+
* @static
|
|
71
|
+
* @param {MmsRetry.IServerErrorReceipt} message ServerErrorReceipt message or plain object to encode
|
|
72
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
73
|
+
* @returns {$protobuf.Writer} Writer
|
|
74
|
+
*/
|
|
75
|
+
ServerErrorReceipt.encode = function encode(message, writer) {
|
|
76
|
+
if (!writer)
|
|
77
|
+
writer = $Writer.create();
|
|
78
|
+
if (message.stanzaId != null && Object.hasOwnProperty.call(message, "stanzaId"))
|
|
79
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.stanzaId);
|
|
80
|
+
return writer;
|
|
81
|
+
};
|
|
82
|
+
/**
|
|
83
|
+
* Encodes the specified ServerErrorReceipt message, length delimited. Does not implicitly {@link MmsRetry.ServerErrorReceipt.verify|verify} messages.
|
|
84
|
+
* @function encodeDelimited
|
|
85
|
+
* @memberof MmsRetry.ServerErrorReceipt
|
|
86
|
+
* @static
|
|
87
|
+
* @param {MmsRetry.IServerErrorReceipt} message ServerErrorReceipt message or plain object to encode
|
|
88
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
89
|
+
* @returns {$protobuf.Writer} Writer
|
|
90
|
+
*/
|
|
91
|
+
ServerErrorReceipt.encodeDelimited = function encodeDelimited(message, writer) {
|
|
92
|
+
return this.encode(message, writer).ldelim();
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* Decodes a ServerErrorReceipt message from the specified reader or buffer.
|
|
96
|
+
* @function decode
|
|
97
|
+
* @memberof MmsRetry.ServerErrorReceipt
|
|
98
|
+
* @static
|
|
99
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
100
|
+
* @param {number} [length] Message length if known beforehand
|
|
101
|
+
* @returns {MmsRetry.ServerErrorReceipt} ServerErrorReceipt
|
|
102
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
103
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
104
|
+
*/
|
|
105
|
+
ServerErrorReceipt.decode = function decode(reader, length, error) {
|
|
106
|
+
if (!(reader instanceof $Reader))
|
|
107
|
+
reader = $Reader.create(reader);
|
|
108
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.MmsRetry.ServerErrorReceipt();
|
|
109
|
+
while (reader.pos < end) {
|
|
110
|
+
var tag = reader.uint32();
|
|
111
|
+
if (tag === error)
|
|
112
|
+
break;
|
|
113
|
+
switch (tag >>> 3) {
|
|
114
|
+
case 1: {
|
|
115
|
+
message.stanzaId = reader.string();
|
|
116
|
+
break;
|
|
117
|
+
}
|
|
118
|
+
default:
|
|
119
|
+
reader.skipType(tag & 7);
|
|
120
|
+
break;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
return message;
|
|
124
|
+
};
|
|
125
|
+
/**
|
|
126
|
+
* Decodes a ServerErrorReceipt message from the specified reader or buffer, length delimited.
|
|
127
|
+
* @function decodeDelimited
|
|
128
|
+
* @memberof MmsRetry.ServerErrorReceipt
|
|
129
|
+
* @static
|
|
130
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
131
|
+
* @returns {MmsRetry.ServerErrorReceipt} ServerErrorReceipt
|
|
132
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
133
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
134
|
+
*/
|
|
135
|
+
ServerErrorReceipt.decodeDelimited = function decodeDelimited(reader) {
|
|
136
|
+
if (!(reader instanceof $Reader))
|
|
137
|
+
reader = new $Reader(reader);
|
|
138
|
+
return this.decode(reader, reader.uint32());
|
|
139
|
+
};
|
|
140
|
+
/**
|
|
141
|
+
* Verifies a ServerErrorReceipt message.
|
|
142
|
+
* @function verify
|
|
143
|
+
* @memberof MmsRetry.ServerErrorReceipt
|
|
144
|
+
* @static
|
|
145
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
146
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
147
|
+
*/
|
|
148
|
+
ServerErrorReceipt.verify = function verify(message) {
|
|
149
|
+
if (typeof message !== "object" || message === null)
|
|
150
|
+
return "object expected";
|
|
151
|
+
var properties = {};
|
|
152
|
+
if (message.stanzaId != null && message.hasOwnProperty("stanzaId")) {
|
|
153
|
+
properties._stanzaId = 1;
|
|
154
|
+
if (!$util.isString(message.stanzaId))
|
|
155
|
+
return "stanzaId: string expected";
|
|
156
|
+
}
|
|
157
|
+
return null;
|
|
158
|
+
};
|
|
159
|
+
/**
|
|
160
|
+
* Creates a ServerErrorReceipt message from a plain object. Also converts values to their respective internal types.
|
|
161
|
+
* @function fromObject
|
|
162
|
+
* @memberof MmsRetry.ServerErrorReceipt
|
|
163
|
+
* @static
|
|
164
|
+
* @param {Object.<string,*>} object Plain object
|
|
165
|
+
* @returns {MmsRetry.ServerErrorReceipt} ServerErrorReceipt
|
|
166
|
+
*/
|
|
167
|
+
ServerErrorReceipt.fromObject = function fromObject(object) {
|
|
168
|
+
if (object instanceof $root.MmsRetry.ServerErrorReceipt)
|
|
169
|
+
return object;
|
|
170
|
+
var message = new $root.MmsRetry.ServerErrorReceipt();
|
|
171
|
+
if (object.stanzaId != null)
|
|
172
|
+
message.stanzaId = String(object.stanzaId);
|
|
173
|
+
return message;
|
|
174
|
+
};
|
|
175
|
+
/**
|
|
176
|
+
* Creates a plain object from a ServerErrorReceipt message. Also converts values to other types if specified.
|
|
177
|
+
* @function toObject
|
|
178
|
+
* @memberof MmsRetry.ServerErrorReceipt
|
|
179
|
+
* @static
|
|
180
|
+
* @param {MmsRetry.ServerErrorReceipt} message ServerErrorReceipt
|
|
181
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
182
|
+
* @returns {Object.<string,*>} Plain object
|
|
183
|
+
*/
|
|
184
|
+
ServerErrorReceipt.toObject = function toObject(message, options) {
|
|
185
|
+
if (!options)
|
|
186
|
+
options = {};
|
|
187
|
+
var object = {};
|
|
188
|
+
if (message.stanzaId != null && message.hasOwnProperty("stanzaId")) {
|
|
189
|
+
object.stanzaId = message.stanzaId;
|
|
190
|
+
if (options.oneofs)
|
|
191
|
+
object._stanzaId = "stanzaId";
|
|
192
|
+
}
|
|
193
|
+
return object;
|
|
194
|
+
};
|
|
195
|
+
/**
|
|
196
|
+
* Converts this ServerErrorReceipt to JSON.
|
|
197
|
+
* @function toJSON
|
|
198
|
+
* @memberof MmsRetry.ServerErrorReceipt
|
|
199
|
+
* @instance
|
|
200
|
+
* @returns {Object.<string,*>} JSON object
|
|
201
|
+
*/
|
|
202
|
+
ServerErrorReceipt.prototype.toJSON = function toJSON() {
|
|
203
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
204
|
+
};
|
|
205
|
+
/**
|
|
206
|
+
* Gets the default type url for ServerErrorReceipt
|
|
207
|
+
* @function getTypeUrl
|
|
208
|
+
* @memberof MmsRetry.ServerErrorReceipt
|
|
209
|
+
* @static
|
|
210
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
211
|
+
* @returns {string} The default type url
|
|
212
|
+
*/
|
|
213
|
+
ServerErrorReceipt.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
214
|
+
if (typeUrlPrefix === undefined) {
|
|
215
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
216
|
+
}
|
|
217
|
+
return typeUrlPrefix + "/MmsRetry.ServerErrorReceipt";
|
|
218
|
+
};
|
|
219
|
+
return ServerErrorReceipt;
|
|
220
|
+
})();
|
|
221
|
+
MmsRetry.MediaRetryNotification = (function() {
|
|
222
|
+
/**
|
|
223
|
+
* Properties of a MediaRetryNotification.
|
|
224
|
+
* @memberof MmsRetry
|
|
225
|
+
* @interface IMediaRetryNotification
|
|
226
|
+
* @property {string|null} [stanzaId] MediaRetryNotification stanzaId
|
|
227
|
+
* @property {string|null} [directPath] MediaRetryNotification directPath
|
|
228
|
+
* @property {MmsRetry.MediaRetryNotification.ResultType|null} [result] MediaRetryNotification result
|
|
229
|
+
* @property {Uint8Array|null} [messageSecret] MediaRetryNotification messageSecret
|
|
230
|
+
*/
|
|
231
|
+
/**
|
|
232
|
+
* Constructs a new MediaRetryNotification.
|
|
233
|
+
* @memberof MmsRetry
|
|
234
|
+
* @classdesc Represents a MediaRetryNotification.
|
|
235
|
+
* @implements IMediaRetryNotification
|
|
236
|
+
* @constructor
|
|
237
|
+
* @param {MmsRetry.IMediaRetryNotification=} [properties] Properties to set
|
|
238
|
+
*/
|
|
239
|
+
function MediaRetryNotification(properties) {
|
|
240
|
+
if (properties)
|
|
241
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
242
|
+
if (properties[keys[i]] != null)
|
|
243
|
+
this[keys[i]] = properties[keys[i]];
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* MediaRetryNotification stanzaId.
|
|
247
|
+
* @member {string|null|undefined} stanzaId
|
|
248
|
+
* @memberof MmsRetry.MediaRetryNotification
|
|
249
|
+
* @instance
|
|
250
|
+
*/
|
|
251
|
+
MediaRetryNotification.prototype.stanzaId = null;
|
|
252
|
+
/**
|
|
253
|
+
* MediaRetryNotification directPath.
|
|
254
|
+
* @member {string|null|undefined} directPath
|
|
255
|
+
* @memberof MmsRetry.MediaRetryNotification
|
|
256
|
+
* @instance
|
|
257
|
+
*/
|
|
258
|
+
MediaRetryNotification.prototype.directPath = null;
|
|
259
|
+
/**
|
|
260
|
+
* MediaRetryNotification result.
|
|
261
|
+
* @member {MmsRetry.MediaRetryNotification.ResultType|null|undefined} result
|
|
262
|
+
* @memberof MmsRetry.MediaRetryNotification
|
|
263
|
+
* @instance
|
|
264
|
+
*/
|
|
265
|
+
MediaRetryNotification.prototype.result = null;
|
|
266
|
+
/**
|
|
267
|
+
* MediaRetryNotification messageSecret.
|
|
268
|
+
* @member {Uint8Array|null|undefined} messageSecret
|
|
269
|
+
* @memberof MmsRetry.MediaRetryNotification
|
|
270
|
+
* @instance
|
|
271
|
+
*/
|
|
272
|
+
MediaRetryNotification.prototype.messageSecret = null;
|
|
273
|
+
// OneOf field names bound to virtual getters and setters
|
|
274
|
+
var $oneOfFields;
|
|
275
|
+
/**
|
|
276
|
+
* MediaRetryNotification _stanzaId.
|
|
277
|
+
* @member {"stanzaId"|undefined} _stanzaId
|
|
278
|
+
* @memberof MmsRetry.MediaRetryNotification
|
|
279
|
+
* @instance
|
|
280
|
+
*/
|
|
281
|
+
Object.defineProperty(MediaRetryNotification.prototype, "_stanzaId", {
|
|
282
|
+
get: $util.oneOfGetter($oneOfFields = ["stanzaId"]),
|
|
283
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
284
|
+
});
|
|
285
|
+
/**
|
|
286
|
+
* MediaRetryNotification _directPath.
|
|
287
|
+
* @member {"directPath"|undefined} _directPath
|
|
288
|
+
* @memberof MmsRetry.MediaRetryNotification
|
|
289
|
+
* @instance
|
|
290
|
+
*/
|
|
291
|
+
Object.defineProperty(MediaRetryNotification.prototype, "_directPath", {
|
|
292
|
+
get: $util.oneOfGetter($oneOfFields = ["directPath"]),
|
|
293
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
294
|
+
});
|
|
295
|
+
/**
|
|
296
|
+
* MediaRetryNotification _result.
|
|
297
|
+
* @member {"result"|undefined} _result
|
|
298
|
+
* @memberof MmsRetry.MediaRetryNotification
|
|
299
|
+
* @instance
|
|
300
|
+
*/
|
|
301
|
+
Object.defineProperty(MediaRetryNotification.prototype, "_result", {
|
|
302
|
+
get: $util.oneOfGetter($oneOfFields = ["result"]),
|
|
303
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
304
|
+
});
|
|
305
|
+
/**
|
|
306
|
+
* MediaRetryNotification _messageSecret.
|
|
307
|
+
* @member {"messageSecret"|undefined} _messageSecret
|
|
308
|
+
* @memberof MmsRetry.MediaRetryNotification
|
|
309
|
+
* @instance
|
|
310
|
+
*/
|
|
311
|
+
Object.defineProperty(MediaRetryNotification.prototype, "_messageSecret", {
|
|
312
|
+
get: $util.oneOfGetter($oneOfFields = ["messageSecret"]),
|
|
313
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
314
|
+
});
|
|
315
|
+
/**
|
|
316
|
+
* Creates a new MediaRetryNotification instance using the specified properties.
|
|
317
|
+
* @function create
|
|
318
|
+
* @memberof MmsRetry.MediaRetryNotification
|
|
319
|
+
* @static
|
|
320
|
+
* @param {MmsRetry.IMediaRetryNotification=} [properties] Properties to set
|
|
321
|
+
* @returns {MmsRetry.MediaRetryNotification} MediaRetryNotification instance
|
|
322
|
+
*/
|
|
323
|
+
MediaRetryNotification.create = function create(properties) {
|
|
324
|
+
return new MediaRetryNotification(properties);
|
|
325
|
+
};
|
|
326
|
+
/**
|
|
327
|
+
* Encodes the specified MediaRetryNotification message. Does not implicitly {@link MmsRetry.MediaRetryNotification.verify|verify} messages.
|
|
328
|
+
* @function encode
|
|
329
|
+
* @memberof MmsRetry.MediaRetryNotification
|
|
330
|
+
* @static
|
|
331
|
+
* @param {MmsRetry.IMediaRetryNotification} message MediaRetryNotification message or plain object to encode
|
|
332
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
333
|
+
* @returns {$protobuf.Writer} Writer
|
|
334
|
+
*/
|
|
335
|
+
MediaRetryNotification.encode = function encode(message, writer) {
|
|
336
|
+
if (!writer)
|
|
337
|
+
writer = $Writer.create();
|
|
338
|
+
if (message.stanzaId != null && Object.hasOwnProperty.call(message, "stanzaId"))
|
|
339
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.stanzaId);
|
|
340
|
+
if (message.directPath != null && Object.hasOwnProperty.call(message, "directPath"))
|
|
341
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.directPath);
|
|
342
|
+
if (message.result != null && Object.hasOwnProperty.call(message, "result"))
|
|
343
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.result);
|
|
344
|
+
if (message.messageSecret != null && Object.hasOwnProperty.call(message, "messageSecret"))
|
|
345
|
+
writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.messageSecret);
|
|
346
|
+
return writer;
|
|
347
|
+
};
|
|
348
|
+
/**
|
|
349
|
+
* Encodes the specified MediaRetryNotification message, length delimited. Does not implicitly {@link MmsRetry.MediaRetryNotification.verify|verify} messages.
|
|
350
|
+
* @function encodeDelimited
|
|
351
|
+
* @memberof MmsRetry.MediaRetryNotification
|
|
352
|
+
* @static
|
|
353
|
+
* @param {MmsRetry.IMediaRetryNotification} message MediaRetryNotification message or plain object to encode
|
|
354
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
355
|
+
* @returns {$protobuf.Writer} Writer
|
|
356
|
+
*/
|
|
357
|
+
MediaRetryNotification.encodeDelimited = function encodeDelimited(message, writer) {
|
|
358
|
+
return this.encode(message, writer).ldelim();
|
|
359
|
+
};
|
|
360
|
+
/**
|
|
361
|
+
* Decodes a MediaRetryNotification message from the specified reader or buffer.
|
|
362
|
+
* @function decode
|
|
363
|
+
* @memberof MmsRetry.MediaRetryNotification
|
|
364
|
+
* @static
|
|
365
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
366
|
+
* @param {number} [length] Message length if known beforehand
|
|
367
|
+
* @returns {MmsRetry.MediaRetryNotification} MediaRetryNotification
|
|
368
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
369
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
370
|
+
*/
|
|
371
|
+
MediaRetryNotification.decode = function decode(reader, length, error) {
|
|
372
|
+
if (!(reader instanceof $Reader))
|
|
373
|
+
reader = $Reader.create(reader);
|
|
374
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.MmsRetry.MediaRetryNotification();
|
|
375
|
+
while (reader.pos < end) {
|
|
376
|
+
var tag = reader.uint32();
|
|
377
|
+
if (tag === error)
|
|
378
|
+
break;
|
|
379
|
+
switch (tag >>> 3) {
|
|
380
|
+
case 1: {
|
|
381
|
+
message.stanzaId = reader.string();
|
|
382
|
+
break;
|
|
383
|
+
}
|
|
384
|
+
case 2: {
|
|
385
|
+
message.directPath = reader.string();
|
|
386
|
+
break;
|
|
387
|
+
}
|
|
388
|
+
case 3: {
|
|
389
|
+
message.result = reader.int32();
|
|
390
|
+
break;
|
|
391
|
+
}
|
|
392
|
+
case 4: {
|
|
393
|
+
message.messageSecret = reader.bytes();
|
|
394
|
+
break;
|
|
395
|
+
}
|
|
396
|
+
default:
|
|
397
|
+
reader.skipType(tag & 7);
|
|
398
|
+
break;
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
return message;
|
|
402
|
+
};
|
|
403
|
+
/**
|
|
404
|
+
* Decodes a MediaRetryNotification message from the specified reader or buffer, length delimited.
|
|
405
|
+
* @function decodeDelimited
|
|
406
|
+
* @memberof MmsRetry.MediaRetryNotification
|
|
407
|
+
* @static
|
|
408
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
409
|
+
* @returns {MmsRetry.MediaRetryNotification} MediaRetryNotification
|
|
410
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
411
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
412
|
+
*/
|
|
413
|
+
MediaRetryNotification.decodeDelimited = function decodeDelimited(reader) {
|
|
414
|
+
if (!(reader instanceof $Reader))
|
|
415
|
+
reader = new $Reader(reader);
|
|
416
|
+
return this.decode(reader, reader.uint32());
|
|
417
|
+
};
|
|
418
|
+
/**
|
|
419
|
+
* Verifies a MediaRetryNotification message.
|
|
420
|
+
* @function verify
|
|
421
|
+
* @memberof MmsRetry.MediaRetryNotification
|
|
422
|
+
* @static
|
|
423
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
424
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
425
|
+
*/
|
|
426
|
+
MediaRetryNotification.verify = function verify(message) {
|
|
427
|
+
if (typeof message !== "object" || message === null)
|
|
428
|
+
return "object expected";
|
|
429
|
+
var properties = {};
|
|
430
|
+
if (message.stanzaId != null && message.hasOwnProperty("stanzaId")) {
|
|
431
|
+
properties._stanzaId = 1;
|
|
432
|
+
if (!$util.isString(message.stanzaId))
|
|
433
|
+
return "stanzaId: string expected";
|
|
434
|
+
}
|
|
435
|
+
if (message.directPath != null && message.hasOwnProperty("directPath")) {
|
|
436
|
+
properties._directPath = 1;
|
|
437
|
+
if (!$util.isString(message.directPath))
|
|
438
|
+
return "directPath: string expected";
|
|
439
|
+
}
|
|
440
|
+
if (message.result != null && message.hasOwnProperty("result")) {
|
|
441
|
+
properties._result = 1;
|
|
442
|
+
switch (message.result) {
|
|
443
|
+
default:
|
|
444
|
+
return "result: enum value expected";
|
|
445
|
+
case 0:
|
|
446
|
+
case 1:
|
|
447
|
+
case 2:
|
|
448
|
+
case 3:
|
|
449
|
+
break;
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
if (message.messageSecret != null && message.hasOwnProperty("messageSecret")) {
|
|
453
|
+
properties._messageSecret = 1;
|
|
454
|
+
if (!(message.messageSecret && typeof message.messageSecret.length === "number" || $util.isString(message.messageSecret)))
|
|
455
|
+
return "messageSecret: buffer expected";
|
|
456
|
+
}
|
|
457
|
+
return null;
|
|
458
|
+
};
|
|
459
|
+
/**
|
|
460
|
+
* Creates a MediaRetryNotification message from a plain object. Also converts values to their respective internal types.
|
|
461
|
+
* @function fromObject
|
|
462
|
+
* @memberof MmsRetry.MediaRetryNotification
|
|
463
|
+
* @static
|
|
464
|
+
* @param {Object.<string,*>} object Plain object
|
|
465
|
+
* @returns {MmsRetry.MediaRetryNotification} MediaRetryNotification
|
|
466
|
+
*/
|
|
467
|
+
MediaRetryNotification.fromObject = function fromObject(object) {
|
|
468
|
+
if (object instanceof $root.MmsRetry.MediaRetryNotification)
|
|
469
|
+
return object;
|
|
470
|
+
var message = new $root.MmsRetry.MediaRetryNotification();
|
|
471
|
+
if (object.stanzaId != null)
|
|
472
|
+
message.stanzaId = String(object.stanzaId);
|
|
473
|
+
if (object.directPath != null)
|
|
474
|
+
message.directPath = String(object.directPath);
|
|
475
|
+
switch (object.result) {
|
|
476
|
+
default:
|
|
477
|
+
if (typeof object.result === "number") {
|
|
478
|
+
message.result = object.result;
|
|
479
|
+
break;
|
|
480
|
+
}
|
|
481
|
+
break;
|
|
482
|
+
case "GENERAL_ERROR":
|
|
483
|
+
case 0:
|
|
484
|
+
message.result = 0;
|
|
485
|
+
break;
|
|
486
|
+
case "SUCCESS":
|
|
487
|
+
case 1:
|
|
488
|
+
message.result = 1;
|
|
489
|
+
break;
|
|
490
|
+
case "NOT_FOUND":
|
|
491
|
+
case 2:
|
|
492
|
+
message.result = 2;
|
|
493
|
+
break;
|
|
494
|
+
case "DECRYPTION_ERROR":
|
|
495
|
+
case 3:
|
|
496
|
+
message.result = 3;
|
|
497
|
+
break;
|
|
498
|
+
}
|
|
499
|
+
if (object.messageSecret != null)
|
|
500
|
+
if (typeof object.messageSecret === "string")
|
|
501
|
+
$util.base64.decode(object.messageSecret, message.messageSecret = $util.newBuffer($util.base64.length(object.messageSecret)), 0);
|
|
502
|
+
else if (object.messageSecret.length >= 0)
|
|
503
|
+
message.messageSecret = object.messageSecret;
|
|
504
|
+
return message;
|
|
505
|
+
};
|
|
506
|
+
/**
|
|
507
|
+
* Creates a plain object from a MediaRetryNotification message. Also converts values to other types if specified.
|
|
508
|
+
* @function toObject
|
|
509
|
+
* @memberof MmsRetry.MediaRetryNotification
|
|
510
|
+
* @static
|
|
511
|
+
* @param {MmsRetry.MediaRetryNotification} message MediaRetryNotification
|
|
512
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
513
|
+
* @returns {Object.<string,*>} Plain object
|
|
514
|
+
*/
|
|
515
|
+
MediaRetryNotification.toObject = function toObject(message, options) {
|
|
516
|
+
if (!options)
|
|
517
|
+
options = {};
|
|
518
|
+
var object = {};
|
|
519
|
+
if (message.stanzaId != null && message.hasOwnProperty("stanzaId")) {
|
|
520
|
+
object.stanzaId = message.stanzaId;
|
|
521
|
+
if (options.oneofs)
|
|
522
|
+
object._stanzaId = "stanzaId";
|
|
523
|
+
}
|
|
524
|
+
if (message.directPath != null && message.hasOwnProperty("directPath")) {
|
|
525
|
+
object.directPath = message.directPath;
|
|
526
|
+
if (options.oneofs)
|
|
527
|
+
object._directPath = "directPath";
|
|
528
|
+
}
|
|
529
|
+
if (message.result != null && message.hasOwnProperty("result")) {
|
|
530
|
+
object.result = options.enums === String ? $root.MmsRetry.MediaRetryNotification.ResultType[message.result] === undefined ? message.result : $root.MmsRetry.MediaRetryNotification.ResultType[message.result] : message.result;
|
|
531
|
+
if (options.oneofs)
|
|
532
|
+
object._result = "result";
|
|
533
|
+
}
|
|
534
|
+
if (message.messageSecret != null && message.hasOwnProperty("messageSecret")) {
|
|
535
|
+
object.messageSecret = options.bytes === String ? $util.base64.encode(message.messageSecret, 0, message.messageSecret.length) : options.bytes === Array ? Array.prototype.slice.call(message.messageSecret) : message.messageSecret;
|
|
536
|
+
if (options.oneofs)
|
|
537
|
+
object._messageSecret = "messageSecret";
|
|
538
|
+
}
|
|
539
|
+
return object;
|
|
540
|
+
};
|
|
541
|
+
/**
|
|
542
|
+
* Converts this MediaRetryNotification to JSON.
|
|
543
|
+
* @function toJSON
|
|
544
|
+
* @memberof MmsRetry.MediaRetryNotification
|
|
545
|
+
* @instance
|
|
546
|
+
* @returns {Object.<string,*>} JSON object
|
|
547
|
+
*/
|
|
548
|
+
MediaRetryNotification.prototype.toJSON = function toJSON() {
|
|
549
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
550
|
+
};
|
|
551
|
+
/**
|
|
552
|
+
* Gets the default type url for MediaRetryNotification
|
|
553
|
+
* @function getTypeUrl
|
|
554
|
+
* @memberof MmsRetry.MediaRetryNotification
|
|
555
|
+
* @static
|
|
556
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
557
|
+
* @returns {string} The default type url
|
|
558
|
+
*/
|
|
559
|
+
MediaRetryNotification.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
560
|
+
if (typeUrlPrefix === undefined) {
|
|
561
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
562
|
+
}
|
|
563
|
+
return typeUrlPrefix + "/MmsRetry.MediaRetryNotification";
|
|
564
|
+
};
|
|
565
|
+
/**
|
|
566
|
+
* ResultType enum.
|
|
567
|
+
* @name MmsRetry.MediaRetryNotification.ResultType
|
|
568
|
+
* @enum {number}
|
|
569
|
+
* @property {number} GENERAL_ERROR=0 GENERAL_ERROR value
|
|
570
|
+
* @property {number} SUCCESS=1 SUCCESS value
|
|
571
|
+
* @property {number} NOT_FOUND=2 NOT_FOUND value
|
|
572
|
+
* @property {number} DECRYPTION_ERROR=3 DECRYPTION_ERROR value
|
|
573
|
+
*/
|
|
574
|
+
MediaRetryNotification.ResultType = (function() {
|
|
575
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
576
|
+
values[valuesById[0] = "GENERAL_ERROR"] = 0;
|
|
577
|
+
values[valuesById[1] = "SUCCESS"] = 1;
|
|
578
|
+
values[valuesById[2] = "NOT_FOUND"] = 2;
|
|
579
|
+
values[valuesById[3] = "DECRYPTION_ERROR"] = 3;
|
|
580
|
+
return values;
|
|
581
|
+
})();
|
|
582
|
+
return MediaRetryNotification;
|
|
583
|
+
})();
|
|
584
|
+
return MmsRetry;
|
|
585
|
+
})();
|
|
586
|
+
module.exports = $root;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
package MmsRetry;
|
|
3
|
+
message ServerErrorReceipt {
|
|
4
|
+
optional string stanzaId = 1;
|
|
5
|
+
}
|
|
6
|
+
message MediaRetryNotification {
|
|
7
|
+
optional string stanzaId = 1;
|
|
8
|
+
optional string directPath = 2;
|
|
9
|
+
optional ResultType result = 3;
|
|
10
|
+
optional bytes messageSecret = 4;
|
|
11
|
+
enum ResultType {
|
|
12
|
+
GENERAL_ERROR = 0;
|
|
13
|
+
SUCCESS = 1;
|
|
14
|
+
NOT_FOUND = 2;
|
|
15
|
+
DECRYPTION_ERROR = 3;
|
|
16
|
+
}
|
|
17
|
+
}
|