@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.
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.d.ts +22 -0
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.js +94 -1
- 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 +108 -0
- package/package.json +2 -2
- package/proto/decentraland/social_service/v2/social_service_v2.proto +10 -0
|
@@ -356,6 +356,11 @@ export interface BlockUpdate {
|
|
|
356
356
|
address: string;
|
|
357
357
|
isBlocked: boolean;
|
|
358
358
|
}
|
|
359
|
+
export interface CommunityMemberConnectivityUpdate {
|
|
360
|
+
communityId: string;
|
|
361
|
+
member: User | undefined;
|
|
362
|
+
status: ConnectivityStatus;
|
|
363
|
+
}
|
|
359
364
|
export interface StartPrivateVoiceChatPayload {
|
|
360
365
|
callee: User | undefined;
|
|
361
366
|
}
|
|
@@ -926,6 +931,14 @@ export declare namespace BlockUpdate {
|
|
|
926
931
|
function create<I extends Exact<DeepPartial<BlockUpdate>, I>>(base?: I): BlockUpdate;
|
|
927
932
|
function fromPartial<I extends Exact<DeepPartial<BlockUpdate>, I>>(object: I): BlockUpdate;
|
|
928
933
|
}
|
|
934
|
+
export declare namespace CommunityMemberConnectivityUpdate {
|
|
935
|
+
function encode(message: CommunityMemberConnectivityUpdate, writer?: _m0.Writer): _m0.Writer;
|
|
936
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): CommunityMemberConnectivityUpdate;
|
|
937
|
+
function fromJSON(object: any): CommunityMemberConnectivityUpdate;
|
|
938
|
+
function toJSON(message: CommunityMemberConnectivityUpdate): unknown;
|
|
939
|
+
function create<I extends Exact<DeepPartial<CommunityMemberConnectivityUpdate>, I>>(base?: I): CommunityMemberConnectivityUpdate;
|
|
940
|
+
function fromPartial<I extends Exact<DeepPartial<CommunityMemberConnectivityUpdate>, I>>(object: I): CommunityMemberConnectivityUpdate;
|
|
941
|
+
}
|
|
929
942
|
export declare namespace StartPrivateVoiceChatPayload {
|
|
930
943
|
function encode(message: StartPrivateVoiceChatPayload, writer?: _m0.Writer): _m0.Writer;
|
|
931
944
|
function decode(input: _m0.Reader | Uint8Array, length?: number): StartPrivateVoiceChatPayload;
|
|
@@ -1198,6 +1211,15 @@ export declare const SocialServiceDefinition: {
|
|
|
1198
1211
|
readonly responseStream: false;
|
|
1199
1212
|
readonly options: {};
|
|
1200
1213
|
};
|
|
1214
|
+
/** Subscribe to community member connectivity updates: ONLINE, OFFLINE */
|
|
1215
|
+
readonly subscribeToCommunityMemberConnectivityUpdates: {
|
|
1216
|
+
readonly name: "SubscribeToCommunityMemberConnectivityUpdates";
|
|
1217
|
+
readonly requestType: typeof Empty;
|
|
1218
|
+
readonly requestStream: false;
|
|
1219
|
+
readonly responseType: typeof CommunityMemberConnectivityUpdate;
|
|
1220
|
+
readonly responseStream: true;
|
|
1221
|
+
readonly options: {};
|
|
1222
|
+
};
|
|
1201
1223
|
/** Start a private voice chat */
|
|
1202
1224
|
readonly startPrivateVoiceChat: {
|
|
1203
1225
|
readonly name: "StartPrivateVoiceChat";
|
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.UnblockUserResponse_Ok = exports.UnblockUserResponse = exports.UnblockUserPayload = exports.BlockUserResponse_Ok = exports.BlockUserResponse = exports.BlockUserPayload = exports.GetFriendshipStatusResponse_Ok = exports.GetFriendshipStatusResponse = exports.GetFriendshipStatusPayload = exports.FriendConnectivityUpdate = exports.FriendshipUpdate_BlockResponse = exports.FriendshipUpdate_CancelResponse = exports.FriendshipUpdate_DeleteResponse = exports.FriendshipUpdate_RejectResponse = exports.FriendshipUpdate_AcceptResponse = exports.FriendshipUpdate_RequestResponse = exports.FriendshipUpdate = exports.UpsertFriendshipResponse_Accepted = exports.UpsertFriendshipResponse = exports.PaginatedFriendshipRequestsResponse = exports.PaginatedFriendsProfilesResponse = exports.PaginatedResponse = exports.GetMutualFriendsPayload = exports.UpsertFriendshipPayload_CancelPayload = exports.UpsertFriendshipPayload_DeletePayload = exports.UpsertFriendshipPayload_RejectPayload = exports.UpsertFriendshipPayload_AcceptPayload = exports.UpsertFriendshipPayload_RequestPayload = exports.UpsertFriendshipPayload = exports.GetFriendshipRequestsPayload = exports.GetFriendsPayload = exports.FriendshipRequests = exports.FriendshipRequestResponse = exports.Pagination = exports.BlockedUserProfile = exports.FriendProfile = exports.User = exports.NotFoundError = exports.ForbiddenError = exports.ConflictingError = exports.ProfileNotFound = exports.InvalidRequest = exports.InternalServerError = exports.InvalidFriendshipAction = exports.PrivateVoiceChatStatus = exports.BlockedUsersMessagesVisibilitySetting = exports.PrivateMessagePrivacySetting = exports.FriendshipStatus = exports.ConnectivityStatus = exports.protobufPackage = void 0;
|
|
7
|
-
exports.SocialServiceDefinition = exports.GetIncomingPrivateVoiceChatRequestResponse_Ok = exports.GetIncomingPrivateVoiceChatRequestResponse = exports.EndPrivateVoiceChatResponse_Ok = exports.EndPrivateVoiceChatResponse = exports.EndPrivateVoiceChatPayload = exports.PrivateVoiceChatUpdate = exports.PrivateVoiceChatCredentials = exports.RejectPrivateVoiceChatResponse_Ok = exports.RejectPrivateVoiceChatResponse = exports.RejectPrivateVoiceChatPayload = exports.AcceptPrivateVoiceChatResponse_Ok = exports.AcceptPrivateVoiceChatResponse = exports.AcceptPrivateVoiceChatPayload = exports.StartPrivateVoiceChatResponse_Ok = exports.StartPrivateVoiceChatResponse = exports.StartPrivateVoiceChatPayload = exports.BlockUpdate = exports.GetBlockingStatusResponse = exports.GetBlockedUsersResponse = exports.GetBlockedUsersPayload = exports.GetPrivateMessagesSettingsResponse_Ok = exports.GetPrivateMessagesSettingsResponse_PrivateMessagesSettings = exports.GetPrivateMessagesSettingsResponse = exports.GetPrivateMessagesSettingsPayload = exports.UpsertSocialSettingsResponse = exports.UpsertSocialSettingsPayload = exports.GetSocialSettingsResponse_Ok = exports.GetSocialSettingsResponse = exports.SocialSettings = void 0;
|
|
7
|
+
exports.SocialServiceDefinition = exports.GetIncomingPrivateVoiceChatRequestResponse_Ok = exports.GetIncomingPrivateVoiceChatRequestResponse = exports.EndPrivateVoiceChatResponse_Ok = exports.EndPrivateVoiceChatResponse = exports.EndPrivateVoiceChatPayload = exports.PrivateVoiceChatUpdate = exports.PrivateVoiceChatCredentials = exports.RejectPrivateVoiceChatResponse_Ok = exports.RejectPrivateVoiceChatResponse = exports.RejectPrivateVoiceChatPayload = exports.AcceptPrivateVoiceChatResponse_Ok = exports.AcceptPrivateVoiceChatResponse = exports.AcceptPrivateVoiceChatPayload = exports.StartPrivateVoiceChatResponse_Ok = exports.StartPrivateVoiceChatResponse = exports.StartPrivateVoiceChatPayload = exports.CommunityMemberConnectivityUpdate = exports.BlockUpdate = exports.GetBlockingStatusResponse = exports.GetBlockedUsersResponse = exports.GetBlockedUsersPayload = exports.GetPrivateMessagesSettingsResponse_Ok = exports.GetPrivateMessagesSettingsResponse_PrivateMessagesSettings = exports.GetPrivateMessagesSettingsResponse = exports.GetPrivateMessagesSettingsPayload = exports.UpsertSocialSettingsResponse = exports.UpsertSocialSettingsPayload = exports.GetSocialSettingsResponse_Ok = exports.GetSocialSettingsResponse = exports.SocialSettings = void 0;
|
|
8
8
|
exports.connectivityStatusFromJSON = connectivityStatusFromJSON;
|
|
9
9
|
exports.connectivityStatusToJSON = connectivityStatusToJSON;
|
|
10
10
|
exports.friendshipStatusFromJSON = friendshipStatusFromJSON;
|
|
@@ -4698,6 +4698,90 @@ var BlockUpdate;
|
|
|
4698
4698
|
}
|
|
4699
4699
|
BlockUpdate.fromPartial = fromPartial;
|
|
4700
4700
|
})(BlockUpdate || (exports.BlockUpdate = BlockUpdate = {}));
|
|
4701
|
+
function createBaseCommunityMemberConnectivityUpdate() {
|
|
4702
|
+
return { communityId: "", member: undefined, status: 0 };
|
|
4703
|
+
}
|
|
4704
|
+
var CommunityMemberConnectivityUpdate;
|
|
4705
|
+
(function (CommunityMemberConnectivityUpdate) {
|
|
4706
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
4707
|
+
if (message.communityId !== "") {
|
|
4708
|
+
writer.uint32(10).string(message.communityId);
|
|
4709
|
+
}
|
|
4710
|
+
if (message.member !== undefined) {
|
|
4711
|
+
User.encode(message.member, writer.uint32(18).fork()).ldelim();
|
|
4712
|
+
}
|
|
4713
|
+
if (message.status !== 0) {
|
|
4714
|
+
writer.uint32(24).int32(message.status);
|
|
4715
|
+
}
|
|
4716
|
+
return writer;
|
|
4717
|
+
}
|
|
4718
|
+
CommunityMemberConnectivityUpdate.encode = encode;
|
|
4719
|
+
function decode(input, length) {
|
|
4720
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
4721
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
4722
|
+
const message = createBaseCommunityMemberConnectivityUpdate();
|
|
4723
|
+
while (reader.pos < end) {
|
|
4724
|
+
const tag = reader.uint32();
|
|
4725
|
+
switch (tag >>> 3) {
|
|
4726
|
+
case 1:
|
|
4727
|
+
if (tag !== 10) {
|
|
4728
|
+
break;
|
|
4729
|
+
}
|
|
4730
|
+
message.communityId = reader.string();
|
|
4731
|
+
continue;
|
|
4732
|
+
case 2:
|
|
4733
|
+
if (tag !== 18) {
|
|
4734
|
+
break;
|
|
4735
|
+
}
|
|
4736
|
+
message.member = User.decode(reader, reader.uint32());
|
|
4737
|
+
continue;
|
|
4738
|
+
case 3:
|
|
4739
|
+
if (tag !== 24) {
|
|
4740
|
+
break;
|
|
4741
|
+
}
|
|
4742
|
+
message.status = reader.int32();
|
|
4743
|
+
continue;
|
|
4744
|
+
}
|
|
4745
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4746
|
+
break;
|
|
4747
|
+
}
|
|
4748
|
+
reader.skipType(tag & 7);
|
|
4749
|
+
}
|
|
4750
|
+
return message;
|
|
4751
|
+
}
|
|
4752
|
+
CommunityMemberConnectivityUpdate.decode = decode;
|
|
4753
|
+
function fromJSON(object) {
|
|
4754
|
+
return {
|
|
4755
|
+
communityId: isSet(object.communityId) ? String(object.communityId) : "",
|
|
4756
|
+
member: isSet(object.member) ? User.fromJSON(object.member) : undefined,
|
|
4757
|
+
status: isSet(object.status) ? connectivityStatusFromJSON(object.status) : 0,
|
|
4758
|
+
};
|
|
4759
|
+
}
|
|
4760
|
+
CommunityMemberConnectivityUpdate.fromJSON = fromJSON;
|
|
4761
|
+
function toJSON(message) {
|
|
4762
|
+
const obj = {};
|
|
4763
|
+
message.communityId !== undefined && (obj.communityId = message.communityId);
|
|
4764
|
+
message.member !== undefined && (obj.member = message.member ? User.toJSON(message.member) : undefined);
|
|
4765
|
+
message.status !== undefined && (obj.status = connectivityStatusToJSON(message.status));
|
|
4766
|
+
return obj;
|
|
4767
|
+
}
|
|
4768
|
+
CommunityMemberConnectivityUpdate.toJSON = toJSON;
|
|
4769
|
+
function create(base) {
|
|
4770
|
+
return CommunityMemberConnectivityUpdate.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
4771
|
+
}
|
|
4772
|
+
CommunityMemberConnectivityUpdate.create = create;
|
|
4773
|
+
function fromPartial(object) {
|
|
4774
|
+
var _a, _b;
|
|
4775
|
+
const message = createBaseCommunityMemberConnectivityUpdate();
|
|
4776
|
+
message.communityId = (_a = object.communityId) !== null && _a !== void 0 ? _a : "";
|
|
4777
|
+
message.member = (object.member !== undefined && object.member !== null)
|
|
4778
|
+
? User.fromPartial(object.member)
|
|
4779
|
+
: undefined;
|
|
4780
|
+
message.status = (_b = object.status) !== null && _b !== void 0 ? _b : 0;
|
|
4781
|
+
return message;
|
|
4782
|
+
}
|
|
4783
|
+
CommunityMemberConnectivityUpdate.fromPartial = fromPartial;
|
|
4784
|
+
})(CommunityMemberConnectivityUpdate || (exports.CommunityMemberConnectivityUpdate = CommunityMemberConnectivityUpdate = {}));
|
|
4701
4785
|
function createBaseStartPrivateVoiceChatPayload() {
|
|
4702
4786
|
return { callee: undefined };
|
|
4703
4787
|
}
|
|
@@ -6264,6 +6348,15 @@ exports.SocialServiceDefinition = {
|
|
|
6264
6348
|
responseStream: false,
|
|
6265
6349
|
options: {},
|
|
6266
6350
|
},
|
|
6351
|
+
/** Subscribe to community member connectivity updates: ONLINE, OFFLINE */
|
|
6352
|
+
subscribeToCommunityMemberConnectivityUpdates: {
|
|
6353
|
+
name: "SubscribeToCommunityMemberConnectivityUpdates",
|
|
6354
|
+
requestType: empty_gen_1.Empty,
|
|
6355
|
+
requestStream: false,
|
|
6356
|
+
responseType: CommunityMemberConnectivityUpdate,
|
|
6357
|
+
responseStream: true,
|
|
6358
|
+
options: {},
|
|
6359
|
+
},
|
|
6267
6360
|
/** Start a private voice chat */
|
|
6268
6361
|
startPrivateVoiceChat: {
|
|
6269
6362
|
name: "StartPrivateVoiceChat",
|