@dcl/protocol 1.0.0-3605882850.commit-092c285 → 1.0.0-3695908652.commit-2552b6c

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.
@@ -0,0 +1,202 @@
1
+ /* eslint-disable */
2
+ import Long from "long";
3
+ import _m0 from "protobufjs/minimal";
4
+
5
+ export const protobufPackage = "decentraland.renderer.common";
6
+
7
+ export enum FriendshipErrorCode {
8
+ FEC_TOO_MANY_REQUESTS_SENT = 0,
9
+ FEC_NOT_ENOUGH_TIME_PASSED = 1,
10
+ FEC_BLOCKED_USER = 2,
11
+ FEC_NON_EXISTING_USER = 3,
12
+ FEC_INVALID_REQUEST = 4,
13
+ FEC_UNKNOWN = 5,
14
+ UNRECOGNIZED = -1,
15
+ }
16
+
17
+ export function friendshipErrorCodeFromJSON(object: any): FriendshipErrorCode {
18
+ switch (object) {
19
+ case 0:
20
+ case "FEC_TOO_MANY_REQUESTS_SENT":
21
+ return FriendshipErrorCode.FEC_TOO_MANY_REQUESTS_SENT;
22
+ case 1:
23
+ case "FEC_NOT_ENOUGH_TIME_PASSED":
24
+ return FriendshipErrorCode.FEC_NOT_ENOUGH_TIME_PASSED;
25
+ case 2:
26
+ case "FEC_BLOCKED_USER":
27
+ return FriendshipErrorCode.FEC_BLOCKED_USER;
28
+ case 3:
29
+ case "FEC_NON_EXISTING_USER":
30
+ return FriendshipErrorCode.FEC_NON_EXISTING_USER;
31
+ case 4:
32
+ case "FEC_INVALID_REQUEST":
33
+ return FriendshipErrorCode.FEC_INVALID_REQUEST;
34
+ case 5:
35
+ case "FEC_UNKNOWN":
36
+ return FriendshipErrorCode.FEC_UNKNOWN;
37
+ case -1:
38
+ case "UNRECOGNIZED":
39
+ default:
40
+ return FriendshipErrorCode.UNRECOGNIZED;
41
+ }
42
+ }
43
+
44
+ export function friendshipErrorCodeToJSON(object: FriendshipErrorCode): string {
45
+ switch (object) {
46
+ case FriendshipErrorCode.FEC_TOO_MANY_REQUESTS_SENT:
47
+ return "FEC_TOO_MANY_REQUESTS_SENT";
48
+ case FriendshipErrorCode.FEC_NOT_ENOUGH_TIME_PASSED:
49
+ return "FEC_NOT_ENOUGH_TIME_PASSED";
50
+ case FriendshipErrorCode.FEC_BLOCKED_USER:
51
+ return "FEC_BLOCKED_USER";
52
+ case FriendshipErrorCode.FEC_NON_EXISTING_USER:
53
+ return "FEC_NON_EXISTING_USER";
54
+ case FriendshipErrorCode.FEC_INVALID_REQUEST:
55
+ return "FEC_INVALID_REQUEST";
56
+ case FriendshipErrorCode.FEC_UNKNOWN:
57
+ return "FEC_UNKNOWN";
58
+ case FriendshipErrorCode.UNRECOGNIZED:
59
+ default:
60
+ return "UNRECOGNIZED";
61
+ }
62
+ }
63
+
64
+ export interface FriendRequestInfo {
65
+ friendRequestId: string;
66
+ timestamp: number;
67
+ from: string;
68
+ to: string;
69
+ messageBody?: string | undefined;
70
+ }
71
+
72
+ function createBaseFriendRequestInfo(): FriendRequestInfo {
73
+ return { friendRequestId: "", timestamp: 0, from: "", to: "", messageBody: undefined };
74
+ }
75
+
76
+ export const FriendRequestInfo = {
77
+ encode(message: FriendRequestInfo, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
78
+ if (message.friendRequestId !== "") {
79
+ writer.uint32(10).string(message.friendRequestId);
80
+ }
81
+ if (message.timestamp !== 0) {
82
+ writer.uint32(16).uint64(message.timestamp);
83
+ }
84
+ if (message.from !== "") {
85
+ writer.uint32(26).string(message.from);
86
+ }
87
+ if (message.to !== "") {
88
+ writer.uint32(34).string(message.to);
89
+ }
90
+ if (message.messageBody !== undefined) {
91
+ writer.uint32(42).string(message.messageBody);
92
+ }
93
+ return writer;
94
+ },
95
+
96
+ decode(input: _m0.Reader | Uint8Array, length?: number): FriendRequestInfo {
97
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
98
+ let end = length === undefined ? reader.len : reader.pos + length;
99
+ const message = createBaseFriendRequestInfo();
100
+ while (reader.pos < end) {
101
+ const tag = reader.uint32();
102
+ switch (tag >>> 3) {
103
+ case 1:
104
+ message.friendRequestId = reader.string();
105
+ break;
106
+ case 2:
107
+ message.timestamp = longToNumber(reader.uint64() as Long);
108
+ break;
109
+ case 3:
110
+ message.from = reader.string();
111
+ break;
112
+ case 4:
113
+ message.to = reader.string();
114
+ break;
115
+ case 5:
116
+ message.messageBody = reader.string();
117
+ break;
118
+ default:
119
+ reader.skipType(tag & 7);
120
+ break;
121
+ }
122
+ }
123
+ return message;
124
+ },
125
+
126
+ fromJSON(object: any): FriendRequestInfo {
127
+ return {
128
+ friendRequestId: isSet(object.friendRequestId) ? String(object.friendRequestId) : "",
129
+ timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0,
130
+ from: isSet(object.from) ? String(object.from) : "",
131
+ to: isSet(object.to) ? String(object.to) : "",
132
+ messageBody: isSet(object.messageBody) ? String(object.messageBody) : undefined,
133
+ };
134
+ },
135
+
136
+ toJSON(message: FriendRequestInfo): unknown {
137
+ const obj: any = {};
138
+ message.friendRequestId !== undefined && (obj.friendRequestId = message.friendRequestId);
139
+ message.timestamp !== undefined && (obj.timestamp = Math.round(message.timestamp));
140
+ message.from !== undefined && (obj.from = message.from);
141
+ message.to !== undefined && (obj.to = message.to);
142
+ message.messageBody !== undefined && (obj.messageBody = message.messageBody);
143
+ return obj;
144
+ },
145
+
146
+ fromPartial<I extends Exact<DeepPartial<FriendRequestInfo>, I>>(object: I): FriendRequestInfo {
147
+ const message = createBaseFriendRequestInfo();
148
+ message.friendRequestId = object.friendRequestId ?? "";
149
+ message.timestamp = object.timestamp ?? 0;
150
+ message.from = object.from ?? "";
151
+ message.to = object.to ?? "";
152
+ message.messageBody = object.messageBody ?? undefined;
153
+ return message;
154
+ },
155
+ };
156
+
157
+ declare var self: any | undefined;
158
+ declare var window: any | undefined;
159
+ declare var global: any | undefined;
160
+ var globalThis: any = (() => {
161
+ if (typeof globalThis !== "undefined") {
162
+ return globalThis;
163
+ }
164
+ if (typeof self !== "undefined") {
165
+ return self;
166
+ }
167
+ if (typeof window !== "undefined") {
168
+ return window;
169
+ }
170
+ if (typeof global !== "undefined") {
171
+ return global;
172
+ }
173
+ throw "Unable to locate global object";
174
+ })();
175
+
176
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
177
+
178
+ export type DeepPartial<T> = T extends Builtin ? T
179
+ : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
180
+ : T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
181
+ : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
182
+ : Partial<T>;
183
+
184
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
185
+ export type Exact<P, I extends P> = P extends Builtin ? P
186
+ : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
187
+
188
+ function longToNumber(long: Long): number {
189
+ if (long.gt(Number.MAX_SAFE_INTEGER)) {
190
+ throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
191
+ }
192
+ return long.toNumber();
193
+ }
194
+
195
+ if (_m0.util.Long !== Long) {
196
+ _m0.util.Long = Long as any;
197
+ _m0.configure();
198
+ }
199
+
200
+ function isSet(value: any): boolean {
201
+ return value !== null && value !== undefined;
202
+ }
@@ -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
  };