@hansaka02/baileys 7.3.2 → 7.3.6
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/lib/Defaults/baileys-version.json +2 -2
- package/lib/Defaults/connection.js +51 -0
- package/lib/Defaults/constants.js +74 -0
- package/lib/Defaults/history.js +19 -0
- package/lib/Defaults/index.js +36 -142
- package/lib/Defaults/media.js +48 -0
- package/lib/Defaults/prefix.js +18 -0
- package/lib/Signal/Group/group-session-builder.js +10 -42
- package/lib/Signal/Group/group_cipher.js +9 -6
- package/lib/Signal/Group/index.js +39 -53
- package/lib/Signal/Group/keyhelper.js +8 -41
- package/lib/Signal/Group/sender-chain-key.js +5 -18
- package/lib/Signal/Group/sender-key-distribution-message.js +7 -7
- package/lib/Signal/Group/sender-key-message.js +12 -8
- package/lib/Signal/Group/sender-key-record.js +7 -16
- package/lib/Signal/Group/sender-key-state.js +15 -61
- package/lib/Signal/Group/sender-message-key.js +2 -2
- package/lib/Signal/libsignal.js +237 -177
- package/lib/Signal/lid-mapping.js +128 -71
- package/lib/Socket/Client/types.js +2 -2
- package/lib/Socket/Client/websocket.js +25 -16
- package/lib/Socket/business.js +46 -33
- package/lib/Socket/chats.js +286 -170
- package/lib/Socket/community.js +215 -77
- package/lib/Socket/groups.js +77 -61
- package/lib/Socket/index.js +4 -4
- package/lib/Socket/messages-recv.js +629 -457
- package/lib/Socket/messages-send.js +645 -656
- package/lib/Socket/mex.js +61 -0
- package/lib/Socket/newsletter.js +166 -245
- package/lib/Socket/socket.js +396 -170
- package/lib/Store/index.js +27 -11
- package/lib/Store/make-cache-manager-store.js +14 -15
- package/lib/Store/make-in-memory-store.js +28 -24
- package/lib/Types/LabelAssociation.js +2 -2
- package/lib/Types/Message.js +6 -6
- package/lib/Types/MexUpdates.js +5 -5
- package/lib/Types/Newsletter.js +32 -25
- package/lib/Types/State.js +4 -4
- package/lib/Types/index.js +28 -12
- package/lib/Utils/auth-utils.js +212 -375
- package/lib/Utils/baileys-event-stream.js +68 -69
- package/lib/Utils/browser-utils.js +43 -0
- package/lib/Utils/business.js +63 -53
- package/lib/Utils/chat-utils.js +241 -106
- package/lib/Utils/crypto.js +25 -45
- package/lib/Utils/decode-wa-message.js +361 -311
- package/lib/Utils/event-buffer.js +97 -42
- package/lib/Utils/generics.js +90 -207
- package/lib/Utils/history.js +29 -27
- package/lib/Utils/index.js +28 -14
- package/lib/Utils/link-preview.js +24 -62
- package/lib/Utils/logger.js +5 -5
- package/lib/Utils/lt-hash.js +29 -23
- package/lib/Utils/make-mutex.js +26 -28
- package/lib/Utils/message-retry-manager.js +55 -7
- package/lib/Utils/messages-media.js +434 -247
- package/lib/Utils/messages.js +963 -917
- package/lib/Utils/noise-handler.js +60 -20
- package/lib/Utils/pre-key-manager.js +126 -0
- package/lib/Utils/process-message.js +216 -141
- package/lib/Utils/signal.js +75 -37
- package/lib/Utils/use-multi-file-auth-state.js +18 -22
- package/lib/Utils/validate-connection.js +96 -66
- package/lib/WABinary/constants.js +1268 -1268
- package/lib/WABinary/decode.js +62 -34
- package/lib/WABinary/encode.js +57 -36
- package/lib/WABinary/generic-utils.js +4 -4
- package/lib/WABinary/index.js +27 -11
- package/lib/WABinary/jid-utils.js +58 -11
- package/lib/WAM/constants.js +19064 -11563
- package/lib/WAM/encode.js +71 -14
- package/lib/WAM/index.js +27 -11
- package/lib/WAUSync/Protocols/USyncBotProfileProtocol.js +20 -16
- package/lib/WAUSync/Protocols/USyncContactProtocol.js +2 -2
- package/lib/WAUSync/Protocols/USyncDeviceProtocol.js +7 -4
- package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +2 -2
- package/lib/WAUSync/Protocols/USyncLIDProtocol.js +0 -2
- package/lib/WAUSync/Protocols/USyncStatusProtocol.js +2 -2
- package/lib/WAUSync/Protocols/index.js +27 -11
- package/lib/WAUSync/USyncQuery.js +51 -28
- package/lib/WAUSync/index.js +27 -11
- package/lib/index.js +60 -31
- package/package.json +12 -17
- package/WAProto/AICommon/AICommon.d.ts +0 -11702
- package/WAProto/Adv/Adv.d.ts +0 -643
- package/WAProto/BotMetadata/BotMetadata.d.ts +0 -5654
- package/WAProto/Cert/Cert.d.ts +0 -613
- package/WAProto/ChatLockSettings/ChatLockSettings.d.ts +0 -476
- package/WAProto/CompanionReg/CompanionReg.d.ts +0 -1361
- package/WAProto/DeviceCapabilities/DeviceCapabilities.d.ts +0 -577
- package/WAProto/E2E/E2E.d.ts +0 -41724
- package/WAProto/Ephemeral/Ephemeral.d.ts +0 -114
- package/WAProto/HistorySync/HistorySync.d.ts +0 -51700
- package/WAProto/LidMigrationSyncPayload/LidMigrationSyncPayload.d.ts +0 -229
- package/WAProto/MdStorageChatRowOpaqueData/MdStorageChatRowOpaqueData.d.ts +0 -583
- package/WAProto/MdStorageMsgRowOpaqueData/MdStorageMsgRowOpaqueData.d.ts +0 -42897
- package/WAProto/MmsRetry/MmsRetry.d.ts +0 -243
- package/WAProto/Protocol/Protocol.d.ts +0 -270
- package/WAProto/Reporting/Reporting.d.ts +0 -371
- package/WAProto/ServerSync/ServerSync.d.ts +0 -1285
- package/WAProto/SignalLocalStorageProtocol/SignalLocalStorageProtocol.d.ts +0 -1868
- package/WAProto/SignalWhisperTextProtocol/SignalWhisperTextProtocol.d.ts +0 -767
- package/WAProto/StatusAttributions/StatusAttributions.d.ts +0 -1027
- package/WAProto/SyncAction/SyncAction.d.ts +0 -11193
- package/WAProto/UserPassword/UserPassword.d.ts +0 -363
- package/WAProto/VnameCert/VnameCert.d.ts +0 -821
- package/WAProto/Wa6/Wa6.d.ts +0 -2128
- package/WAProto/Web/Web.d.ts +0 -46383
- package/WAProto/index.d.ts +0 -55
- package/lib/Defaults/index.d.ts +0 -77
- package/lib/Signal/Group/ciphertext-message.d.ts +0 -9
- package/lib/Signal/Group/group-session-builder.d.ts +0 -17
- package/lib/Signal/Group/group_cipher.d.ts +0 -19
- package/lib/Signal/Group/index.d.ts +0 -11
- package/lib/Signal/Group/keyhelper.d.ts +0 -16
- package/lib/Signal/Group/sender-chain-key.d.ts +0 -14
- package/lib/Signal/Group/sender-key-distribution-message.d.ts +0 -17
- package/lib/Signal/Group/sender-key-message.d.ts +0 -19
- package/lib/Signal/Group/sender-key-name.d.ts +0 -19
- package/lib/Signal/Group/sender-key-record.d.ts +0 -32
- package/lib/Signal/Group/sender-key-state.d.ts +0 -44
- package/lib/Signal/Group/sender-message-key.d.ts +0 -11
- package/lib/Signal/libsignal.d.ts +0 -8
- package/lib/Signal/lid-mapping.d.ts +0 -28
- package/lib/Socket/Client/index.d.ts +0 -2
- package/lib/Socket/Client/types.d.ts +0 -16
- package/lib/Socket/Client/websocket.d.ts +0 -13
- package/lib/Socket/business.d.ts +0 -187
- package/lib/Socket/chats.d.ts +0 -97
- package/lib/Socket/community.d.ts +0 -129
- package/lib/Socket/groups.d.ts +0 -129
- package/lib/Socket/index.d.ts +0 -191
- package/lib/Socket/messages-recv.d.ts +0 -174
- package/lib/Socket/messages-send.d.ts +0 -165
- package/lib/Socket/newsletter.d.ts +0 -145
- package/lib/Socket/socket.d.ts +0 -45
- package/lib/Socket/usync.d.ts +0 -37
- package/lib/Socket/usync.js +0 -83
- package/lib/Store/index.d.ts +0 -4
- package/lib/Store/make-cache-manager-store.d.ts +0 -14
- package/lib/Store/make-in-memory-store.d.ts +0 -123
- package/lib/Store/make-ordered-dictionary.d.ts +0 -12
- package/lib/Store/object-repository.d.ts +0 -10
- package/lib/Types/Auth.d.ts +0 -121
- package/lib/Types/Bussiness.d.ts +0 -28
- package/lib/Types/Call.d.ts +0 -14
- package/lib/Types/Chat.d.ts +0 -143
- package/lib/Types/Contact.d.ts +0 -23
- package/lib/Types/Events.d.ts +0 -226
- package/lib/Types/GroupMetadata.d.ts +0 -66
- package/lib/Types/Label.d.ts +0 -48
- package/lib/Types/LabelAssociation.d.ts +0 -35
- package/lib/Types/Message.d.ts +0 -484
- package/lib/Types/MexUpdates.d.ts +0 -9
- package/lib/Types/Newsletter.d.ts +0 -109
- package/lib/Types/Product.d.ts +0 -92
- package/lib/Types/Signal.d.ts +0 -98
- package/lib/Types/Socket.d.ts +0 -141
- package/lib/Types/State.d.ts +0 -41
- package/lib/Types/USync.d.ts +0 -26
- package/lib/Types/index.d.ts +0 -80
- package/lib/Utils/auth-utils.d.ts +0 -21
- package/lib/Utils/baileys-event-stream.d.ts +0 -18
- package/lib/Utils/business.d.ts +0 -29
- package/lib/Utils/chat-utils.d.ts +0 -82
- package/lib/Utils/crypto.d.ts +0 -56
- package/lib/Utils/decode-wa-message.d.ts +0 -53
- package/lib/Utils/event-buffer.d.ts +0 -39
- package/lib/Utils/generics.d.ts +0 -117
- package/lib/Utils/history.d.ts +0 -23
- package/lib/Utils/index.d.ts +0 -20
- package/lib/Utils/link-preview.d.ts +0 -23
- package/lib/Utils/logger.d.ts +0 -13
- package/lib/Utils/lt-hash.d.ts +0 -14
- package/lib/Utils/make-mutex.d.ts +0 -9
- package/lib/Utils/message-retry-manager.d.ts +0 -88
- package/lib/Utils/messages-media.d.ts +0 -135
- package/lib/Utils/messages.d.ts +0 -105
- package/lib/Utils/noise-handler.d.ts +0 -20
- package/lib/Utils/process-message.d.ts +0 -49
- package/lib/Utils/signal.d.ts +0 -42
- package/lib/Utils/use-mongo-file-auth-state.d.ts +0 -6
- package/lib/Utils/use-mongo-file-auth-state.js +0 -84
- package/lib/Utils/use-multi-file-auth-state.d.ts +0 -13
- package/lib/Utils/use-single-file-auth-state.d.ts +0 -13
- package/lib/Utils/use-single-file-auth-state.js +0 -80
- package/lib/Utils/validate-connection.d.ts +0 -13
- package/lib/WABinary/constants.d.ts +0 -30
- package/lib/WABinary/decode.d.ts +0 -9
- package/lib/WABinary/encode.d.ts +0 -3
- package/lib/WABinary/generic-utils.d.ts +0 -28
- package/lib/WABinary/index.d.ts +0 -5
- package/lib/WABinary/jid-utils.d.ts +0 -58
- package/lib/WABinary/types.d.ts +0 -22
- package/lib/WAM/BinaryInfo.d.ts +0 -16
- package/lib/WAM/constants.d.ts +0 -47
- package/lib/WAM/encode.d.ts +0 -3
- package/lib/WAM/index.d.ts +0 -3
- package/lib/WAUSync/Protocols/USyncBotProfileProtocol.d.ts +0 -28
- package/lib/WAUSync/Protocols/USyncContactProtocol.d.ts +0 -10
- package/lib/WAUSync/Protocols/USyncDeviceProtocol.d.ts +0 -26
- package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.d.ts +0 -14
- package/lib/WAUSync/Protocols/USyncLIDProtocol.d.ts +0 -10
- package/lib/WAUSync/Protocols/USyncStatusProtocol.d.ts +0 -14
- package/lib/WAUSync/Protocols/index.d.ts +0 -6
- package/lib/WAUSync/USyncQuery.d.ts +0 -31
- package/lib/WAUSync/USyncUser.d.ts +0 -12
- package/lib/WAUSync/index.d.ts +0 -3
- package/lib/index.d.ts +0 -13
|
@@ -1,1027 +0,0 @@
|
|
|
1
|
-
import * as $protobuf from "protobufjs";
|
|
2
|
-
import Long = require("long");
|
|
3
|
-
/** Namespace StatusAttributions. */
|
|
4
|
-
export namespace StatusAttributions {
|
|
5
|
-
|
|
6
|
-
/** Properties of a StatusAttribution. */
|
|
7
|
-
interface IStatusAttribution {
|
|
8
|
-
|
|
9
|
-
/** StatusAttribution type */
|
|
10
|
-
type?: (StatusAttributions.StatusAttribution.Type|null);
|
|
11
|
-
|
|
12
|
-
/** StatusAttribution actionUrl */
|
|
13
|
-
actionUrl?: (string|null);
|
|
14
|
-
|
|
15
|
-
/** StatusAttribution statusReshare */
|
|
16
|
-
statusReshare?: (StatusAttributions.StatusAttribution.IStatusReshare|null);
|
|
17
|
-
|
|
18
|
-
/** StatusAttribution externalShare */
|
|
19
|
-
externalShare?: (StatusAttributions.StatusAttribution.IExternalShare|null);
|
|
20
|
-
|
|
21
|
-
/** StatusAttribution music */
|
|
22
|
-
music?: (StatusAttributions.StatusAttribution.IMusic|null);
|
|
23
|
-
|
|
24
|
-
/** StatusAttribution groupStatus */
|
|
25
|
-
groupStatus?: (StatusAttributions.StatusAttribution.IGroupStatus|null);
|
|
26
|
-
|
|
27
|
-
/** StatusAttribution rlAttribution */
|
|
28
|
-
rlAttribution?: (StatusAttributions.StatusAttribution.IRLAttribution|null);
|
|
29
|
-
|
|
30
|
-
/** StatusAttribution aiCreatedAttribution */
|
|
31
|
-
aiCreatedAttribution?: (StatusAttributions.StatusAttribution.IAiCreatedAttribution|null);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/** Represents a StatusAttribution. */
|
|
35
|
-
class StatusAttribution implements IStatusAttribution {
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Constructs a new StatusAttribution.
|
|
39
|
-
* @param [properties] Properties to set
|
|
40
|
-
*/
|
|
41
|
-
constructor(properties?: StatusAttributions.IStatusAttribution);
|
|
42
|
-
|
|
43
|
-
/** StatusAttribution type. */
|
|
44
|
-
public type?: (StatusAttributions.StatusAttribution.Type|null);
|
|
45
|
-
|
|
46
|
-
/** StatusAttribution actionUrl. */
|
|
47
|
-
public actionUrl?: (string|null);
|
|
48
|
-
|
|
49
|
-
/** StatusAttribution statusReshare. */
|
|
50
|
-
public statusReshare?: (StatusAttributions.StatusAttribution.IStatusReshare|null);
|
|
51
|
-
|
|
52
|
-
/** StatusAttribution externalShare. */
|
|
53
|
-
public externalShare?: (StatusAttributions.StatusAttribution.IExternalShare|null);
|
|
54
|
-
|
|
55
|
-
/** StatusAttribution music. */
|
|
56
|
-
public music?: (StatusAttributions.StatusAttribution.IMusic|null);
|
|
57
|
-
|
|
58
|
-
/** StatusAttribution groupStatus. */
|
|
59
|
-
public groupStatus?: (StatusAttributions.StatusAttribution.IGroupStatus|null);
|
|
60
|
-
|
|
61
|
-
/** StatusAttribution rlAttribution. */
|
|
62
|
-
public rlAttribution?: (StatusAttributions.StatusAttribution.IRLAttribution|null);
|
|
63
|
-
|
|
64
|
-
/** StatusAttribution aiCreatedAttribution. */
|
|
65
|
-
public aiCreatedAttribution?: (StatusAttributions.StatusAttribution.IAiCreatedAttribution|null);
|
|
66
|
-
|
|
67
|
-
/** StatusAttribution _type. */
|
|
68
|
-
public _type?: "type";
|
|
69
|
-
|
|
70
|
-
/** StatusAttribution _actionUrl. */
|
|
71
|
-
public _actionUrl?: "actionUrl";
|
|
72
|
-
|
|
73
|
-
/** StatusAttribution attributionData. */
|
|
74
|
-
public attributionData?: ("statusReshare"|"externalShare"|"music"|"groupStatus"|"rlAttribution"|"aiCreatedAttribution");
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* Creates a new StatusAttribution instance using the specified properties.
|
|
78
|
-
* @param [properties] Properties to set
|
|
79
|
-
* @returns StatusAttribution instance
|
|
80
|
-
*/
|
|
81
|
-
public static create(properties?: StatusAttributions.IStatusAttribution): StatusAttributions.StatusAttribution;
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* Encodes the specified StatusAttribution message. Does not implicitly {@link StatusAttributions.StatusAttribution.verify|verify} messages.
|
|
85
|
-
* @param message StatusAttribution message or plain object to encode
|
|
86
|
-
* @param [writer] Writer to encode to
|
|
87
|
-
* @returns Writer
|
|
88
|
-
*/
|
|
89
|
-
public static encode(message: StatusAttributions.IStatusAttribution, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* Encodes the specified StatusAttribution message, length delimited. Does not implicitly {@link StatusAttributions.StatusAttribution.verify|verify} messages.
|
|
93
|
-
* @param message StatusAttribution message or plain object to encode
|
|
94
|
-
* @param [writer] Writer to encode to
|
|
95
|
-
* @returns Writer
|
|
96
|
-
*/
|
|
97
|
-
public static encodeDelimited(message: StatusAttributions.IStatusAttribution, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* Decodes a StatusAttribution message from the specified reader or buffer.
|
|
101
|
-
* @param reader Reader or buffer to decode from
|
|
102
|
-
* @param [length] Message length if known beforehand
|
|
103
|
-
* @returns StatusAttribution
|
|
104
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
105
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
106
|
-
*/
|
|
107
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): StatusAttributions.StatusAttribution;
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* Decodes a StatusAttribution message from the specified reader or buffer, length delimited.
|
|
111
|
-
* @param reader Reader or buffer to decode from
|
|
112
|
-
* @returns StatusAttribution
|
|
113
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
114
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
115
|
-
*/
|
|
116
|
-
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): StatusAttributions.StatusAttribution;
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* Verifies a StatusAttribution message.
|
|
120
|
-
* @param message Plain object to verify
|
|
121
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
|
122
|
-
*/
|
|
123
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* Creates a StatusAttribution message from a plain object. Also converts values to their respective internal types.
|
|
127
|
-
* @param object Plain object
|
|
128
|
-
* @returns StatusAttribution
|
|
129
|
-
*/
|
|
130
|
-
public static fromObject(object: { [k: string]: any }): StatusAttributions.StatusAttribution;
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* Creates a plain object from a StatusAttribution message. Also converts values to other types if specified.
|
|
134
|
-
* @param message StatusAttribution
|
|
135
|
-
* @param [options] Conversion options
|
|
136
|
-
* @returns Plain object
|
|
137
|
-
*/
|
|
138
|
-
public static toObject(message: StatusAttributions.StatusAttribution, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
* Converts this StatusAttribution to JSON.
|
|
142
|
-
* @returns JSON object
|
|
143
|
-
*/
|
|
144
|
-
public toJSON(): { [k: string]: any };
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* Gets the default type url for StatusAttribution
|
|
148
|
-
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
149
|
-
* @returns The default type url
|
|
150
|
-
*/
|
|
151
|
-
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
namespace StatusAttribution {
|
|
155
|
-
|
|
156
|
-
/** Properties of an AiCreatedAttribution. */
|
|
157
|
-
interface IAiCreatedAttribution {
|
|
158
|
-
|
|
159
|
-
/** AiCreatedAttribution source */
|
|
160
|
-
source?: (StatusAttributions.StatusAttribution.AiCreatedAttribution.Source|null);
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
/** Represents an AiCreatedAttribution. */
|
|
164
|
-
class AiCreatedAttribution implements IAiCreatedAttribution {
|
|
165
|
-
|
|
166
|
-
/**
|
|
167
|
-
* Constructs a new AiCreatedAttribution.
|
|
168
|
-
* @param [properties] Properties to set
|
|
169
|
-
*/
|
|
170
|
-
constructor(properties?: StatusAttributions.StatusAttribution.IAiCreatedAttribution);
|
|
171
|
-
|
|
172
|
-
/** AiCreatedAttribution source. */
|
|
173
|
-
public source?: (StatusAttributions.StatusAttribution.AiCreatedAttribution.Source|null);
|
|
174
|
-
|
|
175
|
-
/** AiCreatedAttribution _source. */
|
|
176
|
-
public _source?: "source";
|
|
177
|
-
|
|
178
|
-
/**
|
|
179
|
-
* Creates a new AiCreatedAttribution instance using the specified properties.
|
|
180
|
-
* @param [properties] Properties to set
|
|
181
|
-
* @returns AiCreatedAttribution instance
|
|
182
|
-
*/
|
|
183
|
-
public static create(properties?: StatusAttributions.StatusAttribution.IAiCreatedAttribution): StatusAttributions.StatusAttribution.AiCreatedAttribution;
|
|
184
|
-
|
|
185
|
-
/**
|
|
186
|
-
* Encodes the specified AiCreatedAttribution message. Does not implicitly {@link StatusAttributions.StatusAttribution.AiCreatedAttribution.verify|verify} messages.
|
|
187
|
-
* @param message AiCreatedAttribution message or plain object to encode
|
|
188
|
-
* @param [writer] Writer to encode to
|
|
189
|
-
* @returns Writer
|
|
190
|
-
*/
|
|
191
|
-
public static encode(message: StatusAttributions.StatusAttribution.IAiCreatedAttribution, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
192
|
-
|
|
193
|
-
/**
|
|
194
|
-
* Encodes the specified AiCreatedAttribution message, length delimited. Does not implicitly {@link StatusAttributions.StatusAttribution.AiCreatedAttribution.verify|verify} messages.
|
|
195
|
-
* @param message AiCreatedAttribution message or plain object to encode
|
|
196
|
-
* @param [writer] Writer to encode to
|
|
197
|
-
* @returns Writer
|
|
198
|
-
*/
|
|
199
|
-
public static encodeDelimited(message: StatusAttributions.StatusAttribution.IAiCreatedAttribution, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
200
|
-
|
|
201
|
-
/**
|
|
202
|
-
* Decodes an AiCreatedAttribution message from the specified reader or buffer.
|
|
203
|
-
* @param reader Reader or buffer to decode from
|
|
204
|
-
* @param [length] Message length if known beforehand
|
|
205
|
-
* @returns AiCreatedAttribution
|
|
206
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
207
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
208
|
-
*/
|
|
209
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): StatusAttributions.StatusAttribution.AiCreatedAttribution;
|
|
210
|
-
|
|
211
|
-
/**
|
|
212
|
-
* Decodes an AiCreatedAttribution message from the specified reader or buffer, length delimited.
|
|
213
|
-
* @param reader Reader or buffer to decode from
|
|
214
|
-
* @returns AiCreatedAttribution
|
|
215
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
216
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
217
|
-
*/
|
|
218
|
-
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): StatusAttributions.StatusAttribution.AiCreatedAttribution;
|
|
219
|
-
|
|
220
|
-
/**
|
|
221
|
-
* Verifies an AiCreatedAttribution message.
|
|
222
|
-
* @param message Plain object to verify
|
|
223
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
|
224
|
-
*/
|
|
225
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
|
226
|
-
|
|
227
|
-
/**
|
|
228
|
-
* Creates an AiCreatedAttribution message from a plain object. Also converts values to their respective internal types.
|
|
229
|
-
* @param object Plain object
|
|
230
|
-
* @returns AiCreatedAttribution
|
|
231
|
-
*/
|
|
232
|
-
public static fromObject(object: { [k: string]: any }): StatusAttributions.StatusAttribution.AiCreatedAttribution;
|
|
233
|
-
|
|
234
|
-
/**
|
|
235
|
-
* Creates a plain object from an AiCreatedAttribution message. Also converts values to other types if specified.
|
|
236
|
-
* @param message AiCreatedAttribution
|
|
237
|
-
* @param [options] Conversion options
|
|
238
|
-
* @returns Plain object
|
|
239
|
-
*/
|
|
240
|
-
public static toObject(message: StatusAttributions.StatusAttribution.AiCreatedAttribution, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
241
|
-
|
|
242
|
-
/**
|
|
243
|
-
* Converts this AiCreatedAttribution to JSON.
|
|
244
|
-
* @returns JSON object
|
|
245
|
-
*/
|
|
246
|
-
public toJSON(): { [k: string]: any };
|
|
247
|
-
|
|
248
|
-
/**
|
|
249
|
-
* Gets the default type url for AiCreatedAttribution
|
|
250
|
-
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
251
|
-
* @returns The default type url
|
|
252
|
-
*/
|
|
253
|
-
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
namespace AiCreatedAttribution {
|
|
257
|
-
|
|
258
|
-
/** Source enum. */
|
|
259
|
-
enum Source {
|
|
260
|
-
UNKNOWN = 0,
|
|
261
|
-
STATUS_MIMICRY = 1
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
/** Properties of an ExternalShare. */
|
|
266
|
-
interface IExternalShare {
|
|
267
|
-
|
|
268
|
-
/** ExternalShare actionUrl */
|
|
269
|
-
actionUrl?: (string|null);
|
|
270
|
-
|
|
271
|
-
/** ExternalShare source */
|
|
272
|
-
source?: (StatusAttributions.StatusAttribution.ExternalShare.Source|null);
|
|
273
|
-
|
|
274
|
-
/** ExternalShare duration */
|
|
275
|
-
duration?: (number|null);
|
|
276
|
-
|
|
277
|
-
/** ExternalShare actionFallbackUrl */
|
|
278
|
-
actionFallbackUrl?: (string|null);
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
/** Represents an ExternalShare. */
|
|
282
|
-
class ExternalShare implements IExternalShare {
|
|
283
|
-
|
|
284
|
-
/**
|
|
285
|
-
* Constructs a new ExternalShare.
|
|
286
|
-
* @param [properties] Properties to set
|
|
287
|
-
*/
|
|
288
|
-
constructor(properties?: StatusAttributions.StatusAttribution.IExternalShare);
|
|
289
|
-
|
|
290
|
-
/** ExternalShare actionUrl. */
|
|
291
|
-
public actionUrl?: (string|null);
|
|
292
|
-
|
|
293
|
-
/** ExternalShare source. */
|
|
294
|
-
public source?: (StatusAttributions.StatusAttribution.ExternalShare.Source|null);
|
|
295
|
-
|
|
296
|
-
/** ExternalShare duration. */
|
|
297
|
-
public duration?: (number|null);
|
|
298
|
-
|
|
299
|
-
/** ExternalShare actionFallbackUrl. */
|
|
300
|
-
public actionFallbackUrl?: (string|null);
|
|
301
|
-
|
|
302
|
-
/** ExternalShare _actionUrl. */
|
|
303
|
-
public _actionUrl?: "actionUrl";
|
|
304
|
-
|
|
305
|
-
/** ExternalShare _source. */
|
|
306
|
-
public _source?: "source";
|
|
307
|
-
|
|
308
|
-
/** ExternalShare _duration. */
|
|
309
|
-
public _duration?: "duration";
|
|
310
|
-
|
|
311
|
-
/** ExternalShare _actionFallbackUrl. */
|
|
312
|
-
public _actionFallbackUrl?: "actionFallbackUrl";
|
|
313
|
-
|
|
314
|
-
/**
|
|
315
|
-
* Creates a new ExternalShare instance using the specified properties.
|
|
316
|
-
* @param [properties] Properties to set
|
|
317
|
-
* @returns ExternalShare instance
|
|
318
|
-
*/
|
|
319
|
-
public static create(properties?: StatusAttributions.StatusAttribution.IExternalShare): StatusAttributions.StatusAttribution.ExternalShare;
|
|
320
|
-
|
|
321
|
-
/**
|
|
322
|
-
* Encodes the specified ExternalShare message. Does not implicitly {@link StatusAttributions.StatusAttribution.ExternalShare.verify|verify} messages.
|
|
323
|
-
* @param message ExternalShare message or plain object to encode
|
|
324
|
-
* @param [writer] Writer to encode to
|
|
325
|
-
* @returns Writer
|
|
326
|
-
*/
|
|
327
|
-
public static encode(message: StatusAttributions.StatusAttribution.IExternalShare, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
328
|
-
|
|
329
|
-
/**
|
|
330
|
-
* Encodes the specified ExternalShare message, length delimited. Does not implicitly {@link StatusAttributions.StatusAttribution.ExternalShare.verify|verify} messages.
|
|
331
|
-
* @param message ExternalShare message or plain object to encode
|
|
332
|
-
* @param [writer] Writer to encode to
|
|
333
|
-
* @returns Writer
|
|
334
|
-
*/
|
|
335
|
-
public static encodeDelimited(message: StatusAttributions.StatusAttribution.IExternalShare, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
336
|
-
|
|
337
|
-
/**
|
|
338
|
-
* Decodes an ExternalShare message from the specified reader or buffer.
|
|
339
|
-
* @param reader Reader or buffer to decode from
|
|
340
|
-
* @param [length] Message length if known beforehand
|
|
341
|
-
* @returns ExternalShare
|
|
342
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
343
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
344
|
-
*/
|
|
345
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): StatusAttributions.StatusAttribution.ExternalShare;
|
|
346
|
-
|
|
347
|
-
/**
|
|
348
|
-
* Decodes an ExternalShare message from the specified reader or buffer, length delimited.
|
|
349
|
-
* @param reader Reader or buffer to decode from
|
|
350
|
-
* @returns ExternalShare
|
|
351
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
352
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
353
|
-
*/
|
|
354
|
-
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): StatusAttributions.StatusAttribution.ExternalShare;
|
|
355
|
-
|
|
356
|
-
/**
|
|
357
|
-
* Verifies an ExternalShare message.
|
|
358
|
-
* @param message Plain object to verify
|
|
359
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
|
360
|
-
*/
|
|
361
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
|
362
|
-
|
|
363
|
-
/**
|
|
364
|
-
* Creates an ExternalShare message from a plain object. Also converts values to their respective internal types.
|
|
365
|
-
* @param object Plain object
|
|
366
|
-
* @returns ExternalShare
|
|
367
|
-
*/
|
|
368
|
-
public static fromObject(object: { [k: string]: any }): StatusAttributions.StatusAttribution.ExternalShare;
|
|
369
|
-
|
|
370
|
-
/**
|
|
371
|
-
* Creates a plain object from an ExternalShare message. Also converts values to other types if specified.
|
|
372
|
-
* @param message ExternalShare
|
|
373
|
-
* @param [options] Conversion options
|
|
374
|
-
* @returns Plain object
|
|
375
|
-
*/
|
|
376
|
-
public static toObject(message: StatusAttributions.StatusAttribution.ExternalShare, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
377
|
-
|
|
378
|
-
/**
|
|
379
|
-
* Converts this ExternalShare to JSON.
|
|
380
|
-
* @returns JSON object
|
|
381
|
-
*/
|
|
382
|
-
public toJSON(): { [k: string]: any };
|
|
383
|
-
|
|
384
|
-
/**
|
|
385
|
-
* Gets the default type url for ExternalShare
|
|
386
|
-
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
387
|
-
* @returns The default type url
|
|
388
|
-
*/
|
|
389
|
-
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
namespace ExternalShare {
|
|
393
|
-
|
|
394
|
-
/** Source enum. */
|
|
395
|
-
enum Source {
|
|
396
|
-
UNKNOWN = 0,
|
|
397
|
-
INSTAGRAM = 1,
|
|
398
|
-
FACEBOOK = 2,
|
|
399
|
-
MESSENGER = 3,
|
|
400
|
-
SPOTIFY = 4,
|
|
401
|
-
YOUTUBE = 5,
|
|
402
|
-
PINTEREST = 6,
|
|
403
|
-
THREADS = 7,
|
|
404
|
-
APPLE_MUSIC = 8,
|
|
405
|
-
SHARECHAT = 9,
|
|
406
|
-
GOOGLE_PHOTOS = 10
|
|
407
|
-
}
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
/** Properties of a GroupStatus. */
|
|
411
|
-
interface IGroupStatus {
|
|
412
|
-
|
|
413
|
-
/** GroupStatus authorJid */
|
|
414
|
-
authorJid?: (string|null);
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
/** Represents a GroupStatus. */
|
|
418
|
-
class GroupStatus implements IGroupStatus {
|
|
419
|
-
|
|
420
|
-
/**
|
|
421
|
-
* Constructs a new GroupStatus.
|
|
422
|
-
* @param [properties] Properties to set
|
|
423
|
-
*/
|
|
424
|
-
constructor(properties?: StatusAttributions.StatusAttribution.IGroupStatus);
|
|
425
|
-
|
|
426
|
-
/** GroupStatus authorJid. */
|
|
427
|
-
public authorJid?: (string|null);
|
|
428
|
-
|
|
429
|
-
/** GroupStatus _authorJid. */
|
|
430
|
-
public _authorJid?: "authorJid";
|
|
431
|
-
|
|
432
|
-
/**
|
|
433
|
-
* Creates a new GroupStatus instance using the specified properties.
|
|
434
|
-
* @param [properties] Properties to set
|
|
435
|
-
* @returns GroupStatus instance
|
|
436
|
-
*/
|
|
437
|
-
public static create(properties?: StatusAttributions.StatusAttribution.IGroupStatus): StatusAttributions.StatusAttribution.GroupStatus;
|
|
438
|
-
|
|
439
|
-
/**
|
|
440
|
-
* Encodes the specified GroupStatus message. Does not implicitly {@link StatusAttributions.StatusAttribution.GroupStatus.verify|verify} messages.
|
|
441
|
-
* @param message GroupStatus message or plain object to encode
|
|
442
|
-
* @param [writer] Writer to encode to
|
|
443
|
-
* @returns Writer
|
|
444
|
-
*/
|
|
445
|
-
public static encode(message: StatusAttributions.StatusAttribution.IGroupStatus, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
446
|
-
|
|
447
|
-
/**
|
|
448
|
-
* Encodes the specified GroupStatus message, length delimited. Does not implicitly {@link StatusAttributions.StatusAttribution.GroupStatus.verify|verify} messages.
|
|
449
|
-
* @param message GroupStatus message or plain object to encode
|
|
450
|
-
* @param [writer] Writer to encode to
|
|
451
|
-
* @returns Writer
|
|
452
|
-
*/
|
|
453
|
-
public static encodeDelimited(message: StatusAttributions.StatusAttribution.IGroupStatus, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
454
|
-
|
|
455
|
-
/**
|
|
456
|
-
* Decodes a GroupStatus message from the specified reader or buffer.
|
|
457
|
-
* @param reader Reader or buffer to decode from
|
|
458
|
-
* @param [length] Message length if known beforehand
|
|
459
|
-
* @returns GroupStatus
|
|
460
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
461
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
462
|
-
*/
|
|
463
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): StatusAttributions.StatusAttribution.GroupStatus;
|
|
464
|
-
|
|
465
|
-
/**
|
|
466
|
-
* Decodes a GroupStatus message from the specified reader or buffer, length delimited.
|
|
467
|
-
* @param reader Reader or buffer to decode from
|
|
468
|
-
* @returns GroupStatus
|
|
469
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
470
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
471
|
-
*/
|
|
472
|
-
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): StatusAttributions.StatusAttribution.GroupStatus;
|
|
473
|
-
|
|
474
|
-
/**
|
|
475
|
-
* Verifies a GroupStatus message.
|
|
476
|
-
* @param message Plain object to verify
|
|
477
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
|
478
|
-
*/
|
|
479
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
|
480
|
-
|
|
481
|
-
/**
|
|
482
|
-
* Creates a GroupStatus message from a plain object. Also converts values to their respective internal types.
|
|
483
|
-
* @param object Plain object
|
|
484
|
-
* @returns GroupStatus
|
|
485
|
-
*/
|
|
486
|
-
public static fromObject(object: { [k: string]: any }): StatusAttributions.StatusAttribution.GroupStatus;
|
|
487
|
-
|
|
488
|
-
/**
|
|
489
|
-
* Creates a plain object from a GroupStatus message. Also converts values to other types if specified.
|
|
490
|
-
* @param message GroupStatus
|
|
491
|
-
* @param [options] Conversion options
|
|
492
|
-
* @returns Plain object
|
|
493
|
-
*/
|
|
494
|
-
public static toObject(message: StatusAttributions.StatusAttribution.GroupStatus, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
495
|
-
|
|
496
|
-
/**
|
|
497
|
-
* Converts this GroupStatus to JSON.
|
|
498
|
-
* @returns JSON object
|
|
499
|
-
*/
|
|
500
|
-
public toJSON(): { [k: string]: any };
|
|
501
|
-
|
|
502
|
-
/**
|
|
503
|
-
* Gets the default type url for GroupStatus
|
|
504
|
-
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
505
|
-
* @returns The default type url
|
|
506
|
-
*/
|
|
507
|
-
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
508
|
-
}
|
|
509
|
-
|
|
510
|
-
/** Properties of a Music. */
|
|
511
|
-
interface IMusic {
|
|
512
|
-
|
|
513
|
-
/** Music authorName */
|
|
514
|
-
authorName?: (string|null);
|
|
515
|
-
|
|
516
|
-
/** Music songId */
|
|
517
|
-
songId?: (string|null);
|
|
518
|
-
|
|
519
|
-
/** Music title */
|
|
520
|
-
title?: (string|null);
|
|
521
|
-
|
|
522
|
-
/** Music author */
|
|
523
|
-
author?: (string|null);
|
|
524
|
-
|
|
525
|
-
/** Music artistAttribution */
|
|
526
|
-
artistAttribution?: (string|null);
|
|
527
|
-
|
|
528
|
-
/** Music isExplicit */
|
|
529
|
-
isExplicit?: (boolean|null);
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
/** Represents a Music. */
|
|
533
|
-
class Music implements IMusic {
|
|
534
|
-
|
|
535
|
-
/**
|
|
536
|
-
* Constructs a new Music.
|
|
537
|
-
* @param [properties] Properties to set
|
|
538
|
-
*/
|
|
539
|
-
constructor(properties?: StatusAttributions.StatusAttribution.IMusic);
|
|
540
|
-
|
|
541
|
-
/** Music authorName. */
|
|
542
|
-
public authorName?: (string|null);
|
|
543
|
-
|
|
544
|
-
/** Music songId. */
|
|
545
|
-
public songId?: (string|null);
|
|
546
|
-
|
|
547
|
-
/** Music title. */
|
|
548
|
-
public title?: (string|null);
|
|
549
|
-
|
|
550
|
-
/** Music author. */
|
|
551
|
-
public author?: (string|null);
|
|
552
|
-
|
|
553
|
-
/** Music artistAttribution. */
|
|
554
|
-
public artistAttribution?: (string|null);
|
|
555
|
-
|
|
556
|
-
/** Music isExplicit. */
|
|
557
|
-
public isExplicit?: (boolean|null);
|
|
558
|
-
|
|
559
|
-
/** Music _authorName. */
|
|
560
|
-
public _authorName?: "authorName";
|
|
561
|
-
|
|
562
|
-
/** Music _songId. */
|
|
563
|
-
public _songId?: "songId";
|
|
564
|
-
|
|
565
|
-
/** Music _title. */
|
|
566
|
-
public _title?: "title";
|
|
567
|
-
|
|
568
|
-
/** Music _author. */
|
|
569
|
-
public _author?: "author";
|
|
570
|
-
|
|
571
|
-
/** Music _artistAttribution. */
|
|
572
|
-
public _artistAttribution?: "artistAttribution";
|
|
573
|
-
|
|
574
|
-
/** Music _isExplicit. */
|
|
575
|
-
public _isExplicit?: "isExplicit";
|
|
576
|
-
|
|
577
|
-
/**
|
|
578
|
-
* Creates a new Music instance using the specified properties.
|
|
579
|
-
* @param [properties] Properties to set
|
|
580
|
-
* @returns Music instance
|
|
581
|
-
*/
|
|
582
|
-
public static create(properties?: StatusAttributions.StatusAttribution.IMusic): StatusAttributions.StatusAttribution.Music;
|
|
583
|
-
|
|
584
|
-
/**
|
|
585
|
-
* Encodes the specified Music message. Does not implicitly {@link StatusAttributions.StatusAttribution.Music.verify|verify} messages.
|
|
586
|
-
* @param message Music message or plain object to encode
|
|
587
|
-
* @param [writer] Writer to encode to
|
|
588
|
-
* @returns Writer
|
|
589
|
-
*/
|
|
590
|
-
public static encode(message: StatusAttributions.StatusAttribution.IMusic, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
591
|
-
|
|
592
|
-
/**
|
|
593
|
-
* Encodes the specified Music message, length delimited. Does not implicitly {@link StatusAttributions.StatusAttribution.Music.verify|verify} messages.
|
|
594
|
-
* @param message Music message or plain object to encode
|
|
595
|
-
* @param [writer] Writer to encode to
|
|
596
|
-
* @returns Writer
|
|
597
|
-
*/
|
|
598
|
-
public static encodeDelimited(message: StatusAttributions.StatusAttribution.IMusic, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
599
|
-
|
|
600
|
-
/**
|
|
601
|
-
* Decodes a Music message from the specified reader or buffer.
|
|
602
|
-
* @param reader Reader or buffer to decode from
|
|
603
|
-
* @param [length] Message length if known beforehand
|
|
604
|
-
* @returns Music
|
|
605
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
606
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
607
|
-
*/
|
|
608
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): StatusAttributions.StatusAttribution.Music;
|
|
609
|
-
|
|
610
|
-
/**
|
|
611
|
-
* Decodes a Music message from the specified reader or buffer, length delimited.
|
|
612
|
-
* @param reader Reader or buffer to decode from
|
|
613
|
-
* @returns Music
|
|
614
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
615
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
616
|
-
*/
|
|
617
|
-
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): StatusAttributions.StatusAttribution.Music;
|
|
618
|
-
|
|
619
|
-
/**
|
|
620
|
-
* Verifies a Music message.
|
|
621
|
-
* @param message Plain object to verify
|
|
622
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
|
623
|
-
*/
|
|
624
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
|
625
|
-
|
|
626
|
-
/**
|
|
627
|
-
* Creates a Music message from a plain object. Also converts values to their respective internal types.
|
|
628
|
-
* @param object Plain object
|
|
629
|
-
* @returns Music
|
|
630
|
-
*/
|
|
631
|
-
public static fromObject(object: { [k: string]: any }): StatusAttributions.StatusAttribution.Music;
|
|
632
|
-
|
|
633
|
-
/**
|
|
634
|
-
* Creates a plain object from a Music message. Also converts values to other types if specified.
|
|
635
|
-
* @param message Music
|
|
636
|
-
* @param [options] Conversion options
|
|
637
|
-
* @returns Plain object
|
|
638
|
-
*/
|
|
639
|
-
public static toObject(message: StatusAttributions.StatusAttribution.Music, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
640
|
-
|
|
641
|
-
/**
|
|
642
|
-
* Converts this Music to JSON.
|
|
643
|
-
* @returns JSON object
|
|
644
|
-
*/
|
|
645
|
-
public toJSON(): { [k: string]: any };
|
|
646
|
-
|
|
647
|
-
/**
|
|
648
|
-
* Gets the default type url for Music
|
|
649
|
-
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
650
|
-
* @returns The default type url
|
|
651
|
-
*/
|
|
652
|
-
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
653
|
-
}
|
|
654
|
-
|
|
655
|
-
/** Properties of a RLAttribution. */
|
|
656
|
-
interface IRLAttribution {
|
|
657
|
-
|
|
658
|
-
/** RLAttribution source */
|
|
659
|
-
source?: (StatusAttributions.StatusAttribution.RLAttribution.Source|null);
|
|
660
|
-
}
|
|
661
|
-
|
|
662
|
-
/** Represents a RLAttribution. */
|
|
663
|
-
class RLAttribution implements IRLAttribution {
|
|
664
|
-
|
|
665
|
-
/**
|
|
666
|
-
* Constructs a new RLAttribution.
|
|
667
|
-
* @param [properties] Properties to set
|
|
668
|
-
*/
|
|
669
|
-
constructor(properties?: StatusAttributions.StatusAttribution.IRLAttribution);
|
|
670
|
-
|
|
671
|
-
/** RLAttribution source. */
|
|
672
|
-
public source?: (StatusAttributions.StatusAttribution.RLAttribution.Source|null);
|
|
673
|
-
|
|
674
|
-
/** RLAttribution _source. */
|
|
675
|
-
public _source?: "source";
|
|
676
|
-
|
|
677
|
-
/**
|
|
678
|
-
* Creates a new RLAttribution instance using the specified properties.
|
|
679
|
-
* @param [properties] Properties to set
|
|
680
|
-
* @returns RLAttribution instance
|
|
681
|
-
*/
|
|
682
|
-
public static create(properties?: StatusAttributions.StatusAttribution.IRLAttribution): StatusAttributions.StatusAttribution.RLAttribution;
|
|
683
|
-
|
|
684
|
-
/**
|
|
685
|
-
* Encodes the specified RLAttribution message. Does not implicitly {@link StatusAttributions.StatusAttribution.RLAttribution.verify|verify} messages.
|
|
686
|
-
* @param message RLAttribution message or plain object to encode
|
|
687
|
-
* @param [writer] Writer to encode to
|
|
688
|
-
* @returns Writer
|
|
689
|
-
*/
|
|
690
|
-
public static encode(message: StatusAttributions.StatusAttribution.IRLAttribution, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
691
|
-
|
|
692
|
-
/**
|
|
693
|
-
* Encodes the specified RLAttribution message, length delimited. Does not implicitly {@link StatusAttributions.StatusAttribution.RLAttribution.verify|verify} messages.
|
|
694
|
-
* @param message RLAttribution message or plain object to encode
|
|
695
|
-
* @param [writer] Writer to encode to
|
|
696
|
-
* @returns Writer
|
|
697
|
-
*/
|
|
698
|
-
public static encodeDelimited(message: StatusAttributions.StatusAttribution.IRLAttribution, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
699
|
-
|
|
700
|
-
/**
|
|
701
|
-
* Decodes a RLAttribution message from the specified reader or buffer.
|
|
702
|
-
* @param reader Reader or buffer to decode from
|
|
703
|
-
* @param [length] Message length if known beforehand
|
|
704
|
-
* @returns RLAttribution
|
|
705
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
706
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
707
|
-
*/
|
|
708
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): StatusAttributions.StatusAttribution.RLAttribution;
|
|
709
|
-
|
|
710
|
-
/**
|
|
711
|
-
* Decodes a RLAttribution message from the specified reader or buffer, length delimited.
|
|
712
|
-
* @param reader Reader or buffer to decode from
|
|
713
|
-
* @returns RLAttribution
|
|
714
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
715
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
716
|
-
*/
|
|
717
|
-
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): StatusAttributions.StatusAttribution.RLAttribution;
|
|
718
|
-
|
|
719
|
-
/**
|
|
720
|
-
* Verifies a RLAttribution message.
|
|
721
|
-
* @param message Plain object to verify
|
|
722
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
|
723
|
-
*/
|
|
724
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
|
725
|
-
|
|
726
|
-
/**
|
|
727
|
-
* Creates a RLAttribution message from a plain object. Also converts values to their respective internal types.
|
|
728
|
-
* @param object Plain object
|
|
729
|
-
* @returns RLAttribution
|
|
730
|
-
*/
|
|
731
|
-
public static fromObject(object: { [k: string]: any }): StatusAttributions.StatusAttribution.RLAttribution;
|
|
732
|
-
|
|
733
|
-
/**
|
|
734
|
-
* Creates a plain object from a RLAttribution message. Also converts values to other types if specified.
|
|
735
|
-
* @param message RLAttribution
|
|
736
|
-
* @param [options] Conversion options
|
|
737
|
-
* @returns Plain object
|
|
738
|
-
*/
|
|
739
|
-
public static toObject(message: StatusAttributions.StatusAttribution.RLAttribution, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
740
|
-
|
|
741
|
-
/**
|
|
742
|
-
* Converts this RLAttribution to JSON.
|
|
743
|
-
* @returns JSON object
|
|
744
|
-
*/
|
|
745
|
-
public toJSON(): { [k: string]: any };
|
|
746
|
-
|
|
747
|
-
/**
|
|
748
|
-
* Gets the default type url for RLAttribution
|
|
749
|
-
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
750
|
-
* @returns The default type url
|
|
751
|
-
*/
|
|
752
|
-
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
753
|
-
}
|
|
754
|
-
|
|
755
|
-
namespace RLAttribution {
|
|
756
|
-
|
|
757
|
-
/** Source enum. */
|
|
758
|
-
enum Source {
|
|
759
|
-
UNKNOWN = 0,
|
|
760
|
-
RAY_BAN_META_GLASSES = 1,
|
|
761
|
-
OAKLEY_META_GLASSES = 2,
|
|
762
|
-
HYPERNOVA_GLASSES = 3
|
|
763
|
-
}
|
|
764
|
-
}
|
|
765
|
-
|
|
766
|
-
/** Properties of a StatusReshare. */
|
|
767
|
-
interface IStatusReshare {
|
|
768
|
-
|
|
769
|
-
/** StatusReshare source */
|
|
770
|
-
source?: (StatusAttributions.StatusAttribution.StatusReshare.Source|null);
|
|
771
|
-
|
|
772
|
-
/** StatusReshare metadata */
|
|
773
|
-
metadata?: (StatusAttributions.StatusAttribution.StatusReshare.IMetadata|null);
|
|
774
|
-
}
|
|
775
|
-
|
|
776
|
-
/** Represents a StatusReshare. */
|
|
777
|
-
class StatusReshare implements IStatusReshare {
|
|
778
|
-
|
|
779
|
-
/**
|
|
780
|
-
* Constructs a new StatusReshare.
|
|
781
|
-
* @param [properties] Properties to set
|
|
782
|
-
*/
|
|
783
|
-
constructor(properties?: StatusAttributions.StatusAttribution.IStatusReshare);
|
|
784
|
-
|
|
785
|
-
/** StatusReshare source. */
|
|
786
|
-
public source?: (StatusAttributions.StatusAttribution.StatusReshare.Source|null);
|
|
787
|
-
|
|
788
|
-
/** StatusReshare metadata. */
|
|
789
|
-
public metadata?: (StatusAttributions.StatusAttribution.StatusReshare.IMetadata|null);
|
|
790
|
-
|
|
791
|
-
/** StatusReshare _source. */
|
|
792
|
-
public _source?: "source";
|
|
793
|
-
|
|
794
|
-
/** StatusReshare _metadata. */
|
|
795
|
-
public _metadata?: "metadata";
|
|
796
|
-
|
|
797
|
-
/**
|
|
798
|
-
* Creates a new StatusReshare instance using the specified properties.
|
|
799
|
-
* @param [properties] Properties to set
|
|
800
|
-
* @returns StatusReshare instance
|
|
801
|
-
*/
|
|
802
|
-
public static create(properties?: StatusAttributions.StatusAttribution.IStatusReshare): StatusAttributions.StatusAttribution.StatusReshare;
|
|
803
|
-
|
|
804
|
-
/**
|
|
805
|
-
* Encodes the specified StatusReshare message. Does not implicitly {@link StatusAttributions.StatusAttribution.StatusReshare.verify|verify} messages.
|
|
806
|
-
* @param message StatusReshare message or plain object to encode
|
|
807
|
-
* @param [writer] Writer to encode to
|
|
808
|
-
* @returns Writer
|
|
809
|
-
*/
|
|
810
|
-
public static encode(message: StatusAttributions.StatusAttribution.IStatusReshare, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
811
|
-
|
|
812
|
-
/**
|
|
813
|
-
* Encodes the specified StatusReshare message, length delimited. Does not implicitly {@link StatusAttributions.StatusAttribution.StatusReshare.verify|verify} messages.
|
|
814
|
-
* @param message StatusReshare message or plain object to encode
|
|
815
|
-
* @param [writer] Writer to encode to
|
|
816
|
-
* @returns Writer
|
|
817
|
-
*/
|
|
818
|
-
public static encodeDelimited(message: StatusAttributions.StatusAttribution.IStatusReshare, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
819
|
-
|
|
820
|
-
/**
|
|
821
|
-
* Decodes a StatusReshare message from the specified reader or buffer.
|
|
822
|
-
* @param reader Reader or buffer to decode from
|
|
823
|
-
* @param [length] Message length if known beforehand
|
|
824
|
-
* @returns StatusReshare
|
|
825
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
826
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
827
|
-
*/
|
|
828
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): StatusAttributions.StatusAttribution.StatusReshare;
|
|
829
|
-
|
|
830
|
-
/**
|
|
831
|
-
* Decodes a StatusReshare message from the specified reader or buffer, length delimited.
|
|
832
|
-
* @param reader Reader or buffer to decode from
|
|
833
|
-
* @returns StatusReshare
|
|
834
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
835
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
836
|
-
*/
|
|
837
|
-
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): StatusAttributions.StatusAttribution.StatusReshare;
|
|
838
|
-
|
|
839
|
-
/**
|
|
840
|
-
* Verifies a StatusReshare message.
|
|
841
|
-
* @param message Plain object to verify
|
|
842
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
|
843
|
-
*/
|
|
844
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
|
845
|
-
|
|
846
|
-
/**
|
|
847
|
-
* Creates a StatusReshare message from a plain object. Also converts values to their respective internal types.
|
|
848
|
-
* @param object Plain object
|
|
849
|
-
* @returns StatusReshare
|
|
850
|
-
*/
|
|
851
|
-
public static fromObject(object: { [k: string]: any }): StatusAttributions.StatusAttribution.StatusReshare;
|
|
852
|
-
|
|
853
|
-
/**
|
|
854
|
-
* Creates a plain object from a StatusReshare message. Also converts values to other types if specified.
|
|
855
|
-
* @param message StatusReshare
|
|
856
|
-
* @param [options] Conversion options
|
|
857
|
-
* @returns Plain object
|
|
858
|
-
*/
|
|
859
|
-
public static toObject(message: StatusAttributions.StatusAttribution.StatusReshare, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
860
|
-
|
|
861
|
-
/**
|
|
862
|
-
* Converts this StatusReshare to JSON.
|
|
863
|
-
* @returns JSON object
|
|
864
|
-
*/
|
|
865
|
-
public toJSON(): { [k: string]: any };
|
|
866
|
-
|
|
867
|
-
/**
|
|
868
|
-
* Gets the default type url for StatusReshare
|
|
869
|
-
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
870
|
-
* @returns The default type url
|
|
871
|
-
*/
|
|
872
|
-
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
873
|
-
}
|
|
874
|
-
|
|
875
|
-
namespace StatusReshare {
|
|
876
|
-
|
|
877
|
-
/** Properties of a Metadata. */
|
|
878
|
-
interface IMetadata {
|
|
879
|
-
|
|
880
|
-
/** Metadata duration */
|
|
881
|
-
duration?: (number|null);
|
|
882
|
-
|
|
883
|
-
/** Metadata channelJid */
|
|
884
|
-
channelJid?: (string|null);
|
|
885
|
-
|
|
886
|
-
/** Metadata channelMessageId */
|
|
887
|
-
channelMessageId?: (number|null);
|
|
888
|
-
|
|
889
|
-
/** Metadata hasMultipleReshares */
|
|
890
|
-
hasMultipleReshares?: (boolean|null);
|
|
891
|
-
}
|
|
892
|
-
|
|
893
|
-
/** Represents a Metadata. */
|
|
894
|
-
class Metadata implements IMetadata {
|
|
895
|
-
|
|
896
|
-
/**
|
|
897
|
-
* Constructs a new Metadata.
|
|
898
|
-
* @param [properties] Properties to set
|
|
899
|
-
*/
|
|
900
|
-
constructor(properties?: StatusAttributions.StatusAttribution.StatusReshare.IMetadata);
|
|
901
|
-
|
|
902
|
-
/** Metadata duration. */
|
|
903
|
-
public duration?: (number|null);
|
|
904
|
-
|
|
905
|
-
/** Metadata channelJid. */
|
|
906
|
-
public channelJid?: (string|null);
|
|
907
|
-
|
|
908
|
-
/** Metadata channelMessageId. */
|
|
909
|
-
public channelMessageId?: (number|null);
|
|
910
|
-
|
|
911
|
-
/** Metadata hasMultipleReshares. */
|
|
912
|
-
public hasMultipleReshares?: (boolean|null);
|
|
913
|
-
|
|
914
|
-
/** Metadata _duration. */
|
|
915
|
-
public _duration?: "duration";
|
|
916
|
-
|
|
917
|
-
/** Metadata _channelJid. */
|
|
918
|
-
public _channelJid?: "channelJid";
|
|
919
|
-
|
|
920
|
-
/** Metadata _channelMessageId. */
|
|
921
|
-
public _channelMessageId?: "channelMessageId";
|
|
922
|
-
|
|
923
|
-
/** Metadata _hasMultipleReshares. */
|
|
924
|
-
public _hasMultipleReshares?: "hasMultipleReshares";
|
|
925
|
-
|
|
926
|
-
/**
|
|
927
|
-
* Creates a new Metadata instance using the specified properties.
|
|
928
|
-
* @param [properties] Properties to set
|
|
929
|
-
* @returns Metadata instance
|
|
930
|
-
*/
|
|
931
|
-
public static create(properties?: StatusAttributions.StatusAttribution.StatusReshare.IMetadata): StatusAttributions.StatusAttribution.StatusReshare.Metadata;
|
|
932
|
-
|
|
933
|
-
/**
|
|
934
|
-
* Encodes the specified Metadata message. Does not implicitly {@link StatusAttributions.StatusAttribution.StatusReshare.Metadata.verify|verify} messages.
|
|
935
|
-
* @param message Metadata message or plain object to encode
|
|
936
|
-
* @param [writer] Writer to encode to
|
|
937
|
-
* @returns Writer
|
|
938
|
-
*/
|
|
939
|
-
public static encode(message: StatusAttributions.StatusAttribution.StatusReshare.IMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
940
|
-
|
|
941
|
-
/**
|
|
942
|
-
* Encodes the specified Metadata message, length delimited. Does not implicitly {@link StatusAttributions.StatusAttribution.StatusReshare.Metadata.verify|verify} messages.
|
|
943
|
-
* @param message Metadata message or plain object to encode
|
|
944
|
-
* @param [writer] Writer to encode to
|
|
945
|
-
* @returns Writer
|
|
946
|
-
*/
|
|
947
|
-
public static encodeDelimited(message: StatusAttributions.StatusAttribution.StatusReshare.IMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
948
|
-
|
|
949
|
-
/**
|
|
950
|
-
* Decodes a Metadata message from the specified reader or buffer.
|
|
951
|
-
* @param reader Reader or buffer to decode from
|
|
952
|
-
* @param [length] Message length if known beforehand
|
|
953
|
-
* @returns Metadata
|
|
954
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
955
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
956
|
-
*/
|
|
957
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): StatusAttributions.StatusAttribution.StatusReshare.Metadata;
|
|
958
|
-
|
|
959
|
-
/**
|
|
960
|
-
* Decodes a Metadata message from the specified reader or buffer, length delimited.
|
|
961
|
-
* @param reader Reader or buffer to decode from
|
|
962
|
-
* @returns Metadata
|
|
963
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
964
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
965
|
-
*/
|
|
966
|
-
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): StatusAttributions.StatusAttribution.StatusReshare.Metadata;
|
|
967
|
-
|
|
968
|
-
/**
|
|
969
|
-
* Verifies a Metadata message.
|
|
970
|
-
* @param message Plain object to verify
|
|
971
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
|
972
|
-
*/
|
|
973
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
|
974
|
-
|
|
975
|
-
/**
|
|
976
|
-
* Creates a Metadata message from a plain object. Also converts values to their respective internal types.
|
|
977
|
-
* @param object Plain object
|
|
978
|
-
* @returns Metadata
|
|
979
|
-
*/
|
|
980
|
-
public static fromObject(object: { [k: string]: any }): StatusAttributions.StatusAttribution.StatusReshare.Metadata;
|
|
981
|
-
|
|
982
|
-
/**
|
|
983
|
-
* Creates a plain object from a Metadata message. Also converts values to other types if specified.
|
|
984
|
-
* @param message Metadata
|
|
985
|
-
* @param [options] Conversion options
|
|
986
|
-
* @returns Plain object
|
|
987
|
-
*/
|
|
988
|
-
public static toObject(message: StatusAttributions.StatusAttribution.StatusReshare.Metadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
989
|
-
|
|
990
|
-
/**
|
|
991
|
-
* Converts this Metadata to JSON.
|
|
992
|
-
* @returns JSON object
|
|
993
|
-
*/
|
|
994
|
-
public toJSON(): { [k: string]: any };
|
|
995
|
-
|
|
996
|
-
/**
|
|
997
|
-
* Gets the default type url for Metadata
|
|
998
|
-
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
999
|
-
* @returns The default type url
|
|
1000
|
-
*/
|
|
1001
|
-
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
1002
|
-
}
|
|
1003
|
-
|
|
1004
|
-
/** Source enum. */
|
|
1005
|
-
enum Source {
|
|
1006
|
-
UNKNOWN = 0,
|
|
1007
|
-
INTERNAL_RESHARE = 1,
|
|
1008
|
-
MENTION_RESHARE = 2,
|
|
1009
|
-
CHANNEL_RESHARE = 3,
|
|
1010
|
-
FORWARD = 4
|
|
1011
|
-
}
|
|
1012
|
-
}
|
|
1013
|
-
|
|
1014
|
-
/** Type enum. */
|
|
1015
|
-
enum Type {
|
|
1016
|
-
UNKNOWN = 0,
|
|
1017
|
-
RESHARE = 1,
|
|
1018
|
-
EXTERNAL_SHARE = 2,
|
|
1019
|
-
MUSIC = 3,
|
|
1020
|
-
STATUS_MENTION = 4,
|
|
1021
|
-
GROUP_STATUS = 5,
|
|
1022
|
-
RL_ATTRIBUTION = 6,
|
|
1023
|
-
AI_CREATED = 7,
|
|
1024
|
-
LAYOUTS = 8
|
|
1025
|
-
}
|
|
1026
|
-
}
|
|
1027
|
-
}
|