@dcl/protocol 1.0.0-14033250574.commit-0daf6ca → 1.0.0-14129719212.commit-3bf30a3

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.
@@ -23,6 +23,20 @@ export declare enum FriendshipStatus {
23
23
  }
24
24
  export declare function friendshipStatusFromJSON(object: any): FriendshipStatus;
25
25
  export declare function friendshipStatusToJSON(object: FriendshipStatus): string;
26
+ export declare enum PrivateMessagePrivacySetting {
27
+ ALL = 0,
28
+ ONLY_FRIENDS = 1,
29
+ UNRECOGNIZED = -1
30
+ }
31
+ export declare function privateMessagePrivacySettingFromJSON(object: any): PrivateMessagePrivacySetting;
32
+ export declare function privateMessagePrivacySettingToJSON(object: PrivateMessagePrivacySetting): string;
33
+ export declare enum BlockedUsersMessagesVisibilitySetting {
34
+ SHOW_MESSAGES = 0,
35
+ DO_NOT_SHOW_MESSAGES = 1,
36
+ UNRECOGNIZED = -1
37
+ }
38
+ export declare function blockedUsersMessagesVisibilitySettingFromJSON(object: any): BlockedUsersMessagesVisibilitySetting;
39
+ export declare function blockedUsersMessagesVisibilitySettingToJSON(object: BlockedUsersMessagesVisibilitySetting): string;
26
40
  /** Errors */
27
41
  export interface InvalidFriendshipAction {
28
42
  message?: string | undefined;
@@ -250,6 +264,63 @@ export interface UnblockUserResponse {
250
264
  export interface UnblockUserResponse_Ok {
251
265
  profile: BlockedUserProfile | undefined;
252
266
  }
267
+ export interface SocialSettings {
268
+ privateMessagesPrivacy: PrivateMessagePrivacySetting;
269
+ blockedUsersMessagesVisibility: BlockedUsersMessagesVisibilitySetting;
270
+ }
271
+ export interface GetSocialSettingsResponse {
272
+ response?: {
273
+ $case: "ok";
274
+ ok: GetSocialSettingsResponse_Ok;
275
+ } | {
276
+ $case: "internalServerError";
277
+ internalServerError: InternalServerError;
278
+ } | undefined;
279
+ }
280
+ export interface GetSocialSettingsResponse_Ok {
281
+ settings: SocialSettings | undefined;
282
+ }
283
+ export interface UpsertSocialSettingsPayload {
284
+ privateMessagesPrivacy?: PrivateMessagePrivacySetting | undefined;
285
+ blockedUsersMessagesVisibility?: BlockedUsersMessagesVisibilitySetting | undefined;
286
+ }
287
+ export interface UpsertSocialSettingsResponse {
288
+ response?: {
289
+ $case: "ok";
290
+ ok: SocialSettings;
291
+ } | {
292
+ $case: "internalServerError";
293
+ internalServerError: InternalServerError;
294
+ } | {
295
+ $case: "invalidRequest";
296
+ invalidRequest: InvalidRequest;
297
+ } | undefined;
298
+ }
299
+ export interface GetPrivateMessagesSettingsPayload {
300
+ user: User[];
301
+ }
302
+ export interface GetPrivateMessagesSettingsResponse {
303
+ response?: {
304
+ $case: "ok";
305
+ ok: GetPrivateMessagesSettingsResponse_Ok;
306
+ } | {
307
+ $case: "internalServerError";
308
+ internalServerError: InternalServerError;
309
+ } | {
310
+ $case: "invalidRequest";
311
+ invalidRequest: InvalidRequest;
312
+ } | {
313
+ $case: "profileNotFound";
314
+ profileNotFound: ProfileNotFound;
315
+ } | undefined;
316
+ }
317
+ export interface GetPrivateMessagesSettingsResponse_PrivateMessagesSettings {
318
+ user: User | undefined;
319
+ privateMessagesPrivacy: PrivateMessagePrivacySetting;
320
+ }
321
+ export interface GetPrivateMessagesSettingsResponse_Ok {
322
+ settings: GetPrivateMessagesSettingsResponse_PrivateMessagesSettings[];
323
+ }
253
324
  export interface GetBlockedUsersPayload {
254
325
  pagination?: Pagination | undefined;
255
326
  }
@@ -593,6 +664,78 @@ export declare namespace UnblockUserResponse_Ok {
593
664
  function create<I extends Exact<DeepPartial<UnblockUserResponse_Ok>, I>>(base?: I): UnblockUserResponse_Ok;
594
665
  function fromPartial<I extends Exact<DeepPartial<UnblockUserResponse_Ok>, I>>(object: I): UnblockUserResponse_Ok;
595
666
  }
667
+ export declare namespace SocialSettings {
668
+ function encode(message: SocialSettings, writer?: _m0.Writer): _m0.Writer;
669
+ function decode(input: _m0.Reader | Uint8Array, length?: number): SocialSettings;
670
+ function fromJSON(object: any): SocialSettings;
671
+ function toJSON(message: SocialSettings): unknown;
672
+ function create<I extends Exact<DeepPartial<SocialSettings>, I>>(base?: I): SocialSettings;
673
+ function fromPartial<I extends Exact<DeepPartial<SocialSettings>, I>>(object: I): SocialSettings;
674
+ }
675
+ export declare namespace GetSocialSettingsResponse {
676
+ function encode(message: GetSocialSettingsResponse, writer?: _m0.Writer): _m0.Writer;
677
+ function decode(input: _m0.Reader | Uint8Array, length?: number): GetSocialSettingsResponse;
678
+ function fromJSON(object: any): GetSocialSettingsResponse;
679
+ function toJSON(message: GetSocialSettingsResponse): unknown;
680
+ function create<I extends Exact<DeepPartial<GetSocialSettingsResponse>, I>>(base?: I): GetSocialSettingsResponse;
681
+ function fromPartial<I extends Exact<DeepPartial<GetSocialSettingsResponse>, I>>(object: I): GetSocialSettingsResponse;
682
+ }
683
+ export declare namespace GetSocialSettingsResponse_Ok {
684
+ function encode(message: GetSocialSettingsResponse_Ok, writer?: _m0.Writer): _m0.Writer;
685
+ function decode(input: _m0.Reader | Uint8Array, length?: number): GetSocialSettingsResponse_Ok;
686
+ function fromJSON(object: any): GetSocialSettingsResponse_Ok;
687
+ function toJSON(message: GetSocialSettingsResponse_Ok): unknown;
688
+ function create<I extends Exact<DeepPartial<GetSocialSettingsResponse_Ok>, I>>(base?: I): GetSocialSettingsResponse_Ok;
689
+ function fromPartial<I extends Exact<DeepPartial<GetSocialSettingsResponse_Ok>, I>>(object: I): GetSocialSettingsResponse_Ok;
690
+ }
691
+ export declare namespace UpsertSocialSettingsPayload {
692
+ function encode(message: UpsertSocialSettingsPayload, writer?: _m0.Writer): _m0.Writer;
693
+ function decode(input: _m0.Reader | Uint8Array, length?: number): UpsertSocialSettingsPayload;
694
+ function fromJSON(object: any): UpsertSocialSettingsPayload;
695
+ function toJSON(message: UpsertSocialSettingsPayload): unknown;
696
+ function create<I extends Exact<DeepPartial<UpsertSocialSettingsPayload>, I>>(base?: I): UpsertSocialSettingsPayload;
697
+ function fromPartial<I extends Exact<DeepPartial<UpsertSocialSettingsPayload>, I>>(object: I): UpsertSocialSettingsPayload;
698
+ }
699
+ export declare namespace UpsertSocialSettingsResponse {
700
+ function encode(message: UpsertSocialSettingsResponse, writer?: _m0.Writer): _m0.Writer;
701
+ function decode(input: _m0.Reader | Uint8Array, length?: number): UpsertSocialSettingsResponse;
702
+ function fromJSON(object: any): UpsertSocialSettingsResponse;
703
+ function toJSON(message: UpsertSocialSettingsResponse): unknown;
704
+ function create<I extends Exact<DeepPartial<UpsertSocialSettingsResponse>, I>>(base?: I): UpsertSocialSettingsResponse;
705
+ function fromPartial<I extends Exact<DeepPartial<UpsertSocialSettingsResponse>, I>>(object: I): UpsertSocialSettingsResponse;
706
+ }
707
+ export declare namespace GetPrivateMessagesSettingsPayload {
708
+ function encode(message: GetPrivateMessagesSettingsPayload, writer?: _m0.Writer): _m0.Writer;
709
+ function decode(input: _m0.Reader | Uint8Array, length?: number): GetPrivateMessagesSettingsPayload;
710
+ function fromJSON(object: any): GetPrivateMessagesSettingsPayload;
711
+ function toJSON(message: GetPrivateMessagesSettingsPayload): unknown;
712
+ function create<I extends Exact<DeepPartial<GetPrivateMessagesSettingsPayload>, I>>(base?: I): GetPrivateMessagesSettingsPayload;
713
+ function fromPartial<I extends Exact<DeepPartial<GetPrivateMessagesSettingsPayload>, I>>(object: I): GetPrivateMessagesSettingsPayload;
714
+ }
715
+ export declare namespace GetPrivateMessagesSettingsResponse {
716
+ function encode(message: GetPrivateMessagesSettingsResponse, writer?: _m0.Writer): _m0.Writer;
717
+ function decode(input: _m0.Reader | Uint8Array, length?: number): GetPrivateMessagesSettingsResponse;
718
+ function fromJSON(object: any): GetPrivateMessagesSettingsResponse;
719
+ function toJSON(message: GetPrivateMessagesSettingsResponse): unknown;
720
+ function create<I extends Exact<DeepPartial<GetPrivateMessagesSettingsResponse>, I>>(base?: I): GetPrivateMessagesSettingsResponse;
721
+ function fromPartial<I extends Exact<DeepPartial<GetPrivateMessagesSettingsResponse>, I>>(object: I): GetPrivateMessagesSettingsResponse;
722
+ }
723
+ export declare namespace GetPrivateMessagesSettingsResponse_PrivateMessagesSettings {
724
+ function encode(message: GetPrivateMessagesSettingsResponse_PrivateMessagesSettings, writer?: _m0.Writer): _m0.Writer;
725
+ function decode(input: _m0.Reader | Uint8Array, length?: number): GetPrivateMessagesSettingsResponse_PrivateMessagesSettings;
726
+ function fromJSON(object: any): GetPrivateMessagesSettingsResponse_PrivateMessagesSettings;
727
+ function toJSON(message: GetPrivateMessagesSettingsResponse_PrivateMessagesSettings): unknown;
728
+ function create<I extends Exact<DeepPartial<GetPrivateMessagesSettingsResponse_PrivateMessagesSettings>, I>>(base?: I): GetPrivateMessagesSettingsResponse_PrivateMessagesSettings;
729
+ function fromPartial<I extends Exact<DeepPartial<GetPrivateMessagesSettingsResponse_PrivateMessagesSettings>, I>>(object: I): GetPrivateMessagesSettingsResponse_PrivateMessagesSettings;
730
+ }
731
+ export declare namespace GetPrivateMessagesSettingsResponse_Ok {
732
+ function encode(message: GetPrivateMessagesSettingsResponse_Ok, writer?: _m0.Writer): _m0.Writer;
733
+ function decode(input: _m0.Reader | Uint8Array, length?: number): GetPrivateMessagesSettingsResponse_Ok;
734
+ function fromJSON(object: any): GetPrivateMessagesSettingsResponse_Ok;
735
+ function toJSON(message: GetPrivateMessagesSettingsResponse_Ok): unknown;
736
+ function create<I extends Exact<DeepPartial<GetPrivateMessagesSettingsResponse_Ok>, I>>(base?: I): GetPrivateMessagesSettingsResponse_Ok;
737
+ function fromPartial<I extends Exact<DeepPartial<GetPrivateMessagesSettingsResponse_Ok>, I>>(object: I): GetPrivateMessagesSettingsResponse_Ok;
738
+ }
596
739
  export declare namespace GetBlockedUsersPayload {
597
740
  function encode(message: GetBlockedUsersPayload, writer?: _m0.Writer): _m0.Writer;
598
741
  function decode(input: _m0.Reader | Uint8Array, length?: number): GetBlockedUsersPayload;
@@ -742,6 +885,33 @@ export declare const SocialServiceDefinition: {
742
885
  readonly responseStream: true;
743
886
  readonly options: {};
744
887
  };
888
+ /** Get all the social settings for the authenticated user */
889
+ readonly getSocialSettings: {
890
+ readonly name: "GetSocialSettings";
891
+ readonly requestType: typeof Empty;
892
+ readonly requestStream: false;
893
+ readonly responseType: typeof GetSocialSettingsResponse;
894
+ readonly responseStream: false;
895
+ readonly options: {};
896
+ };
897
+ /** Insert or update the social settings for the authenticated user */
898
+ readonly upsertSocialSettings: {
899
+ readonly name: "UpsertSocialSettings";
900
+ readonly requestType: typeof UpsertSocialSettingsPayload;
901
+ readonly requestStream: false;
902
+ readonly responseType: typeof UpsertSocialSettingsResponse;
903
+ readonly responseStream: false;
904
+ readonly options: {};
905
+ };
906
+ /** Get the private messages privacy settings for the requested users */
907
+ readonly getPrivateMessagesSettings: {
908
+ readonly name: "GetPrivateMessagesSettings";
909
+ readonly requestType: typeof GetPrivateMessagesSettingsPayload;
910
+ readonly requestStream: false;
911
+ readonly responseType: typeof GetPrivateMessagesSettingsResponse;
912
+ readonly responseStream: false;
913
+ readonly options: {};
914
+ };
745
915
  };
746
916
  };
747
917
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;