@dcl/protocol 1.0.0-25007945013.commit-ba53eb0 → 1.0.0-25007946712.commit-f0cdbab
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/apis/comms_api.gen.d.ts +130 -0
- package/out-js/decentraland/kernel/apis/comms_api.gen.js +536 -1
- package/out-js/decentraland/kernel/apis/comms_api.gen.js.map +1 -1
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.d.ts +52 -0
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +339 -5
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js.map +1 -1
- package/out-ts/decentraland/kernel/apis/comms_api.gen.ts +589 -0
- package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +376 -0
- package/package.json +2 -2
- package/proto/decentraland/kernel/apis/comms_api.proto +37 -1
- package/proto/decentraland/kernel/comms/rfc4/comms.proto +25 -0
- package/proto/decentraland/sdk/components/particle_system.proto +5 -1
|
@@ -17,6 +17,9 @@ export interface Packet {
|
|
|
17
17
|
| { $case: "playerEmote"; playerEmote: PlayerEmote }
|
|
18
18
|
| { $case: "sceneEmote"; sceneEmote: SceneEmote }
|
|
19
19
|
| { $case: "movementCompressed"; movementCompressed: MovementCompressed }
|
|
20
|
+
| { $case: "lookAtPosition"; lookAtPosition: LookAtPosition }
|
|
21
|
+
| { $case: "reaction"; reaction: Reaction }
|
|
22
|
+
| { $case: "chatReaction"; chatReaction: ChatReaction }
|
|
20
23
|
| undefined;
|
|
21
24
|
protocolVersion: number;
|
|
22
25
|
}
|
|
@@ -198,6 +201,28 @@ export function voice_VoiceCodecToJSON(object: Voice_VoiceCodec): string {
|
|
|
198
201
|
}
|
|
199
202
|
}
|
|
200
203
|
|
|
204
|
+
/** Message sent to force an avatar to look at a position */
|
|
205
|
+
export interface LookAtPosition {
|
|
206
|
+
timestamp: number;
|
|
207
|
+
/** world position */
|
|
208
|
+
positionX: number;
|
|
209
|
+
positionY: number;
|
|
210
|
+
positionZ: number;
|
|
211
|
+
targetAvatarWalletAddress: string;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
export interface Reaction {
|
|
215
|
+
emojiIndex: number;
|
|
216
|
+
timestamp: number;
|
|
217
|
+
count: number;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
export interface ChatReaction {
|
|
221
|
+
emojiIndex: number;
|
|
222
|
+
messageId: string;
|
|
223
|
+
address: string;
|
|
224
|
+
}
|
|
225
|
+
|
|
201
226
|
function createBasePacket(): Packet {
|
|
202
227
|
return { message: undefined, protocolVersion: 0 };
|
|
203
228
|
}
|
|
@@ -238,6 +263,15 @@ export namespace Packet {
|
|
|
238
263
|
case "movementCompressed":
|
|
239
264
|
MovementCompressed.encode(message.message.movementCompressed, writer.uint32(98).fork()).ldelim();
|
|
240
265
|
break;
|
|
266
|
+
case "lookAtPosition":
|
|
267
|
+
LookAtPosition.encode(message.message.lookAtPosition, writer.uint32(106).fork()).ldelim();
|
|
268
|
+
break;
|
|
269
|
+
case "reaction":
|
|
270
|
+
Reaction.encode(message.message.reaction, writer.uint32(114).fork()).ldelim();
|
|
271
|
+
break;
|
|
272
|
+
case "chatReaction":
|
|
273
|
+
ChatReaction.encode(message.message.chatReaction, writer.uint32(122).fork()).ldelim();
|
|
274
|
+
break;
|
|
241
275
|
}
|
|
242
276
|
if (message.protocolVersion !== 0) {
|
|
243
277
|
writer.uint32(88).uint32(message.protocolVersion);
|
|
@@ -338,6 +372,27 @@ export namespace Packet {
|
|
|
338
372
|
movementCompressed: MovementCompressed.decode(reader, reader.uint32()),
|
|
339
373
|
};
|
|
340
374
|
continue;
|
|
375
|
+
case 13:
|
|
376
|
+
if (tag !== 106) {
|
|
377
|
+
break;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
message.message = { $case: "lookAtPosition", lookAtPosition: LookAtPosition.decode(reader, reader.uint32()) };
|
|
381
|
+
continue;
|
|
382
|
+
case 14:
|
|
383
|
+
if (tag !== 114) {
|
|
384
|
+
break;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
message.message = { $case: "reaction", reaction: Reaction.decode(reader, reader.uint32()) };
|
|
388
|
+
continue;
|
|
389
|
+
case 15:
|
|
390
|
+
if (tag !== 122) {
|
|
391
|
+
break;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
message.message = { $case: "chatReaction", chatReaction: ChatReaction.decode(reader, reader.uint32()) };
|
|
395
|
+
continue;
|
|
341
396
|
case 11:
|
|
342
397
|
if (tag !== 88) {
|
|
343
398
|
break;
|
|
@@ -378,6 +433,12 @@ export namespace Packet {
|
|
|
378
433
|
? { $case: "sceneEmote", sceneEmote: SceneEmote.fromJSON(object.sceneEmote) }
|
|
379
434
|
: isSet(object.movementCompressed)
|
|
380
435
|
? { $case: "movementCompressed", movementCompressed: MovementCompressed.fromJSON(object.movementCompressed) }
|
|
436
|
+
: isSet(object.lookAtPosition)
|
|
437
|
+
? { $case: "lookAtPosition", lookAtPosition: LookAtPosition.fromJSON(object.lookAtPosition) }
|
|
438
|
+
: isSet(object.reaction)
|
|
439
|
+
? { $case: "reaction", reaction: Reaction.fromJSON(object.reaction) }
|
|
440
|
+
: isSet(object.chatReaction)
|
|
441
|
+
? { $case: "chatReaction", chatReaction: ChatReaction.fromJSON(object.chatReaction) }
|
|
381
442
|
: undefined,
|
|
382
443
|
protocolVersion: isSet(object.protocolVersion) ? Number(object.protocolVersion) : 0,
|
|
383
444
|
};
|
|
@@ -415,6 +476,16 @@ export namespace Packet {
|
|
|
415
476
|
(obj.movementCompressed = message.message?.movementCompressed
|
|
416
477
|
? MovementCompressed.toJSON(message.message?.movementCompressed)
|
|
417
478
|
: undefined);
|
|
479
|
+
message.message?.$case === "lookAtPosition" &&
|
|
480
|
+
(obj.lookAtPosition = message.message?.lookAtPosition
|
|
481
|
+
? LookAtPosition.toJSON(message.message?.lookAtPosition)
|
|
482
|
+
: undefined);
|
|
483
|
+
message.message?.$case === "reaction" &&
|
|
484
|
+
(obj.reaction = message.message?.reaction ? Reaction.toJSON(message.message?.reaction) : undefined);
|
|
485
|
+
message.message?.$case === "chatReaction" &&
|
|
486
|
+
(obj.chatReaction = message.message?.chatReaction
|
|
487
|
+
? ChatReaction.toJSON(message.message?.chatReaction)
|
|
488
|
+
: undefined);
|
|
418
489
|
message.protocolVersion !== undefined && (obj.protocolVersion = Math.round(message.protocolVersion));
|
|
419
490
|
return obj;
|
|
420
491
|
}
|
|
@@ -502,6 +573,30 @@ export namespace Packet {
|
|
|
502
573
|
movementCompressed: MovementCompressed.fromPartial(object.message.movementCompressed),
|
|
503
574
|
};
|
|
504
575
|
}
|
|
576
|
+
if (
|
|
577
|
+
object.message?.$case === "lookAtPosition" &&
|
|
578
|
+
object.message?.lookAtPosition !== undefined &&
|
|
579
|
+
object.message?.lookAtPosition !== null
|
|
580
|
+
) {
|
|
581
|
+
message.message = {
|
|
582
|
+
$case: "lookAtPosition",
|
|
583
|
+
lookAtPosition: LookAtPosition.fromPartial(object.message.lookAtPosition),
|
|
584
|
+
};
|
|
585
|
+
}
|
|
586
|
+
if (
|
|
587
|
+
object.message?.$case === "reaction" &&
|
|
588
|
+
object.message?.reaction !== undefined &&
|
|
589
|
+
object.message?.reaction !== null
|
|
590
|
+
) {
|
|
591
|
+
message.message = { $case: "reaction", reaction: Reaction.fromPartial(object.message.reaction) };
|
|
592
|
+
}
|
|
593
|
+
if (
|
|
594
|
+
object.message?.$case === "chatReaction" &&
|
|
595
|
+
object.message?.chatReaction !== undefined &&
|
|
596
|
+
object.message?.chatReaction !== null
|
|
597
|
+
) {
|
|
598
|
+
message.message = { $case: "chatReaction", chatReaction: ChatReaction.fromPartial(object.message.chatReaction) };
|
|
599
|
+
}
|
|
505
600
|
message.protocolVersion = object.protocolVersion ?? 0;
|
|
506
601
|
return message;
|
|
507
602
|
}
|
|
@@ -1776,6 +1871,287 @@ export namespace Voice {
|
|
|
1776
1871
|
}
|
|
1777
1872
|
}
|
|
1778
1873
|
|
|
1874
|
+
function createBaseLookAtPosition(): LookAtPosition {
|
|
1875
|
+
return { timestamp: 0, positionX: 0, positionY: 0, positionZ: 0, targetAvatarWalletAddress: "" };
|
|
1876
|
+
}
|
|
1877
|
+
|
|
1878
|
+
export namespace LookAtPosition {
|
|
1879
|
+
export function encode(message: LookAtPosition, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1880
|
+
if (message.timestamp !== 0) {
|
|
1881
|
+
writer.uint32(13).float(message.timestamp);
|
|
1882
|
+
}
|
|
1883
|
+
if (message.positionX !== 0) {
|
|
1884
|
+
writer.uint32(21).float(message.positionX);
|
|
1885
|
+
}
|
|
1886
|
+
if (message.positionY !== 0) {
|
|
1887
|
+
writer.uint32(29).float(message.positionY);
|
|
1888
|
+
}
|
|
1889
|
+
if (message.positionZ !== 0) {
|
|
1890
|
+
writer.uint32(37).float(message.positionZ);
|
|
1891
|
+
}
|
|
1892
|
+
if (message.targetAvatarWalletAddress !== "") {
|
|
1893
|
+
writer.uint32(42).string(message.targetAvatarWalletAddress);
|
|
1894
|
+
}
|
|
1895
|
+
return writer;
|
|
1896
|
+
}
|
|
1897
|
+
|
|
1898
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): LookAtPosition {
|
|
1899
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1900
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1901
|
+
const message = createBaseLookAtPosition();
|
|
1902
|
+
while (reader.pos < end) {
|
|
1903
|
+
const tag = reader.uint32();
|
|
1904
|
+
switch (tag >>> 3) {
|
|
1905
|
+
case 1:
|
|
1906
|
+
if (tag !== 13) {
|
|
1907
|
+
break;
|
|
1908
|
+
}
|
|
1909
|
+
|
|
1910
|
+
message.timestamp = reader.float();
|
|
1911
|
+
continue;
|
|
1912
|
+
case 2:
|
|
1913
|
+
if (tag !== 21) {
|
|
1914
|
+
break;
|
|
1915
|
+
}
|
|
1916
|
+
|
|
1917
|
+
message.positionX = reader.float();
|
|
1918
|
+
continue;
|
|
1919
|
+
case 3:
|
|
1920
|
+
if (tag !== 29) {
|
|
1921
|
+
break;
|
|
1922
|
+
}
|
|
1923
|
+
|
|
1924
|
+
message.positionY = reader.float();
|
|
1925
|
+
continue;
|
|
1926
|
+
case 4:
|
|
1927
|
+
if (tag !== 37) {
|
|
1928
|
+
break;
|
|
1929
|
+
}
|
|
1930
|
+
|
|
1931
|
+
message.positionZ = reader.float();
|
|
1932
|
+
continue;
|
|
1933
|
+
case 5:
|
|
1934
|
+
if (tag !== 42) {
|
|
1935
|
+
break;
|
|
1936
|
+
}
|
|
1937
|
+
|
|
1938
|
+
message.targetAvatarWalletAddress = reader.string();
|
|
1939
|
+
continue;
|
|
1940
|
+
}
|
|
1941
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1942
|
+
break;
|
|
1943
|
+
}
|
|
1944
|
+
reader.skipType(tag & 7);
|
|
1945
|
+
}
|
|
1946
|
+
return message;
|
|
1947
|
+
}
|
|
1948
|
+
|
|
1949
|
+
export function fromJSON(object: any): LookAtPosition {
|
|
1950
|
+
return {
|
|
1951
|
+
timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0,
|
|
1952
|
+
positionX: isSet(object.positionX) ? Number(object.positionX) : 0,
|
|
1953
|
+
positionY: isSet(object.positionY) ? Number(object.positionY) : 0,
|
|
1954
|
+
positionZ: isSet(object.positionZ) ? Number(object.positionZ) : 0,
|
|
1955
|
+
targetAvatarWalletAddress: isSet(object.targetAvatarWalletAddress)
|
|
1956
|
+
? String(object.targetAvatarWalletAddress)
|
|
1957
|
+
: "",
|
|
1958
|
+
};
|
|
1959
|
+
}
|
|
1960
|
+
|
|
1961
|
+
export function toJSON(message: LookAtPosition): unknown {
|
|
1962
|
+
const obj: any = {};
|
|
1963
|
+
message.timestamp !== undefined && (obj.timestamp = message.timestamp);
|
|
1964
|
+
message.positionX !== undefined && (obj.positionX = message.positionX);
|
|
1965
|
+
message.positionY !== undefined && (obj.positionY = message.positionY);
|
|
1966
|
+
message.positionZ !== undefined && (obj.positionZ = message.positionZ);
|
|
1967
|
+
message.targetAvatarWalletAddress !== undefined &&
|
|
1968
|
+
(obj.targetAvatarWalletAddress = message.targetAvatarWalletAddress);
|
|
1969
|
+
return obj;
|
|
1970
|
+
}
|
|
1971
|
+
|
|
1972
|
+
export function create<I extends Exact<DeepPartial<LookAtPosition>, I>>(base?: I): LookAtPosition {
|
|
1973
|
+
return LookAtPosition.fromPartial(base ?? {});
|
|
1974
|
+
}
|
|
1975
|
+
|
|
1976
|
+
export function fromPartial<I extends Exact<DeepPartial<LookAtPosition>, I>>(object: I): LookAtPosition {
|
|
1977
|
+
const message = createBaseLookAtPosition();
|
|
1978
|
+
message.timestamp = object.timestamp ?? 0;
|
|
1979
|
+
message.positionX = object.positionX ?? 0;
|
|
1980
|
+
message.positionY = object.positionY ?? 0;
|
|
1981
|
+
message.positionZ = object.positionZ ?? 0;
|
|
1982
|
+
message.targetAvatarWalletAddress = object.targetAvatarWalletAddress ?? "";
|
|
1983
|
+
return message;
|
|
1984
|
+
}
|
|
1985
|
+
}
|
|
1986
|
+
|
|
1987
|
+
function createBaseReaction(): Reaction {
|
|
1988
|
+
return { emojiIndex: 0, timestamp: 0, count: 0 };
|
|
1989
|
+
}
|
|
1990
|
+
|
|
1991
|
+
export namespace Reaction {
|
|
1992
|
+
export function encode(message: Reaction, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1993
|
+
if (message.emojiIndex !== 0) {
|
|
1994
|
+
writer.uint32(8).int32(message.emojiIndex);
|
|
1995
|
+
}
|
|
1996
|
+
if (message.timestamp !== 0) {
|
|
1997
|
+
writer.uint32(21).float(message.timestamp);
|
|
1998
|
+
}
|
|
1999
|
+
if (message.count !== 0) {
|
|
2000
|
+
writer.uint32(24).int32(message.count);
|
|
2001
|
+
}
|
|
2002
|
+
return writer;
|
|
2003
|
+
}
|
|
2004
|
+
|
|
2005
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): Reaction {
|
|
2006
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
2007
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2008
|
+
const message = createBaseReaction();
|
|
2009
|
+
while (reader.pos < end) {
|
|
2010
|
+
const tag = reader.uint32();
|
|
2011
|
+
switch (tag >>> 3) {
|
|
2012
|
+
case 1:
|
|
2013
|
+
if (tag !== 8) {
|
|
2014
|
+
break;
|
|
2015
|
+
}
|
|
2016
|
+
|
|
2017
|
+
message.emojiIndex = reader.int32();
|
|
2018
|
+
continue;
|
|
2019
|
+
case 2:
|
|
2020
|
+
if (tag !== 21) {
|
|
2021
|
+
break;
|
|
2022
|
+
}
|
|
2023
|
+
|
|
2024
|
+
message.timestamp = reader.float();
|
|
2025
|
+
continue;
|
|
2026
|
+
case 3:
|
|
2027
|
+
if (tag !== 24) {
|
|
2028
|
+
break;
|
|
2029
|
+
}
|
|
2030
|
+
|
|
2031
|
+
message.count = reader.int32();
|
|
2032
|
+
continue;
|
|
2033
|
+
}
|
|
2034
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2035
|
+
break;
|
|
2036
|
+
}
|
|
2037
|
+
reader.skipType(tag & 7);
|
|
2038
|
+
}
|
|
2039
|
+
return message;
|
|
2040
|
+
}
|
|
2041
|
+
|
|
2042
|
+
export function fromJSON(object: any): Reaction {
|
|
2043
|
+
return {
|
|
2044
|
+
emojiIndex: isSet(object.emojiIndex) ? Number(object.emojiIndex) : 0,
|
|
2045
|
+
timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0,
|
|
2046
|
+
count: isSet(object.count) ? Number(object.count) : 0,
|
|
2047
|
+
};
|
|
2048
|
+
}
|
|
2049
|
+
|
|
2050
|
+
export function toJSON(message: Reaction): unknown {
|
|
2051
|
+
const obj: any = {};
|
|
2052
|
+
message.emojiIndex !== undefined && (obj.emojiIndex = Math.round(message.emojiIndex));
|
|
2053
|
+
message.timestamp !== undefined && (obj.timestamp = message.timestamp);
|
|
2054
|
+
message.count !== undefined && (obj.count = Math.round(message.count));
|
|
2055
|
+
return obj;
|
|
2056
|
+
}
|
|
2057
|
+
|
|
2058
|
+
export function create<I extends Exact<DeepPartial<Reaction>, I>>(base?: I): Reaction {
|
|
2059
|
+
return Reaction.fromPartial(base ?? {});
|
|
2060
|
+
}
|
|
2061
|
+
|
|
2062
|
+
export function fromPartial<I extends Exact<DeepPartial<Reaction>, I>>(object: I): Reaction {
|
|
2063
|
+
const message = createBaseReaction();
|
|
2064
|
+
message.emojiIndex = object.emojiIndex ?? 0;
|
|
2065
|
+
message.timestamp = object.timestamp ?? 0;
|
|
2066
|
+
message.count = object.count ?? 0;
|
|
2067
|
+
return message;
|
|
2068
|
+
}
|
|
2069
|
+
}
|
|
2070
|
+
|
|
2071
|
+
function createBaseChatReaction(): ChatReaction {
|
|
2072
|
+
return { emojiIndex: 0, messageId: "", address: "" };
|
|
2073
|
+
}
|
|
2074
|
+
|
|
2075
|
+
export namespace ChatReaction {
|
|
2076
|
+
export function encode(message: ChatReaction, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
2077
|
+
if (message.emojiIndex !== 0) {
|
|
2078
|
+
writer.uint32(8).int32(message.emojiIndex);
|
|
2079
|
+
}
|
|
2080
|
+
if (message.messageId !== "") {
|
|
2081
|
+
writer.uint32(18).string(message.messageId);
|
|
2082
|
+
}
|
|
2083
|
+
if (message.address !== "") {
|
|
2084
|
+
writer.uint32(26).string(message.address);
|
|
2085
|
+
}
|
|
2086
|
+
return writer;
|
|
2087
|
+
}
|
|
2088
|
+
|
|
2089
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): ChatReaction {
|
|
2090
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
2091
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2092
|
+
const message = createBaseChatReaction();
|
|
2093
|
+
while (reader.pos < end) {
|
|
2094
|
+
const tag = reader.uint32();
|
|
2095
|
+
switch (tag >>> 3) {
|
|
2096
|
+
case 1:
|
|
2097
|
+
if (tag !== 8) {
|
|
2098
|
+
break;
|
|
2099
|
+
}
|
|
2100
|
+
|
|
2101
|
+
message.emojiIndex = reader.int32();
|
|
2102
|
+
continue;
|
|
2103
|
+
case 2:
|
|
2104
|
+
if (tag !== 18) {
|
|
2105
|
+
break;
|
|
2106
|
+
}
|
|
2107
|
+
|
|
2108
|
+
message.messageId = reader.string();
|
|
2109
|
+
continue;
|
|
2110
|
+
case 3:
|
|
2111
|
+
if (tag !== 26) {
|
|
2112
|
+
break;
|
|
2113
|
+
}
|
|
2114
|
+
|
|
2115
|
+
message.address = reader.string();
|
|
2116
|
+
continue;
|
|
2117
|
+
}
|
|
2118
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2119
|
+
break;
|
|
2120
|
+
}
|
|
2121
|
+
reader.skipType(tag & 7);
|
|
2122
|
+
}
|
|
2123
|
+
return message;
|
|
2124
|
+
}
|
|
2125
|
+
|
|
2126
|
+
export function fromJSON(object: any): ChatReaction {
|
|
2127
|
+
return {
|
|
2128
|
+
emojiIndex: isSet(object.emojiIndex) ? Number(object.emojiIndex) : 0,
|
|
2129
|
+
messageId: isSet(object.messageId) ? String(object.messageId) : "",
|
|
2130
|
+
address: isSet(object.address) ? String(object.address) : "",
|
|
2131
|
+
};
|
|
2132
|
+
}
|
|
2133
|
+
|
|
2134
|
+
export function toJSON(message: ChatReaction): unknown {
|
|
2135
|
+
const obj: any = {};
|
|
2136
|
+
message.emojiIndex !== undefined && (obj.emojiIndex = Math.round(message.emojiIndex));
|
|
2137
|
+
message.messageId !== undefined && (obj.messageId = message.messageId);
|
|
2138
|
+
message.address !== undefined && (obj.address = message.address);
|
|
2139
|
+
return obj;
|
|
2140
|
+
}
|
|
2141
|
+
|
|
2142
|
+
export function create<I extends Exact<DeepPartial<ChatReaction>, I>>(base?: I): ChatReaction {
|
|
2143
|
+
return ChatReaction.fromPartial(base ?? {});
|
|
2144
|
+
}
|
|
2145
|
+
|
|
2146
|
+
export function fromPartial<I extends Exact<DeepPartial<ChatReaction>, I>>(object: I): ChatReaction {
|
|
2147
|
+
const message = createBaseChatReaction();
|
|
2148
|
+
message.emojiIndex = object.emojiIndex ?? 0;
|
|
2149
|
+
message.messageId = object.messageId ?? "";
|
|
2150
|
+
message.address = object.address ?? "";
|
|
2151
|
+
return message;
|
|
2152
|
+
}
|
|
2153
|
+
}
|
|
2154
|
+
|
|
1779
2155
|
declare const self: any | undefined;
|
|
1780
2156
|
declare const window: any | undefined;
|
|
1781
2157
|
declare const global: any | undefined;
|
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-25007946712.commit-f0cdbab",
|
|
4
4
|
"description": "",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"out-js",
|
|
34
34
|
"public"
|
|
35
35
|
],
|
|
36
|
-
"commit": "
|
|
36
|
+
"commit": "f0cdbab6b2ddc93b2a1561b662cebbf9cf6076bd"
|
|
37
37
|
}
|
|
@@ -20,6 +20,42 @@ message VideoTracksActiveStreamsData {
|
|
|
20
20
|
VideoTrackSourceType source_type = 3;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
message SubscribeToTopicRequest {
|
|
24
|
+
string topic = 1;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
message SubscribeToTopicResponse {}
|
|
28
|
+
|
|
29
|
+
message UnsubscribeFromTopicRequest {
|
|
30
|
+
string topic = 1;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
message UnsubscribeFromTopicResponse {}
|
|
34
|
+
|
|
35
|
+
message PublishDataRequest {
|
|
36
|
+
string topic = 1;
|
|
37
|
+
string data = 2;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
message PublishDataResponse {}
|
|
41
|
+
|
|
42
|
+
message ConsumeMessagesRequest {
|
|
43
|
+
string topic = 1;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
message ConsumeMessages {
|
|
47
|
+
string sender = 1;
|
|
48
|
+
string data = 2;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
message ConsumeMessagesResponse {
|
|
52
|
+
repeated ConsumeMessages messages = 1;
|
|
53
|
+
}
|
|
54
|
+
|
|
23
55
|
service CommsApiService {
|
|
24
56
|
rpc GetActiveVideoStreams(VideoTracksActiveStreamsRequest) returns (VideoTracksActiveStreamsResponse) {}
|
|
25
|
-
}
|
|
57
|
+
rpc SubscribeToTopic(SubscribeToTopicRequest) returns (SubscribeToTopicResponse) {}
|
|
58
|
+
rpc UnsubscribeFromTopic(UnsubscribeFromTopicRequest) returns (UnsubscribeFromTopicResponse) {}
|
|
59
|
+
rpc PublishData(PublishDataRequest) returns (PublishDataResponse) {}
|
|
60
|
+
rpc ConsumeMessages(ConsumeMessagesRequest) returns (ConsumeMessagesResponse) {}
|
|
61
|
+
}
|
|
@@ -18,6 +18,9 @@ message Packet {
|
|
|
18
18
|
PlayerEmote player_emote = 9;
|
|
19
19
|
SceneEmote scene_emote = 10;
|
|
20
20
|
MovementCompressed movement_compressed = 12;
|
|
21
|
+
LookAtPosition look_at_position = 13;
|
|
22
|
+
Reaction reaction = 14;
|
|
23
|
+
ChatReaction chat_reaction = 15;
|
|
21
24
|
}
|
|
22
25
|
uint32 protocol_version = 11;
|
|
23
26
|
}
|
|
@@ -138,3 +141,25 @@ message Voice {
|
|
|
138
141
|
VC_OPUS = 0;
|
|
139
142
|
}
|
|
140
143
|
}
|
|
144
|
+
|
|
145
|
+
// Message sent to force an avatar to look at a position
|
|
146
|
+
message LookAtPosition {
|
|
147
|
+
float timestamp = 1;
|
|
148
|
+
// world position
|
|
149
|
+
float position_x = 2;
|
|
150
|
+
float position_y = 3;
|
|
151
|
+
float position_z = 4;
|
|
152
|
+
string target_avatar_wallet_address = 5;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
message Reaction {
|
|
156
|
+
int32 emoji_index = 1;
|
|
157
|
+
float timestamp = 2;
|
|
158
|
+
int32 count = 3;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
message ChatReaction {
|
|
162
|
+
int32 emoji_index = 1;
|
|
163
|
+
string message_id = 2;
|
|
164
|
+
string address = 3;
|
|
165
|
+
}
|
|
@@ -65,7 +65,7 @@ message PBParticleSystem {
|
|
|
65
65
|
optional PlaybackState playback_state = 22; // default = PS_PLAYING
|
|
66
66
|
|
|
67
67
|
// --- Emission Bursts ---
|
|
68
|
-
|
|
68
|
+
optional BurstConfiguration bursts = 29;
|
|
69
69
|
|
|
70
70
|
// ---- Nested types ----
|
|
71
71
|
|
|
@@ -102,6 +102,10 @@ message PBParticleSystem {
|
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
// Emission burst configuration.
|
|
105
|
+
message BurstConfiguration {
|
|
106
|
+
repeated Burst values = 1;
|
|
107
|
+
}
|
|
108
|
+
|
|
105
109
|
message Burst {
|
|
106
110
|
float time = 1; // Seconds from start of cycle.
|
|
107
111
|
uint32 count = 2; // Particles to emit.
|