@dcl/protocol 1.0.0-3603890942.commit-44633cf → 1.0.0-3678623066.commit-a335c0a
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.
- package/out-ts/decentraland/renderer/kernel_services/analytics.gen.ts +0 -12
- package/package.json +2 -2
- package/proto/buf.yaml +3 -1
- package/proto/decentraland/bff/http_endpoints.proto +1 -4
- package/proto/decentraland/renderer/kernel_services/analytics.proto +0 -3
- package/out-ts/google/api/annotations.gen.ts +0 -3
- package/out-ts/google/api/http.gen.ts +0 -295
- package/out-ts/google/protobuf/descriptor.gen.ts +0 -2861
|
@@ -51,8 +51,6 @@ export interface SystemInfoReportRequest {
|
|
|
51
51
|
processorType: string;
|
|
52
52
|
processorCount: number;
|
|
53
53
|
systemMemorySize: number;
|
|
54
|
-
/** TODO: remove useBinaryTransform after ECS7 is fully in prod */
|
|
55
|
-
useBinaryTransform: boolean;
|
|
56
54
|
}
|
|
57
55
|
|
|
58
56
|
export interface SystemInfoReportResponse {
|
|
@@ -496,7 +494,6 @@ function createBaseSystemInfoReportRequest(): SystemInfoReportRequest {
|
|
|
496
494
|
processorType: "",
|
|
497
495
|
processorCount: 0,
|
|
498
496
|
systemMemorySize: 0,
|
|
499
|
-
useBinaryTransform: false,
|
|
500
497
|
};
|
|
501
498
|
}
|
|
502
499
|
|
|
@@ -520,9 +517,6 @@ export const SystemInfoReportRequest = {
|
|
|
520
517
|
if (message.systemMemorySize !== 0) {
|
|
521
518
|
writer.uint32(53).fixed32(message.systemMemorySize);
|
|
522
519
|
}
|
|
523
|
-
if (message.useBinaryTransform === true) {
|
|
524
|
-
writer.uint32(56).bool(message.useBinaryTransform);
|
|
525
|
-
}
|
|
526
520
|
return writer;
|
|
527
521
|
},
|
|
528
522
|
|
|
@@ -551,9 +545,6 @@ export const SystemInfoReportRequest = {
|
|
|
551
545
|
case 6:
|
|
552
546
|
message.systemMemorySize = reader.fixed32();
|
|
553
547
|
break;
|
|
554
|
-
case 7:
|
|
555
|
-
message.useBinaryTransform = reader.bool();
|
|
556
|
-
break;
|
|
557
548
|
default:
|
|
558
549
|
reader.skipType(tag & 7);
|
|
559
550
|
break;
|
|
@@ -570,7 +561,6 @@ export const SystemInfoReportRequest = {
|
|
|
570
561
|
processorType: isSet(object.processorType) ? String(object.processorType) : "",
|
|
571
562
|
processorCount: isSet(object.processorCount) ? Number(object.processorCount) : 0,
|
|
572
563
|
systemMemorySize: isSet(object.systemMemorySize) ? Number(object.systemMemorySize) : 0,
|
|
573
|
-
useBinaryTransform: isSet(object.useBinaryTransform) ? Boolean(object.useBinaryTransform) : false,
|
|
574
564
|
};
|
|
575
565
|
},
|
|
576
566
|
|
|
@@ -582,7 +572,6 @@ export const SystemInfoReportRequest = {
|
|
|
582
572
|
message.processorType !== undefined && (obj.processorType = message.processorType);
|
|
583
573
|
message.processorCount !== undefined && (obj.processorCount = Math.round(message.processorCount));
|
|
584
574
|
message.systemMemorySize !== undefined && (obj.systemMemorySize = Math.round(message.systemMemorySize));
|
|
585
|
-
message.useBinaryTransform !== undefined && (obj.useBinaryTransform = message.useBinaryTransform);
|
|
586
575
|
return obj;
|
|
587
576
|
},
|
|
588
577
|
|
|
@@ -594,7 +583,6 @@ export const SystemInfoReportRequest = {
|
|
|
594
583
|
message.processorType = object.processorType ?? "";
|
|
595
584
|
message.processorCount = object.processorCount ?? 0;
|
|
596
585
|
message.systemMemorySize = object.systemMemorySize ?? 0;
|
|
597
|
-
message.useBinaryTransform = object.useBinaryTransform ?? false;
|
|
598
586
|
return message;
|
|
599
587
|
},
|
|
600
588
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/protocol",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-3678623066.commit-a335c0a",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -25,5 +25,5 @@
|
|
|
25
25
|
"out-ts",
|
|
26
26
|
"public"
|
|
27
27
|
],
|
|
28
|
-
"commit": "
|
|
28
|
+
"commit": "a335c0a78d221b2cd5ced50d5dbafcd678a225cd"
|
|
29
29
|
}
|
package/proto/buf.yaml
CHANGED
|
@@ -2,7 +2,6 @@ syntax = "proto3";
|
|
|
2
2
|
package decentraland.bff;
|
|
3
3
|
|
|
4
4
|
import "google/protobuf/empty.proto";
|
|
5
|
-
import "google/api/annotations.proto";
|
|
6
5
|
|
|
7
6
|
message AboutResponse {
|
|
8
7
|
bool healthy = 1;
|
|
@@ -77,7 +76,5 @@ message AboutResponse {
|
|
|
77
76
|
|
|
78
77
|
service HttpEndpoints {
|
|
79
78
|
// Returns the status and configuration of the bff microservice
|
|
80
|
-
rpc About(google.protobuf.Empty) returns (AboutResponse) {
|
|
81
|
-
option (google.api.http) = { get: "/about" };
|
|
82
|
-
}
|
|
79
|
+
rpc About(google.protobuf.Empty) returns (AboutResponse) {}
|
|
83
80
|
}
|
|
@@ -39,9 +39,6 @@ message SystemInfoReportRequest {
|
|
|
39
39
|
string processor_type = 4;
|
|
40
40
|
fixed32 processor_count = 5;
|
|
41
41
|
fixed32 system_memory_size = 6;
|
|
42
|
-
|
|
43
|
-
// TODO: remove useBinaryTransform after ECS7 is fully in prod
|
|
44
|
-
bool use_binary_transform = 7;
|
|
45
42
|
}
|
|
46
43
|
|
|
47
44
|
message SystemInfoReportResponse {}
|
|
@@ -1,295 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import _m0 from "protobufjs/minimal";
|
|
3
|
-
|
|
4
|
-
export const protobufPackage = "google.api";
|
|
5
|
-
|
|
6
|
-
export interface Http {
|
|
7
|
-
rules: HttpRule[];
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export interface HttpRule {
|
|
11
|
-
pattern?:
|
|
12
|
-
| { $case: "get"; get: string }
|
|
13
|
-
| { $case: "put"; put: string }
|
|
14
|
-
| { $case: "post"; post: string }
|
|
15
|
-
| { $case: "delete"; delete: string }
|
|
16
|
-
| { $case: "patch"; patch: string }
|
|
17
|
-
| { $case: "custom"; custom: CustomHttpPattern };
|
|
18
|
-
selector: string;
|
|
19
|
-
body: string;
|
|
20
|
-
additionalBindings: HttpRule[];
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export interface CustomHttpPattern {
|
|
24
|
-
kind: string;
|
|
25
|
-
path: string;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
function createBaseHttp(): Http {
|
|
29
|
-
return { rules: [] };
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export const Http = {
|
|
33
|
-
encode(message: Http, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
34
|
-
for (const v of message.rules) {
|
|
35
|
-
HttpRule.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
36
|
-
}
|
|
37
|
-
return writer;
|
|
38
|
-
},
|
|
39
|
-
|
|
40
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): Http {
|
|
41
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
42
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
43
|
-
const message = createBaseHttp();
|
|
44
|
-
while (reader.pos < end) {
|
|
45
|
-
const tag = reader.uint32();
|
|
46
|
-
switch (tag >>> 3) {
|
|
47
|
-
case 1:
|
|
48
|
-
message.rules.push(HttpRule.decode(reader, reader.uint32()));
|
|
49
|
-
break;
|
|
50
|
-
default:
|
|
51
|
-
reader.skipType(tag & 7);
|
|
52
|
-
break;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
return message;
|
|
56
|
-
},
|
|
57
|
-
|
|
58
|
-
fromJSON(object: any): Http {
|
|
59
|
-
return { rules: Array.isArray(object?.rules) ? object.rules.map((e: any) => HttpRule.fromJSON(e)) : [] };
|
|
60
|
-
},
|
|
61
|
-
|
|
62
|
-
toJSON(message: Http): unknown {
|
|
63
|
-
const obj: any = {};
|
|
64
|
-
if (message.rules) {
|
|
65
|
-
obj.rules = message.rules.map((e) => e ? HttpRule.toJSON(e) : undefined);
|
|
66
|
-
} else {
|
|
67
|
-
obj.rules = [];
|
|
68
|
-
}
|
|
69
|
-
return obj;
|
|
70
|
-
},
|
|
71
|
-
|
|
72
|
-
fromPartial<I extends Exact<DeepPartial<Http>, I>>(object: I): Http {
|
|
73
|
-
const message = createBaseHttp();
|
|
74
|
-
message.rules = object.rules?.map((e) => HttpRule.fromPartial(e)) || [];
|
|
75
|
-
return message;
|
|
76
|
-
},
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
function createBaseHttpRule(): HttpRule {
|
|
80
|
-
return { pattern: undefined, selector: "", body: "", additionalBindings: [] };
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
export const HttpRule = {
|
|
84
|
-
encode(message: HttpRule, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
85
|
-
if (message.pattern?.$case === "get") {
|
|
86
|
-
writer.uint32(18).string(message.pattern.get);
|
|
87
|
-
}
|
|
88
|
-
if (message.pattern?.$case === "put") {
|
|
89
|
-
writer.uint32(26).string(message.pattern.put);
|
|
90
|
-
}
|
|
91
|
-
if (message.pattern?.$case === "post") {
|
|
92
|
-
writer.uint32(34).string(message.pattern.post);
|
|
93
|
-
}
|
|
94
|
-
if (message.pattern?.$case === "delete") {
|
|
95
|
-
writer.uint32(42).string(message.pattern.delete);
|
|
96
|
-
}
|
|
97
|
-
if (message.pattern?.$case === "patch") {
|
|
98
|
-
writer.uint32(50).string(message.pattern.patch);
|
|
99
|
-
}
|
|
100
|
-
if (message.pattern?.$case === "custom") {
|
|
101
|
-
CustomHttpPattern.encode(message.pattern.custom, writer.uint32(66).fork()).ldelim();
|
|
102
|
-
}
|
|
103
|
-
if (message.selector !== "") {
|
|
104
|
-
writer.uint32(10).string(message.selector);
|
|
105
|
-
}
|
|
106
|
-
if (message.body !== "") {
|
|
107
|
-
writer.uint32(58).string(message.body);
|
|
108
|
-
}
|
|
109
|
-
for (const v of message.additionalBindings) {
|
|
110
|
-
HttpRule.encode(v!, writer.uint32(90).fork()).ldelim();
|
|
111
|
-
}
|
|
112
|
-
return writer;
|
|
113
|
-
},
|
|
114
|
-
|
|
115
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): HttpRule {
|
|
116
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
117
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
118
|
-
const message = createBaseHttpRule();
|
|
119
|
-
while (reader.pos < end) {
|
|
120
|
-
const tag = reader.uint32();
|
|
121
|
-
switch (tag >>> 3) {
|
|
122
|
-
case 2:
|
|
123
|
-
message.pattern = { $case: "get", get: reader.string() };
|
|
124
|
-
break;
|
|
125
|
-
case 3:
|
|
126
|
-
message.pattern = { $case: "put", put: reader.string() };
|
|
127
|
-
break;
|
|
128
|
-
case 4:
|
|
129
|
-
message.pattern = { $case: "post", post: reader.string() };
|
|
130
|
-
break;
|
|
131
|
-
case 5:
|
|
132
|
-
message.pattern = { $case: "delete", delete: reader.string() };
|
|
133
|
-
break;
|
|
134
|
-
case 6:
|
|
135
|
-
message.pattern = { $case: "patch", patch: reader.string() };
|
|
136
|
-
break;
|
|
137
|
-
case 8:
|
|
138
|
-
message.pattern = { $case: "custom", custom: CustomHttpPattern.decode(reader, reader.uint32()) };
|
|
139
|
-
break;
|
|
140
|
-
case 1:
|
|
141
|
-
message.selector = reader.string();
|
|
142
|
-
break;
|
|
143
|
-
case 7:
|
|
144
|
-
message.body = reader.string();
|
|
145
|
-
break;
|
|
146
|
-
case 11:
|
|
147
|
-
message.additionalBindings.push(HttpRule.decode(reader, reader.uint32()));
|
|
148
|
-
break;
|
|
149
|
-
default:
|
|
150
|
-
reader.skipType(tag & 7);
|
|
151
|
-
break;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
return message;
|
|
155
|
-
},
|
|
156
|
-
|
|
157
|
-
fromJSON(object: any): HttpRule {
|
|
158
|
-
return {
|
|
159
|
-
pattern: isSet(object.get)
|
|
160
|
-
? { $case: "get", get: String(object.get) }
|
|
161
|
-
: isSet(object.put)
|
|
162
|
-
? { $case: "put", put: String(object.put) }
|
|
163
|
-
: isSet(object.post)
|
|
164
|
-
? { $case: "post", post: String(object.post) }
|
|
165
|
-
: isSet(object.delete)
|
|
166
|
-
? { $case: "delete", delete: String(object.delete) }
|
|
167
|
-
: isSet(object.patch)
|
|
168
|
-
? { $case: "patch", patch: String(object.patch) }
|
|
169
|
-
: isSet(object.custom)
|
|
170
|
-
? { $case: "custom", custom: CustomHttpPattern.fromJSON(object.custom) }
|
|
171
|
-
: undefined,
|
|
172
|
-
selector: isSet(object.selector) ? String(object.selector) : "",
|
|
173
|
-
body: isSet(object.body) ? String(object.body) : "",
|
|
174
|
-
additionalBindings: Array.isArray(object?.additionalBindings)
|
|
175
|
-
? object.additionalBindings.map((e: any) => HttpRule.fromJSON(e))
|
|
176
|
-
: [],
|
|
177
|
-
};
|
|
178
|
-
},
|
|
179
|
-
|
|
180
|
-
toJSON(message: HttpRule): unknown {
|
|
181
|
-
const obj: any = {};
|
|
182
|
-
message.pattern?.$case === "get" && (obj.get = message.pattern?.get);
|
|
183
|
-
message.pattern?.$case === "put" && (obj.put = message.pattern?.put);
|
|
184
|
-
message.pattern?.$case === "post" && (obj.post = message.pattern?.post);
|
|
185
|
-
message.pattern?.$case === "delete" && (obj.delete = message.pattern?.delete);
|
|
186
|
-
message.pattern?.$case === "patch" && (obj.patch = message.pattern?.patch);
|
|
187
|
-
message.pattern?.$case === "custom" &&
|
|
188
|
-
(obj.custom = message.pattern?.custom ? CustomHttpPattern.toJSON(message.pattern?.custom) : undefined);
|
|
189
|
-
message.selector !== undefined && (obj.selector = message.selector);
|
|
190
|
-
message.body !== undefined && (obj.body = message.body);
|
|
191
|
-
if (message.additionalBindings) {
|
|
192
|
-
obj.additionalBindings = message.additionalBindings.map((e) => e ? HttpRule.toJSON(e) : undefined);
|
|
193
|
-
} else {
|
|
194
|
-
obj.additionalBindings = [];
|
|
195
|
-
}
|
|
196
|
-
return obj;
|
|
197
|
-
},
|
|
198
|
-
|
|
199
|
-
fromPartial<I extends Exact<DeepPartial<HttpRule>, I>>(object: I): HttpRule {
|
|
200
|
-
const message = createBaseHttpRule();
|
|
201
|
-
if (object.pattern?.$case === "get" && object.pattern?.get !== undefined && object.pattern?.get !== null) {
|
|
202
|
-
message.pattern = { $case: "get", get: object.pattern.get };
|
|
203
|
-
}
|
|
204
|
-
if (object.pattern?.$case === "put" && object.pattern?.put !== undefined && object.pattern?.put !== null) {
|
|
205
|
-
message.pattern = { $case: "put", put: object.pattern.put };
|
|
206
|
-
}
|
|
207
|
-
if (object.pattern?.$case === "post" && object.pattern?.post !== undefined && object.pattern?.post !== null) {
|
|
208
|
-
message.pattern = { $case: "post", post: object.pattern.post };
|
|
209
|
-
}
|
|
210
|
-
if (object.pattern?.$case === "delete" && object.pattern?.delete !== undefined && object.pattern?.delete !== null) {
|
|
211
|
-
message.pattern = { $case: "delete", delete: object.pattern.delete };
|
|
212
|
-
}
|
|
213
|
-
if (object.pattern?.$case === "patch" && object.pattern?.patch !== undefined && object.pattern?.patch !== null) {
|
|
214
|
-
message.pattern = { $case: "patch", patch: object.pattern.patch };
|
|
215
|
-
}
|
|
216
|
-
if (object.pattern?.$case === "custom" && object.pattern?.custom !== undefined && object.pattern?.custom !== null) {
|
|
217
|
-
message.pattern = { $case: "custom", custom: CustomHttpPattern.fromPartial(object.pattern.custom) };
|
|
218
|
-
}
|
|
219
|
-
message.selector = object.selector ?? "";
|
|
220
|
-
message.body = object.body ?? "";
|
|
221
|
-
message.additionalBindings = object.additionalBindings?.map((e) => HttpRule.fromPartial(e)) || [];
|
|
222
|
-
return message;
|
|
223
|
-
},
|
|
224
|
-
};
|
|
225
|
-
|
|
226
|
-
function createBaseCustomHttpPattern(): CustomHttpPattern {
|
|
227
|
-
return { kind: "", path: "" };
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
export const CustomHttpPattern = {
|
|
231
|
-
encode(message: CustomHttpPattern, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
232
|
-
if (message.kind !== "") {
|
|
233
|
-
writer.uint32(10).string(message.kind);
|
|
234
|
-
}
|
|
235
|
-
if (message.path !== "") {
|
|
236
|
-
writer.uint32(18).string(message.path);
|
|
237
|
-
}
|
|
238
|
-
return writer;
|
|
239
|
-
},
|
|
240
|
-
|
|
241
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): CustomHttpPattern {
|
|
242
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
243
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
244
|
-
const message = createBaseCustomHttpPattern();
|
|
245
|
-
while (reader.pos < end) {
|
|
246
|
-
const tag = reader.uint32();
|
|
247
|
-
switch (tag >>> 3) {
|
|
248
|
-
case 1:
|
|
249
|
-
message.kind = reader.string();
|
|
250
|
-
break;
|
|
251
|
-
case 2:
|
|
252
|
-
message.path = reader.string();
|
|
253
|
-
break;
|
|
254
|
-
default:
|
|
255
|
-
reader.skipType(tag & 7);
|
|
256
|
-
break;
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
return message;
|
|
260
|
-
},
|
|
261
|
-
|
|
262
|
-
fromJSON(object: any): CustomHttpPattern {
|
|
263
|
-
return { kind: isSet(object.kind) ? String(object.kind) : "", path: isSet(object.path) ? String(object.path) : "" };
|
|
264
|
-
},
|
|
265
|
-
|
|
266
|
-
toJSON(message: CustomHttpPattern): unknown {
|
|
267
|
-
const obj: any = {};
|
|
268
|
-
message.kind !== undefined && (obj.kind = message.kind);
|
|
269
|
-
message.path !== undefined && (obj.path = message.path);
|
|
270
|
-
return obj;
|
|
271
|
-
},
|
|
272
|
-
|
|
273
|
-
fromPartial<I extends Exact<DeepPartial<CustomHttpPattern>, I>>(object: I): CustomHttpPattern {
|
|
274
|
-
const message = createBaseCustomHttpPattern();
|
|
275
|
-
message.kind = object.kind ?? "";
|
|
276
|
-
message.path = object.path ?? "";
|
|
277
|
-
return message;
|
|
278
|
-
},
|
|
279
|
-
};
|
|
280
|
-
|
|
281
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
282
|
-
|
|
283
|
-
export type DeepPartial<T> = T extends Builtin ? T
|
|
284
|
-
: T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
285
|
-
: T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
|
|
286
|
-
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
287
|
-
: Partial<T>;
|
|
288
|
-
|
|
289
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
290
|
-
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
291
|
-
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
292
|
-
|
|
293
|
-
function isSet(value: any): boolean {
|
|
294
|
-
return value !== null && value !== undefined;
|
|
295
|
-
}
|