@dcl/protocol 1.0.0-25748996127.commit-767845e → 1.0.0-25825802864.commit-1efee00
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/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/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 +1 -3
- package/out-js/decentraland/sdk/components/common/input_action.gen.js +1 -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_input.gen.d.ts +0 -2
- package/out-js/decentraland/sdk/components/ui_input.gen.js +1 -14
- package/out-js/decentraland/sdk/components/ui_input.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/comms_api.gen.ts +589 -0
- 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 +1 -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_input.gen.ts +1 -19
- 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/comms_api.proto +37 -1
- package/proto/decentraland/kernel/apis/restricted_actions.proto +8 -39
- package/proto/decentraland/kernel/comms/rfc4/comms.proto +36 -0
- 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 +1 -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/particle_system.proto +5 -1
- 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_canvas_information.proto +0 -6
- package/proto/decentraland/sdk/components/ui_input.proto +0 -1
- 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,36 @@ 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;
|
|
137
170
|
}
|
|
138
171
|
|
|
139
172
|
export interface SceneEmote {
|
|
@@ -158,6 +191,11 @@ export interface ProfileResponse {
|
|
|
158
191
|
export interface Chat {
|
|
159
192
|
message: string;
|
|
160
193
|
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;
|
|
161
199
|
}
|
|
162
200
|
|
|
163
201
|
export interface Scene {
|
|
@@ -198,6 +236,28 @@ export function voice_VoiceCodecToJSON(object: Voice_VoiceCodec): string {
|
|
|
198
236
|
}
|
|
199
237
|
}
|
|
200
238
|
|
|
239
|
+
/** Message sent to force an avatar to look at a position */
|
|
240
|
+
export interface LookAtPosition {
|
|
241
|
+
timestamp: number;
|
|
242
|
+
/** world position */
|
|
243
|
+
positionX: number;
|
|
244
|
+
positionY: number;
|
|
245
|
+
positionZ: number;
|
|
246
|
+
targetAvatarWalletAddress: string;
|
|
247
|
+
}
|
|
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,14 @@ 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;
|
|
1274
1520
|
return message;
|
|
1275
1521
|
}
|
|
1276
1522
|
}
|
|
@@ -1547,7 +1793,7 @@ export namespace ProfileResponse {
|
|
|
1547
1793
|
}
|
|
1548
1794
|
|
|
1549
1795
|
function createBaseChat(): Chat {
|
|
1550
|
-
return { message: "", timestamp: 0 };
|
|
1796
|
+
return { message: "", timestamp: 0, forwardedFrom: undefined };
|
|
1551
1797
|
}
|
|
1552
1798
|
|
|
1553
1799
|
export namespace Chat {
|
|
@@ -1558,6 +1804,9 @@ export namespace Chat {
|
|
|
1558
1804
|
if (message.timestamp !== 0) {
|
|
1559
1805
|
writer.uint32(17).double(message.timestamp);
|
|
1560
1806
|
}
|
|
1807
|
+
if (message.forwardedFrom !== undefined) {
|
|
1808
|
+
writer.uint32(26).string(message.forwardedFrom);
|
|
1809
|
+
}
|
|
1561
1810
|
return writer;
|
|
1562
1811
|
}
|
|
1563
1812
|
|
|
@@ -1582,6 +1831,13 @@ export namespace Chat {
|
|
|
1582
1831
|
|
|
1583
1832
|
message.timestamp = reader.double();
|
|
1584
1833
|
continue;
|
|
1834
|
+
case 3:
|
|
1835
|
+
if (tag !== 26) {
|
|
1836
|
+
break;
|
|
1837
|
+
}
|
|
1838
|
+
|
|
1839
|
+
message.forwardedFrom = reader.string();
|
|
1840
|
+
continue;
|
|
1585
1841
|
}
|
|
1586
1842
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1587
1843
|
break;
|
|
@@ -1595,6 +1851,7 @@ export namespace Chat {
|
|
|
1595
1851
|
return {
|
|
1596
1852
|
message: isSet(object.message) ? String(object.message) : "",
|
|
1597
1853
|
timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0,
|
|
1854
|
+
forwardedFrom: isSet(object.forwardedFrom) ? String(object.forwardedFrom) : undefined,
|
|
1598
1855
|
};
|
|
1599
1856
|
}
|
|
1600
1857
|
|
|
@@ -1602,6 +1859,7 @@ export namespace Chat {
|
|
|
1602
1859
|
const obj: any = {};
|
|
1603
1860
|
message.message !== undefined && (obj.message = message.message);
|
|
1604
1861
|
message.timestamp !== undefined && (obj.timestamp = message.timestamp);
|
|
1862
|
+
message.forwardedFrom !== undefined && (obj.forwardedFrom = message.forwardedFrom);
|
|
1605
1863
|
return obj;
|
|
1606
1864
|
}
|
|
1607
1865
|
|
|
@@ -1613,6 +1871,7 @@ export namespace Chat {
|
|
|
1613
1871
|
const message = createBaseChat();
|
|
1614
1872
|
message.message = object.message ?? "";
|
|
1615
1873
|
message.timestamp = object.timestamp ?? 0;
|
|
1874
|
+
message.forwardedFrom = object.forwardedFrom ?? undefined;
|
|
1616
1875
|
return message;
|
|
1617
1876
|
}
|
|
1618
1877
|
}
|
|
@@ -1776,6 +2035,287 @@ export namespace Voice {
|
|
|
1776
2035
|
}
|
|
1777
2036
|
}
|
|
1778
2037
|
|
|
2038
|
+
function createBaseLookAtPosition(): LookAtPosition {
|
|
2039
|
+
return { timestamp: 0, positionX: 0, positionY: 0, positionZ: 0, targetAvatarWalletAddress: "" };
|
|
2040
|
+
}
|
|
2041
|
+
|
|
2042
|
+
export namespace LookAtPosition {
|
|
2043
|
+
export function encode(message: LookAtPosition, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
2044
|
+
if (message.timestamp !== 0) {
|
|
2045
|
+
writer.uint32(13).float(message.timestamp);
|
|
2046
|
+
}
|
|
2047
|
+
if (message.positionX !== 0) {
|
|
2048
|
+
writer.uint32(21).float(message.positionX);
|
|
2049
|
+
}
|
|
2050
|
+
if (message.positionY !== 0) {
|
|
2051
|
+
writer.uint32(29).float(message.positionY);
|
|
2052
|
+
}
|
|
2053
|
+
if (message.positionZ !== 0) {
|
|
2054
|
+
writer.uint32(37).float(message.positionZ);
|
|
2055
|
+
}
|
|
2056
|
+
if (message.targetAvatarWalletAddress !== "") {
|
|
2057
|
+
writer.uint32(42).string(message.targetAvatarWalletAddress);
|
|
2058
|
+
}
|
|
2059
|
+
return writer;
|
|
2060
|
+
}
|
|
2061
|
+
|
|
2062
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): LookAtPosition {
|
|
2063
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
2064
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2065
|
+
const message = createBaseLookAtPosition();
|
|
2066
|
+
while (reader.pos < end) {
|
|
2067
|
+
const tag = reader.uint32();
|
|
2068
|
+
switch (tag >>> 3) {
|
|
2069
|
+
case 1:
|
|
2070
|
+
if (tag !== 13) {
|
|
2071
|
+
break;
|
|
2072
|
+
}
|
|
2073
|
+
|
|
2074
|
+
message.timestamp = reader.float();
|
|
2075
|
+
continue;
|
|
2076
|
+
case 2:
|
|
2077
|
+
if (tag !== 21) {
|
|
2078
|
+
break;
|
|
2079
|
+
}
|
|
2080
|
+
|
|
2081
|
+
message.positionX = reader.float();
|
|
2082
|
+
continue;
|
|
2083
|
+
case 3:
|
|
2084
|
+
if (tag !== 29) {
|
|
2085
|
+
break;
|
|
2086
|
+
}
|
|
2087
|
+
|
|
2088
|
+
message.positionY = reader.float();
|
|
2089
|
+
continue;
|
|
2090
|
+
case 4:
|
|
2091
|
+
if (tag !== 37) {
|
|
2092
|
+
break;
|
|
2093
|
+
}
|
|
2094
|
+
|
|
2095
|
+
message.positionZ = reader.float();
|
|
2096
|
+
continue;
|
|
2097
|
+
case 5:
|
|
2098
|
+
if (tag !== 42) {
|
|
2099
|
+
break;
|
|
2100
|
+
}
|
|
2101
|
+
|
|
2102
|
+
message.targetAvatarWalletAddress = reader.string();
|
|
2103
|
+
continue;
|
|
2104
|
+
}
|
|
2105
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2106
|
+
break;
|
|
2107
|
+
}
|
|
2108
|
+
reader.skipType(tag & 7);
|
|
2109
|
+
}
|
|
2110
|
+
return message;
|
|
2111
|
+
}
|
|
2112
|
+
|
|
2113
|
+
export function fromJSON(object: any): LookAtPosition {
|
|
2114
|
+
return {
|
|
2115
|
+
timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0,
|
|
2116
|
+
positionX: isSet(object.positionX) ? Number(object.positionX) : 0,
|
|
2117
|
+
positionY: isSet(object.positionY) ? Number(object.positionY) : 0,
|
|
2118
|
+
positionZ: isSet(object.positionZ) ? Number(object.positionZ) : 0,
|
|
2119
|
+
targetAvatarWalletAddress: isSet(object.targetAvatarWalletAddress)
|
|
2120
|
+
? String(object.targetAvatarWalletAddress)
|
|
2121
|
+
: "",
|
|
2122
|
+
};
|
|
2123
|
+
}
|
|
2124
|
+
|
|
2125
|
+
export function toJSON(message: LookAtPosition): unknown {
|
|
2126
|
+
const obj: any = {};
|
|
2127
|
+
message.timestamp !== undefined && (obj.timestamp = message.timestamp);
|
|
2128
|
+
message.positionX !== undefined && (obj.positionX = message.positionX);
|
|
2129
|
+
message.positionY !== undefined && (obj.positionY = message.positionY);
|
|
2130
|
+
message.positionZ !== undefined && (obj.positionZ = message.positionZ);
|
|
2131
|
+
message.targetAvatarWalletAddress !== undefined &&
|
|
2132
|
+
(obj.targetAvatarWalletAddress = message.targetAvatarWalletAddress);
|
|
2133
|
+
return obj;
|
|
2134
|
+
}
|
|
2135
|
+
|
|
2136
|
+
export function create<I extends Exact<DeepPartial<LookAtPosition>, I>>(base?: I): LookAtPosition {
|
|
2137
|
+
return LookAtPosition.fromPartial(base ?? {});
|
|
2138
|
+
}
|
|
2139
|
+
|
|
2140
|
+
export function fromPartial<I extends Exact<DeepPartial<LookAtPosition>, I>>(object: I): LookAtPosition {
|
|
2141
|
+
const message = createBaseLookAtPosition();
|
|
2142
|
+
message.timestamp = object.timestamp ?? 0;
|
|
2143
|
+
message.positionX = object.positionX ?? 0;
|
|
2144
|
+
message.positionY = object.positionY ?? 0;
|
|
2145
|
+
message.positionZ = object.positionZ ?? 0;
|
|
2146
|
+
message.targetAvatarWalletAddress = object.targetAvatarWalletAddress ?? "";
|
|
2147
|
+
return message;
|
|
2148
|
+
}
|
|
2149
|
+
}
|
|
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;
|