mezon-js-protobuf 1.4.13 → 1.4.15

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/api/api.ts CHANGED
@@ -1002,6 +1002,10 @@ export interface ImportSteamFriendsRequest {
1002
1002
  export interface RegistFcmDeviceTokenRequest {
1003
1003
  /** The token */
1004
1004
  token: string;
1005
+ /** */
1006
+ device_id: string;
1007
+ /** */
1008
+ platform: string;
1005
1009
  }
1006
1010
 
1007
1011
  /** Link Facebook to the current user's account. */
@@ -1968,6 +1972,67 @@ export interface Permission {
1968
1972
  active: number;
1969
1973
  }
1970
1974
 
1975
+ /** Notification setting record */
1976
+ export interface NotificationSetting {
1977
+ /** Notification id */
1978
+ id: string;
1979
+ /** Notification title */
1980
+ notification_setting_type: string;
1981
+ }
1982
+
1983
+ /** Notification channel */
1984
+ export interface NotificationUserChannel {
1985
+ /** Notification id */
1986
+ id: string;
1987
+ /** */
1988
+ notification_setting_type: string;
1989
+ /** */
1990
+ time_mute:
1991
+ | Date
1992
+ | undefined;
1993
+ /** */
1994
+ notification_defaut_id: string;
1995
+ }
1996
+
1997
+ /** */
1998
+ export interface DefaultNotificationClan {
1999
+ /** */
2000
+ clan_id: string;
2001
+ }
2002
+
2003
+ /** */
2004
+ export interface DefaultNotificationCategory {
2005
+ /** */
2006
+ category_id: string;
2007
+ }
2008
+
2009
+ /** */
2010
+ export interface NotificationChannel {
2011
+ /** */
2012
+ channel_id: string;
2013
+ }
2014
+
2015
+ /** */
2016
+ export interface NotificationSettingList {
2017
+ /** A list of notification setting. */
2018
+ notification_setting: NotificationSetting[];
2019
+ }
2020
+
2021
+ /** set notification */
2022
+ export interface SetNotificationRequest {
2023
+ channel_id: string;
2024
+ notification_type: string;
2025
+ time_mute: Date | undefined;
2026
+ notification_default_id: string;
2027
+ }
2028
+
2029
+ /** set default notification */
2030
+ export interface SetDefaultNotificationRequest {
2031
+ clan_id: string;
2032
+ notification_type: string;
2033
+ category_id: string;
2034
+ }
2035
+
1971
2036
  /** A list of role description, usually a result of a list operation. */
1972
2037
  export interface RoleList {
1973
2038
  /** A list of role. */
@@ -7567,7 +7632,7 @@ export const ImportSteamFriendsRequest = {
7567
7632
  };
7568
7633
 
7569
7634
  function createBaseRegistFcmDeviceTokenRequest(): RegistFcmDeviceTokenRequest {
7570
- return { token: "" };
7635
+ return { token: "", device_id: "", platform: "" };
7571
7636
  }
7572
7637
 
7573
7638
  export const RegistFcmDeviceTokenRequest = {
@@ -7575,6 +7640,12 @@ export const RegistFcmDeviceTokenRequest = {
7575
7640
  if (message.token !== "") {
7576
7641
  writer.uint32(10).string(message.token);
7577
7642
  }
7643
+ if (message.device_id !== "") {
7644
+ writer.uint32(18).string(message.device_id);
7645
+ }
7646
+ if (message.platform !== "") {
7647
+ writer.uint32(26).string(message.platform);
7648
+ }
7578
7649
  return writer;
7579
7650
  },
7580
7651
 
@@ -7588,6 +7659,12 @@ export const RegistFcmDeviceTokenRequest = {
7588
7659
  case 1:
7589
7660
  message.token = reader.string();
7590
7661
  break;
7662
+ case 2:
7663
+ message.device_id = reader.string();
7664
+ break;
7665
+ case 3:
7666
+ message.platform = reader.string();
7667
+ break;
7591
7668
  default:
7592
7669
  reader.skipType(tag & 7);
7593
7670
  break;
@@ -7597,12 +7674,18 @@ export const RegistFcmDeviceTokenRequest = {
7597
7674
  },
7598
7675
 
7599
7676
  fromJSON(object: any): RegistFcmDeviceTokenRequest {
7600
- return { token: isSet(object.token) ? String(object.token) : "" };
7677
+ return {
7678
+ token: isSet(object.token) ? String(object.token) : "",
7679
+ device_id: isSet(object.device_id) ? String(object.device_id) : "",
7680
+ platform: isSet(object.platform) ? String(object.platform) : "",
7681
+ };
7601
7682
  },
7602
7683
 
7603
7684
  toJSON(message: RegistFcmDeviceTokenRequest): unknown {
7604
7685
  const obj: any = {};
7605
7686
  message.token !== undefined && (obj.token = message.token);
7687
+ message.device_id !== undefined && (obj.device_id = message.device_id);
7688
+ message.platform !== undefined && (obj.platform = message.platform);
7606
7689
  return obj;
7607
7690
  },
7608
7691
 
@@ -7613,6 +7696,8 @@ export const RegistFcmDeviceTokenRequest = {
7613
7696
  fromPartial<I extends Exact<DeepPartial<RegistFcmDeviceTokenRequest>, I>>(object: I): RegistFcmDeviceTokenRequest {
7614
7697
  const message = createBaseRegistFcmDeviceTokenRequest();
7615
7698
  message.token = object.token ?? "";
7699
+ message.device_id = object.device_id ?? "";
7700
+ message.platform = object.platform ?? "";
7616
7701
  return message;
7617
7702
  },
7618
7703
  };
@@ -13608,6 +13693,519 @@ export const Permission = {
13608
13693
  },
13609
13694
  };
13610
13695
 
13696
+ function createBaseNotificationSetting(): NotificationSetting {
13697
+ return { id: "", notification_setting_type: "" };
13698
+ }
13699
+
13700
+ export const NotificationSetting = {
13701
+ encode(message: NotificationSetting, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
13702
+ if (message.id !== "") {
13703
+ writer.uint32(10).string(message.id);
13704
+ }
13705
+ if (message.notification_setting_type !== "") {
13706
+ writer.uint32(18).string(message.notification_setting_type);
13707
+ }
13708
+ return writer;
13709
+ },
13710
+
13711
+ decode(input: _m0.Reader | Uint8Array, length?: number): NotificationSetting {
13712
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
13713
+ let end = length === undefined ? reader.len : reader.pos + length;
13714
+ const message = createBaseNotificationSetting();
13715
+ while (reader.pos < end) {
13716
+ const tag = reader.uint32();
13717
+ switch (tag >>> 3) {
13718
+ case 1:
13719
+ message.id = reader.string();
13720
+ break;
13721
+ case 2:
13722
+ message.notification_setting_type = reader.string();
13723
+ break;
13724
+ default:
13725
+ reader.skipType(tag & 7);
13726
+ break;
13727
+ }
13728
+ }
13729
+ return message;
13730
+ },
13731
+
13732
+ fromJSON(object: any): NotificationSetting {
13733
+ return {
13734
+ id: isSet(object.id) ? String(object.id) : "",
13735
+ notification_setting_type: isSet(object.notification_setting_type)
13736
+ ? String(object.notification_setting_type)
13737
+ : "",
13738
+ };
13739
+ },
13740
+
13741
+ toJSON(message: NotificationSetting): unknown {
13742
+ const obj: any = {};
13743
+ message.id !== undefined && (obj.id = message.id);
13744
+ message.notification_setting_type !== undefined &&
13745
+ (obj.notification_setting_type = message.notification_setting_type);
13746
+ return obj;
13747
+ },
13748
+
13749
+ create<I extends Exact<DeepPartial<NotificationSetting>, I>>(base?: I): NotificationSetting {
13750
+ return NotificationSetting.fromPartial(base ?? {});
13751
+ },
13752
+
13753
+ fromPartial<I extends Exact<DeepPartial<NotificationSetting>, I>>(object: I): NotificationSetting {
13754
+ const message = createBaseNotificationSetting();
13755
+ message.id = object.id ?? "";
13756
+ message.notification_setting_type = object.notification_setting_type ?? "";
13757
+ return message;
13758
+ },
13759
+ };
13760
+
13761
+ function createBaseNotificationUserChannel(): NotificationUserChannel {
13762
+ return { id: "", notification_setting_type: "", time_mute: undefined, notification_defaut_id: "" };
13763
+ }
13764
+
13765
+ export const NotificationUserChannel = {
13766
+ encode(message: NotificationUserChannel, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
13767
+ if (message.id !== "") {
13768
+ writer.uint32(10).string(message.id);
13769
+ }
13770
+ if (message.notification_setting_type !== "") {
13771
+ writer.uint32(18).string(message.notification_setting_type);
13772
+ }
13773
+ if (message.time_mute !== undefined) {
13774
+ Timestamp.encode(toTimestamp(message.time_mute), writer.uint32(26).fork()).ldelim();
13775
+ }
13776
+ if (message.notification_defaut_id !== "") {
13777
+ writer.uint32(34).string(message.notification_defaut_id);
13778
+ }
13779
+ return writer;
13780
+ },
13781
+
13782
+ decode(input: _m0.Reader | Uint8Array, length?: number): NotificationUserChannel {
13783
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
13784
+ let end = length === undefined ? reader.len : reader.pos + length;
13785
+ const message = createBaseNotificationUserChannel();
13786
+ while (reader.pos < end) {
13787
+ const tag = reader.uint32();
13788
+ switch (tag >>> 3) {
13789
+ case 1:
13790
+ message.id = reader.string();
13791
+ break;
13792
+ case 2:
13793
+ message.notification_setting_type = reader.string();
13794
+ break;
13795
+ case 3:
13796
+ message.time_mute = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
13797
+ break;
13798
+ case 4:
13799
+ message.notification_defaut_id = reader.string();
13800
+ break;
13801
+ default:
13802
+ reader.skipType(tag & 7);
13803
+ break;
13804
+ }
13805
+ }
13806
+ return message;
13807
+ },
13808
+
13809
+ fromJSON(object: any): NotificationUserChannel {
13810
+ return {
13811
+ id: isSet(object.id) ? String(object.id) : "",
13812
+ notification_setting_type: isSet(object.notification_setting_type)
13813
+ ? String(object.notification_setting_type)
13814
+ : "",
13815
+ time_mute: isSet(object.time_mute) ? fromJsonTimestamp(object.time_mute) : undefined,
13816
+ notification_defaut_id: isSet(object.notification_defaut_id) ? String(object.notification_defaut_id) : "",
13817
+ };
13818
+ },
13819
+
13820
+ toJSON(message: NotificationUserChannel): unknown {
13821
+ const obj: any = {};
13822
+ message.id !== undefined && (obj.id = message.id);
13823
+ message.notification_setting_type !== undefined &&
13824
+ (obj.notification_setting_type = message.notification_setting_type);
13825
+ message.time_mute !== undefined && (obj.time_mute = message.time_mute.toISOString());
13826
+ message.notification_defaut_id !== undefined && (obj.notification_defaut_id = message.notification_defaut_id);
13827
+ return obj;
13828
+ },
13829
+
13830
+ create<I extends Exact<DeepPartial<NotificationUserChannel>, I>>(base?: I): NotificationUserChannel {
13831
+ return NotificationUserChannel.fromPartial(base ?? {});
13832
+ },
13833
+
13834
+ fromPartial<I extends Exact<DeepPartial<NotificationUserChannel>, I>>(object: I): NotificationUserChannel {
13835
+ const message = createBaseNotificationUserChannel();
13836
+ message.id = object.id ?? "";
13837
+ message.notification_setting_type = object.notification_setting_type ?? "";
13838
+ message.time_mute = object.time_mute ?? undefined;
13839
+ message.notification_defaut_id = object.notification_defaut_id ?? "";
13840
+ return message;
13841
+ },
13842
+ };
13843
+
13844
+ function createBaseDefaultNotificationClan(): DefaultNotificationClan {
13845
+ return { clan_id: "" };
13846
+ }
13847
+
13848
+ export const DefaultNotificationClan = {
13849
+ encode(message: DefaultNotificationClan, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
13850
+ if (message.clan_id !== "") {
13851
+ writer.uint32(10).string(message.clan_id);
13852
+ }
13853
+ return writer;
13854
+ },
13855
+
13856
+ decode(input: _m0.Reader | Uint8Array, length?: number): DefaultNotificationClan {
13857
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
13858
+ let end = length === undefined ? reader.len : reader.pos + length;
13859
+ const message = createBaseDefaultNotificationClan();
13860
+ while (reader.pos < end) {
13861
+ const tag = reader.uint32();
13862
+ switch (tag >>> 3) {
13863
+ case 1:
13864
+ message.clan_id = reader.string();
13865
+ break;
13866
+ default:
13867
+ reader.skipType(tag & 7);
13868
+ break;
13869
+ }
13870
+ }
13871
+ return message;
13872
+ },
13873
+
13874
+ fromJSON(object: any): DefaultNotificationClan {
13875
+ return { clan_id: isSet(object.clan_id) ? String(object.clan_id) : "" };
13876
+ },
13877
+
13878
+ toJSON(message: DefaultNotificationClan): unknown {
13879
+ const obj: any = {};
13880
+ message.clan_id !== undefined && (obj.clan_id = message.clan_id);
13881
+ return obj;
13882
+ },
13883
+
13884
+ create<I extends Exact<DeepPartial<DefaultNotificationClan>, I>>(base?: I): DefaultNotificationClan {
13885
+ return DefaultNotificationClan.fromPartial(base ?? {});
13886
+ },
13887
+
13888
+ fromPartial<I extends Exact<DeepPartial<DefaultNotificationClan>, I>>(object: I): DefaultNotificationClan {
13889
+ const message = createBaseDefaultNotificationClan();
13890
+ message.clan_id = object.clan_id ?? "";
13891
+ return message;
13892
+ },
13893
+ };
13894
+
13895
+ function createBaseDefaultNotificationCategory(): DefaultNotificationCategory {
13896
+ return { category_id: "" };
13897
+ }
13898
+
13899
+ export const DefaultNotificationCategory = {
13900
+ encode(message: DefaultNotificationCategory, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
13901
+ if (message.category_id !== "") {
13902
+ writer.uint32(10).string(message.category_id);
13903
+ }
13904
+ return writer;
13905
+ },
13906
+
13907
+ decode(input: _m0.Reader | Uint8Array, length?: number): DefaultNotificationCategory {
13908
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
13909
+ let end = length === undefined ? reader.len : reader.pos + length;
13910
+ const message = createBaseDefaultNotificationCategory();
13911
+ while (reader.pos < end) {
13912
+ const tag = reader.uint32();
13913
+ switch (tag >>> 3) {
13914
+ case 1:
13915
+ message.category_id = reader.string();
13916
+ break;
13917
+ default:
13918
+ reader.skipType(tag & 7);
13919
+ break;
13920
+ }
13921
+ }
13922
+ return message;
13923
+ },
13924
+
13925
+ fromJSON(object: any): DefaultNotificationCategory {
13926
+ return { category_id: isSet(object.category_id) ? String(object.category_id) : "" };
13927
+ },
13928
+
13929
+ toJSON(message: DefaultNotificationCategory): unknown {
13930
+ const obj: any = {};
13931
+ message.category_id !== undefined && (obj.category_id = message.category_id);
13932
+ return obj;
13933
+ },
13934
+
13935
+ create<I extends Exact<DeepPartial<DefaultNotificationCategory>, I>>(base?: I): DefaultNotificationCategory {
13936
+ return DefaultNotificationCategory.fromPartial(base ?? {});
13937
+ },
13938
+
13939
+ fromPartial<I extends Exact<DeepPartial<DefaultNotificationCategory>, I>>(object: I): DefaultNotificationCategory {
13940
+ const message = createBaseDefaultNotificationCategory();
13941
+ message.category_id = object.category_id ?? "";
13942
+ return message;
13943
+ },
13944
+ };
13945
+
13946
+ function createBaseNotificationChannel(): NotificationChannel {
13947
+ return { channel_id: "" };
13948
+ }
13949
+
13950
+ export const NotificationChannel = {
13951
+ encode(message: NotificationChannel, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
13952
+ if (message.channel_id !== "") {
13953
+ writer.uint32(10).string(message.channel_id);
13954
+ }
13955
+ return writer;
13956
+ },
13957
+
13958
+ decode(input: _m0.Reader | Uint8Array, length?: number): NotificationChannel {
13959
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
13960
+ let end = length === undefined ? reader.len : reader.pos + length;
13961
+ const message = createBaseNotificationChannel();
13962
+ while (reader.pos < end) {
13963
+ const tag = reader.uint32();
13964
+ switch (tag >>> 3) {
13965
+ case 1:
13966
+ message.channel_id = reader.string();
13967
+ break;
13968
+ default:
13969
+ reader.skipType(tag & 7);
13970
+ break;
13971
+ }
13972
+ }
13973
+ return message;
13974
+ },
13975
+
13976
+ fromJSON(object: any): NotificationChannel {
13977
+ return { channel_id: isSet(object.channel_id) ? String(object.channel_id) : "" };
13978
+ },
13979
+
13980
+ toJSON(message: NotificationChannel): unknown {
13981
+ const obj: any = {};
13982
+ message.channel_id !== undefined && (obj.channel_id = message.channel_id);
13983
+ return obj;
13984
+ },
13985
+
13986
+ create<I extends Exact<DeepPartial<NotificationChannel>, I>>(base?: I): NotificationChannel {
13987
+ return NotificationChannel.fromPartial(base ?? {});
13988
+ },
13989
+
13990
+ fromPartial<I extends Exact<DeepPartial<NotificationChannel>, I>>(object: I): NotificationChannel {
13991
+ const message = createBaseNotificationChannel();
13992
+ message.channel_id = object.channel_id ?? "";
13993
+ return message;
13994
+ },
13995
+ };
13996
+
13997
+ function createBaseNotificationSettingList(): NotificationSettingList {
13998
+ return { notification_setting: [] };
13999
+ }
14000
+
14001
+ export const NotificationSettingList = {
14002
+ encode(message: NotificationSettingList, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
14003
+ for (const v of message.notification_setting) {
14004
+ NotificationSetting.encode(v!, writer.uint32(10).fork()).ldelim();
14005
+ }
14006
+ return writer;
14007
+ },
14008
+
14009
+ decode(input: _m0.Reader | Uint8Array, length?: number): NotificationSettingList {
14010
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
14011
+ let end = length === undefined ? reader.len : reader.pos + length;
14012
+ const message = createBaseNotificationSettingList();
14013
+ while (reader.pos < end) {
14014
+ const tag = reader.uint32();
14015
+ switch (tag >>> 3) {
14016
+ case 1:
14017
+ message.notification_setting.push(NotificationSetting.decode(reader, reader.uint32()));
14018
+ break;
14019
+ default:
14020
+ reader.skipType(tag & 7);
14021
+ break;
14022
+ }
14023
+ }
14024
+ return message;
14025
+ },
14026
+
14027
+ fromJSON(object: any): NotificationSettingList {
14028
+ return {
14029
+ notification_setting: Array.isArray(object?.notification_setting)
14030
+ ? object.notification_setting.map((e: any) => NotificationSetting.fromJSON(e))
14031
+ : [],
14032
+ };
14033
+ },
14034
+
14035
+ toJSON(message: NotificationSettingList): unknown {
14036
+ const obj: any = {};
14037
+ if (message.notification_setting) {
14038
+ obj.notification_setting = message.notification_setting.map((e) => e ? NotificationSetting.toJSON(e) : undefined);
14039
+ } else {
14040
+ obj.notification_setting = [];
14041
+ }
14042
+ return obj;
14043
+ },
14044
+
14045
+ create<I extends Exact<DeepPartial<NotificationSettingList>, I>>(base?: I): NotificationSettingList {
14046
+ return NotificationSettingList.fromPartial(base ?? {});
14047
+ },
14048
+
14049
+ fromPartial<I extends Exact<DeepPartial<NotificationSettingList>, I>>(object: I): NotificationSettingList {
14050
+ const message = createBaseNotificationSettingList();
14051
+ message.notification_setting = object.notification_setting?.map((e) => NotificationSetting.fromPartial(e)) || [];
14052
+ return message;
14053
+ },
14054
+ };
14055
+
14056
+ function createBaseSetNotificationRequest(): SetNotificationRequest {
14057
+ return { channel_id: "", notification_type: "", time_mute: undefined, notification_default_id: "" };
14058
+ }
14059
+
14060
+ export const SetNotificationRequest = {
14061
+ encode(message: SetNotificationRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
14062
+ if (message.channel_id !== "") {
14063
+ writer.uint32(10).string(message.channel_id);
14064
+ }
14065
+ if (message.notification_type !== "") {
14066
+ writer.uint32(18).string(message.notification_type);
14067
+ }
14068
+ if (message.time_mute !== undefined) {
14069
+ Timestamp.encode(toTimestamp(message.time_mute), writer.uint32(26).fork()).ldelim();
14070
+ }
14071
+ if (message.notification_default_id !== "") {
14072
+ writer.uint32(34).string(message.notification_default_id);
14073
+ }
14074
+ return writer;
14075
+ },
14076
+
14077
+ decode(input: _m0.Reader | Uint8Array, length?: number): SetNotificationRequest {
14078
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
14079
+ let end = length === undefined ? reader.len : reader.pos + length;
14080
+ const message = createBaseSetNotificationRequest();
14081
+ while (reader.pos < end) {
14082
+ const tag = reader.uint32();
14083
+ switch (tag >>> 3) {
14084
+ case 1:
14085
+ message.channel_id = reader.string();
14086
+ break;
14087
+ case 2:
14088
+ message.notification_type = reader.string();
14089
+ break;
14090
+ case 3:
14091
+ message.time_mute = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
14092
+ break;
14093
+ case 4:
14094
+ message.notification_default_id = reader.string();
14095
+ break;
14096
+ default:
14097
+ reader.skipType(tag & 7);
14098
+ break;
14099
+ }
14100
+ }
14101
+ return message;
14102
+ },
14103
+
14104
+ fromJSON(object: any): SetNotificationRequest {
14105
+ return {
14106
+ channel_id: isSet(object.channel_id) ? String(object.channel_id) : "",
14107
+ notification_type: isSet(object.notification_type) ? String(object.notification_type) : "",
14108
+ time_mute: isSet(object.time_mute) ? fromJsonTimestamp(object.time_mute) : undefined,
14109
+ notification_default_id: isSet(object.notification_default_id) ? String(object.notification_default_id) : "",
14110
+ };
14111
+ },
14112
+
14113
+ toJSON(message: SetNotificationRequest): unknown {
14114
+ const obj: any = {};
14115
+ message.channel_id !== undefined && (obj.channel_id = message.channel_id);
14116
+ message.notification_type !== undefined && (obj.notification_type = message.notification_type);
14117
+ message.time_mute !== undefined && (obj.time_mute = message.time_mute.toISOString());
14118
+ message.notification_default_id !== undefined && (obj.notification_default_id = message.notification_default_id);
14119
+ return obj;
14120
+ },
14121
+
14122
+ create<I extends Exact<DeepPartial<SetNotificationRequest>, I>>(base?: I): SetNotificationRequest {
14123
+ return SetNotificationRequest.fromPartial(base ?? {});
14124
+ },
14125
+
14126
+ fromPartial<I extends Exact<DeepPartial<SetNotificationRequest>, I>>(object: I): SetNotificationRequest {
14127
+ const message = createBaseSetNotificationRequest();
14128
+ message.channel_id = object.channel_id ?? "";
14129
+ message.notification_type = object.notification_type ?? "";
14130
+ message.time_mute = object.time_mute ?? undefined;
14131
+ message.notification_default_id = object.notification_default_id ?? "";
14132
+ return message;
14133
+ },
14134
+ };
14135
+
14136
+ function createBaseSetDefaultNotificationRequest(): SetDefaultNotificationRequest {
14137
+ return { clan_id: "", notification_type: "", category_id: "" };
14138
+ }
14139
+
14140
+ export const SetDefaultNotificationRequest = {
14141
+ encode(message: SetDefaultNotificationRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
14142
+ if (message.clan_id !== "") {
14143
+ writer.uint32(10).string(message.clan_id);
14144
+ }
14145
+ if (message.notification_type !== "") {
14146
+ writer.uint32(18).string(message.notification_type);
14147
+ }
14148
+ if (message.category_id !== "") {
14149
+ writer.uint32(26).string(message.category_id);
14150
+ }
14151
+ return writer;
14152
+ },
14153
+
14154
+ decode(input: _m0.Reader | Uint8Array, length?: number): SetDefaultNotificationRequest {
14155
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
14156
+ let end = length === undefined ? reader.len : reader.pos + length;
14157
+ const message = createBaseSetDefaultNotificationRequest();
14158
+ while (reader.pos < end) {
14159
+ const tag = reader.uint32();
14160
+ switch (tag >>> 3) {
14161
+ case 1:
14162
+ message.clan_id = reader.string();
14163
+ break;
14164
+ case 2:
14165
+ message.notification_type = reader.string();
14166
+ break;
14167
+ case 3:
14168
+ message.category_id = reader.string();
14169
+ break;
14170
+ default:
14171
+ reader.skipType(tag & 7);
14172
+ break;
14173
+ }
14174
+ }
14175
+ return message;
14176
+ },
14177
+
14178
+ fromJSON(object: any): SetDefaultNotificationRequest {
14179
+ return {
14180
+ clan_id: isSet(object.clan_id) ? String(object.clan_id) : "",
14181
+ notification_type: isSet(object.notification_type) ? String(object.notification_type) : "",
14182
+ category_id: isSet(object.category_id) ? String(object.category_id) : "",
14183
+ };
14184
+ },
14185
+
14186
+ toJSON(message: SetDefaultNotificationRequest): unknown {
14187
+ const obj: any = {};
14188
+ message.clan_id !== undefined && (obj.clan_id = message.clan_id);
14189
+ message.notification_type !== undefined && (obj.notification_type = message.notification_type);
14190
+ message.category_id !== undefined && (obj.category_id = message.category_id);
14191
+ return obj;
14192
+ },
14193
+
14194
+ create<I extends Exact<DeepPartial<SetDefaultNotificationRequest>, I>>(base?: I): SetDefaultNotificationRequest {
14195
+ return SetDefaultNotificationRequest.fromPartial(base ?? {});
14196
+ },
14197
+
14198
+ fromPartial<I extends Exact<DeepPartial<SetDefaultNotificationRequest>, I>>(
14199
+ object: I,
14200
+ ): SetDefaultNotificationRequest {
14201
+ const message = createBaseSetDefaultNotificationRequest();
14202
+ message.clan_id = object.clan_id ?? "";
14203
+ message.notification_type = object.notification_type ?? "";
14204
+ message.category_id = object.category_id ?? "";
14205
+ return message;
14206
+ },
14207
+ };
14208
+
13611
14209
  function createBaseRoleList(): RoleList {
13612
14210
  return { roles: [], next_cursor: "", prev_cursor: "", cacheable_cursor: "" };
13613
14211
  }