@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
package/README.md CHANGED
@@ -16,7 +16,7 @@ protoc \
16
16
  --dcl_ts_proto_out="$(pwd)/out-ts" \
17
17
  -I="$(pwd)/node_modules/@dcl/protocol/public" \
18
18
  -I="$(pwd)/node_modules/@dcl/protocol/proto" \
19
- "$(pwd)/node_modules/@dcl/protocol/public/bff-services.proto"
19
+ "$(pwd)/node_modules/@dcl/protocol/public/sdk-components.proto"
20
20
  ```
21
21
 
22
22
  # Style Guidelines
@@ -64,16 +64,6 @@ Some guidelines and testing before merge:
64
64
  Repositories: [kernel](https://github.com/decentraland/kernel/), [js-sdk-toolchain](https://github.com/decentraland/js-sdk-toolchain/) and [scene-runtime](https://github.com/decentraland/scene-runtime/)
65
65
  In this case, there is no problem with when each PR is merged. It's recommendable to merge first the rpc server-side (in this case, Kernel), second the `scene-runtime` (and this would require a second update from `kernel`) and last the `js-sdk-toolchain`.
66
66
 
67
- ## Renderer protocol (RPC)
68
-
69
- Repositories: [kernel](https://github.com/decentraland/kernel/) and [unity-renderer](https://github.com/decentraland/unity-renderer/)
70
-
71
- TODO
72
-
73
- ## BFF
74
-
75
- TODO
76
-
77
67
  ## Comms
78
68
 
79
69
  TODO
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/protocol",
3
- "version": "1.0.0-6200210039.commit-75f18e8",
3
+ "version": "1.0.0-6313239013.commit-438d6b3",
4
4
  "description": "",
5
5
  "repository": "decentraland/protocol.git",
6
6
  "homepage": "https://github.com/decentraland/protocol#readme",
@@ -29,5 +29,5 @@
29
29
  "out-js",
30
30
  "public"
31
31
  ],
32
- "commit": "75f18e8094a0435594eecfbb6e020614b2a86c69"
32
+ "commit": "438d6b3eb0fadd1b352b9e68880bd5bcab8f16d0"
33
33
  }
@@ -1 +0,0 @@
1
- export declare const protobufPackage = "v1_0_0";
@@ -1,6 +0,0 @@
1
- "use strict";
2
- /* eslint-disable */
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.protobufPackage = void 0;
5
- exports.protobufPackage = "v1_0_0";
6
- //# sourceMappingURL=bff-services.gen.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bff-services.gen.js","sourceRoot":"","sources":["../out-ts/bff-services.gen.ts"],"names":[],"mappings":";AAAA,oBAAoB;;;AAEP,QAAA,eAAe,GAAG,QAAQ,CAAC"}
@@ -1,115 +0,0 @@
1
- import _m0 from "protobufjs/minimal";
2
- import { Empty } from "../../google/protobuf/empty.gen";
3
- export declare const protobufPackage = "decentraland.bff";
4
- export declare enum DisconnectionReason {
5
- DR_KICKED = 0,
6
- UNRECOGNIZED = -1
7
- }
8
- export declare function disconnectionReasonFromJSON(object: any): DisconnectionReason;
9
- export declare function disconnectionReasonToJSON(object: DisconnectionReason): string;
10
- export interface GetChallengeRequest {
11
- address: string;
12
- }
13
- export interface GetChallengeResponse {
14
- challengeToSign: string;
15
- alreadyConnected: boolean;
16
- }
17
- export interface SignedChallenge {
18
- authChainJson: string;
19
- }
20
- export interface WelcomePeerInformation {
21
- peerId: string;
22
- /** list of available modules in this BFF */
23
- availableModules: string[];
24
- }
25
- export interface DisconnectionMessage {
26
- reason: DisconnectionReason;
27
- }
28
- export declare namespace GetChallengeRequest {
29
- function encode(message: GetChallengeRequest, writer?: _m0.Writer): _m0.Writer;
30
- function decode(input: _m0.Reader | Uint8Array, length?: number): GetChallengeRequest;
31
- function fromJSON(object: any): GetChallengeRequest;
32
- function toJSON(message: GetChallengeRequest): unknown;
33
- function create<I extends Exact<DeepPartial<GetChallengeRequest>, I>>(base?: I): GetChallengeRequest;
34
- function fromPartial<I extends Exact<DeepPartial<GetChallengeRequest>, I>>(object: I): GetChallengeRequest;
35
- }
36
- export declare namespace GetChallengeResponse {
37
- function encode(message: GetChallengeResponse, writer?: _m0.Writer): _m0.Writer;
38
- function decode(input: _m0.Reader | Uint8Array, length?: number): GetChallengeResponse;
39
- function fromJSON(object: any): GetChallengeResponse;
40
- function toJSON(message: GetChallengeResponse): unknown;
41
- function create<I extends Exact<DeepPartial<GetChallengeResponse>, I>>(base?: I): GetChallengeResponse;
42
- function fromPartial<I extends Exact<DeepPartial<GetChallengeResponse>, I>>(object: I): GetChallengeResponse;
43
- }
44
- export declare namespace SignedChallenge {
45
- function encode(message: SignedChallenge, writer?: _m0.Writer): _m0.Writer;
46
- function decode(input: _m0.Reader | Uint8Array, length?: number): SignedChallenge;
47
- function fromJSON(object: any): SignedChallenge;
48
- function toJSON(message: SignedChallenge): unknown;
49
- function create<I extends Exact<DeepPartial<SignedChallenge>, I>>(base?: I): SignedChallenge;
50
- function fromPartial<I extends Exact<DeepPartial<SignedChallenge>, I>>(object: I): SignedChallenge;
51
- }
52
- export declare namespace WelcomePeerInformation {
53
- function encode(message: WelcomePeerInformation, writer?: _m0.Writer): _m0.Writer;
54
- function decode(input: _m0.Reader | Uint8Array, length?: number): WelcomePeerInformation;
55
- function fromJSON(object: any): WelcomePeerInformation;
56
- function toJSON(message: WelcomePeerInformation): unknown;
57
- function create<I extends Exact<DeepPartial<WelcomePeerInformation>, I>>(base?: I): WelcomePeerInformation;
58
- function fromPartial<I extends Exact<DeepPartial<WelcomePeerInformation>, I>>(object: I): WelcomePeerInformation;
59
- }
60
- export declare namespace DisconnectionMessage {
61
- function encode(message: DisconnectionMessage, writer?: _m0.Writer): _m0.Writer;
62
- function decode(input: _m0.Reader | Uint8Array, length?: number): DisconnectionMessage;
63
- function fromJSON(object: any): DisconnectionMessage;
64
- function toJSON(message: DisconnectionMessage): unknown;
65
- function create<I extends Exact<DeepPartial<DisconnectionMessage>, I>>(base?: I): DisconnectionMessage;
66
- function fromPartial<I extends Exact<DeepPartial<DisconnectionMessage>, I>>(object: I): DisconnectionMessage;
67
- }
68
- export type BffAuthenticationServiceDefinition = typeof BffAuthenticationServiceDefinition;
69
- export declare const BffAuthenticationServiceDefinition: {
70
- readonly name: "BffAuthenticationService";
71
- readonly fullName: "decentraland.bff.BffAuthenticationService";
72
- readonly methods: {
73
- readonly getChallenge: {
74
- readonly name: "GetChallenge";
75
- readonly requestType: typeof GetChallengeRequest;
76
- readonly requestStream: false;
77
- readonly responseType: typeof GetChallengeResponse;
78
- readonly responseStream: false;
79
- readonly options: {};
80
- };
81
- readonly authenticate: {
82
- readonly name: "Authenticate";
83
- readonly requestType: typeof SignedChallenge;
84
- readonly requestStream: false;
85
- readonly responseType: typeof WelcomePeerInformation;
86
- readonly responseStream: false;
87
- readonly options: {};
88
- };
89
- readonly getDisconnectionMessage: {
90
- readonly name: "GetDisconnectionMessage";
91
- readonly requestType: typeof Empty;
92
- readonly requestStream: false;
93
- readonly responseType: typeof DisconnectionMessage;
94
- readonly responseStream: false;
95
- readonly options: {};
96
- };
97
- };
98
- };
99
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
100
- export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {
101
- $case: string;
102
- } ? {
103
- [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
104
- } & {
105
- $case: T["$case"];
106
- } : T extends {} ? {
107
- [K in keyof T]?: DeepPartial<T[K]>;
108
- } : Partial<T>;
109
- type KeysOfUnion<T> = T extends T ? keyof T : never;
110
- export type Exact<P, I extends P> = P extends Builtin ? P : P & {
111
- [K in keyof P]: Exact<P[K], I[K]>;
112
- } & {
113
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
114
- };
115
- export {};
@@ -1,386 +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.BffAuthenticationServiceDefinition = exports.DisconnectionMessage = exports.WelcomePeerInformation = exports.SignedChallenge = exports.GetChallengeResponse = exports.GetChallengeRequest = exports.disconnectionReasonToJSON = exports.disconnectionReasonFromJSON = exports.DisconnectionReason = 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
- var DisconnectionReason;
12
- (function (DisconnectionReason) {
13
- DisconnectionReason[DisconnectionReason["DR_KICKED"] = 0] = "DR_KICKED";
14
- DisconnectionReason[DisconnectionReason["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
15
- })(DisconnectionReason || (exports.DisconnectionReason = DisconnectionReason = {}));
16
- function disconnectionReasonFromJSON(object) {
17
- switch (object) {
18
- case 0:
19
- case "DR_KICKED":
20
- return DisconnectionReason.DR_KICKED;
21
- case -1:
22
- case "UNRECOGNIZED":
23
- default:
24
- return DisconnectionReason.UNRECOGNIZED;
25
- }
26
- }
27
- exports.disconnectionReasonFromJSON = disconnectionReasonFromJSON;
28
- function disconnectionReasonToJSON(object) {
29
- switch (object) {
30
- case DisconnectionReason.DR_KICKED:
31
- return "DR_KICKED";
32
- case DisconnectionReason.UNRECOGNIZED:
33
- default:
34
- return "UNRECOGNIZED";
35
- }
36
- }
37
- exports.disconnectionReasonToJSON = disconnectionReasonToJSON;
38
- function createBaseGetChallengeRequest() {
39
- return { address: "" };
40
- }
41
- var GetChallengeRequest;
42
- (function (GetChallengeRequest) {
43
- function encode(message, writer = minimal_1.default.Writer.create()) {
44
- if (message.address !== "") {
45
- writer.uint32(10).string(message.address);
46
- }
47
- return writer;
48
- }
49
- GetChallengeRequest.encode = encode;
50
- function decode(input, length) {
51
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
52
- let end = length === undefined ? reader.len : reader.pos + length;
53
- const message = createBaseGetChallengeRequest();
54
- while (reader.pos < end) {
55
- const tag = reader.uint32();
56
- switch (tag >>> 3) {
57
- case 1:
58
- if (tag !== 10) {
59
- break;
60
- }
61
- message.address = reader.string();
62
- continue;
63
- }
64
- if ((tag & 7) === 4 || tag === 0) {
65
- break;
66
- }
67
- reader.skipType(tag & 7);
68
- }
69
- return message;
70
- }
71
- GetChallengeRequest.decode = decode;
72
- function fromJSON(object) {
73
- return { address: isSet(object.address) ? String(object.address) : "" };
74
- }
75
- GetChallengeRequest.fromJSON = fromJSON;
76
- function toJSON(message) {
77
- const obj = {};
78
- message.address !== undefined && (obj.address = message.address);
79
- return obj;
80
- }
81
- GetChallengeRequest.toJSON = toJSON;
82
- function create(base) {
83
- return GetChallengeRequest.fromPartial(base !== null && base !== void 0 ? base : {});
84
- }
85
- GetChallengeRequest.create = create;
86
- function fromPartial(object) {
87
- var _a;
88
- const message = createBaseGetChallengeRequest();
89
- message.address = (_a = object.address) !== null && _a !== void 0 ? _a : "";
90
- return message;
91
- }
92
- GetChallengeRequest.fromPartial = fromPartial;
93
- })(GetChallengeRequest || (exports.GetChallengeRequest = GetChallengeRequest = {}));
94
- function createBaseGetChallengeResponse() {
95
- return { challengeToSign: "", alreadyConnected: false };
96
- }
97
- var GetChallengeResponse;
98
- (function (GetChallengeResponse) {
99
- function encode(message, writer = minimal_1.default.Writer.create()) {
100
- if (message.challengeToSign !== "") {
101
- writer.uint32(10).string(message.challengeToSign);
102
- }
103
- if (message.alreadyConnected === true) {
104
- writer.uint32(16).bool(message.alreadyConnected);
105
- }
106
- return writer;
107
- }
108
- GetChallengeResponse.encode = encode;
109
- function decode(input, length) {
110
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
111
- let end = length === undefined ? reader.len : reader.pos + length;
112
- const message = createBaseGetChallengeResponse();
113
- while (reader.pos < end) {
114
- const tag = reader.uint32();
115
- switch (tag >>> 3) {
116
- case 1:
117
- if (tag !== 10) {
118
- break;
119
- }
120
- message.challengeToSign = reader.string();
121
- continue;
122
- case 2:
123
- if (tag !== 16) {
124
- break;
125
- }
126
- message.alreadyConnected = reader.bool();
127
- continue;
128
- }
129
- if ((tag & 7) === 4 || tag === 0) {
130
- break;
131
- }
132
- reader.skipType(tag & 7);
133
- }
134
- return message;
135
- }
136
- GetChallengeResponse.decode = decode;
137
- function fromJSON(object) {
138
- return {
139
- challengeToSign: isSet(object.challengeToSign) ? String(object.challengeToSign) : "",
140
- alreadyConnected: isSet(object.alreadyConnected) ? Boolean(object.alreadyConnected) : false,
141
- };
142
- }
143
- GetChallengeResponse.fromJSON = fromJSON;
144
- function toJSON(message) {
145
- const obj = {};
146
- message.challengeToSign !== undefined && (obj.challengeToSign = message.challengeToSign);
147
- message.alreadyConnected !== undefined && (obj.alreadyConnected = message.alreadyConnected);
148
- return obj;
149
- }
150
- GetChallengeResponse.toJSON = toJSON;
151
- function create(base) {
152
- return GetChallengeResponse.fromPartial(base !== null && base !== void 0 ? base : {});
153
- }
154
- GetChallengeResponse.create = create;
155
- function fromPartial(object) {
156
- var _a, _b;
157
- const message = createBaseGetChallengeResponse();
158
- message.challengeToSign = (_a = object.challengeToSign) !== null && _a !== void 0 ? _a : "";
159
- message.alreadyConnected = (_b = object.alreadyConnected) !== null && _b !== void 0 ? _b : false;
160
- return message;
161
- }
162
- GetChallengeResponse.fromPartial = fromPartial;
163
- })(GetChallengeResponse || (exports.GetChallengeResponse = GetChallengeResponse = {}));
164
- function createBaseSignedChallenge() {
165
- return { authChainJson: "" };
166
- }
167
- var SignedChallenge;
168
- (function (SignedChallenge) {
169
- function encode(message, writer = minimal_1.default.Writer.create()) {
170
- if (message.authChainJson !== "") {
171
- writer.uint32(10).string(message.authChainJson);
172
- }
173
- return writer;
174
- }
175
- SignedChallenge.encode = encode;
176
- function decode(input, length) {
177
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
178
- let end = length === undefined ? reader.len : reader.pos + length;
179
- const message = createBaseSignedChallenge();
180
- while (reader.pos < end) {
181
- const tag = reader.uint32();
182
- switch (tag >>> 3) {
183
- case 1:
184
- if (tag !== 10) {
185
- break;
186
- }
187
- message.authChainJson = reader.string();
188
- continue;
189
- }
190
- if ((tag & 7) === 4 || tag === 0) {
191
- break;
192
- }
193
- reader.skipType(tag & 7);
194
- }
195
- return message;
196
- }
197
- SignedChallenge.decode = decode;
198
- function fromJSON(object) {
199
- return { authChainJson: isSet(object.authChainJson) ? String(object.authChainJson) : "" };
200
- }
201
- SignedChallenge.fromJSON = fromJSON;
202
- function toJSON(message) {
203
- const obj = {};
204
- message.authChainJson !== undefined && (obj.authChainJson = message.authChainJson);
205
- return obj;
206
- }
207
- SignedChallenge.toJSON = toJSON;
208
- function create(base) {
209
- return SignedChallenge.fromPartial(base !== null && base !== void 0 ? base : {});
210
- }
211
- SignedChallenge.create = create;
212
- function fromPartial(object) {
213
- var _a;
214
- const message = createBaseSignedChallenge();
215
- message.authChainJson = (_a = object.authChainJson) !== null && _a !== void 0 ? _a : "";
216
- return message;
217
- }
218
- SignedChallenge.fromPartial = fromPartial;
219
- })(SignedChallenge || (exports.SignedChallenge = SignedChallenge = {}));
220
- function createBaseWelcomePeerInformation() {
221
- return { peerId: "", availableModules: [] };
222
- }
223
- var WelcomePeerInformation;
224
- (function (WelcomePeerInformation) {
225
- function encode(message, writer = minimal_1.default.Writer.create()) {
226
- if (message.peerId !== "") {
227
- writer.uint32(10).string(message.peerId);
228
- }
229
- for (const v of message.availableModules) {
230
- writer.uint32(18).string(v);
231
- }
232
- return writer;
233
- }
234
- WelcomePeerInformation.encode = encode;
235
- function decode(input, length) {
236
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
237
- let end = length === undefined ? reader.len : reader.pos + length;
238
- const message = createBaseWelcomePeerInformation();
239
- while (reader.pos < end) {
240
- const tag = reader.uint32();
241
- switch (tag >>> 3) {
242
- case 1:
243
- if (tag !== 10) {
244
- break;
245
- }
246
- message.peerId = reader.string();
247
- continue;
248
- case 2:
249
- if (tag !== 18) {
250
- break;
251
- }
252
- message.availableModules.push(reader.string());
253
- continue;
254
- }
255
- if ((tag & 7) === 4 || tag === 0) {
256
- break;
257
- }
258
- reader.skipType(tag & 7);
259
- }
260
- return message;
261
- }
262
- WelcomePeerInformation.decode = decode;
263
- function fromJSON(object) {
264
- return {
265
- peerId: isSet(object.peerId) ? String(object.peerId) : "",
266
- availableModules: Array.isArray(object === null || object === void 0 ? void 0 : object.availableModules)
267
- ? object.availableModules.map((e) => String(e))
268
- : [],
269
- };
270
- }
271
- WelcomePeerInformation.fromJSON = fromJSON;
272
- function toJSON(message) {
273
- const obj = {};
274
- message.peerId !== undefined && (obj.peerId = message.peerId);
275
- if (message.availableModules) {
276
- obj.availableModules = message.availableModules.map((e) => e);
277
- }
278
- else {
279
- obj.availableModules = [];
280
- }
281
- return obj;
282
- }
283
- WelcomePeerInformation.toJSON = toJSON;
284
- function create(base) {
285
- return WelcomePeerInformation.fromPartial(base !== null && base !== void 0 ? base : {});
286
- }
287
- WelcomePeerInformation.create = create;
288
- function fromPartial(object) {
289
- var _a, _b;
290
- const message = createBaseWelcomePeerInformation();
291
- message.peerId = (_a = object.peerId) !== null && _a !== void 0 ? _a : "";
292
- message.availableModules = ((_b = object.availableModules) === null || _b === void 0 ? void 0 : _b.map((e) => e)) || [];
293
- return message;
294
- }
295
- WelcomePeerInformation.fromPartial = fromPartial;
296
- })(WelcomePeerInformation || (exports.WelcomePeerInformation = WelcomePeerInformation = {}));
297
- function createBaseDisconnectionMessage() {
298
- return { reason: 0 };
299
- }
300
- var DisconnectionMessage;
301
- (function (DisconnectionMessage) {
302
- function encode(message, writer = minimal_1.default.Writer.create()) {
303
- if (message.reason !== 0) {
304
- writer.uint32(8).int32(message.reason);
305
- }
306
- return writer;
307
- }
308
- DisconnectionMessage.encode = encode;
309
- function decode(input, length) {
310
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
311
- let end = length === undefined ? reader.len : reader.pos + length;
312
- const message = createBaseDisconnectionMessage();
313
- while (reader.pos < end) {
314
- const tag = reader.uint32();
315
- switch (tag >>> 3) {
316
- case 1:
317
- if (tag !== 8) {
318
- break;
319
- }
320
- message.reason = reader.int32();
321
- continue;
322
- }
323
- if ((tag & 7) === 4 || tag === 0) {
324
- break;
325
- }
326
- reader.skipType(tag & 7);
327
- }
328
- return message;
329
- }
330
- DisconnectionMessage.decode = decode;
331
- function fromJSON(object) {
332
- return { reason: isSet(object.reason) ? disconnectionReasonFromJSON(object.reason) : 0 };
333
- }
334
- DisconnectionMessage.fromJSON = fromJSON;
335
- function toJSON(message) {
336
- const obj = {};
337
- message.reason !== undefined && (obj.reason = disconnectionReasonToJSON(message.reason));
338
- return obj;
339
- }
340
- DisconnectionMessage.toJSON = toJSON;
341
- function create(base) {
342
- return DisconnectionMessage.fromPartial(base !== null && base !== void 0 ? base : {});
343
- }
344
- DisconnectionMessage.create = create;
345
- function fromPartial(object) {
346
- var _a;
347
- const message = createBaseDisconnectionMessage();
348
- message.reason = (_a = object.reason) !== null && _a !== void 0 ? _a : 0;
349
- return message;
350
- }
351
- DisconnectionMessage.fromPartial = fromPartial;
352
- })(DisconnectionMessage || (exports.DisconnectionMessage = DisconnectionMessage = {}));
353
- exports.BffAuthenticationServiceDefinition = {
354
- name: "BffAuthenticationService",
355
- fullName: "decentraland.bff.BffAuthenticationService",
356
- methods: {
357
- getChallenge: {
358
- name: "GetChallenge",
359
- requestType: GetChallengeRequest,
360
- requestStream: false,
361
- responseType: GetChallengeResponse,
362
- responseStream: false,
363
- options: {},
364
- },
365
- authenticate: {
366
- name: "Authenticate",
367
- requestType: SignedChallenge,
368
- requestStream: false,
369
- responseType: WelcomePeerInformation,
370
- responseStream: false,
371
- options: {},
372
- },
373
- getDisconnectionMessage: {
374
- name: "GetDisconnectionMessage",
375
- requestType: empty_gen_1.Empty,
376
- requestStream: false,
377
- responseType: DisconnectionMessage,
378
- responseStream: false,
379
- options: {},
380
- },
381
- },
382
- };
383
- function isSet(value) {
384
- return value !== null && value !== undefined;
385
- }
386
- //# sourceMappingURL=authentication_service.gen.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"authentication_service.gen.js","sourceRoot":"","sources":["../../../out-ts/decentraland/bff/authentication_service.gen.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,iEAAqC;AACrC,+DAAwD;AAE3C,QAAA,eAAe,GAAG,kBAAkB,CAAC;AAElD,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC7B,uEAAa,CAAA;IACb,8EAAiB,CAAA;AACnB,CAAC,EAHW,mBAAmB,mCAAnB,mBAAmB,QAG9B;AAED,SAAgB,2BAA2B,CAAC,MAAW;IACrD,QAAQ,MAAM,EAAE;QACd,KAAK,CAAC,CAAC;QACP,KAAK,WAAW;YACd,OAAO,mBAAmB,CAAC,SAAS,CAAC;QACvC,KAAK,CAAC,CAAC,CAAC;QACR,KAAK,cAAc,CAAC;QACpB;YACE,OAAO,mBAAmB,CAAC,YAAY,CAAC;KAC3C;AACH,CAAC;AAVD,kEAUC;AAED,SAAgB,yBAAyB,CAAC,MAA2B;IACnE,QAAQ,MAAM,EAAE;QACd,KAAK,mBAAmB,CAAC,SAAS;YAChC,OAAO,WAAW,CAAC;QACrB,KAAK,mBAAmB,CAAC,YAAY,CAAC;QACtC;YACE,OAAO,cAAc,CAAC;KACzB;AACH,CAAC;AARD,8DAQC;AAyBD,SAAS,6BAA6B;IACpC,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;AACzB,CAAC;AAED,IAAiB,mBAAmB,CAkDnC;AAlDD,WAAiB,mBAAmB;IAClC,SAAgB,MAAM,CAAC,OAA4B,EAAE,SAAqB,iBAAG,CAAC,MAAM,CAAC,MAAM,EAAE;QAC3F,IAAI,OAAO,CAAC,OAAO,KAAK,EAAE,EAAE;YAC1B,MAAM,CAAC,M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CAAA;AACH,CAAC,EAlDgB,oBAAoB,oCAApB,oBAAoB,QAkDpC;AAGY,QAAA,kCAAkC,GAAG;IAChD,IAAI,EAAE,0BAA0B;IAChC,QAAQ,EAAE,2CAA2C;IACrD,OAAO,EAAE;QACP,YAAY,EAAE;YACZ,IAAI,EAAE,cAAc;YACpB,WAAW,EAAE,mBAAmB;YAChC,aAAa,EAAE,KAAK;YACpB,YAAY,EAAE,oBAAoB;YAClC,cAAc,EAAE,KAAK;YACrB,OAAO,EAAE,EAAE;SACZ;QACD,YAAY,EAAE;YACZ,IAAI,EAAE,cAAc;YACpB,WAAW,EAAE,eAAe;YAC5B,aAAa,EAAE,KAAK;YACpB,YAAY,EAAE,sBAAsB;YACpC,cAAc,EAAE,KAAK;YACrB,OAAO,EAAE,EAAE;SACZ;QACD,uBAAuB,EAAE;YACvB,IAAI,EAAE,yBAAyB;YAC/B,WAAW,EAAE,iBAAK;YAClB,aAAa,EAAE,KAAK;YACpB,YAAY,EAAE,oBAAoB;YAClC,cAAc,EAAE,KAAK;YACrB,OAAO,EAAE,EAAE;SACZ;KACF;CACO,CAAC;AAcX,SAAS,KAAK,CAAC,KAAU;IACvB,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;AAC/C,CAAC"}
@@ -1,89 +0,0 @@
1
- import _m0 from "protobufjs/minimal";
2
- import { Empty } from "../../google/protobuf/empty.gen";
3
- import { Position } from "../common/vectors.gen";
4
- export declare const protobufPackage = "decentraland.bff";
5
- export interface WorldCommand {
6
- command?: {
7
- $case: "setCommsAdapter";
8
- setCommsAdapter: SetCommsAdapter;
9
- } | undefined;
10
- }
11
- export interface SetCommsAdapter {
12
- connectionString: string;
13
- }
14
- export interface Heartbeat {
15
- position: Position | undefined;
16
- desiredRoom?: string | undefined;
17
- }
18
- export declare namespace WorldCommand {
19
- function encode(message: WorldCommand, writer?: _m0.Writer): _m0.Writer;
20
- function decode(input: _m0.Reader | Uint8Array, length?: number): WorldCommand;
21
- function fromJSON(object: any): WorldCommand;
22
- function toJSON(message: WorldCommand): unknown;
23
- function create<I extends Exact<DeepPartial<WorldCommand>, I>>(base?: I): WorldCommand;
24
- function fromPartial<I extends Exact<DeepPartial<WorldCommand>, I>>(object: I): WorldCommand;
25
- }
26
- export declare namespace SetCommsAdapter {
27
- function encode(message: SetCommsAdapter, writer?: _m0.Writer): _m0.Writer;
28
- function decode(input: _m0.Reader | Uint8Array, length?: number): SetCommsAdapter;
29
- function fromJSON(object: any): SetCommsAdapter;
30
- function toJSON(message: SetCommsAdapter): unknown;
31
- function create<I extends Exact<DeepPartial<SetCommsAdapter>, I>>(base?: I): SetCommsAdapter;
32
- function fromPartial<I extends Exact<DeepPartial<SetCommsAdapter>, I>>(object: I): SetCommsAdapter;
33
- }
34
- export declare namespace Heartbeat {
35
- function encode(message: Heartbeat, writer?: _m0.Writer): _m0.Writer;
36
- function decode(input: _m0.Reader | Uint8Array, length?: number): Heartbeat;
37
- function fromJSON(object: any): Heartbeat;
38
- function toJSON(message: Heartbeat): unknown;
39
- function create<I extends Exact<DeepPartial<Heartbeat>, I>>(base?: I): Heartbeat;
40
- function fromPartial<I extends Exact<DeepPartial<Heartbeat>, I>>(object: I): Heartbeat;
41
- }
42
- export type CommsDirectorServiceDefinition = typeof CommsDirectorServiceDefinition;
43
- export declare const CommsDirectorServiceDefinition: {
44
- readonly name: "CommsDirectorService";
45
- readonly fullName: "decentraland.bff.CommsDirectorService";
46
- readonly methods: {
47
- /**
48
- * every couple seconds AND at the beginning, the explorers must send a heartbeat
49
- * to make the comms director aware of their location
50
- */
51
- readonly sendHeartbeat: {
52
- readonly name: "SendHeartbeat";
53
- readonly requestType: typeof Heartbeat;
54
- readonly requestStream: false;
55
- readonly responseType: typeof Empty;
56
- readonly responseStream: false;
57
- readonly options: {};
58
- };
59
- /**
60
- * before sending the first heartbeat, it is required that the explorers subscribe
61
- * to a list of comms commands
62
- */
63
- readonly getCommsCommands: {
64
- readonly name: "GetCommsCommands";
65
- readonly requestType: typeof Empty;
66
- readonly requestStream: false;
67
- readonly responseType: typeof WorldCommand;
68
- readonly responseStream: true;
69
- readonly options: {};
70
- };
71
- };
72
- };
73
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
74
- export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {
75
- $case: string;
76
- } ? {
77
- [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
78
- } & {
79
- $case: T["$case"];
80
- } : T extends {} ? {
81
- [K in keyof T]?: DeepPartial<T[K]>;
82
- } : Partial<T>;
83
- type KeysOfUnion<T> = T extends T ? keyof T : never;
84
- export type Exact<P, I extends P> = P extends Builtin ? P : P & {
85
- [K in keyof P]: Exact<P[K], I[K]>;
86
- } & {
87
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
88
- };
89
- export {};