@dcl/protocol 1.0.0-6200210039.commit-75f18e8 → 1.0.0-6314457636.commit-a9a962a

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 (41) hide show
  1. package/README.md +1 -11
  2. package/out-js/decentraland/sdk/components/animator.gen.d.ts +0 -2
  3. package/out-js/decentraland/sdk/components/animator.gen.js +8 -28
  4. package/out-js/decentraland/sdk/components/animator.gen.js.map +1 -1
  5. package/out-ts/decentraland/sdk/components/animator.gen.ts +1 -24
  6. package/package.json +2 -2
  7. package/proto/decentraland/sdk/components/animator.proto +1 -1
  8. package/out-js/bff-services.gen.d.ts +0 -1
  9. package/out-js/bff-services.gen.js +0 -6
  10. package/out-js/bff-services.gen.js.map +0 -1
  11. package/out-js/decentraland/bff/authentication_service.gen.d.ts +0 -115
  12. package/out-js/decentraland/bff/authentication_service.gen.js +0 -386
  13. package/out-js/decentraland/bff/authentication_service.gen.js.map +0 -1
  14. package/out-js/decentraland/bff/comms_director_service.gen.d.ts +0 -89
  15. package/out-js/decentraland/bff/comms_director_service.gen.js +0 -250
  16. package/out-js/decentraland/bff/comms_director_service.gen.js.map +0 -1
  17. package/out-js/decentraland/bff/comms_service.gen.d.ts +0 -106
  18. package/out-js/decentraland/bff/comms_service.gen.js +0 -189
  19. package/out-js/decentraland/bff/comms_service.gen.js.map +0 -1
  20. package/out-js/decentraland/bff/http_endpoints.gen.d.ts +0 -168
  21. package/out-js/decentraland/bff/http_endpoints.gen.js +0 -949
  22. package/out-js/decentraland/bff/http_endpoints.gen.js.map +0 -1
  23. package/out-js/decentraland/bff/topics_service.gen.d.ts +0 -110
  24. package/out-js/decentraland/bff/topics_service.gen.js +0 -421
  25. package/out-js/decentraland/bff/topics_service.gen.js.map +0 -1
  26. package/out-js/google/protobuf/empty.gen.d.ts +0 -38
  27. package/out-js/google/protobuf/empty.gen.js +0 -54
  28. package/out-js/google/protobuf/empty.gen.js.map +0 -1
  29. package/out-ts/bff-services.gen.ts +0 -3
  30. package/out-ts/decentraland/bff/authentication_service.gen.ts +0 -421
  31. package/out-ts/decentraland/bff/comms_director_service.gen.ts +0 -273
  32. package/out-ts/decentraland/bff/comms_service.gen.ts +0 -212
  33. package/out-ts/decentraland/bff/http_endpoints.gen.ts +0 -1100
  34. package/out-ts/decentraland/bff/topics_service.gen.ts +0 -478
  35. package/out-ts/google/protobuf/empty.gen.ts +0 -72
  36. package/proto/decentraland/bff/authentication_service.proto +0 -39
  37. package/proto/decentraland/bff/comms_director_service.proto +0 -33
  38. package/proto/decentraland/bff/comms_service.proto +0 -25
  39. package/proto/decentraland/bff/http_endpoints.proto +0 -81
  40. package/proto/decentraland/bff/topics_service.proto +0 -34
  41. package/public/bff-services.proto +0 -16
@@ -1,38 +0,0 @@
1
- import _m0 from "protobufjs/minimal";
2
- export declare const protobufPackage = "google.protobuf";
3
- /**
4
- * A generic empty message that you can re-use to avoid defining duplicated
5
- * empty messages in your APIs. A typical example is to use it as the request
6
- * or the response type of an API method. For instance:
7
- *
8
- * service Foo {
9
- * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
10
- * }
11
- */
12
- export interface Empty {
13
- }
14
- export declare namespace Empty {
15
- function encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
16
- function decode(input: _m0.Reader | Uint8Array, length?: number): Empty;
17
- function fromJSON(_: any): Empty;
18
- function toJSON(_: Empty): unknown;
19
- function create<I extends Exact<DeepPartial<Empty>, I>>(base?: I): Empty;
20
- function fromPartial<I extends Exact<DeepPartial<Empty>, I>>(_: I): Empty;
21
- }
22
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
23
- 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 {
24
- $case: string;
25
- } ? {
26
- [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
27
- } & {
28
- $case: T["$case"];
29
- } : T extends {} ? {
30
- [K in keyof T]?: DeepPartial<T[K]>;
31
- } : Partial<T>;
32
- type KeysOfUnion<T> = T extends T ? keyof T : never;
33
- export type Exact<P, I extends P> = P extends Builtin ? P : P & {
34
- [K in keyof P]: Exact<P[K], I[K]>;
35
- } & {
36
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
37
- };
38
- export {};
@@ -1,54 +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.Empty = exports.protobufPackage = void 0;
7
- /* eslint-disable */
8
- const minimal_1 = __importDefault(require("protobufjs/minimal"));
9
- exports.protobufPackage = "google.protobuf";
10
- function createBaseEmpty() {
11
- return {};
12
- }
13
- var Empty;
14
- (function (Empty) {
15
- function encode(_, writer = minimal_1.default.Writer.create()) {
16
- return writer;
17
- }
18
- Empty.encode = encode;
19
- function decode(input, length) {
20
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
21
- let end = length === undefined ? reader.len : reader.pos + length;
22
- const message = createBaseEmpty();
23
- while (reader.pos < end) {
24
- const tag = reader.uint32();
25
- switch (tag >>> 3) {
26
- }
27
- if ((tag & 7) === 4 || tag === 0) {
28
- break;
29
- }
30
- reader.skipType(tag & 7);
31
- }
32
- return message;
33
- }
34
- Empty.decode = decode;
35
- function fromJSON(_) {
36
- return {};
37
- }
38
- Empty.fromJSON = fromJSON;
39
- function toJSON(_) {
40
- const obj = {};
41
- return obj;
42
- }
43
- Empty.toJSON = toJSON;
44
- function create(base) {
45
- return Empty.fromPartial(base !== null && base !== void 0 ? base : {});
46
- }
47
- Empty.create = create;
48
- function fromPartial(_) {
49
- const message = createBaseEmpty();
50
- return message;
51
- }
52
- Empty.fromPartial = fromPartial;
53
- })(Empty || (exports.Empty = Empty = {}));
54
- //# sourceMappingURL=empty.gen.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"empty.gen.js","sourceRoot":"","sources":["../../../out-ts/google/protobuf/empty.gen.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,iEAAqC;AAExB,QAAA,eAAe,GAAG,iBAAiB,CAAC;AAcjD,SAAS,eAAe;IACtB,OAAO,EAAE,CAAC;AACZ,CAAC;AAED,IAAiB,KAAK,CAsCrB;AAtCD,WAAiB,KAAK;IACpB,SAAgB,MAAM,CAAC,CAAQ,EAAE,SAAqB,iBAAG,CAAC,MAAM,CAAC,MAAM,EAAE;QACvE,OAAO,MAAM,CAAC;IAChB,CAAC;IAFe,YAAM,SAErB,CAAA;IAED,SAAgB,MAAM,CAAC,KAA8B,EAAE,MAAe;QACpE,MAAM,MAAM,GAAG,KAAK,YAAY,iBAAG,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,iBAAG,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC9E,IAAI,GAAG,GAAG,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,GAAG,MAAM,CAAC;QAClE,MAAM,OAAO,GAAG,eAAe,EAAE,CAAC;QAClC,OAAO,MAAM,CAAC,GAAG,GAAG,GAAG,EAAE;YACvB,MAAM,GAAG,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC;YAC5B,QAAQ,GAAG,KAAK,CAAC,EAAE;aAClB;YACD,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC,EAAE;gBAChC,MAAM;aACP;YACD,MAAM,CAAC,QAAQ,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;SAC1B;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IAde,YAAM,SAcrB,CAAA;IAED,SAAgB,QAAQ,CAAC,CAAM;QAC7B,OAAO,EAAE,CAAC;IACZ,CAAC;IAFe,cAAQ,WAEvB,CAAA;IAED,SAAgB,MAAM,CAAC,CAAQ;QAC7B,MAAM,GAAG,GAAQ,EAAE,CAAC;QACpB,OAAO,GAAG,CAAC;IACb,CAAC;IAHe,YAAM,SAGrB,CAAA;IAED,SAAgB,MAAM,CAAyC,IAAQ;QACrE,OAAO,KAAK,CAAC,WAAW,CAAC,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,EAAE,CAAC,CAAC;IACvC,CAAC;IAFe,YAAM,SAErB,CAAA;IAED,SAAgB,WAAW,CAAyC,CAAI;QACtE,MAAM,OAAO,GAAG,eAAe,EAAE,CAAC;QAClC,OAAO,OAAO,CAAC;IACjB,CAAC;IAHe,iBAAW,cAG1B,CAAA;AACH,CAAC,EAtCgB,KAAK,qBAAL,KAAK,QAsCrB"}
@@ -1,3 +0,0 @@
1
- /* eslint-disable */
2
-
3
- export const protobufPackage = "v1_0_0";
@@ -1,421 +0,0 @@
1
- /* eslint-disable */
2
- import _m0 from "protobufjs/minimal";
3
- import { Empty } from "../../google/protobuf/empty.gen";
4
-
5
- export const protobufPackage = "decentraland.bff";
6
-
7
- export enum DisconnectionReason {
8
- DR_KICKED = 0,
9
- UNRECOGNIZED = -1,
10
- }
11
-
12
- export function disconnectionReasonFromJSON(object: any): DisconnectionReason {
13
- switch (object) {
14
- case 0:
15
- case "DR_KICKED":
16
- return DisconnectionReason.DR_KICKED;
17
- case -1:
18
- case "UNRECOGNIZED":
19
- default:
20
- return DisconnectionReason.UNRECOGNIZED;
21
- }
22
- }
23
-
24
- export function disconnectionReasonToJSON(object: DisconnectionReason): string {
25
- switch (object) {
26
- case DisconnectionReason.DR_KICKED:
27
- return "DR_KICKED";
28
- case DisconnectionReason.UNRECOGNIZED:
29
- default:
30
- return "UNRECOGNIZED";
31
- }
32
- }
33
-
34
- export interface GetChallengeRequest {
35
- address: string;
36
- }
37
-
38
- export interface GetChallengeResponse {
39
- challengeToSign: string;
40
- alreadyConnected: boolean;
41
- }
42
-
43
- export interface SignedChallenge {
44
- authChainJson: string;
45
- }
46
-
47
- export interface WelcomePeerInformation {
48
- peerId: string;
49
- /** list of available modules in this BFF */
50
- availableModules: string[];
51
- }
52
-
53
- export interface DisconnectionMessage {
54
- reason: DisconnectionReason;
55
- }
56
-
57
- function createBaseGetChallengeRequest(): GetChallengeRequest {
58
- return { address: "" };
59
- }
60
-
61
- export namespace GetChallengeRequest {
62
- export function encode(message: GetChallengeRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
63
- if (message.address !== "") {
64
- writer.uint32(10).string(message.address);
65
- }
66
- return writer;
67
- }
68
-
69
- export function decode(input: _m0.Reader | Uint8Array, length?: number): GetChallengeRequest {
70
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
71
- let end = length === undefined ? reader.len : reader.pos + length;
72
- const message = createBaseGetChallengeRequest();
73
- while (reader.pos < end) {
74
- const tag = reader.uint32();
75
- switch (tag >>> 3) {
76
- case 1:
77
- if (tag !== 10) {
78
- break;
79
- }
80
-
81
- message.address = reader.string();
82
- continue;
83
- }
84
- if ((tag & 7) === 4 || tag === 0) {
85
- break;
86
- }
87
- reader.skipType(tag & 7);
88
- }
89
- return message;
90
- }
91
-
92
- export function fromJSON(object: any): GetChallengeRequest {
93
- return { address: isSet(object.address) ? String(object.address) : "" };
94
- }
95
-
96
- export function toJSON(message: GetChallengeRequest): unknown {
97
- const obj: any = {};
98
- message.address !== undefined && (obj.address = message.address);
99
- return obj;
100
- }
101
-
102
- export function create<I extends Exact<DeepPartial<GetChallengeRequest>, I>>(base?: I): GetChallengeRequest {
103
- return GetChallengeRequest.fromPartial(base ?? {});
104
- }
105
-
106
- export function fromPartial<I extends Exact<DeepPartial<GetChallengeRequest>, I>>(object: I): GetChallengeRequest {
107
- const message = createBaseGetChallengeRequest();
108
- message.address = object.address ?? "";
109
- return message;
110
- }
111
- }
112
-
113
- function createBaseGetChallengeResponse(): GetChallengeResponse {
114
- return { challengeToSign: "", alreadyConnected: false };
115
- }
116
-
117
- export namespace GetChallengeResponse {
118
- export function encode(message: GetChallengeResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
119
- if (message.challengeToSign !== "") {
120
- writer.uint32(10).string(message.challengeToSign);
121
- }
122
- if (message.alreadyConnected === true) {
123
- writer.uint32(16).bool(message.alreadyConnected);
124
- }
125
- return writer;
126
- }
127
-
128
- export function decode(input: _m0.Reader | Uint8Array, length?: number): GetChallengeResponse {
129
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
130
- let end = length === undefined ? reader.len : reader.pos + length;
131
- const message = createBaseGetChallengeResponse();
132
- while (reader.pos < end) {
133
- const tag = reader.uint32();
134
- switch (tag >>> 3) {
135
- case 1:
136
- if (tag !== 10) {
137
- break;
138
- }
139
-
140
- message.challengeToSign = reader.string();
141
- continue;
142
- case 2:
143
- if (tag !== 16) {
144
- break;
145
- }
146
-
147
- message.alreadyConnected = reader.bool();
148
- continue;
149
- }
150
- if ((tag & 7) === 4 || tag === 0) {
151
- break;
152
- }
153
- reader.skipType(tag & 7);
154
- }
155
- return message;
156
- }
157
-
158
- export function fromJSON(object: any): GetChallengeResponse {
159
- return {
160
- challengeToSign: isSet(object.challengeToSign) ? String(object.challengeToSign) : "",
161
- alreadyConnected: isSet(object.alreadyConnected) ? Boolean(object.alreadyConnected) : false,
162
- };
163
- }
164
-
165
- export function toJSON(message: GetChallengeResponse): unknown {
166
- const obj: any = {};
167
- message.challengeToSign !== undefined && (obj.challengeToSign = message.challengeToSign);
168
- message.alreadyConnected !== undefined && (obj.alreadyConnected = message.alreadyConnected);
169
- return obj;
170
- }
171
-
172
- export function create<I extends Exact<DeepPartial<GetChallengeResponse>, I>>(base?: I): GetChallengeResponse {
173
- return GetChallengeResponse.fromPartial(base ?? {});
174
- }
175
-
176
- export function fromPartial<I extends Exact<DeepPartial<GetChallengeResponse>, I>>(object: I): GetChallengeResponse {
177
- const message = createBaseGetChallengeResponse();
178
- message.challengeToSign = object.challengeToSign ?? "";
179
- message.alreadyConnected = object.alreadyConnected ?? false;
180
- return message;
181
- }
182
- }
183
-
184
- function createBaseSignedChallenge(): SignedChallenge {
185
- return { authChainJson: "" };
186
- }
187
-
188
- export namespace SignedChallenge {
189
- export function encode(message: SignedChallenge, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
190
- if (message.authChainJson !== "") {
191
- writer.uint32(10).string(message.authChainJson);
192
- }
193
- return writer;
194
- }
195
-
196
- export function decode(input: _m0.Reader | Uint8Array, length?: number): SignedChallenge {
197
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
198
- let end = length === undefined ? reader.len : reader.pos + length;
199
- const message = createBaseSignedChallenge();
200
- while (reader.pos < end) {
201
- const tag = reader.uint32();
202
- switch (tag >>> 3) {
203
- case 1:
204
- if (tag !== 10) {
205
- break;
206
- }
207
-
208
- message.authChainJson = 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
-
219
- export function fromJSON(object: any): SignedChallenge {
220
- return { authChainJson: isSet(object.authChainJson) ? String(object.authChainJson) : "" };
221
- }
222
-
223
- export function toJSON(message: SignedChallenge): unknown {
224
- const obj: any = {};
225
- message.authChainJson !== undefined && (obj.authChainJson = message.authChainJson);
226
- return obj;
227
- }
228
-
229
- export function create<I extends Exact<DeepPartial<SignedChallenge>, I>>(base?: I): SignedChallenge {
230
- return SignedChallenge.fromPartial(base ?? {});
231
- }
232
-
233
- export function fromPartial<I extends Exact<DeepPartial<SignedChallenge>, I>>(object: I): SignedChallenge {
234
- const message = createBaseSignedChallenge();
235
- message.authChainJson = object.authChainJson ?? "";
236
- return message;
237
- }
238
- }
239
-
240
- function createBaseWelcomePeerInformation(): WelcomePeerInformation {
241
- return { peerId: "", availableModules: [] };
242
- }
243
-
244
- export namespace WelcomePeerInformation {
245
- export function encode(message: WelcomePeerInformation, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
246
- if (message.peerId !== "") {
247
- writer.uint32(10).string(message.peerId);
248
- }
249
- for (const v of message.availableModules) {
250
- writer.uint32(18).string(v!);
251
- }
252
- return writer;
253
- }
254
-
255
- export function decode(input: _m0.Reader | Uint8Array, length?: number): WelcomePeerInformation {
256
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
257
- let end = length === undefined ? reader.len : reader.pos + length;
258
- const message = createBaseWelcomePeerInformation();
259
- while (reader.pos < end) {
260
- const tag = reader.uint32();
261
- switch (tag >>> 3) {
262
- case 1:
263
- if (tag !== 10) {
264
- break;
265
- }
266
-
267
- message.peerId = reader.string();
268
- continue;
269
- case 2:
270
- if (tag !== 18) {
271
- break;
272
- }
273
-
274
- message.availableModules.push(reader.string());
275
- continue;
276
- }
277
- if ((tag & 7) === 4 || tag === 0) {
278
- break;
279
- }
280
- reader.skipType(tag & 7);
281
- }
282
- return message;
283
- }
284
-
285
- export function fromJSON(object: any): WelcomePeerInformation {
286
- return {
287
- peerId: isSet(object.peerId) ? String(object.peerId) : "",
288
- availableModules: Array.isArray(object?.availableModules)
289
- ? object.availableModules.map((e: any) => String(e))
290
- : [],
291
- };
292
- }
293
-
294
- export function toJSON(message: WelcomePeerInformation): unknown {
295
- const obj: any = {};
296
- message.peerId !== undefined && (obj.peerId = message.peerId);
297
- if (message.availableModules) {
298
- obj.availableModules = message.availableModules.map((e) => e);
299
- } else {
300
- obj.availableModules = [];
301
- }
302
- return obj;
303
- }
304
-
305
- export function create<I extends Exact<DeepPartial<WelcomePeerInformation>, I>>(base?: I): WelcomePeerInformation {
306
- return WelcomePeerInformation.fromPartial(base ?? {});
307
- }
308
-
309
- export function fromPartial<I extends Exact<DeepPartial<WelcomePeerInformation>, I>>(
310
- object: I,
311
- ): WelcomePeerInformation {
312
- const message = createBaseWelcomePeerInformation();
313
- message.peerId = object.peerId ?? "";
314
- message.availableModules = object.availableModules?.map((e) => e) || [];
315
- return message;
316
- }
317
- }
318
-
319
- function createBaseDisconnectionMessage(): DisconnectionMessage {
320
- return { reason: 0 };
321
- }
322
-
323
- export namespace DisconnectionMessage {
324
- export function encode(message: DisconnectionMessage, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
325
- if (message.reason !== 0) {
326
- writer.uint32(8).int32(message.reason);
327
- }
328
- return writer;
329
- }
330
-
331
- export function decode(input: _m0.Reader | Uint8Array, length?: number): DisconnectionMessage {
332
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
333
- let end = length === undefined ? reader.len : reader.pos + length;
334
- const message = createBaseDisconnectionMessage();
335
- while (reader.pos < end) {
336
- const tag = reader.uint32();
337
- switch (tag >>> 3) {
338
- case 1:
339
- if (tag !== 8) {
340
- break;
341
- }
342
-
343
- message.reason = reader.int32() as any;
344
- continue;
345
- }
346
- if ((tag & 7) === 4 || tag === 0) {
347
- break;
348
- }
349
- reader.skipType(tag & 7);
350
- }
351
- return message;
352
- }
353
-
354
- export function fromJSON(object: any): DisconnectionMessage {
355
- return { reason: isSet(object.reason) ? disconnectionReasonFromJSON(object.reason) : 0 };
356
- }
357
-
358
- export function toJSON(message: DisconnectionMessage): unknown {
359
- const obj: any = {};
360
- message.reason !== undefined && (obj.reason = disconnectionReasonToJSON(message.reason));
361
- return obj;
362
- }
363
-
364
- export function create<I extends Exact<DeepPartial<DisconnectionMessage>, I>>(base?: I): DisconnectionMessage {
365
- return DisconnectionMessage.fromPartial(base ?? {});
366
- }
367
-
368
- export function fromPartial<I extends Exact<DeepPartial<DisconnectionMessage>, I>>(object: I): DisconnectionMessage {
369
- const message = createBaseDisconnectionMessage();
370
- message.reason = object.reason ?? 0;
371
- return message;
372
- }
373
- }
374
-
375
- export type BffAuthenticationServiceDefinition = typeof BffAuthenticationServiceDefinition;
376
- export const BffAuthenticationServiceDefinition = {
377
- name: "BffAuthenticationService",
378
- fullName: "decentraland.bff.BffAuthenticationService",
379
- methods: {
380
- getChallenge: {
381
- name: "GetChallenge",
382
- requestType: GetChallengeRequest,
383
- requestStream: false,
384
- responseType: GetChallengeResponse,
385
- responseStream: false,
386
- options: {},
387
- },
388
- authenticate: {
389
- name: "Authenticate",
390
- requestType: SignedChallenge,
391
- requestStream: false,
392
- responseType: WelcomePeerInformation,
393
- responseStream: false,
394
- options: {},
395
- },
396
- getDisconnectionMessage: {
397
- name: "GetDisconnectionMessage",
398
- requestType: Empty,
399
- requestStream: false,
400
- responseType: DisconnectionMessage,
401
- responseStream: false,
402
- options: {},
403
- },
404
- },
405
- } as const;
406
-
407
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
408
-
409
- export type DeepPartial<T> = T extends Builtin ? T
410
- : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
411
- : T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
412
- : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
413
- : Partial<T>;
414
-
415
- type KeysOfUnion<T> = T extends T ? keyof T : never;
416
- export type Exact<P, I extends P> = P extends Builtin ? P
417
- : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
418
-
419
- function isSet(value: any): boolean {
420
- return value !== null && value !== undefined;
421
- }