@dcl/protocol 1.0.0-22584214067.commit-276e5b7 → 1.0.0-22584828914.commit-50f6aeb
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 +3 -0
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.js +40 -2
- 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 +44 -2
- package/package.json +2 -2
- package/proto/decentraland/sdk/components/physics_combined_force.proto +21 -0
- package/proto/decentraland/sdk/components/physics_combined_impulse.proto +23 -0
- package/proto/decentraland/social_service/v2/social_service_v2.proto +3 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _m0 from "protobufjs/minimal";
|
|
2
2
|
import { Empty } from "../../../google/protobuf/empty.gen";
|
|
3
|
+
import { Color3 } from "../../common/colors.gen";
|
|
3
4
|
import { ConflictingError, ForbiddenError, InternalServerError, InvalidFriendshipAction, InvalidRequest, NotFoundError, ProfileNotFound } from "../errors.gen";
|
|
4
5
|
export declare const protobufPackage = "decentraland.social_service.v2";
|
|
5
6
|
export declare enum ConnectivityStatus {
|
|
@@ -64,6 +65,7 @@ export interface FriendProfile {
|
|
|
64
65
|
name: string;
|
|
65
66
|
hasClaimedName: boolean;
|
|
66
67
|
profilePictureUrl: string;
|
|
68
|
+
nameColor?: Color3 | undefined;
|
|
67
69
|
}
|
|
68
70
|
export interface BlockedUserProfile {
|
|
69
71
|
address: string;
|
|
@@ -71,6 +73,7 @@ export interface BlockedUserProfile {
|
|
|
71
73
|
hasClaimedName: boolean;
|
|
72
74
|
profilePictureUrl: string;
|
|
73
75
|
blockedAt?: number | undefined;
|
|
76
|
+
nameColor?: Color3 | undefined;
|
|
74
77
|
}
|
|
75
78
|
export interface Pagination {
|
|
76
79
|
limit: number;
|
|
@@ -22,6 +22,7 @@ exports.communityVoiceChatStatusToJSON = communityVoiceChatStatusToJSON;
|
|
|
22
22
|
const long_1 = __importDefault(require("long"));
|
|
23
23
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
24
24
|
const empty_gen_1 = require("../../../google/protobuf/empty.gen");
|
|
25
|
+
const colors_gen_1 = require("../../common/colors.gen");
|
|
25
26
|
const errors_gen_1 = require("../errors.gen");
|
|
26
27
|
exports.protobufPackage = "decentraland.social_service.v2";
|
|
27
28
|
var ConnectivityStatus;
|
|
@@ -333,7 +334,7 @@ var User;
|
|
|
333
334
|
User.fromPartial = fromPartial;
|
|
334
335
|
})(User || (exports.User = User = {}));
|
|
335
336
|
function createBaseFriendProfile() {
|
|
336
|
-
return { address: "", name: "", hasClaimedName: false, profilePictureUrl: "" };
|
|
337
|
+
return { address: "", name: "", hasClaimedName: false, profilePictureUrl: "", nameColor: undefined };
|
|
337
338
|
}
|
|
338
339
|
var FriendProfile;
|
|
339
340
|
(function (FriendProfile) {
|
|
@@ -350,6 +351,9 @@ var FriendProfile;
|
|
|
350
351
|
if (message.profilePictureUrl !== "") {
|
|
351
352
|
writer.uint32(34).string(message.profilePictureUrl);
|
|
352
353
|
}
|
|
354
|
+
if (message.nameColor !== undefined) {
|
|
355
|
+
colors_gen_1.Color3.encode(message.nameColor, writer.uint32(42).fork()).ldelim();
|
|
356
|
+
}
|
|
353
357
|
return writer;
|
|
354
358
|
}
|
|
355
359
|
FriendProfile.encode = encode;
|
|
@@ -384,6 +388,12 @@ var FriendProfile;
|
|
|
384
388
|
}
|
|
385
389
|
message.profilePictureUrl = reader.string();
|
|
386
390
|
continue;
|
|
391
|
+
case 5:
|
|
392
|
+
if (tag !== 42) {
|
|
393
|
+
break;
|
|
394
|
+
}
|
|
395
|
+
message.nameColor = colors_gen_1.Color3.decode(reader, reader.uint32());
|
|
396
|
+
continue;
|
|
387
397
|
}
|
|
388
398
|
if ((tag & 7) === 4 || tag === 0) {
|
|
389
399
|
break;
|
|
@@ -399,6 +409,7 @@ var FriendProfile;
|
|
|
399
409
|
name: isSet(object.name) ? String(object.name) : "",
|
|
400
410
|
hasClaimedName: isSet(object.hasClaimedName) ? Boolean(object.hasClaimedName) : false,
|
|
401
411
|
profilePictureUrl: isSet(object.profilePictureUrl) ? String(object.profilePictureUrl) : "",
|
|
412
|
+
nameColor: isSet(object.nameColor) ? colors_gen_1.Color3.fromJSON(object.nameColor) : undefined,
|
|
402
413
|
};
|
|
403
414
|
}
|
|
404
415
|
FriendProfile.fromJSON = fromJSON;
|
|
@@ -408,6 +419,8 @@ var FriendProfile;
|
|
|
408
419
|
message.name !== undefined && (obj.name = message.name);
|
|
409
420
|
message.hasClaimedName !== undefined && (obj.hasClaimedName = message.hasClaimedName);
|
|
410
421
|
message.profilePictureUrl !== undefined && (obj.profilePictureUrl = message.profilePictureUrl);
|
|
422
|
+
message.nameColor !== undefined &&
|
|
423
|
+
(obj.nameColor = message.nameColor ? colors_gen_1.Color3.toJSON(message.nameColor) : undefined);
|
|
411
424
|
return obj;
|
|
412
425
|
}
|
|
413
426
|
FriendProfile.toJSON = toJSON;
|
|
@@ -422,12 +435,22 @@ var FriendProfile;
|
|
|
422
435
|
message.name = (_b = object.name) !== null && _b !== void 0 ? _b : "";
|
|
423
436
|
message.hasClaimedName = (_c = object.hasClaimedName) !== null && _c !== void 0 ? _c : false;
|
|
424
437
|
message.profilePictureUrl = (_d = object.profilePictureUrl) !== null && _d !== void 0 ? _d : "";
|
|
438
|
+
message.nameColor = (object.nameColor !== undefined && object.nameColor !== null)
|
|
439
|
+
? colors_gen_1.Color3.fromPartial(object.nameColor)
|
|
440
|
+
: undefined;
|
|
425
441
|
return message;
|
|
426
442
|
}
|
|
427
443
|
FriendProfile.fromPartial = fromPartial;
|
|
428
444
|
})(FriendProfile || (exports.FriendProfile = FriendProfile = {}));
|
|
429
445
|
function createBaseBlockedUserProfile() {
|
|
430
|
-
return {
|
|
446
|
+
return {
|
|
447
|
+
address: "",
|
|
448
|
+
name: "",
|
|
449
|
+
hasClaimedName: false,
|
|
450
|
+
profilePictureUrl: "",
|
|
451
|
+
blockedAt: undefined,
|
|
452
|
+
nameColor: undefined,
|
|
453
|
+
};
|
|
431
454
|
}
|
|
432
455
|
var BlockedUserProfile;
|
|
433
456
|
(function (BlockedUserProfile) {
|
|
@@ -447,6 +470,9 @@ var BlockedUserProfile;
|
|
|
447
470
|
if (message.blockedAt !== undefined) {
|
|
448
471
|
writer.uint32(40).int64(message.blockedAt);
|
|
449
472
|
}
|
|
473
|
+
if (message.nameColor !== undefined) {
|
|
474
|
+
colors_gen_1.Color3.encode(message.nameColor, writer.uint32(50).fork()).ldelim();
|
|
475
|
+
}
|
|
450
476
|
return writer;
|
|
451
477
|
}
|
|
452
478
|
BlockedUserProfile.encode = encode;
|
|
@@ -487,6 +513,12 @@ var BlockedUserProfile;
|
|
|
487
513
|
}
|
|
488
514
|
message.blockedAt = longToNumber(reader.int64());
|
|
489
515
|
continue;
|
|
516
|
+
case 6:
|
|
517
|
+
if (tag !== 50) {
|
|
518
|
+
break;
|
|
519
|
+
}
|
|
520
|
+
message.nameColor = colors_gen_1.Color3.decode(reader, reader.uint32());
|
|
521
|
+
continue;
|
|
490
522
|
}
|
|
491
523
|
if ((tag & 7) === 4 || tag === 0) {
|
|
492
524
|
break;
|
|
@@ -503,6 +535,7 @@ var BlockedUserProfile;
|
|
|
503
535
|
hasClaimedName: isSet(object.hasClaimedName) ? Boolean(object.hasClaimedName) : false,
|
|
504
536
|
profilePictureUrl: isSet(object.profilePictureUrl) ? String(object.profilePictureUrl) : "",
|
|
505
537
|
blockedAt: isSet(object.blockedAt) ? Number(object.blockedAt) : undefined,
|
|
538
|
+
nameColor: isSet(object.nameColor) ? colors_gen_1.Color3.fromJSON(object.nameColor) : undefined,
|
|
506
539
|
};
|
|
507
540
|
}
|
|
508
541
|
BlockedUserProfile.fromJSON = fromJSON;
|
|
@@ -513,6 +546,8 @@ var BlockedUserProfile;
|
|
|
513
546
|
message.hasClaimedName !== undefined && (obj.hasClaimedName = message.hasClaimedName);
|
|
514
547
|
message.profilePictureUrl !== undefined && (obj.profilePictureUrl = message.profilePictureUrl);
|
|
515
548
|
message.blockedAt !== undefined && (obj.blockedAt = Math.round(message.blockedAt));
|
|
549
|
+
message.nameColor !== undefined &&
|
|
550
|
+
(obj.nameColor = message.nameColor ? colors_gen_1.Color3.toJSON(message.nameColor) : undefined);
|
|
516
551
|
return obj;
|
|
517
552
|
}
|
|
518
553
|
BlockedUserProfile.toJSON = toJSON;
|
|
@@ -528,6 +563,9 @@ var BlockedUserProfile;
|
|
|
528
563
|
message.hasClaimedName = (_c = object.hasClaimedName) !== null && _c !== void 0 ? _c : false;
|
|
529
564
|
message.profilePictureUrl = (_d = object.profilePictureUrl) !== null && _d !== void 0 ? _d : "";
|
|
530
565
|
message.blockedAt = (_e = object.blockedAt) !== null && _e !== void 0 ? _e : undefined;
|
|
566
|
+
message.nameColor = (object.nameColor !== undefined && object.nameColor !== null)
|
|
567
|
+
? colors_gen_1.Color3.fromPartial(object.nameColor)
|
|
568
|
+
: undefined;
|
|
531
569
|
return message;
|
|
532
570
|
}
|
|
533
571
|
BlockedUserProfile.fromPartial = fromPartial;
|