@dcl/protocol 1.0.0-5810343446.commit-4ee6d08 → 1.0.0-5824184720.commit-b3b5ebf

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 (27) hide show
  1. package/out-js/decentraland/kernel/apis/comms_api.gen.d.ts +9 -0
  2. package/out-js/decentraland/kernel/apis/comms_api.gen.js +54 -3
  3. package/out-js/decentraland/kernel/apis/comms_api.gen.js.map +1 -1
  4. package/out-js/decentraland/sdk/components/avatar_base.gen.d.ts +36 -0
  5. package/out-js/decentraland/sdk/components/avatar_base.gen.js +129 -0
  6. package/out-js/decentraland/sdk/components/avatar_base.gen.js.map +1 -0
  7. package/out-js/decentraland/sdk/components/avatar_emote_command.gen.d.ts +46 -0
  8. package/out-js/decentraland/sdk/components/avatar_emote_command.gen.js +147 -0
  9. package/out-js/decentraland/sdk/components/avatar_emote_command.gen.js.map +1 -0
  10. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.d.ts +36 -0
  11. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js +90 -0
  12. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js.map +1 -0
  13. package/out-js/decentraland/sdk/components/player_identity_data.gen.d.ts +37 -0
  14. package/out-js/decentraland/sdk/components/player_identity_data.gen.js +83 -0
  15. package/out-js/decentraland/sdk/components/player_identity_data.gen.js.map +1 -0
  16. package/out-ts/decentraland/kernel/apis/comms_api.gen.ts +54 -1
  17. package/out-ts/decentraland/sdk/components/avatar_base.gen.ts +149 -0
  18. package/out-ts/decentraland/sdk/components/avatar_emote_command.gen.ts +176 -0
  19. package/out-ts/decentraland/sdk/components/avatar_equipped_data.gen.ts +105 -0
  20. package/out-ts/decentraland/sdk/components/player_identity_data.gen.ts +102 -0
  21. package/package.json +2 -2
  22. package/proto/decentraland/kernel/apis/comms_api.proto +7 -0
  23. package/proto/decentraland/sdk/components/avatar_base.proto +15 -0
  24. package/proto/decentraland/sdk/components/avatar_emote_command.proto +16 -0
  25. package/proto/decentraland/sdk/components/avatar_equipped_data.proto +13 -0
  26. package/proto/decentraland/sdk/components/player_identity_data.proto +13 -0
  27. package/public/sdk-components.proto +4 -1
@@ -0,0 +1,90 @@
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.PBAvatarEquippedData = exports.protobufPackage = void 0;
7
+ /* eslint-disable */
8
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
9
+ exports.protobufPackage = "decentraland.sdk.components";
10
+ function createBasePBAvatarEquippedData() {
11
+ return { wearableUrns: [], emotesUrns: [] };
12
+ }
13
+ var PBAvatarEquippedData;
14
+ (function (PBAvatarEquippedData) {
15
+ function encode(message, writer = minimal_1.default.Writer.create()) {
16
+ for (const v of message.wearableUrns) {
17
+ writer.uint32(10).string(v);
18
+ }
19
+ for (const v of message.emotesUrns) {
20
+ writer.uint32(18).string(v);
21
+ }
22
+ return writer;
23
+ }
24
+ PBAvatarEquippedData.encode = encode;
25
+ function decode(input, length) {
26
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
27
+ let end = length === undefined ? reader.len : reader.pos + length;
28
+ const message = createBasePBAvatarEquippedData();
29
+ while (reader.pos < end) {
30
+ const tag = reader.uint32();
31
+ switch (tag >>> 3) {
32
+ case 1:
33
+ if (tag !== 10) {
34
+ break;
35
+ }
36
+ message.wearableUrns.push(reader.string());
37
+ continue;
38
+ case 2:
39
+ if (tag !== 18) {
40
+ break;
41
+ }
42
+ message.emotesUrns.push(reader.string());
43
+ continue;
44
+ }
45
+ if ((tag & 7) === 4 || tag === 0) {
46
+ break;
47
+ }
48
+ reader.skipType(tag & 7);
49
+ }
50
+ return message;
51
+ }
52
+ PBAvatarEquippedData.decode = decode;
53
+ function fromJSON(object) {
54
+ return {
55
+ wearableUrns: Array.isArray(object === null || object === void 0 ? void 0 : object.wearableUrns) ? object.wearableUrns.map((e) => String(e)) : [],
56
+ emotesUrns: Array.isArray(object === null || object === void 0 ? void 0 : object.emotesUrns) ? object.emotesUrns.map((e) => String(e)) : [],
57
+ };
58
+ }
59
+ PBAvatarEquippedData.fromJSON = fromJSON;
60
+ function toJSON(message) {
61
+ const obj = {};
62
+ if (message.wearableUrns) {
63
+ obj.wearableUrns = message.wearableUrns.map((e) => e);
64
+ }
65
+ else {
66
+ obj.wearableUrns = [];
67
+ }
68
+ if (message.emotesUrns) {
69
+ obj.emotesUrns = message.emotesUrns.map((e) => e);
70
+ }
71
+ else {
72
+ obj.emotesUrns = [];
73
+ }
74
+ return obj;
75
+ }
76
+ PBAvatarEquippedData.toJSON = toJSON;
77
+ function create(base) {
78
+ return PBAvatarEquippedData.fromPartial(base !== null && base !== void 0 ? base : {});
79
+ }
80
+ PBAvatarEquippedData.create = create;
81
+ function fromPartial(object) {
82
+ var _a, _b;
83
+ const message = createBasePBAvatarEquippedData();
84
+ message.wearableUrns = ((_a = object.wearableUrns) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
85
+ message.emotesUrns = ((_b = object.emotesUrns) === null || _b === void 0 ? void 0 : _b.map((e) => e)) || [];
86
+ return message;
87
+ }
88
+ PBAvatarEquippedData.fromPartial = fromPartial;
89
+ })(PBAvatarEquippedData || (exports.PBAvatarEquippedData = PBAvatarEquippedData = {}));
90
+ //# sourceMappingURL=avatar_equipped_data.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"avatar_equipped_data.gen.js","sourceRoot":"","sources":["../../../../out-ts/decentraland/sdk/components/avatar_equipped_data.gen.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,iEAAqC;AAExB,QAAA,eAAe,GAAG,6BAA6B,CAAC;AAY7D,SAAS,8BAA8B;IACrC,OAAO,EAAE,YAAY,EAAE,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC;AAC9C,CAAC;AAED,IAA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AAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;SACnD;aAAM;YACL,GAAG,CAAC,UAAU,GAAG,EAAE,CAAC;SACrB;QACD,OAAO,GAAG,CAAC;IACb,CAAC;IAbe,2BAAM,SAarB,CAAA;IAED,SAAgB,MAAM,CAAwD,IAAQ;QACpF,OAAO,oBAAoB,CAAC,WAAW,CAAC,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,EAAE,CAAC,CAAC;IACtD,CAAC;IAFe,2BAAM,SAErB,CAAA;IAED,SAAgB,WAAW,CAAwD,MAAS;;QAC1F,MAAM,OAAO,GAAG,8BAA8B,EAAE,CAAC;QACjD,OAAO,CAAC,YAAY,GAAG,CAAA,MAAA,MAAM,CAAC,YAAY,0CAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAI,EAAE,CAAC;QAChE,OAAO,CAAC,UAAU,GAAG,CAAA,MAAA,MAAM,CAAC,UAAU,0CAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAI,EAAE,CAAC;QAC5D,OAAO,OAAO,CAAC;IACjB,CAAC;IALe,gCAAW,cAK1B,CAAA;AACH,CAAC,EAzEgB,oBAAoB,oCAApB,oBAAoB,QAyEpC"}
@@ -0,0 +1,37 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "decentraland.sdk.components";
3
+ /**
4
+ * PlayerIdentityData is used to read the information about the avatar's
5
+ * identity. this component is written by the engine using the communications
6
+ * transports' data.
7
+ */
8
+ export interface PBPlayerIdentityData {
9
+ /** ethereum address of this player */
10
+ address: string;
11
+ isGuest: boolean;
12
+ }
13
+ export declare namespace PBPlayerIdentityData {
14
+ function encode(message: PBPlayerIdentityData, writer?: _m0.Writer): _m0.Writer;
15
+ function decode(input: _m0.Reader | Uint8Array, length?: number): PBPlayerIdentityData;
16
+ function fromJSON(object: any): PBPlayerIdentityData;
17
+ function toJSON(message: PBPlayerIdentityData): unknown;
18
+ function create<I extends Exact<DeepPartial<PBPlayerIdentityData>, I>>(base?: I): PBPlayerIdentityData;
19
+ function fromPartial<I extends Exact<DeepPartial<PBPlayerIdentityData>, I>>(object: I): PBPlayerIdentityData;
20
+ }
21
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
22
+ 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 {
23
+ $case: string;
24
+ } ? {
25
+ [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
26
+ } & {
27
+ $case: T["$case"];
28
+ } : T extends {} ? {
29
+ [K in keyof T]?: DeepPartial<T[K]>;
30
+ } : Partial<T>;
31
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
32
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
33
+ [K in keyof P]: Exact<P[K], I[K]>;
34
+ } & {
35
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
36
+ };
37
+ export {};
@@ -0,0 +1,83 @@
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.PBPlayerIdentityData = exports.protobufPackage = void 0;
7
+ /* eslint-disable */
8
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
9
+ exports.protobufPackage = "decentraland.sdk.components";
10
+ function createBasePBPlayerIdentityData() {
11
+ return { address: "", isGuest: false };
12
+ }
13
+ var PBPlayerIdentityData;
14
+ (function (PBPlayerIdentityData) {
15
+ function encode(message, writer = minimal_1.default.Writer.create()) {
16
+ if (message.address !== "") {
17
+ writer.uint32(10).string(message.address);
18
+ }
19
+ if (message.isGuest === true) {
20
+ writer.uint32(24).bool(message.isGuest);
21
+ }
22
+ return writer;
23
+ }
24
+ PBPlayerIdentityData.encode = encode;
25
+ function decode(input, length) {
26
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
27
+ let end = length === undefined ? reader.len : reader.pos + length;
28
+ const message = createBasePBPlayerIdentityData();
29
+ while (reader.pos < end) {
30
+ const tag = reader.uint32();
31
+ switch (tag >>> 3) {
32
+ case 1:
33
+ if (tag !== 10) {
34
+ break;
35
+ }
36
+ message.address = reader.string();
37
+ continue;
38
+ case 3:
39
+ if (tag !== 24) {
40
+ break;
41
+ }
42
+ message.isGuest = reader.bool();
43
+ continue;
44
+ }
45
+ if ((tag & 7) === 4 || tag === 0) {
46
+ break;
47
+ }
48
+ reader.skipType(tag & 7);
49
+ }
50
+ return message;
51
+ }
52
+ PBPlayerIdentityData.decode = decode;
53
+ function fromJSON(object) {
54
+ return {
55
+ address: isSet(object.address) ? String(object.address) : "",
56
+ isGuest: isSet(object.isGuest) ? Boolean(object.isGuest) : false,
57
+ };
58
+ }
59
+ PBPlayerIdentityData.fromJSON = fromJSON;
60
+ function toJSON(message) {
61
+ const obj = {};
62
+ message.address !== undefined && (obj.address = message.address);
63
+ message.isGuest !== undefined && (obj.isGuest = message.isGuest);
64
+ return obj;
65
+ }
66
+ PBPlayerIdentityData.toJSON = toJSON;
67
+ function create(base) {
68
+ return PBPlayerIdentityData.fromPartial(base !== null && base !== void 0 ? base : {});
69
+ }
70
+ PBPlayerIdentityData.create = create;
71
+ function fromPartial(object) {
72
+ var _a, _b;
73
+ const message = createBasePBPlayerIdentityData();
74
+ message.address = (_a = object.address) !== null && _a !== void 0 ? _a : "";
75
+ message.isGuest = (_b = object.isGuest) !== null && _b !== void 0 ? _b : false;
76
+ return message;
77
+ }
78
+ PBPlayerIdentityData.fromPartial = fromPartial;
79
+ })(PBPlayerIdentityData || (exports.PBPlayerIdentityData = PBPlayerIdentityData = {}));
80
+ function isSet(value) {
81
+ return value !== null && value !== undefined;
82
+ }
83
+ //# sourceMappingURL=player_identity_data.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"player_identity_data.gen.js","sourceRoot":"","sources":["../../../../out-ts/decentraland/sdk/components/player_identity_data.gen.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,iEAAqC;AAExB,QAAA,eAAe,GAAG,6BAA6B,CAAC;AAa7D,SAAS,8BAA8B;IACrC,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;AACzC,CAAC;AAED,IAAiB,oBAAoB,CAiEpC;AAjED,WAAiB,oBAAoB;IACnC,SAAgB,MAAM,CAAC,OAA6B,EAAE,SAAqB,iBAAG,CAAC,MAAM,CAAC,MAAM,EAAE;QAC5F,IAAI,OAAO,CAAC,OAAO,KAAK,EAAE,EAAE;YAC1B,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;SAC3C;QACD,IAAI,OAAO,CAAC,OAAO,KAAK,IAAI,EAAE;YAC5B,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;SACzC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IARe,2BAAM,SAQrB,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,8BAA8B,EAAE,CAAC;QACjD,OAAO,MAAM,CAAC,GAAG,GAAG,GAAG,EAAE;YACvB,MAAM,GAAG,GAAG,MAAM,CAAC,MAA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AG,CAAC;IACb,CAAC;IALe,2BAAM,SAKrB,CAAA;IAED,SAAgB,MAAM,CAAwD,IAAQ;QACpF,OAAO,oBAAoB,CAAC,WAAW,CAAC,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,EAAE,CAAC,CAAC;IACtD,CAAC;IAFe,2BAAM,SAErB,CAAA;IAED,SAAgB,WAAW,CAAwD,MAAS;;QAC1F,MAAM,OAAO,GAAG,8BAA8B,EAAE,CAAC;QACjD,OAAO,CAAC,OAAO,GAAG,MAAA,MAAM,CAAC,OAAO,mCAAI,EAAE,CAAC;QACvC,OAAO,CAAC,OAAO,GAAG,MAAA,MAAM,CAAC,OAAO,mCAAI,KAAK,CAAC;QAC1C,OAAO,OAAO,CAAC;IACjB,CAAC;IALe,gCAAW,cAK1B,CAAA;AACH,CAAC,EAjEgB,oBAAoB,oCAApB,oBAAoB,QAiEpC;AAcD,SAAS,KAAK,CAAC,KAAU;IACvB,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;AAC/C,CAAC"}
@@ -3,6 +3,45 @@ import _m0 from "protobufjs/minimal";
3
3
 
4
4
  export const protobufPackage = "decentraland.kernel.apis";
5
5
 
6
+ export enum VideoTrackSourceType {
7
+ VTST_UNKNOWN = 0,
8
+ VTST_CAMERA = 1,
9
+ VTST_SCREEN_SHARE = 2,
10
+ UNRECOGNIZED = -1,
11
+ }
12
+
13
+ export function videoTrackSourceTypeFromJSON(object: any): VideoTrackSourceType {
14
+ switch (object) {
15
+ case 0:
16
+ case "VTST_UNKNOWN":
17
+ return VideoTrackSourceType.VTST_UNKNOWN;
18
+ case 1:
19
+ case "VTST_CAMERA":
20
+ return VideoTrackSourceType.VTST_CAMERA;
21
+ case 2:
22
+ case "VTST_SCREEN_SHARE":
23
+ return VideoTrackSourceType.VTST_SCREEN_SHARE;
24
+ case -1:
25
+ case "UNRECOGNIZED":
26
+ default:
27
+ return VideoTrackSourceType.UNRECOGNIZED;
28
+ }
29
+ }
30
+
31
+ export function videoTrackSourceTypeToJSON(object: VideoTrackSourceType): string {
32
+ switch (object) {
33
+ case VideoTrackSourceType.VTST_UNKNOWN:
34
+ return "VTST_UNKNOWN";
35
+ case VideoTrackSourceType.VTST_CAMERA:
36
+ return "VTST_CAMERA";
37
+ case VideoTrackSourceType.VTST_SCREEN_SHARE:
38
+ return "VTST_SCREEN_SHARE";
39
+ case VideoTrackSourceType.UNRECOGNIZED:
40
+ default:
41
+ return "UNRECOGNIZED";
42
+ }
43
+ }
44
+
6
45
  export interface VideoTracksActiveStreamsRequest {
7
46
  }
8
47
 
@@ -13,6 +52,7 @@ export interface VideoTracksActiveStreamsResponse {
13
52
  export interface VideoTracksActiveStreamsData {
14
53
  identity: string;
15
54
  trackSid: string;
55
+ sourceType: VideoTrackSourceType;
16
56
  }
17
57
 
18
58
  function createBaseVideoTracksActiveStreamsRequest(): VideoTracksActiveStreamsRequest {
@@ -135,7 +175,7 @@ export namespace VideoTracksActiveStreamsResponse {
135
175
  }
136
176
 
137
177
  function createBaseVideoTracksActiveStreamsData(): VideoTracksActiveStreamsData {
138
- return { identity: "", trackSid: "" };
178
+ return { identity: "", trackSid: "", sourceType: 0 };
139
179
  }
140
180
 
141
181
  export namespace VideoTracksActiveStreamsData {
@@ -146,6 +186,9 @@ export namespace VideoTracksActiveStreamsData {
146
186
  if (message.trackSid !== "") {
147
187
  writer.uint32(18).string(message.trackSid);
148
188
  }
189
+ if (message.sourceType !== 0) {
190
+ writer.uint32(24).int32(message.sourceType);
191
+ }
149
192
  return writer;
150
193
  }
151
194
 
@@ -170,6 +213,13 @@ export namespace VideoTracksActiveStreamsData {
170
213
 
171
214
  message.trackSid = reader.string();
172
215
  continue;
216
+ case 3:
217
+ if (tag !== 24) {
218
+ break;
219
+ }
220
+
221
+ message.sourceType = reader.int32() as any;
222
+ continue;
173
223
  }
174
224
  if ((tag & 7) === 4 || tag === 0) {
175
225
  break;
@@ -183,6 +233,7 @@ export namespace VideoTracksActiveStreamsData {
183
233
  return {
184
234
  identity: isSet(object.identity) ? String(object.identity) : "",
185
235
  trackSid: isSet(object.trackSid) ? String(object.trackSid) : "",
236
+ sourceType: isSet(object.sourceType) ? videoTrackSourceTypeFromJSON(object.sourceType) : 0,
186
237
  };
187
238
  }
188
239
 
@@ -190,6 +241,7 @@ export namespace VideoTracksActiveStreamsData {
190
241
  const obj: any = {};
191
242
  message.identity !== undefined && (obj.identity = message.identity);
192
243
  message.trackSid !== undefined && (obj.trackSid = message.trackSid);
244
+ message.sourceType !== undefined && (obj.sourceType = videoTrackSourceTypeToJSON(message.sourceType));
193
245
  return obj;
194
246
  }
195
247
 
@@ -205,6 +257,7 @@ export namespace VideoTracksActiveStreamsData {
205
257
  const message = createBaseVideoTracksActiveStreamsData();
206
258
  message.identity = object.identity ?? "";
207
259
  message.trackSid = object.trackSid ?? "";
260
+ message.sourceType = object.sourceType ?? 0;
208
261
  return message;
209
262
  }
210
263
  }
@@ -0,0 +1,149 @@
1
+ /* eslint-disable */
2
+ import _m0 from "protobufjs/minimal";
3
+ import { Color3 } from "../../common/colors.gen";
4
+
5
+ export const protobufPackage = "decentraland.sdk.components";
6
+
7
+ /** AvatarBase sets all modifiers over the avatar's apparence. */
8
+ export interface PBAvatarBase {
9
+ skinColor: Color3 | undefined;
10
+ eyesColor: Color3 | undefined;
11
+ hairColor: Color3 | undefined;
12
+ bodyShapeUrn: string;
13
+ name: string;
14
+ }
15
+
16
+ function createBasePBAvatarBase(): PBAvatarBase {
17
+ return { skinColor: undefined, eyesColor: undefined, hairColor: undefined, bodyShapeUrn: "", name: "" };
18
+ }
19
+
20
+ export namespace PBAvatarBase {
21
+ export function encode(message: PBAvatarBase, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
22
+ if (message.skinColor !== undefined) {
23
+ Color3.encode(message.skinColor, writer.uint32(10).fork()).ldelim();
24
+ }
25
+ if (message.eyesColor !== undefined) {
26
+ Color3.encode(message.eyesColor, writer.uint32(18).fork()).ldelim();
27
+ }
28
+ if (message.hairColor !== undefined) {
29
+ Color3.encode(message.hairColor, writer.uint32(26).fork()).ldelim();
30
+ }
31
+ if (message.bodyShapeUrn !== "") {
32
+ writer.uint32(34).string(message.bodyShapeUrn);
33
+ }
34
+ if (message.name !== "") {
35
+ writer.uint32(42).string(message.name);
36
+ }
37
+ return writer;
38
+ }
39
+
40
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarBase {
41
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
42
+ let end = length === undefined ? reader.len : reader.pos + length;
43
+ const message = createBasePBAvatarBase();
44
+ while (reader.pos < end) {
45
+ const tag = reader.uint32();
46
+ switch (tag >>> 3) {
47
+ case 1:
48
+ if (tag !== 10) {
49
+ break;
50
+ }
51
+
52
+ message.skinColor = Color3.decode(reader, reader.uint32());
53
+ continue;
54
+ case 2:
55
+ if (tag !== 18) {
56
+ break;
57
+ }
58
+
59
+ message.eyesColor = Color3.decode(reader, reader.uint32());
60
+ continue;
61
+ case 3:
62
+ if (tag !== 26) {
63
+ break;
64
+ }
65
+
66
+ message.hairColor = Color3.decode(reader, reader.uint32());
67
+ continue;
68
+ case 4:
69
+ if (tag !== 34) {
70
+ break;
71
+ }
72
+
73
+ message.bodyShapeUrn = reader.string();
74
+ continue;
75
+ case 5:
76
+ if (tag !== 42) {
77
+ break;
78
+ }
79
+
80
+ message.name = reader.string();
81
+ continue;
82
+ }
83
+ if ((tag & 7) === 4 || tag === 0) {
84
+ break;
85
+ }
86
+ reader.skipType(tag & 7);
87
+ }
88
+ return message;
89
+ }
90
+
91
+ export function fromJSON(object: any): PBAvatarBase {
92
+ return {
93
+ skinColor: isSet(object.skinColor) ? Color3.fromJSON(object.skinColor) : undefined,
94
+ eyesColor: isSet(object.eyesColor) ? Color3.fromJSON(object.eyesColor) : undefined,
95
+ hairColor: isSet(object.hairColor) ? Color3.fromJSON(object.hairColor) : undefined,
96
+ bodyShapeUrn: isSet(object.bodyShapeUrn) ? String(object.bodyShapeUrn) : "",
97
+ name: isSet(object.name) ? String(object.name) : "",
98
+ };
99
+ }
100
+
101
+ export function toJSON(message: PBAvatarBase): unknown {
102
+ const obj: any = {};
103
+ message.skinColor !== undefined &&
104
+ (obj.skinColor = message.skinColor ? Color3.toJSON(message.skinColor) : undefined);
105
+ message.eyesColor !== undefined &&
106
+ (obj.eyesColor = message.eyesColor ? Color3.toJSON(message.eyesColor) : undefined);
107
+ message.hairColor !== undefined &&
108
+ (obj.hairColor = message.hairColor ? Color3.toJSON(message.hairColor) : undefined);
109
+ message.bodyShapeUrn !== undefined && (obj.bodyShapeUrn = message.bodyShapeUrn);
110
+ message.name !== undefined && (obj.name = message.name);
111
+ return obj;
112
+ }
113
+
114
+ export function create<I extends Exact<DeepPartial<PBAvatarBase>, I>>(base?: I): PBAvatarBase {
115
+ return PBAvatarBase.fromPartial(base ?? {});
116
+ }
117
+
118
+ export function fromPartial<I extends Exact<DeepPartial<PBAvatarBase>, I>>(object: I): PBAvatarBase {
119
+ const message = createBasePBAvatarBase();
120
+ message.skinColor = (object.skinColor !== undefined && object.skinColor !== null)
121
+ ? Color3.fromPartial(object.skinColor)
122
+ : undefined;
123
+ message.eyesColor = (object.eyesColor !== undefined && object.eyesColor !== null)
124
+ ? Color3.fromPartial(object.eyesColor)
125
+ : undefined;
126
+ message.hairColor = (object.hairColor !== undefined && object.hairColor !== null)
127
+ ? Color3.fromPartial(object.hairColor)
128
+ : undefined;
129
+ message.bodyShapeUrn = object.bodyShapeUrn ?? "";
130
+ message.name = object.name ?? "";
131
+ return message;
132
+ }
133
+ }
134
+
135
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
136
+
137
+ export type DeepPartial<T> = T extends Builtin ? T
138
+ : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
139
+ : T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
140
+ : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
141
+ : Partial<T>;
142
+
143
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
144
+ export type Exact<P, I extends P> = P extends Builtin ? P
145
+ : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
146
+
147
+ function isSet(value: any): boolean {
148
+ return value !== null && value !== undefined;
149
+ }
@@ -0,0 +1,176 @@
1
+ /* eslint-disable */
2
+ import _m0 from "protobufjs/minimal";
3
+
4
+ export const protobufPackage = "decentraland.sdk.components";
5
+
6
+ /**
7
+ * AvatarEmoteCommand is a grow only value set, used to signal the renderer about
8
+ * avatar emotes playback.
9
+ */
10
+ export interface PBAvatarEmoteCommand {
11
+ emoteCommand: PBAvatarEmoteCommand_EmoteCommand | undefined;
12
+ }
13
+
14
+ export interface PBAvatarEmoteCommand_EmoteCommand {
15
+ emoteUrn: string;
16
+ loop: boolean;
17
+ }
18
+
19
+ function createBasePBAvatarEmoteCommand(): PBAvatarEmoteCommand {
20
+ return { emoteCommand: undefined };
21
+ }
22
+
23
+ export namespace PBAvatarEmoteCommand {
24
+ export function encode(message: PBAvatarEmoteCommand, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
25
+ if (message.emoteCommand !== undefined) {
26
+ PBAvatarEmoteCommand_EmoteCommand.encode(message.emoteCommand, writer.uint32(10).fork()).ldelim();
27
+ }
28
+ return writer;
29
+ }
30
+
31
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarEmoteCommand {
32
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
33
+ let end = length === undefined ? reader.len : reader.pos + length;
34
+ const message = createBasePBAvatarEmoteCommand();
35
+ while (reader.pos < end) {
36
+ const tag = reader.uint32();
37
+ switch (tag >>> 3) {
38
+ case 1:
39
+ if (tag !== 10) {
40
+ break;
41
+ }
42
+
43
+ message.emoteCommand = PBAvatarEmoteCommand_EmoteCommand.decode(reader, reader.uint32());
44
+ continue;
45
+ }
46
+ if ((tag & 7) === 4 || tag === 0) {
47
+ break;
48
+ }
49
+ reader.skipType(tag & 7);
50
+ }
51
+ return message;
52
+ }
53
+
54
+ export function fromJSON(object: any): PBAvatarEmoteCommand {
55
+ return {
56
+ emoteCommand: isSet(object.emoteCommand)
57
+ ? PBAvatarEmoteCommand_EmoteCommand.fromJSON(object.emoteCommand)
58
+ : undefined,
59
+ };
60
+ }
61
+
62
+ export function toJSON(message: PBAvatarEmoteCommand): unknown {
63
+ const obj: any = {};
64
+ message.emoteCommand !== undefined &&
65
+ (obj.emoteCommand = message.emoteCommand
66
+ ? PBAvatarEmoteCommand_EmoteCommand.toJSON(message.emoteCommand)
67
+ : undefined);
68
+ return obj;
69
+ }
70
+
71
+ export function create<I extends Exact<DeepPartial<PBAvatarEmoteCommand>, I>>(base?: I): PBAvatarEmoteCommand {
72
+ return PBAvatarEmoteCommand.fromPartial(base ?? {});
73
+ }
74
+
75
+ export function fromPartial<I extends Exact<DeepPartial<PBAvatarEmoteCommand>, I>>(object: I): PBAvatarEmoteCommand {
76
+ const message = createBasePBAvatarEmoteCommand();
77
+ message.emoteCommand = (object.emoteCommand !== undefined && object.emoteCommand !== null)
78
+ ? PBAvatarEmoteCommand_EmoteCommand.fromPartial(object.emoteCommand)
79
+ : undefined;
80
+ return message;
81
+ }
82
+ }
83
+
84
+ function createBasePBAvatarEmoteCommand_EmoteCommand(): PBAvatarEmoteCommand_EmoteCommand {
85
+ return { emoteUrn: "", loop: false };
86
+ }
87
+
88
+ export namespace PBAvatarEmoteCommand_EmoteCommand {
89
+ export function encode(
90
+ message: PBAvatarEmoteCommand_EmoteCommand,
91
+ writer: _m0.Writer = _m0.Writer.create(),
92
+ ): _m0.Writer {
93
+ if (message.emoteUrn !== "") {
94
+ writer.uint32(10).string(message.emoteUrn);
95
+ }
96
+ if (message.loop === true) {
97
+ writer.uint32(16).bool(message.loop);
98
+ }
99
+ return writer;
100
+ }
101
+
102
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarEmoteCommand_EmoteCommand {
103
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
104
+ let end = length === undefined ? reader.len : reader.pos + length;
105
+ const message = createBasePBAvatarEmoteCommand_EmoteCommand();
106
+ while (reader.pos < end) {
107
+ const tag = reader.uint32();
108
+ switch (tag >>> 3) {
109
+ case 1:
110
+ if (tag !== 10) {
111
+ break;
112
+ }
113
+
114
+ message.emoteUrn = reader.string();
115
+ continue;
116
+ case 2:
117
+ if (tag !== 16) {
118
+ break;
119
+ }
120
+
121
+ message.loop = reader.bool();
122
+ continue;
123
+ }
124
+ if ((tag & 7) === 4 || tag === 0) {
125
+ break;
126
+ }
127
+ reader.skipType(tag & 7);
128
+ }
129
+ return message;
130
+ }
131
+
132
+ export function fromJSON(object: any): PBAvatarEmoteCommand_EmoteCommand {
133
+ return {
134
+ emoteUrn: isSet(object.emoteUrn) ? String(object.emoteUrn) : "",
135
+ loop: isSet(object.loop) ? Boolean(object.loop) : false,
136
+ };
137
+ }
138
+
139
+ export function toJSON(message: PBAvatarEmoteCommand_EmoteCommand): unknown {
140
+ const obj: any = {};
141
+ message.emoteUrn !== undefined && (obj.emoteUrn = message.emoteUrn);
142
+ message.loop !== undefined && (obj.loop = message.loop);
143
+ return obj;
144
+ }
145
+
146
+ export function create<I extends Exact<DeepPartial<PBAvatarEmoteCommand_EmoteCommand>, I>>(
147
+ base?: I,
148
+ ): PBAvatarEmoteCommand_EmoteCommand {
149
+ return PBAvatarEmoteCommand_EmoteCommand.fromPartial(base ?? {});
150
+ }
151
+
152
+ export function fromPartial<I extends Exact<DeepPartial<PBAvatarEmoteCommand_EmoteCommand>, I>>(
153
+ object: I,
154
+ ): PBAvatarEmoteCommand_EmoteCommand {
155
+ const message = createBasePBAvatarEmoteCommand_EmoteCommand();
156
+ message.emoteUrn = object.emoteUrn ?? "";
157
+ message.loop = object.loop ?? false;
158
+ return message;
159
+ }
160
+ }
161
+
162
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
163
+
164
+ export type DeepPartial<T> = T extends Builtin ? T
165
+ : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
166
+ : T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
167
+ : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
168
+ : Partial<T>;
169
+
170
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
171
+ export type Exact<P, I extends P> = P extends Builtin ? P
172
+ : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
173
+
174
+ function isSet(value: any): boolean {
175
+ return value !== null && value !== undefined;
176
+ }