@dcl/protocol 1.0.0-24496228560.commit-6915bc8 → 1.0.0-24513367586.commit-0ed6dc3
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/restricted_actions.gen.d.ts +0 -21
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +6 -85
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js.map +1 -1
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.d.ts +17 -38
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +114 -234
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_shape.gen.d.ts +0 -8
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js +1 -35
- package/out-js/decentraland/sdk/components/avatar_shape.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-ts/decentraland/kernel/apis/restricted_actions.gen.ts +3 -89
- package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +125 -289
- package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +0 -34
- package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +0 -6
- package/package.json +3 -3
- package/proto/decentraland/kernel/apis/restricted_actions.proto +0 -7
- package/proto/decentraland/kernel/comms/rfc4/comms.proto +11 -24
- package/proto/decentraland/sdk/components/avatar_shape.proto +0 -5
- 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/particle_system.proto +5 -1
- package/proto/decentraland/sdk/components/virtual_camera.proto +0 -2
- package/proto/decentraland/sdk/components/audio_analysis.proto +0 -44
- package/proto/decentraland/sdk/components/avatar_locomotion_settings.proto +0 -21
|
@@ -137,46 +137,6 @@ export interface PlayerEmote {
|
|
|
137
137
|
incrementalId: number;
|
|
138
138
|
urn: string;
|
|
139
139
|
timestamp: number;
|
|
140
|
-
/** true means the emote has been stopped in the sender's client */
|
|
141
|
-
isStopping?:
|
|
142
|
-
| boolean
|
|
143
|
-
| undefined;
|
|
144
|
-
/** true when it is not the first time the looping animation plays */
|
|
145
|
-
isRepeating?:
|
|
146
|
-
| boolean
|
|
147
|
-
| undefined;
|
|
148
|
-
/** identifies an interaction univocaly, established when the start animation is triggered */
|
|
149
|
-
interactionId?:
|
|
150
|
-
| number
|
|
151
|
-
| undefined;
|
|
152
|
-
/** -1 means it does not use an outcome animation */
|
|
153
|
-
socialEmoteOutcome?:
|
|
154
|
-
| number
|
|
155
|
-
| undefined;
|
|
156
|
-
/** to a social emote started by other user */
|
|
157
|
-
isReacting?:
|
|
158
|
-
| boolean
|
|
159
|
-
| undefined;
|
|
160
|
-
/** wallet address of the user that initiated social emote */
|
|
161
|
-
socialEmoteInitiator?:
|
|
162
|
-
| string
|
|
163
|
-
| undefined;
|
|
164
|
-
/** wallet address of the user whose avatar is the target of a directed emote */
|
|
165
|
-
targetAvatar?:
|
|
166
|
-
| string
|
|
167
|
-
| undefined;
|
|
168
|
-
/** mask for which bones an animation applies to. */
|
|
169
|
-
mask?: number | undefined;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
/** Message sent to force an avatar to look at a position */
|
|
173
|
-
export interface LookAtPosition {
|
|
174
|
-
timestamp: number;
|
|
175
|
-
/** world position */
|
|
176
|
-
positionX: number;
|
|
177
|
-
positionY: number;
|
|
178
|
-
positionZ: number;
|
|
179
|
-
targetAvatarWalletAddress: string;
|
|
180
140
|
}
|
|
181
141
|
|
|
182
142
|
export interface SceneEmote {
|
|
@@ -201,11 +161,6 @@ export interface ProfileResponse {
|
|
|
201
161
|
export interface Chat {
|
|
202
162
|
message: string;
|
|
203
163
|
timestamp: number;
|
|
204
|
-
/**
|
|
205
|
-
* Extension: optional forwarded_from to identify the original sender when
|
|
206
|
-
* messages are forwarded through an SFU
|
|
207
|
-
*/
|
|
208
|
-
forwardedFrom?: string | undefined;
|
|
209
164
|
}
|
|
210
165
|
|
|
211
166
|
export interface Scene {
|
|
@@ -246,6 +201,16 @@ export function voice_VoiceCodecToJSON(object: Voice_VoiceCodec): string {
|
|
|
246
201
|
}
|
|
247
202
|
}
|
|
248
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
|
+
|
|
249
214
|
export interface Reaction {
|
|
250
215
|
emojiIndex: number;
|
|
251
216
|
timestamp: number;
|
|
@@ -1322,19 +1287,7 @@ export namespace MovementCompressed {
|
|
|
1322
1287
|
}
|
|
1323
1288
|
|
|
1324
1289
|
function createBasePlayerEmote(): PlayerEmote {
|
|
1325
|
-
return {
|
|
1326
|
-
incrementalId: 0,
|
|
1327
|
-
urn: "",
|
|
1328
|
-
timestamp: 0,
|
|
1329
|
-
isStopping: undefined,
|
|
1330
|
-
isRepeating: undefined,
|
|
1331
|
-
interactionId: undefined,
|
|
1332
|
-
socialEmoteOutcome: undefined,
|
|
1333
|
-
isReacting: undefined,
|
|
1334
|
-
socialEmoteInitiator: undefined,
|
|
1335
|
-
targetAvatar: undefined,
|
|
1336
|
-
mask: undefined,
|
|
1337
|
-
};
|
|
1290
|
+
return { incrementalId: 0, urn: "", timestamp: 0 };
|
|
1338
1291
|
}
|
|
1339
1292
|
|
|
1340
1293
|
export namespace PlayerEmote {
|
|
@@ -1348,30 +1301,6 @@ export namespace PlayerEmote {
|
|
|
1348
1301
|
if (message.timestamp !== 0) {
|
|
1349
1302
|
writer.uint32(29).float(message.timestamp);
|
|
1350
1303
|
}
|
|
1351
|
-
if (message.isStopping !== undefined) {
|
|
1352
|
-
writer.uint32(32).bool(message.isStopping);
|
|
1353
|
-
}
|
|
1354
|
-
if (message.isRepeating !== undefined) {
|
|
1355
|
-
writer.uint32(40).bool(message.isRepeating);
|
|
1356
|
-
}
|
|
1357
|
-
if (message.interactionId !== undefined) {
|
|
1358
|
-
writer.uint32(48).int32(message.interactionId);
|
|
1359
|
-
}
|
|
1360
|
-
if (message.socialEmoteOutcome !== undefined) {
|
|
1361
|
-
writer.uint32(56).int32(message.socialEmoteOutcome);
|
|
1362
|
-
}
|
|
1363
|
-
if (message.isReacting !== undefined) {
|
|
1364
|
-
writer.uint32(64).bool(message.isReacting);
|
|
1365
|
-
}
|
|
1366
|
-
if (message.socialEmoteInitiator !== undefined) {
|
|
1367
|
-
writer.uint32(74).string(message.socialEmoteInitiator);
|
|
1368
|
-
}
|
|
1369
|
-
if (message.targetAvatar !== undefined) {
|
|
1370
|
-
writer.uint32(82).string(message.targetAvatar);
|
|
1371
|
-
}
|
|
1372
|
-
if (message.mask !== undefined) {
|
|
1373
|
-
writer.uint32(88).uint32(message.mask);
|
|
1374
|
-
}
|
|
1375
1304
|
return writer;
|
|
1376
1305
|
}
|
|
1377
1306
|
|
|
@@ -1403,62 +1332,6 @@ export namespace PlayerEmote {
|
|
|
1403
1332
|
|
|
1404
1333
|
message.timestamp = reader.float();
|
|
1405
1334
|
continue;
|
|
1406
|
-
case 4:
|
|
1407
|
-
if (tag !== 32) {
|
|
1408
|
-
break;
|
|
1409
|
-
}
|
|
1410
|
-
|
|
1411
|
-
message.isStopping = reader.bool();
|
|
1412
|
-
continue;
|
|
1413
|
-
case 5:
|
|
1414
|
-
if (tag !== 40) {
|
|
1415
|
-
break;
|
|
1416
|
-
}
|
|
1417
|
-
|
|
1418
|
-
message.isRepeating = reader.bool();
|
|
1419
|
-
continue;
|
|
1420
|
-
case 6:
|
|
1421
|
-
if (tag !== 48) {
|
|
1422
|
-
break;
|
|
1423
|
-
}
|
|
1424
|
-
|
|
1425
|
-
message.interactionId = reader.int32();
|
|
1426
|
-
continue;
|
|
1427
|
-
case 7:
|
|
1428
|
-
if (tag !== 56) {
|
|
1429
|
-
break;
|
|
1430
|
-
}
|
|
1431
|
-
|
|
1432
|
-
message.socialEmoteOutcome = reader.int32();
|
|
1433
|
-
continue;
|
|
1434
|
-
case 8:
|
|
1435
|
-
if (tag !== 64) {
|
|
1436
|
-
break;
|
|
1437
|
-
}
|
|
1438
|
-
|
|
1439
|
-
message.isReacting = reader.bool();
|
|
1440
|
-
continue;
|
|
1441
|
-
case 9:
|
|
1442
|
-
if (tag !== 74) {
|
|
1443
|
-
break;
|
|
1444
|
-
}
|
|
1445
|
-
|
|
1446
|
-
message.socialEmoteInitiator = reader.string();
|
|
1447
|
-
continue;
|
|
1448
|
-
case 10:
|
|
1449
|
-
if (tag !== 82) {
|
|
1450
|
-
break;
|
|
1451
|
-
}
|
|
1452
|
-
|
|
1453
|
-
message.targetAvatar = reader.string();
|
|
1454
|
-
continue;
|
|
1455
|
-
case 11:
|
|
1456
|
-
if (tag !== 88) {
|
|
1457
|
-
break;
|
|
1458
|
-
}
|
|
1459
|
-
|
|
1460
|
-
message.mask = reader.uint32();
|
|
1461
|
-
continue;
|
|
1462
1335
|
}
|
|
1463
1336
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1464
1337
|
break;
|
|
@@ -1473,14 +1346,6 @@ export namespace PlayerEmote {
|
|
|
1473
1346
|
incrementalId: isSet(object.incrementalId) ? Number(object.incrementalId) : 0,
|
|
1474
1347
|
urn: isSet(object.urn) ? String(object.urn) : "",
|
|
1475
1348
|
timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0,
|
|
1476
|
-
isStopping: isSet(object.isStopping) ? Boolean(object.isStopping) : undefined,
|
|
1477
|
-
isRepeating: isSet(object.isRepeating) ? Boolean(object.isRepeating) : undefined,
|
|
1478
|
-
interactionId: isSet(object.interactionId) ? Number(object.interactionId) : undefined,
|
|
1479
|
-
socialEmoteOutcome: isSet(object.socialEmoteOutcome) ? Number(object.socialEmoteOutcome) : undefined,
|
|
1480
|
-
isReacting: isSet(object.isReacting) ? Boolean(object.isReacting) : undefined,
|
|
1481
|
-
socialEmoteInitiator: isSet(object.socialEmoteInitiator) ? String(object.socialEmoteInitiator) : undefined,
|
|
1482
|
-
targetAvatar: isSet(object.targetAvatar) ? String(object.targetAvatar) : undefined,
|
|
1483
|
-
mask: isSet(object.mask) ? Number(object.mask) : undefined,
|
|
1484
1349
|
};
|
|
1485
1350
|
}
|
|
1486
1351
|
|
|
@@ -1489,14 +1354,6 @@ export namespace PlayerEmote {
|
|
|
1489
1354
|
message.incrementalId !== undefined && (obj.incrementalId = Math.round(message.incrementalId));
|
|
1490
1355
|
message.urn !== undefined && (obj.urn = message.urn);
|
|
1491
1356
|
message.timestamp !== undefined && (obj.timestamp = message.timestamp);
|
|
1492
|
-
message.isStopping !== undefined && (obj.isStopping = message.isStopping);
|
|
1493
|
-
message.isRepeating !== undefined && (obj.isRepeating = message.isRepeating);
|
|
1494
|
-
message.interactionId !== undefined && (obj.interactionId = Math.round(message.interactionId));
|
|
1495
|
-
message.socialEmoteOutcome !== undefined && (obj.socialEmoteOutcome = Math.round(message.socialEmoteOutcome));
|
|
1496
|
-
message.isReacting !== undefined && (obj.isReacting = message.isReacting);
|
|
1497
|
-
message.socialEmoteInitiator !== undefined && (obj.socialEmoteInitiator = message.socialEmoteInitiator);
|
|
1498
|
-
message.targetAvatar !== undefined && (obj.targetAvatar = message.targetAvatar);
|
|
1499
|
-
message.mask !== undefined && (obj.mask = Math.round(message.mask));
|
|
1500
1357
|
return obj;
|
|
1501
1358
|
}
|
|
1502
1359
|
|
|
@@ -1509,127 +1366,6 @@ export namespace PlayerEmote {
|
|
|
1509
1366
|
message.incrementalId = object.incrementalId ?? 0;
|
|
1510
1367
|
message.urn = object.urn ?? "";
|
|
1511
1368
|
message.timestamp = object.timestamp ?? 0;
|
|
1512
|
-
message.isStopping = object.isStopping ?? undefined;
|
|
1513
|
-
message.isRepeating = object.isRepeating ?? undefined;
|
|
1514
|
-
message.interactionId = object.interactionId ?? undefined;
|
|
1515
|
-
message.socialEmoteOutcome = object.socialEmoteOutcome ?? undefined;
|
|
1516
|
-
message.isReacting = object.isReacting ?? undefined;
|
|
1517
|
-
message.socialEmoteInitiator = object.socialEmoteInitiator ?? undefined;
|
|
1518
|
-
message.targetAvatar = object.targetAvatar ?? undefined;
|
|
1519
|
-
message.mask = object.mask ?? undefined;
|
|
1520
|
-
return message;
|
|
1521
|
-
}
|
|
1522
|
-
}
|
|
1523
|
-
|
|
1524
|
-
function createBaseLookAtPosition(): LookAtPosition {
|
|
1525
|
-
return { timestamp: 0, positionX: 0, positionY: 0, positionZ: 0, targetAvatarWalletAddress: "" };
|
|
1526
|
-
}
|
|
1527
|
-
|
|
1528
|
-
export namespace LookAtPosition {
|
|
1529
|
-
export function encode(message: LookAtPosition, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1530
|
-
if (message.timestamp !== 0) {
|
|
1531
|
-
writer.uint32(13).float(message.timestamp);
|
|
1532
|
-
}
|
|
1533
|
-
if (message.positionX !== 0) {
|
|
1534
|
-
writer.uint32(21).float(message.positionX);
|
|
1535
|
-
}
|
|
1536
|
-
if (message.positionY !== 0) {
|
|
1537
|
-
writer.uint32(29).float(message.positionY);
|
|
1538
|
-
}
|
|
1539
|
-
if (message.positionZ !== 0) {
|
|
1540
|
-
writer.uint32(37).float(message.positionZ);
|
|
1541
|
-
}
|
|
1542
|
-
if (message.targetAvatarWalletAddress !== "") {
|
|
1543
|
-
writer.uint32(42).string(message.targetAvatarWalletAddress);
|
|
1544
|
-
}
|
|
1545
|
-
return writer;
|
|
1546
|
-
}
|
|
1547
|
-
|
|
1548
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): LookAtPosition {
|
|
1549
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1550
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1551
|
-
const message = createBaseLookAtPosition();
|
|
1552
|
-
while (reader.pos < end) {
|
|
1553
|
-
const tag = reader.uint32();
|
|
1554
|
-
switch (tag >>> 3) {
|
|
1555
|
-
case 1:
|
|
1556
|
-
if (tag !== 13) {
|
|
1557
|
-
break;
|
|
1558
|
-
}
|
|
1559
|
-
|
|
1560
|
-
message.timestamp = reader.float();
|
|
1561
|
-
continue;
|
|
1562
|
-
case 2:
|
|
1563
|
-
if (tag !== 21) {
|
|
1564
|
-
break;
|
|
1565
|
-
}
|
|
1566
|
-
|
|
1567
|
-
message.positionX = reader.float();
|
|
1568
|
-
continue;
|
|
1569
|
-
case 3:
|
|
1570
|
-
if (tag !== 29) {
|
|
1571
|
-
break;
|
|
1572
|
-
}
|
|
1573
|
-
|
|
1574
|
-
message.positionY = reader.float();
|
|
1575
|
-
continue;
|
|
1576
|
-
case 4:
|
|
1577
|
-
if (tag !== 37) {
|
|
1578
|
-
break;
|
|
1579
|
-
}
|
|
1580
|
-
|
|
1581
|
-
message.positionZ = reader.float();
|
|
1582
|
-
continue;
|
|
1583
|
-
case 5:
|
|
1584
|
-
if (tag !== 42) {
|
|
1585
|
-
break;
|
|
1586
|
-
}
|
|
1587
|
-
|
|
1588
|
-
message.targetAvatarWalletAddress = reader.string();
|
|
1589
|
-
continue;
|
|
1590
|
-
}
|
|
1591
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1592
|
-
break;
|
|
1593
|
-
}
|
|
1594
|
-
reader.skipType(tag & 7);
|
|
1595
|
-
}
|
|
1596
|
-
return message;
|
|
1597
|
-
}
|
|
1598
|
-
|
|
1599
|
-
export function fromJSON(object: any): LookAtPosition {
|
|
1600
|
-
return {
|
|
1601
|
-
timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0,
|
|
1602
|
-
positionX: isSet(object.positionX) ? Number(object.positionX) : 0,
|
|
1603
|
-
positionY: isSet(object.positionY) ? Number(object.positionY) : 0,
|
|
1604
|
-
positionZ: isSet(object.positionZ) ? Number(object.positionZ) : 0,
|
|
1605
|
-
targetAvatarWalletAddress: isSet(object.targetAvatarWalletAddress)
|
|
1606
|
-
? String(object.targetAvatarWalletAddress)
|
|
1607
|
-
: "",
|
|
1608
|
-
};
|
|
1609
|
-
}
|
|
1610
|
-
|
|
1611
|
-
export function toJSON(message: LookAtPosition): unknown {
|
|
1612
|
-
const obj: any = {};
|
|
1613
|
-
message.timestamp !== undefined && (obj.timestamp = message.timestamp);
|
|
1614
|
-
message.positionX !== undefined && (obj.positionX = message.positionX);
|
|
1615
|
-
message.positionY !== undefined && (obj.positionY = message.positionY);
|
|
1616
|
-
message.positionZ !== undefined && (obj.positionZ = message.positionZ);
|
|
1617
|
-
message.targetAvatarWalletAddress !== undefined &&
|
|
1618
|
-
(obj.targetAvatarWalletAddress = message.targetAvatarWalletAddress);
|
|
1619
|
-
return obj;
|
|
1620
|
-
}
|
|
1621
|
-
|
|
1622
|
-
export function create<I extends Exact<DeepPartial<LookAtPosition>, I>>(base?: I): LookAtPosition {
|
|
1623
|
-
return LookAtPosition.fromPartial(base ?? {});
|
|
1624
|
-
}
|
|
1625
|
-
|
|
1626
|
-
export function fromPartial<I extends Exact<DeepPartial<LookAtPosition>, I>>(object: I): LookAtPosition {
|
|
1627
|
-
const message = createBaseLookAtPosition();
|
|
1628
|
-
message.timestamp = object.timestamp ?? 0;
|
|
1629
|
-
message.positionX = object.positionX ?? 0;
|
|
1630
|
-
message.positionY = object.positionY ?? 0;
|
|
1631
|
-
message.positionZ = object.positionZ ?? 0;
|
|
1632
|
-
message.targetAvatarWalletAddress = object.targetAvatarWalletAddress ?? "";
|
|
1633
1369
|
return message;
|
|
1634
1370
|
}
|
|
1635
1371
|
}
|
|
@@ -1906,7 +1642,7 @@ export namespace ProfileResponse {
|
|
|
1906
1642
|
}
|
|
1907
1643
|
|
|
1908
1644
|
function createBaseChat(): Chat {
|
|
1909
|
-
return { message: "", timestamp: 0
|
|
1645
|
+
return { message: "", timestamp: 0 };
|
|
1910
1646
|
}
|
|
1911
1647
|
|
|
1912
1648
|
export namespace Chat {
|
|
@@ -1917,9 +1653,6 @@ export namespace Chat {
|
|
|
1917
1653
|
if (message.timestamp !== 0) {
|
|
1918
1654
|
writer.uint32(17).double(message.timestamp);
|
|
1919
1655
|
}
|
|
1920
|
-
if (message.forwardedFrom !== undefined) {
|
|
1921
|
-
writer.uint32(26).string(message.forwardedFrom);
|
|
1922
|
-
}
|
|
1923
1656
|
return writer;
|
|
1924
1657
|
}
|
|
1925
1658
|
|
|
@@ -1944,13 +1677,6 @@ export namespace Chat {
|
|
|
1944
1677
|
|
|
1945
1678
|
message.timestamp = reader.double();
|
|
1946
1679
|
continue;
|
|
1947
|
-
case 3:
|
|
1948
|
-
if (tag !== 26) {
|
|
1949
|
-
break;
|
|
1950
|
-
}
|
|
1951
|
-
|
|
1952
|
-
message.forwardedFrom = reader.string();
|
|
1953
|
-
continue;
|
|
1954
1680
|
}
|
|
1955
1681
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1956
1682
|
break;
|
|
@@ -1964,7 +1690,6 @@ export namespace Chat {
|
|
|
1964
1690
|
return {
|
|
1965
1691
|
message: isSet(object.message) ? String(object.message) : "",
|
|
1966
1692
|
timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0,
|
|
1967
|
-
forwardedFrom: isSet(object.forwardedFrom) ? String(object.forwardedFrom) : undefined,
|
|
1968
1693
|
};
|
|
1969
1694
|
}
|
|
1970
1695
|
|
|
@@ -1972,7 +1697,6 @@ export namespace Chat {
|
|
|
1972
1697
|
const obj: any = {};
|
|
1973
1698
|
message.message !== undefined && (obj.message = message.message);
|
|
1974
1699
|
message.timestamp !== undefined && (obj.timestamp = message.timestamp);
|
|
1975
|
-
message.forwardedFrom !== undefined && (obj.forwardedFrom = message.forwardedFrom);
|
|
1976
1700
|
return obj;
|
|
1977
1701
|
}
|
|
1978
1702
|
|
|
@@ -1984,7 +1708,6 @@ export namespace Chat {
|
|
|
1984
1708
|
const message = createBaseChat();
|
|
1985
1709
|
message.message = object.message ?? "";
|
|
1986
1710
|
message.timestamp = object.timestamp ?? 0;
|
|
1987
|
-
message.forwardedFrom = object.forwardedFrom ?? undefined;
|
|
1988
1711
|
return message;
|
|
1989
1712
|
}
|
|
1990
1713
|
}
|
|
@@ -2148,6 +1871,119 @@ export namespace Voice {
|
|
|
2148
1871
|
}
|
|
2149
1872
|
}
|
|
2150
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
|
+
|
|
2151
1987
|
function createBaseReaction(): Reaction {
|
|
2152
1988
|
return { emojiIndex: 0, timestamp: 0, count: 0 };
|
|
2153
1989
|
}
|
|
@@ -5,40 +5,6 @@ import { Color3 } from "../../common/colors.gen";
|
|
|
5
5
|
|
|
6
6
|
export const protobufPackage = "decentraland.sdk.components";
|
|
7
7
|
|
|
8
|
-
/** Mask for which bones an animation applies to. */
|
|
9
|
-
export enum AvatarEmoteMask {
|
|
10
|
-
AEM_FULL_BODY = 0,
|
|
11
|
-
AEM_UPPER_BODY = 1,
|
|
12
|
-
UNRECOGNIZED = -1,
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export function avatarEmoteMaskFromJSON(object: any): AvatarEmoteMask {
|
|
16
|
-
switch (object) {
|
|
17
|
-
case 0:
|
|
18
|
-
case "AEM_FULL_BODY":
|
|
19
|
-
return AvatarEmoteMask.AEM_FULL_BODY;
|
|
20
|
-
case 1:
|
|
21
|
-
case "AEM_UPPER_BODY":
|
|
22
|
-
return AvatarEmoteMask.AEM_UPPER_BODY;
|
|
23
|
-
case -1:
|
|
24
|
-
case "UNRECOGNIZED":
|
|
25
|
-
default:
|
|
26
|
-
return AvatarEmoteMask.UNRECOGNIZED;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export function avatarEmoteMaskToJSON(object: AvatarEmoteMask): string {
|
|
31
|
-
switch (object) {
|
|
32
|
-
case AvatarEmoteMask.AEM_FULL_BODY:
|
|
33
|
-
return "AEM_FULL_BODY";
|
|
34
|
-
case AvatarEmoteMask.AEM_UPPER_BODY:
|
|
35
|
-
return "AEM_UPPER_BODY";
|
|
36
|
-
case AvatarEmoteMask.UNRECOGNIZED:
|
|
37
|
-
default:
|
|
38
|
-
return "UNRECOGNIZED";
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
8
|
/**
|
|
43
9
|
* The AvatarShape component contains the information required to draw and animate avatar, acting as
|
|
44
10
|
* a simplified GLTF container for this specific case.
|
|
@@ -17,7 +17,6 @@ export enum InputAction {
|
|
|
17
17
|
IA_ACTION_4 = 11,
|
|
18
18
|
IA_ACTION_5 = 12,
|
|
19
19
|
IA_ACTION_6 = 13,
|
|
20
|
-
IA_MODIFIER = 14,
|
|
21
20
|
UNRECOGNIZED = -1,
|
|
22
21
|
}
|
|
23
22
|
|
|
@@ -65,9 +64,6 @@ export function inputActionFromJSON(object: any): InputAction {
|
|
|
65
64
|
case 13:
|
|
66
65
|
case "IA_ACTION_6":
|
|
67
66
|
return InputAction.IA_ACTION_6;
|
|
68
|
-
case 14:
|
|
69
|
-
case "IA_MODIFIER":
|
|
70
|
-
return InputAction.IA_MODIFIER;
|
|
71
67
|
case -1:
|
|
72
68
|
case "UNRECOGNIZED":
|
|
73
69
|
default:
|
|
@@ -105,8 +101,6 @@ export function inputActionToJSON(object: InputAction): string {
|
|
|
105
101
|
return "IA_ACTION_5";
|
|
106
102
|
case InputAction.IA_ACTION_6:
|
|
107
103
|
return "IA_ACTION_6";
|
|
108
|
-
case InputAction.IA_MODIFIER:
|
|
109
|
-
return "IA_MODIFIER";
|
|
110
104
|
case InputAction.UNRECOGNIZED:
|
|
111
105
|
default:
|
|
112
106
|
return "UNRECOGNIZED";
|
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-24513367586.commit-0ed6dc3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"repository": "decentraland/protocol.git",
|
|
6
6
|
"homepage": "https://github.com/decentraland/protocol#readme",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"test": "./scripts/check-proto-compabitility.sh"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@protobuf-ts/protoc": "^2.
|
|
16
|
+
"@protobuf-ts/protoc": "^2.8.1",
|
|
17
17
|
"proto-compatibility-tool": "^1.1.2-20220925163655.commit-25bd040",
|
|
18
18
|
"typescript": "^5.0.4"
|
|
19
19
|
},
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"out-js",
|
|
31
31
|
"public"
|
|
32
32
|
],
|
|
33
|
-
"commit": "
|
|
33
|
+
"commit": "0ed6dc30842b75db984ca2b0f35c58551df358af"
|
|
34
34
|
}
|
|
@@ -16,7 +16,6 @@ message TeleportToRequest {
|
|
|
16
16
|
|
|
17
17
|
message TriggerEmoteRequest {
|
|
18
18
|
string predefined_emote = 1;
|
|
19
|
-
optional uint32 mask = 2;
|
|
20
19
|
}
|
|
21
20
|
|
|
22
21
|
message ChangeRealmRequest {
|
|
@@ -41,7 +40,6 @@ message CommsAdapterRequest {
|
|
|
41
40
|
message TriggerSceneEmoteRequest {
|
|
42
41
|
string src = 1;
|
|
43
42
|
optional bool loop = 2;
|
|
44
|
-
optional uint32 mask = 3;
|
|
45
43
|
}
|
|
46
44
|
|
|
47
45
|
message SuccessResponse {
|
|
@@ -62,8 +60,6 @@ message CopyToClipboardRequest {
|
|
|
62
60
|
|
|
63
61
|
message EmptyResponse { }
|
|
64
62
|
|
|
65
|
-
message StopEmoteRequest { }
|
|
66
|
-
|
|
67
63
|
service RestrictedActionsService {
|
|
68
64
|
// MovePlayerTo will move the player to a position relative to the current scene.
|
|
69
65
|
// If 'duration' field is used in the request, the success response depends on the
|
|
@@ -94,7 +90,4 @@ service RestrictedActionsService {
|
|
|
94
90
|
|
|
95
91
|
// CopyToClipboard copies the provided text into the clipboard
|
|
96
92
|
rpc CopyToClipboard(CopyToClipboardRequest) returns (EmptyResponse) {}
|
|
97
|
-
|
|
98
|
-
// StopEmote will stop the current emote
|
|
99
|
-
rpc StopEmote(StopEmoteRequest) returns (SuccessResponse) {}
|
|
100
93
|
}
|
|
@@ -87,32 +87,13 @@ message MovementCompressed {
|
|
|
87
87
|
int32 temporal_data = 1; // bit-compressed: timestamp + animations
|
|
88
88
|
int64 movement_data = 2; // bit-compressed: position + velocity
|
|
89
89
|
int32 head_sync_data = 3; // bit-compressed: enabled flags + yaw + pitch
|
|
90
|
-
int32 point_at_data = 4; // bit-compressed: flag + point coordinates
|
|
90
|
+
int32 point_at_data = 4; // bit-compressed: flag + point coordinates
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
message PlayerEmote {
|
|
94
94
|
uint32 incremental_id = 1;
|
|
95
95
|
string urn = 2;
|
|
96
96
|
float timestamp = 3;
|
|
97
|
-
optional bool is_stopping = 4; // true means the emote has been stopped in the sender's client
|
|
98
|
-
optional bool is_repeating = 5; // true when it is not the first time the looping animation plays
|
|
99
|
-
optional int32 interaction_id = 6; // identifies an interaction univocaly, established when the start animation is triggered
|
|
100
|
-
optional int32 social_emote_outcome = 7; // -1 means it does not use an outcome animation
|
|
101
|
-
optional bool is_reacting = 8; // to a social emote started by other user
|
|
102
|
-
optional string social_emote_initiator = 9; // wallet address of the user that initiated social emote
|
|
103
|
-
optional string target_avatar = 10; // wallet address of the user whose avatar is the target of a directed emote
|
|
104
|
-
optional uint32 mask = 11; // mask for which bones an animation applies to.
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
// Message sent to force an avatar to look at a position
|
|
108
|
-
message LookAtPosition
|
|
109
|
-
{
|
|
110
|
-
float timestamp = 1;
|
|
111
|
-
// world position
|
|
112
|
-
float position_x = 2;
|
|
113
|
-
float position_y = 3;
|
|
114
|
-
float position_z = 4;
|
|
115
|
-
string target_avatar_wallet_address = 5;
|
|
116
97
|
}
|
|
117
98
|
|
|
118
99
|
message SceneEmote {
|
|
@@ -145,10 +126,6 @@ message ProfileResponse {
|
|
|
145
126
|
message Chat {
|
|
146
127
|
string message = 1;
|
|
147
128
|
double timestamp = 2;
|
|
148
|
-
|
|
149
|
-
// Extension: optional forwarded_from to identify the original sender when
|
|
150
|
-
// messages are forwarded through an SFU
|
|
151
|
-
optional string forwarded_from = 3;
|
|
152
129
|
}
|
|
153
130
|
|
|
154
131
|
message Scene {
|
|
@@ -165,6 +142,16 @@ message Voice {
|
|
|
165
142
|
}
|
|
166
143
|
}
|
|
167
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
|
+
|
|
168
155
|
message Reaction {
|
|
169
156
|
int32 emoji_index = 1;
|
|
170
157
|
float timestamp = 2;
|