@dcl/protocol 1.0.0-8758013256.commit-44aab53 → 1.0.0-8789372854.commit-f692c7a
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.gen.d.ts +357 -0
- package/out-js/decentraland/social_service_v2/social_service.gen.js +1554 -0
- package/out-js/decentraland/social_service_v2/social_service.gen.js.map +1 -0
- package/out-js/social_service_v2.gen.d.ts +1 -0
- package/out-js/social_service_v2.gen.js +6 -0
- package/out-js/social_service_v2.gen.js.map +1 -0
- package/out-ts/decentraland/social_service_v2/social_service.gen.ts +1709 -0
- package/out-ts/social_service_v2.gen.ts +3 -0
- package/package.json +2 -2
- package/proto/decentraland/social/friendships/friendships.proto +0 -5
- package/proto/decentraland/social_service_v2/social_service.proto +111 -0
- package/public/social_service_v2.proto +4 -0
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
import { Empty } from "../../google/protobuf/empty.gen";
|
|
3
|
+
export declare const protobufPackage = "decentraland.social_service_v2";
|
|
4
|
+
export interface InvalidFriendshipAction {
|
|
5
|
+
}
|
|
6
|
+
export interface InternalServerError {
|
|
7
|
+
}
|
|
8
|
+
export interface User {
|
|
9
|
+
address: string;
|
|
10
|
+
}
|
|
11
|
+
export interface RequestResponse {
|
|
12
|
+
user: User | undefined;
|
|
13
|
+
createdAt: number;
|
|
14
|
+
message?: string | undefined;
|
|
15
|
+
}
|
|
16
|
+
export interface RequestPayload {
|
|
17
|
+
user: User | undefined;
|
|
18
|
+
message?: string | undefined;
|
|
19
|
+
}
|
|
20
|
+
export interface Requests {
|
|
21
|
+
requests: RequestResponse[];
|
|
22
|
+
}
|
|
23
|
+
export interface AcceptResponse {
|
|
24
|
+
user: User | undefined;
|
|
25
|
+
}
|
|
26
|
+
export interface AcceptPayload {
|
|
27
|
+
user: User | undefined;
|
|
28
|
+
}
|
|
29
|
+
export interface RejectResponse {
|
|
30
|
+
user: User | undefined;
|
|
31
|
+
}
|
|
32
|
+
export interface RejectPayload {
|
|
33
|
+
user: User | undefined;
|
|
34
|
+
}
|
|
35
|
+
export interface DeleteResponse {
|
|
36
|
+
user: User | undefined;
|
|
37
|
+
}
|
|
38
|
+
export interface DeletePayload {
|
|
39
|
+
user: User | undefined;
|
|
40
|
+
}
|
|
41
|
+
export interface CancelResponse {
|
|
42
|
+
user: User | undefined;
|
|
43
|
+
}
|
|
44
|
+
export interface CancelPayload {
|
|
45
|
+
user: User | undefined;
|
|
46
|
+
}
|
|
47
|
+
export interface UpsertFriendshipPayload {
|
|
48
|
+
action?: {
|
|
49
|
+
$case: "request";
|
|
50
|
+
request: RequestPayload;
|
|
51
|
+
} | {
|
|
52
|
+
$case: "accept";
|
|
53
|
+
accept: AcceptPayload;
|
|
54
|
+
} | {
|
|
55
|
+
$case: "reject";
|
|
56
|
+
reject: RejectPayload;
|
|
57
|
+
} | {
|
|
58
|
+
$case: "delete";
|
|
59
|
+
delete: DeletePayload;
|
|
60
|
+
} | {
|
|
61
|
+
$case: "cancel";
|
|
62
|
+
cancel: CancelPayload;
|
|
63
|
+
} | undefined;
|
|
64
|
+
}
|
|
65
|
+
export interface MutualFriendsPayload {
|
|
66
|
+
user: User | undefined;
|
|
67
|
+
}
|
|
68
|
+
export interface UsersResponse {
|
|
69
|
+
users: User[];
|
|
70
|
+
}
|
|
71
|
+
export interface FriendshipRequestsResponse {
|
|
72
|
+
response?: {
|
|
73
|
+
$case: "requests";
|
|
74
|
+
requests: Requests;
|
|
75
|
+
} | {
|
|
76
|
+
$case: "internalServerError";
|
|
77
|
+
internalServerError: InternalServerError;
|
|
78
|
+
} | undefined;
|
|
79
|
+
}
|
|
80
|
+
export interface UpsertFriendshipResponse {
|
|
81
|
+
response?: {
|
|
82
|
+
$case: "accepted";
|
|
83
|
+
accepted: UpsertFriendshipResponse_Accepted;
|
|
84
|
+
} | {
|
|
85
|
+
$case: "invalidFriendshipAction";
|
|
86
|
+
invalidFriendshipAction: InvalidFriendshipAction;
|
|
87
|
+
} | {
|
|
88
|
+
$case: "internalServerError";
|
|
89
|
+
internalServerError: InternalServerError;
|
|
90
|
+
} | undefined;
|
|
91
|
+
}
|
|
92
|
+
export interface UpsertFriendshipResponse_Accepted {
|
|
93
|
+
}
|
|
94
|
+
export interface FriendshipUpdate {
|
|
95
|
+
update?: {
|
|
96
|
+
$case: "request";
|
|
97
|
+
request: RequestResponse;
|
|
98
|
+
} | {
|
|
99
|
+
$case: "accept";
|
|
100
|
+
accept: AcceptResponse;
|
|
101
|
+
} | {
|
|
102
|
+
$case: "reject";
|
|
103
|
+
reject: RejectResponse;
|
|
104
|
+
} | {
|
|
105
|
+
$case: "delete";
|
|
106
|
+
delete: DeleteResponse;
|
|
107
|
+
} | {
|
|
108
|
+
$case: "cancel";
|
|
109
|
+
cancel: CancelResponse;
|
|
110
|
+
} | undefined;
|
|
111
|
+
}
|
|
112
|
+
export declare namespace InvalidFriendshipAction {
|
|
113
|
+
function encode(_: InvalidFriendshipAction, writer?: _m0.Writer): _m0.Writer;
|
|
114
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): InvalidFriendshipAction;
|
|
115
|
+
function fromJSON(_: any): InvalidFriendshipAction;
|
|
116
|
+
function toJSON(_: InvalidFriendshipAction): unknown;
|
|
117
|
+
function create<I extends Exact<DeepPartial<InvalidFriendshipAction>, I>>(base?: I): InvalidFriendshipAction;
|
|
118
|
+
function fromPartial<I extends Exact<DeepPartial<InvalidFriendshipAction>, I>>(_: I): InvalidFriendshipAction;
|
|
119
|
+
}
|
|
120
|
+
export declare namespace InternalServerError {
|
|
121
|
+
function encode(_: InternalServerError, writer?: _m0.Writer): _m0.Writer;
|
|
122
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): InternalServerError;
|
|
123
|
+
function fromJSON(_: any): InternalServerError;
|
|
124
|
+
function toJSON(_: InternalServerError): unknown;
|
|
125
|
+
function create<I extends Exact<DeepPartial<InternalServerError>, I>>(base?: I): InternalServerError;
|
|
126
|
+
function fromPartial<I extends Exact<DeepPartial<InternalServerError>, I>>(_: I): InternalServerError;
|
|
127
|
+
}
|
|
128
|
+
export declare namespace User {
|
|
129
|
+
function encode(message: User, writer?: _m0.Writer): _m0.Writer;
|
|
130
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): User;
|
|
131
|
+
function fromJSON(object: any): User;
|
|
132
|
+
function toJSON(message: User): unknown;
|
|
133
|
+
function create<I extends Exact<DeepPartial<User>, I>>(base?: I): User;
|
|
134
|
+
function fromPartial<I extends Exact<DeepPartial<User>, I>>(object: I): User;
|
|
135
|
+
}
|
|
136
|
+
export declare namespace RequestResponse {
|
|
137
|
+
function encode(message: RequestResponse, writer?: _m0.Writer): _m0.Writer;
|
|
138
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): RequestResponse;
|
|
139
|
+
function fromJSON(object: any): RequestResponse;
|
|
140
|
+
function toJSON(message: RequestResponse): unknown;
|
|
141
|
+
function create<I extends Exact<DeepPartial<RequestResponse>, I>>(base?: I): RequestResponse;
|
|
142
|
+
function fromPartial<I extends Exact<DeepPartial<RequestResponse>, I>>(object: I): RequestResponse;
|
|
143
|
+
}
|
|
144
|
+
export declare namespace RequestPayload {
|
|
145
|
+
function encode(message: RequestPayload, writer?: _m0.Writer): _m0.Writer;
|
|
146
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): RequestPayload;
|
|
147
|
+
function fromJSON(object: any): RequestPayload;
|
|
148
|
+
function toJSON(message: RequestPayload): unknown;
|
|
149
|
+
function create<I extends Exact<DeepPartial<RequestPayload>, I>>(base?: I): RequestPayload;
|
|
150
|
+
function fromPartial<I extends Exact<DeepPartial<RequestPayload>, I>>(object: I): RequestPayload;
|
|
151
|
+
}
|
|
152
|
+
export declare namespace Requests {
|
|
153
|
+
function encode(message: Requests, writer?: _m0.Writer): _m0.Writer;
|
|
154
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): Requests;
|
|
155
|
+
function fromJSON(object: any): Requests;
|
|
156
|
+
function toJSON(message: Requests): unknown;
|
|
157
|
+
function create<I extends Exact<DeepPartial<Requests>, I>>(base?: I): Requests;
|
|
158
|
+
function fromPartial<I extends Exact<DeepPartial<Requests>, I>>(object: I): Requests;
|
|
159
|
+
}
|
|
160
|
+
export declare namespace AcceptResponse {
|
|
161
|
+
function encode(message: AcceptResponse, writer?: _m0.Writer): _m0.Writer;
|
|
162
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): AcceptResponse;
|
|
163
|
+
function fromJSON(object: any): AcceptResponse;
|
|
164
|
+
function toJSON(message: AcceptResponse): unknown;
|
|
165
|
+
function create<I extends Exact<DeepPartial<AcceptResponse>, I>>(base?: I): AcceptResponse;
|
|
166
|
+
function fromPartial<I extends Exact<DeepPartial<AcceptResponse>, I>>(object: I): AcceptResponse;
|
|
167
|
+
}
|
|
168
|
+
export declare namespace AcceptPayload {
|
|
169
|
+
function encode(message: AcceptPayload, writer?: _m0.Writer): _m0.Writer;
|
|
170
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): AcceptPayload;
|
|
171
|
+
function fromJSON(object: any): AcceptPayload;
|
|
172
|
+
function toJSON(message: AcceptPayload): unknown;
|
|
173
|
+
function create<I extends Exact<DeepPartial<AcceptPayload>, I>>(base?: I): AcceptPayload;
|
|
174
|
+
function fromPartial<I extends Exact<DeepPartial<AcceptPayload>, I>>(object: I): AcceptPayload;
|
|
175
|
+
}
|
|
176
|
+
export declare namespace RejectResponse {
|
|
177
|
+
function encode(message: RejectResponse, writer?: _m0.Writer): _m0.Writer;
|
|
178
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): RejectResponse;
|
|
179
|
+
function fromJSON(object: any): RejectResponse;
|
|
180
|
+
function toJSON(message: RejectResponse): unknown;
|
|
181
|
+
function create<I extends Exact<DeepPartial<RejectResponse>, I>>(base?: I): RejectResponse;
|
|
182
|
+
function fromPartial<I extends Exact<DeepPartial<RejectResponse>, I>>(object: I): RejectResponse;
|
|
183
|
+
}
|
|
184
|
+
export declare namespace RejectPayload {
|
|
185
|
+
function encode(message: RejectPayload, writer?: _m0.Writer): _m0.Writer;
|
|
186
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): RejectPayload;
|
|
187
|
+
function fromJSON(object: any): RejectPayload;
|
|
188
|
+
function toJSON(message: RejectPayload): unknown;
|
|
189
|
+
function create<I extends Exact<DeepPartial<RejectPayload>, I>>(base?: I): RejectPayload;
|
|
190
|
+
function fromPartial<I extends Exact<DeepPartial<RejectPayload>, I>>(object: I): RejectPayload;
|
|
191
|
+
}
|
|
192
|
+
export declare namespace DeleteResponse {
|
|
193
|
+
function encode(message: DeleteResponse, writer?: _m0.Writer): _m0.Writer;
|
|
194
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): DeleteResponse;
|
|
195
|
+
function fromJSON(object: any): DeleteResponse;
|
|
196
|
+
function toJSON(message: DeleteResponse): unknown;
|
|
197
|
+
function create<I extends Exact<DeepPartial<DeleteResponse>, I>>(base?: I): DeleteResponse;
|
|
198
|
+
function fromPartial<I extends Exact<DeepPartial<DeleteResponse>, I>>(object: I): DeleteResponse;
|
|
199
|
+
}
|
|
200
|
+
export declare namespace DeletePayload {
|
|
201
|
+
function encode(message: DeletePayload, writer?: _m0.Writer): _m0.Writer;
|
|
202
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): DeletePayload;
|
|
203
|
+
function fromJSON(object: any): DeletePayload;
|
|
204
|
+
function toJSON(message: DeletePayload): unknown;
|
|
205
|
+
function create<I extends Exact<DeepPartial<DeletePayload>, I>>(base?: I): DeletePayload;
|
|
206
|
+
function fromPartial<I extends Exact<DeepPartial<DeletePayload>, I>>(object: I): DeletePayload;
|
|
207
|
+
}
|
|
208
|
+
export declare namespace CancelResponse {
|
|
209
|
+
function encode(message: CancelResponse, writer?: _m0.Writer): _m0.Writer;
|
|
210
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): CancelResponse;
|
|
211
|
+
function fromJSON(object: any): CancelResponse;
|
|
212
|
+
function toJSON(message: CancelResponse): unknown;
|
|
213
|
+
function create<I extends Exact<DeepPartial<CancelResponse>, I>>(base?: I): CancelResponse;
|
|
214
|
+
function fromPartial<I extends Exact<DeepPartial<CancelResponse>, I>>(object: I): CancelResponse;
|
|
215
|
+
}
|
|
216
|
+
export declare namespace CancelPayload {
|
|
217
|
+
function encode(message: CancelPayload, writer?: _m0.Writer): _m0.Writer;
|
|
218
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): CancelPayload;
|
|
219
|
+
function fromJSON(object: any): CancelPayload;
|
|
220
|
+
function toJSON(message: CancelPayload): unknown;
|
|
221
|
+
function create<I extends Exact<DeepPartial<CancelPayload>, I>>(base?: I): CancelPayload;
|
|
222
|
+
function fromPartial<I extends Exact<DeepPartial<CancelPayload>, I>>(object: I): CancelPayload;
|
|
223
|
+
}
|
|
224
|
+
export declare namespace UpsertFriendshipPayload {
|
|
225
|
+
function encode(message: UpsertFriendshipPayload, writer?: _m0.Writer): _m0.Writer;
|
|
226
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): UpsertFriendshipPayload;
|
|
227
|
+
function fromJSON(object: any): UpsertFriendshipPayload;
|
|
228
|
+
function toJSON(message: UpsertFriendshipPayload): unknown;
|
|
229
|
+
function create<I extends Exact<DeepPartial<UpsertFriendshipPayload>, I>>(base?: I): UpsertFriendshipPayload;
|
|
230
|
+
function fromPartial<I extends Exact<DeepPartial<UpsertFriendshipPayload>, I>>(object: I): UpsertFriendshipPayload;
|
|
231
|
+
}
|
|
232
|
+
export declare namespace MutualFriendsPayload {
|
|
233
|
+
function encode(message: MutualFriendsPayload, writer?: _m0.Writer): _m0.Writer;
|
|
234
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): MutualFriendsPayload;
|
|
235
|
+
function fromJSON(object: any): MutualFriendsPayload;
|
|
236
|
+
function toJSON(message: MutualFriendsPayload): unknown;
|
|
237
|
+
function create<I extends Exact<DeepPartial<MutualFriendsPayload>, I>>(base?: I): MutualFriendsPayload;
|
|
238
|
+
function fromPartial<I extends Exact<DeepPartial<MutualFriendsPayload>, I>>(object: I): MutualFriendsPayload;
|
|
239
|
+
}
|
|
240
|
+
export declare namespace UsersResponse {
|
|
241
|
+
function encode(message: UsersResponse, writer?: _m0.Writer): _m0.Writer;
|
|
242
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): UsersResponse;
|
|
243
|
+
function fromJSON(object: any): UsersResponse;
|
|
244
|
+
function toJSON(message: UsersResponse): unknown;
|
|
245
|
+
function create<I extends Exact<DeepPartial<UsersResponse>, I>>(base?: I): UsersResponse;
|
|
246
|
+
function fromPartial<I extends Exact<DeepPartial<UsersResponse>, I>>(object: I): UsersResponse;
|
|
247
|
+
}
|
|
248
|
+
export declare namespace FriendshipRequestsResponse {
|
|
249
|
+
function encode(message: FriendshipRequestsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
250
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): FriendshipRequestsResponse;
|
|
251
|
+
function fromJSON(object: any): FriendshipRequestsResponse;
|
|
252
|
+
function toJSON(message: FriendshipRequestsResponse): unknown;
|
|
253
|
+
function create<I extends Exact<DeepPartial<FriendshipRequestsResponse>, I>>(base?: I): FriendshipRequestsResponse;
|
|
254
|
+
function fromPartial<I extends Exact<DeepPartial<FriendshipRequestsResponse>, I>>(object: I): FriendshipRequestsResponse;
|
|
255
|
+
}
|
|
256
|
+
export declare namespace UpsertFriendshipResponse {
|
|
257
|
+
function encode(message: UpsertFriendshipResponse, writer?: _m0.Writer): _m0.Writer;
|
|
258
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): UpsertFriendshipResponse;
|
|
259
|
+
function fromJSON(object: any): UpsertFriendshipResponse;
|
|
260
|
+
function toJSON(message: UpsertFriendshipResponse): unknown;
|
|
261
|
+
function create<I extends Exact<DeepPartial<UpsertFriendshipResponse>, I>>(base?: I): UpsertFriendshipResponse;
|
|
262
|
+
function fromPartial<I extends Exact<DeepPartial<UpsertFriendshipResponse>, I>>(object: I): UpsertFriendshipResponse;
|
|
263
|
+
}
|
|
264
|
+
export declare namespace UpsertFriendshipResponse_Accepted {
|
|
265
|
+
function encode(_: UpsertFriendshipResponse_Accepted, writer?: _m0.Writer): _m0.Writer;
|
|
266
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): UpsertFriendshipResponse_Accepted;
|
|
267
|
+
function fromJSON(_: any): UpsertFriendshipResponse_Accepted;
|
|
268
|
+
function toJSON(_: UpsertFriendshipResponse_Accepted): unknown;
|
|
269
|
+
function create<I extends Exact<DeepPartial<UpsertFriendshipResponse_Accepted>, I>>(base?: I): UpsertFriendshipResponse_Accepted;
|
|
270
|
+
function fromPartial<I extends Exact<DeepPartial<UpsertFriendshipResponse_Accepted>, I>>(_: I): UpsertFriendshipResponse_Accepted;
|
|
271
|
+
}
|
|
272
|
+
export declare namespace FriendshipUpdate {
|
|
273
|
+
function encode(message: FriendshipUpdate, writer?: _m0.Writer): _m0.Writer;
|
|
274
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): FriendshipUpdate;
|
|
275
|
+
function fromJSON(object: any): FriendshipUpdate;
|
|
276
|
+
function toJSON(message: FriendshipUpdate): unknown;
|
|
277
|
+
function create<I extends Exact<DeepPartial<FriendshipUpdate>, I>>(base?: I): FriendshipUpdate;
|
|
278
|
+
function fromPartial<I extends Exact<DeepPartial<FriendshipUpdate>, I>>(object: I): FriendshipUpdate;
|
|
279
|
+
}
|
|
280
|
+
export type SocialServiceDefinition = typeof SocialServiceDefinition;
|
|
281
|
+
export declare const SocialServiceDefinition: {
|
|
282
|
+
readonly name: "SocialService";
|
|
283
|
+
readonly fullName: "decentraland.social_service_v2.SocialService";
|
|
284
|
+
readonly methods: {
|
|
285
|
+
/** Get the list of friends for the authenticated user */
|
|
286
|
+
readonly getFriends: {
|
|
287
|
+
readonly name: "GetFriends";
|
|
288
|
+
readonly requestType: typeof Empty;
|
|
289
|
+
readonly requestStream: false;
|
|
290
|
+
readonly responseType: typeof UsersResponse;
|
|
291
|
+
readonly responseStream: true;
|
|
292
|
+
readonly options: {};
|
|
293
|
+
};
|
|
294
|
+
/** Get the list of mutual friends between the authenticated user and the one in the parameter */
|
|
295
|
+
readonly getMutualFriends: {
|
|
296
|
+
readonly name: "GetMutualFriends";
|
|
297
|
+
readonly requestType: typeof MutualFriendsPayload;
|
|
298
|
+
readonly requestStream: false;
|
|
299
|
+
readonly responseType: typeof UsersResponse;
|
|
300
|
+
readonly responseStream: true;
|
|
301
|
+
readonly options: {};
|
|
302
|
+
};
|
|
303
|
+
/** Get the pending friendship requests for the authenticated user */
|
|
304
|
+
readonly getPendingFriendshipRequests: {
|
|
305
|
+
readonly name: "GetPendingFriendshipRequests";
|
|
306
|
+
readonly requestType: typeof Empty;
|
|
307
|
+
readonly requestStream: false;
|
|
308
|
+
readonly responseType: typeof FriendshipRequestsResponse;
|
|
309
|
+
readonly responseStream: false;
|
|
310
|
+
readonly options: {};
|
|
311
|
+
};
|
|
312
|
+
/** Get the sent friendship requests for the authenticated user */
|
|
313
|
+
readonly getSentFriendshipRequests: {
|
|
314
|
+
readonly name: "GetSentFriendshipRequests";
|
|
315
|
+
readonly requestType: typeof Empty;
|
|
316
|
+
readonly requestStream: false;
|
|
317
|
+
readonly responseType: typeof FriendshipRequestsResponse;
|
|
318
|
+
readonly responseStream: false;
|
|
319
|
+
readonly options: {};
|
|
320
|
+
};
|
|
321
|
+
/** Create or update friendship status: REQUEST, ACCEPT, REJECT, CANCEL, DELETE */
|
|
322
|
+
readonly upsertFriendship: {
|
|
323
|
+
readonly name: "UpsertFriendship";
|
|
324
|
+
readonly requestType: typeof UpsertFriendshipPayload;
|
|
325
|
+
readonly requestStream: false;
|
|
326
|
+
readonly responseType: typeof UpsertFriendshipResponse;
|
|
327
|
+
readonly responseStream: false;
|
|
328
|
+
readonly options: {};
|
|
329
|
+
};
|
|
330
|
+
/** Subscribe to updates of friendship status: REQUEST, ACCEPT, REJECT, CANCEL, DELETE */
|
|
331
|
+
readonly subscribeToFriendshipUpdates: {
|
|
332
|
+
readonly name: "SubscribeToFriendshipUpdates";
|
|
333
|
+
readonly requestType: typeof Empty;
|
|
334
|
+
readonly requestStream: false;
|
|
335
|
+
readonly responseType: typeof FriendshipUpdate;
|
|
336
|
+
readonly responseStream: true;
|
|
337
|
+
readonly options: {};
|
|
338
|
+
};
|
|
339
|
+
};
|
|
340
|
+
};
|
|
341
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
342
|
+
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 {
|
|
343
|
+
$case: string;
|
|
344
|
+
} ? {
|
|
345
|
+
[K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
|
|
346
|
+
} & {
|
|
347
|
+
$case: T["$case"];
|
|
348
|
+
} : T extends {} ? {
|
|
349
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
350
|
+
} : Partial<T>;
|
|
351
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
352
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
353
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
354
|
+
} & {
|
|
355
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
356
|
+
};
|
|
357
|
+
export {};
|