@dcl/protocol 1.0.0-19994059551.commit-1d2c132 → 1.0.0-20440300149.commit-417c1dc
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-js/decentraland/kernel/comms/rfc4/comms.gen.d.ts +0 -43
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +10 -287
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/common/input_action.gen.d.ts +0 -1
- package/out-js/decentraland/sdk/components/common/input_action.gen.js +0 -6
- package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/visibility_component.gen.d.ts +8 -0
- package/out-js/decentraland/sdk/components/visibility_component.gen.js +17 -3
- package/out-js/decentraland/sdk/components/visibility_component.gen.js.map +1 -1
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.d.ts +32 -1368
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.js +148 -7057
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.js.map +1 -1
- package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +2 -343
- package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +0 -6
- package/out-ts/decentraland/sdk/components/visibility_component.gen.ts +28 -3
- package/out-ts/decentraland/social_service/v2/social_service_v2.gen.ts +984 -8945
- package/package.json +3 -3
- package/proto/decentraland/kernel/comms/rfc4/comms.proto +2 -27
- package/proto/decentraland/sdk/components/common/input_action.proto +0 -1
- package/proto/decentraland/sdk/components/light_source.proto +1 -1
- package/proto/decentraland/sdk/components/virtual_camera.proto +0 -2
- package/proto/decentraland/sdk/components/visibility_component.proto +7 -0
- package/proto/decentraland/social_service/v2/social_service_v2.proto +11 -563
- package/out-js/decentraland/social_service/errors.gen.d.ts +0 -96
- package/out-js/decentraland/social_service/errors.gen.js +0 -405
- package/out-js/decentraland/social_service/errors.gen.js.map +0 -1
- package/out-ts/decentraland/social_service/errors.gen.ts +0 -442
- package/proto/decentraland/sdk/components/audio_analysis.proto +0 -44
- package/proto/decentraland/sdk/components/avatar_locomotion_settings.proto +0 -18
- package/proto/decentraland/social_service/errors.proto +0 -30
- package/proto/decentraland/social_service/v3/social_service_v3.proto +0 -51
|
@@ -34,9 +34,6 @@ export interface Packet {
|
|
|
34
34
|
} | {
|
|
35
35
|
$case: "movementCompressed";
|
|
36
36
|
movementCompressed: MovementCompressed;
|
|
37
|
-
} | {
|
|
38
|
-
$case: "lookAtPosition";
|
|
39
|
-
lookAtPosition: LookAtPosition;
|
|
40
37
|
} | undefined;
|
|
41
38
|
protocolVersion: number;
|
|
42
39
|
}
|
|
@@ -74,9 +71,6 @@ export interface Movement {
|
|
|
74
71
|
isFalling: boolean;
|
|
75
72
|
isStunned: boolean;
|
|
76
73
|
rotationY: number;
|
|
77
|
-
/** interpolation */
|
|
78
|
-
isInstant: boolean;
|
|
79
|
-
isEmoting: boolean;
|
|
80
74
|
}
|
|
81
75
|
export interface MovementCompressed {
|
|
82
76
|
/** bit-compressed: timestamp + animations */
|
|
@@ -87,30 +81,6 @@ export interface MovementCompressed {
|
|
|
87
81
|
export interface PlayerEmote {
|
|
88
82
|
incrementalId: number;
|
|
89
83
|
urn: string;
|
|
90
|
-
timestamp: number;
|
|
91
|
-
/** true means the emote has been stopped in the sender's client */
|
|
92
|
-
isStopping?: boolean | undefined;
|
|
93
|
-
/** true when it is not the first time the looping animation plays */
|
|
94
|
-
isRepeating?: boolean | undefined;
|
|
95
|
-
/** identifies an interaction univocaly, established when the start animation is triggered */
|
|
96
|
-
interactionId?: number | undefined;
|
|
97
|
-
/** -1 means it does not use an outcome animation */
|
|
98
|
-
socialEmoteOutcome?: number | undefined;
|
|
99
|
-
/** to a social emote started by other user */
|
|
100
|
-
isReacting?: boolean | undefined;
|
|
101
|
-
/** wallet address of the user that initiated social emote */
|
|
102
|
-
socialEmoteInitiator?: string | undefined;
|
|
103
|
-
/** wallet address of the user whose avatar is the target of a directed emote */
|
|
104
|
-
targetAvatar?: string | undefined;
|
|
105
|
-
}
|
|
106
|
-
/** Message sent to force an avatar to look at a position */
|
|
107
|
-
export interface LookAtPosition {
|
|
108
|
-
timestamp: number;
|
|
109
|
-
/** world position */
|
|
110
|
-
positionX: number;
|
|
111
|
-
positionY: number;
|
|
112
|
-
positionZ: number;
|
|
113
|
-
targetAvatarWalletAddress: string;
|
|
114
84
|
}
|
|
115
85
|
export interface SceneEmote {
|
|
116
86
|
sceneEntityId: string;
|
|
@@ -130,11 +100,6 @@ export interface ProfileResponse {
|
|
|
130
100
|
export interface Chat {
|
|
131
101
|
message: string;
|
|
132
102
|
timestamp: number;
|
|
133
|
-
/**
|
|
134
|
-
* Extension: optional forwarded_from to identify the original sender when
|
|
135
|
-
* messages are forwarded through an SFU
|
|
136
|
-
*/
|
|
137
|
-
forwardedFrom?: string | undefined;
|
|
138
103
|
}
|
|
139
104
|
export interface Scene {
|
|
140
105
|
sceneId: string;
|
|
@@ -191,14 +156,6 @@ export declare namespace PlayerEmote {
|
|
|
191
156
|
function create<I extends Exact<DeepPartial<PlayerEmote>, I>>(base?: I): PlayerEmote;
|
|
192
157
|
function fromPartial<I extends Exact<DeepPartial<PlayerEmote>, I>>(object: I): PlayerEmote;
|
|
193
158
|
}
|
|
194
|
-
export declare namespace LookAtPosition {
|
|
195
|
-
function encode(message: LookAtPosition, writer?: _m0.Writer): _m0.Writer;
|
|
196
|
-
function decode(input: _m0.Reader | Uint8Array, length?: number): LookAtPosition;
|
|
197
|
-
function fromJSON(object: any): LookAtPosition;
|
|
198
|
-
function toJSON(message: LookAtPosition): unknown;
|
|
199
|
-
function create<I extends Exact<DeepPartial<LookAtPosition>, I>>(base?: I): LookAtPosition;
|
|
200
|
-
function fromPartial<I extends Exact<DeepPartial<LookAtPosition>, I>>(object: I): LookAtPosition;
|
|
201
|
-
}
|
|
202
159
|
export declare namespace SceneEmote {
|
|
203
160
|
function encode(message: SceneEmote, writer?: _m0.Writer): _m0.Writer;
|
|
204
161
|
function decode(input: _m0.Reader | Uint8Array, length?: number): SceneEmote;
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.Voice = exports.Scene = exports.Chat = exports.ProfileResponse = exports.ProfileRequest = exports.AnnounceProfileVersion = exports.SceneEmote = exports.
|
|
6
|
+
exports.Voice = exports.Scene = exports.Chat = exports.ProfileResponse = exports.ProfileRequest = exports.AnnounceProfileVersion = exports.SceneEmote = exports.PlayerEmote = exports.MovementCompressed = exports.Movement = exports.Position = exports.Packet = exports.Voice_VoiceCodec = exports.protobufPackage = void 0;
|
|
7
7
|
exports.voice_VoiceCodecFromJSON = voice_VoiceCodecFromJSON;
|
|
8
8
|
exports.voice_VoiceCodecToJSON = voice_VoiceCodecToJSON;
|
|
9
9
|
/* eslint-disable */
|
|
@@ -76,9 +76,6 @@ var Packet;
|
|
|
76
76
|
case "movementCompressed":
|
|
77
77
|
MovementCompressed.encode(message.message.movementCompressed, writer.uint32(98).fork()).ldelim();
|
|
78
78
|
break;
|
|
79
|
-
case "lookAtPosition":
|
|
80
|
-
LookAtPosition.encode(message.message.lookAtPosition, writer.uint32(106).fork()).ldelim();
|
|
81
|
-
break;
|
|
82
79
|
}
|
|
83
80
|
if (message.protocolVersion !== 0) {
|
|
84
81
|
writer.uint32(88).uint32(message.protocolVersion);
|
|
@@ -168,12 +165,6 @@ var Packet;
|
|
|
168
165
|
movementCompressed: MovementCompressed.decode(reader, reader.uint32()),
|
|
169
166
|
};
|
|
170
167
|
continue;
|
|
171
|
-
case 13:
|
|
172
|
-
if (tag !== 106) {
|
|
173
|
-
break;
|
|
174
|
-
}
|
|
175
|
-
message.message = { $case: "lookAtPosition", lookAtPosition: LookAtPosition.decode(reader, reader.uint32()) };
|
|
176
|
-
continue;
|
|
177
168
|
case 11:
|
|
178
169
|
if (tag !== 88) {
|
|
179
170
|
break;
|
|
@@ -213,15 +204,13 @@ var Packet;
|
|
|
213
204
|
? { $case: "sceneEmote", sceneEmote: SceneEmote.fromJSON(object.sceneEmote) }
|
|
214
205
|
: isSet(object.movementCompressed)
|
|
215
206
|
? { $case: "movementCompressed", movementCompressed: MovementCompressed.fromJSON(object.movementCompressed) }
|
|
216
|
-
:
|
|
217
|
-
? { $case: "lookAtPosition", lookAtPosition: LookAtPosition.fromJSON(object.lookAtPosition) }
|
|
218
|
-
: undefined,
|
|
207
|
+
: undefined,
|
|
219
208
|
protocolVersion: isSet(object.protocolVersion) ? Number(object.protocolVersion) : 0,
|
|
220
209
|
};
|
|
221
210
|
}
|
|
222
211
|
Packet.fromJSON = fromJSON;
|
|
223
212
|
function toJSON(message) {
|
|
224
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8
|
|
213
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8;
|
|
225
214
|
const obj = {};
|
|
226
215
|
((_a = message.message) === null || _a === void 0 ? void 0 : _a.$case) === "position" &&
|
|
227
216
|
(obj.position = ((_b = message.message) === null || _b === void 0 ? void 0 : _b.position) ? Position.toJSON((_c = message.message) === null || _c === void 0 ? void 0 : _c.position) : undefined);
|
|
@@ -253,10 +242,6 @@ var Packet;
|
|
|
253
242
|
(obj.movementCompressed = ((_7 = message.message) === null || _7 === void 0 ? void 0 : _7.movementCompressed)
|
|
254
243
|
? MovementCompressed.toJSON((_8 = message.message) === null || _8 === void 0 ? void 0 : _8.movementCompressed)
|
|
255
244
|
: undefined);
|
|
256
|
-
((_9 = message.message) === null || _9 === void 0 ? void 0 : _9.$case) === "lookAtPosition" &&
|
|
257
|
-
(obj.lookAtPosition = ((_10 = message.message) === null || _10 === void 0 ? void 0 : _10.lookAtPosition)
|
|
258
|
-
? LookAtPosition.toJSON((_11 = message.message) === null || _11 === void 0 ? void 0 : _11.lookAtPosition)
|
|
259
|
-
: undefined);
|
|
260
245
|
message.protocolVersion !== undefined && (obj.protocolVersion = Math.round(message.protocolVersion));
|
|
261
246
|
return obj;
|
|
262
247
|
}
|
|
@@ -266,7 +251,7 @@ var Packet;
|
|
|
266
251
|
}
|
|
267
252
|
Packet.create = create;
|
|
268
253
|
function fromPartial(object) {
|
|
269
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9
|
|
254
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9;
|
|
270
255
|
const message = createBasePacket();
|
|
271
256
|
if (((_a = object.message) === null || _a === void 0 ? void 0 : _a.$case) === "position" &&
|
|
272
257
|
((_b = object.message) === null || _b === void 0 ? void 0 : _b.position) !== undefined &&
|
|
@@ -329,15 +314,7 @@ var Packet;
|
|
|
329
314
|
movementCompressed: MovementCompressed.fromPartial(object.message.movementCompressed),
|
|
330
315
|
};
|
|
331
316
|
}
|
|
332
|
-
|
|
333
|
-
((_10 = object.message) === null || _10 === void 0 ? void 0 : _10.lookAtPosition) !== undefined &&
|
|
334
|
-
((_11 = object.message) === null || _11 === void 0 ? void 0 : _11.lookAtPosition) !== null) {
|
|
335
|
-
message.message = {
|
|
336
|
-
$case: "lookAtPosition",
|
|
337
|
-
lookAtPosition: LookAtPosition.fromPartial(object.message.lookAtPosition),
|
|
338
|
-
};
|
|
339
|
-
}
|
|
340
|
-
message.protocolVersion = (_12 = object.protocolVersion) !== null && _12 !== void 0 ? _12 : 0;
|
|
317
|
+
message.protocolVersion = (_9 = object.protocolVersion) !== null && _9 !== void 0 ? _9 : 0;
|
|
341
318
|
return message;
|
|
342
319
|
}
|
|
343
320
|
Packet.fromPartial = fromPartial;
|
|
@@ -502,8 +479,6 @@ function createBaseMovement() {
|
|
|
502
479
|
isFalling: false,
|
|
503
480
|
isStunned: false,
|
|
504
481
|
rotationY: 0,
|
|
505
|
-
isInstant: false,
|
|
506
|
-
isEmoting: false,
|
|
507
482
|
};
|
|
508
483
|
}
|
|
509
484
|
var Movement;
|
|
@@ -557,12 +532,6 @@ var Movement;
|
|
|
557
532
|
if (message.rotationY !== 0) {
|
|
558
533
|
writer.uint32(133).float(message.rotationY);
|
|
559
534
|
}
|
|
560
|
-
if (message.isInstant === true) {
|
|
561
|
-
writer.uint32(136).bool(message.isInstant);
|
|
562
|
-
}
|
|
563
|
-
if (message.isEmoting === true) {
|
|
564
|
-
writer.uint32(144).bool(message.isEmoting);
|
|
565
|
-
}
|
|
566
535
|
return writer;
|
|
567
536
|
}
|
|
568
537
|
Movement.encode = encode;
|
|
@@ -669,18 +638,6 @@ var Movement;
|
|
|
669
638
|
}
|
|
670
639
|
message.rotationY = reader.float();
|
|
671
640
|
continue;
|
|
672
|
-
case 17:
|
|
673
|
-
if (tag !== 136) {
|
|
674
|
-
break;
|
|
675
|
-
}
|
|
676
|
-
message.isInstant = reader.bool();
|
|
677
|
-
continue;
|
|
678
|
-
case 18:
|
|
679
|
-
if (tag !== 144) {
|
|
680
|
-
break;
|
|
681
|
-
}
|
|
682
|
-
message.isEmoting = reader.bool();
|
|
683
|
-
continue;
|
|
684
641
|
}
|
|
685
642
|
if ((tag & 7) === 4 || tag === 0) {
|
|
686
643
|
break;
|
|
@@ -708,8 +665,6 @@ var Movement;
|
|
|
708
665
|
isFalling: isSet(object.isFalling) ? Boolean(object.isFalling) : false,
|
|
709
666
|
isStunned: isSet(object.isStunned) ? Boolean(object.isStunned) : false,
|
|
710
667
|
rotationY: isSet(object.rotationY) ? Number(object.rotationY) : 0,
|
|
711
|
-
isInstant: isSet(object.isInstant) ? Boolean(object.isInstant) : false,
|
|
712
|
-
isEmoting: isSet(object.isEmoting) ? Boolean(object.isEmoting) : false,
|
|
713
668
|
};
|
|
714
669
|
}
|
|
715
670
|
Movement.fromJSON = fromJSON;
|
|
@@ -731,8 +686,6 @@ var Movement;
|
|
|
731
686
|
message.isFalling !== undefined && (obj.isFalling = message.isFalling);
|
|
732
687
|
message.isStunned !== undefined && (obj.isStunned = message.isStunned);
|
|
733
688
|
message.rotationY !== undefined && (obj.rotationY = message.rotationY);
|
|
734
|
-
message.isInstant !== undefined && (obj.isInstant = message.isInstant);
|
|
735
|
-
message.isEmoting !== undefined && (obj.isEmoting = message.isEmoting);
|
|
736
689
|
return obj;
|
|
737
690
|
}
|
|
738
691
|
Movement.toJSON = toJSON;
|
|
@@ -741,7 +694,7 @@ var Movement;
|
|
|
741
694
|
}
|
|
742
695
|
Movement.create = create;
|
|
743
696
|
function fromPartial(object) {
|
|
744
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r
|
|
697
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
745
698
|
const message = createBaseMovement();
|
|
746
699
|
message.timestamp = (_a = object.timestamp) !== null && _a !== void 0 ? _a : 0;
|
|
747
700
|
message.positionX = (_b = object.positionX) !== null && _b !== void 0 ? _b : 0;
|
|
@@ -759,8 +712,6 @@ var Movement;
|
|
|
759
712
|
message.isFalling = (_p = object.isFalling) !== null && _p !== void 0 ? _p : false;
|
|
760
713
|
message.isStunned = (_q = object.isStunned) !== null && _q !== void 0 ? _q : false;
|
|
761
714
|
message.rotationY = (_r = object.rotationY) !== null && _r !== void 0 ? _r : 0;
|
|
762
|
-
message.isInstant = (_s = object.isInstant) !== null && _s !== void 0 ? _s : false;
|
|
763
|
-
message.isEmoting = (_t = object.isEmoting) !== null && _t !== void 0 ? _t : false;
|
|
764
715
|
return message;
|
|
765
716
|
}
|
|
766
717
|
Movement.fromPartial = fromPartial;
|
|
@@ -836,18 +787,7 @@ var MovementCompressed;
|
|
|
836
787
|
MovementCompressed.fromPartial = fromPartial;
|
|
837
788
|
})(MovementCompressed || (exports.MovementCompressed = MovementCompressed = {}));
|
|
838
789
|
function createBasePlayerEmote() {
|
|
839
|
-
return {
|
|
840
|
-
incrementalId: 0,
|
|
841
|
-
urn: "",
|
|
842
|
-
timestamp: 0,
|
|
843
|
-
isStopping: undefined,
|
|
844
|
-
isRepeating: undefined,
|
|
845
|
-
interactionId: undefined,
|
|
846
|
-
socialEmoteOutcome: undefined,
|
|
847
|
-
isReacting: undefined,
|
|
848
|
-
socialEmoteInitiator: undefined,
|
|
849
|
-
targetAvatar: undefined,
|
|
850
|
-
};
|
|
790
|
+
return { incrementalId: 0, urn: "" };
|
|
851
791
|
}
|
|
852
792
|
var PlayerEmote;
|
|
853
793
|
(function (PlayerEmote) {
|
|
@@ -858,30 +798,6 @@ var PlayerEmote;
|
|
|
858
798
|
if (message.urn !== "") {
|
|
859
799
|
writer.uint32(18).string(message.urn);
|
|
860
800
|
}
|
|
861
|
-
if (message.timestamp !== 0) {
|
|
862
|
-
writer.uint32(29).float(message.timestamp);
|
|
863
|
-
}
|
|
864
|
-
if (message.isStopping !== undefined) {
|
|
865
|
-
writer.uint32(32).bool(message.isStopping);
|
|
866
|
-
}
|
|
867
|
-
if (message.isRepeating !== undefined) {
|
|
868
|
-
writer.uint32(40).bool(message.isRepeating);
|
|
869
|
-
}
|
|
870
|
-
if (message.interactionId !== undefined) {
|
|
871
|
-
writer.uint32(48).int32(message.interactionId);
|
|
872
|
-
}
|
|
873
|
-
if (message.socialEmoteOutcome !== undefined) {
|
|
874
|
-
writer.uint32(56).int32(message.socialEmoteOutcome);
|
|
875
|
-
}
|
|
876
|
-
if (message.isReacting !== undefined) {
|
|
877
|
-
writer.uint32(64).bool(message.isReacting);
|
|
878
|
-
}
|
|
879
|
-
if (message.socialEmoteInitiator !== undefined) {
|
|
880
|
-
writer.uint32(74).string(message.socialEmoteInitiator);
|
|
881
|
-
}
|
|
882
|
-
if (message.targetAvatar !== undefined) {
|
|
883
|
-
writer.uint32(82).string(message.targetAvatar);
|
|
884
|
-
}
|
|
885
801
|
return writer;
|
|
886
802
|
}
|
|
887
803
|
PlayerEmote.encode = encode;
|
|
@@ -904,54 +820,6 @@ var PlayerEmote;
|
|
|
904
820
|
}
|
|
905
821
|
message.urn = reader.string();
|
|
906
822
|
continue;
|
|
907
|
-
case 3:
|
|
908
|
-
if (tag !== 29) {
|
|
909
|
-
break;
|
|
910
|
-
}
|
|
911
|
-
message.timestamp = reader.float();
|
|
912
|
-
continue;
|
|
913
|
-
case 4:
|
|
914
|
-
if (tag !== 32) {
|
|
915
|
-
break;
|
|
916
|
-
}
|
|
917
|
-
message.isStopping = reader.bool();
|
|
918
|
-
continue;
|
|
919
|
-
case 5:
|
|
920
|
-
if (tag !== 40) {
|
|
921
|
-
break;
|
|
922
|
-
}
|
|
923
|
-
message.isRepeating = reader.bool();
|
|
924
|
-
continue;
|
|
925
|
-
case 6:
|
|
926
|
-
if (tag !== 48) {
|
|
927
|
-
break;
|
|
928
|
-
}
|
|
929
|
-
message.interactionId = reader.int32();
|
|
930
|
-
continue;
|
|
931
|
-
case 7:
|
|
932
|
-
if (tag !== 56) {
|
|
933
|
-
break;
|
|
934
|
-
}
|
|
935
|
-
message.socialEmoteOutcome = reader.int32();
|
|
936
|
-
continue;
|
|
937
|
-
case 8:
|
|
938
|
-
if (tag !== 64) {
|
|
939
|
-
break;
|
|
940
|
-
}
|
|
941
|
-
message.isReacting = reader.bool();
|
|
942
|
-
continue;
|
|
943
|
-
case 9:
|
|
944
|
-
if (tag !== 74) {
|
|
945
|
-
break;
|
|
946
|
-
}
|
|
947
|
-
message.socialEmoteInitiator = reader.string();
|
|
948
|
-
continue;
|
|
949
|
-
case 10:
|
|
950
|
-
if (tag !== 82) {
|
|
951
|
-
break;
|
|
952
|
-
}
|
|
953
|
-
message.targetAvatar = reader.string();
|
|
954
|
-
continue;
|
|
955
823
|
}
|
|
956
824
|
if ((tag & 7) === 4 || tag === 0) {
|
|
957
825
|
break;
|
|
@@ -965,14 +833,6 @@ var PlayerEmote;
|
|
|
965
833
|
return {
|
|
966
834
|
incrementalId: isSet(object.incrementalId) ? Number(object.incrementalId) : 0,
|
|
967
835
|
urn: isSet(object.urn) ? String(object.urn) : "",
|
|
968
|
-
timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0,
|
|
969
|
-
isStopping: isSet(object.isStopping) ? Boolean(object.isStopping) : undefined,
|
|
970
|
-
isRepeating: isSet(object.isRepeating) ? Boolean(object.isRepeating) : undefined,
|
|
971
|
-
interactionId: isSet(object.interactionId) ? Number(object.interactionId) : undefined,
|
|
972
|
-
socialEmoteOutcome: isSet(object.socialEmoteOutcome) ? Number(object.socialEmoteOutcome) : undefined,
|
|
973
|
-
isReacting: isSet(object.isReacting) ? Boolean(object.isReacting) : undefined,
|
|
974
|
-
socialEmoteInitiator: isSet(object.socialEmoteInitiator) ? String(object.socialEmoteInitiator) : undefined,
|
|
975
|
-
targetAvatar: isSet(object.targetAvatar) ? String(object.targetAvatar) : undefined,
|
|
976
836
|
};
|
|
977
837
|
}
|
|
978
838
|
PlayerEmote.fromJSON = fromJSON;
|
|
@@ -980,14 +840,6 @@ var PlayerEmote;
|
|
|
980
840
|
const obj = {};
|
|
981
841
|
message.incrementalId !== undefined && (obj.incrementalId = Math.round(message.incrementalId));
|
|
982
842
|
message.urn !== undefined && (obj.urn = message.urn);
|
|
983
|
-
message.timestamp !== undefined && (obj.timestamp = message.timestamp);
|
|
984
|
-
message.isStopping !== undefined && (obj.isStopping = message.isStopping);
|
|
985
|
-
message.isRepeating !== undefined && (obj.isRepeating = message.isRepeating);
|
|
986
|
-
message.interactionId !== undefined && (obj.interactionId = Math.round(message.interactionId));
|
|
987
|
-
message.socialEmoteOutcome !== undefined && (obj.socialEmoteOutcome = Math.round(message.socialEmoteOutcome));
|
|
988
|
-
message.isReacting !== undefined && (obj.isReacting = message.isReacting);
|
|
989
|
-
message.socialEmoteInitiator !== undefined && (obj.socialEmoteInitiator = message.socialEmoteInitiator);
|
|
990
|
-
message.targetAvatar !== undefined && (obj.targetAvatar = message.targetAvatar);
|
|
991
843
|
return obj;
|
|
992
844
|
}
|
|
993
845
|
PlayerEmote.toJSON = toJSON;
|
|
@@ -996,131 +848,14 @@ var PlayerEmote;
|
|
|
996
848
|
}
|
|
997
849
|
PlayerEmote.create = create;
|
|
998
850
|
function fromPartial(object) {
|
|
999
|
-
var _a, _b
|
|
851
|
+
var _a, _b;
|
|
1000
852
|
const message = createBasePlayerEmote();
|
|
1001
853
|
message.incrementalId = (_a = object.incrementalId) !== null && _a !== void 0 ? _a : 0;
|
|
1002
854
|
message.urn = (_b = object.urn) !== null && _b !== void 0 ? _b : "";
|
|
1003
|
-
message.timestamp = (_c = object.timestamp) !== null && _c !== void 0 ? _c : 0;
|
|
1004
|
-
message.isStopping = (_d = object.isStopping) !== null && _d !== void 0 ? _d : undefined;
|
|
1005
|
-
message.isRepeating = (_e = object.isRepeating) !== null && _e !== void 0 ? _e : undefined;
|
|
1006
|
-
message.interactionId = (_f = object.interactionId) !== null && _f !== void 0 ? _f : undefined;
|
|
1007
|
-
message.socialEmoteOutcome = (_g = object.socialEmoteOutcome) !== null && _g !== void 0 ? _g : undefined;
|
|
1008
|
-
message.isReacting = (_h = object.isReacting) !== null && _h !== void 0 ? _h : undefined;
|
|
1009
|
-
message.socialEmoteInitiator = (_j = object.socialEmoteInitiator) !== null && _j !== void 0 ? _j : undefined;
|
|
1010
|
-
message.targetAvatar = (_k = object.targetAvatar) !== null && _k !== void 0 ? _k : undefined;
|
|
1011
855
|
return message;
|
|
1012
856
|
}
|
|
1013
857
|
PlayerEmote.fromPartial = fromPartial;
|
|
1014
858
|
})(PlayerEmote || (exports.PlayerEmote = PlayerEmote = {}));
|
|
1015
|
-
function createBaseLookAtPosition() {
|
|
1016
|
-
return { timestamp: 0, positionX: 0, positionY: 0, positionZ: 0, targetAvatarWalletAddress: "" };
|
|
1017
|
-
}
|
|
1018
|
-
var LookAtPosition;
|
|
1019
|
-
(function (LookAtPosition) {
|
|
1020
|
-
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1021
|
-
if (message.timestamp !== 0) {
|
|
1022
|
-
writer.uint32(13).float(message.timestamp);
|
|
1023
|
-
}
|
|
1024
|
-
if (message.positionX !== 0) {
|
|
1025
|
-
writer.uint32(21).float(message.positionX);
|
|
1026
|
-
}
|
|
1027
|
-
if (message.positionY !== 0) {
|
|
1028
|
-
writer.uint32(29).float(message.positionY);
|
|
1029
|
-
}
|
|
1030
|
-
if (message.positionZ !== 0) {
|
|
1031
|
-
writer.uint32(37).float(message.positionZ);
|
|
1032
|
-
}
|
|
1033
|
-
if (message.targetAvatarWalletAddress !== "") {
|
|
1034
|
-
writer.uint32(42).string(message.targetAvatarWalletAddress);
|
|
1035
|
-
}
|
|
1036
|
-
return writer;
|
|
1037
|
-
}
|
|
1038
|
-
LookAtPosition.encode = encode;
|
|
1039
|
-
function decode(input, length) {
|
|
1040
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1041
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1042
|
-
const message = createBaseLookAtPosition();
|
|
1043
|
-
while (reader.pos < end) {
|
|
1044
|
-
const tag = reader.uint32();
|
|
1045
|
-
switch (tag >>> 3) {
|
|
1046
|
-
case 1:
|
|
1047
|
-
if (tag !== 13) {
|
|
1048
|
-
break;
|
|
1049
|
-
}
|
|
1050
|
-
message.timestamp = reader.float();
|
|
1051
|
-
continue;
|
|
1052
|
-
case 2:
|
|
1053
|
-
if (tag !== 21) {
|
|
1054
|
-
break;
|
|
1055
|
-
}
|
|
1056
|
-
message.positionX = reader.float();
|
|
1057
|
-
continue;
|
|
1058
|
-
case 3:
|
|
1059
|
-
if (tag !== 29) {
|
|
1060
|
-
break;
|
|
1061
|
-
}
|
|
1062
|
-
message.positionY = reader.float();
|
|
1063
|
-
continue;
|
|
1064
|
-
case 4:
|
|
1065
|
-
if (tag !== 37) {
|
|
1066
|
-
break;
|
|
1067
|
-
}
|
|
1068
|
-
message.positionZ = reader.float();
|
|
1069
|
-
continue;
|
|
1070
|
-
case 5:
|
|
1071
|
-
if (tag !== 42) {
|
|
1072
|
-
break;
|
|
1073
|
-
}
|
|
1074
|
-
message.targetAvatarWalletAddress = reader.string();
|
|
1075
|
-
continue;
|
|
1076
|
-
}
|
|
1077
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1078
|
-
break;
|
|
1079
|
-
}
|
|
1080
|
-
reader.skipType(tag & 7);
|
|
1081
|
-
}
|
|
1082
|
-
return message;
|
|
1083
|
-
}
|
|
1084
|
-
LookAtPosition.decode = decode;
|
|
1085
|
-
function fromJSON(object) {
|
|
1086
|
-
return {
|
|
1087
|
-
timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0,
|
|
1088
|
-
positionX: isSet(object.positionX) ? Number(object.positionX) : 0,
|
|
1089
|
-
positionY: isSet(object.positionY) ? Number(object.positionY) : 0,
|
|
1090
|
-
positionZ: isSet(object.positionZ) ? Number(object.positionZ) : 0,
|
|
1091
|
-
targetAvatarWalletAddress: isSet(object.targetAvatarWalletAddress)
|
|
1092
|
-
? String(object.targetAvatarWalletAddress)
|
|
1093
|
-
: "",
|
|
1094
|
-
};
|
|
1095
|
-
}
|
|
1096
|
-
LookAtPosition.fromJSON = fromJSON;
|
|
1097
|
-
function toJSON(message) {
|
|
1098
|
-
const obj = {};
|
|
1099
|
-
message.timestamp !== undefined && (obj.timestamp = message.timestamp);
|
|
1100
|
-
message.positionX !== undefined && (obj.positionX = message.positionX);
|
|
1101
|
-
message.positionY !== undefined && (obj.positionY = message.positionY);
|
|
1102
|
-
message.positionZ !== undefined && (obj.positionZ = message.positionZ);
|
|
1103
|
-
message.targetAvatarWalletAddress !== undefined &&
|
|
1104
|
-
(obj.targetAvatarWalletAddress = message.targetAvatarWalletAddress);
|
|
1105
|
-
return obj;
|
|
1106
|
-
}
|
|
1107
|
-
LookAtPosition.toJSON = toJSON;
|
|
1108
|
-
function create(base) {
|
|
1109
|
-
return LookAtPosition.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1110
|
-
}
|
|
1111
|
-
LookAtPosition.create = create;
|
|
1112
|
-
function fromPartial(object) {
|
|
1113
|
-
var _a, _b, _c, _d, _e;
|
|
1114
|
-
const message = createBaseLookAtPosition();
|
|
1115
|
-
message.timestamp = (_a = object.timestamp) !== null && _a !== void 0 ? _a : 0;
|
|
1116
|
-
message.positionX = (_b = object.positionX) !== null && _b !== void 0 ? _b : 0;
|
|
1117
|
-
message.positionY = (_c = object.positionY) !== null && _c !== void 0 ? _c : 0;
|
|
1118
|
-
message.positionZ = (_d = object.positionZ) !== null && _d !== void 0 ? _d : 0;
|
|
1119
|
-
message.targetAvatarWalletAddress = (_e = object.targetAvatarWalletAddress) !== null && _e !== void 0 ? _e : "";
|
|
1120
|
-
return message;
|
|
1121
|
-
}
|
|
1122
|
-
LookAtPosition.fromPartial = fromPartial;
|
|
1123
|
-
})(LookAtPosition || (exports.LookAtPosition = LookAtPosition = {}));
|
|
1124
859
|
function createBaseSceneEmote() {
|
|
1125
860
|
return { sceneEntityId: "", source: "" };
|
|
1126
861
|
}
|
|
@@ -1388,7 +1123,7 @@ var ProfileResponse;
|
|
|
1388
1123
|
ProfileResponse.fromPartial = fromPartial;
|
|
1389
1124
|
})(ProfileResponse || (exports.ProfileResponse = ProfileResponse = {}));
|
|
1390
1125
|
function createBaseChat() {
|
|
1391
|
-
return { message: "", timestamp: 0
|
|
1126
|
+
return { message: "", timestamp: 0 };
|
|
1392
1127
|
}
|
|
1393
1128
|
var Chat;
|
|
1394
1129
|
(function (Chat) {
|
|
@@ -1399,9 +1134,6 @@ var Chat;
|
|
|
1399
1134
|
if (message.timestamp !== 0) {
|
|
1400
1135
|
writer.uint32(17).double(message.timestamp);
|
|
1401
1136
|
}
|
|
1402
|
-
if (message.forwardedFrom !== undefined) {
|
|
1403
|
-
writer.uint32(26).string(message.forwardedFrom);
|
|
1404
|
-
}
|
|
1405
1137
|
return writer;
|
|
1406
1138
|
}
|
|
1407
1139
|
Chat.encode = encode;
|
|
@@ -1424,12 +1156,6 @@ var Chat;
|
|
|
1424
1156
|
}
|
|
1425
1157
|
message.timestamp = reader.double();
|
|
1426
1158
|
continue;
|
|
1427
|
-
case 3:
|
|
1428
|
-
if (tag !== 26) {
|
|
1429
|
-
break;
|
|
1430
|
-
}
|
|
1431
|
-
message.forwardedFrom = reader.string();
|
|
1432
|
-
continue;
|
|
1433
1159
|
}
|
|
1434
1160
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1435
1161
|
break;
|
|
@@ -1443,7 +1169,6 @@ var Chat;
|
|
|
1443
1169
|
return {
|
|
1444
1170
|
message: isSet(object.message) ? String(object.message) : "",
|
|
1445
1171
|
timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0,
|
|
1446
|
-
forwardedFrom: isSet(object.forwardedFrom) ? String(object.forwardedFrom) : undefined,
|
|
1447
1172
|
};
|
|
1448
1173
|
}
|
|
1449
1174
|
Chat.fromJSON = fromJSON;
|
|
@@ -1451,7 +1176,6 @@ var Chat;
|
|
|
1451
1176
|
const obj = {};
|
|
1452
1177
|
message.message !== undefined && (obj.message = message.message);
|
|
1453
1178
|
message.timestamp !== undefined && (obj.timestamp = message.timestamp);
|
|
1454
|
-
message.forwardedFrom !== undefined && (obj.forwardedFrom = message.forwardedFrom);
|
|
1455
1179
|
return obj;
|
|
1456
1180
|
}
|
|
1457
1181
|
Chat.toJSON = toJSON;
|
|
@@ -1460,11 +1184,10 @@ var Chat;
|
|
|
1460
1184
|
}
|
|
1461
1185
|
Chat.create = create;
|
|
1462
1186
|
function fromPartial(object) {
|
|
1463
|
-
var _a, _b
|
|
1187
|
+
var _a, _b;
|
|
1464
1188
|
const message = createBaseChat();
|
|
1465
1189
|
message.message = (_a = object.message) !== null && _a !== void 0 ? _a : "";
|
|
1466
1190
|
message.timestamp = (_b = object.timestamp) !== null && _b !== void 0 ? _b : 0;
|
|
1467
|
-
message.forwardedFrom = (_c = object.forwardedFrom) !== null && _c !== void 0 ? _c : undefined;
|
|
1468
1191
|
return message;
|
|
1469
1192
|
}
|
|
1470
1193
|
Chat.fromPartial = fromPartial;
|