@dcl/protocol 1.0.0-12598859345.commit-1ba2979 → 1.0.0-12815778152.commit-3614ead
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/v3/social_service_v3.gen.d.ts +479 -0
- package/out-js/decentraland/social_service/v3/social_service_v3.gen.js +2292 -0
- package/out-js/decentraland/social_service/v3/social_service_v3.gen.js.map +1 -0
- package/out-js/decentraland/social_service_v2/social_service.gen.d.ts +1 -0
- package/out-js/decentraland/social_service_v2/social_service.gen.js.map +1 -1
- package/out-js/social_service.gen.d.ts +1 -0
- package/out-js/social_service.gen.js +6 -0
- package/out-js/social_service.gen.js.map +1 -0
- package/out-ts/decentraland/social_service/v3/social_service_v3.gen.ts +2598 -0
- package/out-ts/decentraland/social_service_v2/social_service.gen.ts +1 -0
- package/out-ts/social_service.gen.ts +3 -0
- package/package.json +2 -2
- package/proto/decentraland/social_service/v1/social_service_v1.proto +163 -0
- package/proto/decentraland/social_service/v2/social_service_v2.proto +112 -0
- package/proto/decentraland/social_service/v3/social_service_v3.proto +159 -0
- package/proto/decentraland/social_service_v2/social_service.proto +1 -0
- package/public/social_service.proto +4 -0
|
@@ -0,0 +1,479 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
import { Empty } from "../../../google/protobuf/empty.gen";
|
|
3
|
+
export declare const protobufPackage = "decentraland.social_service.v3";
|
|
4
|
+
export declare enum ConnectivityStatus {
|
|
5
|
+
ONLINE = 0,
|
|
6
|
+
OFFLINE = 1,
|
|
7
|
+
AWAY = 2,
|
|
8
|
+
UNRECOGNIZED = -1
|
|
9
|
+
}
|
|
10
|
+
export declare function connectivityStatusFromJSON(object: any): ConnectivityStatus;
|
|
11
|
+
export declare function connectivityStatusToJSON(object: ConnectivityStatus): string;
|
|
12
|
+
export declare enum FriendshipStatus {
|
|
13
|
+
REQUEST_SENT = 0,
|
|
14
|
+
REQUEST_RECEIVED = 1,
|
|
15
|
+
CANCELED = 2,
|
|
16
|
+
ACCEPTED = 3,
|
|
17
|
+
REJECTED = 4,
|
|
18
|
+
DELETED = 5,
|
|
19
|
+
BLOCKED = 6,
|
|
20
|
+
UNRECOGNIZED = -1
|
|
21
|
+
}
|
|
22
|
+
export declare function friendshipStatusFromJSON(object: any): FriendshipStatus;
|
|
23
|
+
export declare function friendshipStatusToJSON(object: FriendshipStatus): string;
|
|
24
|
+
/** Errors */
|
|
25
|
+
export interface InvalidFriendshipAction {
|
|
26
|
+
}
|
|
27
|
+
export interface InternalServerError {
|
|
28
|
+
}
|
|
29
|
+
/** Types */
|
|
30
|
+
export interface User {
|
|
31
|
+
address: string;
|
|
32
|
+
}
|
|
33
|
+
export interface Pagination {
|
|
34
|
+
limit: number;
|
|
35
|
+
offset: number;
|
|
36
|
+
}
|
|
37
|
+
export interface FriendshipRequestResponse {
|
|
38
|
+
user: User | undefined;
|
|
39
|
+
createdAt: number;
|
|
40
|
+
message?: string | undefined;
|
|
41
|
+
}
|
|
42
|
+
export interface FriendshipRequests {
|
|
43
|
+
requests: FriendshipRequestResponse[];
|
|
44
|
+
}
|
|
45
|
+
export interface GetFriendsPayload {
|
|
46
|
+
pagination?: Pagination | undefined;
|
|
47
|
+
status?: ConnectivityStatus | undefined;
|
|
48
|
+
}
|
|
49
|
+
export interface GetFriendshipRequestsPayload {
|
|
50
|
+
pagination?: Pagination | undefined;
|
|
51
|
+
}
|
|
52
|
+
export interface UpsertFriendshipPayload {
|
|
53
|
+
action?: {
|
|
54
|
+
$case: "request";
|
|
55
|
+
request: UpsertFriendshipPayload_RequestPayload;
|
|
56
|
+
} | {
|
|
57
|
+
$case: "accept";
|
|
58
|
+
accept: UpsertFriendshipPayload_AcceptPayload;
|
|
59
|
+
} | {
|
|
60
|
+
$case: "reject";
|
|
61
|
+
reject: UpsertFriendshipPayload_RejectPayload;
|
|
62
|
+
} | {
|
|
63
|
+
$case: "delete";
|
|
64
|
+
delete: UpsertFriendshipPayload_DeletePayload;
|
|
65
|
+
} | {
|
|
66
|
+
$case: "cancel";
|
|
67
|
+
cancel: UpsertFriendshipPayload_CancelPayload;
|
|
68
|
+
} | undefined;
|
|
69
|
+
}
|
|
70
|
+
export interface UpsertFriendshipPayload_RequestPayload {
|
|
71
|
+
user: User | undefined;
|
|
72
|
+
message?: string | undefined;
|
|
73
|
+
}
|
|
74
|
+
export interface UpsertFriendshipPayload_AcceptPayload {
|
|
75
|
+
user: User | undefined;
|
|
76
|
+
}
|
|
77
|
+
export interface UpsertFriendshipPayload_RejectPayload {
|
|
78
|
+
user: User | undefined;
|
|
79
|
+
}
|
|
80
|
+
export interface UpsertFriendshipPayload_DeletePayload {
|
|
81
|
+
user: User | undefined;
|
|
82
|
+
}
|
|
83
|
+
export interface UpsertFriendshipPayload_CancelPayload {
|
|
84
|
+
user: User | undefined;
|
|
85
|
+
}
|
|
86
|
+
export interface GetMutualFriendsPayload {
|
|
87
|
+
user: User | undefined;
|
|
88
|
+
pagination?: Pagination | undefined;
|
|
89
|
+
}
|
|
90
|
+
export interface PaginatedResponse {
|
|
91
|
+
total: number;
|
|
92
|
+
page: number;
|
|
93
|
+
}
|
|
94
|
+
export interface PaginatedUsersResponse {
|
|
95
|
+
users: User[];
|
|
96
|
+
paginationData: PaginatedResponse | undefined;
|
|
97
|
+
}
|
|
98
|
+
export interface PaginatedFriendshipRequestsResponse {
|
|
99
|
+
response?: {
|
|
100
|
+
$case: "requests";
|
|
101
|
+
requests: FriendshipRequests;
|
|
102
|
+
} | {
|
|
103
|
+
$case: "internalServerError";
|
|
104
|
+
internalServerError: InternalServerError;
|
|
105
|
+
} | undefined;
|
|
106
|
+
paginationData?: PaginatedResponse | undefined;
|
|
107
|
+
}
|
|
108
|
+
export interface UpsertFriendshipResponse {
|
|
109
|
+
response?: {
|
|
110
|
+
$case: "accepted";
|
|
111
|
+
accepted: UpsertFriendshipResponse_Accepted;
|
|
112
|
+
} | {
|
|
113
|
+
$case: "invalidFriendshipAction";
|
|
114
|
+
invalidFriendshipAction: InvalidFriendshipAction;
|
|
115
|
+
} | {
|
|
116
|
+
$case: "internalServerError";
|
|
117
|
+
internalServerError: InternalServerError;
|
|
118
|
+
} | undefined;
|
|
119
|
+
}
|
|
120
|
+
export interface UpsertFriendshipResponse_Accepted {
|
|
121
|
+
id: string;
|
|
122
|
+
createdAt: number;
|
|
123
|
+
}
|
|
124
|
+
export interface FriendshipUpdate {
|
|
125
|
+
update?: {
|
|
126
|
+
$case: "request";
|
|
127
|
+
request: FriendshipRequestResponse;
|
|
128
|
+
} | {
|
|
129
|
+
$case: "accept";
|
|
130
|
+
accept: FriendshipUpdate_AcceptResponse;
|
|
131
|
+
} | {
|
|
132
|
+
$case: "reject";
|
|
133
|
+
reject: FriendshipUpdate_RejectResponse;
|
|
134
|
+
} | {
|
|
135
|
+
$case: "delete";
|
|
136
|
+
delete: FriendshipUpdate_DeleteResponse;
|
|
137
|
+
} | {
|
|
138
|
+
$case: "cancel";
|
|
139
|
+
cancel: FriendshipUpdate_CancelResponse;
|
|
140
|
+
} | undefined;
|
|
141
|
+
}
|
|
142
|
+
export interface FriendshipUpdate_AcceptResponse {
|
|
143
|
+
user: User | undefined;
|
|
144
|
+
}
|
|
145
|
+
export interface FriendshipUpdate_RejectResponse {
|
|
146
|
+
user: User | undefined;
|
|
147
|
+
}
|
|
148
|
+
export interface FriendshipUpdate_DeleteResponse {
|
|
149
|
+
user: User | undefined;
|
|
150
|
+
}
|
|
151
|
+
export interface FriendshipUpdate_CancelResponse {
|
|
152
|
+
user: User | undefined;
|
|
153
|
+
}
|
|
154
|
+
export interface GetFriendshipStatusPayload {
|
|
155
|
+
user: User | undefined;
|
|
156
|
+
}
|
|
157
|
+
export interface GetFriendshipStatusResponse {
|
|
158
|
+
response?: {
|
|
159
|
+
$case: "accepted";
|
|
160
|
+
accepted: GetFriendshipStatusResponse_Ok;
|
|
161
|
+
} | {
|
|
162
|
+
$case: "internalServerError";
|
|
163
|
+
internalServerError: InternalServerError;
|
|
164
|
+
} | undefined;
|
|
165
|
+
}
|
|
166
|
+
export interface GetFriendshipStatusResponse_Ok {
|
|
167
|
+
status: FriendshipStatus;
|
|
168
|
+
message?: string | undefined;
|
|
169
|
+
}
|
|
170
|
+
export declare namespace InvalidFriendshipAction {
|
|
171
|
+
function encode(_: InvalidFriendshipAction, writer?: _m0.Writer): _m0.Writer;
|
|
172
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): InvalidFriendshipAction;
|
|
173
|
+
function fromJSON(_: any): InvalidFriendshipAction;
|
|
174
|
+
function toJSON(_: InvalidFriendshipAction): unknown;
|
|
175
|
+
function create<I extends Exact<DeepPartial<InvalidFriendshipAction>, I>>(base?: I): InvalidFriendshipAction;
|
|
176
|
+
function fromPartial<I extends Exact<DeepPartial<InvalidFriendshipAction>, I>>(_: I): InvalidFriendshipAction;
|
|
177
|
+
}
|
|
178
|
+
export declare namespace InternalServerError {
|
|
179
|
+
function encode(_: InternalServerError, writer?: _m0.Writer): _m0.Writer;
|
|
180
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): InternalServerError;
|
|
181
|
+
function fromJSON(_: any): InternalServerError;
|
|
182
|
+
function toJSON(_: InternalServerError): unknown;
|
|
183
|
+
function create<I extends Exact<DeepPartial<InternalServerError>, I>>(base?: I): InternalServerError;
|
|
184
|
+
function fromPartial<I extends Exact<DeepPartial<InternalServerError>, I>>(_: I): InternalServerError;
|
|
185
|
+
}
|
|
186
|
+
export declare namespace User {
|
|
187
|
+
function encode(message: User, writer?: _m0.Writer): _m0.Writer;
|
|
188
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): User;
|
|
189
|
+
function fromJSON(object: any): User;
|
|
190
|
+
function toJSON(message: User): unknown;
|
|
191
|
+
function create<I extends Exact<DeepPartial<User>, I>>(base?: I): User;
|
|
192
|
+
function fromPartial<I extends Exact<DeepPartial<User>, I>>(object: I): User;
|
|
193
|
+
}
|
|
194
|
+
export declare namespace Pagination {
|
|
195
|
+
function encode(message: Pagination, writer?: _m0.Writer): _m0.Writer;
|
|
196
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): Pagination;
|
|
197
|
+
function fromJSON(object: any): Pagination;
|
|
198
|
+
function toJSON(message: Pagination): unknown;
|
|
199
|
+
function create<I extends Exact<DeepPartial<Pagination>, I>>(base?: I): Pagination;
|
|
200
|
+
function fromPartial<I extends Exact<DeepPartial<Pagination>, I>>(object: I): Pagination;
|
|
201
|
+
}
|
|
202
|
+
export declare namespace FriendshipRequestResponse {
|
|
203
|
+
function encode(message: FriendshipRequestResponse, writer?: _m0.Writer): _m0.Writer;
|
|
204
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): FriendshipRequestResponse;
|
|
205
|
+
function fromJSON(object: any): FriendshipRequestResponse;
|
|
206
|
+
function toJSON(message: FriendshipRequestResponse): unknown;
|
|
207
|
+
function create<I extends Exact<DeepPartial<FriendshipRequestResponse>, I>>(base?: I): FriendshipRequestResponse;
|
|
208
|
+
function fromPartial<I extends Exact<DeepPartial<FriendshipRequestResponse>, I>>(object: I): FriendshipRequestResponse;
|
|
209
|
+
}
|
|
210
|
+
export declare namespace FriendshipRequests {
|
|
211
|
+
function encode(message: FriendshipRequests, writer?: _m0.Writer): _m0.Writer;
|
|
212
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): FriendshipRequests;
|
|
213
|
+
function fromJSON(object: any): FriendshipRequests;
|
|
214
|
+
function toJSON(message: FriendshipRequests): unknown;
|
|
215
|
+
function create<I extends Exact<DeepPartial<FriendshipRequests>, I>>(base?: I): FriendshipRequests;
|
|
216
|
+
function fromPartial<I extends Exact<DeepPartial<FriendshipRequests>, I>>(object: I): FriendshipRequests;
|
|
217
|
+
}
|
|
218
|
+
export declare namespace GetFriendsPayload {
|
|
219
|
+
function encode(message: GetFriendsPayload, writer?: _m0.Writer): _m0.Writer;
|
|
220
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): GetFriendsPayload;
|
|
221
|
+
function fromJSON(object: any): GetFriendsPayload;
|
|
222
|
+
function toJSON(message: GetFriendsPayload): unknown;
|
|
223
|
+
function create<I extends Exact<DeepPartial<GetFriendsPayload>, I>>(base?: I): GetFriendsPayload;
|
|
224
|
+
function fromPartial<I extends Exact<DeepPartial<GetFriendsPayload>, I>>(object: I): GetFriendsPayload;
|
|
225
|
+
}
|
|
226
|
+
export declare namespace GetFriendshipRequestsPayload {
|
|
227
|
+
function encode(message: GetFriendshipRequestsPayload, writer?: _m0.Writer): _m0.Writer;
|
|
228
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): GetFriendshipRequestsPayload;
|
|
229
|
+
function fromJSON(object: any): GetFriendshipRequestsPayload;
|
|
230
|
+
function toJSON(message: GetFriendshipRequestsPayload): unknown;
|
|
231
|
+
function create<I extends Exact<DeepPartial<GetFriendshipRequestsPayload>, I>>(base?: I): GetFriendshipRequestsPayload;
|
|
232
|
+
function fromPartial<I extends Exact<DeepPartial<GetFriendshipRequestsPayload>, I>>(object: I): GetFriendshipRequestsPayload;
|
|
233
|
+
}
|
|
234
|
+
export declare namespace UpsertFriendshipPayload {
|
|
235
|
+
function encode(message: UpsertFriendshipPayload, writer?: _m0.Writer): _m0.Writer;
|
|
236
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): UpsertFriendshipPayload;
|
|
237
|
+
function fromJSON(object: any): UpsertFriendshipPayload;
|
|
238
|
+
function toJSON(message: UpsertFriendshipPayload): unknown;
|
|
239
|
+
function create<I extends Exact<DeepPartial<UpsertFriendshipPayload>, I>>(base?: I): UpsertFriendshipPayload;
|
|
240
|
+
function fromPartial<I extends Exact<DeepPartial<UpsertFriendshipPayload>, I>>(object: I): UpsertFriendshipPayload;
|
|
241
|
+
}
|
|
242
|
+
export declare namespace UpsertFriendshipPayload_RequestPayload {
|
|
243
|
+
function encode(message: UpsertFriendshipPayload_RequestPayload, writer?: _m0.Writer): _m0.Writer;
|
|
244
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): UpsertFriendshipPayload_RequestPayload;
|
|
245
|
+
function fromJSON(object: any): UpsertFriendshipPayload_RequestPayload;
|
|
246
|
+
function toJSON(message: UpsertFriendshipPayload_RequestPayload): unknown;
|
|
247
|
+
function create<I extends Exact<DeepPartial<UpsertFriendshipPayload_RequestPayload>, I>>(base?: I): UpsertFriendshipPayload_RequestPayload;
|
|
248
|
+
function fromPartial<I extends Exact<DeepPartial<UpsertFriendshipPayload_RequestPayload>, I>>(object: I): UpsertFriendshipPayload_RequestPayload;
|
|
249
|
+
}
|
|
250
|
+
export declare namespace UpsertFriendshipPayload_AcceptPayload {
|
|
251
|
+
function encode(message: UpsertFriendshipPayload_AcceptPayload, writer?: _m0.Writer): _m0.Writer;
|
|
252
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): UpsertFriendshipPayload_AcceptPayload;
|
|
253
|
+
function fromJSON(object: any): UpsertFriendshipPayload_AcceptPayload;
|
|
254
|
+
function toJSON(message: UpsertFriendshipPayload_AcceptPayload): unknown;
|
|
255
|
+
function create<I extends Exact<DeepPartial<UpsertFriendshipPayload_AcceptPayload>, I>>(base?: I): UpsertFriendshipPayload_AcceptPayload;
|
|
256
|
+
function fromPartial<I extends Exact<DeepPartial<UpsertFriendshipPayload_AcceptPayload>, I>>(object: I): UpsertFriendshipPayload_AcceptPayload;
|
|
257
|
+
}
|
|
258
|
+
export declare namespace UpsertFriendshipPayload_RejectPayload {
|
|
259
|
+
function encode(message: UpsertFriendshipPayload_RejectPayload, writer?: _m0.Writer): _m0.Writer;
|
|
260
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): UpsertFriendshipPayload_RejectPayload;
|
|
261
|
+
function fromJSON(object: any): UpsertFriendshipPayload_RejectPayload;
|
|
262
|
+
function toJSON(message: UpsertFriendshipPayload_RejectPayload): unknown;
|
|
263
|
+
function create<I extends Exact<DeepPartial<UpsertFriendshipPayload_RejectPayload>, I>>(base?: I): UpsertFriendshipPayload_RejectPayload;
|
|
264
|
+
function fromPartial<I extends Exact<DeepPartial<UpsertFriendshipPayload_RejectPayload>, I>>(object: I): UpsertFriendshipPayload_RejectPayload;
|
|
265
|
+
}
|
|
266
|
+
export declare namespace UpsertFriendshipPayload_DeletePayload {
|
|
267
|
+
function encode(message: UpsertFriendshipPayload_DeletePayload, writer?: _m0.Writer): _m0.Writer;
|
|
268
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): UpsertFriendshipPayload_DeletePayload;
|
|
269
|
+
function fromJSON(object: any): UpsertFriendshipPayload_DeletePayload;
|
|
270
|
+
function toJSON(message: UpsertFriendshipPayload_DeletePayload): unknown;
|
|
271
|
+
function create<I extends Exact<DeepPartial<UpsertFriendshipPayload_DeletePayload>, I>>(base?: I): UpsertFriendshipPayload_DeletePayload;
|
|
272
|
+
function fromPartial<I extends Exact<DeepPartial<UpsertFriendshipPayload_DeletePayload>, I>>(object: I): UpsertFriendshipPayload_DeletePayload;
|
|
273
|
+
}
|
|
274
|
+
export declare namespace UpsertFriendshipPayload_CancelPayload {
|
|
275
|
+
function encode(message: UpsertFriendshipPayload_CancelPayload, writer?: _m0.Writer): _m0.Writer;
|
|
276
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): UpsertFriendshipPayload_CancelPayload;
|
|
277
|
+
function fromJSON(object: any): UpsertFriendshipPayload_CancelPayload;
|
|
278
|
+
function toJSON(message: UpsertFriendshipPayload_CancelPayload): unknown;
|
|
279
|
+
function create<I extends Exact<DeepPartial<UpsertFriendshipPayload_CancelPayload>, I>>(base?: I): UpsertFriendshipPayload_CancelPayload;
|
|
280
|
+
function fromPartial<I extends Exact<DeepPartial<UpsertFriendshipPayload_CancelPayload>, I>>(object: I): UpsertFriendshipPayload_CancelPayload;
|
|
281
|
+
}
|
|
282
|
+
export declare namespace GetMutualFriendsPayload {
|
|
283
|
+
function encode(message: GetMutualFriendsPayload, writer?: _m0.Writer): _m0.Writer;
|
|
284
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): GetMutualFriendsPayload;
|
|
285
|
+
function fromJSON(object: any): GetMutualFriendsPayload;
|
|
286
|
+
function toJSON(message: GetMutualFriendsPayload): unknown;
|
|
287
|
+
function create<I extends Exact<DeepPartial<GetMutualFriendsPayload>, I>>(base?: I): GetMutualFriendsPayload;
|
|
288
|
+
function fromPartial<I extends Exact<DeepPartial<GetMutualFriendsPayload>, I>>(object: I): GetMutualFriendsPayload;
|
|
289
|
+
}
|
|
290
|
+
export declare namespace PaginatedResponse {
|
|
291
|
+
function encode(message: PaginatedResponse, writer?: _m0.Writer): _m0.Writer;
|
|
292
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): PaginatedResponse;
|
|
293
|
+
function fromJSON(object: any): PaginatedResponse;
|
|
294
|
+
function toJSON(message: PaginatedResponse): unknown;
|
|
295
|
+
function create<I extends Exact<DeepPartial<PaginatedResponse>, I>>(base?: I): PaginatedResponse;
|
|
296
|
+
function fromPartial<I extends Exact<DeepPartial<PaginatedResponse>, I>>(object: I): PaginatedResponse;
|
|
297
|
+
}
|
|
298
|
+
export declare namespace PaginatedUsersResponse {
|
|
299
|
+
function encode(message: PaginatedUsersResponse, writer?: _m0.Writer): _m0.Writer;
|
|
300
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): PaginatedUsersResponse;
|
|
301
|
+
function fromJSON(object: any): PaginatedUsersResponse;
|
|
302
|
+
function toJSON(message: PaginatedUsersResponse): unknown;
|
|
303
|
+
function create<I extends Exact<DeepPartial<PaginatedUsersResponse>, I>>(base?: I): PaginatedUsersResponse;
|
|
304
|
+
function fromPartial<I extends Exact<DeepPartial<PaginatedUsersResponse>, I>>(object: I): PaginatedUsersResponse;
|
|
305
|
+
}
|
|
306
|
+
export declare namespace PaginatedFriendshipRequestsResponse {
|
|
307
|
+
function encode(message: PaginatedFriendshipRequestsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
308
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): PaginatedFriendshipRequestsResponse;
|
|
309
|
+
function fromJSON(object: any): PaginatedFriendshipRequestsResponse;
|
|
310
|
+
function toJSON(message: PaginatedFriendshipRequestsResponse): unknown;
|
|
311
|
+
function create<I extends Exact<DeepPartial<PaginatedFriendshipRequestsResponse>, I>>(base?: I): PaginatedFriendshipRequestsResponse;
|
|
312
|
+
function fromPartial<I extends Exact<DeepPartial<PaginatedFriendshipRequestsResponse>, I>>(object: I): PaginatedFriendshipRequestsResponse;
|
|
313
|
+
}
|
|
314
|
+
export declare namespace UpsertFriendshipResponse {
|
|
315
|
+
function encode(message: UpsertFriendshipResponse, writer?: _m0.Writer): _m0.Writer;
|
|
316
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): UpsertFriendshipResponse;
|
|
317
|
+
function fromJSON(object: any): UpsertFriendshipResponse;
|
|
318
|
+
function toJSON(message: UpsertFriendshipResponse): unknown;
|
|
319
|
+
function create<I extends Exact<DeepPartial<UpsertFriendshipResponse>, I>>(base?: I): UpsertFriendshipResponse;
|
|
320
|
+
function fromPartial<I extends Exact<DeepPartial<UpsertFriendshipResponse>, I>>(object: I): UpsertFriendshipResponse;
|
|
321
|
+
}
|
|
322
|
+
export declare namespace UpsertFriendshipResponse_Accepted {
|
|
323
|
+
function encode(message: UpsertFriendshipResponse_Accepted, writer?: _m0.Writer): _m0.Writer;
|
|
324
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): UpsertFriendshipResponse_Accepted;
|
|
325
|
+
function fromJSON(object: any): UpsertFriendshipResponse_Accepted;
|
|
326
|
+
function toJSON(message: UpsertFriendshipResponse_Accepted): unknown;
|
|
327
|
+
function create<I extends Exact<DeepPartial<UpsertFriendshipResponse_Accepted>, I>>(base?: I): UpsertFriendshipResponse_Accepted;
|
|
328
|
+
function fromPartial<I extends Exact<DeepPartial<UpsertFriendshipResponse_Accepted>, I>>(object: I): UpsertFriendshipResponse_Accepted;
|
|
329
|
+
}
|
|
330
|
+
export declare namespace FriendshipUpdate {
|
|
331
|
+
function encode(message: FriendshipUpdate, writer?: _m0.Writer): _m0.Writer;
|
|
332
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): FriendshipUpdate;
|
|
333
|
+
function fromJSON(object: any): FriendshipUpdate;
|
|
334
|
+
function toJSON(message: FriendshipUpdate): unknown;
|
|
335
|
+
function create<I extends Exact<DeepPartial<FriendshipUpdate>, I>>(base?: I): FriendshipUpdate;
|
|
336
|
+
function fromPartial<I extends Exact<DeepPartial<FriendshipUpdate>, I>>(object: I): FriendshipUpdate;
|
|
337
|
+
}
|
|
338
|
+
export declare namespace FriendshipUpdate_AcceptResponse {
|
|
339
|
+
function encode(message: FriendshipUpdate_AcceptResponse, writer?: _m0.Writer): _m0.Writer;
|
|
340
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): FriendshipUpdate_AcceptResponse;
|
|
341
|
+
function fromJSON(object: any): FriendshipUpdate_AcceptResponse;
|
|
342
|
+
function toJSON(message: FriendshipUpdate_AcceptResponse): unknown;
|
|
343
|
+
function create<I extends Exact<DeepPartial<FriendshipUpdate_AcceptResponse>, I>>(base?: I): FriendshipUpdate_AcceptResponse;
|
|
344
|
+
function fromPartial<I extends Exact<DeepPartial<FriendshipUpdate_AcceptResponse>, I>>(object: I): FriendshipUpdate_AcceptResponse;
|
|
345
|
+
}
|
|
346
|
+
export declare namespace FriendshipUpdate_RejectResponse {
|
|
347
|
+
function encode(message: FriendshipUpdate_RejectResponse, writer?: _m0.Writer): _m0.Writer;
|
|
348
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): FriendshipUpdate_RejectResponse;
|
|
349
|
+
function fromJSON(object: any): FriendshipUpdate_RejectResponse;
|
|
350
|
+
function toJSON(message: FriendshipUpdate_RejectResponse): unknown;
|
|
351
|
+
function create<I extends Exact<DeepPartial<FriendshipUpdate_RejectResponse>, I>>(base?: I): FriendshipUpdate_RejectResponse;
|
|
352
|
+
function fromPartial<I extends Exact<DeepPartial<FriendshipUpdate_RejectResponse>, I>>(object: I): FriendshipUpdate_RejectResponse;
|
|
353
|
+
}
|
|
354
|
+
export declare namespace FriendshipUpdate_DeleteResponse {
|
|
355
|
+
function encode(message: FriendshipUpdate_DeleteResponse, writer?: _m0.Writer): _m0.Writer;
|
|
356
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): FriendshipUpdate_DeleteResponse;
|
|
357
|
+
function fromJSON(object: any): FriendshipUpdate_DeleteResponse;
|
|
358
|
+
function toJSON(message: FriendshipUpdate_DeleteResponse): unknown;
|
|
359
|
+
function create<I extends Exact<DeepPartial<FriendshipUpdate_DeleteResponse>, I>>(base?: I): FriendshipUpdate_DeleteResponse;
|
|
360
|
+
function fromPartial<I extends Exact<DeepPartial<FriendshipUpdate_DeleteResponse>, I>>(object: I): FriendshipUpdate_DeleteResponse;
|
|
361
|
+
}
|
|
362
|
+
export declare namespace FriendshipUpdate_CancelResponse {
|
|
363
|
+
function encode(message: FriendshipUpdate_CancelResponse, writer?: _m0.Writer): _m0.Writer;
|
|
364
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): FriendshipUpdate_CancelResponse;
|
|
365
|
+
function fromJSON(object: any): FriendshipUpdate_CancelResponse;
|
|
366
|
+
function toJSON(message: FriendshipUpdate_CancelResponse): unknown;
|
|
367
|
+
function create<I extends Exact<DeepPartial<FriendshipUpdate_CancelResponse>, I>>(base?: I): FriendshipUpdate_CancelResponse;
|
|
368
|
+
function fromPartial<I extends Exact<DeepPartial<FriendshipUpdate_CancelResponse>, I>>(object: I): FriendshipUpdate_CancelResponse;
|
|
369
|
+
}
|
|
370
|
+
export declare namespace GetFriendshipStatusPayload {
|
|
371
|
+
function encode(message: GetFriendshipStatusPayload, writer?: _m0.Writer): _m0.Writer;
|
|
372
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): GetFriendshipStatusPayload;
|
|
373
|
+
function fromJSON(object: any): GetFriendshipStatusPayload;
|
|
374
|
+
function toJSON(message: GetFriendshipStatusPayload): unknown;
|
|
375
|
+
function create<I extends Exact<DeepPartial<GetFriendshipStatusPayload>, I>>(base?: I): GetFriendshipStatusPayload;
|
|
376
|
+
function fromPartial<I extends Exact<DeepPartial<GetFriendshipStatusPayload>, I>>(object: I): GetFriendshipStatusPayload;
|
|
377
|
+
}
|
|
378
|
+
export declare namespace GetFriendshipStatusResponse {
|
|
379
|
+
function encode(message: GetFriendshipStatusResponse, writer?: _m0.Writer): _m0.Writer;
|
|
380
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): GetFriendshipStatusResponse;
|
|
381
|
+
function fromJSON(object: any): GetFriendshipStatusResponse;
|
|
382
|
+
function toJSON(message: GetFriendshipStatusResponse): unknown;
|
|
383
|
+
function create<I extends Exact<DeepPartial<GetFriendshipStatusResponse>, I>>(base?: I): GetFriendshipStatusResponse;
|
|
384
|
+
function fromPartial<I extends Exact<DeepPartial<GetFriendshipStatusResponse>, I>>(object: I): GetFriendshipStatusResponse;
|
|
385
|
+
}
|
|
386
|
+
export declare namespace GetFriendshipStatusResponse_Ok {
|
|
387
|
+
function encode(message: GetFriendshipStatusResponse_Ok, writer?: _m0.Writer): _m0.Writer;
|
|
388
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): GetFriendshipStatusResponse_Ok;
|
|
389
|
+
function fromJSON(object: any): GetFriendshipStatusResponse_Ok;
|
|
390
|
+
function toJSON(message: GetFriendshipStatusResponse_Ok): unknown;
|
|
391
|
+
function create<I extends Exact<DeepPartial<GetFriendshipStatusResponse_Ok>, I>>(base?: I): GetFriendshipStatusResponse_Ok;
|
|
392
|
+
function fromPartial<I extends Exact<DeepPartial<GetFriendshipStatusResponse_Ok>, I>>(object: I): GetFriendshipStatusResponse_Ok;
|
|
393
|
+
}
|
|
394
|
+
export type SocialServiceDefinition = typeof SocialServiceDefinition;
|
|
395
|
+
export declare const SocialServiceDefinition: {
|
|
396
|
+
readonly name: "SocialService";
|
|
397
|
+
readonly fullName: "decentraland.social_service.v3.SocialService";
|
|
398
|
+
readonly methods: {
|
|
399
|
+
/** Get the list of friends for the authenticated user */
|
|
400
|
+
readonly getFriends: {
|
|
401
|
+
readonly name: "GetFriends";
|
|
402
|
+
readonly requestType: typeof GetFriendsPayload;
|
|
403
|
+
readonly requestStream: false;
|
|
404
|
+
readonly responseType: typeof PaginatedUsersResponse;
|
|
405
|
+
readonly responseStream: false;
|
|
406
|
+
readonly options: {};
|
|
407
|
+
};
|
|
408
|
+
/** Get the list of mutual friends between the authenticated user and the one in the parameter */
|
|
409
|
+
readonly getMutualFriends: {
|
|
410
|
+
readonly name: "GetMutualFriends";
|
|
411
|
+
readonly requestType: typeof GetMutualFriendsPayload;
|
|
412
|
+
readonly requestStream: false;
|
|
413
|
+
readonly responseType: typeof PaginatedUsersResponse;
|
|
414
|
+
readonly responseStream: false;
|
|
415
|
+
readonly options: {};
|
|
416
|
+
};
|
|
417
|
+
/** Get the pending friendship requests for the authenticated user */
|
|
418
|
+
readonly getPendingFriendshipRequests: {
|
|
419
|
+
readonly name: "GetPendingFriendshipRequests";
|
|
420
|
+
readonly requestType: typeof GetFriendshipRequestsPayload;
|
|
421
|
+
readonly requestStream: false;
|
|
422
|
+
readonly responseType: typeof PaginatedFriendshipRequestsResponse;
|
|
423
|
+
readonly responseStream: false;
|
|
424
|
+
readonly options: {};
|
|
425
|
+
};
|
|
426
|
+
/** Get the sent friendship requests for the authenticated user */
|
|
427
|
+
readonly getSentFriendshipRequests: {
|
|
428
|
+
readonly name: "GetSentFriendshipRequests";
|
|
429
|
+
readonly requestType: typeof GetFriendshipRequestsPayload;
|
|
430
|
+
readonly requestStream: false;
|
|
431
|
+
readonly responseType: typeof PaginatedFriendshipRequestsResponse;
|
|
432
|
+
readonly responseStream: false;
|
|
433
|
+
readonly options: {};
|
|
434
|
+
};
|
|
435
|
+
/** Create or update friendship status: REQUEST, ACCEPT, REJECT, CANCEL, DELETE */
|
|
436
|
+
readonly upsertFriendship: {
|
|
437
|
+
readonly name: "UpsertFriendship";
|
|
438
|
+
readonly requestType: typeof UpsertFriendshipPayload;
|
|
439
|
+
readonly requestStream: false;
|
|
440
|
+
readonly responseType: typeof UpsertFriendshipResponse;
|
|
441
|
+
readonly responseStream: false;
|
|
442
|
+
readonly options: {};
|
|
443
|
+
};
|
|
444
|
+
/** Subscribe to updates of friendship status: REQUEST, ACCEPT, REJECT, CANCEL, DELETE */
|
|
445
|
+
readonly subscribeToFriendshipUpdates: {
|
|
446
|
+
readonly name: "SubscribeToFriendshipUpdates";
|
|
447
|
+
readonly requestType: typeof Empty;
|
|
448
|
+
readonly requestStream: false;
|
|
449
|
+
readonly responseType: typeof FriendshipUpdate;
|
|
450
|
+
readonly responseStream: true;
|
|
451
|
+
readonly options: {};
|
|
452
|
+
};
|
|
453
|
+
readonly getFriendshipStatus: {
|
|
454
|
+
readonly name: "GetFriendshipStatus";
|
|
455
|
+
readonly requestType: typeof GetFriendshipStatusPayload;
|
|
456
|
+
readonly requestStream: false;
|
|
457
|
+
readonly responseType: typeof GetFriendshipStatusResponse;
|
|
458
|
+
readonly responseStream: false;
|
|
459
|
+
readonly options: {};
|
|
460
|
+
};
|
|
461
|
+
};
|
|
462
|
+
};
|
|
463
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
464
|
+
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 {
|
|
465
|
+
$case: string;
|
|
466
|
+
} ? {
|
|
467
|
+
[K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
|
|
468
|
+
} & {
|
|
469
|
+
$case: T["$case"];
|
|
470
|
+
} : T extends {} ? {
|
|
471
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
472
|
+
} : Partial<T>;
|
|
473
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
474
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
475
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
476
|
+
} & {
|
|
477
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
478
|
+
};
|
|
479
|
+
export {};
|