@dcl/protocol 1.0.0-3160772301.commit-334e7a1 → 1.0.0-3199325469.commit-c9bc23f

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 (83) hide show
  1. package/README.md +19 -0
  2. package/bff/authentication-service.proto +3 -0
  3. package/bff/comms-director-service.proto +33 -0
  4. package/bff/comms-service.proto +2 -26
  5. package/bff/http-endpoints.proto +9 -10
  6. package/bff/topics-service.proto +35 -0
  7. package/bff-services.proto +16 -0
  8. package/{kernel/apis/common → common}/ContentMapping.proto +1 -0
  9. package/common/Entity.proto +13 -0
  10. package/common/Vectors.proto +19 -0
  11. package/ecs/components/Animator.proto +1 -1
  12. package/ecs/components/AudioSource.proto +1 -1
  13. package/ecs/components/AudioStream.proto +1 -1
  14. package/ecs/components/AvatarAttach.proto +1 -1
  15. package/ecs/components/AvatarModifierArea.proto +2 -2
  16. package/ecs/components/AvatarShape.proto +2 -2
  17. package/ecs/components/Billboard.proto +1 -1
  18. package/ecs/components/BoxShape.proto +1 -1
  19. package/ecs/components/CameraMode.proto +2 -2
  20. package/ecs/components/CameraModeArea.proto +3 -3
  21. package/ecs/components/CylinderShape.proto +1 -1
  22. package/ecs/components/GltfContainer.proto +1 -1
  23. package/ecs/components/Material.proto +2 -2
  24. package/ecs/components/MeshCollider.proto +1 -1
  25. package/ecs/components/MeshRenderer.proto +1 -1
  26. package/ecs/components/NFTShape.proto +2 -2
  27. package/ecs/components/OnPointerDown.proto +2 -2
  28. package/ecs/components/OnPointerDownResult.proto +3 -3
  29. package/ecs/components/OnPointerUp.proto +2 -2
  30. package/ecs/components/OnPointerUpResult.proto +3 -3
  31. package/ecs/components/PlaneShape.proto +1 -1
  32. package/ecs/components/PointerEvents.proto +2 -2
  33. package/ecs/components/PointerEventsResult.proto +4 -4
  34. package/ecs/components/PointerLock.proto +1 -1
  35. package/ecs/components/README.md +1 -1
  36. package/ecs/components/Raycast.proto +2 -2
  37. package/ecs/components/RaycastResult.proto +2 -2
  38. package/ecs/components/SphereShape.proto +1 -1
  39. package/ecs/components/TextShape.proto +2 -2
  40. package/ecs/components/UiStyles.proto +2 -2
  41. package/ecs/components/UiText.proto +2 -2
  42. package/ecs/components/UiTransform.proto +1 -1
  43. package/ecs/components/VisibilityComponent.proto +1 -1
  44. package/ecs/components/common/ActionButton.proto +1 -1
  45. package/kernel/apis/EnvironmentAPI.proto +1 -1
  46. package/kernel/apis/ParcelIdentity.proto +1 -1
  47. package/kernel/apis/Players.proto +1 -1
  48. package/kernel/apis/UserIdentity.proto +1 -1
  49. package/kernel/apis/{common → common-sdk}/UserData.proto +0 -0
  50. package/kernel/comms/comms-rfc-4.proto +2 -0
  51. package/kernel/comms/v3/archipelago.proto +0 -4
  52. package/out-ts/bff/authentication-service.gen.ts +278 -0
  53. package/out-ts/bff/comms-director-service.gen.ts +225 -0
  54. package/out-ts/bff/comms-service.gen.ts +193 -0
  55. package/out-ts/bff/http-endpoints.gen.ts +662 -0
  56. package/out-ts/bff/topics-service.gen.ts +404 -0
  57. package/out-ts/bff-services.gen.ts +3 -0
  58. package/out-ts/common/ContentMapping.gen.ts +79 -0
  59. package/out-ts/common/Vectors.gen.ts +225 -0
  60. package/out-ts/google/api/annotations.gen.ts +3 -0
  61. package/out-ts/google/api/http.gen.ts +286 -0
  62. package/out-ts/google/protobuf/descriptor.gen.ts +2860 -0
  63. package/out-ts/google/protobuf/empty.gen.ts +66 -0
  64. package/out-ts/kernel/apis/CommunicationsController.gen.ts +128 -0
  65. package/out-ts/kernel/apis/DevTools.gen.ts +140 -0
  66. package/out-ts/kernel/apis/EngineAPI.gen.ts +2128 -0
  67. package/out-ts/kernel/apis/EnvironmentAPI.gen.ts +1050 -0
  68. package/out-ts/kernel/apis/EthereumController.gen.ts +806 -0
  69. package/out-ts/kernel/apis/ExperimentalAPI.gen.ts +278 -0
  70. package/out-ts/kernel/apis/ParcelIdentity.gen.ts +516 -0
  71. package/out-ts/kernel/apis/Permissions.gen.ts +332 -0
  72. package/out-ts/kernel/apis/Players.gen.ts +344 -0
  73. package/out-ts/kernel/apis/PortableExperiences.gen.ts +520 -0
  74. package/out-ts/kernel/apis/RestrictedActions.gen.ts +320 -0
  75. package/out-ts/kernel/apis/SceneStateStorageController.gen.ts +1331 -0
  76. package/out-ts/kernel/apis/SignedFetch.gen.ts +428 -0
  77. package/out-ts/kernel/apis/SocialController.gen.ts +195 -0
  78. package/out-ts/kernel/apis/UserActionModule.gen.ts +128 -0
  79. package/out-ts/kernel/apis/UserIdentity.gen.ts +230 -0
  80. package/out-ts/kernel/apis/common-sdk/UserData.gen.ts +298 -0
  81. package/out-ts/sdk-apis.gen.ts +3 -0
  82. package/package.json +16 -5
  83. package/sdk-apis.proto +22 -0
@@ -0,0 +1,662 @@
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
+ }
15
+
16
+ export interface AboutResponse_AboutConfiguration {
17
+ realmName?: string | undefined;
18
+ networkId: number;
19
+ globalScenesUrn: string[];
20
+ scenesUrn: string[];
21
+ }
22
+
23
+ export interface AboutResponse_ContentInfo {
24
+ /** common properties */
25
+ healthy: boolean;
26
+ version?: string | undefined;
27
+ commitHash?: string | undefined;
28
+ publicUrl: string;
29
+ }
30
+
31
+ export interface AboutResponse_LambdasInfo {
32
+ /** common properties */
33
+ healthy: boolean;
34
+ version?: string | undefined;
35
+ commitHash?: string | undefined;
36
+ publicUrl: string;
37
+ }
38
+
39
+ export interface AboutResponse_CommsInfo {
40
+ /** common properties */
41
+ healthy: boolean;
42
+ version?: string | undefined;
43
+ commitHash?: string | undefined;
44
+ publicUrl?:
45
+ | string
46
+ | undefined;
47
+ /** specific properties */
48
+ protocol: string;
49
+ usersCount?: number | undefined;
50
+ fixedAdapter?: string | undefined;
51
+ }
52
+
53
+ export interface AboutResponse_BffInfo {
54
+ /** common properties */
55
+ healthy: boolean;
56
+ version?: string | undefined;
57
+ commitHash?: string | undefined;
58
+ publicUrl: string;
59
+ /** specific properties */
60
+ userCount?: number | undefined;
61
+ protocolVersion?: string | undefined;
62
+ }
63
+
64
+ function createBaseAboutResponse(): AboutResponse {
65
+ return {
66
+ healthy: false,
67
+ configurations: undefined,
68
+ content: undefined,
69
+ comms: undefined,
70
+ lambdas: undefined,
71
+ bff: undefined,
72
+ };
73
+ }
74
+
75
+ export const AboutResponse = {
76
+ encode(message: AboutResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
77
+ if (message.healthy === true) {
78
+ writer.uint32(8).bool(message.healthy);
79
+ }
80
+ if (message.configurations !== undefined) {
81
+ AboutResponse_AboutConfiguration.encode(message.configurations, writer.uint32(18).fork()).ldelim();
82
+ }
83
+ if (message.content !== undefined) {
84
+ AboutResponse_ContentInfo.encode(message.content, writer.uint32(26).fork()).ldelim();
85
+ }
86
+ if (message.comms !== undefined) {
87
+ AboutResponse_CommsInfo.encode(message.comms, writer.uint32(34).fork()).ldelim();
88
+ }
89
+ if (message.lambdas !== undefined) {
90
+ AboutResponse_LambdasInfo.encode(message.lambdas, writer.uint32(42).fork()).ldelim();
91
+ }
92
+ if (message.bff !== undefined) {
93
+ AboutResponse_BffInfo.encode(message.bff, writer.uint32(50).fork()).ldelim();
94
+ }
95
+ return writer;
96
+ },
97
+
98
+ decode(input: _m0.Reader | Uint8Array, length?: number): AboutResponse {
99
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
100
+ let end = length === undefined ? reader.len : reader.pos + length;
101
+ const message = createBaseAboutResponse();
102
+ while (reader.pos < end) {
103
+ const tag = reader.uint32();
104
+ switch (tag >>> 3) {
105
+ case 1:
106
+ message.healthy = reader.bool();
107
+ break;
108
+ case 2:
109
+ message.configurations = AboutResponse_AboutConfiguration.decode(reader, reader.uint32());
110
+ break;
111
+ case 3:
112
+ message.content = AboutResponse_ContentInfo.decode(reader, reader.uint32());
113
+ break;
114
+ case 4:
115
+ message.comms = AboutResponse_CommsInfo.decode(reader, reader.uint32());
116
+ break;
117
+ case 5:
118
+ message.lambdas = AboutResponse_LambdasInfo.decode(reader, reader.uint32());
119
+ break;
120
+ case 6:
121
+ message.bff = AboutResponse_BffInfo.decode(reader, reader.uint32());
122
+ break;
123
+ default:
124
+ reader.skipType(tag & 7);
125
+ break;
126
+ }
127
+ }
128
+ return message;
129
+ },
130
+
131
+ fromJSON(object: any): AboutResponse {
132
+ return {
133
+ healthy: isSet(object.healthy) ? Boolean(object.healthy) : false,
134
+ configurations: isSet(object.configurations)
135
+ ? AboutResponse_AboutConfiguration.fromJSON(object.configurations)
136
+ : undefined,
137
+ content: isSet(object.content) ? AboutResponse_ContentInfo.fromJSON(object.content) : undefined,
138
+ comms: isSet(object.comms) ? AboutResponse_CommsInfo.fromJSON(object.comms) : undefined,
139
+ lambdas: isSet(object.lambdas) ? AboutResponse_LambdasInfo.fromJSON(object.lambdas) : undefined,
140
+ bff: isSet(object.bff) ? AboutResponse_BffInfo.fromJSON(object.bff) : undefined,
141
+ };
142
+ },
143
+
144
+ toJSON(message: AboutResponse): unknown {
145
+ const obj: any = {};
146
+ message.healthy !== undefined && (obj.healthy = message.healthy);
147
+ message.configurations !== undefined && (obj.configurations = message.configurations
148
+ ? AboutResponse_AboutConfiguration.toJSON(message.configurations)
149
+ : undefined);
150
+ message.content !== undefined &&
151
+ (obj.content = message.content ? AboutResponse_ContentInfo.toJSON(message.content) : undefined);
152
+ message.comms !== undefined &&
153
+ (obj.comms = message.comms ? AboutResponse_CommsInfo.toJSON(message.comms) : undefined);
154
+ message.lambdas !== undefined &&
155
+ (obj.lambdas = message.lambdas ? AboutResponse_LambdasInfo.toJSON(message.lambdas) : undefined);
156
+ message.bff !== undefined && (obj.bff = message.bff ? AboutResponse_BffInfo.toJSON(message.bff) : undefined);
157
+ return obj;
158
+ },
159
+
160
+ fromPartial<I extends Exact<DeepPartial<AboutResponse>, I>>(object: I): AboutResponse {
161
+ const message = createBaseAboutResponse();
162
+ message.healthy = object.healthy ?? false;
163
+ message.configurations = (object.configurations !== undefined && object.configurations !== null)
164
+ ? AboutResponse_AboutConfiguration.fromPartial(object.configurations)
165
+ : undefined;
166
+ message.content = (object.content !== undefined && object.content !== null)
167
+ ? AboutResponse_ContentInfo.fromPartial(object.content)
168
+ : undefined;
169
+ message.comms = (object.comms !== undefined && object.comms !== null)
170
+ ? AboutResponse_CommsInfo.fromPartial(object.comms)
171
+ : undefined;
172
+ message.lambdas = (object.lambdas !== undefined && object.lambdas !== null)
173
+ ? AboutResponse_LambdasInfo.fromPartial(object.lambdas)
174
+ : undefined;
175
+ message.bff = (object.bff !== undefined && object.bff !== null)
176
+ ? AboutResponse_BffInfo.fromPartial(object.bff)
177
+ : undefined;
178
+ return message;
179
+ },
180
+ };
181
+
182
+ function createBaseAboutResponse_AboutConfiguration(): AboutResponse_AboutConfiguration {
183
+ return { realmName: undefined, networkId: 0, globalScenesUrn: [], scenesUrn: [] };
184
+ }
185
+
186
+ export const AboutResponse_AboutConfiguration = {
187
+ encode(message: AboutResponse_AboutConfiguration, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
188
+ if (message.realmName !== undefined) {
189
+ writer.uint32(10).string(message.realmName);
190
+ }
191
+ if (message.networkId !== 0) {
192
+ writer.uint32(16).uint32(message.networkId);
193
+ }
194
+ for (const v of message.globalScenesUrn) {
195
+ writer.uint32(26).string(v!);
196
+ }
197
+ for (const v of message.scenesUrn) {
198
+ writer.uint32(34).string(v!);
199
+ }
200
+ return writer;
201
+ },
202
+
203
+ decode(input: _m0.Reader | Uint8Array, length?: number): AboutResponse_AboutConfiguration {
204
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
205
+ let end = length === undefined ? reader.len : reader.pos + length;
206
+ const message = createBaseAboutResponse_AboutConfiguration();
207
+ while (reader.pos < end) {
208
+ const tag = reader.uint32();
209
+ switch (tag >>> 3) {
210
+ case 1:
211
+ message.realmName = reader.string();
212
+ break;
213
+ case 2:
214
+ message.networkId = reader.uint32();
215
+ break;
216
+ case 3:
217
+ message.globalScenesUrn.push(reader.string());
218
+ break;
219
+ case 4:
220
+ message.scenesUrn.push(reader.string());
221
+ break;
222
+ default:
223
+ reader.skipType(tag & 7);
224
+ break;
225
+ }
226
+ }
227
+ return message;
228
+ },
229
+
230
+ fromJSON(object: any): AboutResponse_AboutConfiguration {
231
+ return {
232
+ realmName: isSet(object.realmName) ? String(object.realmName) : undefined,
233
+ networkId: isSet(object.networkId) ? Number(object.networkId) : 0,
234
+ globalScenesUrn: Array.isArray(object?.globalScenesUrn) ? object.globalScenesUrn.map((e: any) => String(e)) : [],
235
+ scenesUrn: Array.isArray(object?.scenesUrn) ? object.scenesUrn.map((e: any) => String(e)) : [],
236
+ };
237
+ },
238
+
239
+ toJSON(message: AboutResponse_AboutConfiguration): unknown {
240
+ const obj: any = {};
241
+ message.realmName !== undefined && (obj.realmName = message.realmName);
242
+ message.networkId !== undefined && (obj.networkId = Math.round(message.networkId));
243
+ if (message.globalScenesUrn) {
244
+ obj.globalScenesUrn = message.globalScenesUrn.map((e) => e);
245
+ } else {
246
+ obj.globalScenesUrn = [];
247
+ }
248
+ if (message.scenesUrn) {
249
+ obj.scenesUrn = message.scenesUrn.map((e) => e);
250
+ } else {
251
+ obj.scenesUrn = [];
252
+ }
253
+ return obj;
254
+ },
255
+
256
+ fromPartial<I extends Exact<DeepPartial<AboutResponse_AboutConfiguration>, I>>(
257
+ object: I,
258
+ ): AboutResponse_AboutConfiguration {
259
+ const message = createBaseAboutResponse_AboutConfiguration();
260
+ message.realmName = object.realmName ?? undefined;
261
+ message.networkId = object.networkId ?? 0;
262
+ message.globalScenesUrn = object.globalScenesUrn?.map((e) => e) || [];
263
+ message.scenesUrn = object.scenesUrn?.map((e) => e) || [];
264
+ return message;
265
+ },
266
+ };
267
+
268
+ function createBaseAboutResponse_ContentInfo(): AboutResponse_ContentInfo {
269
+ return { healthy: false, version: undefined, commitHash: undefined, publicUrl: "" };
270
+ }
271
+
272
+ export const AboutResponse_ContentInfo = {
273
+ encode(message: AboutResponse_ContentInfo, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
274
+ if (message.healthy === true) {
275
+ writer.uint32(8).bool(message.healthy);
276
+ }
277
+ if (message.version !== undefined) {
278
+ writer.uint32(18).string(message.version);
279
+ }
280
+ if (message.commitHash !== undefined) {
281
+ writer.uint32(26).string(message.commitHash);
282
+ }
283
+ if (message.publicUrl !== "") {
284
+ writer.uint32(34).string(message.publicUrl);
285
+ }
286
+ return writer;
287
+ },
288
+
289
+ decode(input: _m0.Reader | Uint8Array, length?: number): AboutResponse_ContentInfo {
290
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
291
+ let end = length === undefined ? reader.len : reader.pos + length;
292
+ const message = createBaseAboutResponse_ContentInfo();
293
+ while (reader.pos < end) {
294
+ const tag = reader.uint32();
295
+ switch (tag >>> 3) {
296
+ case 1:
297
+ message.healthy = reader.bool();
298
+ break;
299
+ case 2:
300
+ message.version = reader.string();
301
+ break;
302
+ case 3:
303
+ message.commitHash = reader.string();
304
+ break;
305
+ case 4:
306
+ message.publicUrl = reader.string();
307
+ break;
308
+ default:
309
+ reader.skipType(tag & 7);
310
+ break;
311
+ }
312
+ }
313
+ return message;
314
+ },
315
+
316
+ fromJSON(object: any): AboutResponse_ContentInfo {
317
+ return {
318
+ healthy: isSet(object.healthy) ? Boolean(object.healthy) : false,
319
+ version: isSet(object.version) ? String(object.version) : undefined,
320
+ commitHash: isSet(object.commitHash) ? String(object.commitHash) : undefined,
321
+ publicUrl: isSet(object.publicUrl) ? String(object.publicUrl) : "",
322
+ };
323
+ },
324
+
325
+ toJSON(message: AboutResponse_ContentInfo): unknown {
326
+ const obj: any = {};
327
+ message.healthy !== undefined && (obj.healthy = message.healthy);
328
+ message.version !== undefined && (obj.version = message.version);
329
+ message.commitHash !== undefined && (obj.commitHash = message.commitHash);
330
+ message.publicUrl !== undefined && (obj.publicUrl = message.publicUrl);
331
+ return obj;
332
+ },
333
+
334
+ fromPartial<I extends Exact<DeepPartial<AboutResponse_ContentInfo>, I>>(object: I): AboutResponse_ContentInfo {
335
+ const message = createBaseAboutResponse_ContentInfo();
336
+ message.healthy = object.healthy ?? false;
337
+ message.version = object.version ?? undefined;
338
+ message.commitHash = object.commitHash ?? undefined;
339
+ message.publicUrl = object.publicUrl ?? "";
340
+ return message;
341
+ },
342
+ };
343
+
344
+ function createBaseAboutResponse_LambdasInfo(): AboutResponse_LambdasInfo {
345
+ return { healthy: false, version: undefined, commitHash: undefined, publicUrl: "" };
346
+ }
347
+
348
+ export const AboutResponse_LambdasInfo = {
349
+ encode(message: AboutResponse_LambdasInfo, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
350
+ if (message.healthy === true) {
351
+ writer.uint32(8).bool(message.healthy);
352
+ }
353
+ if (message.version !== undefined) {
354
+ writer.uint32(18).string(message.version);
355
+ }
356
+ if (message.commitHash !== undefined) {
357
+ writer.uint32(26).string(message.commitHash);
358
+ }
359
+ if (message.publicUrl !== "") {
360
+ writer.uint32(34).string(message.publicUrl);
361
+ }
362
+ return writer;
363
+ },
364
+
365
+ decode(input: _m0.Reader | Uint8Array, length?: number): AboutResponse_LambdasInfo {
366
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
367
+ let end = length === undefined ? reader.len : reader.pos + length;
368
+ const message = createBaseAboutResponse_LambdasInfo();
369
+ while (reader.pos < end) {
370
+ const tag = reader.uint32();
371
+ switch (tag >>> 3) {
372
+ case 1:
373
+ message.healthy = reader.bool();
374
+ break;
375
+ case 2:
376
+ message.version = reader.string();
377
+ break;
378
+ case 3:
379
+ message.commitHash = reader.string();
380
+ break;
381
+ case 4:
382
+ message.publicUrl = reader.string();
383
+ break;
384
+ default:
385
+ reader.skipType(tag & 7);
386
+ break;
387
+ }
388
+ }
389
+ return message;
390
+ },
391
+
392
+ fromJSON(object: any): AboutResponse_LambdasInfo {
393
+ return {
394
+ healthy: isSet(object.healthy) ? Boolean(object.healthy) : false,
395
+ version: isSet(object.version) ? String(object.version) : undefined,
396
+ commitHash: isSet(object.commitHash) ? String(object.commitHash) : undefined,
397
+ publicUrl: isSet(object.publicUrl) ? String(object.publicUrl) : "",
398
+ };
399
+ },
400
+
401
+ toJSON(message: AboutResponse_LambdasInfo): unknown {
402
+ const obj: any = {};
403
+ message.healthy !== undefined && (obj.healthy = message.healthy);
404
+ message.version !== undefined && (obj.version = message.version);
405
+ message.commitHash !== undefined && (obj.commitHash = message.commitHash);
406
+ message.publicUrl !== undefined && (obj.publicUrl = message.publicUrl);
407
+ return obj;
408
+ },
409
+
410
+ fromPartial<I extends Exact<DeepPartial<AboutResponse_LambdasInfo>, I>>(object: I): AboutResponse_LambdasInfo {
411
+ const message = createBaseAboutResponse_LambdasInfo();
412
+ message.healthy = object.healthy ?? false;
413
+ message.version = object.version ?? undefined;
414
+ message.commitHash = object.commitHash ?? undefined;
415
+ message.publicUrl = object.publicUrl ?? "";
416
+ return message;
417
+ },
418
+ };
419
+
420
+ function createBaseAboutResponse_CommsInfo(): AboutResponse_CommsInfo {
421
+ return {
422
+ healthy: false,
423
+ version: undefined,
424
+ commitHash: undefined,
425
+ publicUrl: undefined,
426
+ protocol: "",
427
+ usersCount: undefined,
428
+ fixedAdapter: undefined,
429
+ };
430
+ }
431
+
432
+ export const AboutResponse_CommsInfo = {
433
+ encode(message: AboutResponse_CommsInfo, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
434
+ if (message.healthy === true) {
435
+ writer.uint32(8).bool(message.healthy);
436
+ }
437
+ if (message.version !== undefined) {
438
+ writer.uint32(18).string(message.version);
439
+ }
440
+ if (message.commitHash !== undefined) {
441
+ writer.uint32(26).string(message.commitHash);
442
+ }
443
+ if (message.publicUrl !== undefined) {
444
+ writer.uint32(34).string(message.publicUrl);
445
+ }
446
+ if (message.protocol !== "") {
447
+ writer.uint32(402).string(message.protocol);
448
+ }
449
+ if (message.usersCount !== undefined) {
450
+ writer.uint32(408).int32(message.usersCount);
451
+ }
452
+ if (message.fixedAdapter !== undefined) {
453
+ writer.uint32(418).string(message.fixedAdapter);
454
+ }
455
+ return writer;
456
+ },
457
+
458
+ decode(input: _m0.Reader | Uint8Array, length?: number): AboutResponse_CommsInfo {
459
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
460
+ let end = length === undefined ? reader.len : reader.pos + length;
461
+ const message = createBaseAboutResponse_CommsInfo();
462
+ while (reader.pos < end) {
463
+ const tag = reader.uint32();
464
+ switch (tag >>> 3) {
465
+ case 1:
466
+ message.healthy = reader.bool();
467
+ break;
468
+ case 2:
469
+ message.version = reader.string();
470
+ break;
471
+ case 3:
472
+ message.commitHash = reader.string();
473
+ break;
474
+ case 4:
475
+ message.publicUrl = reader.string();
476
+ break;
477
+ case 50:
478
+ message.protocol = reader.string();
479
+ break;
480
+ case 51:
481
+ message.usersCount = reader.int32();
482
+ break;
483
+ case 52:
484
+ message.fixedAdapter = reader.string();
485
+ break;
486
+ default:
487
+ reader.skipType(tag & 7);
488
+ break;
489
+ }
490
+ }
491
+ return message;
492
+ },
493
+
494
+ fromJSON(object: any): AboutResponse_CommsInfo {
495
+ return {
496
+ healthy: isSet(object.healthy) ? Boolean(object.healthy) : false,
497
+ version: isSet(object.version) ? String(object.version) : undefined,
498
+ commitHash: isSet(object.commitHash) ? String(object.commitHash) : undefined,
499
+ publicUrl: isSet(object.publicUrl) ? String(object.publicUrl) : undefined,
500
+ protocol: isSet(object.protocol) ? String(object.protocol) : "",
501
+ usersCount: isSet(object.usersCount) ? Number(object.usersCount) : undefined,
502
+ fixedAdapter: isSet(object.fixedAdapter) ? String(object.fixedAdapter) : undefined,
503
+ };
504
+ },
505
+
506
+ toJSON(message: AboutResponse_CommsInfo): unknown {
507
+ const obj: any = {};
508
+ message.healthy !== undefined && (obj.healthy = message.healthy);
509
+ message.version !== undefined && (obj.version = message.version);
510
+ message.commitHash !== undefined && (obj.commitHash = message.commitHash);
511
+ message.publicUrl !== undefined && (obj.publicUrl = message.publicUrl);
512
+ message.protocol !== undefined && (obj.protocol = message.protocol);
513
+ message.usersCount !== undefined && (obj.usersCount = Math.round(message.usersCount));
514
+ message.fixedAdapter !== undefined && (obj.fixedAdapter = message.fixedAdapter);
515
+ return obj;
516
+ },
517
+
518
+ fromPartial<I extends Exact<DeepPartial<AboutResponse_CommsInfo>, I>>(object: I): AboutResponse_CommsInfo {
519
+ const message = createBaseAboutResponse_CommsInfo();
520
+ message.healthy = object.healthy ?? false;
521
+ message.version = object.version ?? undefined;
522
+ message.commitHash = object.commitHash ?? undefined;
523
+ message.publicUrl = object.publicUrl ?? undefined;
524
+ message.protocol = object.protocol ?? "";
525
+ message.usersCount = object.usersCount ?? undefined;
526
+ message.fixedAdapter = object.fixedAdapter ?? undefined;
527
+ return message;
528
+ },
529
+ };
530
+
531
+ function createBaseAboutResponse_BffInfo(): AboutResponse_BffInfo {
532
+ return {
533
+ healthy: false,
534
+ version: undefined,
535
+ commitHash: undefined,
536
+ publicUrl: "",
537
+ userCount: undefined,
538
+ protocolVersion: undefined,
539
+ };
540
+ }
541
+
542
+ export const AboutResponse_BffInfo = {
543
+ encode(message: AboutResponse_BffInfo, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
544
+ if (message.healthy === true) {
545
+ writer.uint32(8).bool(message.healthy);
546
+ }
547
+ if (message.version !== undefined) {
548
+ writer.uint32(18).string(message.version);
549
+ }
550
+ if (message.commitHash !== undefined) {
551
+ writer.uint32(26).string(message.commitHash);
552
+ }
553
+ if (message.publicUrl !== "") {
554
+ writer.uint32(34).string(message.publicUrl);
555
+ }
556
+ if (message.userCount !== undefined) {
557
+ writer.uint32(408).int32(message.userCount);
558
+ }
559
+ if (message.protocolVersion !== undefined) {
560
+ writer.uint32(418).string(message.protocolVersion);
561
+ }
562
+ return writer;
563
+ },
564
+
565
+ decode(input: _m0.Reader | Uint8Array, length?: number): AboutResponse_BffInfo {
566
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
567
+ let end = length === undefined ? reader.len : reader.pos + length;
568
+ const message = createBaseAboutResponse_BffInfo();
569
+ while (reader.pos < end) {
570
+ const tag = reader.uint32();
571
+ switch (tag >>> 3) {
572
+ case 1:
573
+ message.healthy = reader.bool();
574
+ break;
575
+ case 2:
576
+ message.version = reader.string();
577
+ break;
578
+ case 3:
579
+ message.commitHash = reader.string();
580
+ break;
581
+ case 4:
582
+ message.publicUrl = reader.string();
583
+ break;
584
+ case 51:
585
+ message.userCount = reader.int32();
586
+ break;
587
+ case 52:
588
+ message.protocolVersion = reader.string();
589
+ break;
590
+ default:
591
+ reader.skipType(tag & 7);
592
+ break;
593
+ }
594
+ }
595
+ return message;
596
+ },
597
+
598
+ fromJSON(object: any): AboutResponse_BffInfo {
599
+ return {
600
+ healthy: isSet(object.healthy) ? Boolean(object.healthy) : false,
601
+ version: isSet(object.version) ? String(object.version) : undefined,
602
+ commitHash: isSet(object.commitHash) ? String(object.commitHash) : undefined,
603
+ publicUrl: isSet(object.publicUrl) ? String(object.publicUrl) : "",
604
+ userCount: isSet(object.userCount) ? Number(object.userCount) : undefined,
605
+ protocolVersion: isSet(object.protocolVersion) ? String(object.protocolVersion) : undefined,
606
+ };
607
+ },
608
+
609
+ toJSON(message: AboutResponse_BffInfo): unknown {
610
+ const obj: any = {};
611
+ message.healthy !== undefined && (obj.healthy = message.healthy);
612
+ message.version !== undefined && (obj.version = message.version);
613
+ message.commitHash !== undefined && (obj.commitHash = message.commitHash);
614
+ message.publicUrl !== undefined && (obj.publicUrl = message.publicUrl);
615
+ message.userCount !== undefined && (obj.userCount = Math.round(message.userCount));
616
+ message.protocolVersion !== undefined && (obj.protocolVersion = message.protocolVersion);
617
+ return obj;
618
+ },
619
+
620
+ fromPartial<I extends Exact<DeepPartial<AboutResponse_BffInfo>, I>>(object: I): AboutResponse_BffInfo {
621
+ const message = createBaseAboutResponse_BffInfo();
622
+ message.healthy = object.healthy ?? false;
623
+ message.version = object.version ?? undefined;
624
+ message.commitHash = object.commitHash ?? undefined;
625
+ message.publicUrl = object.publicUrl ?? "";
626
+ message.userCount = object.userCount ?? undefined;
627
+ message.protocolVersion = object.protocolVersion ?? undefined;
628
+ return message;
629
+ },
630
+ };
631
+
632
+ export type HttpEndpointsDefinition = typeof HttpEndpointsDefinition;
633
+ export const HttpEndpointsDefinition = {
634
+ name: "HttpEndpoints",
635
+ fullName: "decentraland.bff.HttpEndpoints",
636
+ methods: {
637
+ /** Returns the status and configuration of the bff microservice */
638
+ about: {
639
+ name: "About",
640
+ requestType: Empty,
641
+ requestStream: false,
642
+ responseType: AboutResponse,
643
+ responseStream: false,
644
+ options: {},
645
+ },
646
+ },
647
+ } as const;
648
+
649
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
650
+
651
+ export type DeepPartial<T> = T extends Builtin ? T
652
+ : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
653
+ : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
654
+ : Partial<T>;
655
+
656
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
657
+ export type Exact<P, I extends P> = P extends Builtin ? P
658
+ : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
659
+
660
+ function isSet(value: any): boolean {
661
+ return value !== null && value !== undefined;
662
+ }