mezon-js-protobuf 1.6.26 → 1.6.28
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 +515 -2
- package/dist/mezon-js-protobuf/api/api.d.ts +324 -0
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +219 -115
- package/dist/mezon-js-protobuf.cjs.js +165 -12
- package/dist/mezon-js-protobuf.esm.mjs +165 -12
- package/package.json +1 -1
- package/rtapi/realtime.ts +195 -10
package/api/api.ts
CHANGED
|
@@ -1381,6 +1381,8 @@ export interface UpdateAccountRequest {
|
|
|
1381
1381
|
| undefined;
|
|
1382
1382
|
/** update about me */
|
|
1383
1383
|
about_me: string;
|
|
1384
|
+
/** date of birth */
|
|
1385
|
+
dob: Date | undefined;
|
|
1384
1386
|
}
|
|
1385
1387
|
|
|
1386
1388
|
/** Update fields in a given group. */
|
|
@@ -1462,6 +1464,8 @@ export interface User {
|
|
|
1462
1464
|
| undefined;
|
|
1463
1465
|
/** platform */
|
|
1464
1466
|
is_mobile: boolean;
|
|
1467
|
+
/** */
|
|
1468
|
+
dob: Date | undefined;
|
|
1465
1469
|
}
|
|
1466
1470
|
|
|
1467
1471
|
/** A list of groups belonging to a user, along with the user's role in each group. */
|
|
@@ -1865,6 +1869,12 @@ export interface ChannelDescription {
|
|
|
1865
1869
|
app_url: string;
|
|
1866
1870
|
/** channel all message */
|
|
1867
1871
|
is_mute: boolean;
|
|
1872
|
+
/** age restricted */
|
|
1873
|
+
age_restricted: number;
|
|
1874
|
+
/** topic */
|
|
1875
|
+
topic: string;
|
|
1876
|
+
/** e2ee */
|
|
1877
|
+
e2ee: number;
|
|
1868
1878
|
}
|
|
1869
1879
|
|
|
1870
1880
|
/** A list of channel description, usually a result of a list operation. */
|
|
@@ -1965,7 +1975,15 @@ export interface UpdateChannelDescRequest {
|
|
|
1965
1975
|
| string
|
|
1966
1976
|
| undefined;
|
|
1967
1977
|
/** app url for channel type app */
|
|
1968
|
-
app_url:
|
|
1978
|
+
app_url:
|
|
1979
|
+
| string
|
|
1980
|
+
| undefined;
|
|
1981
|
+
/** topic */
|
|
1982
|
+
topic: string;
|
|
1983
|
+
/** */
|
|
1984
|
+
age_restricted: number;
|
|
1985
|
+
/** */
|
|
1986
|
+
e2ee: number;
|
|
1969
1987
|
}
|
|
1970
1988
|
|
|
1971
1989
|
/** Update fields in a given channel. */
|
|
@@ -3651,6 +3669,40 @@ export interface ClanWebhookHandlerRequest {
|
|
|
3651
3669
|
username: string;
|
|
3652
3670
|
}
|
|
3653
3671
|
|
|
3672
|
+
export interface OnboardingSteps {
|
|
3673
|
+
/** id. */
|
|
3674
|
+
id: string;
|
|
3675
|
+
/** user id. */
|
|
3676
|
+
user_id: string;
|
|
3677
|
+
/** clan id. */
|
|
3678
|
+
clan_id: string;
|
|
3679
|
+
/** onboarding step. */
|
|
3680
|
+
onboarding_step: number;
|
|
3681
|
+
}
|
|
3682
|
+
|
|
3683
|
+
export interface ListOnboardingStepResponse {
|
|
3684
|
+
/** list onboarding steps. */
|
|
3685
|
+
list_onboarding_step: OnboardingSteps[];
|
|
3686
|
+
}
|
|
3687
|
+
|
|
3688
|
+
export interface ListOnboardingStepRequest {
|
|
3689
|
+
/** clan id. */
|
|
3690
|
+
clan_id: string;
|
|
3691
|
+
/** limit */
|
|
3692
|
+
limit:
|
|
3693
|
+
| number
|
|
3694
|
+
| undefined;
|
|
3695
|
+
/** page */
|
|
3696
|
+
page: number | undefined;
|
|
3697
|
+
}
|
|
3698
|
+
|
|
3699
|
+
export interface UpdateOnboardingStepRequest {
|
|
3700
|
+
/** clan id. */
|
|
3701
|
+
clan_id: string;
|
|
3702
|
+
/** onboarding step. */
|
|
3703
|
+
onboarding_step: number | undefined;
|
|
3704
|
+
}
|
|
3705
|
+
|
|
3654
3706
|
function createBaseAccount(): Account {
|
|
3655
3707
|
return {
|
|
3656
3708
|
user: undefined,
|
|
@@ -12982,6 +13034,7 @@ function createBaseUpdateAccountRequest(): UpdateAccountRequest {
|
|
|
12982
13034
|
location: undefined,
|
|
12983
13035
|
timezone: undefined,
|
|
12984
13036
|
about_me: "",
|
|
13037
|
+
dob: undefined,
|
|
12985
13038
|
};
|
|
12986
13039
|
}
|
|
12987
13040
|
|
|
@@ -13008,6 +13061,9 @@ export const UpdateAccountRequest = {
|
|
|
13008
13061
|
if (message.about_me !== "") {
|
|
13009
13062
|
writer.uint32(58).string(message.about_me);
|
|
13010
13063
|
}
|
|
13064
|
+
if (message.dob !== undefined) {
|
|
13065
|
+
Timestamp.encode(toTimestamp(message.dob), writer.uint32(66).fork()).ldelim();
|
|
13066
|
+
}
|
|
13011
13067
|
return writer;
|
|
13012
13068
|
},
|
|
13013
13069
|
|
|
@@ -13067,6 +13123,13 @@ export const UpdateAccountRequest = {
|
|
|
13067
13123
|
|
|
13068
13124
|
message.about_me = reader.string();
|
|
13069
13125
|
continue;
|
|
13126
|
+
case 8:
|
|
13127
|
+
if (tag !== 66) {
|
|
13128
|
+
break;
|
|
13129
|
+
}
|
|
13130
|
+
|
|
13131
|
+
message.dob = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
13132
|
+
continue;
|
|
13070
13133
|
}
|
|
13071
13134
|
if ((tag & 7) === 4 || tag === 0) {
|
|
13072
13135
|
break;
|
|
@@ -13085,6 +13148,7 @@ export const UpdateAccountRequest = {
|
|
|
13085
13148
|
location: isSet(object.location) ? String(object.location) : undefined,
|
|
13086
13149
|
timezone: isSet(object.timezone) ? String(object.timezone) : undefined,
|
|
13087
13150
|
about_me: isSet(object.about_me) ? globalThis.String(object.about_me) : "",
|
|
13151
|
+
dob: isSet(object.dob) ? fromJsonTimestamp(object.dob) : undefined,
|
|
13088
13152
|
};
|
|
13089
13153
|
},
|
|
13090
13154
|
|
|
@@ -13111,6 +13175,9 @@ export const UpdateAccountRequest = {
|
|
|
13111
13175
|
if (message.about_me !== "") {
|
|
13112
13176
|
obj.about_me = message.about_me;
|
|
13113
13177
|
}
|
|
13178
|
+
if (message.dob !== undefined) {
|
|
13179
|
+
obj.dob = message.dob.toISOString();
|
|
13180
|
+
}
|
|
13114
13181
|
return obj;
|
|
13115
13182
|
},
|
|
13116
13183
|
|
|
@@ -13126,6 +13193,7 @@ export const UpdateAccountRequest = {
|
|
|
13126
13193
|
message.location = object.location ?? undefined;
|
|
13127
13194
|
message.timezone = object.timezone ?? undefined;
|
|
13128
13195
|
message.about_me = object.about_me ?? "";
|
|
13196
|
+
message.dob = object.dob ?? undefined;
|
|
13129
13197
|
return message;
|
|
13130
13198
|
},
|
|
13131
13199
|
};
|
|
@@ -13382,6 +13450,7 @@ function createBaseUser(): User {
|
|
|
13382
13450
|
about_me: "",
|
|
13383
13451
|
join_time: undefined,
|
|
13384
13452
|
is_mobile: false,
|
|
13453
|
+
dob: undefined,
|
|
13385
13454
|
};
|
|
13386
13455
|
}
|
|
13387
13456
|
|
|
@@ -13447,6 +13516,9 @@ export const User = {
|
|
|
13447
13516
|
if (message.is_mobile !== false) {
|
|
13448
13517
|
writer.uint32(160).bool(message.is_mobile);
|
|
13449
13518
|
}
|
|
13519
|
+
if (message.dob !== undefined) {
|
|
13520
|
+
Timestamp.encode(toTimestamp(message.dob), writer.uint32(170).fork()).ldelim();
|
|
13521
|
+
}
|
|
13450
13522
|
return writer;
|
|
13451
13523
|
},
|
|
13452
13524
|
|
|
@@ -13597,6 +13669,13 @@ export const User = {
|
|
|
13597
13669
|
|
|
13598
13670
|
message.is_mobile = reader.bool();
|
|
13599
13671
|
continue;
|
|
13672
|
+
case 21:
|
|
13673
|
+
if (tag !== 170) {
|
|
13674
|
+
break;
|
|
13675
|
+
}
|
|
13676
|
+
|
|
13677
|
+
message.dob = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
13678
|
+
continue;
|
|
13600
13679
|
}
|
|
13601
13680
|
if ((tag & 7) === 4 || tag === 0) {
|
|
13602
13681
|
break;
|
|
@@ -13628,6 +13707,7 @@ export const User = {
|
|
|
13628
13707
|
about_me: isSet(object.about_me) ? globalThis.String(object.about_me) : "",
|
|
13629
13708
|
join_time: isSet(object.join_time) ? fromJsonTimestamp(object.join_time) : undefined,
|
|
13630
13709
|
is_mobile: isSet(object.is_mobile) ? globalThis.Boolean(object.is_mobile) : false,
|
|
13710
|
+
dob: isSet(object.dob) ? fromJsonTimestamp(object.dob) : undefined,
|
|
13631
13711
|
};
|
|
13632
13712
|
},
|
|
13633
13713
|
|
|
@@ -13693,6 +13773,9 @@ export const User = {
|
|
|
13693
13773
|
if (message.is_mobile !== false) {
|
|
13694
13774
|
obj.is_mobile = message.is_mobile;
|
|
13695
13775
|
}
|
|
13776
|
+
if (message.dob !== undefined) {
|
|
13777
|
+
obj.dob = message.dob.toISOString();
|
|
13778
|
+
}
|
|
13696
13779
|
return obj;
|
|
13697
13780
|
},
|
|
13698
13781
|
|
|
@@ -13721,6 +13804,7 @@ export const User = {
|
|
|
13721
13804
|
message.about_me = object.about_me ?? "";
|
|
13722
13805
|
message.join_time = object.join_time ?? undefined;
|
|
13723
13806
|
message.is_mobile = object.is_mobile ?? false;
|
|
13807
|
+
message.dob = object.dob ?? undefined;
|
|
13724
13808
|
return message;
|
|
13725
13809
|
},
|
|
13726
13810
|
};
|
|
@@ -16373,6 +16457,9 @@ function createBaseChannelDescription(): ChannelDescription {
|
|
|
16373
16457
|
clan_name: "",
|
|
16374
16458
|
app_url: "",
|
|
16375
16459
|
is_mute: false,
|
|
16460
|
+
age_restricted: 0,
|
|
16461
|
+
topic: "",
|
|
16462
|
+
e2ee: 0,
|
|
16376
16463
|
};
|
|
16377
16464
|
}
|
|
16378
16465
|
|
|
@@ -16461,6 +16548,15 @@ export const ChannelDescription = {
|
|
|
16461
16548
|
if (message.is_mute !== false) {
|
|
16462
16549
|
writer.uint32(216).bool(message.is_mute);
|
|
16463
16550
|
}
|
|
16551
|
+
if (message.age_restricted !== 0) {
|
|
16552
|
+
writer.uint32(224).int32(message.age_restricted);
|
|
16553
|
+
}
|
|
16554
|
+
if (message.topic !== "") {
|
|
16555
|
+
writer.uint32(234).string(message.topic);
|
|
16556
|
+
}
|
|
16557
|
+
if (message.e2ee !== 0) {
|
|
16558
|
+
writer.uint32(240).int32(message.e2ee);
|
|
16559
|
+
}
|
|
16464
16560
|
return writer;
|
|
16465
16561
|
},
|
|
16466
16562
|
|
|
@@ -16670,6 +16766,27 @@ export const ChannelDescription = {
|
|
|
16670
16766
|
|
|
16671
16767
|
message.is_mute = reader.bool();
|
|
16672
16768
|
continue;
|
|
16769
|
+
case 28:
|
|
16770
|
+
if (tag !== 224) {
|
|
16771
|
+
break;
|
|
16772
|
+
}
|
|
16773
|
+
|
|
16774
|
+
message.age_restricted = reader.int32();
|
|
16775
|
+
continue;
|
|
16776
|
+
case 29:
|
|
16777
|
+
if (tag !== 234) {
|
|
16778
|
+
break;
|
|
16779
|
+
}
|
|
16780
|
+
|
|
16781
|
+
message.topic = reader.string();
|
|
16782
|
+
continue;
|
|
16783
|
+
case 30:
|
|
16784
|
+
if (tag !== 240) {
|
|
16785
|
+
break;
|
|
16786
|
+
}
|
|
16787
|
+
|
|
16788
|
+
message.e2ee = reader.int32();
|
|
16789
|
+
continue;
|
|
16673
16790
|
}
|
|
16674
16791
|
if ((tag & 7) === 4 || tag === 0) {
|
|
16675
16792
|
break;
|
|
@@ -16716,6 +16833,9 @@ export const ChannelDescription = {
|
|
|
16716
16833
|
clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
|
|
16717
16834
|
app_url: isSet(object.app_url) ? globalThis.String(object.app_url) : "",
|
|
16718
16835
|
is_mute: isSet(object.is_mute) ? globalThis.Boolean(object.is_mute) : false,
|
|
16836
|
+
age_restricted: isSet(object.age_restricted) ? globalThis.Number(object.age_restricted) : 0,
|
|
16837
|
+
topic: isSet(object.topic) ? globalThis.String(object.topic) : "",
|
|
16838
|
+
e2ee: isSet(object.e2ee) ? globalThis.Number(object.e2ee) : 0,
|
|
16719
16839
|
};
|
|
16720
16840
|
},
|
|
16721
16841
|
|
|
@@ -16802,6 +16922,15 @@ export const ChannelDescription = {
|
|
|
16802
16922
|
if (message.is_mute !== false) {
|
|
16803
16923
|
obj.is_mute = message.is_mute;
|
|
16804
16924
|
}
|
|
16925
|
+
if (message.age_restricted !== 0) {
|
|
16926
|
+
obj.age_restricted = Math.round(message.age_restricted);
|
|
16927
|
+
}
|
|
16928
|
+
if (message.topic !== "") {
|
|
16929
|
+
obj.topic = message.topic;
|
|
16930
|
+
}
|
|
16931
|
+
if (message.e2ee !== 0) {
|
|
16932
|
+
obj.e2ee = Math.round(message.e2ee);
|
|
16933
|
+
}
|
|
16805
16934
|
return obj;
|
|
16806
16935
|
},
|
|
16807
16936
|
|
|
@@ -16841,6 +16970,9 @@ export const ChannelDescription = {
|
|
|
16841
16970
|
message.clan_name = object.clan_name ?? "";
|
|
16842
16971
|
message.app_url = object.app_url ?? "";
|
|
16843
16972
|
message.is_mute = object.is_mute ?? false;
|
|
16973
|
+
message.age_restricted = object.age_restricted ?? 0;
|
|
16974
|
+
message.topic = object.topic ?? "";
|
|
16975
|
+
message.e2ee = object.e2ee ?? 0;
|
|
16844
16976
|
return message;
|
|
16845
16977
|
},
|
|
16846
16978
|
};
|
|
@@ -17510,7 +17642,15 @@ export const DeleteChannelDescRequest = {
|
|
|
17510
17642
|
};
|
|
17511
17643
|
|
|
17512
17644
|
function createBaseUpdateChannelDescRequest(): UpdateChannelDescRequest {
|
|
17513
|
-
return {
|
|
17645
|
+
return {
|
|
17646
|
+
channel_id: "",
|
|
17647
|
+
channel_label: undefined,
|
|
17648
|
+
category_id: undefined,
|
|
17649
|
+
app_url: undefined,
|
|
17650
|
+
topic: "",
|
|
17651
|
+
age_restricted: 0,
|
|
17652
|
+
e2ee: 0,
|
|
17653
|
+
};
|
|
17514
17654
|
}
|
|
17515
17655
|
|
|
17516
17656
|
export const UpdateChannelDescRequest = {
|
|
@@ -17527,6 +17667,15 @@ export const UpdateChannelDescRequest = {
|
|
|
17527
17667
|
if (message.app_url !== undefined) {
|
|
17528
17668
|
StringValue.encode({ value: message.app_url! }, writer.uint32(34).fork()).ldelim();
|
|
17529
17669
|
}
|
|
17670
|
+
if (message.topic !== "") {
|
|
17671
|
+
writer.uint32(42).string(message.topic);
|
|
17672
|
+
}
|
|
17673
|
+
if (message.age_restricted !== 0) {
|
|
17674
|
+
writer.uint32(48).int32(message.age_restricted);
|
|
17675
|
+
}
|
|
17676
|
+
if (message.e2ee !== 0) {
|
|
17677
|
+
writer.uint32(56).int32(message.e2ee);
|
|
17678
|
+
}
|
|
17530
17679
|
return writer;
|
|
17531
17680
|
},
|
|
17532
17681
|
|
|
@@ -17565,6 +17714,27 @@ export const UpdateChannelDescRequest = {
|
|
|
17565
17714
|
|
|
17566
17715
|
message.app_url = StringValue.decode(reader, reader.uint32()).value;
|
|
17567
17716
|
continue;
|
|
17717
|
+
case 5:
|
|
17718
|
+
if (tag !== 42) {
|
|
17719
|
+
break;
|
|
17720
|
+
}
|
|
17721
|
+
|
|
17722
|
+
message.topic = reader.string();
|
|
17723
|
+
continue;
|
|
17724
|
+
case 6:
|
|
17725
|
+
if (tag !== 48) {
|
|
17726
|
+
break;
|
|
17727
|
+
}
|
|
17728
|
+
|
|
17729
|
+
message.age_restricted = reader.int32();
|
|
17730
|
+
continue;
|
|
17731
|
+
case 7:
|
|
17732
|
+
if (tag !== 56) {
|
|
17733
|
+
break;
|
|
17734
|
+
}
|
|
17735
|
+
|
|
17736
|
+
message.e2ee = reader.int32();
|
|
17737
|
+
continue;
|
|
17568
17738
|
}
|
|
17569
17739
|
if ((tag & 7) === 4 || tag === 0) {
|
|
17570
17740
|
break;
|
|
@@ -17580,6 +17750,9 @@ export const UpdateChannelDescRequest = {
|
|
|
17580
17750
|
channel_label: isSet(object.channel_label) ? String(object.channel_label) : undefined,
|
|
17581
17751
|
category_id: isSet(object.category_id) ? String(object.category_id) : undefined,
|
|
17582
17752
|
app_url: isSet(object.app_url) ? String(object.app_url) : undefined,
|
|
17753
|
+
topic: isSet(object.topic) ? globalThis.String(object.topic) : "",
|
|
17754
|
+
age_restricted: isSet(object.age_restricted) ? globalThis.Number(object.age_restricted) : 0,
|
|
17755
|
+
e2ee: isSet(object.e2ee) ? globalThis.Number(object.e2ee) : 0,
|
|
17583
17756
|
};
|
|
17584
17757
|
},
|
|
17585
17758
|
|
|
@@ -17597,6 +17770,15 @@ export const UpdateChannelDescRequest = {
|
|
|
17597
17770
|
if (message.app_url !== undefined) {
|
|
17598
17771
|
obj.app_url = message.app_url;
|
|
17599
17772
|
}
|
|
17773
|
+
if (message.topic !== "") {
|
|
17774
|
+
obj.topic = message.topic;
|
|
17775
|
+
}
|
|
17776
|
+
if (message.age_restricted !== 0) {
|
|
17777
|
+
obj.age_restricted = Math.round(message.age_restricted);
|
|
17778
|
+
}
|
|
17779
|
+
if (message.e2ee !== 0) {
|
|
17780
|
+
obj.e2ee = Math.round(message.e2ee);
|
|
17781
|
+
}
|
|
17600
17782
|
return obj;
|
|
17601
17783
|
},
|
|
17602
17784
|
|
|
@@ -17609,6 +17791,9 @@ export const UpdateChannelDescRequest = {
|
|
|
17609
17791
|
message.channel_label = object.channel_label ?? undefined;
|
|
17610
17792
|
message.category_id = object.category_id ?? undefined;
|
|
17611
17793
|
message.app_url = object.app_url ?? undefined;
|
|
17794
|
+
message.topic = object.topic ?? "";
|
|
17795
|
+
message.age_restricted = object.age_restricted ?? 0;
|
|
17796
|
+
message.e2ee = object.e2ee ?? 0;
|
|
17612
17797
|
return message;
|
|
17613
17798
|
},
|
|
17614
17799
|
};
|
|
@@ -35250,6 +35435,334 @@ export const ClanWebhookHandlerRequest = {
|
|
|
35250
35435
|
},
|
|
35251
35436
|
};
|
|
35252
35437
|
|
|
35438
|
+
function createBaseOnboardingSteps(): OnboardingSteps {
|
|
35439
|
+
return { id: "", user_id: "", clan_id: "", onboarding_step: 0 };
|
|
35440
|
+
}
|
|
35441
|
+
|
|
35442
|
+
export const OnboardingSteps = {
|
|
35443
|
+
encode(message: OnboardingSteps, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
35444
|
+
if (message.id !== "") {
|
|
35445
|
+
writer.uint32(10).string(message.id);
|
|
35446
|
+
}
|
|
35447
|
+
if (message.user_id !== "") {
|
|
35448
|
+
writer.uint32(18).string(message.user_id);
|
|
35449
|
+
}
|
|
35450
|
+
if (message.clan_id !== "") {
|
|
35451
|
+
writer.uint32(26).string(message.clan_id);
|
|
35452
|
+
}
|
|
35453
|
+
if (message.onboarding_step !== 0) {
|
|
35454
|
+
writer.uint32(32).int32(message.onboarding_step);
|
|
35455
|
+
}
|
|
35456
|
+
return writer;
|
|
35457
|
+
},
|
|
35458
|
+
|
|
35459
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): OnboardingSteps {
|
|
35460
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
35461
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
35462
|
+
const message = createBaseOnboardingSteps();
|
|
35463
|
+
while (reader.pos < end) {
|
|
35464
|
+
const tag = reader.uint32();
|
|
35465
|
+
switch (tag >>> 3) {
|
|
35466
|
+
case 1:
|
|
35467
|
+
if (tag !== 10) {
|
|
35468
|
+
break;
|
|
35469
|
+
}
|
|
35470
|
+
|
|
35471
|
+
message.id = reader.string();
|
|
35472
|
+
continue;
|
|
35473
|
+
case 2:
|
|
35474
|
+
if (tag !== 18) {
|
|
35475
|
+
break;
|
|
35476
|
+
}
|
|
35477
|
+
|
|
35478
|
+
message.user_id = reader.string();
|
|
35479
|
+
continue;
|
|
35480
|
+
case 3:
|
|
35481
|
+
if (tag !== 26) {
|
|
35482
|
+
break;
|
|
35483
|
+
}
|
|
35484
|
+
|
|
35485
|
+
message.clan_id = reader.string();
|
|
35486
|
+
continue;
|
|
35487
|
+
case 4:
|
|
35488
|
+
if (tag !== 32) {
|
|
35489
|
+
break;
|
|
35490
|
+
}
|
|
35491
|
+
|
|
35492
|
+
message.onboarding_step = reader.int32();
|
|
35493
|
+
continue;
|
|
35494
|
+
}
|
|
35495
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
35496
|
+
break;
|
|
35497
|
+
}
|
|
35498
|
+
reader.skipType(tag & 7);
|
|
35499
|
+
}
|
|
35500
|
+
return message;
|
|
35501
|
+
},
|
|
35502
|
+
|
|
35503
|
+
fromJSON(object: any): OnboardingSteps {
|
|
35504
|
+
return {
|
|
35505
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
35506
|
+
user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
|
|
35507
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
35508
|
+
onboarding_step: isSet(object.onboarding_step) ? globalThis.Number(object.onboarding_step) : 0,
|
|
35509
|
+
};
|
|
35510
|
+
},
|
|
35511
|
+
|
|
35512
|
+
toJSON(message: OnboardingSteps): unknown {
|
|
35513
|
+
const obj: any = {};
|
|
35514
|
+
if (message.id !== "") {
|
|
35515
|
+
obj.id = message.id;
|
|
35516
|
+
}
|
|
35517
|
+
if (message.user_id !== "") {
|
|
35518
|
+
obj.user_id = message.user_id;
|
|
35519
|
+
}
|
|
35520
|
+
if (message.clan_id !== "") {
|
|
35521
|
+
obj.clan_id = message.clan_id;
|
|
35522
|
+
}
|
|
35523
|
+
if (message.onboarding_step !== 0) {
|
|
35524
|
+
obj.onboarding_step = Math.round(message.onboarding_step);
|
|
35525
|
+
}
|
|
35526
|
+
return obj;
|
|
35527
|
+
},
|
|
35528
|
+
|
|
35529
|
+
create<I extends Exact<DeepPartial<OnboardingSteps>, I>>(base?: I): OnboardingSteps {
|
|
35530
|
+
return OnboardingSteps.fromPartial(base ?? ({} as any));
|
|
35531
|
+
},
|
|
35532
|
+
fromPartial<I extends Exact<DeepPartial<OnboardingSteps>, I>>(object: I): OnboardingSteps {
|
|
35533
|
+
const message = createBaseOnboardingSteps();
|
|
35534
|
+
message.id = object.id ?? "";
|
|
35535
|
+
message.user_id = object.user_id ?? "";
|
|
35536
|
+
message.clan_id = object.clan_id ?? "";
|
|
35537
|
+
message.onboarding_step = object.onboarding_step ?? 0;
|
|
35538
|
+
return message;
|
|
35539
|
+
},
|
|
35540
|
+
};
|
|
35541
|
+
|
|
35542
|
+
function createBaseListOnboardingStepResponse(): ListOnboardingStepResponse {
|
|
35543
|
+
return { list_onboarding_step: [] };
|
|
35544
|
+
}
|
|
35545
|
+
|
|
35546
|
+
export const ListOnboardingStepResponse = {
|
|
35547
|
+
encode(message: ListOnboardingStepResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
35548
|
+
for (const v of message.list_onboarding_step) {
|
|
35549
|
+
OnboardingSteps.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
35550
|
+
}
|
|
35551
|
+
return writer;
|
|
35552
|
+
},
|
|
35553
|
+
|
|
35554
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ListOnboardingStepResponse {
|
|
35555
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
35556
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
35557
|
+
const message = createBaseListOnboardingStepResponse();
|
|
35558
|
+
while (reader.pos < end) {
|
|
35559
|
+
const tag = reader.uint32();
|
|
35560
|
+
switch (tag >>> 3) {
|
|
35561
|
+
case 1:
|
|
35562
|
+
if (tag !== 10) {
|
|
35563
|
+
break;
|
|
35564
|
+
}
|
|
35565
|
+
|
|
35566
|
+
message.list_onboarding_step.push(OnboardingSteps.decode(reader, reader.uint32()));
|
|
35567
|
+
continue;
|
|
35568
|
+
}
|
|
35569
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
35570
|
+
break;
|
|
35571
|
+
}
|
|
35572
|
+
reader.skipType(tag & 7);
|
|
35573
|
+
}
|
|
35574
|
+
return message;
|
|
35575
|
+
},
|
|
35576
|
+
|
|
35577
|
+
fromJSON(object: any): ListOnboardingStepResponse {
|
|
35578
|
+
return {
|
|
35579
|
+
list_onboarding_step: globalThis.Array.isArray(object?.list_onboarding_step)
|
|
35580
|
+
? object.list_onboarding_step.map((e: any) => OnboardingSteps.fromJSON(e))
|
|
35581
|
+
: [],
|
|
35582
|
+
};
|
|
35583
|
+
},
|
|
35584
|
+
|
|
35585
|
+
toJSON(message: ListOnboardingStepResponse): unknown {
|
|
35586
|
+
const obj: any = {};
|
|
35587
|
+
if (message.list_onboarding_step?.length) {
|
|
35588
|
+
obj.list_onboarding_step = message.list_onboarding_step.map((e) => OnboardingSteps.toJSON(e));
|
|
35589
|
+
}
|
|
35590
|
+
return obj;
|
|
35591
|
+
},
|
|
35592
|
+
|
|
35593
|
+
create<I extends Exact<DeepPartial<ListOnboardingStepResponse>, I>>(base?: I): ListOnboardingStepResponse {
|
|
35594
|
+
return ListOnboardingStepResponse.fromPartial(base ?? ({} as any));
|
|
35595
|
+
},
|
|
35596
|
+
fromPartial<I extends Exact<DeepPartial<ListOnboardingStepResponse>, I>>(object: I): ListOnboardingStepResponse {
|
|
35597
|
+
const message = createBaseListOnboardingStepResponse();
|
|
35598
|
+
message.list_onboarding_step = object.list_onboarding_step?.map((e) => OnboardingSteps.fromPartial(e)) || [];
|
|
35599
|
+
return message;
|
|
35600
|
+
},
|
|
35601
|
+
};
|
|
35602
|
+
|
|
35603
|
+
function createBaseListOnboardingStepRequest(): ListOnboardingStepRequest {
|
|
35604
|
+
return { clan_id: "", limit: undefined, page: undefined };
|
|
35605
|
+
}
|
|
35606
|
+
|
|
35607
|
+
export const ListOnboardingStepRequest = {
|
|
35608
|
+
encode(message: ListOnboardingStepRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
35609
|
+
if (message.clan_id !== "") {
|
|
35610
|
+
writer.uint32(10).string(message.clan_id);
|
|
35611
|
+
}
|
|
35612
|
+
if (message.limit !== undefined) {
|
|
35613
|
+
Int32Value.encode({ value: message.limit! }, writer.uint32(18).fork()).ldelim();
|
|
35614
|
+
}
|
|
35615
|
+
if (message.page !== undefined) {
|
|
35616
|
+
Int32Value.encode({ value: message.page! }, writer.uint32(26).fork()).ldelim();
|
|
35617
|
+
}
|
|
35618
|
+
return writer;
|
|
35619
|
+
},
|
|
35620
|
+
|
|
35621
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ListOnboardingStepRequest {
|
|
35622
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
35623
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
35624
|
+
const message = createBaseListOnboardingStepRequest();
|
|
35625
|
+
while (reader.pos < end) {
|
|
35626
|
+
const tag = reader.uint32();
|
|
35627
|
+
switch (tag >>> 3) {
|
|
35628
|
+
case 1:
|
|
35629
|
+
if (tag !== 10) {
|
|
35630
|
+
break;
|
|
35631
|
+
}
|
|
35632
|
+
|
|
35633
|
+
message.clan_id = reader.string();
|
|
35634
|
+
continue;
|
|
35635
|
+
case 2:
|
|
35636
|
+
if (tag !== 18) {
|
|
35637
|
+
break;
|
|
35638
|
+
}
|
|
35639
|
+
|
|
35640
|
+
message.limit = Int32Value.decode(reader, reader.uint32()).value;
|
|
35641
|
+
continue;
|
|
35642
|
+
case 3:
|
|
35643
|
+
if (tag !== 26) {
|
|
35644
|
+
break;
|
|
35645
|
+
}
|
|
35646
|
+
|
|
35647
|
+
message.page = Int32Value.decode(reader, reader.uint32()).value;
|
|
35648
|
+
continue;
|
|
35649
|
+
}
|
|
35650
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
35651
|
+
break;
|
|
35652
|
+
}
|
|
35653
|
+
reader.skipType(tag & 7);
|
|
35654
|
+
}
|
|
35655
|
+
return message;
|
|
35656
|
+
},
|
|
35657
|
+
|
|
35658
|
+
fromJSON(object: any): ListOnboardingStepRequest {
|
|
35659
|
+
return {
|
|
35660
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
35661
|
+
limit: isSet(object.limit) ? Number(object.limit) : undefined,
|
|
35662
|
+
page: isSet(object.page) ? Number(object.page) : undefined,
|
|
35663
|
+
};
|
|
35664
|
+
},
|
|
35665
|
+
|
|
35666
|
+
toJSON(message: ListOnboardingStepRequest): unknown {
|
|
35667
|
+
const obj: any = {};
|
|
35668
|
+
if (message.clan_id !== "") {
|
|
35669
|
+
obj.clan_id = message.clan_id;
|
|
35670
|
+
}
|
|
35671
|
+
if (message.limit !== undefined) {
|
|
35672
|
+
obj.limit = message.limit;
|
|
35673
|
+
}
|
|
35674
|
+
if (message.page !== undefined) {
|
|
35675
|
+
obj.page = message.page;
|
|
35676
|
+
}
|
|
35677
|
+
return obj;
|
|
35678
|
+
},
|
|
35679
|
+
|
|
35680
|
+
create<I extends Exact<DeepPartial<ListOnboardingStepRequest>, I>>(base?: I): ListOnboardingStepRequest {
|
|
35681
|
+
return ListOnboardingStepRequest.fromPartial(base ?? ({} as any));
|
|
35682
|
+
},
|
|
35683
|
+
fromPartial<I extends Exact<DeepPartial<ListOnboardingStepRequest>, I>>(object: I): ListOnboardingStepRequest {
|
|
35684
|
+
const message = createBaseListOnboardingStepRequest();
|
|
35685
|
+
message.clan_id = object.clan_id ?? "";
|
|
35686
|
+
message.limit = object.limit ?? undefined;
|
|
35687
|
+
message.page = object.page ?? undefined;
|
|
35688
|
+
return message;
|
|
35689
|
+
},
|
|
35690
|
+
};
|
|
35691
|
+
|
|
35692
|
+
function createBaseUpdateOnboardingStepRequest(): UpdateOnboardingStepRequest {
|
|
35693
|
+
return { clan_id: "", onboarding_step: undefined };
|
|
35694
|
+
}
|
|
35695
|
+
|
|
35696
|
+
export const UpdateOnboardingStepRequest = {
|
|
35697
|
+
encode(message: UpdateOnboardingStepRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
35698
|
+
if (message.clan_id !== "") {
|
|
35699
|
+
writer.uint32(10).string(message.clan_id);
|
|
35700
|
+
}
|
|
35701
|
+
if (message.onboarding_step !== undefined) {
|
|
35702
|
+
Int32Value.encode({ value: message.onboarding_step! }, writer.uint32(18).fork()).ldelim();
|
|
35703
|
+
}
|
|
35704
|
+
return writer;
|
|
35705
|
+
},
|
|
35706
|
+
|
|
35707
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): UpdateOnboardingStepRequest {
|
|
35708
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
35709
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
35710
|
+
const message = createBaseUpdateOnboardingStepRequest();
|
|
35711
|
+
while (reader.pos < end) {
|
|
35712
|
+
const tag = reader.uint32();
|
|
35713
|
+
switch (tag >>> 3) {
|
|
35714
|
+
case 1:
|
|
35715
|
+
if (tag !== 10) {
|
|
35716
|
+
break;
|
|
35717
|
+
}
|
|
35718
|
+
|
|
35719
|
+
message.clan_id = reader.string();
|
|
35720
|
+
continue;
|
|
35721
|
+
case 2:
|
|
35722
|
+
if (tag !== 18) {
|
|
35723
|
+
break;
|
|
35724
|
+
}
|
|
35725
|
+
|
|
35726
|
+
message.onboarding_step = Int32Value.decode(reader, reader.uint32()).value;
|
|
35727
|
+
continue;
|
|
35728
|
+
}
|
|
35729
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
35730
|
+
break;
|
|
35731
|
+
}
|
|
35732
|
+
reader.skipType(tag & 7);
|
|
35733
|
+
}
|
|
35734
|
+
return message;
|
|
35735
|
+
},
|
|
35736
|
+
|
|
35737
|
+
fromJSON(object: any): UpdateOnboardingStepRequest {
|
|
35738
|
+
return {
|
|
35739
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
35740
|
+
onboarding_step: isSet(object.onboarding_step) ? Number(object.onboarding_step) : undefined,
|
|
35741
|
+
};
|
|
35742
|
+
},
|
|
35743
|
+
|
|
35744
|
+
toJSON(message: UpdateOnboardingStepRequest): unknown {
|
|
35745
|
+
const obj: any = {};
|
|
35746
|
+
if (message.clan_id !== "") {
|
|
35747
|
+
obj.clan_id = message.clan_id;
|
|
35748
|
+
}
|
|
35749
|
+
if (message.onboarding_step !== undefined) {
|
|
35750
|
+
obj.onboarding_step = message.onboarding_step;
|
|
35751
|
+
}
|
|
35752
|
+
return obj;
|
|
35753
|
+
},
|
|
35754
|
+
|
|
35755
|
+
create<I extends Exact<DeepPartial<UpdateOnboardingStepRequest>, I>>(base?: I): UpdateOnboardingStepRequest {
|
|
35756
|
+
return UpdateOnboardingStepRequest.fromPartial(base ?? ({} as any));
|
|
35757
|
+
},
|
|
35758
|
+
fromPartial<I extends Exact<DeepPartial<UpdateOnboardingStepRequest>, I>>(object: I): UpdateOnboardingStepRequest {
|
|
35759
|
+
const message = createBaseUpdateOnboardingStepRequest();
|
|
35760
|
+
message.clan_id = object.clan_id ?? "";
|
|
35761
|
+
message.onboarding_step = object.onboarding_step ?? undefined;
|
|
35762
|
+
return message;
|
|
35763
|
+
},
|
|
35764
|
+
};
|
|
35765
|
+
|
|
35253
35766
|
function bytesFromBase64(b64: string): Uint8Array {
|
|
35254
35767
|
if ((globalThis as any).Buffer) {
|
|
35255
35768
|
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|