mezon-js-protobuf 1.5.3 → 1.5.4
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.
|
@@ -97,13 +97,13 @@ export interface StrickerListedEvent {
|
|
|
97
97
|
stickers: ClanSticker[];
|
|
98
98
|
}
|
|
99
99
|
export interface ClanSticker {
|
|
100
|
-
id:
|
|
100
|
+
id: string;
|
|
101
101
|
source: string;
|
|
102
102
|
shortname: string;
|
|
103
103
|
category: string;
|
|
104
|
-
creator_id:
|
|
104
|
+
creator_id: string;
|
|
105
105
|
create_time: Date | undefined;
|
|
106
|
-
clan_id:
|
|
106
|
+
clan_id: string;
|
|
107
107
|
}
|
|
108
108
|
export interface ClanEmoji {
|
|
109
109
|
id: string;
|
|
@@ -1132,13 +1132,13 @@ export declare const Envelope: {
|
|
|
1132
1132
|
sticker_listed_event?: {
|
|
1133
1133
|
clan_id?: string | undefined;
|
|
1134
1134
|
stickers?: {
|
|
1135
|
-
id?:
|
|
1135
|
+
id?: string | undefined;
|
|
1136
1136
|
source?: string | undefined;
|
|
1137
1137
|
shortname?: string | undefined;
|
|
1138
1138
|
category?: string | undefined;
|
|
1139
|
-
creator_id?:
|
|
1139
|
+
creator_id?: string | undefined;
|
|
1140
1140
|
create_time?: Date | undefined;
|
|
1141
|
-
clan_id?:
|
|
1141
|
+
clan_id?: string | undefined;
|
|
1142
1142
|
}[] | undefined;
|
|
1143
1143
|
} | undefined;
|
|
1144
1144
|
} & {
|
|
@@ -2226,48 +2226,48 @@ export declare const Envelope: {
|
|
|
2226
2226
|
sticker_listed_event?: ({
|
|
2227
2227
|
clan_id?: string | undefined;
|
|
2228
2228
|
stickers?: {
|
|
2229
|
-
id?:
|
|
2229
|
+
id?: string | undefined;
|
|
2230
2230
|
source?: string | undefined;
|
|
2231
2231
|
shortname?: string | undefined;
|
|
2232
2232
|
category?: string | undefined;
|
|
2233
|
-
creator_id?:
|
|
2233
|
+
creator_id?: string | undefined;
|
|
2234
2234
|
create_time?: Date | undefined;
|
|
2235
|
-
clan_id?:
|
|
2235
|
+
clan_id?: string | undefined;
|
|
2236
2236
|
}[] | undefined;
|
|
2237
2237
|
} & {
|
|
2238
2238
|
clan_id?: string | undefined;
|
|
2239
2239
|
stickers?: ({
|
|
2240
|
-
id?:
|
|
2240
|
+
id?: string | undefined;
|
|
2241
2241
|
source?: string | undefined;
|
|
2242
2242
|
shortname?: string | undefined;
|
|
2243
2243
|
category?: string | undefined;
|
|
2244
|
-
creator_id?:
|
|
2244
|
+
creator_id?: string | undefined;
|
|
2245
2245
|
create_time?: Date | undefined;
|
|
2246
|
-
clan_id?:
|
|
2246
|
+
clan_id?: string | undefined;
|
|
2247
2247
|
}[] & ({
|
|
2248
|
-
id?:
|
|
2248
|
+
id?: string | undefined;
|
|
2249
2249
|
source?: string | undefined;
|
|
2250
2250
|
shortname?: string | undefined;
|
|
2251
2251
|
category?: string | undefined;
|
|
2252
|
-
creator_id?:
|
|
2252
|
+
creator_id?: string | undefined;
|
|
2253
2253
|
create_time?: Date | undefined;
|
|
2254
|
-
clan_id?:
|
|
2254
|
+
clan_id?: string | undefined;
|
|
2255
2255
|
} & {
|
|
2256
|
-
id?:
|
|
2256
|
+
id?: string | undefined;
|
|
2257
2257
|
source?: string | undefined;
|
|
2258
2258
|
shortname?: string | undefined;
|
|
2259
2259
|
category?: string | undefined;
|
|
2260
|
-
creator_id?:
|
|
2260
|
+
creator_id?: string | undefined;
|
|
2261
2261
|
create_time?: Date | undefined;
|
|
2262
|
-
clan_id?:
|
|
2262
|
+
clan_id?: string | undefined;
|
|
2263
2263
|
} & { [K_82 in Exclude<keyof I["sticker_listed_event"]["stickers"][number], keyof ClanSticker>]: never; })[] & { [K_83 in Exclude<keyof I["sticker_listed_event"]["stickers"], keyof {
|
|
2264
|
-
id?:
|
|
2264
|
+
id?: string | undefined;
|
|
2265
2265
|
source?: string | undefined;
|
|
2266
2266
|
shortname?: string | undefined;
|
|
2267
2267
|
category?: string | undefined;
|
|
2268
|
-
creator_id?:
|
|
2268
|
+
creator_id?: string | undefined;
|
|
2269
2269
|
create_time?: Date | undefined;
|
|
2270
|
-
clan_id?:
|
|
2270
|
+
clan_id?: string | undefined;
|
|
2271
2271
|
}[]>]: never; }) | undefined;
|
|
2272
2272
|
} & { [K_84 in Exclude<keyof I["sticker_listed_event"], keyof StrickerListedEvent>]: never; }) | undefined;
|
|
2273
2273
|
} & { [K_85 in Exclude<keyof I, keyof Envelope>]: never; }>(base?: I | undefined): Envelope;
|
|
@@ -2672,13 +2672,13 @@ export declare const Envelope: {
|
|
|
2672
2672
|
sticker_listed_event?: {
|
|
2673
2673
|
clan_id?: string | undefined;
|
|
2674
2674
|
stickers?: {
|
|
2675
|
-
id?:
|
|
2675
|
+
id?: string | undefined;
|
|
2676
2676
|
source?: string | undefined;
|
|
2677
2677
|
shortname?: string | undefined;
|
|
2678
2678
|
category?: string | undefined;
|
|
2679
|
-
creator_id?:
|
|
2679
|
+
creator_id?: string | undefined;
|
|
2680
2680
|
create_time?: Date | undefined;
|
|
2681
|
-
clan_id?:
|
|
2681
|
+
clan_id?: string | undefined;
|
|
2682
2682
|
}[] | undefined;
|
|
2683
2683
|
} | undefined;
|
|
2684
2684
|
} & {
|
|
@@ -3766,48 +3766,48 @@ export declare const Envelope: {
|
|
|
3766
3766
|
sticker_listed_event?: ({
|
|
3767
3767
|
clan_id?: string | undefined;
|
|
3768
3768
|
stickers?: {
|
|
3769
|
-
id?:
|
|
3769
|
+
id?: string | undefined;
|
|
3770
3770
|
source?: string | undefined;
|
|
3771
3771
|
shortname?: string | undefined;
|
|
3772
3772
|
category?: string | undefined;
|
|
3773
|
-
creator_id?:
|
|
3773
|
+
creator_id?: string | undefined;
|
|
3774
3774
|
create_time?: Date | undefined;
|
|
3775
|
-
clan_id?:
|
|
3775
|
+
clan_id?: string | undefined;
|
|
3776
3776
|
}[] | undefined;
|
|
3777
3777
|
} & {
|
|
3778
3778
|
clan_id?: string | undefined;
|
|
3779
3779
|
stickers?: ({
|
|
3780
|
-
id?:
|
|
3780
|
+
id?: string | undefined;
|
|
3781
3781
|
source?: string | undefined;
|
|
3782
3782
|
shortname?: string | undefined;
|
|
3783
3783
|
category?: string | undefined;
|
|
3784
|
-
creator_id?:
|
|
3784
|
+
creator_id?: string | undefined;
|
|
3785
3785
|
create_time?: Date | undefined;
|
|
3786
|
-
clan_id?:
|
|
3786
|
+
clan_id?: string | undefined;
|
|
3787
3787
|
}[] & ({
|
|
3788
|
-
id?:
|
|
3788
|
+
id?: string | undefined;
|
|
3789
3789
|
source?: string | undefined;
|
|
3790
3790
|
shortname?: string | undefined;
|
|
3791
3791
|
category?: string | undefined;
|
|
3792
|
-
creator_id?:
|
|
3792
|
+
creator_id?: string | undefined;
|
|
3793
3793
|
create_time?: Date | undefined;
|
|
3794
|
-
clan_id?:
|
|
3794
|
+
clan_id?: string | undefined;
|
|
3795
3795
|
} & {
|
|
3796
|
-
id?:
|
|
3796
|
+
id?: string | undefined;
|
|
3797
3797
|
source?: string | undefined;
|
|
3798
3798
|
shortname?: string | undefined;
|
|
3799
3799
|
category?: string | undefined;
|
|
3800
|
-
creator_id?:
|
|
3800
|
+
creator_id?: string | undefined;
|
|
3801
3801
|
create_time?: Date | undefined;
|
|
3802
|
-
clan_id?:
|
|
3802
|
+
clan_id?: string | undefined;
|
|
3803
3803
|
} & { [K_168 in Exclude<keyof I_1["sticker_listed_event"]["stickers"][number], keyof ClanSticker>]: never; })[] & { [K_169 in Exclude<keyof I_1["sticker_listed_event"]["stickers"], keyof {
|
|
3804
|
-
id?:
|
|
3804
|
+
id?: string | undefined;
|
|
3805
3805
|
source?: string | undefined;
|
|
3806
3806
|
shortname?: string | undefined;
|
|
3807
3807
|
category?: string | undefined;
|
|
3808
|
-
creator_id?:
|
|
3808
|
+
creator_id?: string | undefined;
|
|
3809
3809
|
create_time?: Date | undefined;
|
|
3810
|
-
clan_id?:
|
|
3810
|
+
clan_id?: string | undefined;
|
|
3811
3811
|
}[]>]: never; }) | undefined;
|
|
3812
3812
|
} & { [K_170 in Exclude<keyof I_1["sticker_listed_event"], keyof StrickerListedEvent>]: never; }) | undefined;
|
|
3813
3813
|
} & { [K_171 in Exclude<keyof I_1, keyof Envelope>]: never; }>(object: I_1): Envelope;
|
|
@@ -3820,95 +3820,95 @@ export declare const StrickerListedEvent: {
|
|
|
3820
3820
|
create<I extends {
|
|
3821
3821
|
clan_id?: string | undefined;
|
|
3822
3822
|
stickers?: {
|
|
3823
|
-
id?:
|
|
3823
|
+
id?: string | undefined;
|
|
3824
3824
|
source?: string | undefined;
|
|
3825
3825
|
shortname?: string | undefined;
|
|
3826
3826
|
category?: string | undefined;
|
|
3827
|
-
creator_id?:
|
|
3827
|
+
creator_id?: string | undefined;
|
|
3828
3828
|
create_time?: Date | undefined;
|
|
3829
|
-
clan_id?:
|
|
3829
|
+
clan_id?: string | undefined;
|
|
3830
3830
|
}[] | undefined;
|
|
3831
3831
|
} & {
|
|
3832
3832
|
clan_id?: string | undefined;
|
|
3833
3833
|
stickers?: ({
|
|
3834
|
-
id?:
|
|
3834
|
+
id?: string | undefined;
|
|
3835
3835
|
source?: string | undefined;
|
|
3836
3836
|
shortname?: string | undefined;
|
|
3837
3837
|
category?: string | undefined;
|
|
3838
|
-
creator_id?:
|
|
3838
|
+
creator_id?: string | undefined;
|
|
3839
3839
|
create_time?: Date | undefined;
|
|
3840
|
-
clan_id?:
|
|
3840
|
+
clan_id?: string | undefined;
|
|
3841
3841
|
}[] & ({
|
|
3842
|
-
id?:
|
|
3842
|
+
id?: string | undefined;
|
|
3843
3843
|
source?: string | undefined;
|
|
3844
3844
|
shortname?: string | undefined;
|
|
3845
3845
|
category?: string | undefined;
|
|
3846
|
-
creator_id?:
|
|
3846
|
+
creator_id?: string | undefined;
|
|
3847
3847
|
create_time?: Date | undefined;
|
|
3848
|
-
clan_id?:
|
|
3848
|
+
clan_id?: string | undefined;
|
|
3849
3849
|
} & {
|
|
3850
|
-
id?:
|
|
3850
|
+
id?: string | undefined;
|
|
3851
3851
|
source?: string | undefined;
|
|
3852
3852
|
shortname?: string | undefined;
|
|
3853
3853
|
category?: string | undefined;
|
|
3854
|
-
creator_id?:
|
|
3854
|
+
creator_id?: string | undefined;
|
|
3855
3855
|
create_time?: Date | undefined;
|
|
3856
|
-
clan_id?:
|
|
3856
|
+
clan_id?: string | undefined;
|
|
3857
3857
|
} & { [K in Exclude<keyof I["stickers"][number], keyof ClanSticker>]: never; })[] & { [K_1 in Exclude<keyof I["stickers"], keyof {
|
|
3858
|
-
id?:
|
|
3858
|
+
id?: string | undefined;
|
|
3859
3859
|
source?: string | undefined;
|
|
3860
3860
|
shortname?: string | undefined;
|
|
3861
3861
|
category?: string | undefined;
|
|
3862
|
-
creator_id?:
|
|
3862
|
+
creator_id?: string | undefined;
|
|
3863
3863
|
create_time?: Date | undefined;
|
|
3864
|
-
clan_id?:
|
|
3864
|
+
clan_id?: string | undefined;
|
|
3865
3865
|
}[]>]: never; }) | undefined;
|
|
3866
3866
|
} & { [K_2 in Exclude<keyof I, keyof StrickerListedEvent>]: never; }>(base?: I | undefined): StrickerListedEvent;
|
|
3867
3867
|
fromPartial<I_1 extends {
|
|
3868
3868
|
clan_id?: string | undefined;
|
|
3869
3869
|
stickers?: {
|
|
3870
|
-
id?:
|
|
3870
|
+
id?: string | undefined;
|
|
3871
3871
|
source?: string | undefined;
|
|
3872
3872
|
shortname?: string | undefined;
|
|
3873
3873
|
category?: string | undefined;
|
|
3874
|
-
creator_id?:
|
|
3874
|
+
creator_id?: string | undefined;
|
|
3875
3875
|
create_time?: Date | undefined;
|
|
3876
|
-
clan_id?:
|
|
3876
|
+
clan_id?: string | undefined;
|
|
3877
3877
|
}[] | undefined;
|
|
3878
3878
|
} & {
|
|
3879
3879
|
clan_id?: string | undefined;
|
|
3880
3880
|
stickers?: ({
|
|
3881
|
-
id?:
|
|
3881
|
+
id?: string | undefined;
|
|
3882
3882
|
source?: string | undefined;
|
|
3883
3883
|
shortname?: string | undefined;
|
|
3884
3884
|
category?: string | undefined;
|
|
3885
|
-
creator_id?:
|
|
3885
|
+
creator_id?: string | undefined;
|
|
3886
3886
|
create_time?: Date | undefined;
|
|
3887
|
-
clan_id?:
|
|
3887
|
+
clan_id?: string | undefined;
|
|
3888
3888
|
}[] & ({
|
|
3889
|
-
id?:
|
|
3889
|
+
id?: string | undefined;
|
|
3890
3890
|
source?: string | undefined;
|
|
3891
3891
|
shortname?: string | undefined;
|
|
3892
3892
|
category?: string | undefined;
|
|
3893
|
-
creator_id?:
|
|
3893
|
+
creator_id?: string | undefined;
|
|
3894
3894
|
create_time?: Date | undefined;
|
|
3895
|
-
clan_id?:
|
|
3895
|
+
clan_id?: string | undefined;
|
|
3896
3896
|
} & {
|
|
3897
|
-
id?:
|
|
3897
|
+
id?: string | undefined;
|
|
3898
3898
|
source?: string | undefined;
|
|
3899
3899
|
shortname?: string | undefined;
|
|
3900
3900
|
category?: string | undefined;
|
|
3901
|
-
creator_id?:
|
|
3901
|
+
creator_id?: string | undefined;
|
|
3902
3902
|
create_time?: Date | undefined;
|
|
3903
|
-
clan_id?:
|
|
3903
|
+
clan_id?: string | undefined;
|
|
3904
3904
|
} & { [K_3 in Exclude<keyof I_1["stickers"][number], keyof ClanSticker>]: never; })[] & { [K_4 in Exclude<keyof I_1["stickers"], keyof {
|
|
3905
|
-
id?:
|
|
3905
|
+
id?: string | undefined;
|
|
3906
3906
|
source?: string | undefined;
|
|
3907
3907
|
shortname?: string | undefined;
|
|
3908
3908
|
category?: string | undefined;
|
|
3909
|
-
creator_id?:
|
|
3909
|
+
creator_id?: string | undefined;
|
|
3910
3910
|
create_time?: Date | undefined;
|
|
3911
|
-
clan_id?:
|
|
3911
|
+
clan_id?: string | undefined;
|
|
3912
3912
|
}[]>]: never; }) | undefined;
|
|
3913
3913
|
} & { [K_5 in Exclude<keyof I_1, keyof StrickerListedEvent>]: never; }>(object: I_1): StrickerListedEvent;
|
|
3914
3914
|
};
|
|
@@ -3918,38 +3918,38 @@ export declare const ClanSticker: {
|
|
|
3918
3918
|
fromJSON(object: any): ClanSticker;
|
|
3919
3919
|
toJSON(message: ClanSticker): unknown;
|
|
3920
3920
|
create<I extends {
|
|
3921
|
-
id?:
|
|
3921
|
+
id?: string | undefined;
|
|
3922
3922
|
source?: string | undefined;
|
|
3923
3923
|
shortname?: string | undefined;
|
|
3924
3924
|
category?: string | undefined;
|
|
3925
|
-
creator_id?:
|
|
3925
|
+
creator_id?: string | undefined;
|
|
3926
3926
|
create_time?: Date | undefined;
|
|
3927
|
-
clan_id?:
|
|
3927
|
+
clan_id?: string | undefined;
|
|
3928
3928
|
} & {
|
|
3929
|
-
id?:
|
|
3929
|
+
id?: string | undefined;
|
|
3930
3930
|
source?: string | undefined;
|
|
3931
3931
|
shortname?: string | undefined;
|
|
3932
3932
|
category?: string | undefined;
|
|
3933
|
-
creator_id?:
|
|
3933
|
+
creator_id?: string | undefined;
|
|
3934
3934
|
create_time?: Date | undefined;
|
|
3935
|
-
clan_id?:
|
|
3935
|
+
clan_id?: string | undefined;
|
|
3936
3936
|
} & { [K in Exclude<keyof I, keyof ClanSticker>]: never; }>(base?: I | undefined): ClanSticker;
|
|
3937
3937
|
fromPartial<I_1 extends {
|
|
3938
|
-
id?:
|
|
3938
|
+
id?: string | undefined;
|
|
3939
3939
|
source?: string | undefined;
|
|
3940
3940
|
shortname?: string | undefined;
|
|
3941
3941
|
category?: string | undefined;
|
|
3942
|
-
creator_id?:
|
|
3942
|
+
creator_id?: string | undefined;
|
|
3943
3943
|
create_time?: Date | undefined;
|
|
3944
|
-
clan_id?:
|
|
3944
|
+
clan_id?: string | undefined;
|
|
3945
3945
|
} & {
|
|
3946
|
-
id?:
|
|
3946
|
+
id?: string | undefined;
|
|
3947
3947
|
source?: string | undefined;
|
|
3948
3948
|
shortname?: string | undefined;
|
|
3949
3949
|
category?: string | undefined;
|
|
3950
|
-
creator_id?:
|
|
3950
|
+
creator_id?: string | undefined;
|
|
3951
3951
|
create_time?: Date | undefined;
|
|
3952
|
-
clan_id?:
|
|
3952
|
+
clan_id?: string | undefined;
|
|
3953
3953
|
} & { [K_1 in Exclude<keyof I_1, keyof ClanSticker>]: never; }>(object: I_1): ClanSticker;
|
|
3954
3954
|
};
|
|
3955
3955
|
export declare const ClanEmoji: {
|
|
@@ -3592,12 +3592,12 @@ var StrickerListedEvent = {
|
|
|
3592
3592
|
}
|
|
3593
3593
|
};
|
|
3594
3594
|
function createBaseClanSticker() {
|
|
3595
|
-
return { id:
|
|
3595
|
+
return { id: "", source: "", shortname: "", category: "", creator_id: "", create_time: void 0, clan_id: "" };
|
|
3596
3596
|
}
|
|
3597
3597
|
var ClanSticker = {
|
|
3598
3598
|
encode(message, writer = import_minimal4.default.Writer.create()) {
|
|
3599
|
-
if (message.id !==
|
|
3600
|
-
writer.uint32(
|
|
3599
|
+
if (message.id !== "") {
|
|
3600
|
+
writer.uint32(10).string(message.id);
|
|
3601
3601
|
}
|
|
3602
3602
|
if (message.source !== "") {
|
|
3603
3603
|
writer.uint32(18).string(message.source);
|
|
@@ -3608,14 +3608,14 @@ var ClanSticker = {
|
|
|
3608
3608
|
if (message.category !== "") {
|
|
3609
3609
|
writer.uint32(34).string(message.category);
|
|
3610
3610
|
}
|
|
3611
|
-
if (message.creator_id !==
|
|
3612
|
-
writer.uint32(
|
|
3611
|
+
if (message.creator_id !== "") {
|
|
3612
|
+
writer.uint32(42).string(message.creator_id);
|
|
3613
3613
|
}
|
|
3614
3614
|
if (message.create_time !== void 0) {
|
|
3615
3615
|
Timestamp.encode(toTimestamp2(message.create_time), writer.uint32(50).fork()).ldelim();
|
|
3616
3616
|
}
|
|
3617
|
-
if (message.clan_id !==
|
|
3618
|
-
writer.uint32(
|
|
3617
|
+
if (message.clan_id !== "") {
|
|
3618
|
+
writer.uint32(58).string(message.clan_id);
|
|
3619
3619
|
}
|
|
3620
3620
|
return writer;
|
|
3621
3621
|
},
|
|
@@ -3627,7 +3627,7 @@ var ClanSticker = {
|
|
|
3627
3627
|
const tag = reader.uint32();
|
|
3628
3628
|
switch (tag >>> 3) {
|
|
3629
3629
|
case 1:
|
|
3630
|
-
message.id =
|
|
3630
|
+
message.id = reader.string();
|
|
3631
3631
|
break;
|
|
3632
3632
|
case 2:
|
|
3633
3633
|
message.source = reader.string();
|
|
@@ -3639,13 +3639,13 @@ var ClanSticker = {
|
|
|
3639
3639
|
message.category = reader.string();
|
|
3640
3640
|
break;
|
|
3641
3641
|
case 5:
|
|
3642
|
-
message.creator_id =
|
|
3642
|
+
message.creator_id = reader.string();
|
|
3643
3643
|
break;
|
|
3644
3644
|
case 6:
|
|
3645
3645
|
message.create_time = fromTimestamp2(Timestamp.decode(reader, reader.uint32()));
|
|
3646
3646
|
break;
|
|
3647
3647
|
case 7:
|
|
3648
|
-
message.clan_id =
|
|
3648
|
+
message.clan_id = reader.string();
|
|
3649
3649
|
break;
|
|
3650
3650
|
default:
|
|
3651
3651
|
reader.skipType(tag & 7);
|
|
@@ -3656,24 +3656,24 @@ var ClanSticker = {
|
|
|
3656
3656
|
},
|
|
3657
3657
|
fromJSON(object) {
|
|
3658
3658
|
return {
|
|
3659
|
-
id: isSet4(object.id) ?
|
|
3659
|
+
id: isSet4(object.id) ? String(object.id) : "",
|
|
3660
3660
|
source: isSet4(object.source) ? String(object.source) : "",
|
|
3661
3661
|
shortname: isSet4(object.shortname) ? String(object.shortname) : "",
|
|
3662
3662
|
category: isSet4(object.category) ? String(object.category) : "",
|
|
3663
|
-
creator_id: isSet4(object.creator_id) ?
|
|
3663
|
+
creator_id: isSet4(object.creator_id) ? String(object.creator_id) : "",
|
|
3664
3664
|
create_time: isSet4(object.create_time) ? fromJsonTimestamp2(object.create_time) : void 0,
|
|
3665
|
-
clan_id: isSet4(object.clan_id) ?
|
|
3665
|
+
clan_id: isSet4(object.clan_id) ? String(object.clan_id) : ""
|
|
3666
3666
|
};
|
|
3667
3667
|
},
|
|
3668
3668
|
toJSON(message) {
|
|
3669
3669
|
const obj = {};
|
|
3670
|
-
message.id !== void 0 && (obj.id =
|
|
3670
|
+
message.id !== void 0 && (obj.id = message.id);
|
|
3671
3671
|
message.source !== void 0 && (obj.source = message.source);
|
|
3672
3672
|
message.shortname !== void 0 && (obj.shortname = message.shortname);
|
|
3673
3673
|
message.category !== void 0 && (obj.category = message.category);
|
|
3674
|
-
message.creator_id !== void 0 && (obj.creator_id =
|
|
3674
|
+
message.creator_id !== void 0 && (obj.creator_id = message.creator_id);
|
|
3675
3675
|
message.create_time !== void 0 && (obj.create_time = message.create_time.toISOString());
|
|
3676
|
-
message.clan_id !== void 0 && (obj.clan_id =
|
|
3676
|
+
message.clan_id !== void 0 && (obj.clan_id = message.clan_id);
|
|
3677
3677
|
return obj;
|
|
3678
3678
|
},
|
|
3679
3679
|
create(base) {
|
|
@@ -3682,13 +3682,13 @@ var ClanSticker = {
|
|
|
3682
3682
|
fromPartial(object) {
|
|
3683
3683
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
3684
3684
|
const message = createBaseClanSticker();
|
|
3685
|
-
message.id = (_a = object.id) != null ? _a :
|
|
3685
|
+
message.id = (_a = object.id) != null ? _a : "";
|
|
3686
3686
|
message.source = (_b = object.source) != null ? _b : "";
|
|
3687
3687
|
message.shortname = (_c = object.shortname) != null ? _c : "";
|
|
3688
3688
|
message.category = (_d = object.category) != null ? _d : "";
|
|
3689
|
-
message.creator_id = (_e = object.creator_id) != null ? _e :
|
|
3689
|
+
message.creator_id = (_e = object.creator_id) != null ? _e : "";
|
|
3690
3690
|
message.create_time = (_f = object.create_time) != null ? _f : void 0;
|
|
3691
|
-
message.clan_id = (_g = object.clan_id) != null ? _g :
|
|
3691
|
+
message.clan_id = (_g = object.clan_id) != null ? _g : "";
|
|
3692
3692
|
return message;
|
|
3693
3693
|
}
|
|
3694
3694
|
};
|
|
@@ -3579,12 +3579,12 @@ var StrickerListedEvent = {
|
|
|
3579
3579
|
}
|
|
3580
3580
|
};
|
|
3581
3581
|
function createBaseClanSticker() {
|
|
3582
|
-
return { id:
|
|
3582
|
+
return { id: "", source: "", shortname: "", category: "", creator_id: "", create_time: void 0, clan_id: "" };
|
|
3583
3583
|
}
|
|
3584
3584
|
var ClanSticker = {
|
|
3585
3585
|
encode(message, writer = import_minimal4.default.Writer.create()) {
|
|
3586
|
-
if (message.id !==
|
|
3587
|
-
writer.uint32(
|
|
3586
|
+
if (message.id !== "") {
|
|
3587
|
+
writer.uint32(10).string(message.id);
|
|
3588
3588
|
}
|
|
3589
3589
|
if (message.source !== "") {
|
|
3590
3590
|
writer.uint32(18).string(message.source);
|
|
@@ -3595,14 +3595,14 @@ var ClanSticker = {
|
|
|
3595
3595
|
if (message.category !== "") {
|
|
3596
3596
|
writer.uint32(34).string(message.category);
|
|
3597
3597
|
}
|
|
3598
|
-
if (message.creator_id !==
|
|
3599
|
-
writer.uint32(
|
|
3598
|
+
if (message.creator_id !== "") {
|
|
3599
|
+
writer.uint32(42).string(message.creator_id);
|
|
3600
3600
|
}
|
|
3601
3601
|
if (message.create_time !== void 0) {
|
|
3602
3602
|
Timestamp.encode(toTimestamp2(message.create_time), writer.uint32(50).fork()).ldelim();
|
|
3603
3603
|
}
|
|
3604
|
-
if (message.clan_id !==
|
|
3605
|
-
writer.uint32(
|
|
3604
|
+
if (message.clan_id !== "") {
|
|
3605
|
+
writer.uint32(58).string(message.clan_id);
|
|
3606
3606
|
}
|
|
3607
3607
|
return writer;
|
|
3608
3608
|
},
|
|
@@ -3614,7 +3614,7 @@ var ClanSticker = {
|
|
|
3614
3614
|
const tag = reader.uint32();
|
|
3615
3615
|
switch (tag >>> 3) {
|
|
3616
3616
|
case 1:
|
|
3617
|
-
message.id =
|
|
3617
|
+
message.id = reader.string();
|
|
3618
3618
|
break;
|
|
3619
3619
|
case 2:
|
|
3620
3620
|
message.source = reader.string();
|
|
@@ -3626,13 +3626,13 @@ var ClanSticker = {
|
|
|
3626
3626
|
message.category = reader.string();
|
|
3627
3627
|
break;
|
|
3628
3628
|
case 5:
|
|
3629
|
-
message.creator_id =
|
|
3629
|
+
message.creator_id = reader.string();
|
|
3630
3630
|
break;
|
|
3631
3631
|
case 6:
|
|
3632
3632
|
message.create_time = fromTimestamp2(Timestamp.decode(reader, reader.uint32()));
|
|
3633
3633
|
break;
|
|
3634
3634
|
case 7:
|
|
3635
|
-
message.clan_id =
|
|
3635
|
+
message.clan_id = reader.string();
|
|
3636
3636
|
break;
|
|
3637
3637
|
default:
|
|
3638
3638
|
reader.skipType(tag & 7);
|
|
@@ -3643,24 +3643,24 @@ var ClanSticker = {
|
|
|
3643
3643
|
},
|
|
3644
3644
|
fromJSON(object) {
|
|
3645
3645
|
return {
|
|
3646
|
-
id: isSet4(object.id) ?
|
|
3646
|
+
id: isSet4(object.id) ? String(object.id) : "",
|
|
3647
3647
|
source: isSet4(object.source) ? String(object.source) : "",
|
|
3648
3648
|
shortname: isSet4(object.shortname) ? String(object.shortname) : "",
|
|
3649
3649
|
category: isSet4(object.category) ? String(object.category) : "",
|
|
3650
|
-
creator_id: isSet4(object.creator_id) ?
|
|
3650
|
+
creator_id: isSet4(object.creator_id) ? String(object.creator_id) : "",
|
|
3651
3651
|
create_time: isSet4(object.create_time) ? fromJsonTimestamp2(object.create_time) : void 0,
|
|
3652
|
-
clan_id: isSet4(object.clan_id) ?
|
|
3652
|
+
clan_id: isSet4(object.clan_id) ? String(object.clan_id) : ""
|
|
3653
3653
|
};
|
|
3654
3654
|
},
|
|
3655
3655
|
toJSON(message) {
|
|
3656
3656
|
const obj = {};
|
|
3657
|
-
message.id !== void 0 && (obj.id =
|
|
3657
|
+
message.id !== void 0 && (obj.id = message.id);
|
|
3658
3658
|
message.source !== void 0 && (obj.source = message.source);
|
|
3659
3659
|
message.shortname !== void 0 && (obj.shortname = message.shortname);
|
|
3660
3660
|
message.category !== void 0 && (obj.category = message.category);
|
|
3661
|
-
message.creator_id !== void 0 && (obj.creator_id =
|
|
3661
|
+
message.creator_id !== void 0 && (obj.creator_id = message.creator_id);
|
|
3662
3662
|
message.create_time !== void 0 && (obj.create_time = message.create_time.toISOString());
|
|
3663
|
-
message.clan_id !== void 0 && (obj.clan_id =
|
|
3663
|
+
message.clan_id !== void 0 && (obj.clan_id = message.clan_id);
|
|
3664
3664
|
return obj;
|
|
3665
3665
|
},
|
|
3666
3666
|
create(base) {
|
|
@@ -3669,13 +3669,13 @@ var ClanSticker = {
|
|
|
3669
3669
|
fromPartial(object) {
|
|
3670
3670
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
3671
3671
|
const message = createBaseClanSticker();
|
|
3672
|
-
message.id = (_a = object.id) != null ? _a :
|
|
3672
|
+
message.id = (_a = object.id) != null ? _a : "";
|
|
3673
3673
|
message.source = (_b = object.source) != null ? _b : "";
|
|
3674
3674
|
message.shortname = (_c = object.shortname) != null ? _c : "";
|
|
3675
3675
|
message.category = (_d = object.category) != null ? _d : "";
|
|
3676
|
-
message.creator_id = (_e = object.creator_id) != null ? _e :
|
|
3676
|
+
message.creator_id = (_e = object.creator_id) != null ? _e : "";
|
|
3677
3677
|
message.create_time = (_f = object.create_time) != null ? _f : void 0;
|
|
3678
|
-
message.clan_id = (_g = object.clan_id) != null ? _g :
|
|
3678
|
+
message.clan_id = (_g = object.clan_id) != null ? _g : "";
|
|
3679
3679
|
return message;
|
|
3680
3680
|
}
|
|
3681
3681
|
};
|
package/package.json
CHANGED
package/rtapi/realtime.ts
CHANGED
|
@@ -190,13 +190,13 @@ export interface StrickerListedEvent {
|
|
|
190
190
|
}
|
|
191
191
|
|
|
192
192
|
export interface ClanSticker {
|
|
193
|
-
id:
|
|
193
|
+
id: string;
|
|
194
194
|
source: string;
|
|
195
195
|
shortname: string;
|
|
196
196
|
category: string;
|
|
197
|
-
creator_id:
|
|
197
|
+
creator_id: string;
|
|
198
198
|
create_time: Date | undefined;
|
|
199
|
-
clan_id:
|
|
199
|
+
clan_id: string;
|
|
200
200
|
}
|
|
201
201
|
|
|
202
202
|
export interface ClanEmoji {
|
|
@@ -1718,13 +1718,13 @@ export const StrickerListedEvent = {
|
|
|
1718
1718
|
};
|
|
1719
1719
|
|
|
1720
1720
|
function createBaseClanSticker(): ClanSticker {
|
|
1721
|
-
return { id:
|
|
1721
|
+
return { id: "", source: "", shortname: "", category: "", creator_id: "", create_time: undefined, clan_id: "" };
|
|
1722
1722
|
}
|
|
1723
1723
|
|
|
1724
1724
|
export const ClanSticker = {
|
|
1725
1725
|
encode(message: ClanSticker, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1726
|
-
if (message.id !==
|
|
1727
|
-
writer.uint32(
|
|
1726
|
+
if (message.id !== "") {
|
|
1727
|
+
writer.uint32(10).string(message.id);
|
|
1728
1728
|
}
|
|
1729
1729
|
if (message.source !== "") {
|
|
1730
1730
|
writer.uint32(18).string(message.source);
|
|
@@ -1735,14 +1735,14 @@ export const ClanSticker = {
|
|
|
1735
1735
|
if (message.category !== "") {
|
|
1736
1736
|
writer.uint32(34).string(message.category);
|
|
1737
1737
|
}
|
|
1738
|
-
if (message.creator_id !==
|
|
1739
|
-
writer.uint32(
|
|
1738
|
+
if (message.creator_id !== "") {
|
|
1739
|
+
writer.uint32(42).string(message.creator_id);
|
|
1740
1740
|
}
|
|
1741
1741
|
if (message.create_time !== undefined) {
|
|
1742
1742
|
Timestamp.encode(toTimestamp(message.create_time), writer.uint32(50).fork()).ldelim();
|
|
1743
1743
|
}
|
|
1744
|
-
if (message.clan_id !==
|
|
1745
|
-
writer.uint32(
|
|
1744
|
+
if (message.clan_id !== "") {
|
|
1745
|
+
writer.uint32(58).string(message.clan_id);
|
|
1746
1746
|
}
|
|
1747
1747
|
return writer;
|
|
1748
1748
|
},
|
|
@@ -1755,7 +1755,7 @@ export const ClanSticker = {
|
|
|
1755
1755
|
const tag = reader.uint32();
|
|
1756
1756
|
switch (tag >>> 3) {
|
|
1757
1757
|
case 1:
|
|
1758
|
-
message.id =
|
|
1758
|
+
message.id = reader.string();
|
|
1759
1759
|
break;
|
|
1760
1760
|
case 2:
|
|
1761
1761
|
message.source = reader.string();
|
|
@@ -1767,13 +1767,13 @@ export const ClanSticker = {
|
|
|
1767
1767
|
message.category = reader.string();
|
|
1768
1768
|
break;
|
|
1769
1769
|
case 5:
|
|
1770
|
-
message.creator_id =
|
|
1770
|
+
message.creator_id = reader.string();
|
|
1771
1771
|
break;
|
|
1772
1772
|
case 6:
|
|
1773
1773
|
message.create_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
1774
1774
|
break;
|
|
1775
1775
|
case 7:
|
|
1776
|
-
message.clan_id =
|
|
1776
|
+
message.clan_id = reader.string();
|
|
1777
1777
|
break;
|
|
1778
1778
|
default:
|
|
1779
1779
|
reader.skipType(tag & 7);
|
|
@@ -1785,25 +1785,25 @@ export const ClanSticker = {
|
|
|
1785
1785
|
|
|
1786
1786
|
fromJSON(object: any): ClanSticker {
|
|
1787
1787
|
return {
|
|
1788
|
-
id: isSet(object.id) ?
|
|
1788
|
+
id: isSet(object.id) ? String(object.id) : "",
|
|
1789
1789
|
source: isSet(object.source) ? String(object.source) : "",
|
|
1790
1790
|
shortname: isSet(object.shortname) ? String(object.shortname) : "",
|
|
1791
1791
|
category: isSet(object.category) ? String(object.category) : "",
|
|
1792
|
-
creator_id: isSet(object.creator_id) ?
|
|
1792
|
+
creator_id: isSet(object.creator_id) ? String(object.creator_id) : "",
|
|
1793
1793
|
create_time: isSet(object.create_time) ? fromJsonTimestamp(object.create_time) : undefined,
|
|
1794
|
-
clan_id: isSet(object.clan_id) ?
|
|
1794
|
+
clan_id: isSet(object.clan_id) ? String(object.clan_id) : "",
|
|
1795
1795
|
};
|
|
1796
1796
|
},
|
|
1797
1797
|
|
|
1798
1798
|
toJSON(message: ClanSticker): unknown {
|
|
1799
1799
|
const obj: any = {};
|
|
1800
|
-
message.id !== undefined && (obj.id =
|
|
1800
|
+
message.id !== undefined && (obj.id = message.id);
|
|
1801
1801
|
message.source !== undefined && (obj.source = message.source);
|
|
1802
1802
|
message.shortname !== undefined && (obj.shortname = message.shortname);
|
|
1803
1803
|
message.category !== undefined && (obj.category = message.category);
|
|
1804
|
-
message.creator_id !== undefined && (obj.creator_id =
|
|
1804
|
+
message.creator_id !== undefined && (obj.creator_id = message.creator_id);
|
|
1805
1805
|
message.create_time !== undefined && (obj.create_time = message.create_time.toISOString());
|
|
1806
|
-
message.clan_id !== undefined && (obj.clan_id =
|
|
1806
|
+
message.clan_id !== undefined && (obj.clan_id = message.clan_id);
|
|
1807
1807
|
return obj;
|
|
1808
1808
|
},
|
|
1809
1809
|
|
|
@@ -1813,13 +1813,13 @@ export const ClanSticker = {
|
|
|
1813
1813
|
|
|
1814
1814
|
fromPartial<I extends Exact<DeepPartial<ClanSticker>, I>>(object: I): ClanSticker {
|
|
1815
1815
|
const message = createBaseClanSticker();
|
|
1816
|
-
message.id = object.id ??
|
|
1816
|
+
message.id = object.id ?? "";
|
|
1817
1817
|
message.source = object.source ?? "";
|
|
1818
1818
|
message.shortname = object.shortname ?? "";
|
|
1819
1819
|
message.category = object.category ?? "";
|
|
1820
|
-
message.creator_id = object.creator_id ??
|
|
1820
|
+
message.creator_id = object.creator_id ?? "";
|
|
1821
1821
|
message.create_time = object.create_time ?? undefined;
|
|
1822
|
-
message.clan_id = object.clan_id ??
|
|
1822
|
+
message.clan_id = object.clan_id ?? "";
|
|
1823
1823
|
return message;
|
|
1824
1824
|
},
|
|
1825
1825
|
};
|