@dcl/protocol 1.0.0-14033082444.commit-84b403d → 1.0.0-14033250574.commit-0daf6ca

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.
@@ -17,34 +17,57 @@ export declare enum FriendshipStatus {
17
17
  REJECTED = 4,
18
18
  DELETED = 5,
19
19
  BLOCKED = 6,
20
+ NONE = 7,
21
+ BLOCKED_BY = 8,
20
22
  UNRECOGNIZED = -1
21
23
  }
22
24
  export declare function friendshipStatusFromJSON(object: any): FriendshipStatus;
23
25
  export declare function friendshipStatusToJSON(object: FriendshipStatus): string;
24
26
  /** Errors */
25
27
  export interface InvalidFriendshipAction {
28
+ message?: string | undefined;
26
29
  }
27
30
  export interface InternalServerError {
31
+ message?: string | undefined;
32
+ }
33
+ export interface InvalidRequest {
34
+ message?: string | undefined;
35
+ }
36
+ export interface ProfileNotFound {
37
+ message?: string | undefined;
28
38
  }
29
39
  /** Types */
30
40
  export interface User {
31
41
  address: string;
32
42
  }
43
+ export interface FriendProfile {
44
+ address: string;
45
+ name: string;
46
+ hasClaimedName: boolean;
47
+ profilePictureUrl: string;
48
+ }
49
+ export interface BlockedUserProfile {
50
+ address: string;
51
+ name: string;
52
+ hasClaimedName: boolean;
53
+ profilePictureUrl: string;
54
+ blockedAt?: number | undefined;
55
+ }
33
56
  export interface Pagination {
34
57
  limit: number;
35
58
  offset: number;
36
59
  }
37
60
  export interface FriendshipRequestResponse {
38
- user: User | undefined;
61
+ friend: FriendProfile | undefined;
39
62
  createdAt: number;
40
63
  message?: string | undefined;
64
+ id: string;
41
65
  }
42
66
  export interface FriendshipRequests {
43
67
  requests: FriendshipRequestResponse[];
44
68
  }
45
69
  export interface GetFriendsPayload {
46
70
  pagination?: Pagination | undefined;
47
- status?: ConnectivityStatus | undefined;
48
71
  }
49
72
  export interface GetFriendshipRequestsPayload {
50
73
  pagination?: Pagination | undefined;
@@ -91,8 +114,8 @@ export interface PaginatedResponse {
91
114
  total: number;
92
115
  page: number;
93
116
  }
94
- export interface PaginatedUsersResponse {
95
- users: User[];
117
+ export interface PaginatedFriendsProfilesResponse {
118
+ friends: FriendProfile[];
96
119
  paginationData: PaginatedResponse | undefined;
97
120
  }
98
121
  export interface PaginatedFriendshipRequestsResponse {
@@ -120,11 +143,13 @@ export interface UpsertFriendshipResponse {
120
143
  export interface UpsertFriendshipResponse_Accepted {
121
144
  id: string;
122
145
  createdAt: number;
146
+ friend: FriendProfile | undefined;
147
+ message?: string | undefined;
123
148
  }
124
149
  export interface FriendshipUpdate {
125
150
  update?: {
126
151
  $case: "request";
127
- request: FriendshipRequestResponse;
152
+ request: FriendshipUpdate_RequestResponse;
128
153
  } | {
129
154
  $case: "accept";
130
155
  accept: FriendshipUpdate_AcceptResponse;
@@ -137,8 +162,17 @@ export interface FriendshipUpdate {
137
162
  } | {
138
163
  $case: "cancel";
139
164
  cancel: FriendshipUpdate_CancelResponse;
165
+ } | {
166
+ $case: "block";
167
+ block: FriendshipUpdate_BlockResponse;
140
168
  } | undefined;
141
169
  }
170
+ export interface FriendshipUpdate_RequestResponse {
171
+ friend: FriendProfile | undefined;
172
+ createdAt: number;
173
+ message?: string | undefined;
174
+ id: string;
175
+ }
142
176
  export interface FriendshipUpdate_AcceptResponse {
143
177
  user: User | undefined;
144
178
  }
@@ -151,6 +185,13 @@ export interface FriendshipUpdate_DeleteResponse {
151
185
  export interface FriendshipUpdate_CancelResponse {
152
186
  user: User | undefined;
153
187
  }
188
+ export interface FriendshipUpdate_BlockResponse {
189
+ user: User | undefined;
190
+ }
191
+ export interface FriendConnectivityUpdate {
192
+ friend: FriendProfile | undefined;
193
+ status: ConnectivityStatus;
194
+ }
154
195
  export interface GetFriendshipStatusPayload {
155
196
  user: User | undefined;
156
197
  }
@@ -167,21 +208,94 @@ export interface GetFriendshipStatusResponse_Ok {
167
208
  status: FriendshipStatus;
168
209
  message?: string | undefined;
169
210
  }
211
+ export interface BlockUserPayload {
212
+ user: User | undefined;
213
+ }
214
+ export interface BlockUserResponse {
215
+ response?: {
216
+ $case: "ok";
217
+ ok: BlockUserResponse_Ok;
218
+ } | {
219
+ $case: "internalServerError";
220
+ internalServerError: InternalServerError;
221
+ } | {
222
+ $case: "invalidRequest";
223
+ invalidRequest: InvalidRequest;
224
+ } | {
225
+ $case: "profileNotFound";
226
+ profileNotFound: ProfileNotFound;
227
+ } | undefined;
228
+ }
229
+ export interface BlockUserResponse_Ok {
230
+ profile: BlockedUserProfile | undefined;
231
+ }
232
+ export interface UnblockUserPayload {
233
+ user: User | undefined;
234
+ }
235
+ export interface UnblockUserResponse {
236
+ response?: {
237
+ $case: "ok";
238
+ ok: UnblockUserResponse_Ok;
239
+ } | {
240
+ $case: "internalServerError";
241
+ internalServerError: InternalServerError;
242
+ } | {
243
+ $case: "invalidRequest";
244
+ invalidRequest: InvalidRequest;
245
+ } | {
246
+ $case: "profileNotFound";
247
+ profileNotFound: ProfileNotFound;
248
+ } | undefined;
249
+ }
250
+ export interface UnblockUserResponse_Ok {
251
+ profile: BlockedUserProfile | undefined;
252
+ }
253
+ export interface GetBlockedUsersPayload {
254
+ pagination?: Pagination | undefined;
255
+ }
256
+ export interface GetBlockedUsersResponse {
257
+ profiles: BlockedUserProfile[];
258
+ paginationData: PaginatedResponse | undefined;
259
+ }
260
+ export interface GetBlockingStatusResponse {
261
+ blockedUsers: string[];
262
+ blockedByUsers: string[];
263
+ }
264
+ export interface BlockUpdate {
265
+ address: string;
266
+ isBlocked: boolean;
267
+ }
170
268
  export declare namespace InvalidFriendshipAction {
171
- function encode(_: InvalidFriendshipAction, writer?: _m0.Writer): _m0.Writer;
269
+ function encode(message: InvalidFriendshipAction, writer?: _m0.Writer): _m0.Writer;
172
270
  function decode(input: _m0.Reader | Uint8Array, length?: number): InvalidFriendshipAction;
173
- function fromJSON(_: any): InvalidFriendshipAction;
174
- function toJSON(_: InvalidFriendshipAction): unknown;
271
+ function fromJSON(object: any): InvalidFriendshipAction;
272
+ function toJSON(message: InvalidFriendshipAction): unknown;
175
273
  function create<I extends Exact<DeepPartial<InvalidFriendshipAction>, I>>(base?: I): InvalidFriendshipAction;
176
- function fromPartial<I extends Exact<DeepPartial<InvalidFriendshipAction>, I>>(_: I): InvalidFriendshipAction;
274
+ function fromPartial<I extends Exact<DeepPartial<InvalidFriendshipAction>, I>>(object: I): InvalidFriendshipAction;
177
275
  }
178
276
  export declare namespace InternalServerError {
179
- function encode(_: InternalServerError, writer?: _m0.Writer): _m0.Writer;
277
+ function encode(message: InternalServerError, writer?: _m0.Writer): _m0.Writer;
180
278
  function decode(input: _m0.Reader | Uint8Array, length?: number): InternalServerError;
181
- function fromJSON(_: any): InternalServerError;
182
- function toJSON(_: InternalServerError): unknown;
279
+ function fromJSON(object: any): InternalServerError;
280
+ function toJSON(message: InternalServerError): unknown;
183
281
  function create<I extends Exact<DeepPartial<InternalServerError>, I>>(base?: I): InternalServerError;
184
- function fromPartial<I extends Exact<DeepPartial<InternalServerError>, I>>(_: I): InternalServerError;
282
+ function fromPartial<I extends Exact<DeepPartial<InternalServerError>, I>>(object: I): InternalServerError;
283
+ }
284
+ export declare namespace InvalidRequest {
285
+ function encode(message: InvalidRequest, writer?: _m0.Writer): _m0.Writer;
286
+ function decode(input: _m0.Reader | Uint8Array, length?: number): InvalidRequest;
287
+ function fromJSON(object: any): InvalidRequest;
288
+ function toJSON(message: InvalidRequest): unknown;
289
+ function create<I extends Exact<DeepPartial<InvalidRequest>, I>>(base?: I): InvalidRequest;
290
+ function fromPartial<I extends Exact<DeepPartial<InvalidRequest>, I>>(object: I): InvalidRequest;
291
+ }
292
+ export declare namespace ProfileNotFound {
293
+ function encode(message: ProfileNotFound, writer?: _m0.Writer): _m0.Writer;
294
+ function decode(input: _m0.Reader | Uint8Array, length?: number): ProfileNotFound;
295
+ function fromJSON(object: any): ProfileNotFound;
296
+ function toJSON(message: ProfileNotFound): unknown;
297
+ function create<I extends Exact<DeepPartial<ProfileNotFound>, I>>(base?: I): ProfileNotFound;
298
+ function fromPartial<I extends Exact<DeepPartial<ProfileNotFound>, I>>(object: I): ProfileNotFound;
185
299
  }
186
300
  export declare namespace User {
187
301
  function encode(message: User, writer?: _m0.Writer): _m0.Writer;
@@ -191,6 +305,22 @@ export declare namespace User {
191
305
  function create<I extends Exact<DeepPartial<User>, I>>(base?: I): User;
192
306
  function fromPartial<I extends Exact<DeepPartial<User>, I>>(object: I): User;
193
307
  }
308
+ export declare namespace FriendProfile {
309
+ function encode(message: FriendProfile, writer?: _m0.Writer): _m0.Writer;
310
+ function decode(input: _m0.Reader | Uint8Array, length?: number): FriendProfile;
311
+ function fromJSON(object: any): FriendProfile;
312
+ function toJSON(message: FriendProfile): unknown;
313
+ function create<I extends Exact<DeepPartial<FriendProfile>, I>>(base?: I): FriendProfile;
314
+ function fromPartial<I extends Exact<DeepPartial<FriendProfile>, I>>(object: I): FriendProfile;
315
+ }
316
+ export declare namespace BlockedUserProfile {
317
+ function encode(message: BlockedUserProfile, writer?: _m0.Writer): _m0.Writer;
318
+ function decode(input: _m0.Reader | Uint8Array, length?: number): BlockedUserProfile;
319
+ function fromJSON(object: any): BlockedUserProfile;
320
+ function toJSON(message: BlockedUserProfile): unknown;
321
+ function create<I extends Exact<DeepPartial<BlockedUserProfile>, I>>(base?: I): BlockedUserProfile;
322
+ function fromPartial<I extends Exact<DeepPartial<BlockedUserProfile>, I>>(object: I): BlockedUserProfile;
323
+ }
194
324
  export declare namespace Pagination {
195
325
  function encode(message: Pagination, writer?: _m0.Writer): _m0.Writer;
196
326
  function decode(input: _m0.Reader | Uint8Array, length?: number): Pagination;
@@ -295,13 +425,13 @@ export declare namespace PaginatedResponse {
295
425
  function create<I extends Exact<DeepPartial<PaginatedResponse>, I>>(base?: I): PaginatedResponse;
296
426
  function fromPartial<I extends Exact<DeepPartial<PaginatedResponse>, I>>(object: I): PaginatedResponse;
297
427
  }
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;
428
+ export declare namespace PaginatedFriendsProfilesResponse {
429
+ function encode(message: PaginatedFriendsProfilesResponse, writer?: _m0.Writer): _m0.Writer;
430
+ function decode(input: _m0.Reader | Uint8Array, length?: number): PaginatedFriendsProfilesResponse;
431
+ function fromJSON(object: any): PaginatedFriendsProfilesResponse;
432
+ function toJSON(message: PaginatedFriendsProfilesResponse): unknown;
433
+ function create<I extends Exact<DeepPartial<PaginatedFriendsProfilesResponse>, I>>(base?: I): PaginatedFriendsProfilesResponse;
434
+ function fromPartial<I extends Exact<DeepPartial<PaginatedFriendsProfilesResponse>, I>>(object: I): PaginatedFriendsProfilesResponse;
305
435
  }
306
436
  export declare namespace PaginatedFriendshipRequestsResponse {
307
437
  function encode(message: PaginatedFriendshipRequestsResponse, writer?: _m0.Writer): _m0.Writer;
@@ -335,6 +465,14 @@ export declare namespace FriendshipUpdate {
335
465
  function create<I extends Exact<DeepPartial<FriendshipUpdate>, I>>(base?: I): FriendshipUpdate;
336
466
  function fromPartial<I extends Exact<DeepPartial<FriendshipUpdate>, I>>(object: I): FriendshipUpdate;
337
467
  }
468
+ export declare namespace FriendshipUpdate_RequestResponse {
469
+ function encode(message: FriendshipUpdate_RequestResponse, writer?: _m0.Writer): _m0.Writer;
470
+ function decode(input: _m0.Reader | Uint8Array, length?: number): FriendshipUpdate_RequestResponse;
471
+ function fromJSON(object: any): FriendshipUpdate_RequestResponse;
472
+ function toJSON(message: FriendshipUpdate_RequestResponse): unknown;
473
+ function create<I extends Exact<DeepPartial<FriendshipUpdate_RequestResponse>, I>>(base?: I): FriendshipUpdate_RequestResponse;
474
+ function fromPartial<I extends Exact<DeepPartial<FriendshipUpdate_RequestResponse>, I>>(object: I): FriendshipUpdate_RequestResponse;
475
+ }
338
476
  export declare namespace FriendshipUpdate_AcceptResponse {
339
477
  function encode(message: FriendshipUpdate_AcceptResponse, writer?: _m0.Writer): _m0.Writer;
340
478
  function decode(input: _m0.Reader | Uint8Array, length?: number): FriendshipUpdate_AcceptResponse;
@@ -367,6 +505,22 @@ export declare namespace FriendshipUpdate_CancelResponse {
367
505
  function create<I extends Exact<DeepPartial<FriendshipUpdate_CancelResponse>, I>>(base?: I): FriendshipUpdate_CancelResponse;
368
506
  function fromPartial<I extends Exact<DeepPartial<FriendshipUpdate_CancelResponse>, I>>(object: I): FriendshipUpdate_CancelResponse;
369
507
  }
508
+ export declare namespace FriendshipUpdate_BlockResponse {
509
+ function encode(message: FriendshipUpdate_BlockResponse, writer?: _m0.Writer): _m0.Writer;
510
+ function decode(input: _m0.Reader | Uint8Array, length?: number): FriendshipUpdate_BlockResponse;
511
+ function fromJSON(object: any): FriendshipUpdate_BlockResponse;
512
+ function toJSON(message: FriendshipUpdate_BlockResponse): unknown;
513
+ function create<I extends Exact<DeepPartial<FriendshipUpdate_BlockResponse>, I>>(base?: I): FriendshipUpdate_BlockResponse;
514
+ function fromPartial<I extends Exact<DeepPartial<FriendshipUpdate_BlockResponse>, I>>(object: I): FriendshipUpdate_BlockResponse;
515
+ }
516
+ export declare namespace FriendConnectivityUpdate {
517
+ function encode(message: FriendConnectivityUpdate, writer?: _m0.Writer): _m0.Writer;
518
+ function decode(input: _m0.Reader | Uint8Array, length?: number): FriendConnectivityUpdate;
519
+ function fromJSON(object: any): FriendConnectivityUpdate;
520
+ function toJSON(message: FriendConnectivityUpdate): unknown;
521
+ function create<I extends Exact<DeepPartial<FriendConnectivityUpdate>, I>>(base?: I): FriendConnectivityUpdate;
522
+ function fromPartial<I extends Exact<DeepPartial<FriendConnectivityUpdate>, I>>(object: I): FriendConnectivityUpdate;
523
+ }
370
524
  export declare namespace GetFriendshipStatusPayload {
371
525
  function encode(message: GetFriendshipStatusPayload, writer?: _m0.Writer): _m0.Writer;
372
526
  function decode(input: _m0.Reader | Uint8Array, length?: number): GetFriendshipStatusPayload;
@@ -391,6 +545,86 @@ export declare namespace GetFriendshipStatusResponse_Ok {
391
545
  function create<I extends Exact<DeepPartial<GetFriendshipStatusResponse_Ok>, I>>(base?: I): GetFriendshipStatusResponse_Ok;
392
546
  function fromPartial<I extends Exact<DeepPartial<GetFriendshipStatusResponse_Ok>, I>>(object: I): GetFriendshipStatusResponse_Ok;
393
547
  }
548
+ export declare namespace BlockUserPayload {
549
+ function encode(message: BlockUserPayload, writer?: _m0.Writer): _m0.Writer;
550
+ function decode(input: _m0.Reader | Uint8Array, length?: number): BlockUserPayload;
551
+ function fromJSON(object: any): BlockUserPayload;
552
+ function toJSON(message: BlockUserPayload): unknown;
553
+ function create<I extends Exact<DeepPartial<BlockUserPayload>, I>>(base?: I): BlockUserPayload;
554
+ function fromPartial<I extends Exact<DeepPartial<BlockUserPayload>, I>>(object: I): BlockUserPayload;
555
+ }
556
+ export declare namespace BlockUserResponse {
557
+ function encode(message: BlockUserResponse, writer?: _m0.Writer): _m0.Writer;
558
+ function decode(input: _m0.Reader | Uint8Array, length?: number): BlockUserResponse;
559
+ function fromJSON(object: any): BlockUserResponse;
560
+ function toJSON(message: BlockUserResponse): unknown;
561
+ function create<I extends Exact<DeepPartial<BlockUserResponse>, I>>(base?: I): BlockUserResponse;
562
+ function fromPartial<I extends Exact<DeepPartial<BlockUserResponse>, I>>(object: I): BlockUserResponse;
563
+ }
564
+ export declare namespace BlockUserResponse_Ok {
565
+ function encode(message: BlockUserResponse_Ok, writer?: _m0.Writer): _m0.Writer;
566
+ function decode(input: _m0.Reader | Uint8Array, length?: number): BlockUserResponse_Ok;
567
+ function fromJSON(object: any): BlockUserResponse_Ok;
568
+ function toJSON(message: BlockUserResponse_Ok): unknown;
569
+ function create<I extends Exact<DeepPartial<BlockUserResponse_Ok>, I>>(base?: I): BlockUserResponse_Ok;
570
+ function fromPartial<I extends Exact<DeepPartial<BlockUserResponse_Ok>, I>>(object: I): BlockUserResponse_Ok;
571
+ }
572
+ export declare namespace UnblockUserPayload {
573
+ function encode(message: UnblockUserPayload, writer?: _m0.Writer): _m0.Writer;
574
+ function decode(input: _m0.Reader | Uint8Array, length?: number): UnblockUserPayload;
575
+ function fromJSON(object: any): UnblockUserPayload;
576
+ function toJSON(message: UnblockUserPayload): unknown;
577
+ function create<I extends Exact<DeepPartial<UnblockUserPayload>, I>>(base?: I): UnblockUserPayload;
578
+ function fromPartial<I extends Exact<DeepPartial<UnblockUserPayload>, I>>(object: I): UnblockUserPayload;
579
+ }
580
+ export declare namespace UnblockUserResponse {
581
+ function encode(message: UnblockUserResponse, writer?: _m0.Writer): _m0.Writer;
582
+ function decode(input: _m0.Reader | Uint8Array, length?: number): UnblockUserResponse;
583
+ function fromJSON(object: any): UnblockUserResponse;
584
+ function toJSON(message: UnblockUserResponse): unknown;
585
+ function create<I extends Exact<DeepPartial<UnblockUserResponse>, I>>(base?: I): UnblockUserResponse;
586
+ function fromPartial<I extends Exact<DeepPartial<UnblockUserResponse>, I>>(object: I): UnblockUserResponse;
587
+ }
588
+ export declare namespace UnblockUserResponse_Ok {
589
+ function encode(message: UnblockUserResponse_Ok, writer?: _m0.Writer): _m0.Writer;
590
+ function decode(input: _m0.Reader | Uint8Array, length?: number): UnblockUserResponse_Ok;
591
+ function fromJSON(object: any): UnblockUserResponse_Ok;
592
+ function toJSON(message: UnblockUserResponse_Ok): unknown;
593
+ function create<I extends Exact<DeepPartial<UnblockUserResponse_Ok>, I>>(base?: I): UnblockUserResponse_Ok;
594
+ function fromPartial<I extends Exact<DeepPartial<UnblockUserResponse_Ok>, I>>(object: I): UnblockUserResponse_Ok;
595
+ }
596
+ export declare namespace GetBlockedUsersPayload {
597
+ function encode(message: GetBlockedUsersPayload, writer?: _m0.Writer): _m0.Writer;
598
+ function decode(input: _m0.Reader | Uint8Array, length?: number): GetBlockedUsersPayload;
599
+ function fromJSON(object: any): GetBlockedUsersPayload;
600
+ function toJSON(message: GetBlockedUsersPayload): unknown;
601
+ function create<I extends Exact<DeepPartial<GetBlockedUsersPayload>, I>>(base?: I): GetBlockedUsersPayload;
602
+ function fromPartial<I extends Exact<DeepPartial<GetBlockedUsersPayload>, I>>(object: I): GetBlockedUsersPayload;
603
+ }
604
+ export declare namespace GetBlockedUsersResponse {
605
+ function encode(message: GetBlockedUsersResponse, writer?: _m0.Writer): _m0.Writer;
606
+ function decode(input: _m0.Reader | Uint8Array, length?: number): GetBlockedUsersResponse;
607
+ function fromJSON(object: any): GetBlockedUsersResponse;
608
+ function toJSON(message: GetBlockedUsersResponse): unknown;
609
+ function create<I extends Exact<DeepPartial<GetBlockedUsersResponse>, I>>(base?: I): GetBlockedUsersResponse;
610
+ function fromPartial<I extends Exact<DeepPartial<GetBlockedUsersResponse>, I>>(object: I): GetBlockedUsersResponse;
611
+ }
612
+ export declare namespace GetBlockingStatusResponse {
613
+ function encode(message: GetBlockingStatusResponse, writer?: _m0.Writer): _m0.Writer;
614
+ function decode(input: _m0.Reader | Uint8Array, length?: number): GetBlockingStatusResponse;
615
+ function fromJSON(object: any): GetBlockingStatusResponse;
616
+ function toJSON(message: GetBlockingStatusResponse): unknown;
617
+ function create<I extends Exact<DeepPartial<GetBlockingStatusResponse>, I>>(base?: I): GetBlockingStatusResponse;
618
+ function fromPartial<I extends Exact<DeepPartial<GetBlockingStatusResponse>, I>>(object: I): GetBlockingStatusResponse;
619
+ }
620
+ export declare namespace BlockUpdate {
621
+ function encode(message: BlockUpdate, writer?: _m0.Writer): _m0.Writer;
622
+ function decode(input: _m0.Reader | Uint8Array, length?: number): BlockUpdate;
623
+ function fromJSON(object: any): BlockUpdate;
624
+ function toJSON(message: BlockUpdate): unknown;
625
+ function create<I extends Exact<DeepPartial<BlockUpdate>, I>>(base?: I): BlockUpdate;
626
+ function fromPartial<I extends Exact<DeepPartial<BlockUpdate>, I>>(object: I): BlockUpdate;
627
+ }
394
628
  export type SocialServiceDefinition = typeof SocialServiceDefinition;
395
629
  export declare const SocialServiceDefinition: {
396
630
  readonly name: "SocialService";
@@ -401,7 +635,7 @@ export declare const SocialServiceDefinition: {
401
635
  readonly name: "GetFriends";
402
636
  readonly requestType: typeof GetFriendsPayload;
403
637
  readonly requestStream: false;
404
- readonly responseType: typeof PaginatedUsersResponse;
638
+ readonly responseType: typeof PaginatedFriendsProfilesResponse;
405
639
  readonly responseStream: false;
406
640
  readonly options: {};
407
641
  };
@@ -410,7 +644,7 @@ export declare const SocialServiceDefinition: {
410
644
  readonly name: "GetMutualFriends";
411
645
  readonly requestType: typeof GetMutualFriendsPayload;
412
646
  readonly requestStream: false;
413
- readonly responseType: typeof PaginatedUsersResponse;
647
+ readonly responseType: typeof PaginatedFriendsProfilesResponse;
414
648
  readonly responseStream: false;
415
649
  readonly options: {};
416
650
  };
@@ -450,6 +684,7 @@ export declare const SocialServiceDefinition: {
450
684
  readonly responseStream: true;
451
685
  readonly options: {};
452
686
  };
687
+ /** Get the friendship status between the authenticated user and the one in the parameter */
453
688
  readonly getFriendshipStatus: {
454
689
  readonly name: "GetFriendshipStatus";
455
690
  readonly requestType: typeof GetFriendshipStatusPayload;
@@ -458,6 +693,55 @@ export declare const SocialServiceDefinition: {
458
693
  readonly responseStream: false;
459
694
  readonly options: {};
460
695
  };
696
+ /** Subscribe to connectivity updates of friends: ONLINE, OFFLINE, AWAY */
697
+ readonly subscribeToFriendConnectivityUpdates: {
698
+ readonly name: "SubscribeToFriendConnectivityUpdates";
699
+ readonly requestType: typeof Empty;
700
+ readonly requestStream: false;
701
+ readonly responseType: typeof FriendConnectivityUpdate;
702
+ readonly responseStream: true;
703
+ readonly options: {};
704
+ };
705
+ readonly blockUser: {
706
+ readonly name: "BlockUser";
707
+ readonly requestType: typeof BlockUserPayload;
708
+ readonly requestStream: false;
709
+ readonly responseType: typeof BlockUserResponse;
710
+ readonly responseStream: false;
711
+ readonly options: {};
712
+ };
713
+ readonly unblockUser: {
714
+ readonly name: "UnblockUser";
715
+ readonly requestType: typeof UnblockUserPayload;
716
+ readonly requestStream: false;
717
+ readonly responseType: typeof UnblockUserResponse;
718
+ readonly responseStream: false;
719
+ readonly options: {};
720
+ };
721
+ readonly getBlockedUsers: {
722
+ readonly name: "GetBlockedUsers";
723
+ readonly requestType: typeof GetBlockedUsersPayload;
724
+ readonly requestStream: false;
725
+ readonly responseType: typeof GetBlockedUsersResponse;
726
+ readonly responseStream: false;
727
+ readonly options: {};
728
+ };
729
+ readonly getBlockingStatus: {
730
+ readonly name: "GetBlockingStatus";
731
+ readonly requestType: typeof Empty;
732
+ readonly requestStream: false;
733
+ readonly responseType: typeof GetBlockingStatusResponse;
734
+ readonly responseStream: false;
735
+ readonly options: {};
736
+ };
737
+ readonly subscribeToBlockUpdates: {
738
+ readonly name: "SubscribeToBlockUpdates";
739
+ readonly requestType: typeof Empty;
740
+ readonly requestStream: false;
741
+ readonly responseType: typeof BlockUpdate;
742
+ readonly responseStream: true;
743
+ readonly options: {};
744
+ };
461
745
  };
462
746
  };
463
747
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;