larksr_websdk 3.2.12 → 3.2.16

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.
@@ -1,528 +0,0 @@
1
- import * as $protobuf from "protobufjs";
2
- /** Namespace pxyproto. */
3
- export namespace pxyproto {
4
-
5
- /** CONTROL_MSG_TYPE enum. */
6
- enum CONTROL_MSG_TYPE {
7
- MSG_HELLO = 0,
8
- MSG_PING = 1,
9
- MSG_PONG = 2
10
- }
11
-
12
- /** Properties of a ControlMessage. */
13
- interface IControlMessage {
14
-
15
- /** ControlMessage type */
16
- type?: (pxyproto.CONTROL_MSG_TYPE|null);
17
- }
18
-
19
- /** Represents a ControlMessage. */
20
- class ControlMessage implements IControlMessage {
21
-
22
- /**
23
- * Constructs a new ControlMessage.
24
- * @param [properties] Properties to set
25
- */
26
- constructor(properties?: pxyproto.IControlMessage);
27
-
28
- /** ControlMessage type. */
29
- public type: pxyproto.CONTROL_MSG_TYPE;
30
-
31
- /**
32
- * Creates a new ControlMessage instance using the specified properties.
33
- * @param [properties] Properties to set
34
- * @returns ControlMessage instance
35
- */
36
- public static create(properties?: pxyproto.IControlMessage): pxyproto.ControlMessage;
37
-
38
- /**
39
- * Encodes the specified ControlMessage message. Does not implicitly {@link pxyproto.ControlMessage.verify|verify} messages.
40
- * @param message ControlMessage message or plain object to encode
41
- * @param [writer] Writer to encode to
42
- * @returns Writer
43
- */
44
- public static encode(message: pxyproto.IControlMessage, writer?: $protobuf.Writer): $protobuf.Writer;
45
-
46
- /**
47
- * Encodes the specified ControlMessage message, length delimited. Does not implicitly {@link pxyproto.ControlMessage.verify|verify} messages.
48
- * @param message ControlMessage message or plain object to encode
49
- * @param [writer] Writer to encode to
50
- * @returns Writer
51
- */
52
- public static encodeDelimited(message: pxyproto.IControlMessage, writer?: $protobuf.Writer): $protobuf.Writer;
53
-
54
- /**
55
- * Decodes a ControlMessage message from the specified reader or buffer.
56
- * @param reader Reader or buffer to decode from
57
- * @param [length] Message length if known beforehand
58
- * @returns ControlMessage
59
- * @throws {Error} If the payload is not a reader or valid buffer
60
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
61
- */
62
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): pxyproto.ControlMessage;
63
-
64
- /**
65
- * Decodes a ControlMessage message from the specified reader or buffer, length delimited.
66
- * @param reader Reader or buffer to decode from
67
- * @returns ControlMessage
68
- * @throws {Error} If the payload is not a reader or valid buffer
69
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
70
- */
71
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): pxyproto.ControlMessage;
72
-
73
- /**
74
- * Verifies a ControlMessage message.
75
- * @param message Plain object to verify
76
- * @returns `null` if valid, otherwise the reason why it is not
77
- */
78
- public static verify(message: { [k: string]: any }): (string|null);
79
-
80
- /**
81
- * Creates a ControlMessage message from a plain object. Also converts values to their respective internal types.
82
- * @param object Plain object
83
- * @returns ControlMessage
84
- */
85
- public static fromObject(object: { [k: string]: any }): pxyproto.ControlMessage;
86
-
87
- /**
88
- * Creates a plain object from a ControlMessage message. Also converts values to other types if specified.
89
- * @param message ControlMessage
90
- * @param [options] Conversion options
91
- * @returns Plain object
92
- */
93
- public static toObject(message: pxyproto.ControlMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
94
-
95
- /**
96
- * Converts this ControlMessage to JSON.
97
- * @returns JSON object
98
- */
99
- public toJSON(): { [k: string]: any };
100
- }
101
-
102
- /** SystemType enum. */
103
- enum SystemType {
104
- WINDOWS = 0,
105
- MAC = 1,
106
- LINUX = 3,
107
- ANDROID = 4,
108
- IOS = 5
109
- }
110
-
111
- /** ClientType enum. */
112
- enum ClientType {
113
- WEB = 0,
114
- NATIVE = 1
115
- }
116
-
117
- /** PlatformType enum. */
118
- enum PlatformType {
119
- PC = 0,
120
- PHONE = 1,
121
- TABLET = 2
122
- }
123
-
124
- /** Properties of a ClientInfo. */
125
- interface IClientInfo {
126
-
127
- /** ClientInfo clientVersion */
128
- clientVersion?: (string|null);
129
-
130
- /** ClientInfo systemType */
131
- systemType?: (pxyproto.SystemType|null);
132
-
133
- /** ClientInfo clientType */
134
- clientType?: (pxyproto.ClientType|null);
135
-
136
- /** ClientInfo platformType */
137
- platformType?: (pxyproto.PlatformType|null);
138
- }
139
-
140
- /** Represents a ClientInfo. */
141
- class ClientInfo implements IClientInfo {
142
-
143
- /**
144
- * Constructs a new ClientInfo.
145
- * @param [properties] Properties to set
146
- */
147
- constructor(properties?: pxyproto.IClientInfo);
148
-
149
- /** ClientInfo clientVersion. */
150
- public clientVersion: string;
151
-
152
- /** ClientInfo systemType. */
153
- public systemType: pxyproto.SystemType;
154
-
155
- /** ClientInfo clientType. */
156
- public clientType: pxyproto.ClientType;
157
-
158
- /** ClientInfo platformType. */
159
- public platformType: pxyproto.PlatformType;
160
-
161
- /**
162
- * Creates a new ClientInfo instance using the specified properties.
163
- * @param [properties] Properties to set
164
- * @returns ClientInfo instance
165
- */
166
- public static create(properties?: pxyproto.IClientInfo): pxyproto.ClientInfo;
167
-
168
- /**
169
- * Encodes the specified ClientInfo message. Does not implicitly {@link pxyproto.ClientInfo.verify|verify} messages.
170
- * @param message ClientInfo message or plain object to encode
171
- * @param [writer] Writer to encode to
172
- * @returns Writer
173
- */
174
- public static encode(message: pxyproto.IClientInfo, writer?: $protobuf.Writer): $protobuf.Writer;
175
-
176
- /**
177
- * Encodes the specified ClientInfo message, length delimited. Does not implicitly {@link pxyproto.ClientInfo.verify|verify} messages.
178
- * @param message ClientInfo message or plain object to encode
179
- * @param [writer] Writer to encode to
180
- * @returns Writer
181
- */
182
- public static encodeDelimited(message: pxyproto.IClientInfo, writer?: $protobuf.Writer): $protobuf.Writer;
183
-
184
- /**
185
- * Decodes a ClientInfo message from the specified reader or buffer.
186
- * @param reader Reader or buffer to decode from
187
- * @param [length] Message length if known beforehand
188
- * @returns ClientInfo
189
- * @throws {Error} If the payload is not a reader or valid buffer
190
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
191
- */
192
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): pxyproto.ClientInfo;
193
-
194
- /**
195
- * Decodes a ClientInfo message from the specified reader or buffer, length delimited.
196
- * @param reader Reader or buffer to decode from
197
- * @returns ClientInfo
198
- * @throws {Error} If the payload is not a reader or valid buffer
199
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
200
- */
201
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): pxyproto.ClientInfo;
202
-
203
- /**
204
- * Verifies a ClientInfo message.
205
- * @param message Plain object to verify
206
- * @returns `null` if valid, otherwise the reason why it is not
207
- */
208
- public static verify(message: { [k: string]: any }): (string|null);
209
-
210
- /**
211
- * Creates a ClientInfo message from a plain object. Also converts values to their respective internal types.
212
- * @param object Plain object
213
- * @returns ClientInfo
214
- */
215
- public static fromObject(object: { [k: string]: any }): pxyproto.ClientInfo;
216
-
217
- /**
218
- * Creates a plain object from a ClientInfo message. Also converts values to other types if specified.
219
- * @param message ClientInfo
220
- * @param [options] Conversion options
221
- * @returns Plain object
222
- */
223
- public static toObject(message: pxyproto.ClientInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
224
-
225
- /**
226
- * Converts this ClientInfo to JSON.
227
- * @returns JSON object
228
- */
229
- public toJSON(): { [k: string]: any };
230
- }
231
-
232
- /** Properties of a ViewPort. */
233
- interface IViewPort {
234
-
235
- /** ViewPort width */
236
- width?: (number|null);
237
-
238
- /** ViewPort height */
239
- height?: (number|null);
240
- }
241
-
242
- /** Represents a ViewPort. */
243
- class ViewPort implements IViewPort {
244
-
245
- /**
246
- * Constructs a new ViewPort.
247
- * @param [properties] Properties to set
248
- */
249
- constructor(properties?: pxyproto.IViewPort);
250
-
251
- /** ViewPort width. */
252
- public width: number;
253
-
254
- /** ViewPort height. */
255
- public height: number;
256
-
257
- /**
258
- * Creates a new ViewPort instance using the specified properties.
259
- * @param [properties] Properties to set
260
- * @returns ViewPort instance
261
- */
262
- public static create(properties?: pxyproto.IViewPort): pxyproto.ViewPort;
263
-
264
- /**
265
- * Encodes the specified ViewPort message. Does not implicitly {@link pxyproto.ViewPort.verify|verify} messages.
266
- * @param message ViewPort message or plain object to encode
267
- * @param [writer] Writer to encode to
268
- * @returns Writer
269
- */
270
- public static encode(message: pxyproto.IViewPort, writer?: $protobuf.Writer): $protobuf.Writer;
271
-
272
- /**
273
- * Encodes the specified ViewPort message, length delimited. Does not implicitly {@link pxyproto.ViewPort.verify|verify} messages.
274
- * @param message ViewPort message or plain object to encode
275
- * @param [writer] Writer to encode to
276
- * @returns Writer
277
- */
278
- public static encodeDelimited(message: pxyproto.IViewPort, writer?: $protobuf.Writer): $protobuf.Writer;
279
-
280
- /**
281
- * Decodes a ViewPort message from the specified reader or buffer.
282
- * @param reader Reader or buffer to decode from
283
- * @param [length] Message length if known beforehand
284
- * @returns ViewPort
285
- * @throws {Error} If the payload is not a reader or valid buffer
286
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
287
- */
288
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): pxyproto.ViewPort;
289
-
290
- /**
291
- * Decodes a ViewPort message from the specified reader or buffer, length delimited.
292
- * @param reader Reader or buffer to decode from
293
- * @returns ViewPort
294
- * @throws {Error} If the payload is not a reader or valid buffer
295
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
296
- */
297
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): pxyproto.ViewPort;
298
-
299
- /**
300
- * Verifies a ViewPort message.
301
- * @param message Plain object to verify
302
- * @returns `null` if valid, otherwise the reason why it is not
303
- */
304
- public static verify(message: { [k: string]: any }): (string|null);
305
-
306
- /**
307
- * Creates a ViewPort message from a plain object. Also converts values to their respective internal types.
308
- * @param object Plain object
309
- * @returns ViewPort
310
- */
311
- public static fromObject(object: { [k: string]: any }): pxyproto.ViewPort;
312
-
313
- /**
314
- * Creates a plain object from a ViewPort message. Also converts values to other types if specified.
315
- * @param message ViewPort
316
- * @param [options] Conversion options
317
- * @returns Plain object
318
- */
319
- public static toObject(message: pxyproto.ViewPort, options?: $protobuf.IConversionOptions): { [k: string]: any };
320
-
321
- /**
322
- * Converts this ViewPort to JSON.
323
- * @returns JSON object
324
- */
325
- public toJSON(): { [k: string]: any };
326
- }
327
-
328
- /** Properties of a DataMessage. */
329
- interface IDataMessage {
330
-
331
- /** DataMessage data */
332
- data?: (Uint8Array|null);
333
- }
334
-
335
- /** Represents a DataMessage. */
336
- class DataMessage implements IDataMessage {
337
-
338
- /**
339
- * Constructs a new DataMessage.
340
- * @param [properties] Properties to set
341
- */
342
- constructor(properties?: pxyproto.IDataMessage);
343
-
344
- /** DataMessage data. */
345
- public data: Uint8Array;
346
-
347
- /**
348
- * Creates a new DataMessage instance using the specified properties.
349
- * @param [properties] Properties to set
350
- * @returns DataMessage instance
351
- */
352
- public static create(properties?: pxyproto.IDataMessage): pxyproto.DataMessage;
353
-
354
- /**
355
- * Encodes the specified DataMessage message. Does not implicitly {@link pxyproto.DataMessage.verify|verify} messages.
356
- * @param message DataMessage message or plain object to encode
357
- * @param [writer] Writer to encode to
358
- * @returns Writer
359
- */
360
- public static encode(message: pxyproto.IDataMessage, writer?: $protobuf.Writer): $protobuf.Writer;
361
-
362
- /**
363
- * Encodes the specified DataMessage message, length delimited. Does not implicitly {@link pxyproto.DataMessage.verify|verify} messages.
364
- * @param message DataMessage message or plain object to encode
365
- * @param [writer] Writer to encode to
366
- * @returns Writer
367
- */
368
- public static encodeDelimited(message: pxyproto.IDataMessage, writer?: $protobuf.Writer): $protobuf.Writer;
369
-
370
- /**
371
- * Decodes a DataMessage message from the specified reader or buffer.
372
- * @param reader Reader or buffer to decode from
373
- * @param [length] Message length if known beforehand
374
- * @returns DataMessage
375
- * @throws {Error} If the payload is not a reader or valid buffer
376
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
377
- */
378
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): pxyproto.DataMessage;
379
-
380
- /**
381
- * Decodes a DataMessage message from the specified reader or buffer, length delimited.
382
- * @param reader Reader or buffer to decode from
383
- * @returns DataMessage
384
- * @throws {Error} If the payload is not a reader or valid buffer
385
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
386
- */
387
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): pxyproto.DataMessage;
388
-
389
- /**
390
- * Verifies a DataMessage message.
391
- * @param message Plain object to verify
392
- * @returns `null` if valid, otherwise the reason why it is not
393
- */
394
- public static verify(message: { [k: string]: any }): (string|null);
395
-
396
- /**
397
- * Creates a DataMessage message from a plain object. Also converts values to their respective internal types.
398
- * @param object Plain object
399
- * @returns DataMessage
400
- */
401
- public static fromObject(object: { [k: string]: any }): pxyproto.DataMessage;
402
-
403
- /**
404
- * Creates a plain object from a DataMessage message. Also converts values to other types if specified.
405
- * @param message DataMessage
406
- * @param [options] Conversion options
407
- * @returns Plain object
408
- */
409
- public static toObject(message: pxyproto.DataMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
410
-
411
- /**
412
- * Converts this DataMessage to JSON.
413
- * @returns JSON object
414
- */
415
- public toJSON(): { [k: string]: any };
416
- }
417
-
418
- /** Properties of a Message. */
419
- interface IMessage {
420
-
421
- /** Message controlMsg */
422
- controlMsg?: (pxyproto.IControlMessage|null);
423
-
424
- /** Message dataMsg */
425
- dataMsg?: (pxyproto.IDataMessage|null);
426
-
427
- /** Message clientInfo */
428
- clientInfo?: (pxyproto.IClientInfo|null);
429
-
430
- /** Message viewPort */
431
- viewPort?: (pxyproto.IViewPort|null);
432
- }
433
-
434
- /** Represents a Message. */
435
- class Message implements IMessage {
436
-
437
- /**
438
- * Constructs a new Message.
439
- * @param [properties] Properties to set
440
- */
441
- constructor(properties?: pxyproto.IMessage);
442
-
443
- /** Message controlMsg. */
444
- public controlMsg?: (pxyproto.IControlMessage|null);
445
-
446
- /** Message dataMsg. */
447
- public dataMsg?: (pxyproto.IDataMessage|null);
448
-
449
- /** Message clientInfo. */
450
- public clientInfo?: (pxyproto.IClientInfo|null);
451
-
452
- /** Message viewPort. */
453
- public viewPort?: (pxyproto.IViewPort|null);
454
-
455
- /** Message msg. */
456
- public msg?: ("controlMsg"|"dataMsg"|"clientInfo"|"viewPort");
457
-
458
- /**
459
- * Creates a new Message instance using the specified properties.
460
- * @param [properties] Properties to set
461
- * @returns Message instance
462
- */
463
- public static create(properties?: pxyproto.IMessage): pxyproto.Message;
464
-
465
- /**
466
- * Encodes the specified Message message. Does not implicitly {@link pxyproto.Message.verify|verify} messages.
467
- * @param message Message message or plain object to encode
468
- * @param [writer] Writer to encode to
469
- * @returns Writer
470
- */
471
- public static encode(message: pxyproto.IMessage, writer?: $protobuf.Writer): $protobuf.Writer;
472
-
473
- /**
474
- * Encodes the specified Message message, length delimited. Does not implicitly {@link pxyproto.Message.verify|verify} messages.
475
- * @param message Message message or plain object to encode
476
- * @param [writer] Writer to encode to
477
- * @returns Writer
478
- */
479
- public static encodeDelimited(message: pxyproto.IMessage, writer?: $protobuf.Writer): $protobuf.Writer;
480
-
481
- /**
482
- * Decodes a Message message from the specified reader or buffer.
483
- * @param reader Reader or buffer to decode from
484
- * @param [length] Message length if known beforehand
485
- * @returns Message
486
- * @throws {Error} If the payload is not a reader or valid buffer
487
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
488
- */
489
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): pxyproto.Message;
490
-
491
- /**
492
- * Decodes a Message message from the specified reader or buffer, length delimited.
493
- * @param reader Reader or buffer to decode from
494
- * @returns Message
495
- * @throws {Error} If the payload is not a reader or valid buffer
496
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
497
- */
498
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): pxyproto.Message;
499
-
500
- /**
501
- * Verifies a Message message.
502
- * @param message Plain object to verify
503
- * @returns `null` if valid, otherwise the reason why it is not
504
- */
505
- public static verify(message: { [k: string]: any }): (string|null);
506
-
507
- /**
508
- * Creates a Message message from a plain object. Also converts values to their respective internal types.
509
- * @param object Plain object
510
- * @returns Message
511
- */
512
- public static fromObject(object: { [k: string]: any }): pxyproto.Message;
513
-
514
- /**
515
- * Creates a plain object from a Message message. Also converts values to other types if specified.
516
- * @param message Message
517
- * @param [options] Conversion options
518
- * @returns Plain object
519
- */
520
- public static toObject(message: pxyproto.Message, options?: $protobuf.IConversionOptions): { [k: string]: any };
521
-
522
- /**
523
- * Converts this Message to JSON.
524
- * @returns JSON object
525
- */
526
- public toJSON(): { [k: string]: any };
527
- }
528
- }