@dcl/protocol 1.0.0-6200210039.commit-75f18e8 → 1.0.0-6313239013.commit-438d6b3

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