@dcl/protocol 1.0.0-24360053093.commit-d8b1cf7 → 1.0.0-24496228560.commit-6915bc8
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/common/texture.gen.d.ts +0 -18
- package/out-js/decentraland/common/texture.gen.js +4 -104
- package/out-js/decentraland/common/texture.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.d.ts +21 -109
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +85 -388
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js.map +1 -1
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.d.ts +73 -0
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +463 -9
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.d.ts +0 -2
- package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js +2 -19
- package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.d.ts +0 -41
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +3 -241
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_shape.gen.d.ts +8 -2
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js +36 -20
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.d.ts +1 -35
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +3 -172
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/common/input_action.gen.d.ts +0 -3
- package/out-js/decentraland/sdk/components/common/input_action.gen.js +0 -18
- package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.d.ts +0 -19
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js +3 -90
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/material.gen.d.ts +0 -20
- package/out-js/decentraland/sdk/components/material.gen.js +2 -86
- package/out-js/decentraland/sdk/components/material.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +0 -18
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js +4 -90
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.d.ts +3 -19
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.js +4 -90
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/raycast.gen.d.ts +0 -13
- package/out-js/decentraland/sdk/components/raycast.gen.js +2 -64
- package/out-js/decentraland/sdk/components/raycast.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_text.gen.d.ts +0 -4
- package/out-js/decentraland/sdk/components/ui_text.gen.js +1 -30
- package/out-js/decentraland/sdk/components/ui_text.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_transform.gen.d.ts +0 -33
- package/out-js/decentraland/sdk/components/ui_transform.gen.js +3 -176
- package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -1
- package/out-ts/decentraland/common/texture.gen.ts +4 -119
- package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +87 -411
- package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +542 -2
- package/out-ts/decentraland/sdk/components/avatar_equipped_data.gen.ts +1 -20
- package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +1 -292
- package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +35 -23
- package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +2 -218
- package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +0 -18
- package/out-ts/decentraland/sdk/components/gltf_container_loading_state.gen.ts +2 -108
- package/out-ts/decentraland/sdk/components/material.gen.ts +1 -102
- package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +0 -99
- package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +3 -100
- package/out-ts/decentraland/sdk/components/raycast.gen.ts +1 -73
- package/out-ts/decentraland/sdk/components/ui_text.gen.ts +1 -40
- package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +0 -193
- package/package.json +4 -7
- package/proto/decentraland/common/texture.proto +1 -8
- package/proto/decentraland/kernel/apis/restricted_actions.proto +8 -39
- package/proto/decentraland/kernel/comms/rfc4/comms.proto +39 -1
- package/proto/decentraland/sdk/components/audio_analysis.proto +44 -0
- package/proto/decentraland/sdk/components/avatar_equipped_data.proto +1 -2
- package/proto/decentraland/sdk/components/avatar_locomotion_settings.proto +3 -0
- package/proto/decentraland/sdk/components/avatar_modifier_area.proto +0 -21
- package/proto/decentraland/sdk/components/avatar_shape.proto +5 -1
- package/proto/decentraland/sdk/components/camera_mode_area.proto +3 -22
- package/proto/decentraland/sdk/components/common/input_action.proto +0 -3
- package/proto/decentraland/sdk/components/gltf_container_loading_state.proto +0 -13
- package/proto/decentraland/sdk/components/light_source.proto +1 -1
- package/proto/decentraland/sdk/components/material.proto +1 -13
- package/proto/decentraland/sdk/components/mesh_collider.proto +0 -7
- package/proto/decentraland/sdk/components/mesh_renderer.proto +3 -8
- package/proto/decentraland/sdk/components/primary_pointer_info.proto +0 -5
- package/proto/decentraland/sdk/components/raycast.proto +0 -13
- package/proto/decentraland/sdk/components/ui_text.proto +0 -3
- package/proto/decentraland/sdk/components/ui_transform.proto +0 -20
- package/proto/decentraland/sdk/components/virtual_camera.proto +2 -0
- package/public/sdk-components.proto +0 -4
- package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.d.ts +0 -45
- package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.js +0 -138
- package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.js.map +0 -1
- package/out-js/decentraland/sdk/components/avatar_movement.gen.d.ts +0 -36
- package/out-js/decentraland/sdk/components/avatar_movement.gen.js +0 -113
- package/out-js/decentraland/sdk/components/avatar_movement.gen.js.map +0 -1
- package/out-js/decentraland/sdk/components/avatar_movement_info.gen.d.ts +0 -48
- package/out-js/decentraland/sdk/components/avatar_movement_info.gen.js +0 -207
- package/out-js/decentraland/sdk/components/avatar_movement_info.gen.js.map +0 -1
- package/out-js/decentraland/sdk/components/gltf_node.gen.d.ts +0 -66
- package/out-js/decentraland/sdk/components/gltf_node.gen.js +0 -69
- package/out-js/decentraland/sdk/components/gltf_node.gen.js.map +0 -1
- package/out-js/decentraland/sdk/components/gltf_node_state.gen.d.ts +0 -43
- package/out-js/decentraland/sdk/components/gltf_node_state.gen.js +0 -122
- package/out-js/decentraland/sdk/components/gltf_node_state.gen.js.map +0 -1
- package/out-js/decentraland/sdk/components/input_modifier.gen.d.ts +0 -52
- package/out-js/decentraland/sdk/components/input_modifier.gen.js +0 -233
- package/out-js/decentraland/sdk/components/input_modifier.gen.js.map +0 -1
- package/out-ts/decentraland/sdk/components/avatar_locomotion_settings.gen.ts +0 -183
- package/out-ts/decentraland/sdk/components/avatar_movement.gen.ts +0 -136
- package/out-ts/decentraland/sdk/components/avatar_movement_info.gen.ts +0 -249
- package/out-ts/decentraland/sdk/components/gltf_node.gen.ts +0 -116
- package/out-ts/decentraland/sdk/components/gltf_node_state.gen.ts +0 -139
- package/out-ts/decentraland/sdk/components/input_modifier.gen.ts +0 -265
- package/proto/decentraland/sdk/components/avatar_movement.proto +0 -46
- package/proto/decentraland/sdk/components/avatar_movement_info.proto +0 -22
- package/proto/decentraland/sdk/components/camera_layer.proto +0 -30
- package/proto/decentraland/sdk/components/camera_layers.proto +0 -11
- package/proto/decentraland/sdk/components/global_light.proto +0 -22
- package/proto/decentraland/sdk/components/gltf_node.proto +0 -42
- package/proto/decentraland/sdk/components/gltf_node_state.proto +0 -20
- package/proto/decentraland/sdk/components/texture_camera.proto +0 -46
- package/proto/decentraland/sdk/components/ui_canvas.proto +0 -16
- package/proto/decentraland/sdk/components/ui_scroll_result.proto +0 -12
|
@@ -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
|
}
|
|
@@ -134,6 +137,46 @@ export interface PlayerEmote {
|
|
|
134
137
|
incrementalId: number;
|
|
135
138
|
urn: string;
|
|
136
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;
|
|
137
180
|
}
|
|
138
181
|
|
|
139
182
|
export interface SceneEmote {
|
|
@@ -158,6 +201,11 @@ export interface ProfileResponse {
|
|
|
158
201
|
export interface Chat {
|
|
159
202
|
message: string;
|
|
160
203
|
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;
|
|
161
209
|
}
|
|
162
210
|
|
|
163
211
|
export interface Scene {
|
|
@@ -198,6 +246,18 @@ export function voice_VoiceCodecToJSON(object: Voice_VoiceCodec): string {
|
|
|
198
246
|
}
|
|
199
247
|
}
|
|
200
248
|
|
|
249
|
+
export interface Reaction {
|
|
250
|
+
emojiIndex: number;
|
|
251
|
+
timestamp: number;
|
|
252
|
+
count: number;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
export interface ChatReaction {
|
|
256
|
+
emojiIndex: number;
|
|
257
|
+
messageId: string;
|
|
258
|
+
address: string;
|
|
259
|
+
}
|
|
260
|
+
|
|
201
261
|
function createBasePacket(): Packet {
|
|
202
262
|
return { message: undefined, protocolVersion: 0 };
|
|
203
263
|
}
|
|
@@ -238,6 +298,15 @@ export namespace Packet {
|
|
|
238
298
|
case "movementCompressed":
|
|
239
299
|
MovementCompressed.encode(message.message.movementCompressed, writer.uint32(98).fork()).ldelim();
|
|
240
300
|
break;
|
|
301
|
+
case "lookAtPosition":
|
|
302
|
+
LookAtPosition.encode(message.message.lookAtPosition, writer.uint32(106).fork()).ldelim();
|
|
303
|
+
break;
|
|
304
|
+
case "reaction":
|
|
305
|
+
Reaction.encode(message.message.reaction, writer.uint32(114).fork()).ldelim();
|
|
306
|
+
break;
|
|
307
|
+
case "chatReaction":
|
|
308
|
+
ChatReaction.encode(message.message.chatReaction, writer.uint32(122).fork()).ldelim();
|
|
309
|
+
break;
|
|
241
310
|
}
|
|
242
311
|
if (message.protocolVersion !== 0) {
|
|
243
312
|
writer.uint32(88).uint32(message.protocolVersion);
|
|
@@ -338,6 +407,27 @@ export namespace Packet {
|
|
|
338
407
|
movementCompressed: MovementCompressed.decode(reader, reader.uint32()),
|
|
339
408
|
};
|
|
340
409
|
continue;
|
|
410
|
+
case 13:
|
|
411
|
+
if (tag !== 106) {
|
|
412
|
+
break;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
message.message = { $case: "lookAtPosition", lookAtPosition: LookAtPosition.decode(reader, reader.uint32()) };
|
|
416
|
+
continue;
|
|
417
|
+
case 14:
|
|
418
|
+
if (tag !== 114) {
|
|
419
|
+
break;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
message.message = { $case: "reaction", reaction: Reaction.decode(reader, reader.uint32()) };
|
|
423
|
+
continue;
|
|
424
|
+
case 15:
|
|
425
|
+
if (tag !== 122) {
|
|
426
|
+
break;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
message.message = { $case: "chatReaction", chatReaction: ChatReaction.decode(reader, reader.uint32()) };
|
|
430
|
+
continue;
|
|
341
431
|
case 11:
|
|
342
432
|
if (tag !== 88) {
|
|
343
433
|
break;
|
|
@@ -378,6 +468,12 @@ export namespace Packet {
|
|
|
378
468
|
? { $case: "sceneEmote", sceneEmote: SceneEmote.fromJSON(object.sceneEmote) }
|
|
379
469
|
: isSet(object.movementCompressed)
|
|
380
470
|
? { $case: "movementCompressed", movementCompressed: MovementCompressed.fromJSON(object.movementCompressed) }
|
|
471
|
+
: isSet(object.lookAtPosition)
|
|
472
|
+
? { $case: "lookAtPosition", lookAtPosition: LookAtPosition.fromJSON(object.lookAtPosition) }
|
|
473
|
+
: isSet(object.reaction)
|
|
474
|
+
? { $case: "reaction", reaction: Reaction.fromJSON(object.reaction) }
|
|
475
|
+
: isSet(object.chatReaction)
|
|
476
|
+
? { $case: "chatReaction", chatReaction: ChatReaction.fromJSON(object.chatReaction) }
|
|
381
477
|
: undefined,
|
|
382
478
|
protocolVersion: isSet(object.protocolVersion) ? Number(object.protocolVersion) : 0,
|
|
383
479
|
};
|
|
@@ -415,6 +511,16 @@ export namespace Packet {
|
|
|
415
511
|
(obj.movementCompressed = message.message?.movementCompressed
|
|
416
512
|
? MovementCompressed.toJSON(message.message?.movementCompressed)
|
|
417
513
|
: undefined);
|
|
514
|
+
message.message?.$case === "lookAtPosition" &&
|
|
515
|
+
(obj.lookAtPosition = message.message?.lookAtPosition
|
|
516
|
+
? LookAtPosition.toJSON(message.message?.lookAtPosition)
|
|
517
|
+
: undefined);
|
|
518
|
+
message.message?.$case === "reaction" &&
|
|
519
|
+
(obj.reaction = message.message?.reaction ? Reaction.toJSON(message.message?.reaction) : undefined);
|
|
520
|
+
message.message?.$case === "chatReaction" &&
|
|
521
|
+
(obj.chatReaction = message.message?.chatReaction
|
|
522
|
+
? ChatReaction.toJSON(message.message?.chatReaction)
|
|
523
|
+
: undefined);
|
|
418
524
|
message.protocolVersion !== undefined && (obj.protocolVersion = Math.round(message.protocolVersion));
|
|
419
525
|
return obj;
|
|
420
526
|
}
|
|
@@ -502,6 +608,30 @@ export namespace Packet {
|
|
|
502
608
|
movementCompressed: MovementCompressed.fromPartial(object.message.movementCompressed),
|
|
503
609
|
};
|
|
504
610
|
}
|
|
611
|
+
if (
|
|
612
|
+
object.message?.$case === "lookAtPosition" &&
|
|
613
|
+
object.message?.lookAtPosition !== undefined &&
|
|
614
|
+
object.message?.lookAtPosition !== null
|
|
615
|
+
) {
|
|
616
|
+
message.message = {
|
|
617
|
+
$case: "lookAtPosition",
|
|
618
|
+
lookAtPosition: LookAtPosition.fromPartial(object.message.lookAtPosition),
|
|
619
|
+
};
|
|
620
|
+
}
|
|
621
|
+
if (
|
|
622
|
+
object.message?.$case === "reaction" &&
|
|
623
|
+
object.message?.reaction !== undefined &&
|
|
624
|
+
object.message?.reaction !== null
|
|
625
|
+
) {
|
|
626
|
+
message.message = { $case: "reaction", reaction: Reaction.fromPartial(object.message.reaction) };
|
|
627
|
+
}
|
|
628
|
+
if (
|
|
629
|
+
object.message?.$case === "chatReaction" &&
|
|
630
|
+
object.message?.chatReaction !== undefined &&
|
|
631
|
+
object.message?.chatReaction !== null
|
|
632
|
+
) {
|
|
633
|
+
message.message = { $case: "chatReaction", chatReaction: ChatReaction.fromPartial(object.message.chatReaction) };
|
|
634
|
+
}
|
|
505
635
|
message.protocolVersion = object.protocolVersion ?? 0;
|
|
506
636
|
return message;
|
|
507
637
|
}
|
|
@@ -1192,7 +1322,19 @@ export namespace MovementCompressed {
|
|
|
1192
1322
|
}
|
|
1193
1323
|
|
|
1194
1324
|
function createBasePlayerEmote(): PlayerEmote {
|
|
1195
|
-
return {
|
|
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
|
+
};
|
|
1196
1338
|
}
|
|
1197
1339
|
|
|
1198
1340
|
export namespace PlayerEmote {
|
|
@@ -1206,6 +1348,30 @@ export namespace PlayerEmote {
|
|
|
1206
1348
|
if (message.timestamp !== 0) {
|
|
1207
1349
|
writer.uint32(29).float(message.timestamp);
|
|
1208
1350
|
}
|
|
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
|
+
}
|
|
1209
1375
|
return writer;
|
|
1210
1376
|
}
|
|
1211
1377
|
|
|
@@ -1237,6 +1403,62 @@ export namespace PlayerEmote {
|
|
|
1237
1403
|
|
|
1238
1404
|
message.timestamp = reader.float();
|
|
1239
1405
|
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;
|
|
1240
1462
|
}
|
|
1241
1463
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1242
1464
|
break;
|
|
@@ -1251,6 +1473,14 @@ export namespace PlayerEmote {
|
|
|
1251
1473
|
incrementalId: isSet(object.incrementalId) ? Number(object.incrementalId) : 0,
|
|
1252
1474
|
urn: isSet(object.urn) ? String(object.urn) : "",
|
|
1253
1475
|
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,
|
|
1254
1484
|
};
|
|
1255
1485
|
}
|
|
1256
1486
|
|
|
@@ -1259,6 +1489,14 @@ export namespace PlayerEmote {
|
|
|
1259
1489
|
message.incrementalId !== undefined && (obj.incrementalId = Math.round(message.incrementalId));
|
|
1260
1490
|
message.urn !== undefined && (obj.urn = message.urn);
|
|
1261
1491
|
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));
|
|
1262
1500
|
return obj;
|
|
1263
1501
|
}
|
|
1264
1502
|
|
|
@@ -1271,6 +1509,127 @@ export namespace PlayerEmote {
|
|
|
1271
1509
|
message.incrementalId = object.incrementalId ?? 0;
|
|
1272
1510
|
message.urn = object.urn ?? "";
|
|
1273
1511
|
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 ?? "";
|
|
1274
1633
|
return message;
|
|
1275
1634
|
}
|
|
1276
1635
|
}
|
|
@@ -1547,7 +1906,7 @@ export namespace ProfileResponse {
|
|
|
1547
1906
|
}
|
|
1548
1907
|
|
|
1549
1908
|
function createBaseChat(): Chat {
|
|
1550
|
-
return { message: "", timestamp: 0 };
|
|
1909
|
+
return { message: "", timestamp: 0, forwardedFrom: undefined };
|
|
1551
1910
|
}
|
|
1552
1911
|
|
|
1553
1912
|
export namespace Chat {
|
|
@@ -1558,6 +1917,9 @@ export namespace Chat {
|
|
|
1558
1917
|
if (message.timestamp !== 0) {
|
|
1559
1918
|
writer.uint32(17).double(message.timestamp);
|
|
1560
1919
|
}
|
|
1920
|
+
if (message.forwardedFrom !== undefined) {
|
|
1921
|
+
writer.uint32(26).string(message.forwardedFrom);
|
|
1922
|
+
}
|
|
1561
1923
|
return writer;
|
|
1562
1924
|
}
|
|
1563
1925
|
|
|
@@ -1582,6 +1944,13 @@ export namespace Chat {
|
|
|
1582
1944
|
|
|
1583
1945
|
message.timestamp = reader.double();
|
|
1584
1946
|
continue;
|
|
1947
|
+
case 3:
|
|
1948
|
+
if (tag !== 26) {
|
|
1949
|
+
break;
|
|
1950
|
+
}
|
|
1951
|
+
|
|
1952
|
+
message.forwardedFrom = reader.string();
|
|
1953
|
+
continue;
|
|
1585
1954
|
}
|
|
1586
1955
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1587
1956
|
break;
|
|
@@ -1595,6 +1964,7 @@ export namespace Chat {
|
|
|
1595
1964
|
return {
|
|
1596
1965
|
message: isSet(object.message) ? String(object.message) : "",
|
|
1597
1966
|
timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0,
|
|
1967
|
+
forwardedFrom: isSet(object.forwardedFrom) ? String(object.forwardedFrom) : undefined,
|
|
1598
1968
|
};
|
|
1599
1969
|
}
|
|
1600
1970
|
|
|
@@ -1602,6 +1972,7 @@ export namespace Chat {
|
|
|
1602
1972
|
const obj: any = {};
|
|
1603
1973
|
message.message !== undefined && (obj.message = message.message);
|
|
1604
1974
|
message.timestamp !== undefined && (obj.timestamp = message.timestamp);
|
|
1975
|
+
message.forwardedFrom !== undefined && (obj.forwardedFrom = message.forwardedFrom);
|
|
1605
1976
|
return obj;
|
|
1606
1977
|
}
|
|
1607
1978
|
|
|
@@ -1613,6 +1984,7 @@ export namespace Chat {
|
|
|
1613
1984
|
const message = createBaseChat();
|
|
1614
1985
|
message.message = object.message ?? "";
|
|
1615
1986
|
message.timestamp = object.timestamp ?? 0;
|
|
1987
|
+
message.forwardedFrom = object.forwardedFrom ?? undefined;
|
|
1616
1988
|
return message;
|
|
1617
1989
|
}
|
|
1618
1990
|
}
|
|
@@ -1776,6 +2148,174 @@ export namespace Voice {
|
|
|
1776
2148
|
}
|
|
1777
2149
|
}
|
|
1778
2150
|
|
|
2151
|
+
function createBaseReaction(): Reaction {
|
|
2152
|
+
return { emojiIndex: 0, timestamp: 0, count: 0 };
|
|
2153
|
+
}
|
|
2154
|
+
|
|
2155
|
+
export namespace Reaction {
|
|
2156
|
+
export function encode(message: Reaction, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
2157
|
+
if (message.emojiIndex !== 0) {
|
|
2158
|
+
writer.uint32(8).int32(message.emojiIndex);
|
|
2159
|
+
}
|
|
2160
|
+
if (message.timestamp !== 0) {
|
|
2161
|
+
writer.uint32(21).float(message.timestamp);
|
|
2162
|
+
}
|
|
2163
|
+
if (message.count !== 0) {
|
|
2164
|
+
writer.uint32(24).int32(message.count);
|
|
2165
|
+
}
|
|
2166
|
+
return writer;
|
|
2167
|
+
}
|
|
2168
|
+
|
|
2169
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): Reaction {
|
|
2170
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
2171
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2172
|
+
const message = createBaseReaction();
|
|
2173
|
+
while (reader.pos < end) {
|
|
2174
|
+
const tag = reader.uint32();
|
|
2175
|
+
switch (tag >>> 3) {
|
|
2176
|
+
case 1:
|
|
2177
|
+
if (tag !== 8) {
|
|
2178
|
+
break;
|
|
2179
|
+
}
|
|
2180
|
+
|
|
2181
|
+
message.emojiIndex = reader.int32();
|
|
2182
|
+
continue;
|
|
2183
|
+
case 2:
|
|
2184
|
+
if (tag !== 21) {
|
|
2185
|
+
break;
|
|
2186
|
+
}
|
|
2187
|
+
|
|
2188
|
+
message.timestamp = reader.float();
|
|
2189
|
+
continue;
|
|
2190
|
+
case 3:
|
|
2191
|
+
if (tag !== 24) {
|
|
2192
|
+
break;
|
|
2193
|
+
}
|
|
2194
|
+
|
|
2195
|
+
message.count = reader.int32();
|
|
2196
|
+
continue;
|
|
2197
|
+
}
|
|
2198
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2199
|
+
break;
|
|
2200
|
+
}
|
|
2201
|
+
reader.skipType(tag & 7);
|
|
2202
|
+
}
|
|
2203
|
+
return message;
|
|
2204
|
+
}
|
|
2205
|
+
|
|
2206
|
+
export function fromJSON(object: any): Reaction {
|
|
2207
|
+
return {
|
|
2208
|
+
emojiIndex: isSet(object.emojiIndex) ? Number(object.emojiIndex) : 0,
|
|
2209
|
+
timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0,
|
|
2210
|
+
count: isSet(object.count) ? Number(object.count) : 0,
|
|
2211
|
+
};
|
|
2212
|
+
}
|
|
2213
|
+
|
|
2214
|
+
export function toJSON(message: Reaction): unknown {
|
|
2215
|
+
const obj: any = {};
|
|
2216
|
+
message.emojiIndex !== undefined && (obj.emojiIndex = Math.round(message.emojiIndex));
|
|
2217
|
+
message.timestamp !== undefined && (obj.timestamp = message.timestamp);
|
|
2218
|
+
message.count !== undefined && (obj.count = Math.round(message.count));
|
|
2219
|
+
return obj;
|
|
2220
|
+
}
|
|
2221
|
+
|
|
2222
|
+
export function create<I extends Exact<DeepPartial<Reaction>, I>>(base?: I): Reaction {
|
|
2223
|
+
return Reaction.fromPartial(base ?? {});
|
|
2224
|
+
}
|
|
2225
|
+
|
|
2226
|
+
export function fromPartial<I extends Exact<DeepPartial<Reaction>, I>>(object: I): Reaction {
|
|
2227
|
+
const message = createBaseReaction();
|
|
2228
|
+
message.emojiIndex = object.emojiIndex ?? 0;
|
|
2229
|
+
message.timestamp = object.timestamp ?? 0;
|
|
2230
|
+
message.count = object.count ?? 0;
|
|
2231
|
+
return message;
|
|
2232
|
+
}
|
|
2233
|
+
}
|
|
2234
|
+
|
|
2235
|
+
function createBaseChatReaction(): ChatReaction {
|
|
2236
|
+
return { emojiIndex: 0, messageId: "", address: "" };
|
|
2237
|
+
}
|
|
2238
|
+
|
|
2239
|
+
export namespace ChatReaction {
|
|
2240
|
+
export function encode(message: ChatReaction, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
2241
|
+
if (message.emojiIndex !== 0) {
|
|
2242
|
+
writer.uint32(8).int32(message.emojiIndex);
|
|
2243
|
+
}
|
|
2244
|
+
if (message.messageId !== "") {
|
|
2245
|
+
writer.uint32(18).string(message.messageId);
|
|
2246
|
+
}
|
|
2247
|
+
if (message.address !== "") {
|
|
2248
|
+
writer.uint32(26).string(message.address);
|
|
2249
|
+
}
|
|
2250
|
+
return writer;
|
|
2251
|
+
}
|
|
2252
|
+
|
|
2253
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): ChatReaction {
|
|
2254
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
2255
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2256
|
+
const message = createBaseChatReaction();
|
|
2257
|
+
while (reader.pos < end) {
|
|
2258
|
+
const tag = reader.uint32();
|
|
2259
|
+
switch (tag >>> 3) {
|
|
2260
|
+
case 1:
|
|
2261
|
+
if (tag !== 8) {
|
|
2262
|
+
break;
|
|
2263
|
+
}
|
|
2264
|
+
|
|
2265
|
+
message.emojiIndex = reader.int32();
|
|
2266
|
+
continue;
|
|
2267
|
+
case 2:
|
|
2268
|
+
if (tag !== 18) {
|
|
2269
|
+
break;
|
|
2270
|
+
}
|
|
2271
|
+
|
|
2272
|
+
message.messageId = reader.string();
|
|
2273
|
+
continue;
|
|
2274
|
+
case 3:
|
|
2275
|
+
if (tag !== 26) {
|
|
2276
|
+
break;
|
|
2277
|
+
}
|
|
2278
|
+
|
|
2279
|
+
message.address = reader.string();
|
|
2280
|
+
continue;
|
|
2281
|
+
}
|
|
2282
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2283
|
+
break;
|
|
2284
|
+
}
|
|
2285
|
+
reader.skipType(tag & 7);
|
|
2286
|
+
}
|
|
2287
|
+
return message;
|
|
2288
|
+
}
|
|
2289
|
+
|
|
2290
|
+
export function fromJSON(object: any): ChatReaction {
|
|
2291
|
+
return {
|
|
2292
|
+
emojiIndex: isSet(object.emojiIndex) ? Number(object.emojiIndex) : 0,
|
|
2293
|
+
messageId: isSet(object.messageId) ? String(object.messageId) : "",
|
|
2294
|
+
address: isSet(object.address) ? String(object.address) : "",
|
|
2295
|
+
};
|
|
2296
|
+
}
|
|
2297
|
+
|
|
2298
|
+
export function toJSON(message: ChatReaction): unknown {
|
|
2299
|
+
const obj: any = {};
|
|
2300
|
+
message.emojiIndex !== undefined && (obj.emojiIndex = Math.round(message.emojiIndex));
|
|
2301
|
+
message.messageId !== undefined && (obj.messageId = message.messageId);
|
|
2302
|
+
message.address !== undefined && (obj.address = message.address);
|
|
2303
|
+
return obj;
|
|
2304
|
+
}
|
|
2305
|
+
|
|
2306
|
+
export function create<I extends Exact<DeepPartial<ChatReaction>, I>>(base?: I): ChatReaction {
|
|
2307
|
+
return ChatReaction.fromPartial(base ?? {});
|
|
2308
|
+
}
|
|
2309
|
+
|
|
2310
|
+
export function fromPartial<I extends Exact<DeepPartial<ChatReaction>, I>>(object: I): ChatReaction {
|
|
2311
|
+
const message = createBaseChatReaction();
|
|
2312
|
+
message.emojiIndex = object.emojiIndex ?? 0;
|
|
2313
|
+
message.messageId = object.messageId ?? "";
|
|
2314
|
+
message.address = object.address ?? "";
|
|
2315
|
+
return message;
|
|
2316
|
+
}
|
|
2317
|
+
}
|
|
2318
|
+
|
|
1779
2319
|
declare const self: any | undefined;
|
|
1780
2320
|
declare const window: any | undefined;
|
|
1781
2321
|
declare const global: any | undefined;
|