@dcl/protocol 1.0.0-16564528964.commit-5630df7 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/protocol",
3
- "version": "1.0.0-16564528964.commit-5630df7",
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": "5630df76f6558e779d7819062ffcc98299a3fd86"
33
+ "commit": "501dda6f24a76b6b040960a81c7eccd65685585e"
34
34
  }
@@ -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
  }