@dcl/protocol 1.0.0-4671230683.commit-a8d74c3 → 1.0.0-4721150054.commit-85597a5

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.
@@ -0,0 +1,1040 @@
1
+ /* eslint-disable */
2
+ import _m0 from "protobufjs/minimal";
3
+
4
+ export const protobufPackage = "decentraland.realm";
5
+
6
+ export interface AboutResponse {
7
+ healthy: boolean;
8
+ configurations: AboutResponse_AboutConfiguration | undefined;
9
+ content: AboutResponse_ContentInfo | undefined;
10
+ comms: AboutResponse_CommsInfo | undefined;
11
+ lambdas: AboutResponse_LambdasInfo | undefined;
12
+ bff?: AboutResponse_BffInfo | undefined;
13
+ acceptingUsers: boolean;
14
+ }
15
+
16
+ export interface AboutResponse_MinimapConfiguration {
17
+ enabled: boolean;
18
+ dataImage?: string | undefined;
19
+ estateImage?: string | undefined;
20
+ }
21
+
22
+ export interface AboutResponse_SkyboxConfiguration {
23
+ /** only one value at a time */
24
+ fixedHour?: number | undefined;
25
+ }
26
+
27
+ export interface AboutResponse_AboutConfiguration {
28
+ realmName?: string | undefined;
29
+ networkId: number;
30
+ globalScenesUrn: string[];
31
+ scenesUrn: string[];
32
+ minimap?: AboutResponse_MinimapConfiguration | undefined;
33
+ skybox?:
34
+ | AboutResponse_SkyboxConfiguration
35
+ | undefined;
36
+ /**
37
+ * A content server to be used to load the parcels around the user. Uses the POST /entities/active endpoint
38
+ * to continously fetch the parcels around the users. if null, then the default content server will be used
39
+ * if == "" then the city_loader will be disabled and the scenes_urn will be used to load the world
40
+ */
41
+ cityLoaderContentServer?: string | undefined;
42
+ }
43
+
44
+ export interface AboutResponse_ContentInfo {
45
+ /** common properties */
46
+ healthy: boolean;
47
+ version?: string | undefined;
48
+ commitHash?: string | undefined;
49
+ publicUrl: string;
50
+ }
51
+
52
+ export interface AboutResponse_LambdasInfo {
53
+ /** common properties */
54
+ healthy: boolean;
55
+ version?: string | undefined;
56
+ commitHash?: string | undefined;
57
+ publicUrl: string;
58
+ }
59
+
60
+ export interface AboutResponse_CommsInfo {
61
+ /** common properties */
62
+ healthy: boolean;
63
+ version?: string | undefined;
64
+ commitHash?: string | undefined;
65
+ publicUrl?:
66
+ | string
67
+ | undefined;
68
+ /** specific properties */
69
+ protocol: string;
70
+ usersCount?: number | undefined;
71
+ fixedAdapter?: string | undefined;
72
+ }
73
+
74
+ export interface AboutResponse_BffInfo {
75
+ /** common properties */
76
+ healthy: boolean;
77
+ version?: string | undefined;
78
+ commitHash?: string | undefined;
79
+ publicUrl: string;
80
+ /** specific properties */
81
+ userCount?: number | undefined;
82
+ protocolVersion?: string | undefined;
83
+ }
84
+
85
+ function createBaseAboutResponse(): AboutResponse {
86
+ return {
87
+ healthy: false,
88
+ configurations: undefined,
89
+ content: undefined,
90
+ comms: undefined,
91
+ lambdas: undefined,
92
+ bff: undefined,
93
+ acceptingUsers: false,
94
+ };
95
+ }
96
+
97
+ export const AboutResponse = {
98
+ encode(message: AboutResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
99
+ if (message.healthy === true) {
100
+ writer.uint32(8).bool(message.healthy);
101
+ }
102
+ if (message.configurations !== undefined) {
103
+ AboutResponse_AboutConfiguration.encode(message.configurations, writer.uint32(18).fork()).ldelim();
104
+ }
105
+ if (message.content !== undefined) {
106
+ AboutResponse_ContentInfo.encode(message.content, writer.uint32(26).fork()).ldelim();
107
+ }
108
+ if (message.comms !== undefined) {
109
+ AboutResponse_CommsInfo.encode(message.comms, writer.uint32(34).fork()).ldelim();
110
+ }
111
+ if (message.lambdas !== undefined) {
112
+ AboutResponse_LambdasInfo.encode(message.lambdas, writer.uint32(42).fork()).ldelim();
113
+ }
114
+ if (message.bff !== undefined) {
115
+ AboutResponse_BffInfo.encode(message.bff, writer.uint32(50).fork()).ldelim();
116
+ }
117
+ if (message.acceptingUsers === true) {
118
+ writer.uint32(56).bool(message.acceptingUsers);
119
+ }
120
+ return writer;
121
+ },
122
+
123
+ decode(input: _m0.Reader | Uint8Array, length?: number): AboutResponse {
124
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
125
+ let end = length === undefined ? reader.len : reader.pos + length;
126
+ const message = createBaseAboutResponse();
127
+ while (reader.pos < end) {
128
+ const tag = reader.uint32();
129
+ switch (tag >>> 3) {
130
+ case 1:
131
+ if (tag != 8) {
132
+ break;
133
+ }
134
+
135
+ message.healthy = reader.bool();
136
+ continue;
137
+ case 2:
138
+ if (tag != 18) {
139
+ break;
140
+ }
141
+
142
+ message.configurations = AboutResponse_AboutConfiguration.decode(reader, reader.uint32());
143
+ continue;
144
+ case 3:
145
+ if (tag != 26) {
146
+ break;
147
+ }
148
+
149
+ message.content = AboutResponse_ContentInfo.decode(reader, reader.uint32());
150
+ continue;
151
+ case 4:
152
+ if (tag != 34) {
153
+ break;
154
+ }
155
+
156
+ message.comms = AboutResponse_CommsInfo.decode(reader, reader.uint32());
157
+ continue;
158
+ case 5:
159
+ if (tag != 42) {
160
+ break;
161
+ }
162
+
163
+ message.lambdas = AboutResponse_LambdasInfo.decode(reader, reader.uint32());
164
+ continue;
165
+ case 6:
166
+ if (tag != 50) {
167
+ break;
168
+ }
169
+
170
+ message.bff = AboutResponse_BffInfo.decode(reader, reader.uint32());
171
+ continue;
172
+ case 7:
173
+ if (tag != 56) {
174
+ break;
175
+ }
176
+
177
+ message.acceptingUsers = reader.bool();
178
+ continue;
179
+ }
180
+ if ((tag & 7) == 4 || tag == 0) {
181
+ break;
182
+ }
183
+ reader.skipType(tag & 7);
184
+ }
185
+ return message;
186
+ },
187
+
188
+ fromJSON(object: any): AboutResponse {
189
+ return {
190
+ healthy: isSet(object.healthy) ? Boolean(object.healthy) : false,
191
+ configurations: isSet(object.configurations)
192
+ ? AboutResponse_AboutConfiguration.fromJSON(object.configurations)
193
+ : undefined,
194
+ content: isSet(object.content) ? AboutResponse_ContentInfo.fromJSON(object.content) : undefined,
195
+ comms: isSet(object.comms) ? AboutResponse_CommsInfo.fromJSON(object.comms) : undefined,
196
+ lambdas: isSet(object.lambdas) ? AboutResponse_LambdasInfo.fromJSON(object.lambdas) : undefined,
197
+ bff: isSet(object.bff) ? AboutResponse_BffInfo.fromJSON(object.bff) : undefined,
198
+ acceptingUsers: isSet(object.acceptingUsers) ? Boolean(object.acceptingUsers) : false,
199
+ };
200
+ },
201
+
202
+ toJSON(message: AboutResponse): unknown {
203
+ const obj: any = {};
204
+ message.healthy !== undefined && (obj.healthy = message.healthy);
205
+ message.configurations !== undefined && (obj.configurations = message.configurations
206
+ ? AboutResponse_AboutConfiguration.toJSON(message.configurations)
207
+ : undefined);
208
+ message.content !== undefined &&
209
+ (obj.content = message.content ? AboutResponse_ContentInfo.toJSON(message.content) : undefined);
210
+ message.comms !== undefined &&
211
+ (obj.comms = message.comms ? AboutResponse_CommsInfo.toJSON(message.comms) : undefined);
212
+ message.lambdas !== undefined &&
213
+ (obj.lambdas = message.lambdas ? AboutResponse_LambdasInfo.toJSON(message.lambdas) : undefined);
214
+ message.bff !== undefined && (obj.bff = message.bff ? AboutResponse_BffInfo.toJSON(message.bff) : undefined);
215
+ message.acceptingUsers !== undefined && (obj.acceptingUsers = message.acceptingUsers);
216
+ return obj;
217
+ },
218
+
219
+ create<I extends Exact<DeepPartial<AboutResponse>, I>>(base?: I): AboutResponse {
220
+ return AboutResponse.fromPartial(base ?? {});
221
+ },
222
+
223
+ fromPartial<I extends Exact<DeepPartial<AboutResponse>, I>>(object: I): AboutResponse {
224
+ const message = createBaseAboutResponse();
225
+ message.healthy = object.healthy ?? false;
226
+ message.configurations = (object.configurations !== undefined && object.configurations !== null)
227
+ ? AboutResponse_AboutConfiguration.fromPartial(object.configurations)
228
+ : undefined;
229
+ message.content = (object.content !== undefined && object.content !== null)
230
+ ? AboutResponse_ContentInfo.fromPartial(object.content)
231
+ : undefined;
232
+ message.comms = (object.comms !== undefined && object.comms !== null)
233
+ ? AboutResponse_CommsInfo.fromPartial(object.comms)
234
+ : undefined;
235
+ message.lambdas = (object.lambdas !== undefined && object.lambdas !== null)
236
+ ? AboutResponse_LambdasInfo.fromPartial(object.lambdas)
237
+ : undefined;
238
+ message.bff = (object.bff !== undefined && object.bff !== null)
239
+ ? AboutResponse_BffInfo.fromPartial(object.bff)
240
+ : undefined;
241
+ message.acceptingUsers = object.acceptingUsers ?? false;
242
+ return message;
243
+ },
244
+ };
245
+
246
+ function createBaseAboutResponse_MinimapConfiguration(): AboutResponse_MinimapConfiguration {
247
+ return { enabled: false, dataImage: undefined, estateImage: undefined };
248
+ }
249
+
250
+ export const AboutResponse_MinimapConfiguration = {
251
+ encode(message: AboutResponse_MinimapConfiguration, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
252
+ if (message.enabled === true) {
253
+ writer.uint32(8).bool(message.enabled);
254
+ }
255
+ if (message.dataImage !== undefined) {
256
+ writer.uint32(18).string(message.dataImage);
257
+ }
258
+ if (message.estateImage !== undefined) {
259
+ writer.uint32(26).string(message.estateImage);
260
+ }
261
+ return writer;
262
+ },
263
+
264
+ decode(input: _m0.Reader | Uint8Array, length?: number): AboutResponse_MinimapConfiguration {
265
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
266
+ let end = length === undefined ? reader.len : reader.pos + length;
267
+ const message = createBaseAboutResponse_MinimapConfiguration();
268
+ while (reader.pos < end) {
269
+ const tag = reader.uint32();
270
+ switch (tag >>> 3) {
271
+ case 1:
272
+ if (tag != 8) {
273
+ break;
274
+ }
275
+
276
+ message.enabled = reader.bool();
277
+ continue;
278
+ case 2:
279
+ if (tag != 18) {
280
+ break;
281
+ }
282
+
283
+ message.dataImage = reader.string();
284
+ continue;
285
+ case 3:
286
+ if (tag != 26) {
287
+ break;
288
+ }
289
+
290
+ message.estateImage = reader.string();
291
+ continue;
292
+ }
293
+ if ((tag & 7) == 4 || tag == 0) {
294
+ break;
295
+ }
296
+ reader.skipType(tag & 7);
297
+ }
298
+ return message;
299
+ },
300
+
301
+ fromJSON(object: any): AboutResponse_MinimapConfiguration {
302
+ return {
303
+ enabled: isSet(object.enabled) ? Boolean(object.enabled) : false,
304
+ dataImage: isSet(object.dataImage) ? String(object.dataImage) : undefined,
305
+ estateImage: isSet(object.estateImage) ? String(object.estateImage) : undefined,
306
+ };
307
+ },
308
+
309
+ toJSON(message: AboutResponse_MinimapConfiguration): unknown {
310
+ const obj: any = {};
311
+ message.enabled !== undefined && (obj.enabled = message.enabled);
312
+ message.dataImage !== undefined && (obj.dataImage = message.dataImage);
313
+ message.estateImage !== undefined && (obj.estateImage = message.estateImage);
314
+ return obj;
315
+ },
316
+
317
+ create<I extends Exact<DeepPartial<AboutResponse_MinimapConfiguration>, I>>(
318
+ base?: I,
319
+ ): AboutResponse_MinimapConfiguration {
320
+ return AboutResponse_MinimapConfiguration.fromPartial(base ?? {});
321
+ },
322
+
323
+ fromPartial<I extends Exact<DeepPartial<AboutResponse_MinimapConfiguration>, I>>(
324
+ object: I,
325
+ ): AboutResponse_MinimapConfiguration {
326
+ const message = createBaseAboutResponse_MinimapConfiguration();
327
+ message.enabled = object.enabled ?? false;
328
+ message.dataImage = object.dataImage ?? undefined;
329
+ message.estateImage = object.estateImage ?? undefined;
330
+ return message;
331
+ },
332
+ };
333
+
334
+ function createBaseAboutResponse_SkyboxConfiguration(): AboutResponse_SkyboxConfiguration {
335
+ return { fixedHour: undefined };
336
+ }
337
+
338
+ export const AboutResponse_SkyboxConfiguration = {
339
+ encode(message: AboutResponse_SkyboxConfiguration, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
340
+ if (message.fixedHour !== undefined) {
341
+ writer.uint32(13).float(message.fixedHour);
342
+ }
343
+ return writer;
344
+ },
345
+
346
+ decode(input: _m0.Reader | Uint8Array, length?: number): AboutResponse_SkyboxConfiguration {
347
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
348
+ let end = length === undefined ? reader.len : reader.pos + length;
349
+ const message = createBaseAboutResponse_SkyboxConfiguration();
350
+ while (reader.pos < end) {
351
+ const tag = reader.uint32();
352
+ switch (tag >>> 3) {
353
+ case 1:
354
+ if (tag != 13) {
355
+ break;
356
+ }
357
+
358
+ message.fixedHour = reader.float();
359
+ continue;
360
+ }
361
+ if ((tag & 7) == 4 || tag == 0) {
362
+ break;
363
+ }
364
+ reader.skipType(tag & 7);
365
+ }
366
+ return message;
367
+ },
368
+
369
+ fromJSON(object: any): AboutResponse_SkyboxConfiguration {
370
+ return { fixedHour: isSet(object.fixedHour) ? Number(object.fixedHour) : undefined };
371
+ },
372
+
373
+ toJSON(message: AboutResponse_SkyboxConfiguration): unknown {
374
+ const obj: any = {};
375
+ message.fixedHour !== undefined && (obj.fixedHour = message.fixedHour);
376
+ return obj;
377
+ },
378
+
379
+ create<I extends Exact<DeepPartial<AboutResponse_SkyboxConfiguration>, I>>(
380
+ base?: I,
381
+ ): AboutResponse_SkyboxConfiguration {
382
+ return AboutResponse_SkyboxConfiguration.fromPartial(base ?? {});
383
+ },
384
+
385
+ fromPartial<I extends Exact<DeepPartial<AboutResponse_SkyboxConfiguration>, I>>(
386
+ object: I,
387
+ ): AboutResponse_SkyboxConfiguration {
388
+ const message = createBaseAboutResponse_SkyboxConfiguration();
389
+ message.fixedHour = object.fixedHour ?? undefined;
390
+ return message;
391
+ },
392
+ };
393
+
394
+ function createBaseAboutResponse_AboutConfiguration(): AboutResponse_AboutConfiguration {
395
+ return {
396
+ realmName: undefined,
397
+ networkId: 0,
398
+ globalScenesUrn: [],
399
+ scenesUrn: [],
400
+ minimap: undefined,
401
+ skybox: undefined,
402
+ cityLoaderContentServer: undefined,
403
+ };
404
+ }
405
+
406
+ export const AboutResponse_AboutConfiguration = {
407
+ encode(message: AboutResponse_AboutConfiguration, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
408
+ if (message.realmName !== undefined) {
409
+ writer.uint32(10).string(message.realmName);
410
+ }
411
+ if (message.networkId !== 0) {
412
+ writer.uint32(16).uint32(message.networkId);
413
+ }
414
+ for (const v of message.globalScenesUrn) {
415
+ writer.uint32(26).string(v!);
416
+ }
417
+ for (const v of message.scenesUrn) {
418
+ writer.uint32(34).string(v!);
419
+ }
420
+ if (message.minimap !== undefined) {
421
+ AboutResponse_MinimapConfiguration.encode(message.minimap, writer.uint32(42).fork()).ldelim();
422
+ }
423
+ if (message.skybox !== undefined) {
424
+ AboutResponse_SkyboxConfiguration.encode(message.skybox, writer.uint32(50).fork()).ldelim();
425
+ }
426
+ if (message.cityLoaderContentServer !== undefined) {
427
+ writer.uint32(58).string(message.cityLoaderContentServer);
428
+ }
429
+ return writer;
430
+ },
431
+
432
+ decode(input: _m0.Reader | Uint8Array, length?: number): AboutResponse_AboutConfiguration {
433
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
434
+ let end = length === undefined ? reader.len : reader.pos + length;
435
+ const message = createBaseAboutResponse_AboutConfiguration();
436
+ while (reader.pos < end) {
437
+ const tag = reader.uint32();
438
+ switch (tag >>> 3) {
439
+ case 1:
440
+ if (tag != 10) {
441
+ break;
442
+ }
443
+
444
+ message.realmName = reader.string();
445
+ continue;
446
+ case 2:
447
+ if (tag != 16) {
448
+ break;
449
+ }
450
+
451
+ message.networkId = reader.uint32();
452
+ continue;
453
+ case 3:
454
+ if (tag != 26) {
455
+ break;
456
+ }
457
+
458
+ message.globalScenesUrn.push(reader.string());
459
+ continue;
460
+ case 4:
461
+ if (tag != 34) {
462
+ break;
463
+ }
464
+
465
+ message.scenesUrn.push(reader.string());
466
+ continue;
467
+ case 5:
468
+ if (tag != 42) {
469
+ break;
470
+ }
471
+
472
+ message.minimap = AboutResponse_MinimapConfiguration.decode(reader, reader.uint32());
473
+ continue;
474
+ case 6:
475
+ if (tag != 50) {
476
+ break;
477
+ }
478
+
479
+ message.skybox = AboutResponse_SkyboxConfiguration.decode(reader, reader.uint32());
480
+ continue;
481
+ case 7:
482
+ if (tag != 58) {
483
+ break;
484
+ }
485
+
486
+ message.cityLoaderContentServer = reader.string();
487
+ continue;
488
+ }
489
+ if ((tag & 7) == 4 || tag == 0) {
490
+ break;
491
+ }
492
+ reader.skipType(tag & 7);
493
+ }
494
+ return message;
495
+ },
496
+
497
+ fromJSON(object: any): AboutResponse_AboutConfiguration {
498
+ return {
499
+ realmName: isSet(object.realmName) ? String(object.realmName) : undefined,
500
+ networkId: isSet(object.networkId) ? Number(object.networkId) : 0,
501
+ globalScenesUrn: Array.isArray(object?.globalScenesUrn) ? object.globalScenesUrn.map((e: any) => String(e)) : [],
502
+ scenesUrn: Array.isArray(object?.scenesUrn) ? object.scenesUrn.map((e: any) => String(e)) : [],
503
+ minimap: isSet(object.minimap) ? AboutResponse_MinimapConfiguration.fromJSON(object.minimap) : undefined,
504
+ skybox: isSet(object.skybox) ? AboutResponse_SkyboxConfiguration.fromJSON(object.skybox) : undefined,
505
+ cityLoaderContentServer: isSet(object.cityLoaderContentServer)
506
+ ? String(object.cityLoaderContentServer)
507
+ : undefined,
508
+ };
509
+ },
510
+
511
+ toJSON(message: AboutResponse_AboutConfiguration): unknown {
512
+ const obj: any = {};
513
+ message.realmName !== undefined && (obj.realmName = message.realmName);
514
+ message.networkId !== undefined && (obj.networkId = Math.round(message.networkId));
515
+ if (message.globalScenesUrn) {
516
+ obj.globalScenesUrn = message.globalScenesUrn.map((e) => e);
517
+ } else {
518
+ obj.globalScenesUrn = [];
519
+ }
520
+ if (message.scenesUrn) {
521
+ obj.scenesUrn = message.scenesUrn.map((e) => e);
522
+ } else {
523
+ obj.scenesUrn = [];
524
+ }
525
+ message.minimap !== undefined &&
526
+ (obj.minimap = message.minimap ? AboutResponse_MinimapConfiguration.toJSON(message.minimap) : undefined);
527
+ message.skybox !== undefined &&
528
+ (obj.skybox = message.skybox ? AboutResponse_SkyboxConfiguration.toJSON(message.skybox) : undefined);
529
+ message.cityLoaderContentServer !== undefined && (obj.cityLoaderContentServer = message.cityLoaderContentServer);
530
+ return obj;
531
+ },
532
+
533
+ create<I extends Exact<DeepPartial<AboutResponse_AboutConfiguration>, I>>(
534
+ base?: I,
535
+ ): AboutResponse_AboutConfiguration {
536
+ return AboutResponse_AboutConfiguration.fromPartial(base ?? {});
537
+ },
538
+
539
+ fromPartial<I extends Exact<DeepPartial<AboutResponse_AboutConfiguration>, I>>(
540
+ object: I,
541
+ ): AboutResponse_AboutConfiguration {
542
+ const message = createBaseAboutResponse_AboutConfiguration();
543
+ message.realmName = object.realmName ?? undefined;
544
+ message.networkId = object.networkId ?? 0;
545
+ message.globalScenesUrn = object.globalScenesUrn?.map((e) => e) || [];
546
+ message.scenesUrn = object.scenesUrn?.map((e) => e) || [];
547
+ message.minimap = (object.minimap !== undefined && object.minimap !== null)
548
+ ? AboutResponse_MinimapConfiguration.fromPartial(object.minimap)
549
+ : undefined;
550
+ message.skybox = (object.skybox !== undefined && object.skybox !== null)
551
+ ? AboutResponse_SkyboxConfiguration.fromPartial(object.skybox)
552
+ : undefined;
553
+ message.cityLoaderContentServer = object.cityLoaderContentServer ?? undefined;
554
+ return message;
555
+ },
556
+ };
557
+
558
+ function createBaseAboutResponse_ContentInfo(): AboutResponse_ContentInfo {
559
+ return { healthy: false, version: undefined, commitHash: undefined, publicUrl: "" };
560
+ }
561
+
562
+ export const AboutResponse_ContentInfo = {
563
+ encode(message: AboutResponse_ContentInfo, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
564
+ if (message.healthy === true) {
565
+ writer.uint32(8).bool(message.healthy);
566
+ }
567
+ if (message.version !== undefined) {
568
+ writer.uint32(18).string(message.version);
569
+ }
570
+ if (message.commitHash !== undefined) {
571
+ writer.uint32(26).string(message.commitHash);
572
+ }
573
+ if (message.publicUrl !== "") {
574
+ writer.uint32(34).string(message.publicUrl);
575
+ }
576
+ return writer;
577
+ },
578
+
579
+ decode(input: _m0.Reader | Uint8Array, length?: number): AboutResponse_ContentInfo {
580
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
581
+ let end = length === undefined ? reader.len : reader.pos + length;
582
+ const message = createBaseAboutResponse_ContentInfo();
583
+ while (reader.pos < end) {
584
+ const tag = reader.uint32();
585
+ switch (tag >>> 3) {
586
+ case 1:
587
+ if (tag != 8) {
588
+ break;
589
+ }
590
+
591
+ message.healthy = reader.bool();
592
+ continue;
593
+ case 2:
594
+ if (tag != 18) {
595
+ break;
596
+ }
597
+
598
+ message.version = reader.string();
599
+ continue;
600
+ case 3:
601
+ if (tag != 26) {
602
+ break;
603
+ }
604
+
605
+ message.commitHash = reader.string();
606
+ continue;
607
+ case 4:
608
+ if (tag != 34) {
609
+ break;
610
+ }
611
+
612
+ message.publicUrl = reader.string();
613
+ continue;
614
+ }
615
+ if ((tag & 7) == 4 || tag == 0) {
616
+ break;
617
+ }
618
+ reader.skipType(tag & 7);
619
+ }
620
+ return message;
621
+ },
622
+
623
+ fromJSON(object: any): AboutResponse_ContentInfo {
624
+ return {
625
+ healthy: isSet(object.healthy) ? Boolean(object.healthy) : false,
626
+ version: isSet(object.version) ? String(object.version) : undefined,
627
+ commitHash: isSet(object.commitHash) ? String(object.commitHash) : undefined,
628
+ publicUrl: isSet(object.publicUrl) ? String(object.publicUrl) : "",
629
+ };
630
+ },
631
+
632
+ toJSON(message: AboutResponse_ContentInfo): unknown {
633
+ const obj: any = {};
634
+ message.healthy !== undefined && (obj.healthy = message.healthy);
635
+ message.version !== undefined && (obj.version = message.version);
636
+ message.commitHash !== undefined && (obj.commitHash = message.commitHash);
637
+ message.publicUrl !== undefined && (obj.publicUrl = message.publicUrl);
638
+ return obj;
639
+ },
640
+
641
+ create<I extends Exact<DeepPartial<AboutResponse_ContentInfo>, I>>(base?: I): AboutResponse_ContentInfo {
642
+ return AboutResponse_ContentInfo.fromPartial(base ?? {});
643
+ },
644
+
645
+ fromPartial<I extends Exact<DeepPartial<AboutResponse_ContentInfo>, I>>(object: I): AboutResponse_ContentInfo {
646
+ const message = createBaseAboutResponse_ContentInfo();
647
+ message.healthy = object.healthy ?? false;
648
+ message.version = object.version ?? undefined;
649
+ message.commitHash = object.commitHash ?? undefined;
650
+ message.publicUrl = object.publicUrl ?? "";
651
+ return message;
652
+ },
653
+ };
654
+
655
+ function createBaseAboutResponse_LambdasInfo(): AboutResponse_LambdasInfo {
656
+ return { healthy: false, version: undefined, commitHash: undefined, publicUrl: "" };
657
+ }
658
+
659
+ export const AboutResponse_LambdasInfo = {
660
+ encode(message: AboutResponse_LambdasInfo, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
661
+ if (message.healthy === true) {
662
+ writer.uint32(8).bool(message.healthy);
663
+ }
664
+ if (message.version !== undefined) {
665
+ writer.uint32(18).string(message.version);
666
+ }
667
+ if (message.commitHash !== undefined) {
668
+ writer.uint32(26).string(message.commitHash);
669
+ }
670
+ if (message.publicUrl !== "") {
671
+ writer.uint32(34).string(message.publicUrl);
672
+ }
673
+ return writer;
674
+ },
675
+
676
+ decode(input: _m0.Reader | Uint8Array, length?: number): AboutResponse_LambdasInfo {
677
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
678
+ let end = length === undefined ? reader.len : reader.pos + length;
679
+ const message = createBaseAboutResponse_LambdasInfo();
680
+ while (reader.pos < end) {
681
+ const tag = reader.uint32();
682
+ switch (tag >>> 3) {
683
+ case 1:
684
+ if (tag != 8) {
685
+ break;
686
+ }
687
+
688
+ message.healthy = reader.bool();
689
+ continue;
690
+ case 2:
691
+ if (tag != 18) {
692
+ break;
693
+ }
694
+
695
+ message.version = reader.string();
696
+ continue;
697
+ case 3:
698
+ if (tag != 26) {
699
+ break;
700
+ }
701
+
702
+ message.commitHash = reader.string();
703
+ continue;
704
+ case 4:
705
+ if (tag != 34) {
706
+ break;
707
+ }
708
+
709
+ message.publicUrl = reader.string();
710
+ continue;
711
+ }
712
+ if ((tag & 7) == 4 || tag == 0) {
713
+ break;
714
+ }
715
+ reader.skipType(tag & 7);
716
+ }
717
+ return message;
718
+ },
719
+
720
+ fromJSON(object: any): AboutResponse_LambdasInfo {
721
+ return {
722
+ healthy: isSet(object.healthy) ? Boolean(object.healthy) : false,
723
+ version: isSet(object.version) ? String(object.version) : undefined,
724
+ commitHash: isSet(object.commitHash) ? String(object.commitHash) : undefined,
725
+ publicUrl: isSet(object.publicUrl) ? String(object.publicUrl) : "",
726
+ };
727
+ },
728
+
729
+ toJSON(message: AboutResponse_LambdasInfo): unknown {
730
+ const obj: any = {};
731
+ message.healthy !== undefined && (obj.healthy = message.healthy);
732
+ message.version !== undefined && (obj.version = message.version);
733
+ message.commitHash !== undefined && (obj.commitHash = message.commitHash);
734
+ message.publicUrl !== undefined && (obj.publicUrl = message.publicUrl);
735
+ return obj;
736
+ },
737
+
738
+ create<I extends Exact<DeepPartial<AboutResponse_LambdasInfo>, I>>(base?: I): AboutResponse_LambdasInfo {
739
+ return AboutResponse_LambdasInfo.fromPartial(base ?? {});
740
+ },
741
+
742
+ fromPartial<I extends Exact<DeepPartial<AboutResponse_LambdasInfo>, I>>(object: I): AboutResponse_LambdasInfo {
743
+ const message = createBaseAboutResponse_LambdasInfo();
744
+ message.healthy = object.healthy ?? false;
745
+ message.version = object.version ?? undefined;
746
+ message.commitHash = object.commitHash ?? undefined;
747
+ message.publicUrl = object.publicUrl ?? "";
748
+ return message;
749
+ },
750
+ };
751
+
752
+ function createBaseAboutResponse_CommsInfo(): AboutResponse_CommsInfo {
753
+ return {
754
+ healthy: false,
755
+ version: undefined,
756
+ commitHash: undefined,
757
+ publicUrl: undefined,
758
+ protocol: "",
759
+ usersCount: undefined,
760
+ fixedAdapter: undefined,
761
+ };
762
+ }
763
+
764
+ export const AboutResponse_CommsInfo = {
765
+ encode(message: AboutResponse_CommsInfo, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
766
+ if (message.healthy === true) {
767
+ writer.uint32(8).bool(message.healthy);
768
+ }
769
+ if (message.version !== undefined) {
770
+ writer.uint32(18).string(message.version);
771
+ }
772
+ if (message.commitHash !== undefined) {
773
+ writer.uint32(26).string(message.commitHash);
774
+ }
775
+ if (message.publicUrl !== undefined) {
776
+ writer.uint32(34).string(message.publicUrl);
777
+ }
778
+ if (message.protocol !== "") {
779
+ writer.uint32(402).string(message.protocol);
780
+ }
781
+ if (message.usersCount !== undefined) {
782
+ writer.uint32(408).int32(message.usersCount);
783
+ }
784
+ if (message.fixedAdapter !== undefined) {
785
+ writer.uint32(418).string(message.fixedAdapter);
786
+ }
787
+ return writer;
788
+ },
789
+
790
+ decode(input: _m0.Reader | Uint8Array, length?: number): AboutResponse_CommsInfo {
791
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
792
+ let end = length === undefined ? reader.len : reader.pos + length;
793
+ const message = createBaseAboutResponse_CommsInfo();
794
+ while (reader.pos < end) {
795
+ const tag = reader.uint32();
796
+ switch (tag >>> 3) {
797
+ case 1:
798
+ if (tag != 8) {
799
+ break;
800
+ }
801
+
802
+ message.healthy = reader.bool();
803
+ continue;
804
+ case 2:
805
+ if (tag != 18) {
806
+ break;
807
+ }
808
+
809
+ message.version = reader.string();
810
+ continue;
811
+ case 3:
812
+ if (tag != 26) {
813
+ break;
814
+ }
815
+
816
+ message.commitHash = reader.string();
817
+ continue;
818
+ case 4:
819
+ if (tag != 34) {
820
+ break;
821
+ }
822
+
823
+ message.publicUrl = reader.string();
824
+ continue;
825
+ case 50:
826
+ if (tag != 402) {
827
+ break;
828
+ }
829
+
830
+ message.protocol = reader.string();
831
+ continue;
832
+ case 51:
833
+ if (tag != 408) {
834
+ break;
835
+ }
836
+
837
+ message.usersCount = reader.int32();
838
+ continue;
839
+ case 52:
840
+ if (tag != 418) {
841
+ break;
842
+ }
843
+
844
+ message.fixedAdapter = reader.string();
845
+ continue;
846
+ }
847
+ if ((tag & 7) == 4 || tag == 0) {
848
+ break;
849
+ }
850
+ reader.skipType(tag & 7);
851
+ }
852
+ return message;
853
+ },
854
+
855
+ fromJSON(object: any): AboutResponse_CommsInfo {
856
+ return {
857
+ healthy: isSet(object.healthy) ? Boolean(object.healthy) : false,
858
+ version: isSet(object.version) ? String(object.version) : undefined,
859
+ commitHash: isSet(object.commitHash) ? String(object.commitHash) : undefined,
860
+ publicUrl: isSet(object.publicUrl) ? String(object.publicUrl) : undefined,
861
+ protocol: isSet(object.protocol) ? String(object.protocol) : "",
862
+ usersCount: isSet(object.usersCount) ? Number(object.usersCount) : undefined,
863
+ fixedAdapter: isSet(object.fixedAdapter) ? String(object.fixedAdapter) : undefined,
864
+ };
865
+ },
866
+
867
+ toJSON(message: AboutResponse_CommsInfo): unknown {
868
+ const obj: any = {};
869
+ message.healthy !== undefined && (obj.healthy = message.healthy);
870
+ message.version !== undefined && (obj.version = message.version);
871
+ message.commitHash !== undefined && (obj.commitHash = message.commitHash);
872
+ message.publicUrl !== undefined && (obj.publicUrl = message.publicUrl);
873
+ message.protocol !== undefined && (obj.protocol = message.protocol);
874
+ message.usersCount !== undefined && (obj.usersCount = Math.round(message.usersCount));
875
+ message.fixedAdapter !== undefined && (obj.fixedAdapter = message.fixedAdapter);
876
+ return obj;
877
+ },
878
+
879
+ create<I extends Exact<DeepPartial<AboutResponse_CommsInfo>, I>>(base?: I): AboutResponse_CommsInfo {
880
+ return AboutResponse_CommsInfo.fromPartial(base ?? {});
881
+ },
882
+
883
+ fromPartial<I extends Exact<DeepPartial<AboutResponse_CommsInfo>, I>>(object: I): AboutResponse_CommsInfo {
884
+ const message = createBaseAboutResponse_CommsInfo();
885
+ message.healthy = object.healthy ?? false;
886
+ message.version = object.version ?? undefined;
887
+ message.commitHash = object.commitHash ?? undefined;
888
+ message.publicUrl = object.publicUrl ?? undefined;
889
+ message.protocol = object.protocol ?? "";
890
+ message.usersCount = object.usersCount ?? undefined;
891
+ message.fixedAdapter = object.fixedAdapter ?? undefined;
892
+ return message;
893
+ },
894
+ };
895
+
896
+ function createBaseAboutResponse_BffInfo(): AboutResponse_BffInfo {
897
+ return {
898
+ healthy: false,
899
+ version: undefined,
900
+ commitHash: undefined,
901
+ publicUrl: "",
902
+ userCount: undefined,
903
+ protocolVersion: undefined,
904
+ };
905
+ }
906
+
907
+ export const AboutResponse_BffInfo = {
908
+ encode(message: AboutResponse_BffInfo, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
909
+ if (message.healthy === true) {
910
+ writer.uint32(8).bool(message.healthy);
911
+ }
912
+ if (message.version !== undefined) {
913
+ writer.uint32(18).string(message.version);
914
+ }
915
+ if (message.commitHash !== undefined) {
916
+ writer.uint32(26).string(message.commitHash);
917
+ }
918
+ if (message.publicUrl !== "") {
919
+ writer.uint32(34).string(message.publicUrl);
920
+ }
921
+ if (message.userCount !== undefined) {
922
+ writer.uint32(408).int32(message.userCount);
923
+ }
924
+ if (message.protocolVersion !== undefined) {
925
+ writer.uint32(418).string(message.protocolVersion);
926
+ }
927
+ return writer;
928
+ },
929
+
930
+ decode(input: _m0.Reader | Uint8Array, length?: number): AboutResponse_BffInfo {
931
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
932
+ let end = length === undefined ? reader.len : reader.pos + length;
933
+ const message = createBaseAboutResponse_BffInfo();
934
+ while (reader.pos < end) {
935
+ const tag = reader.uint32();
936
+ switch (tag >>> 3) {
937
+ case 1:
938
+ if (tag != 8) {
939
+ break;
940
+ }
941
+
942
+ message.healthy = reader.bool();
943
+ continue;
944
+ case 2:
945
+ if (tag != 18) {
946
+ break;
947
+ }
948
+
949
+ message.version = reader.string();
950
+ continue;
951
+ case 3:
952
+ if (tag != 26) {
953
+ break;
954
+ }
955
+
956
+ message.commitHash = reader.string();
957
+ continue;
958
+ case 4:
959
+ if (tag != 34) {
960
+ break;
961
+ }
962
+
963
+ message.publicUrl = reader.string();
964
+ continue;
965
+ case 51:
966
+ if (tag != 408) {
967
+ break;
968
+ }
969
+
970
+ message.userCount = reader.int32();
971
+ continue;
972
+ case 52:
973
+ if (tag != 418) {
974
+ break;
975
+ }
976
+
977
+ message.protocolVersion = reader.string();
978
+ continue;
979
+ }
980
+ if ((tag & 7) == 4 || tag == 0) {
981
+ break;
982
+ }
983
+ reader.skipType(tag & 7);
984
+ }
985
+ return message;
986
+ },
987
+
988
+ fromJSON(object: any): AboutResponse_BffInfo {
989
+ return {
990
+ healthy: isSet(object.healthy) ? Boolean(object.healthy) : false,
991
+ version: isSet(object.version) ? String(object.version) : undefined,
992
+ commitHash: isSet(object.commitHash) ? String(object.commitHash) : undefined,
993
+ publicUrl: isSet(object.publicUrl) ? String(object.publicUrl) : "",
994
+ userCount: isSet(object.userCount) ? Number(object.userCount) : undefined,
995
+ protocolVersion: isSet(object.protocolVersion) ? String(object.protocolVersion) : undefined,
996
+ };
997
+ },
998
+
999
+ toJSON(message: AboutResponse_BffInfo): unknown {
1000
+ const obj: any = {};
1001
+ message.healthy !== undefined && (obj.healthy = message.healthy);
1002
+ message.version !== undefined && (obj.version = message.version);
1003
+ message.commitHash !== undefined && (obj.commitHash = message.commitHash);
1004
+ message.publicUrl !== undefined && (obj.publicUrl = message.publicUrl);
1005
+ message.userCount !== undefined && (obj.userCount = Math.round(message.userCount));
1006
+ message.protocolVersion !== undefined && (obj.protocolVersion = message.protocolVersion);
1007
+ return obj;
1008
+ },
1009
+
1010
+ create<I extends Exact<DeepPartial<AboutResponse_BffInfo>, I>>(base?: I): AboutResponse_BffInfo {
1011
+ return AboutResponse_BffInfo.fromPartial(base ?? {});
1012
+ },
1013
+
1014
+ fromPartial<I extends Exact<DeepPartial<AboutResponse_BffInfo>, I>>(object: I): AboutResponse_BffInfo {
1015
+ const message = createBaseAboutResponse_BffInfo();
1016
+ message.healthy = object.healthy ?? false;
1017
+ message.version = object.version ?? undefined;
1018
+ message.commitHash = object.commitHash ?? undefined;
1019
+ message.publicUrl = object.publicUrl ?? "";
1020
+ message.userCount = object.userCount ?? undefined;
1021
+ message.protocolVersion = object.protocolVersion ?? undefined;
1022
+ return message;
1023
+ },
1024
+ };
1025
+
1026
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
1027
+
1028
+ export type DeepPartial<T> = T extends Builtin ? T
1029
+ : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
1030
+ : T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
1031
+ : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
1032
+ : Partial<T>;
1033
+
1034
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
1035
+ export type Exact<P, I extends P> = P extends Builtin ? P
1036
+ : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
1037
+
1038
+ function isSet(value: any): boolean {
1039
+ return value !== null && value !== undefined;
1040
+ }