@session.js/types 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +74 -0
- package/dist/disappearing-message.d.ts +2 -0
- package/dist/disappearing-message.js +1 -0
- package/dist/enums.d.ts +3 -0
- package/dist/enums.js +1 -0
- package/dist/envelope.d.ts +6 -0
- package/dist/envelope.js +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +1 -0
- package/dist/namespaces.d.ts +42 -0
- package/dist/namespaces.js +99 -0
- package/dist/network/index.d.ts +4 -0
- package/dist/network/index.js +1 -0
- package/dist/network/request.d.ts +29 -0
- package/dist/network/request.js +8 -0
- package/dist/network/response.d.ts +23 -0
- package/dist/network/response.js +1 -0
- package/dist/pubkey.d.ts +22 -0
- package/dist/pubkey.js +23 -0
- package/dist/signal-bindings/compiled.d.ts +3233 -0
- package/dist/signal-bindings/compiled.js +8770 -0
- package/dist/signal-bindings/index.d.ts +3 -0
- package/dist/signal-bindings/index.js +3 -0
- package/dist/signal-bindings/utils.d.ts +13 -0
- package/dist/signal-bindings/utils.js +15 -0
- package/dist/snode-retrieve.d.ts +30 -0
- package/dist/snode-retrieve.js +1 -0
- package/dist/snode-signature-result.d.ts +5 -0
- package/dist/snode-signature-result.js +1 -0
- package/dist/snode.d.ts +6 -0
- package/dist/snode.js +1 -0
- package/dist/storage/index.d.ts +9 -0
- package/dist/storage/index.js +4 -0
- package/dist/swarm.d.ts +6 -0
- package/dist/swarm.js +1 -0
- package/package.json +38 -0
|
@@ -0,0 +1,3233 @@
|
|
|
1
|
+
import * as $protobuf from "protobufjs";
|
|
2
|
+
import Long = require("long");
|
|
3
|
+
/** Namespace signalservice. */
|
|
4
|
+
export namespace signalservice {
|
|
5
|
+
|
|
6
|
+
/** Properties of an Envelope. */
|
|
7
|
+
interface IEnvelope {
|
|
8
|
+
|
|
9
|
+
/** Envelope type */
|
|
10
|
+
type: signalservice.Envelope.Type;
|
|
11
|
+
|
|
12
|
+
/** Envelope source */
|
|
13
|
+
source?: (string|null);
|
|
14
|
+
|
|
15
|
+
/** Envelope timestamp */
|
|
16
|
+
timestamp: (number|Long);
|
|
17
|
+
|
|
18
|
+
/** Envelope content */
|
|
19
|
+
content?: (Uint8Array|null);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/** Represents an Envelope. */
|
|
23
|
+
class Envelope implements IEnvelope {
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Constructs a new Envelope.
|
|
27
|
+
* @param [properties] Properties to set
|
|
28
|
+
*/
|
|
29
|
+
constructor(properties?: signalservice.IEnvelope);
|
|
30
|
+
|
|
31
|
+
/** Envelope type. */
|
|
32
|
+
public type: signalservice.Envelope.Type;
|
|
33
|
+
|
|
34
|
+
/** Envelope source. */
|
|
35
|
+
public source: string;
|
|
36
|
+
|
|
37
|
+
/** Envelope timestamp. */
|
|
38
|
+
public timestamp: (number|Long);
|
|
39
|
+
|
|
40
|
+
/** Envelope content. */
|
|
41
|
+
public content: Uint8Array;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Creates a new Envelope instance using the specified properties.
|
|
45
|
+
* @param [properties] Properties to set
|
|
46
|
+
* @returns Envelope instance
|
|
47
|
+
*/
|
|
48
|
+
public static create(properties?: signalservice.IEnvelope): signalservice.Envelope;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Encodes the specified Envelope message. Does not implicitly {@link signalservice.Envelope.verify|verify} messages.
|
|
52
|
+
* @param message Envelope message or plain object to encode
|
|
53
|
+
* @param [writer] Writer to encode to
|
|
54
|
+
* @returns Writer
|
|
55
|
+
*/
|
|
56
|
+
public static encode(message: signalservice.IEnvelope, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Encodes the specified Envelope message, length delimited. Does not implicitly {@link signalservice.Envelope.verify|verify} messages.
|
|
60
|
+
* @param message Envelope message or plain object to encode
|
|
61
|
+
* @param [writer] Writer to encode to
|
|
62
|
+
* @returns Writer
|
|
63
|
+
*/
|
|
64
|
+
public static encodeDelimited(message: signalservice.IEnvelope, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Decodes an Envelope message from the specified reader or buffer.
|
|
68
|
+
* @param reader Reader or buffer to decode from
|
|
69
|
+
* @param [length] Message length if known beforehand
|
|
70
|
+
* @returns Envelope
|
|
71
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
72
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
73
|
+
*/
|
|
74
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): signalservice.Envelope;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Decodes an Envelope message from the specified reader or buffer, length delimited.
|
|
78
|
+
* @param reader Reader or buffer to decode from
|
|
79
|
+
* @returns Envelope
|
|
80
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
81
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
82
|
+
*/
|
|
83
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): signalservice.Envelope;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Verifies an Envelope message.
|
|
87
|
+
* @param message Plain object to verify
|
|
88
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
89
|
+
*/
|
|
90
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Creates an Envelope message from a plain object. Also converts values to their respective internal types.
|
|
94
|
+
* @param object Plain object
|
|
95
|
+
* @returns Envelope
|
|
96
|
+
*/
|
|
97
|
+
public static fromObject(object: { [k: string]: any }): signalservice.Envelope;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Creates a plain object from an Envelope message. Also converts values to other types if specified.
|
|
101
|
+
* @param message Envelope
|
|
102
|
+
* @param [options] Conversion options
|
|
103
|
+
* @returns Plain object
|
|
104
|
+
*/
|
|
105
|
+
public static toObject(message: signalservice.Envelope, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Converts this Envelope to JSON.
|
|
109
|
+
* @returns JSON object
|
|
110
|
+
*/
|
|
111
|
+
public toJSON(): { [k: string]: any };
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Gets the default type url for Envelope
|
|
115
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
116
|
+
* @returns The default type url
|
|
117
|
+
*/
|
|
118
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
namespace Envelope {
|
|
122
|
+
|
|
123
|
+
/** Type enum. */
|
|
124
|
+
enum Type {
|
|
125
|
+
SESSION_MESSAGE = 6,
|
|
126
|
+
CLOSED_GROUP_MESSAGE = 7
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/** Properties of a TypingMessage. */
|
|
131
|
+
interface ITypingMessage {
|
|
132
|
+
|
|
133
|
+
/** TypingMessage timestamp */
|
|
134
|
+
timestamp: (number|Long);
|
|
135
|
+
|
|
136
|
+
/** TypingMessage action */
|
|
137
|
+
action: signalservice.TypingMessage.Action;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/** Represents a TypingMessage. */
|
|
141
|
+
class TypingMessage implements ITypingMessage {
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Constructs a new TypingMessage.
|
|
145
|
+
* @param [properties] Properties to set
|
|
146
|
+
*/
|
|
147
|
+
constructor(properties?: signalservice.ITypingMessage);
|
|
148
|
+
|
|
149
|
+
/** TypingMessage timestamp. */
|
|
150
|
+
public timestamp: (number|Long);
|
|
151
|
+
|
|
152
|
+
/** TypingMessage action. */
|
|
153
|
+
public action: signalservice.TypingMessage.Action;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Creates a new TypingMessage instance using the specified properties.
|
|
157
|
+
* @param [properties] Properties to set
|
|
158
|
+
* @returns TypingMessage instance
|
|
159
|
+
*/
|
|
160
|
+
public static create(properties?: signalservice.ITypingMessage): signalservice.TypingMessage;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Encodes the specified TypingMessage message. Does not implicitly {@link signalservice.TypingMessage.verify|verify} messages.
|
|
164
|
+
* @param message TypingMessage message or plain object to encode
|
|
165
|
+
* @param [writer] Writer to encode to
|
|
166
|
+
* @returns Writer
|
|
167
|
+
*/
|
|
168
|
+
public static encode(message: signalservice.ITypingMessage, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* Encodes the specified TypingMessage message, length delimited. Does not implicitly {@link signalservice.TypingMessage.verify|verify} messages.
|
|
172
|
+
* @param message TypingMessage message or plain object to encode
|
|
173
|
+
* @param [writer] Writer to encode to
|
|
174
|
+
* @returns Writer
|
|
175
|
+
*/
|
|
176
|
+
public static encodeDelimited(message: signalservice.ITypingMessage, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Decodes a TypingMessage message from the specified reader or buffer.
|
|
180
|
+
* @param reader Reader or buffer to decode from
|
|
181
|
+
* @param [length] Message length if known beforehand
|
|
182
|
+
* @returns TypingMessage
|
|
183
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
184
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
185
|
+
*/
|
|
186
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): signalservice.TypingMessage;
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Decodes a TypingMessage message from the specified reader or buffer, length delimited.
|
|
190
|
+
* @param reader Reader or buffer to decode from
|
|
191
|
+
* @returns TypingMessage
|
|
192
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
193
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
194
|
+
*/
|
|
195
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): signalservice.TypingMessage;
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* Verifies a TypingMessage message.
|
|
199
|
+
* @param message Plain object to verify
|
|
200
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
201
|
+
*/
|
|
202
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* Creates a TypingMessage message from a plain object. Also converts values to their respective internal types.
|
|
206
|
+
* @param object Plain object
|
|
207
|
+
* @returns TypingMessage
|
|
208
|
+
*/
|
|
209
|
+
public static fromObject(object: { [k: string]: any }): signalservice.TypingMessage;
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Creates a plain object from a TypingMessage message. Also converts values to other types if specified.
|
|
213
|
+
* @param message TypingMessage
|
|
214
|
+
* @param [options] Conversion options
|
|
215
|
+
* @returns Plain object
|
|
216
|
+
*/
|
|
217
|
+
public static toObject(message: signalservice.TypingMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* Converts this TypingMessage to JSON.
|
|
221
|
+
* @returns JSON object
|
|
222
|
+
*/
|
|
223
|
+
public toJSON(): { [k: string]: any };
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* Gets the default type url for TypingMessage
|
|
227
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
228
|
+
* @returns The default type url
|
|
229
|
+
*/
|
|
230
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
namespace TypingMessage {
|
|
234
|
+
|
|
235
|
+
/** Action enum. */
|
|
236
|
+
enum Action {
|
|
237
|
+
STARTED = 0,
|
|
238
|
+
STOPPED = 1
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
/** Properties of an Unsend. */
|
|
243
|
+
interface IUnsend {
|
|
244
|
+
|
|
245
|
+
/** Unsend timestamp */
|
|
246
|
+
timestamp: (number|Long);
|
|
247
|
+
|
|
248
|
+
/** Unsend author */
|
|
249
|
+
author: string;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
/** Represents an Unsend. */
|
|
253
|
+
class Unsend implements IUnsend {
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* Constructs a new Unsend.
|
|
257
|
+
* @param [properties] Properties to set
|
|
258
|
+
*/
|
|
259
|
+
constructor(properties?: signalservice.IUnsend);
|
|
260
|
+
|
|
261
|
+
/** Unsend timestamp. */
|
|
262
|
+
public timestamp: (number|Long);
|
|
263
|
+
|
|
264
|
+
/** Unsend author. */
|
|
265
|
+
public author: string;
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* Creates a new Unsend instance using the specified properties.
|
|
269
|
+
* @param [properties] Properties to set
|
|
270
|
+
* @returns Unsend instance
|
|
271
|
+
*/
|
|
272
|
+
public static create(properties?: signalservice.IUnsend): signalservice.Unsend;
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* Encodes the specified Unsend message. Does not implicitly {@link signalservice.Unsend.verify|verify} messages.
|
|
276
|
+
* @param message Unsend message or plain object to encode
|
|
277
|
+
* @param [writer] Writer to encode to
|
|
278
|
+
* @returns Writer
|
|
279
|
+
*/
|
|
280
|
+
public static encode(message: signalservice.IUnsend, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* Encodes the specified Unsend message, length delimited. Does not implicitly {@link signalservice.Unsend.verify|verify} messages.
|
|
284
|
+
* @param message Unsend message or plain object to encode
|
|
285
|
+
* @param [writer] Writer to encode to
|
|
286
|
+
* @returns Writer
|
|
287
|
+
*/
|
|
288
|
+
public static encodeDelimited(message: signalservice.IUnsend, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* Decodes an Unsend message from the specified reader or buffer.
|
|
292
|
+
* @param reader Reader or buffer to decode from
|
|
293
|
+
* @param [length] Message length if known beforehand
|
|
294
|
+
* @returns Unsend
|
|
295
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
296
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
297
|
+
*/
|
|
298
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): signalservice.Unsend;
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* Decodes an Unsend message from the specified reader or buffer, length delimited.
|
|
302
|
+
* @param reader Reader or buffer to decode from
|
|
303
|
+
* @returns Unsend
|
|
304
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
305
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
306
|
+
*/
|
|
307
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): signalservice.Unsend;
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* Verifies an Unsend message.
|
|
311
|
+
* @param message Plain object to verify
|
|
312
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
313
|
+
*/
|
|
314
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* Creates an Unsend message from a plain object. Also converts values to their respective internal types.
|
|
318
|
+
* @param object Plain object
|
|
319
|
+
* @returns Unsend
|
|
320
|
+
*/
|
|
321
|
+
public static fromObject(object: { [k: string]: any }): signalservice.Unsend;
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* Creates a plain object from an Unsend message. Also converts values to other types if specified.
|
|
325
|
+
* @param message Unsend
|
|
326
|
+
* @param [options] Conversion options
|
|
327
|
+
* @returns Plain object
|
|
328
|
+
*/
|
|
329
|
+
public static toObject(message: signalservice.Unsend, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* Converts this Unsend to JSON.
|
|
333
|
+
* @returns JSON object
|
|
334
|
+
*/
|
|
335
|
+
public toJSON(): { [k: string]: any };
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* Gets the default type url for Unsend
|
|
339
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
340
|
+
* @returns The default type url
|
|
341
|
+
*/
|
|
342
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
/** Properties of a MessageRequestResponse. */
|
|
346
|
+
interface IMessageRequestResponse {
|
|
347
|
+
|
|
348
|
+
/** MessageRequestResponse isApproved */
|
|
349
|
+
isApproved: boolean;
|
|
350
|
+
|
|
351
|
+
/** MessageRequestResponse profileKey */
|
|
352
|
+
profileKey?: (Uint8Array|null);
|
|
353
|
+
|
|
354
|
+
/** MessageRequestResponse profile */
|
|
355
|
+
profile?: (signalservice.DataMessage.ILokiProfile|null);
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
/** Represents a MessageRequestResponse. */
|
|
359
|
+
class MessageRequestResponse implements IMessageRequestResponse {
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* Constructs a new MessageRequestResponse.
|
|
363
|
+
* @param [properties] Properties to set
|
|
364
|
+
*/
|
|
365
|
+
constructor(properties?: signalservice.IMessageRequestResponse);
|
|
366
|
+
|
|
367
|
+
/** MessageRequestResponse isApproved. */
|
|
368
|
+
public isApproved: boolean;
|
|
369
|
+
|
|
370
|
+
/** MessageRequestResponse profileKey. */
|
|
371
|
+
public profileKey: Uint8Array;
|
|
372
|
+
|
|
373
|
+
/** MessageRequestResponse profile. */
|
|
374
|
+
public profile?: (signalservice.DataMessage.ILokiProfile|null);
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* Creates a new MessageRequestResponse instance using the specified properties.
|
|
378
|
+
* @param [properties] Properties to set
|
|
379
|
+
* @returns MessageRequestResponse instance
|
|
380
|
+
*/
|
|
381
|
+
public static create(properties?: signalservice.IMessageRequestResponse): signalservice.MessageRequestResponse;
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* Encodes the specified MessageRequestResponse message. Does not implicitly {@link signalservice.MessageRequestResponse.verify|verify} messages.
|
|
385
|
+
* @param message MessageRequestResponse message or plain object to encode
|
|
386
|
+
* @param [writer] Writer to encode to
|
|
387
|
+
* @returns Writer
|
|
388
|
+
*/
|
|
389
|
+
public static encode(message: signalservice.IMessageRequestResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* Encodes the specified MessageRequestResponse message, length delimited. Does not implicitly {@link signalservice.MessageRequestResponse.verify|verify} messages.
|
|
393
|
+
* @param message MessageRequestResponse message or plain object to encode
|
|
394
|
+
* @param [writer] Writer to encode to
|
|
395
|
+
* @returns Writer
|
|
396
|
+
*/
|
|
397
|
+
public static encodeDelimited(message: signalservice.IMessageRequestResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
398
|
+
|
|
399
|
+
/**
|
|
400
|
+
* Decodes a MessageRequestResponse message from the specified reader or buffer.
|
|
401
|
+
* @param reader Reader or buffer to decode from
|
|
402
|
+
* @param [length] Message length if known beforehand
|
|
403
|
+
* @returns MessageRequestResponse
|
|
404
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
405
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
406
|
+
*/
|
|
407
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): signalservice.MessageRequestResponse;
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* Decodes a MessageRequestResponse message from the specified reader or buffer, length delimited.
|
|
411
|
+
* @param reader Reader or buffer to decode from
|
|
412
|
+
* @returns MessageRequestResponse
|
|
413
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
414
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
415
|
+
*/
|
|
416
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): signalservice.MessageRequestResponse;
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
* Verifies a MessageRequestResponse message.
|
|
420
|
+
* @param message Plain object to verify
|
|
421
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
422
|
+
*/
|
|
423
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
424
|
+
|
|
425
|
+
/**
|
|
426
|
+
* Creates a MessageRequestResponse message from a plain object. Also converts values to their respective internal types.
|
|
427
|
+
* @param object Plain object
|
|
428
|
+
* @returns MessageRequestResponse
|
|
429
|
+
*/
|
|
430
|
+
public static fromObject(object: { [k: string]: any }): signalservice.MessageRequestResponse;
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* Creates a plain object from a MessageRequestResponse message. Also converts values to other types if specified.
|
|
434
|
+
* @param message MessageRequestResponse
|
|
435
|
+
* @param [options] Conversion options
|
|
436
|
+
* @returns Plain object
|
|
437
|
+
*/
|
|
438
|
+
public static toObject(message: signalservice.MessageRequestResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
439
|
+
|
|
440
|
+
/**
|
|
441
|
+
* Converts this MessageRequestResponse to JSON.
|
|
442
|
+
* @returns JSON object
|
|
443
|
+
*/
|
|
444
|
+
public toJSON(): { [k: string]: any };
|
|
445
|
+
|
|
446
|
+
/**
|
|
447
|
+
* Gets the default type url for MessageRequestResponse
|
|
448
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
449
|
+
* @returns The default type url
|
|
450
|
+
*/
|
|
451
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
/** Properties of a SharedConfigMessage. */
|
|
455
|
+
interface ISharedConfigMessage {
|
|
456
|
+
|
|
457
|
+
/** SharedConfigMessage kind */
|
|
458
|
+
kind: signalservice.SharedConfigMessage.Kind;
|
|
459
|
+
|
|
460
|
+
/** SharedConfigMessage seqno */
|
|
461
|
+
seqno: (number|Long);
|
|
462
|
+
|
|
463
|
+
/** SharedConfigMessage data */
|
|
464
|
+
data: Uint8Array;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
/** Represents a SharedConfigMessage. */
|
|
468
|
+
class SharedConfigMessage implements ISharedConfigMessage {
|
|
469
|
+
|
|
470
|
+
/**
|
|
471
|
+
* Constructs a new SharedConfigMessage.
|
|
472
|
+
* @param [properties] Properties to set
|
|
473
|
+
*/
|
|
474
|
+
constructor(properties?: signalservice.ISharedConfigMessage);
|
|
475
|
+
|
|
476
|
+
/** SharedConfigMessage kind. */
|
|
477
|
+
public kind: signalservice.SharedConfigMessage.Kind;
|
|
478
|
+
|
|
479
|
+
/** SharedConfigMessage seqno. */
|
|
480
|
+
public seqno: (number|Long);
|
|
481
|
+
|
|
482
|
+
/** SharedConfigMessage data. */
|
|
483
|
+
public data: Uint8Array;
|
|
484
|
+
|
|
485
|
+
/**
|
|
486
|
+
* Creates a new SharedConfigMessage instance using the specified properties.
|
|
487
|
+
* @param [properties] Properties to set
|
|
488
|
+
* @returns SharedConfigMessage instance
|
|
489
|
+
*/
|
|
490
|
+
public static create(properties?: signalservice.ISharedConfigMessage): signalservice.SharedConfigMessage;
|
|
491
|
+
|
|
492
|
+
/**
|
|
493
|
+
* Encodes the specified SharedConfigMessage message. Does not implicitly {@link signalservice.SharedConfigMessage.verify|verify} messages.
|
|
494
|
+
* @param message SharedConfigMessage message or plain object to encode
|
|
495
|
+
* @param [writer] Writer to encode to
|
|
496
|
+
* @returns Writer
|
|
497
|
+
*/
|
|
498
|
+
public static encode(message: signalservice.ISharedConfigMessage, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
499
|
+
|
|
500
|
+
/**
|
|
501
|
+
* Encodes the specified SharedConfigMessage message, length delimited. Does not implicitly {@link signalservice.SharedConfigMessage.verify|verify} messages.
|
|
502
|
+
* @param message SharedConfigMessage message or plain object to encode
|
|
503
|
+
* @param [writer] Writer to encode to
|
|
504
|
+
* @returns Writer
|
|
505
|
+
*/
|
|
506
|
+
public static encodeDelimited(message: signalservice.ISharedConfigMessage, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
507
|
+
|
|
508
|
+
/**
|
|
509
|
+
* Decodes a SharedConfigMessage message from the specified reader or buffer.
|
|
510
|
+
* @param reader Reader or buffer to decode from
|
|
511
|
+
* @param [length] Message length if known beforehand
|
|
512
|
+
* @returns SharedConfigMessage
|
|
513
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
514
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
515
|
+
*/
|
|
516
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): signalservice.SharedConfigMessage;
|
|
517
|
+
|
|
518
|
+
/**
|
|
519
|
+
* Decodes a SharedConfigMessage message from the specified reader or buffer, length delimited.
|
|
520
|
+
* @param reader Reader or buffer to decode from
|
|
521
|
+
* @returns SharedConfigMessage
|
|
522
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
523
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
524
|
+
*/
|
|
525
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): signalservice.SharedConfigMessage;
|
|
526
|
+
|
|
527
|
+
/**
|
|
528
|
+
* Verifies a SharedConfigMessage message.
|
|
529
|
+
* @param message Plain object to verify
|
|
530
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
531
|
+
*/
|
|
532
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
533
|
+
|
|
534
|
+
/**
|
|
535
|
+
* Creates a SharedConfigMessage message from a plain object. Also converts values to their respective internal types.
|
|
536
|
+
* @param object Plain object
|
|
537
|
+
* @returns SharedConfigMessage
|
|
538
|
+
*/
|
|
539
|
+
public static fromObject(object: { [k: string]: any }): signalservice.SharedConfigMessage;
|
|
540
|
+
|
|
541
|
+
/**
|
|
542
|
+
* Creates a plain object from a SharedConfigMessage message. Also converts values to other types if specified.
|
|
543
|
+
* @param message SharedConfigMessage
|
|
544
|
+
* @param [options] Conversion options
|
|
545
|
+
* @returns Plain object
|
|
546
|
+
*/
|
|
547
|
+
public static toObject(message: signalservice.SharedConfigMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
548
|
+
|
|
549
|
+
/**
|
|
550
|
+
* Converts this SharedConfigMessage to JSON.
|
|
551
|
+
* @returns JSON object
|
|
552
|
+
*/
|
|
553
|
+
public toJSON(): { [k: string]: any };
|
|
554
|
+
|
|
555
|
+
/**
|
|
556
|
+
* Gets the default type url for SharedConfigMessage
|
|
557
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
558
|
+
* @returns The default type url
|
|
559
|
+
*/
|
|
560
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
namespace SharedConfigMessage {
|
|
564
|
+
|
|
565
|
+
/** Kind enum. */
|
|
566
|
+
enum Kind {
|
|
567
|
+
USER_PROFILE = 1,
|
|
568
|
+
CONTACTS = 2,
|
|
569
|
+
CONVO_INFO_VOLATILE = 3,
|
|
570
|
+
USER_GROUPS = 4
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
/** Properties of a Content. */
|
|
575
|
+
interface IContent {
|
|
576
|
+
|
|
577
|
+
/** Content dataMessage */
|
|
578
|
+
dataMessage?: (signalservice.IDataMessage|null);
|
|
579
|
+
|
|
580
|
+
/** Content callMessage */
|
|
581
|
+
callMessage?: (signalservice.ICallMessage|null);
|
|
582
|
+
|
|
583
|
+
/** Content receiptMessage */
|
|
584
|
+
receiptMessage?: (signalservice.IReceiptMessage|null);
|
|
585
|
+
|
|
586
|
+
/** Content typingMessage */
|
|
587
|
+
typingMessage?: (signalservice.ITypingMessage|null);
|
|
588
|
+
|
|
589
|
+
/** Content configurationMessage */
|
|
590
|
+
configurationMessage?: (signalservice.IConfigurationMessage|null);
|
|
591
|
+
|
|
592
|
+
/** Content dataExtractionNotification */
|
|
593
|
+
dataExtractionNotification?: (signalservice.IDataExtractionNotification|null);
|
|
594
|
+
|
|
595
|
+
/** Content unsendMessage */
|
|
596
|
+
unsendMessage?: (signalservice.IUnsend|null);
|
|
597
|
+
|
|
598
|
+
/** Content messageRequestResponse */
|
|
599
|
+
messageRequestResponse?: (signalservice.IMessageRequestResponse|null);
|
|
600
|
+
|
|
601
|
+
/** Content sharedConfigMessage */
|
|
602
|
+
sharedConfigMessage?: (signalservice.ISharedConfigMessage|null);
|
|
603
|
+
|
|
604
|
+
/** Content expirationType */
|
|
605
|
+
expirationType?: (signalservice.Content.ExpirationType|null);
|
|
606
|
+
|
|
607
|
+
/** Content expirationTimer */
|
|
608
|
+
expirationTimer?: (number|null);
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
/** Represents a Content. */
|
|
612
|
+
class Content implements IContent {
|
|
613
|
+
|
|
614
|
+
/**
|
|
615
|
+
* Constructs a new Content.
|
|
616
|
+
* @param [properties] Properties to set
|
|
617
|
+
*/
|
|
618
|
+
constructor(properties?: signalservice.IContent);
|
|
619
|
+
|
|
620
|
+
/** Content dataMessage. */
|
|
621
|
+
public dataMessage?: (signalservice.IDataMessage|null);
|
|
622
|
+
|
|
623
|
+
/** Content callMessage. */
|
|
624
|
+
public callMessage?: (signalservice.ICallMessage|null);
|
|
625
|
+
|
|
626
|
+
/** Content receiptMessage. */
|
|
627
|
+
public receiptMessage?: (signalservice.IReceiptMessage|null);
|
|
628
|
+
|
|
629
|
+
/** Content typingMessage. */
|
|
630
|
+
public typingMessage?: (signalservice.ITypingMessage|null);
|
|
631
|
+
|
|
632
|
+
/** Content configurationMessage. */
|
|
633
|
+
public configurationMessage?: (signalservice.IConfigurationMessage|null);
|
|
634
|
+
|
|
635
|
+
/** Content dataExtractionNotification. */
|
|
636
|
+
public dataExtractionNotification?: (signalservice.IDataExtractionNotification|null);
|
|
637
|
+
|
|
638
|
+
/** Content unsendMessage. */
|
|
639
|
+
public unsendMessage?: (signalservice.IUnsend|null);
|
|
640
|
+
|
|
641
|
+
/** Content messageRequestResponse. */
|
|
642
|
+
public messageRequestResponse?: (signalservice.IMessageRequestResponse|null);
|
|
643
|
+
|
|
644
|
+
/** Content sharedConfigMessage. */
|
|
645
|
+
public sharedConfigMessage?: (signalservice.ISharedConfigMessage|null);
|
|
646
|
+
|
|
647
|
+
/** Content expirationType. */
|
|
648
|
+
public expirationType: signalservice.Content.ExpirationType;
|
|
649
|
+
|
|
650
|
+
/** Content expirationTimer. */
|
|
651
|
+
public expirationTimer: number;
|
|
652
|
+
|
|
653
|
+
/**
|
|
654
|
+
* Creates a new Content instance using the specified properties.
|
|
655
|
+
* @param [properties] Properties to set
|
|
656
|
+
* @returns Content instance
|
|
657
|
+
*/
|
|
658
|
+
public static create(properties?: signalservice.IContent): signalservice.Content;
|
|
659
|
+
|
|
660
|
+
/**
|
|
661
|
+
* Encodes the specified Content message. Does not implicitly {@link signalservice.Content.verify|verify} messages.
|
|
662
|
+
* @param message Content message or plain object to encode
|
|
663
|
+
* @param [writer] Writer to encode to
|
|
664
|
+
* @returns Writer
|
|
665
|
+
*/
|
|
666
|
+
public static encode(message: signalservice.IContent, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
667
|
+
|
|
668
|
+
/**
|
|
669
|
+
* Encodes the specified Content message, length delimited. Does not implicitly {@link signalservice.Content.verify|verify} messages.
|
|
670
|
+
* @param message Content message or plain object to encode
|
|
671
|
+
* @param [writer] Writer to encode to
|
|
672
|
+
* @returns Writer
|
|
673
|
+
*/
|
|
674
|
+
public static encodeDelimited(message: signalservice.IContent, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
675
|
+
|
|
676
|
+
/**
|
|
677
|
+
* Decodes a Content message from the specified reader or buffer.
|
|
678
|
+
* @param reader Reader or buffer to decode from
|
|
679
|
+
* @param [length] Message length if known beforehand
|
|
680
|
+
* @returns Content
|
|
681
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
682
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
683
|
+
*/
|
|
684
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): signalservice.Content;
|
|
685
|
+
|
|
686
|
+
/**
|
|
687
|
+
* Decodes a Content message from the specified reader or buffer, length delimited.
|
|
688
|
+
* @param reader Reader or buffer to decode from
|
|
689
|
+
* @returns Content
|
|
690
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
691
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
692
|
+
*/
|
|
693
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): signalservice.Content;
|
|
694
|
+
|
|
695
|
+
/**
|
|
696
|
+
* Verifies a Content message.
|
|
697
|
+
* @param message Plain object to verify
|
|
698
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
699
|
+
*/
|
|
700
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
701
|
+
|
|
702
|
+
/**
|
|
703
|
+
* Creates a Content message from a plain object. Also converts values to their respective internal types.
|
|
704
|
+
* @param object Plain object
|
|
705
|
+
* @returns Content
|
|
706
|
+
*/
|
|
707
|
+
public static fromObject(object: { [k: string]: any }): signalservice.Content;
|
|
708
|
+
|
|
709
|
+
/**
|
|
710
|
+
* Creates a plain object from a Content message. Also converts values to other types if specified.
|
|
711
|
+
* @param message Content
|
|
712
|
+
* @param [options] Conversion options
|
|
713
|
+
* @returns Plain object
|
|
714
|
+
*/
|
|
715
|
+
public static toObject(message: signalservice.Content, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
716
|
+
|
|
717
|
+
/**
|
|
718
|
+
* Converts this Content to JSON.
|
|
719
|
+
* @returns JSON object
|
|
720
|
+
*/
|
|
721
|
+
public toJSON(): { [k: string]: any };
|
|
722
|
+
|
|
723
|
+
/**
|
|
724
|
+
* Gets the default type url for Content
|
|
725
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
726
|
+
* @returns The default type url
|
|
727
|
+
*/
|
|
728
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
namespace Content {
|
|
732
|
+
|
|
733
|
+
/** ExpirationType enum. */
|
|
734
|
+
enum ExpirationType {
|
|
735
|
+
UNKNOWN = 0,
|
|
736
|
+
DELETE_AFTER_READ = 1,
|
|
737
|
+
DELETE_AFTER_SEND = 2
|
|
738
|
+
}
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
/** Properties of a KeyPair. */
|
|
742
|
+
interface IKeyPair {
|
|
743
|
+
|
|
744
|
+
/** KeyPair publicKey */
|
|
745
|
+
publicKey: Uint8Array;
|
|
746
|
+
|
|
747
|
+
/** KeyPair privateKey */
|
|
748
|
+
privateKey: Uint8Array;
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
/** Represents a KeyPair. */
|
|
752
|
+
class KeyPair implements IKeyPair {
|
|
753
|
+
|
|
754
|
+
/**
|
|
755
|
+
* Constructs a new KeyPair.
|
|
756
|
+
* @param [properties] Properties to set
|
|
757
|
+
*/
|
|
758
|
+
constructor(properties?: signalservice.IKeyPair);
|
|
759
|
+
|
|
760
|
+
/** KeyPair publicKey. */
|
|
761
|
+
public publicKey: Uint8Array;
|
|
762
|
+
|
|
763
|
+
/** KeyPair privateKey. */
|
|
764
|
+
public privateKey: Uint8Array;
|
|
765
|
+
|
|
766
|
+
/**
|
|
767
|
+
* Creates a new KeyPair instance using the specified properties.
|
|
768
|
+
* @param [properties] Properties to set
|
|
769
|
+
* @returns KeyPair instance
|
|
770
|
+
*/
|
|
771
|
+
public static create(properties?: signalservice.IKeyPair): signalservice.KeyPair;
|
|
772
|
+
|
|
773
|
+
/**
|
|
774
|
+
* Encodes the specified KeyPair message. Does not implicitly {@link signalservice.KeyPair.verify|verify} messages.
|
|
775
|
+
* @param message KeyPair message or plain object to encode
|
|
776
|
+
* @param [writer] Writer to encode to
|
|
777
|
+
* @returns Writer
|
|
778
|
+
*/
|
|
779
|
+
public static encode(message: signalservice.IKeyPair, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
780
|
+
|
|
781
|
+
/**
|
|
782
|
+
* Encodes the specified KeyPair message, length delimited. Does not implicitly {@link signalservice.KeyPair.verify|verify} messages.
|
|
783
|
+
* @param message KeyPair message or plain object to encode
|
|
784
|
+
* @param [writer] Writer to encode to
|
|
785
|
+
* @returns Writer
|
|
786
|
+
*/
|
|
787
|
+
public static encodeDelimited(message: signalservice.IKeyPair, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
788
|
+
|
|
789
|
+
/**
|
|
790
|
+
* Decodes a KeyPair message from the specified reader or buffer.
|
|
791
|
+
* @param reader Reader or buffer to decode from
|
|
792
|
+
* @param [length] Message length if known beforehand
|
|
793
|
+
* @returns KeyPair
|
|
794
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
795
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
796
|
+
*/
|
|
797
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): signalservice.KeyPair;
|
|
798
|
+
|
|
799
|
+
/**
|
|
800
|
+
* Decodes a KeyPair message from the specified reader or buffer, length delimited.
|
|
801
|
+
* @param reader Reader or buffer to decode from
|
|
802
|
+
* @returns KeyPair
|
|
803
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
804
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
805
|
+
*/
|
|
806
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): signalservice.KeyPair;
|
|
807
|
+
|
|
808
|
+
/**
|
|
809
|
+
* Verifies a KeyPair message.
|
|
810
|
+
* @param message Plain object to verify
|
|
811
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
812
|
+
*/
|
|
813
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
814
|
+
|
|
815
|
+
/**
|
|
816
|
+
* Creates a KeyPair message from a plain object. Also converts values to their respective internal types.
|
|
817
|
+
* @param object Plain object
|
|
818
|
+
* @returns KeyPair
|
|
819
|
+
*/
|
|
820
|
+
public static fromObject(object: { [k: string]: any }): signalservice.KeyPair;
|
|
821
|
+
|
|
822
|
+
/**
|
|
823
|
+
* Creates a plain object from a KeyPair message. Also converts values to other types if specified.
|
|
824
|
+
* @param message KeyPair
|
|
825
|
+
* @param [options] Conversion options
|
|
826
|
+
* @returns Plain object
|
|
827
|
+
*/
|
|
828
|
+
public static toObject(message: signalservice.KeyPair, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
829
|
+
|
|
830
|
+
/**
|
|
831
|
+
* Converts this KeyPair to JSON.
|
|
832
|
+
* @returns JSON object
|
|
833
|
+
*/
|
|
834
|
+
public toJSON(): { [k: string]: any };
|
|
835
|
+
|
|
836
|
+
/**
|
|
837
|
+
* Gets the default type url for KeyPair
|
|
838
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
839
|
+
* @returns The default type url
|
|
840
|
+
*/
|
|
841
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
/** Properties of a DataExtractionNotification. */
|
|
845
|
+
interface IDataExtractionNotification {
|
|
846
|
+
|
|
847
|
+
/** DataExtractionNotification type */
|
|
848
|
+
type: signalservice.DataExtractionNotification.Type;
|
|
849
|
+
|
|
850
|
+
/** DataExtractionNotification timestamp */
|
|
851
|
+
timestamp?: (number|Long|null);
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
/** Represents a DataExtractionNotification. */
|
|
855
|
+
class DataExtractionNotification implements IDataExtractionNotification {
|
|
856
|
+
|
|
857
|
+
/**
|
|
858
|
+
* Constructs a new DataExtractionNotification.
|
|
859
|
+
* @param [properties] Properties to set
|
|
860
|
+
*/
|
|
861
|
+
constructor(properties?: signalservice.IDataExtractionNotification);
|
|
862
|
+
|
|
863
|
+
/** DataExtractionNotification type. */
|
|
864
|
+
public type: signalservice.DataExtractionNotification.Type;
|
|
865
|
+
|
|
866
|
+
/** DataExtractionNotification timestamp. */
|
|
867
|
+
public timestamp: (number|Long);
|
|
868
|
+
|
|
869
|
+
/**
|
|
870
|
+
* Creates a new DataExtractionNotification instance using the specified properties.
|
|
871
|
+
* @param [properties] Properties to set
|
|
872
|
+
* @returns DataExtractionNotification instance
|
|
873
|
+
*/
|
|
874
|
+
public static create(properties?: signalservice.IDataExtractionNotification): signalservice.DataExtractionNotification;
|
|
875
|
+
|
|
876
|
+
/**
|
|
877
|
+
* Encodes the specified DataExtractionNotification message. Does not implicitly {@link signalservice.DataExtractionNotification.verify|verify} messages.
|
|
878
|
+
* @param message DataExtractionNotification message or plain object to encode
|
|
879
|
+
* @param [writer] Writer to encode to
|
|
880
|
+
* @returns Writer
|
|
881
|
+
*/
|
|
882
|
+
public static encode(message: signalservice.IDataExtractionNotification, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
883
|
+
|
|
884
|
+
/**
|
|
885
|
+
* Encodes the specified DataExtractionNotification message, length delimited. Does not implicitly {@link signalservice.DataExtractionNotification.verify|verify} messages.
|
|
886
|
+
* @param message DataExtractionNotification message or plain object to encode
|
|
887
|
+
* @param [writer] Writer to encode to
|
|
888
|
+
* @returns Writer
|
|
889
|
+
*/
|
|
890
|
+
public static encodeDelimited(message: signalservice.IDataExtractionNotification, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
891
|
+
|
|
892
|
+
/**
|
|
893
|
+
* Decodes a DataExtractionNotification message from the specified reader or buffer.
|
|
894
|
+
* @param reader Reader or buffer to decode from
|
|
895
|
+
* @param [length] Message length if known beforehand
|
|
896
|
+
* @returns DataExtractionNotification
|
|
897
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
898
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
899
|
+
*/
|
|
900
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): signalservice.DataExtractionNotification;
|
|
901
|
+
|
|
902
|
+
/**
|
|
903
|
+
* Decodes a DataExtractionNotification message from the specified reader or buffer, length delimited.
|
|
904
|
+
* @param reader Reader or buffer to decode from
|
|
905
|
+
* @returns DataExtractionNotification
|
|
906
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
907
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
908
|
+
*/
|
|
909
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): signalservice.DataExtractionNotification;
|
|
910
|
+
|
|
911
|
+
/**
|
|
912
|
+
* Verifies a DataExtractionNotification message.
|
|
913
|
+
* @param message Plain object to verify
|
|
914
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
915
|
+
*/
|
|
916
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
917
|
+
|
|
918
|
+
/**
|
|
919
|
+
* Creates a DataExtractionNotification message from a plain object. Also converts values to their respective internal types.
|
|
920
|
+
* @param object Plain object
|
|
921
|
+
* @returns DataExtractionNotification
|
|
922
|
+
*/
|
|
923
|
+
public static fromObject(object: { [k: string]: any }): signalservice.DataExtractionNotification;
|
|
924
|
+
|
|
925
|
+
/**
|
|
926
|
+
* Creates a plain object from a DataExtractionNotification message. Also converts values to other types if specified.
|
|
927
|
+
* @param message DataExtractionNotification
|
|
928
|
+
* @param [options] Conversion options
|
|
929
|
+
* @returns Plain object
|
|
930
|
+
*/
|
|
931
|
+
public static toObject(message: signalservice.DataExtractionNotification, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
932
|
+
|
|
933
|
+
/**
|
|
934
|
+
* Converts this DataExtractionNotification to JSON.
|
|
935
|
+
* @returns JSON object
|
|
936
|
+
*/
|
|
937
|
+
public toJSON(): { [k: string]: any };
|
|
938
|
+
|
|
939
|
+
/**
|
|
940
|
+
* Gets the default type url for DataExtractionNotification
|
|
941
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
942
|
+
* @returns The default type url
|
|
943
|
+
*/
|
|
944
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
namespace DataExtractionNotification {
|
|
948
|
+
|
|
949
|
+
/** Type enum. */
|
|
950
|
+
enum Type {
|
|
951
|
+
SCREENSHOT = 1,
|
|
952
|
+
MEDIA_SAVED = 2
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
|
|
956
|
+
/** Properties of a DataMessage. */
|
|
957
|
+
interface IDataMessage {
|
|
958
|
+
|
|
959
|
+
/** DataMessage body */
|
|
960
|
+
body?: (string|null);
|
|
961
|
+
|
|
962
|
+
/** DataMessage attachments */
|
|
963
|
+
attachments?: (signalservice.IAttachmentPointer[]|null);
|
|
964
|
+
|
|
965
|
+
/** DataMessage group */
|
|
966
|
+
group?: (signalservice.IGroupContext|null);
|
|
967
|
+
|
|
968
|
+
/** DataMessage flags */
|
|
969
|
+
flags?: (number|null);
|
|
970
|
+
|
|
971
|
+
/** DataMessage expireTimer */
|
|
972
|
+
expireTimer?: (number|null);
|
|
973
|
+
|
|
974
|
+
/** DataMessage profileKey */
|
|
975
|
+
profileKey?: (Uint8Array|null);
|
|
976
|
+
|
|
977
|
+
/** DataMessage timestamp */
|
|
978
|
+
timestamp?: (number|Long|null);
|
|
979
|
+
|
|
980
|
+
/** DataMessage quote */
|
|
981
|
+
quote?: (signalservice.DataMessage.IQuote|null);
|
|
982
|
+
|
|
983
|
+
/** DataMessage preview */
|
|
984
|
+
preview?: (signalservice.DataMessage.IPreview[]|null);
|
|
985
|
+
|
|
986
|
+
/** DataMessage reaction */
|
|
987
|
+
reaction?: (signalservice.DataMessage.IReaction|null);
|
|
988
|
+
|
|
989
|
+
/** DataMessage profile */
|
|
990
|
+
profile?: (signalservice.DataMessage.ILokiProfile|null);
|
|
991
|
+
|
|
992
|
+
/** DataMessage openGroupInvitation */
|
|
993
|
+
openGroupInvitation?: (signalservice.DataMessage.IOpenGroupInvitation|null);
|
|
994
|
+
|
|
995
|
+
/** DataMessage closedGroupControlMessage */
|
|
996
|
+
closedGroupControlMessage?: (signalservice.DataMessage.IClosedGroupControlMessage|null);
|
|
997
|
+
|
|
998
|
+
/** DataMessage syncTarget */
|
|
999
|
+
syncTarget?: (string|null);
|
|
1000
|
+
|
|
1001
|
+
/** DataMessage blocksCommunityMessageRequests */
|
|
1002
|
+
blocksCommunityMessageRequests?: (boolean|null);
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
/** Represents a DataMessage. */
|
|
1006
|
+
class DataMessage implements IDataMessage {
|
|
1007
|
+
|
|
1008
|
+
/**
|
|
1009
|
+
* Constructs a new DataMessage.
|
|
1010
|
+
* @param [properties] Properties to set
|
|
1011
|
+
*/
|
|
1012
|
+
constructor(properties?: signalservice.IDataMessage);
|
|
1013
|
+
|
|
1014
|
+
/** DataMessage body. */
|
|
1015
|
+
public body: string;
|
|
1016
|
+
|
|
1017
|
+
/** DataMessage attachments. */
|
|
1018
|
+
public attachments: signalservice.IAttachmentPointer[];
|
|
1019
|
+
|
|
1020
|
+
/** DataMessage group. */
|
|
1021
|
+
public group?: (signalservice.IGroupContext|null);
|
|
1022
|
+
|
|
1023
|
+
/** DataMessage flags. */
|
|
1024
|
+
public flags: number;
|
|
1025
|
+
|
|
1026
|
+
/** DataMessage expireTimer. */
|
|
1027
|
+
public expireTimer: number;
|
|
1028
|
+
|
|
1029
|
+
/** DataMessage profileKey. */
|
|
1030
|
+
public profileKey: Uint8Array;
|
|
1031
|
+
|
|
1032
|
+
/** DataMessage timestamp. */
|
|
1033
|
+
public timestamp: (number|Long);
|
|
1034
|
+
|
|
1035
|
+
/** DataMessage quote. */
|
|
1036
|
+
public quote?: (signalservice.DataMessage.IQuote|null);
|
|
1037
|
+
|
|
1038
|
+
/** DataMessage preview. */
|
|
1039
|
+
public preview: signalservice.DataMessage.IPreview[];
|
|
1040
|
+
|
|
1041
|
+
/** DataMessage reaction. */
|
|
1042
|
+
public reaction?: (signalservice.DataMessage.IReaction|null);
|
|
1043
|
+
|
|
1044
|
+
/** DataMessage profile. */
|
|
1045
|
+
public profile?: (signalservice.DataMessage.ILokiProfile|null);
|
|
1046
|
+
|
|
1047
|
+
/** DataMessage openGroupInvitation. */
|
|
1048
|
+
public openGroupInvitation?: (signalservice.DataMessage.IOpenGroupInvitation|null);
|
|
1049
|
+
|
|
1050
|
+
/** DataMessage closedGroupControlMessage. */
|
|
1051
|
+
public closedGroupControlMessage?: (signalservice.DataMessage.IClosedGroupControlMessage|null);
|
|
1052
|
+
|
|
1053
|
+
/** DataMessage syncTarget. */
|
|
1054
|
+
public syncTarget: string;
|
|
1055
|
+
|
|
1056
|
+
/** DataMessage blocksCommunityMessageRequests. */
|
|
1057
|
+
public blocksCommunityMessageRequests: boolean;
|
|
1058
|
+
|
|
1059
|
+
/**
|
|
1060
|
+
* Creates a new DataMessage instance using the specified properties.
|
|
1061
|
+
* @param [properties] Properties to set
|
|
1062
|
+
* @returns DataMessage instance
|
|
1063
|
+
*/
|
|
1064
|
+
public static create(properties?: signalservice.IDataMessage): signalservice.DataMessage;
|
|
1065
|
+
|
|
1066
|
+
/**
|
|
1067
|
+
* Encodes the specified DataMessage message. Does not implicitly {@link signalservice.DataMessage.verify|verify} messages.
|
|
1068
|
+
* @param message DataMessage message or plain object to encode
|
|
1069
|
+
* @param [writer] Writer to encode to
|
|
1070
|
+
* @returns Writer
|
|
1071
|
+
*/
|
|
1072
|
+
public static encode(message: signalservice.IDataMessage, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1073
|
+
|
|
1074
|
+
/**
|
|
1075
|
+
* Encodes the specified DataMessage message, length delimited. Does not implicitly {@link signalservice.DataMessage.verify|verify} messages.
|
|
1076
|
+
* @param message DataMessage message or plain object to encode
|
|
1077
|
+
* @param [writer] Writer to encode to
|
|
1078
|
+
* @returns Writer
|
|
1079
|
+
*/
|
|
1080
|
+
public static encodeDelimited(message: signalservice.IDataMessage, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1081
|
+
|
|
1082
|
+
/**
|
|
1083
|
+
* Decodes a DataMessage message from the specified reader or buffer.
|
|
1084
|
+
* @param reader Reader or buffer to decode from
|
|
1085
|
+
* @param [length] Message length if known beforehand
|
|
1086
|
+
* @returns DataMessage
|
|
1087
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1088
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1089
|
+
*/
|
|
1090
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): signalservice.DataMessage;
|
|
1091
|
+
|
|
1092
|
+
/**
|
|
1093
|
+
* Decodes a DataMessage message from the specified reader or buffer, length delimited.
|
|
1094
|
+
* @param reader Reader or buffer to decode from
|
|
1095
|
+
* @returns DataMessage
|
|
1096
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1097
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1098
|
+
*/
|
|
1099
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): signalservice.DataMessage;
|
|
1100
|
+
|
|
1101
|
+
/**
|
|
1102
|
+
* Verifies a DataMessage message.
|
|
1103
|
+
* @param message Plain object to verify
|
|
1104
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
1105
|
+
*/
|
|
1106
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
1107
|
+
|
|
1108
|
+
/**
|
|
1109
|
+
* Creates a DataMessage message from a plain object. Also converts values to their respective internal types.
|
|
1110
|
+
* @param object Plain object
|
|
1111
|
+
* @returns DataMessage
|
|
1112
|
+
*/
|
|
1113
|
+
public static fromObject(object: { [k: string]: any }): signalservice.DataMessage;
|
|
1114
|
+
|
|
1115
|
+
/**
|
|
1116
|
+
* Creates a plain object from a DataMessage message. Also converts values to other types if specified.
|
|
1117
|
+
* @param message DataMessage
|
|
1118
|
+
* @param [options] Conversion options
|
|
1119
|
+
* @returns Plain object
|
|
1120
|
+
*/
|
|
1121
|
+
public static toObject(message: signalservice.DataMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
1122
|
+
|
|
1123
|
+
/**
|
|
1124
|
+
* Converts this DataMessage to JSON.
|
|
1125
|
+
* @returns JSON object
|
|
1126
|
+
*/
|
|
1127
|
+
public toJSON(): { [k: string]: any };
|
|
1128
|
+
|
|
1129
|
+
/**
|
|
1130
|
+
* Gets the default type url for DataMessage
|
|
1131
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
1132
|
+
* @returns The default type url
|
|
1133
|
+
*/
|
|
1134
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
1135
|
+
}
|
|
1136
|
+
|
|
1137
|
+
namespace DataMessage {
|
|
1138
|
+
|
|
1139
|
+
/** Flags enum. */
|
|
1140
|
+
enum Flags {
|
|
1141
|
+
EXPIRATION_TIMER_UPDATE = 2
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
/** Properties of a Reaction. */
|
|
1145
|
+
interface IReaction {
|
|
1146
|
+
|
|
1147
|
+
/** Reaction id */
|
|
1148
|
+
id: (number|Long);
|
|
1149
|
+
|
|
1150
|
+
/** Reaction author */
|
|
1151
|
+
author: string;
|
|
1152
|
+
|
|
1153
|
+
/** Reaction emoji */
|
|
1154
|
+
emoji?: (string|null);
|
|
1155
|
+
|
|
1156
|
+
/** Reaction action */
|
|
1157
|
+
action: signalservice.DataMessage.Reaction.Action;
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1160
|
+
/** Represents a Reaction. */
|
|
1161
|
+
class Reaction implements IReaction {
|
|
1162
|
+
|
|
1163
|
+
/**
|
|
1164
|
+
* Constructs a new Reaction.
|
|
1165
|
+
* @param [properties] Properties to set
|
|
1166
|
+
*/
|
|
1167
|
+
constructor(properties?: signalservice.DataMessage.IReaction);
|
|
1168
|
+
|
|
1169
|
+
/** Reaction id. */
|
|
1170
|
+
public id: (number|Long);
|
|
1171
|
+
|
|
1172
|
+
/** Reaction author. */
|
|
1173
|
+
public author: string;
|
|
1174
|
+
|
|
1175
|
+
/** Reaction emoji. */
|
|
1176
|
+
public emoji: string;
|
|
1177
|
+
|
|
1178
|
+
/** Reaction action. */
|
|
1179
|
+
public action: signalservice.DataMessage.Reaction.Action;
|
|
1180
|
+
|
|
1181
|
+
/**
|
|
1182
|
+
* Creates a new Reaction instance using the specified properties.
|
|
1183
|
+
* @param [properties] Properties to set
|
|
1184
|
+
* @returns Reaction instance
|
|
1185
|
+
*/
|
|
1186
|
+
public static create(properties?: signalservice.DataMessage.IReaction): signalservice.DataMessage.Reaction;
|
|
1187
|
+
|
|
1188
|
+
/**
|
|
1189
|
+
* Encodes the specified Reaction message. Does not implicitly {@link signalservice.DataMessage.Reaction.verify|verify} messages.
|
|
1190
|
+
* @param message Reaction message or plain object to encode
|
|
1191
|
+
* @param [writer] Writer to encode to
|
|
1192
|
+
* @returns Writer
|
|
1193
|
+
*/
|
|
1194
|
+
public static encode(message: signalservice.DataMessage.IReaction, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1195
|
+
|
|
1196
|
+
/**
|
|
1197
|
+
* Encodes the specified Reaction message, length delimited. Does not implicitly {@link signalservice.DataMessage.Reaction.verify|verify} messages.
|
|
1198
|
+
* @param message Reaction message or plain object to encode
|
|
1199
|
+
* @param [writer] Writer to encode to
|
|
1200
|
+
* @returns Writer
|
|
1201
|
+
*/
|
|
1202
|
+
public static encodeDelimited(message: signalservice.DataMessage.IReaction, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1203
|
+
|
|
1204
|
+
/**
|
|
1205
|
+
* Decodes a Reaction message from the specified reader or buffer.
|
|
1206
|
+
* @param reader Reader or buffer to decode from
|
|
1207
|
+
* @param [length] Message length if known beforehand
|
|
1208
|
+
* @returns Reaction
|
|
1209
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1210
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1211
|
+
*/
|
|
1212
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): signalservice.DataMessage.Reaction;
|
|
1213
|
+
|
|
1214
|
+
/**
|
|
1215
|
+
* Decodes a Reaction message from the specified reader or buffer, length delimited.
|
|
1216
|
+
* @param reader Reader or buffer to decode from
|
|
1217
|
+
* @returns Reaction
|
|
1218
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1219
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1220
|
+
*/
|
|
1221
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): signalservice.DataMessage.Reaction;
|
|
1222
|
+
|
|
1223
|
+
/**
|
|
1224
|
+
* Verifies a Reaction message.
|
|
1225
|
+
* @param message Plain object to verify
|
|
1226
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
1227
|
+
*/
|
|
1228
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
1229
|
+
|
|
1230
|
+
/**
|
|
1231
|
+
* Creates a Reaction message from a plain object. Also converts values to their respective internal types.
|
|
1232
|
+
* @param object Plain object
|
|
1233
|
+
* @returns Reaction
|
|
1234
|
+
*/
|
|
1235
|
+
public static fromObject(object: { [k: string]: any }): signalservice.DataMessage.Reaction;
|
|
1236
|
+
|
|
1237
|
+
/**
|
|
1238
|
+
* Creates a plain object from a Reaction message. Also converts values to other types if specified.
|
|
1239
|
+
* @param message Reaction
|
|
1240
|
+
* @param [options] Conversion options
|
|
1241
|
+
* @returns Plain object
|
|
1242
|
+
*/
|
|
1243
|
+
public static toObject(message: signalservice.DataMessage.Reaction, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
1244
|
+
|
|
1245
|
+
/**
|
|
1246
|
+
* Converts this Reaction to JSON.
|
|
1247
|
+
* @returns JSON object
|
|
1248
|
+
*/
|
|
1249
|
+
public toJSON(): { [k: string]: any };
|
|
1250
|
+
|
|
1251
|
+
/**
|
|
1252
|
+
* Gets the default type url for Reaction
|
|
1253
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
1254
|
+
* @returns The default type url
|
|
1255
|
+
*/
|
|
1256
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
1257
|
+
}
|
|
1258
|
+
|
|
1259
|
+
namespace Reaction {
|
|
1260
|
+
|
|
1261
|
+
/** Action enum. */
|
|
1262
|
+
enum Action {
|
|
1263
|
+
REACT = 0,
|
|
1264
|
+
REMOVE = 1
|
|
1265
|
+
}
|
|
1266
|
+
}
|
|
1267
|
+
|
|
1268
|
+
/** Properties of a Quote. */
|
|
1269
|
+
interface IQuote {
|
|
1270
|
+
|
|
1271
|
+
/** Quote id */
|
|
1272
|
+
id: (number|Long);
|
|
1273
|
+
|
|
1274
|
+
/** Quote author */
|
|
1275
|
+
author: string;
|
|
1276
|
+
|
|
1277
|
+
/** Quote text */
|
|
1278
|
+
text?: (string|null);
|
|
1279
|
+
|
|
1280
|
+
/** Quote attachments */
|
|
1281
|
+
attachments?: (signalservice.DataMessage.Quote.IQuotedAttachment[]|null);
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
/** Represents a Quote. */
|
|
1285
|
+
class Quote implements IQuote {
|
|
1286
|
+
|
|
1287
|
+
/**
|
|
1288
|
+
* Constructs a new Quote.
|
|
1289
|
+
* @param [properties] Properties to set
|
|
1290
|
+
*/
|
|
1291
|
+
constructor(properties?: signalservice.DataMessage.IQuote);
|
|
1292
|
+
|
|
1293
|
+
/** Quote id. */
|
|
1294
|
+
public id: (number|Long);
|
|
1295
|
+
|
|
1296
|
+
/** Quote author. */
|
|
1297
|
+
public author: string;
|
|
1298
|
+
|
|
1299
|
+
/** Quote text. */
|
|
1300
|
+
public text: string;
|
|
1301
|
+
|
|
1302
|
+
/** Quote attachments. */
|
|
1303
|
+
public attachments: signalservice.DataMessage.Quote.IQuotedAttachment[];
|
|
1304
|
+
|
|
1305
|
+
/**
|
|
1306
|
+
* Creates a new Quote instance using the specified properties.
|
|
1307
|
+
* @param [properties] Properties to set
|
|
1308
|
+
* @returns Quote instance
|
|
1309
|
+
*/
|
|
1310
|
+
public static create(properties?: signalservice.DataMessage.IQuote): signalservice.DataMessage.Quote;
|
|
1311
|
+
|
|
1312
|
+
/**
|
|
1313
|
+
* Encodes the specified Quote message. Does not implicitly {@link signalservice.DataMessage.Quote.verify|verify} messages.
|
|
1314
|
+
* @param message Quote message or plain object to encode
|
|
1315
|
+
* @param [writer] Writer to encode to
|
|
1316
|
+
* @returns Writer
|
|
1317
|
+
*/
|
|
1318
|
+
public static encode(message: signalservice.DataMessage.IQuote, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1319
|
+
|
|
1320
|
+
/**
|
|
1321
|
+
* Encodes the specified Quote message, length delimited. Does not implicitly {@link signalservice.DataMessage.Quote.verify|verify} messages.
|
|
1322
|
+
* @param message Quote message or plain object to encode
|
|
1323
|
+
* @param [writer] Writer to encode to
|
|
1324
|
+
* @returns Writer
|
|
1325
|
+
*/
|
|
1326
|
+
public static encodeDelimited(message: signalservice.DataMessage.IQuote, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1327
|
+
|
|
1328
|
+
/**
|
|
1329
|
+
* Decodes a Quote message from the specified reader or buffer.
|
|
1330
|
+
* @param reader Reader or buffer to decode from
|
|
1331
|
+
* @param [length] Message length if known beforehand
|
|
1332
|
+
* @returns Quote
|
|
1333
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1334
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1335
|
+
*/
|
|
1336
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): signalservice.DataMessage.Quote;
|
|
1337
|
+
|
|
1338
|
+
/**
|
|
1339
|
+
* Decodes a Quote message from the specified reader or buffer, length delimited.
|
|
1340
|
+
* @param reader Reader or buffer to decode from
|
|
1341
|
+
* @returns Quote
|
|
1342
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1343
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1344
|
+
*/
|
|
1345
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): signalservice.DataMessage.Quote;
|
|
1346
|
+
|
|
1347
|
+
/**
|
|
1348
|
+
* Verifies a Quote message.
|
|
1349
|
+
* @param message Plain object to verify
|
|
1350
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
1351
|
+
*/
|
|
1352
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
1353
|
+
|
|
1354
|
+
/**
|
|
1355
|
+
* Creates a Quote message from a plain object. Also converts values to their respective internal types.
|
|
1356
|
+
* @param object Plain object
|
|
1357
|
+
* @returns Quote
|
|
1358
|
+
*/
|
|
1359
|
+
public static fromObject(object: { [k: string]: any }): signalservice.DataMessage.Quote;
|
|
1360
|
+
|
|
1361
|
+
/**
|
|
1362
|
+
* Creates a plain object from a Quote message. Also converts values to other types if specified.
|
|
1363
|
+
* @param message Quote
|
|
1364
|
+
* @param [options] Conversion options
|
|
1365
|
+
* @returns Plain object
|
|
1366
|
+
*/
|
|
1367
|
+
public static toObject(message: signalservice.DataMessage.Quote, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
1368
|
+
|
|
1369
|
+
/**
|
|
1370
|
+
* Converts this Quote to JSON.
|
|
1371
|
+
* @returns JSON object
|
|
1372
|
+
*/
|
|
1373
|
+
public toJSON(): { [k: string]: any };
|
|
1374
|
+
|
|
1375
|
+
/**
|
|
1376
|
+
* Gets the default type url for Quote
|
|
1377
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
1378
|
+
* @returns The default type url
|
|
1379
|
+
*/
|
|
1380
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1383
|
+
namespace Quote {
|
|
1384
|
+
|
|
1385
|
+
/** Properties of a QuotedAttachment. */
|
|
1386
|
+
interface IQuotedAttachment {
|
|
1387
|
+
|
|
1388
|
+
/** QuotedAttachment contentType */
|
|
1389
|
+
contentType?: (string|null);
|
|
1390
|
+
|
|
1391
|
+
/** QuotedAttachment fileName */
|
|
1392
|
+
fileName?: (string|null);
|
|
1393
|
+
|
|
1394
|
+
/** QuotedAttachment thumbnail */
|
|
1395
|
+
thumbnail?: (signalservice.IAttachmentPointer|null);
|
|
1396
|
+
}
|
|
1397
|
+
|
|
1398
|
+
/** Represents a QuotedAttachment. */
|
|
1399
|
+
class QuotedAttachment implements IQuotedAttachment {
|
|
1400
|
+
|
|
1401
|
+
/**
|
|
1402
|
+
* Constructs a new QuotedAttachment.
|
|
1403
|
+
* @param [properties] Properties to set
|
|
1404
|
+
*/
|
|
1405
|
+
constructor(properties?: signalservice.DataMessage.Quote.IQuotedAttachment);
|
|
1406
|
+
|
|
1407
|
+
/** QuotedAttachment contentType. */
|
|
1408
|
+
public contentType: string;
|
|
1409
|
+
|
|
1410
|
+
/** QuotedAttachment fileName. */
|
|
1411
|
+
public fileName: string;
|
|
1412
|
+
|
|
1413
|
+
/** QuotedAttachment thumbnail. */
|
|
1414
|
+
public thumbnail?: (signalservice.IAttachmentPointer|null);
|
|
1415
|
+
|
|
1416
|
+
/**
|
|
1417
|
+
* Creates a new QuotedAttachment instance using the specified properties.
|
|
1418
|
+
* @param [properties] Properties to set
|
|
1419
|
+
* @returns QuotedAttachment instance
|
|
1420
|
+
*/
|
|
1421
|
+
public static create(properties?: signalservice.DataMessage.Quote.IQuotedAttachment): signalservice.DataMessage.Quote.QuotedAttachment;
|
|
1422
|
+
|
|
1423
|
+
/**
|
|
1424
|
+
* Encodes the specified QuotedAttachment message. Does not implicitly {@link signalservice.DataMessage.Quote.QuotedAttachment.verify|verify} messages.
|
|
1425
|
+
* @param message QuotedAttachment message or plain object to encode
|
|
1426
|
+
* @param [writer] Writer to encode to
|
|
1427
|
+
* @returns Writer
|
|
1428
|
+
*/
|
|
1429
|
+
public static encode(message: signalservice.DataMessage.Quote.IQuotedAttachment, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1430
|
+
|
|
1431
|
+
/**
|
|
1432
|
+
* Encodes the specified QuotedAttachment message, length delimited. Does not implicitly {@link signalservice.DataMessage.Quote.QuotedAttachment.verify|verify} messages.
|
|
1433
|
+
* @param message QuotedAttachment message or plain object to encode
|
|
1434
|
+
* @param [writer] Writer to encode to
|
|
1435
|
+
* @returns Writer
|
|
1436
|
+
*/
|
|
1437
|
+
public static encodeDelimited(message: signalservice.DataMessage.Quote.IQuotedAttachment, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1438
|
+
|
|
1439
|
+
/**
|
|
1440
|
+
* Decodes a QuotedAttachment message from the specified reader or buffer.
|
|
1441
|
+
* @param reader Reader or buffer to decode from
|
|
1442
|
+
* @param [length] Message length if known beforehand
|
|
1443
|
+
* @returns QuotedAttachment
|
|
1444
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1445
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1446
|
+
*/
|
|
1447
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): signalservice.DataMessage.Quote.QuotedAttachment;
|
|
1448
|
+
|
|
1449
|
+
/**
|
|
1450
|
+
* Decodes a QuotedAttachment message from the specified reader or buffer, length delimited.
|
|
1451
|
+
* @param reader Reader or buffer to decode from
|
|
1452
|
+
* @returns QuotedAttachment
|
|
1453
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1454
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1455
|
+
*/
|
|
1456
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): signalservice.DataMessage.Quote.QuotedAttachment;
|
|
1457
|
+
|
|
1458
|
+
/**
|
|
1459
|
+
* Verifies a QuotedAttachment message.
|
|
1460
|
+
* @param message Plain object to verify
|
|
1461
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
1462
|
+
*/
|
|
1463
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
1464
|
+
|
|
1465
|
+
/**
|
|
1466
|
+
* Creates a QuotedAttachment message from a plain object. Also converts values to their respective internal types.
|
|
1467
|
+
* @param object Plain object
|
|
1468
|
+
* @returns QuotedAttachment
|
|
1469
|
+
*/
|
|
1470
|
+
public static fromObject(object: { [k: string]: any }): signalservice.DataMessage.Quote.QuotedAttachment;
|
|
1471
|
+
|
|
1472
|
+
/**
|
|
1473
|
+
* Creates a plain object from a QuotedAttachment message. Also converts values to other types if specified.
|
|
1474
|
+
* @param message QuotedAttachment
|
|
1475
|
+
* @param [options] Conversion options
|
|
1476
|
+
* @returns Plain object
|
|
1477
|
+
*/
|
|
1478
|
+
public static toObject(message: signalservice.DataMessage.Quote.QuotedAttachment, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
1479
|
+
|
|
1480
|
+
/**
|
|
1481
|
+
* Converts this QuotedAttachment to JSON.
|
|
1482
|
+
* @returns JSON object
|
|
1483
|
+
*/
|
|
1484
|
+
public toJSON(): { [k: string]: any };
|
|
1485
|
+
|
|
1486
|
+
/**
|
|
1487
|
+
* Gets the default type url for QuotedAttachment
|
|
1488
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
1489
|
+
* @returns The default type url
|
|
1490
|
+
*/
|
|
1491
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
1492
|
+
}
|
|
1493
|
+
}
|
|
1494
|
+
|
|
1495
|
+
/** Properties of a Preview. */
|
|
1496
|
+
interface IPreview {
|
|
1497
|
+
|
|
1498
|
+
/** Preview url */
|
|
1499
|
+
url: string;
|
|
1500
|
+
|
|
1501
|
+
/** Preview title */
|
|
1502
|
+
title?: (string|null);
|
|
1503
|
+
|
|
1504
|
+
/** Preview image */
|
|
1505
|
+
image?: (signalservice.IAttachmentPointer|null);
|
|
1506
|
+
}
|
|
1507
|
+
|
|
1508
|
+
/** Represents a Preview. */
|
|
1509
|
+
class Preview implements IPreview {
|
|
1510
|
+
|
|
1511
|
+
/**
|
|
1512
|
+
* Constructs a new Preview.
|
|
1513
|
+
* @param [properties] Properties to set
|
|
1514
|
+
*/
|
|
1515
|
+
constructor(properties?: signalservice.DataMessage.IPreview);
|
|
1516
|
+
|
|
1517
|
+
/** Preview url. */
|
|
1518
|
+
public url: string;
|
|
1519
|
+
|
|
1520
|
+
/** Preview title. */
|
|
1521
|
+
public title: string;
|
|
1522
|
+
|
|
1523
|
+
/** Preview image. */
|
|
1524
|
+
public image?: (signalservice.IAttachmentPointer|null);
|
|
1525
|
+
|
|
1526
|
+
/**
|
|
1527
|
+
* Creates a new Preview instance using the specified properties.
|
|
1528
|
+
* @param [properties] Properties to set
|
|
1529
|
+
* @returns Preview instance
|
|
1530
|
+
*/
|
|
1531
|
+
public static create(properties?: signalservice.DataMessage.IPreview): signalservice.DataMessage.Preview;
|
|
1532
|
+
|
|
1533
|
+
/**
|
|
1534
|
+
* Encodes the specified Preview message. Does not implicitly {@link signalservice.DataMessage.Preview.verify|verify} messages.
|
|
1535
|
+
* @param message Preview message or plain object to encode
|
|
1536
|
+
* @param [writer] Writer to encode to
|
|
1537
|
+
* @returns Writer
|
|
1538
|
+
*/
|
|
1539
|
+
public static encode(message: signalservice.DataMessage.IPreview, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1540
|
+
|
|
1541
|
+
/**
|
|
1542
|
+
* Encodes the specified Preview message, length delimited. Does not implicitly {@link signalservice.DataMessage.Preview.verify|verify} messages.
|
|
1543
|
+
* @param message Preview message or plain object to encode
|
|
1544
|
+
* @param [writer] Writer to encode to
|
|
1545
|
+
* @returns Writer
|
|
1546
|
+
*/
|
|
1547
|
+
public static encodeDelimited(message: signalservice.DataMessage.IPreview, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1548
|
+
|
|
1549
|
+
/**
|
|
1550
|
+
* Decodes a Preview message from the specified reader or buffer.
|
|
1551
|
+
* @param reader Reader or buffer to decode from
|
|
1552
|
+
* @param [length] Message length if known beforehand
|
|
1553
|
+
* @returns Preview
|
|
1554
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1555
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1556
|
+
*/
|
|
1557
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): signalservice.DataMessage.Preview;
|
|
1558
|
+
|
|
1559
|
+
/**
|
|
1560
|
+
* Decodes a Preview message from the specified reader or buffer, length delimited.
|
|
1561
|
+
* @param reader Reader or buffer to decode from
|
|
1562
|
+
* @returns Preview
|
|
1563
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1564
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1565
|
+
*/
|
|
1566
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): signalservice.DataMessage.Preview;
|
|
1567
|
+
|
|
1568
|
+
/**
|
|
1569
|
+
* Verifies a Preview message.
|
|
1570
|
+
* @param message Plain object to verify
|
|
1571
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
1572
|
+
*/
|
|
1573
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
1574
|
+
|
|
1575
|
+
/**
|
|
1576
|
+
* Creates a Preview message from a plain object. Also converts values to their respective internal types.
|
|
1577
|
+
* @param object Plain object
|
|
1578
|
+
* @returns Preview
|
|
1579
|
+
*/
|
|
1580
|
+
public static fromObject(object: { [k: string]: any }): signalservice.DataMessage.Preview;
|
|
1581
|
+
|
|
1582
|
+
/**
|
|
1583
|
+
* Creates a plain object from a Preview message. Also converts values to other types if specified.
|
|
1584
|
+
* @param message Preview
|
|
1585
|
+
* @param [options] Conversion options
|
|
1586
|
+
* @returns Plain object
|
|
1587
|
+
*/
|
|
1588
|
+
public static toObject(message: signalservice.DataMessage.Preview, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
1589
|
+
|
|
1590
|
+
/**
|
|
1591
|
+
* Converts this Preview to JSON.
|
|
1592
|
+
* @returns JSON object
|
|
1593
|
+
*/
|
|
1594
|
+
public toJSON(): { [k: string]: any };
|
|
1595
|
+
|
|
1596
|
+
/**
|
|
1597
|
+
* Gets the default type url for Preview
|
|
1598
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
1599
|
+
* @returns The default type url
|
|
1600
|
+
*/
|
|
1601
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
1602
|
+
}
|
|
1603
|
+
|
|
1604
|
+
/** Properties of a LokiProfile. */
|
|
1605
|
+
interface ILokiProfile {
|
|
1606
|
+
|
|
1607
|
+
/** LokiProfile displayName */
|
|
1608
|
+
displayName?: (string|null);
|
|
1609
|
+
|
|
1610
|
+
/** LokiProfile profilePicture */
|
|
1611
|
+
profilePicture?: (string|null);
|
|
1612
|
+
}
|
|
1613
|
+
|
|
1614
|
+
/** Represents a LokiProfile. */
|
|
1615
|
+
class LokiProfile implements ILokiProfile {
|
|
1616
|
+
|
|
1617
|
+
/**
|
|
1618
|
+
* Constructs a new LokiProfile.
|
|
1619
|
+
* @param [properties] Properties to set
|
|
1620
|
+
*/
|
|
1621
|
+
constructor(properties?: signalservice.DataMessage.ILokiProfile);
|
|
1622
|
+
|
|
1623
|
+
/** LokiProfile displayName. */
|
|
1624
|
+
public displayName: string;
|
|
1625
|
+
|
|
1626
|
+
/** LokiProfile profilePicture. */
|
|
1627
|
+
public profilePicture: string;
|
|
1628
|
+
|
|
1629
|
+
/**
|
|
1630
|
+
* Creates a new LokiProfile instance using the specified properties.
|
|
1631
|
+
* @param [properties] Properties to set
|
|
1632
|
+
* @returns LokiProfile instance
|
|
1633
|
+
*/
|
|
1634
|
+
public static create(properties?: signalservice.DataMessage.ILokiProfile): signalservice.DataMessage.LokiProfile;
|
|
1635
|
+
|
|
1636
|
+
/**
|
|
1637
|
+
* Encodes the specified LokiProfile message. Does not implicitly {@link signalservice.DataMessage.LokiProfile.verify|verify} messages.
|
|
1638
|
+
* @param message LokiProfile message or plain object to encode
|
|
1639
|
+
* @param [writer] Writer to encode to
|
|
1640
|
+
* @returns Writer
|
|
1641
|
+
*/
|
|
1642
|
+
public static encode(message: signalservice.DataMessage.ILokiProfile, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1643
|
+
|
|
1644
|
+
/**
|
|
1645
|
+
* Encodes the specified LokiProfile message, length delimited. Does not implicitly {@link signalservice.DataMessage.LokiProfile.verify|verify} messages.
|
|
1646
|
+
* @param message LokiProfile message or plain object to encode
|
|
1647
|
+
* @param [writer] Writer to encode to
|
|
1648
|
+
* @returns Writer
|
|
1649
|
+
*/
|
|
1650
|
+
public static encodeDelimited(message: signalservice.DataMessage.ILokiProfile, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1651
|
+
|
|
1652
|
+
/**
|
|
1653
|
+
* Decodes a LokiProfile message from the specified reader or buffer.
|
|
1654
|
+
* @param reader Reader or buffer to decode from
|
|
1655
|
+
* @param [length] Message length if known beforehand
|
|
1656
|
+
* @returns LokiProfile
|
|
1657
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1658
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1659
|
+
*/
|
|
1660
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): signalservice.DataMessage.LokiProfile;
|
|
1661
|
+
|
|
1662
|
+
/**
|
|
1663
|
+
* Decodes a LokiProfile message from the specified reader or buffer, length delimited.
|
|
1664
|
+
* @param reader Reader or buffer to decode from
|
|
1665
|
+
* @returns LokiProfile
|
|
1666
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1667
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1668
|
+
*/
|
|
1669
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): signalservice.DataMessage.LokiProfile;
|
|
1670
|
+
|
|
1671
|
+
/**
|
|
1672
|
+
* Verifies a LokiProfile message.
|
|
1673
|
+
* @param message Plain object to verify
|
|
1674
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
1675
|
+
*/
|
|
1676
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
1677
|
+
|
|
1678
|
+
/**
|
|
1679
|
+
* Creates a LokiProfile message from a plain object. Also converts values to their respective internal types.
|
|
1680
|
+
* @param object Plain object
|
|
1681
|
+
* @returns LokiProfile
|
|
1682
|
+
*/
|
|
1683
|
+
public static fromObject(object: { [k: string]: any }): signalservice.DataMessage.LokiProfile;
|
|
1684
|
+
|
|
1685
|
+
/**
|
|
1686
|
+
* Creates a plain object from a LokiProfile message. Also converts values to other types if specified.
|
|
1687
|
+
* @param message LokiProfile
|
|
1688
|
+
* @param [options] Conversion options
|
|
1689
|
+
* @returns Plain object
|
|
1690
|
+
*/
|
|
1691
|
+
public static toObject(message: signalservice.DataMessage.LokiProfile, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
1692
|
+
|
|
1693
|
+
/**
|
|
1694
|
+
* Converts this LokiProfile to JSON.
|
|
1695
|
+
* @returns JSON object
|
|
1696
|
+
*/
|
|
1697
|
+
public toJSON(): { [k: string]: any };
|
|
1698
|
+
|
|
1699
|
+
/**
|
|
1700
|
+
* Gets the default type url for LokiProfile
|
|
1701
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
1702
|
+
* @returns The default type url
|
|
1703
|
+
*/
|
|
1704
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
1705
|
+
}
|
|
1706
|
+
|
|
1707
|
+
/** Properties of an OpenGroupInvitation. */
|
|
1708
|
+
interface IOpenGroupInvitation {
|
|
1709
|
+
|
|
1710
|
+
/** OpenGroupInvitation url */
|
|
1711
|
+
url: string;
|
|
1712
|
+
|
|
1713
|
+
/** OpenGroupInvitation name */
|
|
1714
|
+
name: string;
|
|
1715
|
+
}
|
|
1716
|
+
|
|
1717
|
+
/** Represents an OpenGroupInvitation. */
|
|
1718
|
+
class OpenGroupInvitation implements IOpenGroupInvitation {
|
|
1719
|
+
|
|
1720
|
+
/**
|
|
1721
|
+
* Constructs a new OpenGroupInvitation.
|
|
1722
|
+
* @param [properties] Properties to set
|
|
1723
|
+
*/
|
|
1724
|
+
constructor(properties?: signalservice.DataMessage.IOpenGroupInvitation);
|
|
1725
|
+
|
|
1726
|
+
/** OpenGroupInvitation url. */
|
|
1727
|
+
public url: string;
|
|
1728
|
+
|
|
1729
|
+
/** OpenGroupInvitation name. */
|
|
1730
|
+
public name: string;
|
|
1731
|
+
|
|
1732
|
+
/**
|
|
1733
|
+
* Creates a new OpenGroupInvitation instance using the specified properties.
|
|
1734
|
+
* @param [properties] Properties to set
|
|
1735
|
+
* @returns OpenGroupInvitation instance
|
|
1736
|
+
*/
|
|
1737
|
+
public static create(properties?: signalservice.DataMessage.IOpenGroupInvitation): signalservice.DataMessage.OpenGroupInvitation;
|
|
1738
|
+
|
|
1739
|
+
/**
|
|
1740
|
+
* Encodes the specified OpenGroupInvitation message. Does not implicitly {@link signalservice.DataMessage.OpenGroupInvitation.verify|verify} messages.
|
|
1741
|
+
* @param message OpenGroupInvitation message or plain object to encode
|
|
1742
|
+
* @param [writer] Writer to encode to
|
|
1743
|
+
* @returns Writer
|
|
1744
|
+
*/
|
|
1745
|
+
public static encode(message: signalservice.DataMessage.IOpenGroupInvitation, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1746
|
+
|
|
1747
|
+
/**
|
|
1748
|
+
* Encodes the specified OpenGroupInvitation message, length delimited. Does not implicitly {@link signalservice.DataMessage.OpenGroupInvitation.verify|verify} messages.
|
|
1749
|
+
* @param message OpenGroupInvitation message or plain object to encode
|
|
1750
|
+
* @param [writer] Writer to encode to
|
|
1751
|
+
* @returns Writer
|
|
1752
|
+
*/
|
|
1753
|
+
public static encodeDelimited(message: signalservice.DataMessage.IOpenGroupInvitation, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1754
|
+
|
|
1755
|
+
/**
|
|
1756
|
+
* Decodes an OpenGroupInvitation message from the specified reader or buffer.
|
|
1757
|
+
* @param reader Reader or buffer to decode from
|
|
1758
|
+
* @param [length] Message length if known beforehand
|
|
1759
|
+
* @returns OpenGroupInvitation
|
|
1760
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1761
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1762
|
+
*/
|
|
1763
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): signalservice.DataMessage.OpenGroupInvitation;
|
|
1764
|
+
|
|
1765
|
+
/**
|
|
1766
|
+
* Decodes an OpenGroupInvitation message from the specified reader or buffer, length delimited.
|
|
1767
|
+
* @param reader Reader or buffer to decode from
|
|
1768
|
+
* @returns OpenGroupInvitation
|
|
1769
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1770
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1771
|
+
*/
|
|
1772
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): signalservice.DataMessage.OpenGroupInvitation;
|
|
1773
|
+
|
|
1774
|
+
/**
|
|
1775
|
+
* Verifies an OpenGroupInvitation message.
|
|
1776
|
+
* @param message Plain object to verify
|
|
1777
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
1778
|
+
*/
|
|
1779
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
1780
|
+
|
|
1781
|
+
/**
|
|
1782
|
+
* Creates an OpenGroupInvitation message from a plain object. Also converts values to their respective internal types.
|
|
1783
|
+
* @param object Plain object
|
|
1784
|
+
* @returns OpenGroupInvitation
|
|
1785
|
+
*/
|
|
1786
|
+
public static fromObject(object: { [k: string]: any }): signalservice.DataMessage.OpenGroupInvitation;
|
|
1787
|
+
|
|
1788
|
+
/**
|
|
1789
|
+
* Creates a plain object from an OpenGroupInvitation message. Also converts values to other types if specified.
|
|
1790
|
+
* @param message OpenGroupInvitation
|
|
1791
|
+
* @param [options] Conversion options
|
|
1792
|
+
* @returns Plain object
|
|
1793
|
+
*/
|
|
1794
|
+
public static toObject(message: signalservice.DataMessage.OpenGroupInvitation, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
1795
|
+
|
|
1796
|
+
/**
|
|
1797
|
+
* Converts this OpenGroupInvitation to JSON.
|
|
1798
|
+
* @returns JSON object
|
|
1799
|
+
*/
|
|
1800
|
+
public toJSON(): { [k: string]: any };
|
|
1801
|
+
|
|
1802
|
+
/**
|
|
1803
|
+
* Gets the default type url for OpenGroupInvitation
|
|
1804
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
1805
|
+
* @returns The default type url
|
|
1806
|
+
*/
|
|
1807
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
1808
|
+
}
|
|
1809
|
+
|
|
1810
|
+
/** Properties of a ClosedGroupControlMessage. */
|
|
1811
|
+
interface IClosedGroupControlMessage {
|
|
1812
|
+
|
|
1813
|
+
/** ClosedGroupControlMessage type */
|
|
1814
|
+
type: signalservice.DataMessage.ClosedGroupControlMessage.Type;
|
|
1815
|
+
|
|
1816
|
+
/** ClosedGroupControlMessage publicKey */
|
|
1817
|
+
publicKey?: (Uint8Array|null);
|
|
1818
|
+
|
|
1819
|
+
/** ClosedGroupControlMessage name */
|
|
1820
|
+
name?: (string|null);
|
|
1821
|
+
|
|
1822
|
+
/** ClosedGroupControlMessage encryptionKeyPair */
|
|
1823
|
+
encryptionKeyPair?: (signalservice.IKeyPair|null);
|
|
1824
|
+
|
|
1825
|
+
/** ClosedGroupControlMessage members */
|
|
1826
|
+
members?: (Uint8Array[]|null);
|
|
1827
|
+
|
|
1828
|
+
/** ClosedGroupControlMessage admins */
|
|
1829
|
+
admins?: (Uint8Array[]|null);
|
|
1830
|
+
|
|
1831
|
+
/** ClosedGroupControlMessage wrappers */
|
|
1832
|
+
wrappers?: (signalservice.DataMessage.ClosedGroupControlMessage.IKeyPairWrapper[]|null);
|
|
1833
|
+
|
|
1834
|
+
/** ClosedGroupControlMessage expirationTimer */
|
|
1835
|
+
expirationTimer?: (number|null);
|
|
1836
|
+
}
|
|
1837
|
+
|
|
1838
|
+
/** Represents a ClosedGroupControlMessage. */
|
|
1839
|
+
class ClosedGroupControlMessage implements IClosedGroupControlMessage {
|
|
1840
|
+
|
|
1841
|
+
/**
|
|
1842
|
+
* Constructs a new ClosedGroupControlMessage.
|
|
1843
|
+
* @param [properties] Properties to set
|
|
1844
|
+
*/
|
|
1845
|
+
constructor(properties?: signalservice.DataMessage.IClosedGroupControlMessage);
|
|
1846
|
+
|
|
1847
|
+
/** ClosedGroupControlMessage type. */
|
|
1848
|
+
public type: signalservice.DataMessage.ClosedGroupControlMessage.Type;
|
|
1849
|
+
|
|
1850
|
+
/** ClosedGroupControlMessage publicKey. */
|
|
1851
|
+
public publicKey: Uint8Array;
|
|
1852
|
+
|
|
1853
|
+
/** ClosedGroupControlMessage name. */
|
|
1854
|
+
public name: string;
|
|
1855
|
+
|
|
1856
|
+
/** ClosedGroupControlMessage encryptionKeyPair. */
|
|
1857
|
+
public encryptionKeyPair?: (signalservice.IKeyPair|null);
|
|
1858
|
+
|
|
1859
|
+
/** ClosedGroupControlMessage members. */
|
|
1860
|
+
public members: Uint8Array[];
|
|
1861
|
+
|
|
1862
|
+
/** ClosedGroupControlMessage admins. */
|
|
1863
|
+
public admins: Uint8Array[];
|
|
1864
|
+
|
|
1865
|
+
/** ClosedGroupControlMessage wrappers. */
|
|
1866
|
+
public wrappers: signalservice.DataMessage.ClosedGroupControlMessage.IKeyPairWrapper[];
|
|
1867
|
+
|
|
1868
|
+
/** ClosedGroupControlMessage expirationTimer. */
|
|
1869
|
+
public expirationTimer: number;
|
|
1870
|
+
|
|
1871
|
+
/**
|
|
1872
|
+
* Creates a new ClosedGroupControlMessage instance using the specified properties.
|
|
1873
|
+
* @param [properties] Properties to set
|
|
1874
|
+
* @returns ClosedGroupControlMessage instance
|
|
1875
|
+
*/
|
|
1876
|
+
public static create(properties?: signalservice.DataMessage.IClosedGroupControlMessage): signalservice.DataMessage.ClosedGroupControlMessage;
|
|
1877
|
+
|
|
1878
|
+
/**
|
|
1879
|
+
* Encodes the specified ClosedGroupControlMessage message. Does not implicitly {@link signalservice.DataMessage.ClosedGroupControlMessage.verify|verify} messages.
|
|
1880
|
+
* @param message ClosedGroupControlMessage message or plain object to encode
|
|
1881
|
+
* @param [writer] Writer to encode to
|
|
1882
|
+
* @returns Writer
|
|
1883
|
+
*/
|
|
1884
|
+
public static encode(message: signalservice.DataMessage.IClosedGroupControlMessage, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1885
|
+
|
|
1886
|
+
/**
|
|
1887
|
+
* Encodes the specified ClosedGroupControlMessage message, length delimited. Does not implicitly {@link signalservice.DataMessage.ClosedGroupControlMessage.verify|verify} messages.
|
|
1888
|
+
* @param message ClosedGroupControlMessage message or plain object to encode
|
|
1889
|
+
* @param [writer] Writer to encode to
|
|
1890
|
+
* @returns Writer
|
|
1891
|
+
*/
|
|
1892
|
+
public static encodeDelimited(message: signalservice.DataMessage.IClosedGroupControlMessage, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1893
|
+
|
|
1894
|
+
/**
|
|
1895
|
+
* Decodes a ClosedGroupControlMessage message from the specified reader or buffer.
|
|
1896
|
+
* @param reader Reader or buffer to decode from
|
|
1897
|
+
* @param [length] Message length if known beforehand
|
|
1898
|
+
* @returns ClosedGroupControlMessage
|
|
1899
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1900
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1901
|
+
*/
|
|
1902
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): signalservice.DataMessage.ClosedGroupControlMessage;
|
|
1903
|
+
|
|
1904
|
+
/**
|
|
1905
|
+
* Decodes a ClosedGroupControlMessage message from the specified reader or buffer, length delimited.
|
|
1906
|
+
* @param reader Reader or buffer to decode from
|
|
1907
|
+
* @returns ClosedGroupControlMessage
|
|
1908
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1909
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1910
|
+
*/
|
|
1911
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): signalservice.DataMessage.ClosedGroupControlMessage;
|
|
1912
|
+
|
|
1913
|
+
/**
|
|
1914
|
+
* Verifies a ClosedGroupControlMessage message.
|
|
1915
|
+
* @param message Plain object to verify
|
|
1916
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
1917
|
+
*/
|
|
1918
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
1919
|
+
|
|
1920
|
+
/**
|
|
1921
|
+
* Creates a ClosedGroupControlMessage message from a plain object. Also converts values to their respective internal types.
|
|
1922
|
+
* @param object Plain object
|
|
1923
|
+
* @returns ClosedGroupControlMessage
|
|
1924
|
+
*/
|
|
1925
|
+
public static fromObject(object: { [k: string]: any }): signalservice.DataMessage.ClosedGroupControlMessage;
|
|
1926
|
+
|
|
1927
|
+
/**
|
|
1928
|
+
* Creates a plain object from a ClosedGroupControlMessage message. Also converts values to other types if specified.
|
|
1929
|
+
* @param message ClosedGroupControlMessage
|
|
1930
|
+
* @param [options] Conversion options
|
|
1931
|
+
* @returns Plain object
|
|
1932
|
+
*/
|
|
1933
|
+
public static toObject(message: signalservice.DataMessage.ClosedGroupControlMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
1934
|
+
|
|
1935
|
+
/**
|
|
1936
|
+
* Converts this ClosedGroupControlMessage to JSON.
|
|
1937
|
+
* @returns JSON object
|
|
1938
|
+
*/
|
|
1939
|
+
public toJSON(): { [k: string]: any };
|
|
1940
|
+
|
|
1941
|
+
/**
|
|
1942
|
+
* Gets the default type url for ClosedGroupControlMessage
|
|
1943
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
1944
|
+
* @returns The default type url
|
|
1945
|
+
*/
|
|
1946
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
1947
|
+
}
|
|
1948
|
+
|
|
1949
|
+
namespace ClosedGroupControlMessage {
|
|
1950
|
+
|
|
1951
|
+
/** Type enum. */
|
|
1952
|
+
enum Type {
|
|
1953
|
+
NEW = 1,
|
|
1954
|
+
ENCRYPTION_KEY_PAIR = 3,
|
|
1955
|
+
NAME_CHANGE = 4,
|
|
1956
|
+
MEMBERS_ADDED = 5,
|
|
1957
|
+
MEMBERS_REMOVED = 6,
|
|
1958
|
+
MEMBER_LEFT = 7,
|
|
1959
|
+
ENCRYPTION_KEY_PAIR_REQUEST = 8
|
|
1960
|
+
}
|
|
1961
|
+
|
|
1962
|
+
/** Properties of a KeyPairWrapper. */
|
|
1963
|
+
interface IKeyPairWrapper {
|
|
1964
|
+
|
|
1965
|
+
/** KeyPairWrapper publicKey */
|
|
1966
|
+
publicKey: Uint8Array;
|
|
1967
|
+
|
|
1968
|
+
/** KeyPairWrapper encryptedKeyPair */
|
|
1969
|
+
encryptedKeyPair: Uint8Array;
|
|
1970
|
+
}
|
|
1971
|
+
|
|
1972
|
+
/** Represents a KeyPairWrapper. */
|
|
1973
|
+
class KeyPairWrapper implements IKeyPairWrapper {
|
|
1974
|
+
|
|
1975
|
+
/**
|
|
1976
|
+
* Constructs a new KeyPairWrapper.
|
|
1977
|
+
* @param [properties] Properties to set
|
|
1978
|
+
*/
|
|
1979
|
+
constructor(properties?: signalservice.DataMessage.ClosedGroupControlMessage.IKeyPairWrapper);
|
|
1980
|
+
|
|
1981
|
+
/** KeyPairWrapper publicKey. */
|
|
1982
|
+
public publicKey: Uint8Array;
|
|
1983
|
+
|
|
1984
|
+
/** KeyPairWrapper encryptedKeyPair. */
|
|
1985
|
+
public encryptedKeyPair: Uint8Array;
|
|
1986
|
+
|
|
1987
|
+
/**
|
|
1988
|
+
* Creates a new KeyPairWrapper instance using the specified properties.
|
|
1989
|
+
* @param [properties] Properties to set
|
|
1990
|
+
* @returns KeyPairWrapper instance
|
|
1991
|
+
*/
|
|
1992
|
+
public static create(properties?: signalservice.DataMessage.ClosedGroupControlMessage.IKeyPairWrapper): signalservice.DataMessage.ClosedGroupControlMessage.KeyPairWrapper;
|
|
1993
|
+
|
|
1994
|
+
/**
|
|
1995
|
+
* Encodes the specified KeyPairWrapper message. Does not implicitly {@link signalservice.DataMessage.ClosedGroupControlMessage.KeyPairWrapper.verify|verify} messages.
|
|
1996
|
+
* @param message KeyPairWrapper message or plain object to encode
|
|
1997
|
+
* @param [writer] Writer to encode to
|
|
1998
|
+
* @returns Writer
|
|
1999
|
+
*/
|
|
2000
|
+
public static encode(message: signalservice.DataMessage.ClosedGroupControlMessage.IKeyPairWrapper, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
2001
|
+
|
|
2002
|
+
/**
|
|
2003
|
+
* Encodes the specified KeyPairWrapper message, length delimited. Does not implicitly {@link signalservice.DataMessage.ClosedGroupControlMessage.KeyPairWrapper.verify|verify} messages.
|
|
2004
|
+
* @param message KeyPairWrapper message or plain object to encode
|
|
2005
|
+
* @param [writer] Writer to encode to
|
|
2006
|
+
* @returns Writer
|
|
2007
|
+
*/
|
|
2008
|
+
public static encodeDelimited(message: signalservice.DataMessage.ClosedGroupControlMessage.IKeyPairWrapper, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
2009
|
+
|
|
2010
|
+
/**
|
|
2011
|
+
* Decodes a KeyPairWrapper message from the specified reader or buffer.
|
|
2012
|
+
* @param reader Reader or buffer to decode from
|
|
2013
|
+
* @param [length] Message length if known beforehand
|
|
2014
|
+
* @returns KeyPairWrapper
|
|
2015
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2016
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2017
|
+
*/
|
|
2018
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): signalservice.DataMessage.ClosedGroupControlMessage.KeyPairWrapper;
|
|
2019
|
+
|
|
2020
|
+
/**
|
|
2021
|
+
* Decodes a KeyPairWrapper message from the specified reader or buffer, length delimited.
|
|
2022
|
+
* @param reader Reader or buffer to decode from
|
|
2023
|
+
* @returns KeyPairWrapper
|
|
2024
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2025
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2026
|
+
*/
|
|
2027
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): signalservice.DataMessage.ClosedGroupControlMessage.KeyPairWrapper;
|
|
2028
|
+
|
|
2029
|
+
/**
|
|
2030
|
+
* Verifies a KeyPairWrapper message.
|
|
2031
|
+
* @param message Plain object to verify
|
|
2032
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
2033
|
+
*/
|
|
2034
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
2035
|
+
|
|
2036
|
+
/**
|
|
2037
|
+
* Creates a KeyPairWrapper message from a plain object. Also converts values to their respective internal types.
|
|
2038
|
+
* @param object Plain object
|
|
2039
|
+
* @returns KeyPairWrapper
|
|
2040
|
+
*/
|
|
2041
|
+
public static fromObject(object: { [k: string]: any }): signalservice.DataMessage.ClosedGroupControlMessage.KeyPairWrapper;
|
|
2042
|
+
|
|
2043
|
+
/**
|
|
2044
|
+
* Creates a plain object from a KeyPairWrapper message. Also converts values to other types if specified.
|
|
2045
|
+
* @param message KeyPairWrapper
|
|
2046
|
+
* @param [options] Conversion options
|
|
2047
|
+
* @returns Plain object
|
|
2048
|
+
*/
|
|
2049
|
+
public static toObject(message: signalservice.DataMessage.ClosedGroupControlMessage.KeyPairWrapper, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
2050
|
+
|
|
2051
|
+
/**
|
|
2052
|
+
* Converts this KeyPairWrapper to JSON.
|
|
2053
|
+
* @returns JSON object
|
|
2054
|
+
*/
|
|
2055
|
+
public toJSON(): { [k: string]: any };
|
|
2056
|
+
|
|
2057
|
+
/**
|
|
2058
|
+
* Gets the default type url for KeyPairWrapper
|
|
2059
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
2060
|
+
* @returns The default type url
|
|
2061
|
+
*/
|
|
2062
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
2063
|
+
}
|
|
2064
|
+
}
|
|
2065
|
+
}
|
|
2066
|
+
|
|
2067
|
+
/** Properties of a CallMessage. */
|
|
2068
|
+
interface ICallMessage {
|
|
2069
|
+
|
|
2070
|
+
/** CallMessage type */
|
|
2071
|
+
type: signalservice.CallMessage.Type;
|
|
2072
|
+
|
|
2073
|
+
/** CallMessage sdps */
|
|
2074
|
+
sdps?: (string[]|null);
|
|
2075
|
+
|
|
2076
|
+
/** CallMessage sdpMLineIndexes */
|
|
2077
|
+
sdpMLineIndexes?: (number[]|null);
|
|
2078
|
+
|
|
2079
|
+
/** CallMessage sdpMids */
|
|
2080
|
+
sdpMids?: (string[]|null);
|
|
2081
|
+
|
|
2082
|
+
/** CallMessage uuid */
|
|
2083
|
+
uuid: string;
|
|
2084
|
+
}
|
|
2085
|
+
|
|
2086
|
+
/** Represents a CallMessage. */
|
|
2087
|
+
class CallMessage implements ICallMessage {
|
|
2088
|
+
|
|
2089
|
+
/**
|
|
2090
|
+
* Constructs a new CallMessage.
|
|
2091
|
+
* @param [properties] Properties to set
|
|
2092
|
+
*/
|
|
2093
|
+
constructor(properties?: signalservice.ICallMessage);
|
|
2094
|
+
|
|
2095
|
+
/** CallMessage type. */
|
|
2096
|
+
public type: signalservice.CallMessage.Type;
|
|
2097
|
+
|
|
2098
|
+
/** CallMessage sdps. */
|
|
2099
|
+
public sdps: string[];
|
|
2100
|
+
|
|
2101
|
+
/** CallMessage sdpMLineIndexes. */
|
|
2102
|
+
public sdpMLineIndexes: number[];
|
|
2103
|
+
|
|
2104
|
+
/** CallMessage sdpMids. */
|
|
2105
|
+
public sdpMids: string[];
|
|
2106
|
+
|
|
2107
|
+
/** CallMessage uuid. */
|
|
2108
|
+
public uuid: string;
|
|
2109
|
+
|
|
2110
|
+
/**
|
|
2111
|
+
* Creates a new CallMessage instance using the specified properties.
|
|
2112
|
+
* @param [properties] Properties to set
|
|
2113
|
+
* @returns CallMessage instance
|
|
2114
|
+
*/
|
|
2115
|
+
public static create(properties?: signalservice.ICallMessage): signalservice.CallMessage;
|
|
2116
|
+
|
|
2117
|
+
/**
|
|
2118
|
+
* Encodes the specified CallMessage message. Does not implicitly {@link signalservice.CallMessage.verify|verify} messages.
|
|
2119
|
+
* @param message CallMessage message or plain object to encode
|
|
2120
|
+
* @param [writer] Writer to encode to
|
|
2121
|
+
* @returns Writer
|
|
2122
|
+
*/
|
|
2123
|
+
public static encode(message: signalservice.ICallMessage, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
2124
|
+
|
|
2125
|
+
/**
|
|
2126
|
+
* Encodes the specified CallMessage message, length delimited. Does not implicitly {@link signalservice.CallMessage.verify|verify} messages.
|
|
2127
|
+
* @param message CallMessage message or plain object to encode
|
|
2128
|
+
* @param [writer] Writer to encode to
|
|
2129
|
+
* @returns Writer
|
|
2130
|
+
*/
|
|
2131
|
+
public static encodeDelimited(message: signalservice.ICallMessage, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
2132
|
+
|
|
2133
|
+
/**
|
|
2134
|
+
* Decodes a CallMessage message from the specified reader or buffer.
|
|
2135
|
+
* @param reader Reader or buffer to decode from
|
|
2136
|
+
* @param [length] Message length if known beforehand
|
|
2137
|
+
* @returns CallMessage
|
|
2138
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2139
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2140
|
+
*/
|
|
2141
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): signalservice.CallMessage;
|
|
2142
|
+
|
|
2143
|
+
/**
|
|
2144
|
+
* Decodes a CallMessage message from the specified reader or buffer, length delimited.
|
|
2145
|
+
* @param reader Reader or buffer to decode from
|
|
2146
|
+
* @returns CallMessage
|
|
2147
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2148
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2149
|
+
*/
|
|
2150
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): signalservice.CallMessage;
|
|
2151
|
+
|
|
2152
|
+
/**
|
|
2153
|
+
* Verifies a CallMessage message.
|
|
2154
|
+
* @param message Plain object to verify
|
|
2155
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
2156
|
+
*/
|
|
2157
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
2158
|
+
|
|
2159
|
+
/**
|
|
2160
|
+
* Creates a CallMessage message from a plain object. Also converts values to their respective internal types.
|
|
2161
|
+
* @param object Plain object
|
|
2162
|
+
* @returns CallMessage
|
|
2163
|
+
*/
|
|
2164
|
+
public static fromObject(object: { [k: string]: any }): signalservice.CallMessage;
|
|
2165
|
+
|
|
2166
|
+
/**
|
|
2167
|
+
* Creates a plain object from a CallMessage message. Also converts values to other types if specified.
|
|
2168
|
+
* @param message CallMessage
|
|
2169
|
+
* @param [options] Conversion options
|
|
2170
|
+
* @returns Plain object
|
|
2171
|
+
*/
|
|
2172
|
+
public static toObject(message: signalservice.CallMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
2173
|
+
|
|
2174
|
+
/**
|
|
2175
|
+
* Converts this CallMessage to JSON.
|
|
2176
|
+
* @returns JSON object
|
|
2177
|
+
*/
|
|
2178
|
+
public toJSON(): { [k: string]: any };
|
|
2179
|
+
|
|
2180
|
+
/**
|
|
2181
|
+
* Gets the default type url for CallMessage
|
|
2182
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
2183
|
+
* @returns The default type url
|
|
2184
|
+
*/
|
|
2185
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
2186
|
+
}
|
|
2187
|
+
|
|
2188
|
+
namespace CallMessage {
|
|
2189
|
+
|
|
2190
|
+
/** Type enum. */
|
|
2191
|
+
enum Type {
|
|
2192
|
+
PRE_OFFER = 6,
|
|
2193
|
+
OFFER = 1,
|
|
2194
|
+
ANSWER = 2,
|
|
2195
|
+
PROVISIONAL_ANSWER = 3,
|
|
2196
|
+
ICE_CANDIDATES = 4,
|
|
2197
|
+
END_CALL = 5
|
|
2198
|
+
}
|
|
2199
|
+
}
|
|
2200
|
+
|
|
2201
|
+
/** Properties of a ConfigurationMessage. */
|
|
2202
|
+
interface IConfigurationMessage {
|
|
2203
|
+
|
|
2204
|
+
/** ConfigurationMessage closedGroups */
|
|
2205
|
+
closedGroups?: (signalservice.ConfigurationMessage.IClosedGroup[]|null);
|
|
2206
|
+
|
|
2207
|
+
/** ConfigurationMessage openGroups */
|
|
2208
|
+
openGroups?: (string[]|null);
|
|
2209
|
+
|
|
2210
|
+
/** ConfigurationMessage displayName */
|
|
2211
|
+
displayName?: (string|null);
|
|
2212
|
+
|
|
2213
|
+
/** ConfigurationMessage profilePicture */
|
|
2214
|
+
profilePicture?: (string|null);
|
|
2215
|
+
|
|
2216
|
+
/** ConfigurationMessage profileKey */
|
|
2217
|
+
profileKey?: (Uint8Array|null);
|
|
2218
|
+
|
|
2219
|
+
/** ConfigurationMessage contacts */
|
|
2220
|
+
contacts?: (signalservice.ConfigurationMessage.IContact[]|null);
|
|
2221
|
+
}
|
|
2222
|
+
|
|
2223
|
+
/** Represents a ConfigurationMessage. */
|
|
2224
|
+
class ConfigurationMessage implements IConfigurationMessage {
|
|
2225
|
+
|
|
2226
|
+
/**
|
|
2227
|
+
* Constructs a new ConfigurationMessage.
|
|
2228
|
+
* @param [properties] Properties to set
|
|
2229
|
+
*/
|
|
2230
|
+
constructor(properties?: signalservice.IConfigurationMessage);
|
|
2231
|
+
|
|
2232
|
+
/** ConfigurationMessage closedGroups. */
|
|
2233
|
+
public closedGroups: signalservice.ConfigurationMessage.IClosedGroup[];
|
|
2234
|
+
|
|
2235
|
+
/** ConfigurationMessage openGroups. */
|
|
2236
|
+
public openGroups: string[];
|
|
2237
|
+
|
|
2238
|
+
/** ConfigurationMessage displayName. */
|
|
2239
|
+
public displayName: string;
|
|
2240
|
+
|
|
2241
|
+
/** ConfigurationMessage profilePicture. */
|
|
2242
|
+
public profilePicture: string;
|
|
2243
|
+
|
|
2244
|
+
/** ConfigurationMessage profileKey. */
|
|
2245
|
+
public profileKey: Uint8Array;
|
|
2246
|
+
|
|
2247
|
+
/** ConfigurationMessage contacts. */
|
|
2248
|
+
public contacts: signalservice.ConfigurationMessage.IContact[];
|
|
2249
|
+
|
|
2250
|
+
/**
|
|
2251
|
+
* Creates a new ConfigurationMessage instance using the specified properties.
|
|
2252
|
+
* @param [properties] Properties to set
|
|
2253
|
+
* @returns ConfigurationMessage instance
|
|
2254
|
+
*/
|
|
2255
|
+
public static create(properties?: signalservice.IConfigurationMessage): signalservice.ConfigurationMessage;
|
|
2256
|
+
|
|
2257
|
+
/**
|
|
2258
|
+
* Encodes the specified ConfigurationMessage message. Does not implicitly {@link signalservice.ConfigurationMessage.verify|verify} messages.
|
|
2259
|
+
* @param message ConfigurationMessage message or plain object to encode
|
|
2260
|
+
* @param [writer] Writer to encode to
|
|
2261
|
+
* @returns Writer
|
|
2262
|
+
*/
|
|
2263
|
+
public static encode(message: signalservice.IConfigurationMessage, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
2264
|
+
|
|
2265
|
+
/**
|
|
2266
|
+
* Encodes the specified ConfigurationMessage message, length delimited. Does not implicitly {@link signalservice.ConfigurationMessage.verify|verify} messages.
|
|
2267
|
+
* @param message ConfigurationMessage message or plain object to encode
|
|
2268
|
+
* @param [writer] Writer to encode to
|
|
2269
|
+
* @returns Writer
|
|
2270
|
+
*/
|
|
2271
|
+
public static encodeDelimited(message: signalservice.IConfigurationMessage, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
2272
|
+
|
|
2273
|
+
/**
|
|
2274
|
+
* Decodes a ConfigurationMessage message from the specified reader or buffer.
|
|
2275
|
+
* @param reader Reader or buffer to decode from
|
|
2276
|
+
* @param [length] Message length if known beforehand
|
|
2277
|
+
* @returns ConfigurationMessage
|
|
2278
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2279
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2280
|
+
*/
|
|
2281
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): signalservice.ConfigurationMessage;
|
|
2282
|
+
|
|
2283
|
+
/**
|
|
2284
|
+
* Decodes a ConfigurationMessage message from the specified reader or buffer, length delimited.
|
|
2285
|
+
* @param reader Reader or buffer to decode from
|
|
2286
|
+
* @returns ConfigurationMessage
|
|
2287
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2288
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2289
|
+
*/
|
|
2290
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): signalservice.ConfigurationMessage;
|
|
2291
|
+
|
|
2292
|
+
/**
|
|
2293
|
+
* Verifies a ConfigurationMessage message.
|
|
2294
|
+
* @param message Plain object to verify
|
|
2295
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
2296
|
+
*/
|
|
2297
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
2298
|
+
|
|
2299
|
+
/**
|
|
2300
|
+
* Creates a ConfigurationMessage message from a plain object. Also converts values to their respective internal types.
|
|
2301
|
+
* @param object Plain object
|
|
2302
|
+
* @returns ConfigurationMessage
|
|
2303
|
+
*/
|
|
2304
|
+
public static fromObject(object: { [k: string]: any }): signalservice.ConfigurationMessage;
|
|
2305
|
+
|
|
2306
|
+
/**
|
|
2307
|
+
* Creates a plain object from a ConfigurationMessage message. Also converts values to other types if specified.
|
|
2308
|
+
* @param message ConfigurationMessage
|
|
2309
|
+
* @param [options] Conversion options
|
|
2310
|
+
* @returns Plain object
|
|
2311
|
+
*/
|
|
2312
|
+
public static toObject(message: signalservice.ConfigurationMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
2313
|
+
|
|
2314
|
+
/**
|
|
2315
|
+
* Converts this ConfigurationMessage to JSON.
|
|
2316
|
+
* @returns JSON object
|
|
2317
|
+
*/
|
|
2318
|
+
public toJSON(): { [k: string]: any };
|
|
2319
|
+
|
|
2320
|
+
/**
|
|
2321
|
+
* Gets the default type url for ConfigurationMessage
|
|
2322
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
2323
|
+
* @returns The default type url
|
|
2324
|
+
*/
|
|
2325
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
2326
|
+
}
|
|
2327
|
+
|
|
2328
|
+
namespace ConfigurationMessage {
|
|
2329
|
+
|
|
2330
|
+
/** Properties of a ClosedGroup. */
|
|
2331
|
+
interface IClosedGroup {
|
|
2332
|
+
|
|
2333
|
+
/** ClosedGroup publicKey */
|
|
2334
|
+
publicKey?: (Uint8Array|null);
|
|
2335
|
+
|
|
2336
|
+
/** ClosedGroup name */
|
|
2337
|
+
name?: (string|null);
|
|
2338
|
+
|
|
2339
|
+
/** ClosedGroup encryptionKeyPair */
|
|
2340
|
+
encryptionKeyPair?: (signalservice.IKeyPair|null);
|
|
2341
|
+
|
|
2342
|
+
/** ClosedGroup members */
|
|
2343
|
+
members?: (Uint8Array[]|null);
|
|
2344
|
+
|
|
2345
|
+
/** ClosedGroup admins */
|
|
2346
|
+
admins?: (Uint8Array[]|null);
|
|
2347
|
+
}
|
|
2348
|
+
|
|
2349
|
+
/** Represents a ClosedGroup. */
|
|
2350
|
+
class ClosedGroup implements IClosedGroup {
|
|
2351
|
+
|
|
2352
|
+
/**
|
|
2353
|
+
* Constructs a new ClosedGroup.
|
|
2354
|
+
* @param [properties] Properties to set
|
|
2355
|
+
*/
|
|
2356
|
+
constructor(properties?: signalservice.ConfigurationMessage.IClosedGroup);
|
|
2357
|
+
|
|
2358
|
+
/** ClosedGroup publicKey. */
|
|
2359
|
+
public publicKey: Uint8Array;
|
|
2360
|
+
|
|
2361
|
+
/** ClosedGroup name. */
|
|
2362
|
+
public name: string;
|
|
2363
|
+
|
|
2364
|
+
/** ClosedGroup encryptionKeyPair. */
|
|
2365
|
+
public encryptionKeyPair?: (signalservice.IKeyPair|null);
|
|
2366
|
+
|
|
2367
|
+
/** ClosedGroup members. */
|
|
2368
|
+
public members: Uint8Array[];
|
|
2369
|
+
|
|
2370
|
+
/** ClosedGroup admins. */
|
|
2371
|
+
public admins: Uint8Array[];
|
|
2372
|
+
|
|
2373
|
+
/**
|
|
2374
|
+
* Creates a new ClosedGroup instance using the specified properties.
|
|
2375
|
+
* @param [properties] Properties to set
|
|
2376
|
+
* @returns ClosedGroup instance
|
|
2377
|
+
*/
|
|
2378
|
+
public static create(properties?: signalservice.ConfigurationMessage.IClosedGroup): signalservice.ConfigurationMessage.ClosedGroup;
|
|
2379
|
+
|
|
2380
|
+
/**
|
|
2381
|
+
* Encodes the specified ClosedGroup message. Does not implicitly {@link signalservice.ConfigurationMessage.ClosedGroup.verify|verify} messages.
|
|
2382
|
+
* @param message ClosedGroup message or plain object to encode
|
|
2383
|
+
* @param [writer] Writer to encode to
|
|
2384
|
+
* @returns Writer
|
|
2385
|
+
*/
|
|
2386
|
+
public static encode(message: signalservice.ConfigurationMessage.IClosedGroup, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
2387
|
+
|
|
2388
|
+
/**
|
|
2389
|
+
* Encodes the specified ClosedGroup message, length delimited. Does not implicitly {@link signalservice.ConfigurationMessage.ClosedGroup.verify|verify} messages.
|
|
2390
|
+
* @param message ClosedGroup message or plain object to encode
|
|
2391
|
+
* @param [writer] Writer to encode to
|
|
2392
|
+
* @returns Writer
|
|
2393
|
+
*/
|
|
2394
|
+
public static encodeDelimited(message: signalservice.ConfigurationMessage.IClosedGroup, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
2395
|
+
|
|
2396
|
+
/**
|
|
2397
|
+
* Decodes a ClosedGroup message from the specified reader or buffer.
|
|
2398
|
+
* @param reader Reader or buffer to decode from
|
|
2399
|
+
* @param [length] Message length if known beforehand
|
|
2400
|
+
* @returns ClosedGroup
|
|
2401
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2402
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2403
|
+
*/
|
|
2404
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): signalservice.ConfigurationMessage.ClosedGroup;
|
|
2405
|
+
|
|
2406
|
+
/**
|
|
2407
|
+
* Decodes a ClosedGroup message from the specified reader or buffer, length delimited.
|
|
2408
|
+
* @param reader Reader or buffer to decode from
|
|
2409
|
+
* @returns ClosedGroup
|
|
2410
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2411
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2412
|
+
*/
|
|
2413
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): signalservice.ConfigurationMessage.ClosedGroup;
|
|
2414
|
+
|
|
2415
|
+
/**
|
|
2416
|
+
* Verifies a ClosedGroup message.
|
|
2417
|
+
* @param message Plain object to verify
|
|
2418
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
2419
|
+
*/
|
|
2420
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
2421
|
+
|
|
2422
|
+
/**
|
|
2423
|
+
* Creates a ClosedGroup message from a plain object. Also converts values to their respective internal types.
|
|
2424
|
+
* @param object Plain object
|
|
2425
|
+
* @returns ClosedGroup
|
|
2426
|
+
*/
|
|
2427
|
+
public static fromObject(object: { [k: string]: any }): signalservice.ConfigurationMessage.ClosedGroup;
|
|
2428
|
+
|
|
2429
|
+
/**
|
|
2430
|
+
* Creates a plain object from a ClosedGroup message. Also converts values to other types if specified.
|
|
2431
|
+
* @param message ClosedGroup
|
|
2432
|
+
* @param [options] Conversion options
|
|
2433
|
+
* @returns Plain object
|
|
2434
|
+
*/
|
|
2435
|
+
public static toObject(message: signalservice.ConfigurationMessage.ClosedGroup, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
2436
|
+
|
|
2437
|
+
/**
|
|
2438
|
+
* Converts this ClosedGroup to JSON.
|
|
2439
|
+
* @returns JSON object
|
|
2440
|
+
*/
|
|
2441
|
+
public toJSON(): { [k: string]: any };
|
|
2442
|
+
|
|
2443
|
+
/**
|
|
2444
|
+
* Gets the default type url for ClosedGroup
|
|
2445
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
2446
|
+
* @returns The default type url
|
|
2447
|
+
*/
|
|
2448
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
2449
|
+
}
|
|
2450
|
+
|
|
2451
|
+
/** Properties of a Contact. */
|
|
2452
|
+
interface IContact {
|
|
2453
|
+
|
|
2454
|
+
/** Contact publicKey */
|
|
2455
|
+
publicKey: Uint8Array;
|
|
2456
|
+
|
|
2457
|
+
/** Contact name */
|
|
2458
|
+
name: string;
|
|
2459
|
+
|
|
2460
|
+
/** Contact profilePicture */
|
|
2461
|
+
profilePicture?: (string|null);
|
|
2462
|
+
|
|
2463
|
+
/** Contact profileKey */
|
|
2464
|
+
profileKey?: (Uint8Array|null);
|
|
2465
|
+
|
|
2466
|
+
/** Contact isApproved */
|
|
2467
|
+
isApproved?: (boolean|null);
|
|
2468
|
+
|
|
2469
|
+
/** Contact isBlocked */
|
|
2470
|
+
isBlocked?: (boolean|null);
|
|
2471
|
+
|
|
2472
|
+
/** Contact didApproveMe */
|
|
2473
|
+
didApproveMe?: (boolean|null);
|
|
2474
|
+
}
|
|
2475
|
+
|
|
2476
|
+
/** Represents a Contact. */
|
|
2477
|
+
class Contact implements IContact {
|
|
2478
|
+
|
|
2479
|
+
/**
|
|
2480
|
+
* Constructs a new Contact.
|
|
2481
|
+
* @param [properties] Properties to set
|
|
2482
|
+
*/
|
|
2483
|
+
constructor(properties?: signalservice.ConfigurationMessage.IContact);
|
|
2484
|
+
|
|
2485
|
+
/** Contact publicKey. */
|
|
2486
|
+
public publicKey: Uint8Array;
|
|
2487
|
+
|
|
2488
|
+
/** Contact name. */
|
|
2489
|
+
public name: string;
|
|
2490
|
+
|
|
2491
|
+
/** Contact profilePicture. */
|
|
2492
|
+
public profilePicture: string;
|
|
2493
|
+
|
|
2494
|
+
/** Contact profileKey. */
|
|
2495
|
+
public profileKey: Uint8Array;
|
|
2496
|
+
|
|
2497
|
+
/** Contact isApproved. */
|
|
2498
|
+
public isApproved: boolean;
|
|
2499
|
+
|
|
2500
|
+
/** Contact isBlocked. */
|
|
2501
|
+
public isBlocked: boolean;
|
|
2502
|
+
|
|
2503
|
+
/** Contact didApproveMe. */
|
|
2504
|
+
public didApproveMe: boolean;
|
|
2505
|
+
|
|
2506
|
+
/**
|
|
2507
|
+
* Creates a new Contact instance using the specified properties.
|
|
2508
|
+
* @param [properties] Properties to set
|
|
2509
|
+
* @returns Contact instance
|
|
2510
|
+
*/
|
|
2511
|
+
public static create(properties?: signalservice.ConfigurationMessage.IContact): signalservice.ConfigurationMessage.Contact;
|
|
2512
|
+
|
|
2513
|
+
/**
|
|
2514
|
+
* Encodes the specified Contact message. Does not implicitly {@link signalservice.ConfigurationMessage.Contact.verify|verify} messages.
|
|
2515
|
+
* @param message Contact message or plain object to encode
|
|
2516
|
+
* @param [writer] Writer to encode to
|
|
2517
|
+
* @returns Writer
|
|
2518
|
+
*/
|
|
2519
|
+
public static encode(message: signalservice.ConfigurationMessage.IContact, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
2520
|
+
|
|
2521
|
+
/**
|
|
2522
|
+
* Encodes the specified Contact message, length delimited. Does not implicitly {@link signalservice.ConfigurationMessage.Contact.verify|verify} messages.
|
|
2523
|
+
* @param message Contact message or plain object to encode
|
|
2524
|
+
* @param [writer] Writer to encode to
|
|
2525
|
+
* @returns Writer
|
|
2526
|
+
*/
|
|
2527
|
+
public static encodeDelimited(message: signalservice.ConfigurationMessage.IContact, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
2528
|
+
|
|
2529
|
+
/**
|
|
2530
|
+
* Decodes a Contact message from the specified reader or buffer.
|
|
2531
|
+
* @param reader Reader or buffer to decode from
|
|
2532
|
+
* @param [length] Message length if known beforehand
|
|
2533
|
+
* @returns Contact
|
|
2534
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2535
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2536
|
+
*/
|
|
2537
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): signalservice.ConfigurationMessage.Contact;
|
|
2538
|
+
|
|
2539
|
+
/**
|
|
2540
|
+
* Decodes a Contact message from the specified reader or buffer, length delimited.
|
|
2541
|
+
* @param reader Reader or buffer to decode from
|
|
2542
|
+
* @returns Contact
|
|
2543
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2544
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2545
|
+
*/
|
|
2546
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): signalservice.ConfigurationMessage.Contact;
|
|
2547
|
+
|
|
2548
|
+
/**
|
|
2549
|
+
* Verifies a Contact message.
|
|
2550
|
+
* @param message Plain object to verify
|
|
2551
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
2552
|
+
*/
|
|
2553
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
2554
|
+
|
|
2555
|
+
/**
|
|
2556
|
+
* Creates a Contact message from a plain object. Also converts values to their respective internal types.
|
|
2557
|
+
* @param object Plain object
|
|
2558
|
+
* @returns Contact
|
|
2559
|
+
*/
|
|
2560
|
+
public static fromObject(object: { [k: string]: any }): signalservice.ConfigurationMessage.Contact;
|
|
2561
|
+
|
|
2562
|
+
/**
|
|
2563
|
+
* Creates a plain object from a Contact message. Also converts values to other types if specified.
|
|
2564
|
+
* @param message Contact
|
|
2565
|
+
* @param [options] Conversion options
|
|
2566
|
+
* @returns Plain object
|
|
2567
|
+
*/
|
|
2568
|
+
public static toObject(message: signalservice.ConfigurationMessage.Contact, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
2569
|
+
|
|
2570
|
+
/**
|
|
2571
|
+
* Converts this Contact to JSON.
|
|
2572
|
+
* @returns JSON object
|
|
2573
|
+
*/
|
|
2574
|
+
public toJSON(): { [k: string]: any };
|
|
2575
|
+
|
|
2576
|
+
/**
|
|
2577
|
+
* Gets the default type url for Contact
|
|
2578
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
2579
|
+
* @returns The default type url
|
|
2580
|
+
*/
|
|
2581
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
2582
|
+
}
|
|
2583
|
+
}
|
|
2584
|
+
|
|
2585
|
+
/** Properties of a ReceiptMessage. */
|
|
2586
|
+
interface IReceiptMessage {
|
|
2587
|
+
|
|
2588
|
+
/** ReceiptMessage type */
|
|
2589
|
+
type: signalservice.ReceiptMessage.Type;
|
|
2590
|
+
|
|
2591
|
+
/** ReceiptMessage timestamp */
|
|
2592
|
+
timestamp?: ((number|Long)[]|null);
|
|
2593
|
+
}
|
|
2594
|
+
|
|
2595
|
+
/** Represents a ReceiptMessage. */
|
|
2596
|
+
class ReceiptMessage implements IReceiptMessage {
|
|
2597
|
+
|
|
2598
|
+
/**
|
|
2599
|
+
* Constructs a new ReceiptMessage.
|
|
2600
|
+
* @param [properties] Properties to set
|
|
2601
|
+
*/
|
|
2602
|
+
constructor(properties?: signalservice.IReceiptMessage);
|
|
2603
|
+
|
|
2604
|
+
/** ReceiptMessage type. */
|
|
2605
|
+
public type: signalservice.ReceiptMessage.Type;
|
|
2606
|
+
|
|
2607
|
+
/** ReceiptMessage timestamp. */
|
|
2608
|
+
public timestamp: (number|Long)[];
|
|
2609
|
+
|
|
2610
|
+
/**
|
|
2611
|
+
* Creates a new ReceiptMessage instance using the specified properties.
|
|
2612
|
+
* @param [properties] Properties to set
|
|
2613
|
+
* @returns ReceiptMessage instance
|
|
2614
|
+
*/
|
|
2615
|
+
public static create(properties?: signalservice.IReceiptMessage): signalservice.ReceiptMessage;
|
|
2616
|
+
|
|
2617
|
+
/**
|
|
2618
|
+
* Encodes the specified ReceiptMessage message. Does not implicitly {@link signalservice.ReceiptMessage.verify|verify} messages.
|
|
2619
|
+
* @param message ReceiptMessage message or plain object to encode
|
|
2620
|
+
* @param [writer] Writer to encode to
|
|
2621
|
+
* @returns Writer
|
|
2622
|
+
*/
|
|
2623
|
+
public static encode(message: signalservice.IReceiptMessage, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
2624
|
+
|
|
2625
|
+
/**
|
|
2626
|
+
* Encodes the specified ReceiptMessage message, length delimited. Does not implicitly {@link signalservice.ReceiptMessage.verify|verify} messages.
|
|
2627
|
+
* @param message ReceiptMessage message or plain object to encode
|
|
2628
|
+
* @param [writer] Writer to encode to
|
|
2629
|
+
* @returns Writer
|
|
2630
|
+
*/
|
|
2631
|
+
public static encodeDelimited(message: signalservice.IReceiptMessage, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
2632
|
+
|
|
2633
|
+
/**
|
|
2634
|
+
* Decodes a ReceiptMessage message from the specified reader or buffer.
|
|
2635
|
+
* @param reader Reader or buffer to decode from
|
|
2636
|
+
* @param [length] Message length if known beforehand
|
|
2637
|
+
* @returns ReceiptMessage
|
|
2638
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2639
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2640
|
+
*/
|
|
2641
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): signalservice.ReceiptMessage;
|
|
2642
|
+
|
|
2643
|
+
/**
|
|
2644
|
+
* Decodes a ReceiptMessage message from the specified reader or buffer, length delimited.
|
|
2645
|
+
* @param reader Reader or buffer to decode from
|
|
2646
|
+
* @returns ReceiptMessage
|
|
2647
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2648
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2649
|
+
*/
|
|
2650
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): signalservice.ReceiptMessage;
|
|
2651
|
+
|
|
2652
|
+
/**
|
|
2653
|
+
* Verifies a ReceiptMessage message.
|
|
2654
|
+
* @param message Plain object to verify
|
|
2655
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
2656
|
+
*/
|
|
2657
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
2658
|
+
|
|
2659
|
+
/**
|
|
2660
|
+
* Creates a ReceiptMessage message from a plain object. Also converts values to their respective internal types.
|
|
2661
|
+
* @param object Plain object
|
|
2662
|
+
* @returns ReceiptMessage
|
|
2663
|
+
*/
|
|
2664
|
+
public static fromObject(object: { [k: string]: any }): signalservice.ReceiptMessage;
|
|
2665
|
+
|
|
2666
|
+
/**
|
|
2667
|
+
* Creates a plain object from a ReceiptMessage message. Also converts values to other types if specified.
|
|
2668
|
+
* @param message ReceiptMessage
|
|
2669
|
+
* @param [options] Conversion options
|
|
2670
|
+
* @returns Plain object
|
|
2671
|
+
*/
|
|
2672
|
+
public static toObject(message: signalservice.ReceiptMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
2673
|
+
|
|
2674
|
+
/**
|
|
2675
|
+
* Converts this ReceiptMessage to JSON.
|
|
2676
|
+
* @returns JSON object
|
|
2677
|
+
*/
|
|
2678
|
+
public toJSON(): { [k: string]: any };
|
|
2679
|
+
|
|
2680
|
+
/**
|
|
2681
|
+
* Gets the default type url for ReceiptMessage
|
|
2682
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
2683
|
+
* @returns The default type url
|
|
2684
|
+
*/
|
|
2685
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
2686
|
+
}
|
|
2687
|
+
|
|
2688
|
+
namespace ReceiptMessage {
|
|
2689
|
+
|
|
2690
|
+
/** Type enum. */
|
|
2691
|
+
enum Type {
|
|
2692
|
+
READ = 1
|
|
2693
|
+
}
|
|
2694
|
+
}
|
|
2695
|
+
|
|
2696
|
+
/** Properties of an AttachmentPointer. */
|
|
2697
|
+
interface IAttachmentPointer {
|
|
2698
|
+
|
|
2699
|
+
/** AttachmentPointer id */
|
|
2700
|
+
id: (number|Long);
|
|
2701
|
+
|
|
2702
|
+
/** AttachmentPointer contentType */
|
|
2703
|
+
contentType?: (string|null);
|
|
2704
|
+
|
|
2705
|
+
/** AttachmentPointer key */
|
|
2706
|
+
key?: (Uint8Array|null);
|
|
2707
|
+
|
|
2708
|
+
/** AttachmentPointer size */
|
|
2709
|
+
size?: (number|null);
|
|
2710
|
+
|
|
2711
|
+
/** AttachmentPointer digest */
|
|
2712
|
+
digest?: (Uint8Array|null);
|
|
2713
|
+
|
|
2714
|
+
/** AttachmentPointer fileName */
|
|
2715
|
+
fileName?: (string|null);
|
|
2716
|
+
|
|
2717
|
+
/** AttachmentPointer flags */
|
|
2718
|
+
flags?: (number|null);
|
|
2719
|
+
|
|
2720
|
+
/** AttachmentPointer width */
|
|
2721
|
+
width?: (number|null);
|
|
2722
|
+
|
|
2723
|
+
/** AttachmentPointer height */
|
|
2724
|
+
height?: (number|null);
|
|
2725
|
+
|
|
2726
|
+
/** AttachmentPointer caption */
|
|
2727
|
+
caption?: (string|null);
|
|
2728
|
+
|
|
2729
|
+
/** AttachmentPointer url */
|
|
2730
|
+
url?: (string|null);
|
|
2731
|
+
}
|
|
2732
|
+
|
|
2733
|
+
/** Represents an AttachmentPointer. */
|
|
2734
|
+
class AttachmentPointer implements IAttachmentPointer {
|
|
2735
|
+
|
|
2736
|
+
/**
|
|
2737
|
+
* Constructs a new AttachmentPointer.
|
|
2738
|
+
* @param [properties] Properties to set
|
|
2739
|
+
*/
|
|
2740
|
+
constructor(properties?: signalservice.IAttachmentPointer);
|
|
2741
|
+
|
|
2742
|
+
/** AttachmentPointer id. */
|
|
2743
|
+
public id: (number|Long);
|
|
2744
|
+
|
|
2745
|
+
/** AttachmentPointer contentType. */
|
|
2746
|
+
public contentType: string;
|
|
2747
|
+
|
|
2748
|
+
/** AttachmentPointer key. */
|
|
2749
|
+
public key: Uint8Array;
|
|
2750
|
+
|
|
2751
|
+
/** AttachmentPointer size. */
|
|
2752
|
+
public size: number;
|
|
2753
|
+
|
|
2754
|
+
/** AttachmentPointer digest. */
|
|
2755
|
+
public digest: Uint8Array;
|
|
2756
|
+
|
|
2757
|
+
/** AttachmentPointer fileName. */
|
|
2758
|
+
public fileName: string;
|
|
2759
|
+
|
|
2760
|
+
/** AttachmentPointer flags. */
|
|
2761
|
+
public flags: number;
|
|
2762
|
+
|
|
2763
|
+
/** AttachmentPointer width. */
|
|
2764
|
+
public width: number;
|
|
2765
|
+
|
|
2766
|
+
/** AttachmentPointer height. */
|
|
2767
|
+
public height: number;
|
|
2768
|
+
|
|
2769
|
+
/** AttachmentPointer caption. */
|
|
2770
|
+
public caption: string;
|
|
2771
|
+
|
|
2772
|
+
/** AttachmentPointer url. */
|
|
2773
|
+
public url: string;
|
|
2774
|
+
|
|
2775
|
+
/**
|
|
2776
|
+
* Creates a new AttachmentPointer instance using the specified properties.
|
|
2777
|
+
* @param [properties] Properties to set
|
|
2778
|
+
* @returns AttachmentPointer instance
|
|
2779
|
+
*/
|
|
2780
|
+
public static create(properties?: signalservice.IAttachmentPointer): signalservice.AttachmentPointer;
|
|
2781
|
+
|
|
2782
|
+
/**
|
|
2783
|
+
* Encodes the specified AttachmentPointer message. Does not implicitly {@link signalservice.AttachmentPointer.verify|verify} messages.
|
|
2784
|
+
* @param message AttachmentPointer message or plain object to encode
|
|
2785
|
+
* @param [writer] Writer to encode to
|
|
2786
|
+
* @returns Writer
|
|
2787
|
+
*/
|
|
2788
|
+
public static encode(message: signalservice.IAttachmentPointer, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
2789
|
+
|
|
2790
|
+
/**
|
|
2791
|
+
* Encodes the specified AttachmentPointer message, length delimited. Does not implicitly {@link signalservice.AttachmentPointer.verify|verify} messages.
|
|
2792
|
+
* @param message AttachmentPointer message or plain object to encode
|
|
2793
|
+
* @param [writer] Writer to encode to
|
|
2794
|
+
* @returns Writer
|
|
2795
|
+
*/
|
|
2796
|
+
public static encodeDelimited(message: signalservice.IAttachmentPointer, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
2797
|
+
|
|
2798
|
+
/**
|
|
2799
|
+
* Decodes an AttachmentPointer message from the specified reader or buffer.
|
|
2800
|
+
* @param reader Reader or buffer to decode from
|
|
2801
|
+
* @param [length] Message length if known beforehand
|
|
2802
|
+
* @returns AttachmentPointer
|
|
2803
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2804
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2805
|
+
*/
|
|
2806
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): signalservice.AttachmentPointer;
|
|
2807
|
+
|
|
2808
|
+
/**
|
|
2809
|
+
* Decodes an AttachmentPointer message from the specified reader or buffer, length delimited.
|
|
2810
|
+
* @param reader Reader or buffer to decode from
|
|
2811
|
+
* @returns AttachmentPointer
|
|
2812
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2813
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2814
|
+
*/
|
|
2815
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): signalservice.AttachmentPointer;
|
|
2816
|
+
|
|
2817
|
+
/**
|
|
2818
|
+
* Verifies an AttachmentPointer message.
|
|
2819
|
+
* @param message Plain object to verify
|
|
2820
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
2821
|
+
*/
|
|
2822
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
2823
|
+
|
|
2824
|
+
/**
|
|
2825
|
+
* Creates an AttachmentPointer message from a plain object. Also converts values to their respective internal types.
|
|
2826
|
+
* @param object Plain object
|
|
2827
|
+
* @returns AttachmentPointer
|
|
2828
|
+
*/
|
|
2829
|
+
public static fromObject(object: { [k: string]: any }): signalservice.AttachmentPointer;
|
|
2830
|
+
|
|
2831
|
+
/**
|
|
2832
|
+
* Creates a plain object from an AttachmentPointer message. Also converts values to other types if specified.
|
|
2833
|
+
* @param message AttachmentPointer
|
|
2834
|
+
* @param [options] Conversion options
|
|
2835
|
+
* @returns Plain object
|
|
2836
|
+
*/
|
|
2837
|
+
public static toObject(message: signalservice.AttachmentPointer, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
2838
|
+
|
|
2839
|
+
/**
|
|
2840
|
+
* Converts this AttachmentPointer to JSON.
|
|
2841
|
+
* @returns JSON object
|
|
2842
|
+
*/
|
|
2843
|
+
public toJSON(): { [k: string]: any };
|
|
2844
|
+
|
|
2845
|
+
/**
|
|
2846
|
+
* Gets the default type url for AttachmentPointer
|
|
2847
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
2848
|
+
* @returns The default type url
|
|
2849
|
+
*/
|
|
2850
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
2851
|
+
}
|
|
2852
|
+
|
|
2853
|
+
namespace AttachmentPointer {
|
|
2854
|
+
|
|
2855
|
+
/** Flags enum. */
|
|
2856
|
+
enum Flags {
|
|
2857
|
+
VOICE_MESSAGE = 1
|
|
2858
|
+
}
|
|
2859
|
+
}
|
|
2860
|
+
|
|
2861
|
+
/** Properties of a GroupContext. */
|
|
2862
|
+
interface IGroupContext {
|
|
2863
|
+
|
|
2864
|
+
/** GroupContext id */
|
|
2865
|
+
id?: (Uint8Array|null);
|
|
2866
|
+
|
|
2867
|
+
/** GroupContext type */
|
|
2868
|
+
type?: (signalservice.GroupContext.Type|null);
|
|
2869
|
+
|
|
2870
|
+
/** GroupContext name */
|
|
2871
|
+
name?: (string|null);
|
|
2872
|
+
|
|
2873
|
+
/** GroupContext members */
|
|
2874
|
+
members?: (string[]|null);
|
|
2875
|
+
|
|
2876
|
+
/** GroupContext avatar */
|
|
2877
|
+
avatar?: (signalservice.IAttachmentPointer|null);
|
|
2878
|
+
|
|
2879
|
+
/** GroupContext admins */
|
|
2880
|
+
admins?: (string[]|null);
|
|
2881
|
+
}
|
|
2882
|
+
|
|
2883
|
+
/** Represents a GroupContext. */
|
|
2884
|
+
class GroupContext implements IGroupContext {
|
|
2885
|
+
|
|
2886
|
+
/**
|
|
2887
|
+
* Constructs a new GroupContext.
|
|
2888
|
+
* @param [properties] Properties to set
|
|
2889
|
+
*/
|
|
2890
|
+
constructor(properties?: signalservice.IGroupContext);
|
|
2891
|
+
|
|
2892
|
+
/** GroupContext id. */
|
|
2893
|
+
public id: Uint8Array;
|
|
2894
|
+
|
|
2895
|
+
/** GroupContext type. */
|
|
2896
|
+
public type: signalservice.GroupContext.Type;
|
|
2897
|
+
|
|
2898
|
+
/** GroupContext name. */
|
|
2899
|
+
public name: string;
|
|
2900
|
+
|
|
2901
|
+
/** GroupContext members. */
|
|
2902
|
+
public members: string[];
|
|
2903
|
+
|
|
2904
|
+
/** GroupContext avatar. */
|
|
2905
|
+
public avatar?: (signalservice.IAttachmentPointer|null);
|
|
2906
|
+
|
|
2907
|
+
/** GroupContext admins. */
|
|
2908
|
+
public admins: string[];
|
|
2909
|
+
|
|
2910
|
+
/**
|
|
2911
|
+
* Creates a new GroupContext instance using the specified properties.
|
|
2912
|
+
* @param [properties] Properties to set
|
|
2913
|
+
* @returns GroupContext instance
|
|
2914
|
+
*/
|
|
2915
|
+
public static create(properties?: signalservice.IGroupContext): signalservice.GroupContext;
|
|
2916
|
+
|
|
2917
|
+
/**
|
|
2918
|
+
* Encodes the specified GroupContext message. Does not implicitly {@link signalservice.GroupContext.verify|verify} messages.
|
|
2919
|
+
* @param message GroupContext message or plain object to encode
|
|
2920
|
+
* @param [writer] Writer to encode to
|
|
2921
|
+
* @returns Writer
|
|
2922
|
+
*/
|
|
2923
|
+
public static encode(message: signalservice.IGroupContext, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
2924
|
+
|
|
2925
|
+
/**
|
|
2926
|
+
* Encodes the specified GroupContext message, length delimited. Does not implicitly {@link signalservice.GroupContext.verify|verify} messages.
|
|
2927
|
+
* @param message GroupContext message or plain object to encode
|
|
2928
|
+
* @param [writer] Writer to encode to
|
|
2929
|
+
* @returns Writer
|
|
2930
|
+
*/
|
|
2931
|
+
public static encodeDelimited(message: signalservice.IGroupContext, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
2932
|
+
|
|
2933
|
+
/**
|
|
2934
|
+
* Decodes a GroupContext message from the specified reader or buffer.
|
|
2935
|
+
* @param reader Reader or buffer to decode from
|
|
2936
|
+
* @param [length] Message length if known beforehand
|
|
2937
|
+
* @returns GroupContext
|
|
2938
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2939
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2940
|
+
*/
|
|
2941
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): signalservice.GroupContext;
|
|
2942
|
+
|
|
2943
|
+
/**
|
|
2944
|
+
* Decodes a GroupContext message from the specified reader or buffer, length delimited.
|
|
2945
|
+
* @param reader Reader or buffer to decode from
|
|
2946
|
+
* @returns GroupContext
|
|
2947
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2948
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2949
|
+
*/
|
|
2950
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): signalservice.GroupContext;
|
|
2951
|
+
|
|
2952
|
+
/**
|
|
2953
|
+
* Verifies a GroupContext message.
|
|
2954
|
+
* @param message Plain object to verify
|
|
2955
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
2956
|
+
*/
|
|
2957
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
2958
|
+
|
|
2959
|
+
/**
|
|
2960
|
+
* Creates a GroupContext message from a plain object. Also converts values to their respective internal types.
|
|
2961
|
+
* @param object Plain object
|
|
2962
|
+
* @returns GroupContext
|
|
2963
|
+
*/
|
|
2964
|
+
public static fromObject(object: { [k: string]: any }): signalservice.GroupContext;
|
|
2965
|
+
|
|
2966
|
+
/**
|
|
2967
|
+
* Creates a plain object from a GroupContext message. Also converts values to other types if specified.
|
|
2968
|
+
* @param message GroupContext
|
|
2969
|
+
* @param [options] Conversion options
|
|
2970
|
+
* @returns Plain object
|
|
2971
|
+
*/
|
|
2972
|
+
public static toObject(message: signalservice.GroupContext, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
2973
|
+
|
|
2974
|
+
/**
|
|
2975
|
+
* Converts this GroupContext to JSON.
|
|
2976
|
+
* @returns JSON object
|
|
2977
|
+
*/
|
|
2978
|
+
public toJSON(): { [k: string]: any };
|
|
2979
|
+
|
|
2980
|
+
/**
|
|
2981
|
+
* Gets the default type url for GroupContext
|
|
2982
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
2983
|
+
* @returns The default type url
|
|
2984
|
+
*/
|
|
2985
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
2986
|
+
}
|
|
2987
|
+
|
|
2988
|
+
namespace GroupContext {
|
|
2989
|
+
|
|
2990
|
+
/** Type enum. */
|
|
2991
|
+
enum Type {
|
|
2992
|
+
UNKNOWN = 0,
|
|
2993
|
+
UPDATE = 1,
|
|
2994
|
+
DELIVER = 2,
|
|
2995
|
+
QUIT = 3,
|
|
2996
|
+
REQUEST_INFO = 4
|
|
2997
|
+
}
|
|
2998
|
+
}
|
|
2999
|
+
|
|
3000
|
+
/** Properties of a WebSocketRequestMessage. */
|
|
3001
|
+
interface IWebSocketRequestMessage {
|
|
3002
|
+
|
|
3003
|
+
/** WebSocketRequestMessage verb */
|
|
3004
|
+
verb?: (string|null);
|
|
3005
|
+
|
|
3006
|
+
/** WebSocketRequestMessage path */
|
|
3007
|
+
path?: (string|null);
|
|
3008
|
+
|
|
3009
|
+
/** WebSocketRequestMessage body */
|
|
3010
|
+
body?: (Uint8Array|null);
|
|
3011
|
+
|
|
3012
|
+
/** WebSocketRequestMessage headers */
|
|
3013
|
+
headers?: (string[]|null);
|
|
3014
|
+
|
|
3015
|
+
/** WebSocketRequestMessage id */
|
|
3016
|
+
id?: (number|Long|null);
|
|
3017
|
+
}
|
|
3018
|
+
|
|
3019
|
+
/** Represents a WebSocketRequestMessage. */
|
|
3020
|
+
class WebSocketRequestMessage implements IWebSocketRequestMessage {
|
|
3021
|
+
|
|
3022
|
+
/**
|
|
3023
|
+
* Constructs a new WebSocketRequestMessage.
|
|
3024
|
+
* @param [properties] Properties to set
|
|
3025
|
+
*/
|
|
3026
|
+
constructor(properties?: signalservice.IWebSocketRequestMessage);
|
|
3027
|
+
|
|
3028
|
+
/** WebSocketRequestMessage verb. */
|
|
3029
|
+
public verb: string;
|
|
3030
|
+
|
|
3031
|
+
/** WebSocketRequestMessage path. */
|
|
3032
|
+
public path: string;
|
|
3033
|
+
|
|
3034
|
+
/** WebSocketRequestMessage body. */
|
|
3035
|
+
public body: Uint8Array;
|
|
3036
|
+
|
|
3037
|
+
/** WebSocketRequestMessage headers. */
|
|
3038
|
+
public headers: string[];
|
|
3039
|
+
|
|
3040
|
+
/** WebSocketRequestMessage id. */
|
|
3041
|
+
public id: (number|Long);
|
|
3042
|
+
|
|
3043
|
+
/**
|
|
3044
|
+
* Creates a new WebSocketRequestMessage instance using the specified properties.
|
|
3045
|
+
* @param [properties] Properties to set
|
|
3046
|
+
* @returns WebSocketRequestMessage instance
|
|
3047
|
+
*/
|
|
3048
|
+
public static create(properties?: signalservice.IWebSocketRequestMessage): signalservice.WebSocketRequestMessage;
|
|
3049
|
+
|
|
3050
|
+
/**
|
|
3051
|
+
* Encodes the specified WebSocketRequestMessage message. Does not implicitly {@link signalservice.WebSocketRequestMessage.verify|verify} messages.
|
|
3052
|
+
* @param message WebSocketRequestMessage message or plain object to encode
|
|
3053
|
+
* @param [writer] Writer to encode to
|
|
3054
|
+
* @returns Writer
|
|
3055
|
+
*/
|
|
3056
|
+
public static encode(message: signalservice.IWebSocketRequestMessage, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
3057
|
+
|
|
3058
|
+
/**
|
|
3059
|
+
* Encodes the specified WebSocketRequestMessage message, length delimited. Does not implicitly {@link signalservice.WebSocketRequestMessage.verify|verify} messages.
|
|
3060
|
+
* @param message WebSocketRequestMessage message or plain object to encode
|
|
3061
|
+
* @param [writer] Writer to encode to
|
|
3062
|
+
* @returns Writer
|
|
3063
|
+
*/
|
|
3064
|
+
public static encodeDelimited(message: signalservice.IWebSocketRequestMessage, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
3065
|
+
|
|
3066
|
+
/**
|
|
3067
|
+
* Decodes a WebSocketRequestMessage message from the specified reader or buffer.
|
|
3068
|
+
* @param reader Reader or buffer to decode from
|
|
3069
|
+
* @param [length] Message length if known beforehand
|
|
3070
|
+
* @returns WebSocketRequestMessage
|
|
3071
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3072
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3073
|
+
*/
|
|
3074
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): signalservice.WebSocketRequestMessage;
|
|
3075
|
+
|
|
3076
|
+
/**
|
|
3077
|
+
* Decodes a WebSocketRequestMessage message from the specified reader or buffer, length delimited.
|
|
3078
|
+
* @param reader Reader or buffer to decode from
|
|
3079
|
+
* @returns WebSocketRequestMessage
|
|
3080
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3081
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3082
|
+
*/
|
|
3083
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): signalservice.WebSocketRequestMessage;
|
|
3084
|
+
|
|
3085
|
+
/**
|
|
3086
|
+
* Verifies a WebSocketRequestMessage message.
|
|
3087
|
+
* @param message Plain object to verify
|
|
3088
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
3089
|
+
*/
|
|
3090
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
3091
|
+
|
|
3092
|
+
/**
|
|
3093
|
+
* Creates a WebSocketRequestMessage message from a plain object. Also converts values to their respective internal types.
|
|
3094
|
+
* @param object Plain object
|
|
3095
|
+
* @returns WebSocketRequestMessage
|
|
3096
|
+
*/
|
|
3097
|
+
public static fromObject(object: { [k: string]: any }): signalservice.WebSocketRequestMessage;
|
|
3098
|
+
|
|
3099
|
+
/**
|
|
3100
|
+
* Creates a plain object from a WebSocketRequestMessage message. Also converts values to other types if specified.
|
|
3101
|
+
* @param message WebSocketRequestMessage
|
|
3102
|
+
* @param [options] Conversion options
|
|
3103
|
+
* @returns Plain object
|
|
3104
|
+
*/
|
|
3105
|
+
public static toObject(message: signalservice.WebSocketRequestMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
3106
|
+
|
|
3107
|
+
/**
|
|
3108
|
+
* Converts this WebSocketRequestMessage to JSON.
|
|
3109
|
+
* @returns JSON object
|
|
3110
|
+
*/
|
|
3111
|
+
public toJSON(): { [k: string]: any };
|
|
3112
|
+
|
|
3113
|
+
/**
|
|
3114
|
+
* Gets the default type url for WebSocketRequestMessage
|
|
3115
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
3116
|
+
* @returns The default type url
|
|
3117
|
+
*/
|
|
3118
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
3119
|
+
}
|
|
3120
|
+
|
|
3121
|
+
/** Properties of a WebSocketMessage. */
|
|
3122
|
+
interface IWebSocketMessage {
|
|
3123
|
+
|
|
3124
|
+
/** WebSocketMessage type */
|
|
3125
|
+
type?: (signalservice.WebSocketMessage.Type|null);
|
|
3126
|
+
|
|
3127
|
+
/** WebSocketMessage request */
|
|
3128
|
+
request?: (signalservice.IWebSocketRequestMessage|null);
|
|
3129
|
+
}
|
|
3130
|
+
|
|
3131
|
+
/** Represents a WebSocketMessage. */
|
|
3132
|
+
class WebSocketMessage implements IWebSocketMessage {
|
|
3133
|
+
|
|
3134
|
+
/**
|
|
3135
|
+
* Constructs a new WebSocketMessage.
|
|
3136
|
+
* @param [properties] Properties to set
|
|
3137
|
+
*/
|
|
3138
|
+
constructor(properties?: signalservice.IWebSocketMessage);
|
|
3139
|
+
|
|
3140
|
+
/** WebSocketMessage type. */
|
|
3141
|
+
public type: signalservice.WebSocketMessage.Type;
|
|
3142
|
+
|
|
3143
|
+
/** WebSocketMessage request. */
|
|
3144
|
+
public request?: (signalservice.IWebSocketRequestMessage|null);
|
|
3145
|
+
|
|
3146
|
+
/**
|
|
3147
|
+
* Creates a new WebSocketMessage instance using the specified properties.
|
|
3148
|
+
* @param [properties] Properties to set
|
|
3149
|
+
* @returns WebSocketMessage instance
|
|
3150
|
+
*/
|
|
3151
|
+
public static create(properties?: signalservice.IWebSocketMessage): signalservice.WebSocketMessage;
|
|
3152
|
+
|
|
3153
|
+
/**
|
|
3154
|
+
* Encodes the specified WebSocketMessage message. Does not implicitly {@link signalservice.WebSocketMessage.verify|verify} messages.
|
|
3155
|
+
* @param message WebSocketMessage message or plain object to encode
|
|
3156
|
+
* @param [writer] Writer to encode to
|
|
3157
|
+
* @returns Writer
|
|
3158
|
+
*/
|
|
3159
|
+
public static encode(message: signalservice.IWebSocketMessage, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
3160
|
+
|
|
3161
|
+
/**
|
|
3162
|
+
* Encodes the specified WebSocketMessage message, length delimited. Does not implicitly {@link signalservice.WebSocketMessage.verify|verify} messages.
|
|
3163
|
+
* @param message WebSocketMessage message or plain object to encode
|
|
3164
|
+
* @param [writer] Writer to encode to
|
|
3165
|
+
* @returns Writer
|
|
3166
|
+
*/
|
|
3167
|
+
public static encodeDelimited(message: signalservice.IWebSocketMessage, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
3168
|
+
|
|
3169
|
+
/**
|
|
3170
|
+
* Decodes a WebSocketMessage message from the specified reader or buffer.
|
|
3171
|
+
* @param reader Reader or buffer to decode from
|
|
3172
|
+
* @param [length] Message length if known beforehand
|
|
3173
|
+
* @returns WebSocketMessage
|
|
3174
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3175
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3176
|
+
*/
|
|
3177
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): signalservice.WebSocketMessage;
|
|
3178
|
+
|
|
3179
|
+
/**
|
|
3180
|
+
* Decodes a WebSocketMessage message from the specified reader or buffer, length delimited.
|
|
3181
|
+
* @param reader Reader or buffer to decode from
|
|
3182
|
+
* @returns WebSocketMessage
|
|
3183
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3184
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3185
|
+
*/
|
|
3186
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): signalservice.WebSocketMessage;
|
|
3187
|
+
|
|
3188
|
+
/**
|
|
3189
|
+
* Verifies a WebSocketMessage message.
|
|
3190
|
+
* @param message Plain object to verify
|
|
3191
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
3192
|
+
*/
|
|
3193
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
3194
|
+
|
|
3195
|
+
/**
|
|
3196
|
+
* Creates a WebSocketMessage message from a plain object. Also converts values to their respective internal types.
|
|
3197
|
+
* @param object Plain object
|
|
3198
|
+
* @returns WebSocketMessage
|
|
3199
|
+
*/
|
|
3200
|
+
public static fromObject(object: { [k: string]: any }): signalservice.WebSocketMessage;
|
|
3201
|
+
|
|
3202
|
+
/**
|
|
3203
|
+
* Creates a plain object from a WebSocketMessage message. Also converts values to other types if specified.
|
|
3204
|
+
* @param message WebSocketMessage
|
|
3205
|
+
* @param [options] Conversion options
|
|
3206
|
+
* @returns Plain object
|
|
3207
|
+
*/
|
|
3208
|
+
public static toObject(message: signalservice.WebSocketMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
3209
|
+
|
|
3210
|
+
/**
|
|
3211
|
+
* Converts this WebSocketMessage to JSON.
|
|
3212
|
+
* @returns JSON object
|
|
3213
|
+
*/
|
|
3214
|
+
public toJSON(): { [k: string]: any };
|
|
3215
|
+
|
|
3216
|
+
/**
|
|
3217
|
+
* Gets the default type url for WebSocketMessage
|
|
3218
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
3219
|
+
* @returns The default type url
|
|
3220
|
+
*/
|
|
3221
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
3222
|
+
}
|
|
3223
|
+
|
|
3224
|
+
namespace WebSocketMessage {
|
|
3225
|
+
|
|
3226
|
+
/** Type enum. */
|
|
3227
|
+
enum Type {
|
|
3228
|
+
UNKNOWN = 0,
|
|
3229
|
+
REQUEST = 1,
|
|
3230
|
+
RESPONSE = 2
|
|
3231
|
+
}
|
|
3232
|
+
}
|
|
3233
|
+
}
|