@dcl/protocol 1.0.0-15850084249.commit-ce7a4eb → 1.0.0-15970336800.commit-4d07dcd

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.
@@ -542,6 +542,12 @@ export interface BlockUpdate {
542
542
  isBlocked: boolean;
543
543
  }
544
544
 
545
+ export interface CommunityMemberConnectivityUpdate {
546
+ communityId: string;
547
+ member: User | undefined;
548
+ status: ConnectivityStatus;
549
+ }
550
+
545
551
  export interface StartPrivateVoiceChatPayload {
546
552
  callee: User | undefined;
547
553
  }
@@ -5378,6 +5384,99 @@ export namespace BlockUpdate {
5378
5384
  }
5379
5385
  }
5380
5386
 
5387
+ function createBaseCommunityMemberConnectivityUpdate(): CommunityMemberConnectivityUpdate {
5388
+ return { communityId: "", member: undefined, status: 0 };
5389
+ }
5390
+
5391
+ export namespace CommunityMemberConnectivityUpdate {
5392
+ export function encode(
5393
+ message: CommunityMemberConnectivityUpdate,
5394
+ writer: _m0.Writer = _m0.Writer.create(),
5395
+ ): _m0.Writer {
5396
+ if (message.communityId !== "") {
5397
+ writer.uint32(10).string(message.communityId);
5398
+ }
5399
+ if (message.member !== undefined) {
5400
+ User.encode(message.member, writer.uint32(18).fork()).ldelim();
5401
+ }
5402
+ if (message.status !== 0) {
5403
+ writer.uint32(24).int32(message.status);
5404
+ }
5405
+ return writer;
5406
+ }
5407
+
5408
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): CommunityMemberConnectivityUpdate {
5409
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
5410
+ let end = length === undefined ? reader.len : reader.pos + length;
5411
+ const message = createBaseCommunityMemberConnectivityUpdate();
5412
+ while (reader.pos < end) {
5413
+ const tag = reader.uint32();
5414
+ switch (tag >>> 3) {
5415
+ case 1:
5416
+ if (tag !== 10) {
5417
+ break;
5418
+ }
5419
+
5420
+ message.communityId = reader.string();
5421
+ continue;
5422
+ case 2:
5423
+ if (tag !== 18) {
5424
+ break;
5425
+ }
5426
+
5427
+ message.member = User.decode(reader, reader.uint32());
5428
+ continue;
5429
+ case 3:
5430
+ if (tag !== 24) {
5431
+ break;
5432
+ }
5433
+
5434
+ message.status = reader.int32() as any;
5435
+ continue;
5436
+ }
5437
+ if ((tag & 7) === 4 || tag === 0) {
5438
+ break;
5439
+ }
5440
+ reader.skipType(tag & 7);
5441
+ }
5442
+ return message;
5443
+ }
5444
+
5445
+ export function fromJSON(object: any): CommunityMemberConnectivityUpdate {
5446
+ return {
5447
+ communityId: isSet(object.communityId) ? String(object.communityId) : "",
5448
+ member: isSet(object.member) ? User.fromJSON(object.member) : undefined,
5449
+ status: isSet(object.status) ? connectivityStatusFromJSON(object.status) : 0,
5450
+ };
5451
+ }
5452
+
5453
+ export function toJSON(message: CommunityMemberConnectivityUpdate): unknown {
5454
+ const obj: any = {};
5455
+ message.communityId !== undefined && (obj.communityId = message.communityId);
5456
+ message.member !== undefined && (obj.member = message.member ? User.toJSON(message.member) : undefined);
5457
+ message.status !== undefined && (obj.status = connectivityStatusToJSON(message.status));
5458
+ return obj;
5459
+ }
5460
+
5461
+ export function create<I extends Exact<DeepPartial<CommunityMemberConnectivityUpdate>, I>>(
5462
+ base?: I,
5463
+ ): CommunityMemberConnectivityUpdate {
5464
+ return CommunityMemberConnectivityUpdate.fromPartial(base ?? {});
5465
+ }
5466
+
5467
+ export function fromPartial<I extends Exact<DeepPartial<CommunityMemberConnectivityUpdate>, I>>(
5468
+ object: I,
5469
+ ): CommunityMemberConnectivityUpdate {
5470
+ const message = createBaseCommunityMemberConnectivityUpdate();
5471
+ message.communityId = object.communityId ?? "";
5472
+ message.member = (object.member !== undefined && object.member !== null)
5473
+ ? User.fromPartial(object.member)
5474
+ : undefined;
5475
+ message.status = object.status ?? 0;
5476
+ return message;
5477
+ }
5478
+ }
5479
+
5381
5480
  function createBaseStartPrivateVoiceChatPayload(): StartPrivateVoiceChatPayload {
5382
5481
  return { callee: undefined };
5383
5482
  }
@@ -7076,6 +7175,15 @@ export const SocialServiceDefinition = {
7076
7175
  responseStream: false,
7077
7176
  options: {},
7078
7177
  },
7178
+ /** Subscribe to community member connectivity updates: ONLINE, OFFLINE */
7179
+ subscribeToCommunityMemberConnectivityUpdates: {
7180
+ name: "SubscribeToCommunityMemberConnectivityUpdates",
7181
+ requestType: Empty,
7182
+ requestStream: false,
7183
+ responseType: CommunityMemberConnectivityUpdate,
7184
+ responseStream: true,
7185
+ options: {},
7186
+ },
7079
7187
  /** Start a private voice chat */
7080
7188
  startPrivateVoiceChat: {
7081
7189
  name: "StartPrivateVoiceChat",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/protocol",
3
- "version": "1.0.0-15850084249.commit-ce7a4eb",
3
+ "version": "1.0.0-15970336800.commit-4d07dcd",
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": "ce7a4ebfc094f4764c5182b0e41d3ebc72e7a17d"
33
+ "commit": "4d07dcd0f9bc395e3f24061ab2becf0fc06aa4f1"
34
34
  }
@@ -300,6 +300,12 @@ message BlockUpdate {
300
300
  bool is_blocked = 2;
301
301
  }
302
302
 
303
+ message CommunityMemberConnectivityUpdate {
304
+ string community_id = 1;
305
+ User member = 2;
306
+ ConnectivityStatus status = 3;
307
+ }
308
+
303
309
  // Private voice chats
304
310
 
305
311
  // Starting a private voice chat
@@ -467,6 +473,10 @@ service SocialService {
467
473
  // Get the private messages privacy settings for the requested users
468
474
  rpc GetPrivateMessagesSettings(GetPrivateMessagesSettingsPayload) returns (GetPrivateMessagesSettingsResponse) {}
469
475
 
476
+ // Subscribe to community member connectivity updates: ONLINE, OFFLINE
477
+ rpc SubscribeToCommunityMemberConnectivityUpdates(google.protobuf.Empty)
478
+ returns (stream CommunityMemberConnectivityUpdate) {}
479
+
470
480
  // Start a private voice chat
471
481
  rpc StartPrivateVoiceChat(StartPrivateVoiceChatPayload) returns (StartPrivateVoiceChatResponse) {}
472
482