@dcl/protocol 1.0.0-16429465125.commit-bac58dd → 1.0.0-16564746732.commit-501dda6
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/social_service/v2/social_service_v2.gen.d.ts +402 -0
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.js +2286 -205
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.js.map +1 -1
- package/out-ts/decentraland/social_service/v2/social_service_v2.gen.ts +2585 -157
- package/package.json +2 -2
- package/proto/decentraland/sdk/components/light_source.proto +10 -17
- package/proto/decentraland/social_service/v2/social_service_v2.proto +160 -0
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-16564746732.commit-501dda6",
|
|
4
4
|
"description": "",
|
|
5
5
|
"repository": "decentraland/protocol.git",
|
|
6
6
|
"homepage": "https://github.com/decentraland/protocol#readme",
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"out-js",
|
|
31
31
|
"public"
|
|
32
32
|
],
|
|
33
|
-
"commit": "
|
|
33
|
+
"commit": "501dda6f24a76b6b040960a81c7eccd65685585e"
|
|
34
34
|
}
|
|
@@ -6,30 +6,23 @@ import "decentraland/common/texture.proto";
|
|
|
6
6
|
option (common.ecs_component_id) = 1079;
|
|
7
7
|
|
|
8
8
|
message PBLightSource {
|
|
9
|
-
optional bool active =
|
|
10
|
-
optional decentraland.common.Color3 color =
|
|
11
|
-
optional float
|
|
12
|
-
optional float range =
|
|
9
|
+
optional bool active = 1; // default = true, whether the lightSource is active or not.
|
|
10
|
+
optional decentraland.common.Color3 color = 2; // default = Color.white, the tint of the light, in RGB format where each component is a floating point value with a range from 0 to 1.
|
|
11
|
+
optional float intensity = 3; // default = 250, ranges from 1 (dim) to 100,000 (very bright), expressed in Lumens for Point and Spot.
|
|
12
|
+
optional float range = 4; // default = 0, how far the light travels, expressed in meters. If left at 0 will be computed automatically
|
|
13
|
+
optional bool shadow = 5; // default = false, whether the light casts shadows or not.
|
|
14
|
+
optional decentraland.common.TextureUnion shadow_mask_texture = 6; // Texture mask through which shadows are cast to simulate caustics, soft shadows, and light shapes such as light entering from a window.
|
|
13
15
|
|
|
14
16
|
oneof type {
|
|
15
|
-
Point point =
|
|
16
|
-
Spot spot =
|
|
17
|
+
Point point = 7;
|
|
18
|
+
Spot spot = 8;
|
|
17
19
|
}
|
|
18
20
|
|
|
19
21
|
message Point {
|
|
20
|
-
optional ShadowType shadow = 5; // default = ShadowType.ST_NONE The type of shadow the light source supports.
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
message Spot {
|
|
24
|
-
optional float inner_angle =
|
|
25
|
-
optional float outer_angle =
|
|
26
|
-
optional ShadowType shadow = 5; // default = ShadowType.ST_NONE The type of shadow the light source supports.
|
|
27
|
-
optional decentraland.common.TextureUnion shadow_mask_texture = 8; // Texture mask through which shadows are cast to simulate caustics, soft shadows, and light shapes such as light entering from a window.
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
enum ShadowType {
|
|
31
|
-
ST_NONE = 0; // No shadows are cast from this LightSource.
|
|
32
|
-
ST_SOFT = 1; // More realistic type of shadow that reduces block artifacts, noise or pixelation, but requires more processing.
|
|
33
|
-
ST_HARD = 2; // Less realistic type of shadow but more performant, uses hard edges.
|
|
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
|
+
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.
|
|
34
27
|
}
|
|
35
28
|
}
|
|
@@ -425,6 +425,145 @@ message GetIncomingPrivateVoiceChatRequestResponse {
|
|
|
425
425
|
}
|
|
426
426
|
}
|
|
427
427
|
|
|
428
|
+
// Community Voice Chat messages
|
|
429
|
+
|
|
430
|
+
// Community voice chat credentials - specific type for community chats
|
|
431
|
+
message CommunityVoiceChatCredentials {
|
|
432
|
+
string connection_url = 1;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
// Starting a community voice chat
|
|
436
|
+
message StartCommunityVoiceChatPayload {
|
|
437
|
+
string community_id = 1;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
message StartCommunityVoiceChatResponse {
|
|
441
|
+
message Ok {
|
|
442
|
+
CommunityVoiceChatCredentials credentials = 1; // Moderator gets credentials immediately
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
oneof response {
|
|
446
|
+
Ok ok = 1;
|
|
447
|
+
InvalidRequest invalid_request = 2;
|
|
448
|
+
ForbiddenError forbidden_error = 3;
|
|
449
|
+
ConflictingError conflicting_error = 4;
|
|
450
|
+
InternalServerError internal_server_error = 5;
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
// Joining a community voice chat
|
|
455
|
+
message JoinCommunityVoiceChatPayload {
|
|
456
|
+
string community_id = 1;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
message JoinCommunityVoiceChatResponse {
|
|
460
|
+
message Ok {
|
|
461
|
+
string voice_chat_id = 1;
|
|
462
|
+
CommunityVoiceChatCredentials credentials = 2;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
oneof response {
|
|
466
|
+
Ok ok = 1;
|
|
467
|
+
InvalidRequest invalid_request = 2;
|
|
468
|
+
ForbiddenError forbidden_error = 3;
|
|
469
|
+
NotFoundError not_found_error = 4;
|
|
470
|
+
ConflictingError conflicting_error = 5;
|
|
471
|
+
InternalServerError internal_server_error = 6;
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
// Request to speak in community voice chat
|
|
476
|
+
message RequestToSpeakInCommunityVoiceChatPayload {
|
|
477
|
+
string community_id = 1;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
message RequestToSpeakInCommunityVoiceChatResponse {
|
|
481
|
+
message Ok {
|
|
482
|
+
string message = 1;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
oneof response {
|
|
486
|
+
Ok ok = 1;
|
|
487
|
+
InvalidRequest invalid_request = 2;
|
|
488
|
+
ForbiddenError forbidden_error = 3;
|
|
489
|
+
NotFoundError not_found_error = 4;
|
|
490
|
+
InternalServerError internal_server_error = 5;
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
// Promote speaker in community voice chat
|
|
495
|
+
message PromoteSpeakerInCommunityVoiceChatPayload {
|
|
496
|
+
string community_id = 1;
|
|
497
|
+
string user_address = 2;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
message PromoteSpeakerInCommunityVoiceChatResponse {
|
|
501
|
+
message Ok {
|
|
502
|
+
string message = 1;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
oneof response {
|
|
506
|
+
Ok ok = 1;
|
|
507
|
+
InvalidRequest invalid_request = 2;
|
|
508
|
+
ForbiddenError forbidden_error = 3;
|
|
509
|
+
NotFoundError not_found_error = 4;
|
|
510
|
+
InternalServerError internal_server_error = 5;
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
// Demote speaker in community voice chat
|
|
515
|
+
message DemoteSpeakerInCommunityVoiceChatPayload {
|
|
516
|
+
string community_id = 1;
|
|
517
|
+
string user_address = 2;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
message DemoteSpeakerInCommunityVoiceChatResponse {
|
|
521
|
+
message Ok {
|
|
522
|
+
string message = 1;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
oneof response {
|
|
526
|
+
Ok ok = 1;
|
|
527
|
+
InvalidRequest invalid_request = 2;
|
|
528
|
+
ForbiddenError forbidden_error = 3;
|
|
529
|
+
NotFoundError not_found_error = 4;
|
|
530
|
+
InternalServerError internal_server_error = 5;
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
// Kick player from community voice chat
|
|
535
|
+
message KickPlayerFromCommunityVoiceChatPayload {
|
|
536
|
+
string community_id = 1;
|
|
537
|
+
string user_address = 2;
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
message KickPlayerFromCommunityVoiceChatResponse {
|
|
541
|
+
message Ok {
|
|
542
|
+
string message = 1;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
oneof response {
|
|
546
|
+
Ok ok = 1;
|
|
547
|
+
InvalidRequest invalid_request = 2;
|
|
548
|
+
ForbiddenError forbidden_error = 3;
|
|
549
|
+
NotFoundError not_found_error = 4;
|
|
550
|
+
InternalServerError internal_server_error = 5;
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
enum CommunityVoiceChatStatus {
|
|
555
|
+
COMMUNITY_VOICE_CHAT_STARTED = 0;
|
|
556
|
+
COMMUNITY_VOICE_CHAT_ENDED = 1;
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
// Community voice chat updates/events - 'started' and 'ended' status
|
|
560
|
+
message CommunityVoiceChatUpdate {
|
|
561
|
+
string community_id = 1;
|
|
562
|
+
string voice_chat_id = 2;
|
|
563
|
+
int64 created_at = 3;
|
|
564
|
+
CommunityVoiceChatStatus status = 4; // 'started' or 'ended'
|
|
565
|
+
optional int64 ended_at = 5; // Only present when status is 'ended'
|
|
566
|
+
}
|
|
428
567
|
|
|
429
568
|
service SocialService {
|
|
430
569
|
// Get the list of friends for the authenticated user
|
|
@@ -494,4 +633,25 @@ service SocialService {
|
|
|
494
633
|
|
|
495
634
|
// Subscribe to private voice chat updates
|
|
496
635
|
rpc SubscribeToPrivateVoiceChatUpdates(google.protobuf.Empty) returns (stream PrivateVoiceChatUpdate) {}
|
|
636
|
+
|
|
637
|
+
// Start a community voice chat (moderator/owner only)
|
|
638
|
+
rpc StartCommunityVoiceChat(StartCommunityVoiceChatPayload) returns (StartCommunityVoiceChatResponse) {}
|
|
639
|
+
|
|
640
|
+
// Join a community voice chat
|
|
641
|
+
rpc JoinCommunityVoiceChat(JoinCommunityVoiceChatPayload) returns (JoinCommunityVoiceChatResponse) {}
|
|
642
|
+
|
|
643
|
+
// Request to speak in community voice chat
|
|
644
|
+
rpc RequestToSpeakInCommunityVoiceChat(RequestToSpeakInCommunityVoiceChatPayload) returns (RequestToSpeakInCommunityVoiceChatResponse) {}
|
|
645
|
+
|
|
646
|
+
// Promote speaker in community voice chat (moderator only)
|
|
647
|
+
rpc PromoteSpeakerInCommunityVoiceChat(PromoteSpeakerInCommunityVoiceChatPayload) returns (PromoteSpeakerInCommunityVoiceChatResponse) {}
|
|
648
|
+
|
|
649
|
+
// Demote speaker in community voice chat (moderator only)
|
|
650
|
+
rpc DemoteSpeakerInCommunityVoiceChat(DemoteSpeakerInCommunityVoiceChatPayload) returns (DemoteSpeakerInCommunityVoiceChatResponse) {}
|
|
651
|
+
|
|
652
|
+
// Kick player from community voice chat (moderator only)
|
|
653
|
+
rpc KickPlayerFromCommunityVoiceChat(KickPlayerFromCommunityVoiceChatPayload) returns (KickPlayerFromCommunityVoiceChatResponse) {}
|
|
654
|
+
|
|
655
|
+
// Subscribe to community voice chat updates (only 'started' events)
|
|
656
|
+
rpc SubscribeToCommunityVoiceChatUpdates(google.protobuf.Empty) returns (stream CommunityVoiceChatUpdate) {}
|
|
497
657
|
}
|