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