@dcl/protocol 1.0.0-33874985952.commit-4f4e0ab → 1.0.0-34239802138.commit-e89d7fa

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.
@@ -137,36 +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
140
  }
171
141
 
172
142
  export interface SceneEmote {
@@ -191,11 +161,6 @@ export interface ProfileResponse {
191
161
  export interface Chat {
192
162
  message: string;
193
163
  timestamp: number;
194
- /**
195
- * Extension: optional forwarded_from to identify the original sender when
196
- * messages are forwarded through an SFU
197
- */
198
- forwardedFrom?: string | undefined;
199
164
  }
200
165
 
201
166
  export interface Scene {
@@ -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,14 +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
1369
  return message;
1521
1370
  }
1522
1371
  }
@@ -1793,7 +1642,7 @@ export namespace ProfileResponse {
1793
1642
  }
1794
1643
 
1795
1644
  function createBaseChat(): Chat {
1796
- return { message: "", timestamp: 0, forwardedFrom: undefined };
1645
+ return { message: "", timestamp: 0 };
1797
1646
  }
1798
1647
 
1799
1648
  export namespace Chat {
@@ -1804,9 +1653,6 @@ export namespace Chat {
1804
1653
  if (message.timestamp !== 0) {
1805
1654
  writer.uint32(17).double(message.timestamp);
1806
1655
  }
1807
- if (message.forwardedFrom !== undefined) {
1808
- writer.uint32(26).string(message.forwardedFrom);
1809
- }
1810
1656
  return writer;
1811
1657
  }
1812
1658
 
@@ -1831,13 +1677,6 @@ export namespace Chat {
1831
1677
 
1832
1678
  message.timestamp = reader.double();
1833
1679
  continue;
1834
- case 3:
1835
- if (tag !== 26) {
1836
- break;
1837
- }
1838
-
1839
- message.forwardedFrom = reader.string();
1840
- continue;
1841
1680
  }
1842
1681
  if ((tag & 7) === 4 || tag === 0) {
1843
1682
  break;
@@ -1851,7 +1690,6 @@ export namespace Chat {
1851
1690
  return {
1852
1691
  message: isSet(object.message) ? String(object.message) : "",
1853
1692
  timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0,
1854
- forwardedFrom: isSet(object.forwardedFrom) ? String(object.forwardedFrom) : undefined,
1855
1693
  };
1856
1694
  }
1857
1695
 
@@ -1859,7 +1697,6 @@ export namespace Chat {
1859
1697
  const obj: any = {};
1860
1698
  message.message !== undefined && (obj.message = message.message);
1861
1699
  message.timestamp !== undefined && (obj.timestamp = message.timestamp);
1862
- message.forwardedFrom !== undefined && (obj.forwardedFrom = message.forwardedFrom);
1863
1700
  return obj;
1864
1701
  }
1865
1702
 
@@ -1871,7 +1708,6 @@ export namespace Chat {
1871
1708
  const message = createBaseChat();
1872
1709
  message.message = object.message ?? "";
1873
1710
  message.timestamp = object.timestamp ?? 0;
1874
- message.forwardedFrom = object.forwardedFrom ?? undefined;
1875
1711
  return message;
1876
1712
  }
1877
1713
  }
@@ -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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/protocol",
3
- "version": "1.0.0-33874985952.commit-4f4e0ab",
3
+ "version": "1.0.0-34239802138.commit-e89d7fa",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",
@@ -17,7 +17,7 @@
17
17
  "gen:test": "node protoc-gen-bitwise/test/generator.test.js"
18
18
  },
19
19
  "devDependencies": {
20
- "@protobuf-ts/protoc": "^2.11.0",
20
+ "@protobuf-ts/protoc": "^2.8.1",
21
21
  "proto-compatibility-tool": "^1.1.2-20220925163655.commit-25bd040",
22
22
  "typescript": "^5.0.4"
23
23
  },
@@ -36,5 +36,5 @@
36
36
  "protoc-gen-bitwise/*.js",
37
37
  "protoc-gen-bitwise/runtime"
38
38
  ],
39
- "commit": "4f4e0ab47c4eab04c83422f1ca08ee0889de12f6"
39
+ "commit": "e89d7fa06728f3339a4af872e65fa0bfc6e81ee8"
40
40
  }
@@ -13,7 +13,12 @@ message MovePlayerToRequest {
13
13
  }
14
14
 
15
15
  message TeleportToRequest {
16
- decentraland.common.Vector2 world_coordinates = 1;
16
+ // The parcel to land on. Omitted: the realm's default spawn (only meaningful with `realm`).
17
+ optional decentraland.common.Vector2 world_coordinates = 1;
18
+ // The realm the parcel belongs to: a world name (`foo.dcl.eth`) or a realm url. When set, the
19
+ // client changes realm (a full reconnect, even to the realm the player is in) and lands on the
20
+ // parcel there. Omitted: the parcel is in the player's current realm.
21
+ optional string realm = 2;
17
22
  }
18
23
 
19
24
  message TriggerEmoteRequest {
@@ -102,6 +107,7 @@ service RestrictedActionsService {
102
107
  // TriggerEmote will trigger an emote in this current user
103
108
  rpc TriggerEmote(TriggerEmoteRequest) returns (TriggerEmoteResponse) {}
104
109
 
110
+ // @deprecated, use TeleportTo with `realm` (and no `world_coordinates` for the realm's default spawn)
105
111
  // ChangeRealm prompts the user to change to a specific realm
106
112
  rpc ChangeRealm(ChangeRealmRequest) returns (SuccessResponse) {}
107
113
 
@@ -94,14 +94,6 @@ 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
97
  }
106
98
 
107
99
  message SceneEmote {
@@ -134,9 +126,6 @@ message ProfileResponse {
134
126
  message Chat {
135
127
  string message = 1;
136
128
  double timestamp = 2;
137
- // Extension: optional forwarded_from to identify the original sender when
138
- // messages are forwarded through an SFU
139
- optional string forwarded_from = 3;
140
129
  }
141
130
 
142
131
  message Scene {
@@ -42,8 +42,3 @@ message PBAvatarShape {
42
42
  optional bool show_only_wearables = 12; // hides the skin + hair + facial features (default: false)
43
43
  }
44
44
 
45
- // Mask for which bones an animation applies to.
46
- enum AvatarEmoteMask {
47
- AEM_FULL_BODY = 0;
48
- AEM_UPPER_BODY = 1;
49
- }
@@ -25,4 +25,4 @@ message PBLightSource {
25
25
  optional float inner_angle = 9; // default = 21.8. Inner angle can't be higher than outer angle, otherwise will default to same value. Min value is 0. Max value is 179.
26
26
  optional float outer_angle = 10; // default = 30. Outer angle can't be lower than inner angle, otherwise will inner angle will be set to same value. Max value is 179.
27
27
  }
28
- }
28
+ }