@dcl/protocol 1.0.0-4177217338.commit-c85f02c → 1.0.0-4316765690.commit-d0a21d7
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/kernel/apis/permissions.gen.d.ts +1 -0
- package/out-js/decentraland/kernel/apis/permissions.gen.js +6 -0
- package/out-js/decentraland/kernel/apis/permissions.gen.js.map +1 -1
- package/out-js/decentraland/renderer/kernel_services/mutual_friends_kernel.gen.d.ts +103 -0
- package/out-js/decentraland/renderer/kernel_services/mutual_friends_kernel.gen.js +122 -0
- package/out-js/decentraland/renderer/kernel_services/mutual_friends_kernel.gen.js.map +1 -0
- package/out-ts/decentraland/kernel/apis/permissions.gen.ts +6 -0
- package/out-ts/decentraland/renderer/kernel_services/mutual_friends_kernel.gen.ts +151 -0
- package/package.json +2 -2
- package/proto/decentraland/kernel/apis/permissions.proto +1 -0
- package/proto/decentraland/renderer/kernel_services/friends_kernel.proto +1 -1
- package/proto/decentraland/renderer/kernel_services/mutual_friends_kernel.proto +15 -0
- package/public/renderer-interface.proto +2 -1
|
@@ -14,6 +14,7 @@ var PermissionItem;
|
|
|
14
14
|
PermissionItem[PermissionItem["PI_USE_WEB3_API"] = 2] = "PI_USE_WEB3_API";
|
|
15
15
|
PermissionItem[PermissionItem["PI_USE_WEBSOCKET"] = 3] = "PI_USE_WEBSOCKET";
|
|
16
16
|
PermissionItem[PermissionItem["PI_USE_FETCH"] = 4] = "PI_USE_FETCH";
|
|
17
|
+
PermissionItem[PermissionItem["PI_ALLOW_MEDIA_HOSTNAMES"] = 5] = "PI_ALLOW_MEDIA_HOSTNAMES";
|
|
17
18
|
PermissionItem[PermissionItem["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
18
19
|
})(PermissionItem = exports.PermissionItem || (exports.PermissionItem = {}));
|
|
19
20
|
function permissionItemFromJSON(object) {
|
|
@@ -33,6 +34,9 @@ function permissionItemFromJSON(object) {
|
|
|
33
34
|
case 4:
|
|
34
35
|
case "PI_USE_FETCH":
|
|
35
36
|
return PermissionItem.PI_USE_FETCH;
|
|
37
|
+
case 5:
|
|
38
|
+
case "PI_ALLOW_MEDIA_HOSTNAMES":
|
|
39
|
+
return PermissionItem.PI_ALLOW_MEDIA_HOSTNAMES;
|
|
36
40
|
case -1:
|
|
37
41
|
case "UNRECOGNIZED":
|
|
38
42
|
default:
|
|
@@ -52,6 +56,8 @@ function permissionItemToJSON(object) {
|
|
|
52
56
|
return "PI_USE_WEBSOCKET";
|
|
53
57
|
case PermissionItem.PI_USE_FETCH:
|
|
54
58
|
return "PI_USE_FETCH";
|
|
59
|
+
case PermissionItem.PI_ALLOW_MEDIA_HOSTNAMES:
|
|
60
|
+
return "PI_ALLOW_MEDIA_HOSTNAMES";
|
|
55
61
|
case PermissionItem.UNRECOGNIZED:
|
|
56
62
|
default:
|
|
57
63
|
return "UNRECOGNIZED";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permissions.gen.js","sourceRoot":"","sources":["../../../../out-ts/decentraland/kernel/apis/permissions.gen.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,iEAAqC;AAExB,QAAA,eAAe,GAAG,0BAA0B,CAAC;AAE1D,IAAY,
|
|
1
|
+
{"version":3,"file":"permissions.gen.js","sourceRoot":"","sources":["../../../../out-ts/decentraland/kernel/apis/permissions.gen.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,iEAAqC;AAExB,QAAA,eAAe,GAAG,0BAA0B,CAAC;AAE1D,IAAY,cAQX;AARD,WAAY,cAAc;IACxB,mHAAwC,CAAA;IACxC,2GAAoC,CAAA;IACpC,yEAAmB,CAAA;IACnB,2EAAoB,CAAA;IACpB,mEAAgB,CAAA;IAChB,2FAA4B,CAAA;IAC5B,oEAAiB,CAAA;AACnB,CAAC,EARW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAQzB;AAED,SAAgB,sBAAsB,CAAC,MAAW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zD,aAAa,EAAE;YACb,IAAI,EAAE,eAAe;YACrB,WAAW,EAAE,4BAAoB;YACjC,aAAa,EAAE,KAAK;YACpB,YAAY,EAAE,0BAAkB;YAChC,cAAc,EAAE,KAAK;YACrB,OAAO,EAAE,EAAE;SACZ;QACD,yDAAyD;QACzD,kBAAkB,EAAE;YAClB,IAAI,EAAE,oBAAoB;YAC1B,WAAW,EAAE,gCAAwB;YACrC,aAAa,EAAE,KAAK;YACpB,YAAY,EAAE,iCAAyB;YACvC,cAAc,EAAE,KAAK;YACrB,OAAO,EAAE,EAAE;SACZ;KACF;CACO,CAAC;AAcX,SAAS,KAAK,CAAC,KAAU;IACvB,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;AAC/C,CAAC"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "decentraland.renderer.kernel_services";
|
|
3
|
+
export interface GetMutualFriendsResponse {
|
|
4
|
+
/** The addresses of the friends shared between the authenticated user and the specified user in the request */
|
|
5
|
+
friends: string[];
|
|
6
|
+
}
|
|
7
|
+
export interface GetMutualFriendsRequest {
|
|
8
|
+
userId: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const GetMutualFriendsResponse: {
|
|
11
|
+
encode(message: GetMutualFriendsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
12
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetMutualFriendsResponse;
|
|
13
|
+
fromJSON(object: any): GetMutualFriendsResponse;
|
|
14
|
+
toJSON(message: GetMutualFriendsResponse): unknown;
|
|
15
|
+
create<I extends {
|
|
16
|
+
friends?: string[] | undefined;
|
|
17
|
+
} & {
|
|
18
|
+
friends?: (string[] & string[] & { [K in Exclude<keyof I["friends"], keyof string[]>]: never; }) | undefined;
|
|
19
|
+
} & { [K_1 in Exclude<keyof I, "friends">]: never; }>(base?: I | undefined): GetMutualFriendsResponse;
|
|
20
|
+
fromPartial<I_1 extends {
|
|
21
|
+
friends?: string[] | undefined;
|
|
22
|
+
} & {
|
|
23
|
+
friends?: (string[] & string[] & { [K_2 in Exclude<keyof I_1["friends"], keyof string[]>]: never; }) | undefined;
|
|
24
|
+
} & { [K_3 in Exclude<keyof I_1, "friends">]: never; }>(object: I_1): GetMutualFriendsResponse;
|
|
25
|
+
};
|
|
26
|
+
export declare const GetMutualFriendsRequest: {
|
|
27
|
+
encode(message: GetMutualFriendsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
28
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetMutualFriendsRequest;
|
|
29
|
+
fromJSON(object: any): GetMutualFriendsRequest;
|
|
30
|
+
toJSON(message: GetMutualFriendsRequest): unknown;
|
|
31
|
+
create<I extends {
|
|
32
|
+
userId?: string | undefined;
|
|
33
|
+
} & {
|
|
34
|
+
userId?: string | undefined;
|
|
35
|
+
} & { [K in Exclude<keyof I, "userId">]: never; }>(base?: I | undefined): GetMutualFriendsRequest;
|
|
36
|
+
fromPartial<I_1 extends {
|
|
37
|
+
userId?: string | undefined;
|
|
38
|
+
} & {
|
|
39
|
+
userId?: string | undefined;
|
|
40
|
+
} & { [K_1 in Exclude<keyof I_1, "userId">]: never; }>(object: I_1): GetMutualFriendsRequest;
|
|
41
|
+
};
|
|
42
|
+
export type MutualFriendsKernelServiceDefinition = typeof MutualFriendsKernelServiceDefinition;
|
|
43
|
+
export declare const MutualFriendsKernelServiceDefinition: {
|
|
44
|
+
readonly name: "MutualFriendsKernelService";
|
|
45
|
+
readonly fullName: "decentraland.renderer.kernel_services.MutualFriendsKernelService";
|
|
46
|
+
readonly methods: {
|
|
47
|
+
readonly getMutualFriends: {
|
|
48
|
+
readonly name: "GetMutualFriends";
|
|
49
|
+
readonly requestType: {
|
|
50
|
+
encode(message: GetMutualFriendsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
51
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetMutualFriendsRequest;
|
|
52
|
+
fromJSON(object: any): GetMutualFriendsRequest;
|
|
53
|
+
toJSON(message: GetMutualFriendsRequest): unknown;
|
|
54
|
+
create<I extends {
|
|
55
|
+
userId?: string | undefined;
|
|
56
|
+
} & {
|
|
57
|
+
userId?: string | undefined;
|
|
58
|
+
} & { [K in Exclude<keyof I, "userId">]: never; }>(base?: I | undefined): GetMutualFriendsRequest;
|
|
59
|
+
fromPartial<I_1 extends {
|
|
60
|
+
userId?: string | undefined;
|
|
61
|
+
} & {
|
|
62
|
+
userId?: string | undefined;
|
|
63
|
+
} & { [K_1 in Exclude<keyof I_1, "userId">]: never; }>(object: I_1): GetMutualFriendsRequest;
|
|
64
|
+
};
|
|
65
|
+
readonly requestStream: false;
|
|
66
|
+
readonly responseType: {
|
|
67
|
+
encode(message: GetMutualFriendsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
68
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetMutualFriendsResponse;
|
|
69
|
+
fromJSON(object: any): GetMutualFriendsResponse;
|
|
70
|
+
toJSON(message: GetMutualFriendsResponse): unknown;
|
|
71
|
+
create<I_2 extends {
|
|
72
|
+
friends?: string[] | undefined;
|
|
73
|
+
} & {
|
|
74
|
+
friends?: (string[] & string[] & { [K in Exclude<keyof I["friends"], keyof string[]>]: never; }) | undefined;
|
|
75
|
+
} & { [K_1 in Exclude<keyof I, "friends">]: never; }>(base?: I_2 | undefined): GetMutualFriendsResponse;
|
|
76
|
+
fromPartial<I_3 extends {
|
|
77
|
+
friends?: string[] | undefined;
|
|
78
|
+
} & {
|
|
79
|
+
friends?: (string[] & string[] & { [K_2 in Exclude<keyof I_1["friends"], keyof string[]>]: never; }) | undefined;
|
|
80
|
+
} & { [K_3 in Exclude<keyof I_1, "friends">]: never; }>(object: I_3): GetMutualFriendsResponse;
|
|
81
|
+
};
|
|
82
|
+
readonly responseStream: false;
|
|
83
|
+
readonly options: {};
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
88
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {
|
|
89
|
+
$case: string;
|
|
90
|
+
} ? {
|
|
91
|
+
[K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
|
|
92
|
+
} & {
|
|
93
|
+
$case: T["$case"];
|
|
94
|
+
} : T extends {} ? {
|
|
95
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
96
|
+
} : Partial<T>;
|
|
97
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
98
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
99
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
100
|
+
} & {
|
|
101
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
102
|
+
};
|
|
103
|
+
export {};
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.MutualFriendsKernelServiceDefinition = exports.GetMutualFriendsRequest = exports.GetMutualFriendsResponse = exports.protobufPackage = void 0;
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
9
|
+
exports.protobufPackage = "decentraland.renderer.kernel_services";
|
|
10
|
+
function createBaseGetMutualFriendsResponse() {
|
|
11
|
+
return { friends: [] };
|
|
12
|
+
}
|
|
13
|
+
exports.GetMutualFriendsResponse = {
|
|
14
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
15
|
+
for (const v of message.friends) {
|
|
16
|
+
writer.uint32(10).string(v);
|
|
17
|
+
}
|
|
18
|
+
return writer;
|
|
19
|
+
},
|
|
20
|
+
decode(input, length) {
|
|
21
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
22
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
23
|
+
const message = createBaseGetMutualFriendsResponse();
|
|
24
|
+
while (reader.pos < end) {
|
|
25
|
+
const tag = reader.uint32();
|
|
26
|
+
switch (tag >>> 3) {
|
|
27
|
+
case 1:
|
|
28
|
+
message.friends.push(reader.string());
|
|
29
|
+
break;
|
|
30
|
+
default:
|
|
31
|
+
reader.skipType(tag & 7);
|
|
32
|
+
break;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return message;
|
|
36
|
+
},
|
|
37
|
+
fromJSON(object) {
|
|
38
|
+
return { friends: Array.isArray(object === null || object === void 0 ? void 0 : object.friends) ? object.friends.map((e) => String(e)) : [] };
|
|
39
|
+
},
|
|
40
|
+
toJSON(message) {
|
|
41
|
+
const obj = {};
|
|
42
|
+
if (message.friends) {
|
|
43
|
+
obj.friends = message.friends.map((e) => e);
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
obj.friends = [];
|
|
47
|
+
}
|
|
48
|
+
return obj;
|
|
49
|
+
},
|
|
50
|
+
create(base) {
|
|
51
|
+
return exports.GetMutualFriendsResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
52
|
+
},
|
|
53
|
+
fromPartial(object) {
|
|
54
|
+
var _a;
|
|
55
|
+
const message = createBaseGetMutualFriendsResponse();
|
|
56
|
+
message.friends = ((_a = object.friends) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
|
|
57
|
+
return message;
|
|
58
|
+
},
|
|
59
|
+
};
|
|
60
|
+
function createBaseGetMutualFriendsRequest() {
|
|
61
|
+
return { userId: "" };
|
|
62
|
+
}
|
|
63
|
+
exports.GetMutualFriendsRequest = {
|
|
64
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
65
|
+
if (message.userId !== "") {
|
|
66
|
+
writer.uint32(10).string(message.userId);
|
|
67
|
+
}
|
|
68
|
+
return writer;
|
|
69
|
+
},
|
|
70
|
+
decode(input, length) {
|
|
71
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
72
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
73
|
+
const message = createBaseGetMutualFriendsRequest();
|
|
74
|
+
while (reader.pos < end) {
|
|
75
|
+
const tag = reader.uint32();
|
|
76
|
+
switch (tag >>> 3) {
|
|
77
|
+
case 1:
|
|
78
|
+
message.userId = reader.string();
|
|
79
|
+
break;
|
|
80
|
+
default:
|
|
81
|
+
reader.skipType(tag & 7);
|
|
82
|
+
break;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
return message;
|
|
86
|
+
},
|
|
87
|
+
fromJSON(object) {
|
|
88
|
+
return { userId: isSet(object.userId) ? String(object.userId) : "" };
|
|
89
|
+
},
|
|
90
|
+
toJSON(message) {
|
|
91
|
+
const obj = {};
|
|
92
|
+
message.userId !== undefined && (obj.userId = message.userId);
|
|
93
|
+
return obj;
|
|
94
|
+
},
|
|
95
|
+
create(base) {
|
|
96
|
+
return exports.GetMutualFriendsRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
97
|
+
},
|
|
98
|
+
fromPartial(object) {
|
|
99
|
+
var _a;
|
|
100
|
+
const message = createBaseGetMutualFriendsRequest();
|
|
101
|
+
message.userId = (_a = object.userId) !== null && _a !== void 0 ? _a : "";
|
|
102
|
+
return message;
|
|
103
|
+
},
|
|
104
|
+
};
|
|
105
|
+
exports.MutualFriendsKernelServiceDefinition = {
|
|
106
|
+
name: "MutualFriendsKernelService",
|
|
107
|
+
fullName: "decentraland.renderer.kernel_services.MutualFriendsKernelService",
|
|
108
|
+
methods: {
|
|
109
|
+
getMutualFriends: {
|
|
110
|
+
name: "GetMutualFriends",
|
|
111
|
+
requestType: exports.GetMutualFriendsRequest,
|
|
112
|
+
requestStream: false,
|
|
113
|
+
responseType: exports.GetMutualFriendsResponse,
|
|
114
|
+
responseStream: false,
|
|
115
|
+
options: {},
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
};
|
|
119
|
+
function isSet(value) {
|
|
120
|
+
return value !== null && value !== undefined;
|
|
121
|
+
}
|
|
122
|
+
//# sourceMappingURL=mutual_friends_kernel.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mutual_friends_kernel.gen.js","sourceRoot":"","sources":["../../../../out-ts/decentraland/renderer/kernel_services/mutual_friends_kernel.gen.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,iEAAqC;AAExB,QAAA,eAAe,GAAG,uCAAuC,CAAC;AAWvE,SAAS,kCAAkC;IACzC,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;AACzB,CAAC;AAEY,QAAA,wBAAwB,GAAG;IACtC,MAAM,CAAC,OAAiC,EAAE,SAAqB,iBAAG,CAAC,MAAM,CAAC,MAAM,EAAE;QAChF,KAAK,MAAM,CAAC,IAAI,OAAO,CAAC,OAAO,EAAE;YAC/B,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAE,CAAC,CAAC;SAC9B;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,MAAM,CAAC,KAA8B,EAAE,MAAe;QACpD,MAAM,MAAM,GAAG,KAAK,YAAY,iBAAG,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,iBAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC3E,IAAI,GAAG,GAAG,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,GAAG,MAAM,CAAC;QAClE,MAAM,OAAO,GAAG,kCAAkC,EAAE,CAAC;QACrD,OAAO,MAAM,CAAC,GAAG,GAAG,GAAG,EAAE;YACvB,MAAM,GA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UNRECOGNIZED = -1,
|
|
13
14
|
}
|
|
14
15
|
|
|
@@ -29,6 +30,9 @@ export function permissionItemFromJSON(object: any): PermissionItem {
|
|
|
29
30
|
case 4:
|
|
30
31
|
case "PI_USE_FETCH":
|
|
31
32
|
return PermissionItem.PI_USE_FETCH;
|
|
33
|
+
case 5:
|
|
34
|
+
case "PI_ALLOW_MEDIA_HOSTNAMES":
|
|
35
|
+
return PermissionItem.PI_ALLOW_MEDIA_HOSTNAMES;
|
|
32
36
|
case -1:
|
|
33
37
|
case "UNRECOGNIZED":
|
|
34
38
|
default:
|
|
@@ -48,6 +52,8 @@ export function permissionItemToJSON(object: PermissionItem): string {
|
|
|
48
52
|
return "PI_USE_WEBSOCKET";
|
|
49
53
|
case PermissionItem.PI_USE_FETCH:
|
|
50
54
|
return "PI_USE_FETCH";
|
|
55
|
+
case PermissionItem.PI_ALLOW_MEDIA_HOSTNAMES:
|
|
56
|
+
return "PI_ALLOW_MEDIA_HOSTNAMES";
|
|
51
57
|
case PermissionItem.UNRECOGNIZED:
|
|
52
58
|
default:
|
|
53
59
|
return "UNRECOGNIZED";
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
|
+
|
|
4
|
+
export const protobufPackage = "decentraland.renderer.kernel_services";
|
|
5
|
+
|
|
6
|
+
export interface GetMutualFriendsResponse {
|
|
7
|
+
/** The addresses of the friends shared between the authenticated user and the specified user in the request */
|
|
8
|
+
friends: string[];
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface GetMutualFriendsRequest {
|
|
12
|
+
userId: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
function createBaseGetMutualFriendsResponse(): GetMutualFriendsResponse {
|
|
16
|
+
return { friends: [] };
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export const GetMutualFriendsResponse = {
|
|
20
|
+
encode(message: GetMutualFriendsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
21
|
+
for (const v of message.friends) {
|
|
22
|
+
writer.uint32(10).string(v!);
|
|
23
|
+
}
|
|
24
|
+
return writer;
|
|
25
|
+
},
|
|
26
|
+
|
|
27
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetMutualFriendsResponse {
|
|
28
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
29
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
30
|
+
const message = createBaseGetMutualFriendsResponse();
|
|
31
|
+
while (reader.pos < end) {
|
|
32
|
+
const tag = reader.uint32();
|
|
33
|
+
switch (tag >>> 3) {
|
|
34
|
+
case 1:
|
|
35
|
+
message.friends.push(reader.string());
|
|
36
|
+
break;
|
|
37
|
+
default:
|
|
38
|
+
reader.skipType(tag & 7);
|
|
39
|
+
break;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return message;
|
|
43
|
+
},
|
|
44
|
+
|
|
45
|
+
fromJSON(object: any): GetMutualFriendsResponse {
|
|
46
|
+
return { friends: Array.isArray(object?.friends) ? object.friends.map((e: any) => String(e)) : [] };
|
|
47
|
+
},
|
|
48
|
+
|
|
49
|
+
toJSON(message: GetMutualFriendsResponse): unknown {
|
|
50
|
+
const obj: any = {};
|
|
51
|
+
if (message.friends) {
|
|
52
|
+
obj.friends = message.friends.map((e) => e);
|
|
53
|
+
} else {
|
|
54
|
+
obj.friends = [];
|
|
55
|
+
}
|
|
56
|
+
return obj;
|
|
57
|
+
},
|
|
58
|
+
|
|
59
|
+
create<I extends Exact<DeepPartial<GetMutualFriendsResponse>, I>>(base?: I): GetMutualFriendsResponse {
|
|
60
|
+
return GetMutualFriendsResponse.fromPartial(base ?? {});
|
|
61
|
+
},
|
|
62
|
+
|
|
63
|
+
fromPartial<I extends Exact<DeepPartial<GetMutualFriendsResponse>, I>>(object: I): GetMutualFriendsResponse {
|
|
64
|
+
const message = createBaseGetMutualFriendsResponse();
|
|
65
|
+
message.friends = object.friends?.map((e) => e) || [];
|
|
66
|
+
return message;
|
|
67
|
+
},
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
function createBaseGetMutualFriendsRequest(): GetMutualFriendsRequest {
|
|
71
|
+
return { userId: "" };
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export const GetMutualFriendsRequest = {
|
|
75
|
+
encode(message: GetMutualFriendsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
76
|
+
if (message.userId !== "") {
|
|
77
|
+
writer.uint32(10).string(message.userId);
|
|
78
|
+
}
|
|
79
|
+
return writer;
|
|
80
|
+
},
|
|
81
|
+
|
|
82
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetMutualFriendsRequest {
|
|
83
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
84
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
85
|
+
const message = createBaseGetMutualFriendsRequest();
|
|
86
|
+
while (reader.pos < end) {
|
|
87
|
+
const tag = reader.uint32();
|
|
88
|
+
switch (tag >>> 3) {
|
|
89
|
+
case 1:
|
|
90
|
+
message.userId = reader.string();
|
|
91
|
+
break;
|
|
92
|
+
default:
|
|
93
|
+
reader.skipType(tag & 7);
|
|
94
|
+
break;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
return message;
|
|
98
|
+
},
|
|
99
|
+
|
|
100
|
+
fromJSON(object: any): GetMutualFriendsRequest {
|
|
101
|
+
return { userId: isSet(object.userId) ? String(object.userId) : "" };
|
|
102
|
+
},
|
|
103
|
+
|
|
104
|
+
toJSON(message: GetMutualFriendsRequest): unknown {
|
|
105
|
+
const obj: any = {};
|
|
106
|
+
message.userId !== undefined && (obj.userId = message.userId);
|
|
107
|
+
return obj;
|
|
108
|
+
},
|
|
109
|
+
|
|
110
|
+
create<I extends Exact<DeepPartial<GetMutualFriendsRequest>, I>>(base?: I): GetMutualFriendsRequest {
|
|
111
|
+
return GetMutualFriendsRequest.fromPartial(base ?? {});
|
|
112
|
+
},
|
|
113
|
+
|
|
114
|
+
fromPartial<I extends Exact<DeepPartial<GetMutualFriendsRequest>, I>>(object: I): GetMutualFriendsRequest {
|
|
115
|
+
const message = createBaseGetMutualFriendsRequest();
|
|
116
|
+
message.userId = object.userId ?? "";
|
|
117
|
+
return message;
|
|
118
|
+
},
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
export type MutualFriendsKernelServiceDefinition = typeof MutualFriendsKernelServiceDefinition;
|
|
122
|
+
export const MutualFriendsKernelServiceDefinition = {
|
|
123
|
+
name: "MutualFriendsKernelService",
|
|
124
|
+
fullName: "decentraland.renderer.kernel_services.MutualFriendsKernelService",
|
|
125
|
+
methods: {
|
|
126
|
+
getMutualFriends: {
|
|
127
|
+
name: "GetMutualFriends",
|
|
128
|
+
requestType: GetMutualFriendsRequest,
|
|
129
|
+
requestStream: false,
|
|
130
|
+
responseType: GetMutualFriendsResponse,
|
|
131
|
+
responseStream: false,
|
|
132
|
+
options: {},
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
} as const;
|
|
136
|
+
|
|
137
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
138
|
+
|
|
139
|
+
export type DeepPartial<T> = T extends Builtin ? T
|
|
140
|
+
: T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
141
|
+
: T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
|
|
142
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
143
|
+
: Partial<T>;
|
|
144
|
+
|
|
145
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
146
|
+
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
147
|
+
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
148
|
+
|
|
149
|
+
function isSet(value: any): boolean {
|
|
150
|
+
return value !== null && value !== undefined;
|
|
151
|
+
}
|
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-4316765690.commit-d0a21d7",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"out-js",
|
|
27
27
|
"public"
|
|
28
28
|
],
|
|
29
|
-
"commit": "
|
|
29
|
+
"commit": "d0a21d73e4d50e6d94f161269c021688ef719083"
|
|
30
30
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package decentraland.renderer.kernel_services;
|
|
4
|
+
|
|
5
|
+
message GetMutualFriendsResponse {
|
|
6
|
+
repeated string friends = 1; // The addresses of the friends shared between the authenticated user and the specified user in the request
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
message GetMutualFriendsRequest {
|
|
10
|
+
string user_id = 1;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
service MutualFriendsKernelService {
|
|
14
|
+
rpc GetMutualFriends(GetMutualFriendsRequest) returns (GetMutualFriendsResponse) {}
|
|
15
|
+
}
|
|
@@ -9,4 +9,5 @@ import public "decentraland/renderer/renderer_services/friend_request_renderer.p
|
|
|
9
9
|
import public "decentraland/renderer/kernel_services/emotes_kernel.proto";
|
|
10
10
|
import public "decentraland/renderer/kernel_services/analytics.proto";
|
|
11
11
|
import public "decentraland/renderer/kernel_services/friend_request_kernel.proto";
|
|
12
|
-
import public "decentraland/renderer/kernel_services/friends_kernel.proto";
|
|
12
|
+
import public "decentraland/renderer/kernel_services/friends_kernel.proto";
|
|
13
|
+
import public "decentraland/renderer/kernel_services/mutual_friends_kernel.proto";
|