mezon-js-protobuf 1.5.55 → 1.5.58
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 +1366 -4
- package/dist/mezon-js-protobuf/api/api.d.ts +573 -0
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +294 -241
- package/dist/mezon-js-protobuf.cjs.js +601 -355
- package/dist/mezon-js-protobuf.esm.mjs +601 -355
- package/package.json +1 -1
- package/rtapi/realtime.ts +603 -439
package/api/api.ts
CHANGED
|
@@ -1873,6 +1873,8 @@ export interface AddRoleChannelDescRequest {
|
|
|
1873
1873
|
role_ids: string[];
|
|
1874
1874
|
/** This is a channel that needs more roles */
|
|
1875
1875
|
channel_id: string;
|
|
1876
|
+
/** Max permission of role */
|
|
1877
|
+
max_permission: number;
|
|
1876
1878
|
}
|
|
1877
1879
|
|
|
1878
1880
|
/** Create a channel within clan. */
|
|
@@ -2230,6 +2232,8 @@ export interface CreateRoleRequest {
|
|
|
2230
2232
|
add_user_ids: string[];
|
|
2231
2233
|
/** The permissions to add. */
|
|
2232
2234
|
active_permission_ids: string[];
|
|
2235
|
+
/** Max permission of role */
|
|
2236
|
+
max_permission: number;
|
|
2233
2237
|
}
|
|
2234
2238
|
|
|
2235
2239
|
/** Create a event within clan. */
|
|
@@ -2300,6 +2304,10 @@ export interface UpdateRoleRequest {
|
|
|
2300
2304
|
remove_permission_ids: string[];
|
|
2301
2305
|
/** the clan id */
|
|
2302
2306
|
clan_id: string;
|
|
2307
|
+
/** Max permission of role */
|
|
2308
|
+
max_permission: number;
|
|
2309
|
+
/** Max perrmissions updated */
|
|
2310
|
+
max_permission_updated: number;
|
|
2303
2311
|
}
|
|
2304
2312
|
|
|
2305
2313
|
export interface UpdateRoleChannelRequest {
|
|
@@ -2309,6 +2317,10 @@ export interface UpdateRoleChannelRequest {
|
|
|
2309
2317
|
permission_update: PermissionUpdate[];
|
|
2310
2318
|
/** The channel_id */
|
|
2311
2319
|
channel_id: string;
|
|
2320
|
+
/** Max permission of role */
|
|
2321
|
+
max_permission: number;
|
|
2322
|
+
/** Max permission update */
|
|
2323
|
+
max_permission_update: number;
|
|
2312
2324
|
}
|
|
2313
2325
|
|
|
2314
2326
|
export interface PermissionUpdate {
|
|
@@ -2712,6 +2724,14 @@ export interface SystemMessage {
|
|
|
2712
2724
|
clan_id: string;
|
|
2713
2725
|
/** Channel ID */
|
|
2714
2726
|
channel_id: string;
|
|
2727
|
+
/** Welcome random */
|
|
2728
|
+
welcome_random: string;
|
|
2729
|
+
/** Welcome sticker */
|
|
2730
|
+
welcome_sticker: string;
|
|
2731
|
+
/** Boost message */
|
|
2732
|
+
boost_message: string;
|
|
2733
|
+
/** Setup tips */
|
|
2734
|
+
setup_tips: string;
|
|
2715
2735
|
}
|
|
2716
2736
|
|
|
2717
2737
|
/** List of system message. */
|
|
@@ -2725,6 +2745,14 @@ export interface SystemMessageRequest {
|
|
|
2725
2745
|
clan_id: string;
|
|
2726
2746
|
/** Channel ID */
|
|
2727
2747
|
channel_id: string;
|
|
2748
|
+
/** Welcome random */
|
|
2749
|
+
welcome_random: string;
|
|
2750
|
+
/** Welcome sticker */
|
|
2751
|
+
welcome_sticker: string;
|
|
2752
|
+
/** Boost message */
|
|
2753
|
+
boost_message: string;
|
|
2754
|
+
/** Setup tips */
|
|
2755
|
+
setup_tips: string;
|
|
2728
2756
|
}
|
|
2729
2757
|
|
|
2730
2758
|
/** Request to delete a system message by clan ID. */
|
|
@@ -2743,6 +2771,97 @@ export interface DeleteCategoryOrderRequest {
|
|
|
2743
2771
|
clan_id: string;
|
|
2744
2772
|
}
|
|
2745
2773
|
|
|
2774
|
+
export interface OssrsHttpCallbackRequest {
|
|
2775
|
+
action: string;
|
|
2776
|
+
client_id: string;
|
|
2777
|
+
ip: string;
|
|
2778
|
+
vhost: string;
|
|
2779
|
+
app: string;
|
|
2780
|
+
stream: string;
|
|
2781
|
+
param: string | undefined;
|
|
2782
|
+
server_id: string;
|
|
2783
|
+
stream_url: string;
|
|
2784
|
+
stream_id: string;
|
|
2785
|
+
page_url: string | undefined;
|
|
2786
|
+
tcUrl: string | undefined;
|
|
2787
|
+
service_id: string | undefined;
|
|
2788
|
+
}
|
|
2789
|
+
|
|
2790
|
+
export interface OssrsHttpCallbackResponse {
|
|
2791
|
+
code: number | undefined;
|
|
2792
|
+
msg: string;
|
|
2793
|
+
}
|
|
2794
|
+
|
|
2795
|
+
/** A list of users belonging to a channel, along with their role. */
|
|
2796
|
+
export interface StreamingChannelUser {
|
|
2797
|
+
/** user join id */
|
|
2798
|
+
id: string;
|
|
2799
|
+
/** user for a channel. */
|
|
2800
|
+
user_id: string;
|
|
2801
|
+
/** channel id */
|
|
2802
|
+
channel_id: string;
|
|
2803
|
+
/** participant */
|
|
2804
|
+
participant: string;
|
|
2805
|
+
}
|
|
2806
|
+
|
|
2807
|
+
/** A list of users belonging to a channel, along with their role. */
|
|
2808
|
+
export interface StreamingChannelUserList {
|
|
2809
|
+
/** list of voice channel user */
|
|
2810
|
+
streaming_channel_users: StreamingChannelUser[];
|
|
2811
|
+
}
|
|
2812
|
+
|
|
2813
|
+
export interface RegisterStreamingChannelRequest {
|
|
2814
|
+
/** clan id */
|
|
2815
|
+
clan_id: string;
|
|
2816
|
+
/** channel id */
|
|
2817
|
+
channel_id: string;
|
|
2818
|
+
}
|
|
2819
|
+
|
|
2820
|
+
export interface RegisterStreamingChannelResponse {
|
|
2821
|
+
/** clan id */
|
|
2822
|
+
clan_id: string;
|
|
2823
|
+
/** channel id */
|
|
2824
|
+
channel_id: string;
|
|
2825
|
+
/** streaming url */
|
|
2826
|
+
streaming_url: string;
|
|
2827
|
+
}
|
|
2828
|
+
|
|
2829
|
+
export interface ListStreamingChannelsRequest {
|
|
2830
|
+
/** clan id */
|
|
2831
|
+
clan_id: string;
|
|
2832
|
+
}
|
|
2833
|
+
|
|
2834
|
+
export interface ListStreamingChannelsResponse {
|
|
2835
|
+
/** list of streaming channel */
|
|
2836
|
+
streaming_channels: StreamingChannelResponse[];
|
|
2837
|
+
}
|
|
2838
|
+
|
|
2839
|
+
export interface StreamingChannelResponse {
|
|
2840
|
+
/** clan id */
|
|
2841
|
+
clan_id: string;
|
|
2842
|
+
/** channel id */
|
|
2843
|
+
channel_id: string;
|
|
2844
|
+
/** stream url */
|
|
2845
|
+
streaming_url: string;
|
|
2846
|
+
/** status */
|
|
2847
|
+
is_streaming: boolean;
|
|
2848
|
+
}
|
|
2849
|
+
|
|
2850
|
+
export interface GiveCoffeeEvent {
|
|
2851
|
+
/** sender id */
|
|
2852
|
+
sender_id: string;
|
|
2853
|
+
/** receiver id */
|
|
2854
|
+
receiver_id: string;
|
|
2855
|
+
/** token count */
|
|
2856
|
+
token_count: number;
|
|
2857
|
+
/** message_ref */
|
|
2858
|
+
message_ref_id: string;
|
|
2859
|
+
/** chanel id */
|
|
2860
|
+
channel_id: string;
|
|
2861
|
+
/** clan id */
|
|
2862
|
+
clan_id: string;
|
|
2863
|
+
}
|
|
2864
|
+
|
|
2746
2865
|
function createBaseAccount(): Account {
|
|
2747
2866
|
return {
|
|
2748
2867
|
user: undefined,
|
|
@@ -15912,7 +16031,7 @@ export const ListChannelDescsRequest = {
|
|
|
15912
16031
|
};
|
|
15913
16032
|
|
|
15914
16033
|
function createBaseAddRoleChannelDescRequest(): AddRoleChannelDescRequest {
|
|
15915
|
-
return { role_ids: [], channel_id: "" };
|
|
16034
|
+
return { role_ids: [], channel_id: "", max_permission: 0 };
|
|
15916
16035
|
}
|
|
15917
16036
|
|
|
15918
16037
|
export const AddRoleChannelDescRequest = {
|
|
@@ -15923,6 +16042,9 @@ export const AddRoleChannelDescRequest = {
|
|
|
15923
16042
|
if (message.channel_id !== "") {
|
|
15924
16043
|
writer.uint32(18).string(message.channel_id);
|
|
15925
16044
|
}
|
|
16045
|
+
if (message.max_permission !== 0) {
|
|
16046
|
+
writer.uint32(24).int32(message.max_permission);
|
|
16047
|
+
}
|
|
15926
16048
|
return writer;
|
|
15927
16049
|
},
|
|
15928
16050
|
|
|
@@ -15947,6 +16069,13 @@ export const AddRoleChannelDescRequest = {
|
|
|
15947
16069
|
|
|
15948
16070
|
message.channel_id = reader.string();
|
|
15949
16071
|
continue;
|
|
16072
|
+
case 3:
|
|
16073
|
+
if (tag !== 24) {
|
|
16074
|
+
break;
|
|
16075
|
+
}
|
|
16076
|
+
|
|
16077
|
+
message.max_permission = reader.int32();
|
|
16078
|
+
continue;
|
|
15950
16079
|
}
|
|
15951
16080
|
if ((tag & 7) === 4 || tag === 0) {
|
|
15952
16081
|
break;
|
|
@@ -15960,6 +16089,7 @@ export const AddRoleChannelDescRequest = {
|
|
|
15960
16089
|
return {
|
|
15961
16090
|
role_ids: globalThis.Array.isArray(object?.role_ids) ? object.role_ids.map((e: any) => globalThis.String(e)) : [],
|
|
15962
16091
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
16092
|
+
max_permission: isSet(object.max_permission) ? globalThis.Number(object.max_permission) : 0,
|
|
15963
16093
|
};
|
|
15964
16094
|
},
|
|
15965
16095
|
|
|
@@ -15971,6 +16101,9 @@ export const AddRoleChannelDescRequest = {
|
|
|
15971
16101
|
if (message.channel_id !== "") {
|
|
15972
16102
|
obj.channel_id = message.channel_id;
|
|
15973
16103
|
}
|
|
16104
|
+
if (message.max_permission !== 0) {
|
|
16105
|
+
obj.max_permission = Math.round(message.max_permission);
|
|
16106
|
+
}
|
|
15974
16107
|
return obj;
|
|
15975
16108
|
},
|
|
15976
16109
|
|
|
@@ -15981,6 +16114,7 @@ export const AddRoleChannelDescRequest = {
|
|
|
15981
16114
|
const message = createBaseAddRoleChannelDescRequest();
|
|
15982
16115
|
message.role_ids = object.role_ids?.map((e) => e) || [];
|
|
15983
16116
|
message.channel_id = object.channel_id ?? "";
|
|
16117
|
+
message.max_permission = object.max_permission ?? 0;
|
|
15984
16118
|
return message;
|
|
15985
16119
|
},
|
|
15986
16120
|
};
|
|
@@ -19444,6 +19578,7 @@ function createBaseCreateRoleRequest(): CreateRoleRequest {
|
|
|
19444
19578
|
allow_mention: 0,
|
|
19445
19579
|
add_user_ids: [],
|
|
19446
19580
|
active_permission_ids: [],
|
|
19581
|
+
max_permission: 0,
|
|
19447
19582
|
};
|
|
19448
19583
|
}
|
|
19449
19584
|
|
|
@@ -19476,6 +19611,9 @@ export const CreateRoleRequest = {
|
|
|
19476
19611
|
for (const v of message.active_permission_ids) {
|
|
19477
19612
|
writer.uint32(74).string(v!);
|
|
19478
19613
|
}
|
|
19614
|
+
if (message.max_permission !== 0) {
|
|
19615
|
+
writer.uint32(80).int32(message.max_permission);
|
|
19616
|
+
}
|
|
19479
19617
|
return writer;
|
|
19480
19618
|
},
|
|
19481
19619
|
|
|
@@ -19549,6 +19687,13 @@ export const CreateRoleRequest = {
|
|
|
19549
19687
|
|
|
19550
19688
|
message.active_permission_ids.push(reader.string());
|
|
19551
19689
|
continue;
|
|
19690
|
+
case 10:
|
|
19691
|
+
if (tag !== 80) {
|
|
19692
|
+
break;
|
|
19693
|
+
}
|
|
19694
|
+
|
|
19695
|
+
message.max_permission = reader.int32();
|
|
19696
|
+
continue;
|
|
19552
19697
|
}
|
|
19553
19698
|
if ((tag & 7) === 4 || tag === 0) {
|
|
19554
19699
|
break;
|
|
@@ -19573,6 +19718,7 @@ export const CreateRoleRequest = {
|
|
|
19573
19718
|
active_permission_ids: globalThis.Array.isArray(object?.active_permission_ids)
|
|
19574
19719
|
? object.active_permission_ids.map((e: any) => globalThis.String(e))
|
|
19575
19720
|
: [],
|
|
19721
|
+
max_permission: isSet(object.max_permission) ? globalThis.Number(object.max_permission) : 0,
|
|
19576
19722
|
};
|
|
19577
19723
|
},
|
|
19578
19724
|
|
|
@@ -19605,6 +19751,9 @@ export const CreateRoleRequest = {
|
|
|
19605
19751
|
if (message.active_permission_ids?.length) {
|
|
19606
19752
|
obj.active_permission_ids = message.active_permission_ids;
|
|
19607
19753
|
}
|
|
19754
|
+
if (message.max_permission !== 0) {
|
|
19755
|
+
obj.max_permission = Math.round(message.max_permission);
|
|
19756
|
+
}
|
|
19608
19757
|
return obj;
|
|
19609
19758
|
},
|
|
19610
19759
|
|
|
@@ -19622,6 +19771,7 @@ export const CreateRoleRequest = {
|
|
|
19622
19771
|
message.allow_mention = object.allow_mention ?? 0;
|
|
19623
19772
|
message.add_user_ids = object.add_user_ids?.map((e) => e) || [];
|
|
19624
19773
|
message.active_permission_ids = object.active_permission_ids?.map((e) => e) || [];
|
|
19774
|
+
message.max_permission = object.max_permission ?? 0;
|
|
19625
19775
|
return message;
|
|
19626
19776
|
},
|
|
19627
19777
|
};
|
|
@@ -20212,6 +20362,8 @@ function createBaseUpdateRoleRequest(): UpdateRoleRequest {
|
|
|
20212
20362
|
remove_user_ids: [],
|
|
20213
20363
|
remove_permission_ids: [],
|
|
20214
20364
|
clan_id: "",
|
|
20365
|
+
max_permission: 0,
|
|
20366
|
+
max_permission_updated: 0,
|
|
20215
20367
|
};
|
|
20216
20368
|
}
|
|
20217
20369
|
|
|
@@ -20253,6 +20405,12 @@ export const UpdateRoleRequest = {
|
|
|
20253
20405
|
if (message.clan_id !== "") {
|
|
20254
20406
|
writer.uint32(98).string(message.clan_id);
|
|
20255
20407
|
}
|
|
20408
|
+
if (message.max_permission !== 0) {
|
|
20409
|
+
writer.uint32(104).int32(message.max_permission);
|
|
20410
|
+
}
|
|
20411
|
+
if (message.max_permission_updated !== 0) {
|
|
20412
|
+
writer.uint32(112).int32(message.max_permission_updated);
|
|
20413
|
+
}
|
|
20256
20414
|
return writer;
|
|
20257
20415
|
},
|
|
20258
20416
|
|
|
@@ -20347,6 +20505,20 @@ export const UpdateRoleRequest = {
|
|
|
20347
20505
|
|
|
20348
20506
|
message.clan_id = reader.string();
|
|
20349
20507
|
continue;
|
|
20508
|
+
case 13:
|
|
20509
|
+
if (tag !== 104) {
|
|
20510
|
+
break;
|
|
20511
|
+
}
|
|
20512
|
+
|
|
20513
|
+
message.max_permission = reader.int32();
|
|
20514
|
+
continue;
|
|
20515
|
+
case 14:
|
|
20516
|
+
if (tag !== 112) {
|
|
20517
|
+
break;
|
|
20518
|
+
}
|
|
20519
|
+
|
|
20520
|
+
message.max_permission_updated = reader.int32();
|
|
20521
|
+
continue;
|
|
20350
20522
|
}
|
|
20351
20523
|
if ((tag & 7) === 4 || tag === 0) {
|
|
20352
20524
|
break;
|
|
@@ -20378,6 +20550,10 @@ export const UpdateRoleRequest = {
|
|
|
20378
20550
|
? object.remove_permission_ids.map((e: any) => globalThis.String(e))
|
|
20379
20551
|
: [],
|
|
20380
20552
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
20553
|
+
max_permission: isSet(object.max_permission) ? globalThis.Number(object.max_permission) : 0,
|
|
20554
|
+
max_permission_updated: isSet(object.max_permission_updated)
|
|
20555
|
+
? globalThis.Number(object.max_permission_updated)
|
|
20556
|
+
: 0,
|
|
20381
20557
|
};
|
|
20382
20558
|
},
|
|
20383
20559
|
|
|
@@ -20419,6 +20595,12 @@ export const UpdateRoleRequest = {
|
|
|
20419
20595
|
if (message.clan_id !== "") {
|
|
20420
20596
|
obj.clan_id = message.clan_id;
|
|
20421
20597
|
}
|
|
20598
|
+
if (message.max_permission !== 0) {
|
|
20599
|
+
obj.max_permission = Math.round(message.max_permission);
|
|
20600
|
+
}
|
|
20601
|
+
if (message.max_permission_updated !== 0) {
|
|
20602
|
+
obj.max_permission_updated = Math.round(message.max_permission_updated);
|
|
20603
|
+
}
|
|
20422
20604
|
return obj;
|
|
20423
20605
|
},
|
|
20424
20606
|
|
|
@@ -20439,12 +20621,14 @@ export const UpdateRoleRequest = {
|
|
|
20439
20621
|
message.remove_user_ids = object.remove_user_ids?.map((e) => e) || [];
|
|
20440
20622
|
message.remove_permission_ids = object.remove_permission_ids?.map((e) => e) || [];
|
|
20441
20623
|
message.clan_id = object.clan_id ?? "";
|
|
20624
|
+
message.max_permission = object.max_permission ?? 0;
|
|
20625
|
+
message.max_permission_updated = object.max_permission_updated ?? 0;
|
|
20442
20626
|
return message;
|
|
20443
20627
|
},
|
|
20444
20628
|
};
|
|
20445
20629
|
|
|
20446
20630
|
function createBaseUpdateRoleChannelRequest(): UpdateRoleChannelRequest {
|
|
20447
|
-
return { role_id: "", permission_update: [], channel_id: "" };
|
|
20631
|
+
return { role_id: "", permission_update: [], channel_id: "", max_permission: 0, max_permission_update: 0 };
|
|
20448
20632
|
}
|
|
20449
20633
|
|
|
20450
20634
|
export const UpdateRoleChannelRequest = {
|
|
@@ -20458,6 +20642,12 @@ export const UpdateRoleChannelRequest = {
|
|
|
20458
20642
|
if (message.channel_id !== "") {
|
|
20459
20643
|
writer.uint32(26).string(message.channel_id);
|
|
20460
20644
|
}
|
|
20645
|
+
if (message.max_permission !== 0) {
|
|
20646
|
+
writer.uint32(32).int32(message.max_permission);
|
|
20647
|
+
}
|
|
20648
|
+
if (message.max_permission_update !== 0) {
|
|
20649
|
+
writer.uint32(40).int32(message.max_permission_update);
|
|
20650
|
+
}
|
|
20461
20651
|
return writer;
|
|
20462
20652
|
},
|
|
20463
20653
|
|
|
@@ -20489,6 +20679,20 @@ export const UpdateRoleChannelRequest = {
|
|
|
20489
20679
|
|
|
20490
20680
|
message.channel_id = reader.string();
|
|
20491
20681
|
continue;
|
|
20682
|
+
case 4:
|
|
20683
|
+
if (tag !== 32) {
|
|
20684
|
+
break;
|
|
20685
|
+
}
|
|
20686
|
+
|
|
20687
|
+
message.max_permission = reader.int32();
|
|
20688
|
+
continue;
|
|
20689
|
+
case 5:
|
|
20690
|
+
if (tag !== 40) {
|
|
20691
|
+
break;
|
|
20692
|
+
}
|
|
20693
|
+
|
|
20694
|
+
message.max_permission_update = reader.int32();
|
|
20695
|
+
continue;
|
|
20492
20696
|
}
|
|
20493
20697
|
if ((tag & 7) === 4 || tag === 0) {
|
|
20494
20698
|
break;
|
|
@@ -20505,6 +20709,8 @@ export const UpdateRoleChannelRequest = {
|
|
|
20505
20709
|
? object.permission_update.map((e: any) => PermissionUpdate.fromJSON(e))
|
|
20506
20710
|
: [],
|
|
20507
20711
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
20712
|
+
max_permission: isSet(object.max_permission) ? globalThis.Number(object.max_permission) : 0,
|
|
20713
|
+
max_permission_update: isSet(object.max_permission_update) ? globalThis.Number(object.max_permission_update) : 0,
|
|
20508
20714
|
};
|
|
20509
20715
|
},
|
|
20510
20716
|
|
|
@@ -20519,6 +20725,12 @@ export const UpdateRoleChannelRequest = {
|
|
|
20519
20725
|
if (message.channel_id !== "") {
|
|
20520
20726
|
obj.channel_id = message.channel_id;
|
|
20521
20727
|
}
|
|
20728
|
+
if (message.max_permission !== 0) {
|
|
20729
|
+
obj.max_permission = Math.round(message.max_permission);
|
|
20730
|
+
}
|
|
20731
|
+
if (message.max_permission_update !== 0) {
|
|
20732
|
+
obj.max_permission_update = Math.round(message.max_permission_update);
|
|
20733
|
+
}
|
|
20522
20734
|
return obj;
|
|
20523
20735
|
},
|
|
20524
20736
|
|
|
@@ -20530,6 +20742,8 @@ export const UpdateRoleChannelRequest = {
|
|
|
20530
20742
|
message.role_id = object.role_id ?? "";
|
|
20531
20743
|
message.permission_update = object.permission_update?.map((e) => PermissionUpdate.fromPartial(e)) || [];
|
|
20532
20744
|
message.channel_id = object.channel_id ?? "";
|
|
20745
|
+
message.max_permission = object.max_permission ?? 0;
|
|
20746
|
+
message.max_permission_update = object.max_permission_update ?? 0;
|
|
20533
20747
|
return message;
|
|
20534
20748
|
},
|
|
20535
20749
|
};
|
|
@@ -24735,7 +24949,15 @@ export const DeleteChannelMessagesResponse = {
|
|
|
24735
24949
|
};
|
|
24736
24950
|
|
|
24737
24951
|
function createBaseSystemMessage(): SystemMessage {
|
|
24738
|
-
return {
|
|
24952
|
+
return {
|
|
24953
|
+
id: "",
|
|
24954
|
+
clan_id: "",
|
|
24955
|
+
channel_id: "",
|
|
24956
|
+
welcome_random: "",
|
|
24957
|
+
welcome_sticker: "",
|
|
24958
|
+
boost_message: "",
|
|
24959
|
+
setup_tips: "",
|
|
24960
|
+
};
|
|
24739
24961
|
}
|
|
24740
24962
|
|
|
24741
24963
|
export const SystemMessage = {
|
|
@@ -24749,6 +24971,18 @@ export const SystemMessage = {
|
|
|
24749
24971
|
if (message.channel_id !== "") {
|
|
24750
24972
|
writer.uint32(26).string(message.channel_id);
|
|
24751
24973
|
}
|
|
24974
|
+
if (message.welcome_random !== "") {
|
|
24975
|
+
writer.uint32(34).string(message.welcome_random);
|
|
24976
|
+
}
|
|
24977
|
+
if (message.welcome_sticker !== "") {
|
|
24978
|
+
writer.uint32(42).string(message.welcome_sticker);
|
|
24979
|
+
}
|
|
24980
|
+
if (message.boost_message !== "") {
|
|
24981
|
+
writer.uint32(50).string(message.boost_message);
|
|
24982
|
+
}
|
|
24983
|
+
if (message.setup_tips !== "") {
|
|
24984
|
+
writer.uint32(58).string(message.setup_tips);
|
|
24985
|
+
}
|
|
24752
24986
|
return writer;
|
|
24753
24987
|
},
|
|
24754
24988
|
|
|
@@ -24780,6 +25014,34 @@ export const SystemMessage = {
|
|
|
24780
25014
|
|
|
24781
25015
|
message.channel_id = reader.string();
|
|
24782
25016
|
continue;
|
|
25017
|
+
case 4:
|
|
25018
|
+
if (tag !== 34) {
|
|
25019
|
+
break;
|
|
25020
|
+
}
|
|
25021
|
+
|
|
25022
|
+
message.welcome_random = reader.string();
|
|
25023
|
+
continue;
|
|
25024
|
+
case 5:
|
|
25025
|
+
if (tag !== 42) {
|
|
25026
|
+
break;
|
|
25027
|
+
}
|
|
25028
|
+
|
|
25029
|
+
message.welcome_sticker = reader.string();
|
|
25030
|
+
continue;
|
|
25031
|
+
case 6:
|
|
25032
|
+
if (tag !== 50) {
|
|
25033
|
+
break;
|
|
25034
|
+
}
|
|
25035
|
+
|
|
25036
|
+
message.boost_message = reader.string();
|
|
25037
|
+
continue;
|
|
25038
|
+
case 7:
|
|
25039
|
+
if (tag !== 58) {
|
|
25040
|
+
break;
|
|
25041
|
+
}
|
|
25042
|
+
|
|
25043
|
+
message.setup_tips = reader.string();
|
|
25044
|
+
continue;
|
|
24783
25045
|
}
|
|
24784
25046
|
if ((tag & 7) === 4 || tag === 0) {
|
|
24785
25047
|
break;
|
|
@@ -24794,6 +25056,10 @@ export const SystemMessage = {
|
|
|
24794
25056
|
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
24795
25057
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
24796
25058
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
25059
|
+
welcome_random: isSet(object.welcome_random) ? globalThis.String(object.welcome_random) : "",
|
|
25060
|
+
welcome_sticker: isSet(object.welcome_sticker) ? globalThis.String(object.welcome_sticker) : "",
|
|
25061
|
+
boost_message: isSet(object.boost_message) ? globalThis.String(object.boost_message) : "",
|
|
25062
|
+
setup_tips: isSet(object.setup_tips) ? globalThis.String(object.setup_tips) : "",
|
|
24797
25063
|
};
|
|
24798
25064
|
},
|
|
24799
25065
|
|
|
@@ -24808,6 +25074,18 @@ export const SystemMessage = {
|
|
|
24808
25074
|
if (message.channel_id !== "") {
|
|
24809
25075
|
obj.channel_id = message.channel_id;
|
|
24810
25076
|
}
|
|
25077
|
+
if (message.welcome_random !== "") {
|
|
25078
|
+
obj.welcome_random = message.welcome_random;
|
|
25079
|
+
}
|
|
25080
|
+
if (message.welcome_sticker !== "") {
|
|
25081
|
+
obj.welcome_sticker = message.welcome_sticker;
|
|
25082
|
+
}
|
|
25083
|
+
if (message.boost_message !== "") {
|
|
25084
|
+
obj.boost_message = message.boost_message;
|
|
25085
|
+
}
|
|
25086
|
+
if (message.setup_tips !== "") {
|
|
25087
|
+
obj.setup_tips = message.setup_tips;
|
|
25088
|
+
}
|
|
24811
25089
|
return obj;
|
|
24812
25090
|
},
|
|
24813
25091
|
|
|
@@ -24819,6 +25097,10 @@ export const SystemMessage = {
|
|
|
24819
25097
|
message.id = object.id ?? "";
|
|
24820
25098
|
message.clan_id = object.clan_id ?? "";
|
|
24821
25099
|
message.channel_id = object.channel_id ?? "";
|
|
25100
|
+
message.welcome_random = object.welcome_random ?? "";
|
|
25101
|
+
message.welcome_sticker = object.welcome_sticker ?? "";
|
|
25102
|
+
message.boost_message = object.boost_message ?? "";
|
|
25103
|
+
message.setup_tips = object.setup_tips ?? "";
|
|
24822
25104
|
return message;
|
|
24823
25105
|
},
|
|
24824
25106
|
};
|
|
@@ -24885,7 +25167,7 @@ export const SystemMessagesList = {
|
|
|
24885
25167
|
};
|
|
24886
25168
|
|
|
24887
25169
|
function createBaseSystemMessageRequest(): SystemMessageRequest {
|
|
24888
|
-
return { clan_id: "", channel_id: "" };
|
|
25170
|
+
return { clan_id: "", channel_id: "", welcome_random: "", welcome_sticker: "", boost_message: "", setup_tips: "" };
|
|
24889
25171
|
}
|
|
24890
25172
|
|
|
24891
25173
|
export const SystemMessageRequest = {
|
|
@@ -24896,6 +25178,18 @@ export const SystemMessageRequest = {
|
|
|
24896
25178
|
if (message.channel_id !== "") {
|
|
24897
25179
|
writer.uint32(18).string(message.channel_id);
|
|
24898
25180
|
}
|
|
25181
|
+
if (message.welcome_random !== "") {
|
|
25182
|
+
writer.uint32(26).string(message.welcome_random);
|
|
25183
|
+
}
|
|
25184
|
+
if (message.welcome_sticker !== "") {
|
|
25185
|
+
writer.uint32(34).string(message.welcome_sticker);
|
|
25186
|
+
}
|
|
25187
|
+
if (message.boost_message !== "") {
|
|
25188
|
+
writer.uint32(42).string(message.boost_message);
|
|
25189
|
+
}
|
|
25190
|
+
if (message.setup_tips !== "") {
|
|
25191
|
+
writer.uint32(50).string(message.setup_tips);
|
|
25192
|
+
}
|
|
24899
25193
|
return writer;
|
|
24900
25194
|
},
|
|
24901
25195
|
|
|
@@ -24920,6 +25214,34 @@ export const SystemMessageRequest = {
|
|
|
24920
25214
|
|
|
24921
25215
|
message.channel_id = reader.string();
|
|
24922
25216
|
continue;
|
|
25217
|
+
case 3:
|
|
25218
|
+
if (tag !== 26) {
|
|
25219
|
+
break;
|
|
25220
|
+
}
|
|
25221
|
+
|
|
25222
|
+
message.welcome_random = reader.string();
|
|
25223
|
+
continue;
|
|
25224
|
+
case 4:
|
|
25225
|
+
if (tag !== 34) {
|
|
25226
|
+
break;
|
|
25227
|
+
}
|
|
25228
|
+
|
|
25229
|
+
message.welcome_sticker = reader.string();
|
|
25230
|
+
continue;
|
|
25231
|
+
case 5:
|
|
25232
|
+
if (tag !== 42) {
|
|
25233
|
+
break;
|
|
25234
|
+
}
|
|
25235
|
+
|
|
25236
|
+
message.boost_message = reader.string();
|
|
25237
|
+
continue;
|
|
25238
|
+
case 6:
|
|
25239
|
+
if (tag !== 50) {
|
|
25240
|
+
break;
|
|
25241
|
+
}
|
|
25242
|
+
|
|
25243
|
+
message.setup_tips = reader.string();
|
|
25244
|
+
continue;
|
|
24923
25245
|
}
|
|
24924
25246
|
if ((tag & 7) === 4 || tag === 0) {
|
|
24925
25247
|
break;
|
|
@@ -24933,6 +25255,10 @@ export const SystemMessageRequest = {
|
|
|
24933
25255
|
return {
|
|
24934
25256
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
24935
25257
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
25258
|
+
welcome_random: isSet(object.welcome_random) ? globalThis.String(object.welcome_random) : "",
|
|
25259
|
+
welcome_sticker: isSet(object.welcome_sticker) ? globalThis.String(object.welcome_sticker) : "",
|
|
25260
|
+
boost_message: isSet(object.boost_message) ? globalThis.String(object.boost_message) : "",
|
|
25261
|
+
setup_tips: isSet(object.setup_tips) ? globalThis.String(object.setup_tips) : "",
|
|
24936
25262
|
};
|
|
24937
25263
|
},
|
|
24938
25264
|
|
|
@@ -24944,6 +25270,18 @@ export const SystemMessageRequest = {
|
|
|
24944
25270
|
if (message.channel_id !== "") {
|
|
24945
25271
|
obj.channel_id = message.channel_id;
|
|
24946
25272
|
}
|
|
25273
|
+
if (message.welcome_random !== "") {
|
|
25274
|
+
obj.welcome_random = message.welcome_random;
|
|
25275
|
+
}
|
|
25276
|
+
if (message.welcome_sticker !== "") {
|
|
25277
|
+
obj.welcome_sticker = message.welcome_sticker;
|
|
25278
|
+
}
|
|
25279
|
+
if (message.boost_message !== "") {
|
|
25280
|
+
obj.boost_message = message.boost_message;
|
|
25281
|
+
}
|
|
25282
|
+
if (message.setup_tips !== "") {
|
|
25283
|
+
obj.setup_tips = message.setup_tips;
|
|
25284
|
+
}
|
|
24947
25285
|
return obj;
|
|
24948
25286
|
},
|
|
24949
25287
|
|
|
@@ -24954,6 +25292,10 @@ export const SystemMessageRequest = {
|
|
|
24954
25292
|
const message = createBaseSystemMessageRequest();
|
|
24955
25293
|
message.clan_id = object.clan_id ?? "";
|
|
24956
25294
|
message.channel_id = object.channel_id ?? "";
|
|
25295
|
+
message.welcome_random = object.welcome_random ?? "";
|
|
25296
|
+
message.welcome_sticker = object.welcome_sticker ?? "";
|
|
25297
|
+
message.boost_message = object.boost_message ?? "";
|
|
25298
|
+
message.setup_tips = object.setup_tips ?? "";
|
|
24957
25299
|
return message;
|
|
24958
25300
|
},
|
|
24959
25301
|
};
|
|
@@ -25129,6 +25471,1026 @@ export const DeleteCategoryOrderRequest = {
|
|
|
25129
25471
|
},
|
|
25130
25472
|
};
|
|
25131
25473
|
|
|
25474
|
+
function createBaseOssrsHttpCallbackRequest(): OssrsHttpCallbackRequest {
|
|
25475
|
+
return {
|
|
25476
|
+
action: "",
|
|
25477
|
+
client_id: "",
|
|
25478
|
+
ip: "",
|
|
25479
|
+
vhost: "",
|
|
25480
|
+
app: "",
|
|
25481
|
+
stream: "",
|
|
25482
|
+
param: undefined,
|
|
25483
|
+
server_id: "",
|
|
25484
|
+
stream_url: "",
|
|
25485
|
+
stream_id: "",
|
|
25486
|
+
page_url: undefined,
|
|
25487
|
+
tcUrl: undefined,
|
|
25488
|
+
service_id: undefined,
|
|
25489
|
+
};
|
|
25490
|
+
}
|
|
25491
|
+
|
|
25492
|
+
export const OssrsHttpCallbackRequest = {
|
|
25493
|
+
encode(message: OssrsHttpCallbackRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
25494
|
+
if (message.action !== "") {
|
|
25495
|
+
writer.uint32(10).string(message.action);
|
|
25496
|
+
}
|
|
25497
|
+
if (message.client_id !== "") {
|
|
25498
|
+
writer.uint32(18).string(message.client_id);
|
|
25499
|
+
}
|
|
25500
|
+
if (message.ip !== "") {
|
|
25501
|
+
writer.uint32(26).string(message.ip);
|
|
25502
|
+
}
|
|
25503
|
+
if (message.vhost !== "") {
|
|
25504
|
+
writer.uint32(34).string(message.vhost);
|
|
25505
|
+
}
|
|
25506
|
+
if (message.app !== "") {
|
|
25507
|
+
writer.uint32(42).string(message.app);
|
|
25508
|
+
}
|
|
25509
|
+
if (message.stream !== "") {
|
|
25510
|
+
writer.uint32(50).string(message.stream);
|
|
25511
|
+
}
|
|
25512
|
+
if (message.param !== undefined) {
|
|
25513
|
+
StringValue.encode({ value: message.param! }, writer.uint32(58).fork()).ldelim();
|
|
25514
|
+
}
|
|
25515
|
+
if (message.server_id !== "") {
|
|
25516
|
+
writer.uint32(66).string(message.server_id);
|
|
25517
|
+
}
|
|
25518
|
+
if (message.stream_url !== "") {
|
|
25519
|
+
writer.uint32(74).string(message.stream_url);
|
|
25520
|
+
}
|
|
25521
|
+
if (message.stream_id !== "") {
|
|
25522
|
+
writer.uint32(82).string(message.stream_id);
|
|
25523
|
+
}
|
|
25524
|
+
if (message.page_url !== undefined) {
|
|
25525
|
+
StringValue.encode({ value: message.page_url! }, writer.uint32(90).fork()).ldelim();
|
|
25526
|
+
}
|
|
25527
|
+
if (message.tcUrl !== undefined) {
|
|
25528
|
+
StringValue.encode({ value: message.tcUrl! }, writer.uint32(98).fork()).ldelim();
|
|
25529
|
+
}
|
|
25530
|
+
if (message.service_id !== undefined) {
|
|
25531
|
+
StringValue.encode({ value: message.service_id! }, writer.uint32(106).fork()).ldelim();
|
|
25532
|
+
}
|
|
25533
|
+
return writer;
|
|
25534
|
+
},
|
|
25535
|
+
|
|
25536
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): OssrsHttpCallbackRequest {
|
|
25537
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
25538
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
25539
|
+
const message = createBaseOssrsHttpCallbackRequest();
|
|
25540
|
+
while (reader.pos < end) {
|
|
25541
|
+
const tag = reader.uint32();
|
|
25542
|
+
switch (tag >>> 3) {
|
|
25543
|
+
case 1:
|
|
25544
|
+
if (tag !== 10) {
|
|
25545
|
+
break;
|
|
25546
|
+
}
|
|
25547
|
+
|
|
25548
|
+
message.action = reader.string();
|
|
25549
|
+
continue;
|
|
25550
|
+
case 2:
|
|
25551
|
+
if (tag !== 18) {
|
|
25552
|
+
break;
|
|
25553
|
+
}
|
|
25554
|
+
|
|
25555
|
+
message.client_id = reader.string();
|
|
25556
|
+
continue;
|
|
25557
|
+
case 3:
|
|
25558
|
+
if (tag !== 26) {
|
|
25559
|
+
break;
|
|
25560
|
+
}
|
|
25561
|
+
|
|
25562
|
+
message.ip = reader.string();
|
|
25563
|
+
continue;
|
|
25564
|
+
case 4:
|
|
25565
|
+
if (tag !== 34) {
|
|
25566
|
+
break;
|
|
25567
|
+
}
|
|
25568
|
+
|
|
25569
|
+
message.vhost = reader.string();
|
|
25570
|
+
continue;
|
|
25571
|
+
case 5:
|
|
25572
|
+
if (tag !== 42) {
|
|
25573
|
+
break;
|
|
25574
|
+
}
|
|
25575
|
+
|
|
25576
|
+
message.app = reader.string();
|
|
25577
|
+
continue;
|
|
25578
|
+
case 6:
|
|
25579
|
+
if (tag !== 50) {
|
|
25580
|
+
break;
|
|
25581
|
+
}
|
|
25582
|
+
|
|
25583
|
+
message.stream = reader.string();
|
|
25584
|
+
continue;
|
|
25585
|
+
case 7:
|
|
25586
|
+
if (tag !== 58) {
|
|
25587
|
+
break;
|
|
25588
|
+
}
|
|
25589
|
+
|
|
25590
|
+
message.param = StringValue.decode(reader, reader.uint32()).value;
|
|
25591
|
+
continue;
|
|
25592
|
+
case 8:
|
|
25593
|
+
if (tag !== 66) {
|
|
25594
|
+
break;
|
|
25595
|
+
}
|
|
25596
|
+
|
|
25597
|
+
message.server_id = reader.string();
|
|
25598
|
+
continue;
|
|
25599
|
+
case 9:
|
|
25600
|
+
if (tag !== 74) {
|
|
25601
|
+
break;
|
|
25602
|
+
}
|
|
25603
|
+
|
|
25604
|
+
message.stream_url = reader.string();
|
|
25605
|
+
continue;
|
|
25606
|
+
case 10:
|
|
25607
|
+
if (tag !== 82) {
|
|
25608
|
+
break;
|
|
25609
|
+
}
|
|
25610
|
+
|
|
25611
|
+
message.stream_id = reader.string();
|
|
25612
|
+
continue;
|
|
25613
|
+
case 11:
|
|
25614
|
+
if (tag !== 90) {
|
|
25615
|
+
break;
|
|
25616
|
+
}
|
|
25617
|
+
|
|
25618
|
+
message.page_url = StringValue.decode(reader, reader.uint32()).value;
|
|
25619
|
+
continue;
|
|
25620
|
+
case 12:
|
|
25621
|
+
if (tag !== 98) {
|
|
25622
|
+
break;
|
|
25623
|
+
}
|
|
25624
|
+
|
|
25625
|
+
message.tcUrl = StringValue.decode(reader, reader.uint32()).value;
|
|
25626
|
+
continue;
|
|
25627
|
+
case 13:
|
|
25628
|
+
if (tag !== 106) {
|
|
25629
|
+
break;
|
|
25630
|
+
}
|
|
25631
|
+
|
|
25632
|
+
message.service_id = StringValue.decode(reader, reader.uint32()).value;
|
|
25633
|
+
continue;
|
|
25634
|
+
}
|
|
25635
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
25636
|
+
break;
|
|
25637
|
+
}
|
|
25638
|
+
reader.skipType(tag & 7);
|
|
25639
|
+
}
|
|
25640
|
+
return message;
|
|
25641
|
+
},
|
|
25642
|
+
|
|
25643
|
+
fromJSON(object: any): OssrsHttpCallbackRequest {
|
|
25644
|
+
return {
|
|
25645
|
+
action: isSet(object.action) ? globalThis.String(object.action) : "",
|
|
25646
|
+
client_id: isSet(object.client_id) ? globalThis.String(object.client_id) : "",
|
|
25647
|
+
ip: isSet(object.ip) ? globalThis.String(object.ip) : "",
|
|
25648
|
+
vhost: isSet(object.vhost) ? globalThis.String(object.vhost) : "",
|
|
25649
|
+
app: isSet(object.app) ? globalThis.String(object.app) : "",
|
|
25650
|
+
stream: isSet(object.stream) ? globalThis.String(object.stream) : "",
|
|
25651
|
+
param: isSet(object.param) ? String(object.param) : undefined,
|
|
25652
|
+
server_id: isSet(object.server_id) ? globalThis.String(object.server_id) : "",
|
|
25653
|
+
stream_url: isSet(object.stream_url) ? globalThis.String(object.stream_url) : "",
|
|
25654
|
+
stream_id: isSet(object.stream_id) ? globalThis.String(object.stream_id) : "",
|
|
25655
|
+
page_url: isSet(object.page_url) ? String(object.page_url) : undefined,
|
|
25656
|
+
tcUrl: isSet(object.tcUrl) ? String(object.tcUrl) : undefined,
|
|
25657
|
+
service_id: isSet(object.service_id) ? String(object.service_id) : undefined,
|
|
25658
|
+
};
|
|
25659
|
+
},
|
|
25660
|
+
|
|
25661
|
+
toJSON(message: OssrsHttpCallbackRequest): unknown {
|
|
25662
|
+
const obj: any = {};
|
|
25663
|
+
if (message.action !== "") {
|
|
25664
|
+
obj.action = message.action;
|
|
25665
|
+
}
|
|
25666
|
+
if (message.client_id !== "") {
|
|
25667
|
+
obj.client_id = message.client_id;
|
|
25668
|
+
}
|
|
25669
|
+
if (message.ip !== "") {
|
|
25670
|
+
obj.ip = message.ip;
|
|
25671
|
+
}
|
|
25672
|
+
if (message.vhost !== "") {
|
|
25673
|
+
obj.vhost = message.vhost;
|
|
25674
|
+
}
|
|
25675
|
+
if (message.app !== "") {
|
|
25676
|
+
obj.app = message.app;
|
|
25677
|
+
}
|
|
25678
|
+
if (message.stream !== "") {
|
|
25679
|
+
obj.stream = message.stream;
|
|
25680
|
+
}
|
|
25681
|
+
if (message.param !== undefined) {
|
|
25682
|
+
obj.param = message.param;
|
|
25683
|
+
}
|
|
25684
|
+
if (message.server_id !== "") {
|
|
25685
|
+
obj.server_id = message.server_id;
|
|
25686
|
+
}
|
|
25687
|
+
if (message.stream_url !== "") {
|
|
25688
|
+
obj.stream_url = message.stream_url;
|
|
25689
|
+
}
|
|
25690
|
+
if (message.stream_id !== "") {
|
|
25691
|
+
obj.stream_id = message.stream_id;
|
|
25692
|
+
}
|
|
25693
|
+
if (message.page_url !== undefined) {
|
|
25694
|
+
obj.page_url = message.page_url;
|
|
25695
|
+
}
|
|
25696
|
+
if (message.tcUrl !== undefined) {
|
|
25697
|
+
obj.tcUrl = message.tcUrl;
|
|
25698
|
+
}
|
|
25699
|
+
if (message.service_id !== undefined) {
|
|
25700
|
+
obj.service_id = message.service_id;
|
|
25701
|
+
}
|
|
25702
|
+
return obj;
|
|
25703
|
+
},
|
|
25704
|
+
|
|
25705
|
+
create<I extends Exact<DeepPartial<OssrsHttpCallbackRequest>, I>>(base?: I): OssrsHttpCallbackRequest {
|
|
25706
|
+
return OssrsHttpCallbackRequest.fromPartial(base ?? ({} as any));
|
|
25707
|
+
},
|
|
25708
|
+
fromPartial<I extends Exact<DeepPartial<OssrsHttpCallbackRequest>, I>>(object: I): OssrsHttpCallbackRequest {
|
|
25709
|
+
const message = createBaseOssrsHttpCallbackRequest();
|
|
25710
|
+
message.action = object.action ?? "";
|
|
25711
|
+
message.client_id = object.client_id ?? "";
|
|
25712
|
+
message.ip = object.ip ?? "";
|
|
25713
|
+
message.vhost = object.vhost ?? "";
|
|
25714
|
+
message.app = object.app ?? "";
|
|
25715
|
+
message.stream = object.stream ?? "";
|
|
25716
|
+
message.param = object.param ?? undefined;
|
|
25717
|
+
message.server_id = object.server_id ?? "";
|
|
25718
|
+
message.stream_url = object.stream_url ?? "";
|
|
25719
|
+
message.stream_id = object.stream_id ?? "";
|
|
25720
|
+
message.page_url = object.page_url ?? undefined;
|
|
25721
|
+
message.tcUrl = object.tcUrl ?? undefined;
|
|
25722
|
+
message.service_id = object.service_id ?? undefined;
|
|
25723
|
+
return message;
|
|
25724
|
+
},
|
|
25725
|
+
};
|
|
25726
|
+
|
|
25727
|
+
function createBaseOssrsHttpCallbackResponse(): OssrsHttpCallbackResponse {
|
|
25728
|
+
return { code: undefined, msg: "" };
|
|
25729
|
+
}
|
|
25730
|
+
|
|
25731
|
+
export const OssrsHttpCallbackResponse = {
|
|
25732
|
+
encode(message: OssrsHttpCallbackResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
25733
|
+
if (message.code !== undefined) {
|
|
25734
|
+
Int32Value.encode({ value: message.code! }, writer.uint32(10).fork()).ldelim();
|
|
25735
|
+
}
|
|
25736
|
+
if (message.msg !== "") {
|
|
25737
|
+
writer.uint32(18).string(message.msg);
|
|
25738
|
+
}
|
|
25739
|
+
return writer;
|
|
25740
|
+
},
|
|
25741
|
+
|
|
25742
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): OssrsHttpCallbackResponse {
|
|
25743
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
25744
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
25745
|
+
const message = createBaseOssrsHttpCallbackResponse();
|
|
25746
|
+
while (reader.pos < end) {
|
|
25747
|
+
const tag = reader.uint32();
|
|
25748
|
+
switch (tag >>> 3) {
|
|
25749
|
+
case 1:
|
|
25750
|
+
if (tag !== 10) {
|
|
25751
|
+
break;
|
|
25752
|
+
}
|
|
25753
|
+
|
|
25754
|
+
message.code = Int32Value.decode(reader, reader.uint32()).value;
|
|
25755
|
+
continue;
|
|
25756
|
+
case 2:
|
|
25757
|
+
if (tag !== 18) {
|
|
25758
|
+
break;
|
|
25759
|
+
}
|
|
25760
|
+
|
|
25761
|
+
message.msg = reader.string();
|
|
25762
|
+
continue;
|
|
25763
|
+
}
|
|
25764
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
25765
|
+
break;
|
|
25766
|
+
}
|
|
25767
|
+
reader.skipType(tag & 7);
|
|
25768
|
+
}
|
|
25769
|
+
return message;
|
|
25770
|
+
},
|
|
25771
|
+
|
|
25772
|
+
fromJSON(object: any): OssrsHttpCallbackResponse {
|
|
25773
|
+
return {
|
|
25774
|
+
code: isSet(object.code) ? Number(object.code) : undefined,
|
|
25775
|
+
msg: isSet(object.msg) ? globalThis.String(object.msg) : "",
|
|
25776
|
+
};
|
|
25777
|
+
},
|
|
25778
|
+
|
|
25779
|
+
toJSON(message: OssrsHttpCallbackResponse): unknown {
|
|
25780
|
+
const obj: any = {};
|
|
25781
|
+
if (message.code !== undefined) {
|
|
25782
|
+
obj.code = message.code;
|
|
25783
|
+
}
|
|
25784
|
+
if (message.msg !== "") {
|
|
25785
|
+
obj.msg = message.msg;
|
|
25786
|
+
}
|
|
25787
|
+
return obj;
|
|
25788
|
+
},
|
|
25789
|
+
|
|
25790
|
+
create<I extends Exact<DeepPartial<OssrsHttpCallbackResponse>, I>>(base?: I): OssrsHttpCallbackResponse {
|
|
25791
|
+
return OssrsHttpCallbackResponse.fromPartial(base ?? ({} as any));
|
|
25792
|
+
},
|
|
25793
|
+
fromPartial<I extends Exact<DeepPartial<OssrsHttpCallbackResponse>, I>>(object: I): OssrsHttpCallbackResponse {
|
|
25794
|
+
const message = createBaseOssrsHttpCallbackResponse();
|
|
25795
|
+
message.code = object.code ?? undefined;
|
|
25796
|
+
message.msg = object.msg ?? "";
|
|
25797
|
+
return message;
|
|
25798
|
+
},
|
|
25799
|
+
};
|
|
25800
|
+
|
|
25801
|
+
function createBaseStreamingChannelUser(): StreamingChannelUser {
|
|
25802
|
+
return { id: "", user_id: "", channel_id: "", participant: "" };
|
|
25803
|
+
}
|
|
25804
|
+
|
|
25805
|
+
export const StreamingChannelUser = {
|
|
25806
|
+
encode(message: StreamingChannelUser, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
25807
|
+
if (message.id !== "") {
|
|
25808
|
+
writer.uint32(10).string(message.id);
|
|
25809
|
+
}
|
|
25810
|
+
if (message.user_id !== "") {
|
|
25811
|
+
writer.uint32(18).string(message.user_id);
|
|
25812
|
+
}
|
|
25813
|
+
if (message.channel_id !== "") {
|
|
25814
|
+
writer.uint32(26).string(message.channel_id);
|
|
25815
|
+
}
|
|
25816
|
+
if (message.participant !== "") {
|
|
25817
|
+
writer.uint32(34).string(message.participant);
|
|
25818
|
+
}
|
|
25819
|
+
return writer;
|
|
25820
|
+
},
|
|
25821
|
+
|
|
25822
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): StreamingChannelUser {
|
|
25823
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
25824
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
25825
|
+
const message = createBaseStreamingChannelUser();
|
|
25826
|
+
while (reader.pos < end) {
|
|
25827
|
+
const tag = reader.uint32();
|
|
25828
|
+
switch (tag >>> 3) {
|
|
25829
|
+
case 1:
|
|
25830
|
+
if (tag !== 10) {
|
|
25831
|
+
break;
|
|
25832
|
+
}
|
|
25833
|
+
|
|
25834
|
+
message.id = reader.string();
|
|
25835
|
+
continue;
|
|
25836
|
+
case 2:
|
|
25837
|
+
if (tag !== 18) {
|
|
25838
|
+
break;
|
|
25839
|
+
}
|
|
25840
|
+
|
|
25841
|
+
message.user_id = reader.string();
|
|
25842
|
+
continue;
|
|
25843
|
+
case 3:
|
|
25844
|
+
if (tag !== 26) {
|
|
25845
|
+
break;
|
|
25846
|
+
}
|
|
25847
|
+
|
|
25848
|
+
message.channel_id = reader.string();
|
|
25849
|
+
continue;
|
|
25850
|
+
case 4:
|
|
25851
|
+
if (tag !== 34) {
|
|
25852
|
+
break;
|
|
25853
|
+
}
|
|
25854
|
+
|
|
25855
|
+
message.participant = reader.string();
|
|
25856
|
+
continue;
|
|
25857
|
+
}
|
|
25858
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
25859
|
+
break;
|
|
25860
|
+
}
|
|
25861
|
+
reader.skipType(tag & 7);
|
|
25862
|
+
}
|
|
25863
|
+
return message;
|
|
25864
|
+
},
|
|
25865
|
+
|
|
25866
|
+
fromJSON(object: any): StreamingChannelUser {
|
|
25867
|
+
return {
|
|
25868
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
25869
|
+
user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
|
|
25870
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
25871
|
+
participant: isSet(object.participant) ? globalThis.String(object.participant) : "",
|
|
25872
|
+
};
|
|
25873
|
+
},
|
|
25874
|
+
|
|
25875
|
+
toJSON(message: StreamingChannelUser): unknown {
|
|
25876
|
+
const obj: any = {};
|
|
25877
|
+
if (message.id !== "") {
|
|
25878
|
+
obj.id = message.id;
|
|
25879
|
+
}
|
|
25880
|
+
if (message.user_id !== "") {
|
|
25881
|
+
obj.user_id = message.user_id;
|
|
25882
|
+
}
|
|
25883
|
+
if (message.channel_id !== "") {
|
|
25884
|
+
obj.channel_id = message.channel_id;
|
|
25885
|
+
}
|
|
25886
|
+
if (message.participant !== "") {
|
|
25887
|
+
obj.participant = message.participant;
|
|
25888
|
+
}
|
|
25889
|
+
return obj;
|
|
25890
|
+
},
|
|
25891
|
+
|
|
25892
|
+
create<I extends Exact<DeepPartial<StreamingChannelUser>, I>>(base?: I): StreamingChannelUser {
|
|
25893
|
+
return StreamingChannelUser.fromPartial(base ?? ({} as any));
|
|
25894
|
+
},
|
|
25895
|
+
fromPartial<I extends Exact<DeepPartial<StreamingChannelUser>, I>>(object: I): StreamingChannelUser {
|
|
25896
|
+
const message = createBaseStreamingChannelUser();
|
|
25897
|
+
message.id = object.id ?? "";
|
|
25898
|
+
message.user_id = object.user_id ?? "";
|
|
25899
|
+
message.channel_id = object.channel_id ?? "";
|
|
25900
|
+
message.participant = object.participant ?? "";
|
|
25901
|
+
return message;
|
|
25902
|
+
},
|
|
25903
|
+
};
|
|
25904
|
+
|
|
25905
|
+
function createBaseStreamingChannelUserList(): StreamingChannelUserList {
|
|
25906
|
+
return { streaming_channel_users: [] };
|
|
25907
|
+
}
|
|
25908
|
+
|
|
25909
|
+
export const StreamingChannelUserList = {
|
|
25910
|
+
encode(message: StreamingChannelUserList, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
25911
|
+
for (const v of message.streaming_channel_users) {
|
|
25912
|
+
StreamingChannelUser.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
25913
|
+
}
|
|
25914
|
+
return writer;
|
|
25915
|
+
},
|
|
25916
|
+
|
|
25917
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): StreamingChannelUserList {
|
|
25918
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
25919
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
25920
|
+
const message = createBaseStreamingChannelUserList();
|
|
25921
|
+
while (reader.pos < end) {
|
|
25922
|
+
const tag = reader.uint32();
|
|
25923
|
+
switch (tag >>> 3) {
|
|
25924
|
+
case 1:
|
|
25925
|
+
if (tag !== 10) {
|
|
25926
|
+
break;
|
|
25927
|
+
}
|
|
25928
|
+
|
|
25929
|
+
message.streaming_channel_users.push(StreamingChannelUser.decode(reader, reader.uint32()));
|
|
25930
|
+
continue;
|
|
25931
|
+
}
|
|
25932
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
25933
|
+
break;
|
|
25934
|
+
}
|
|
25935
|
+
reader.skipType(tag & 7);
|
|
25936
|
+
}
|
|
25937
|
+
return message;
|
|
25938
|
+
},
|
|
25939
|
+
|
|
25940
|
+
fromJSON(object: any): StreamingChannelUserList {
|
|
25941
|
+
return {
|
|
25942
|
+
streaming_channel_users: globalThis.Array.isArray(object?.streaming_channel_users)
|
|
25943
|
+
? object.streaming_channel_users.map((e: any) => StreamingChannelUser.fromJSON(e))
|
|
25944
|
+
: [],
|
|
25945
|
+
};
|
|
25946
|
+
},
|
|
25947
|
+
|
|
25948
|
+
toJSON(message: StreamingChannelUserList): unknown {
|
|
25949
|
+
const obj: any = {};
|
|
25950
|
+
if (message.streaming_channel_users?.length) {
|
|
25951
|
+
obj.streaming_channel_users = message.streaming_channel_users.map((e) => StreamingChannelUser.toJSON(e));
|
|
25952
|
+
}
|
|
25953
|
+
return obj;
|
|
25954
|
+
},
|
|
25955
|
+
|
|
25956
|
+
create<I extends Exact<DeepPartial<StreamingChannelUserList>, I>>(base?: I): StreamingChannelUserList {
|
|
25957
|
+
return StreamingChannelUserList.fromPartial(base ?? ({} as any));
|
|
25958
|
+
},
|
|
25959
|
+
fromPartial<I extends Exact<DeepPartial<StreamingChannelUserList>, I>>(object: I): StreamingChannelUserList {
|
|
25960
|
+
const message = createBaseStreamingChannelUserList();
|
|
25961
|
+
message.streaming_channel_users = object.streaming_channel_users?.map((e) => StreamingChannelUser.fromPartial(e)) ||
|
|
25962
|
+
[];
|
|
25963
|
+
return message;
|
|
25964
|
+
},
|
|
25965
|
+
};
|
|
25966
|
+
|
|
25967
|
+
function createBaseRegisterStreamingChannelRequest(): RegisterStreamingChannelRequest {
|
|
25968
|
+
return { clan_id: "", channel_id: "" };
|
|
25969
|
+
}
|
|
25970
|
+
|
|
25971
|
+
export const RegisterStreamingChannelRequest = {
|
|
25972
|
+
encode(message: RegisterStreamingChannelRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
25973
|
+
if (message.clan_id !== "") {
|
|
25974
|
+
writer.uint32(10).string(message.clan_id);
|
|
25975
|
+
}
|
|
25976
|
+
if (message.channel_id !== "") {
|
|
25977
|
+
writer.uint32(18).string(message.channel_id);
|
|
25978
|
+
}
|
|
25979
|
+
return writer;
|
|
25980
|
+
},
|
|
25981
|
+
|
|
25982
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): RegisterStreamingChannelRequest {
|
|
25983
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
25984
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
25985
|
+
const message = createBaseRegisterStreamingChannelRequest();
|
|
25986
|
+
while (reader.pos < end) {
|
|
25987
|
+
const tag = reader.uint32();
|
|
25988
|
+
switch (tag >>> 3) {
|
|
25989
|
+
case 1:
|
|
25990
|
+
if (tag !== 10) {
|
|
25991
|
+
break;
|
|
25992
|
+
}
|
|
25993
|
+
|
|
25994
|
+
message.clan_id = reader.string();
|
|
25995
|
+
continue;
|
|
25996
|
+
case 2:
|
|
25997
|
+
if (tag !== 18) {
|
|
25998
|
+
break;
|
|
25999
|
+
}
|
|
26000
|
+
|
|
26001
|
+
message.channel_id = reader.string();
|
|
26002
|
+
continue;
|
|
26003
|
+
}
|
|
26004
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
26005
|
+
break;
|
|
26006
|
+
}
|
|
26007
|
+
reader.skipType(tag & 7);
|
|
26008
|
+
}
|
|
26009
|
+
return message;
|
|
26010
|
+
},
|
|
26011
|
+
|
|
26012
|
+
fromJSON(object: any): RegisterStreamingChannelRequest {
|
|
26013
|
+
return {
|
|
26014
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
26015
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
26016
|
+
};
|
|
26017
|
+
},
|
|
26018
|
+
|
|
26019
|
+
toJSON(message: RegisterStreamingChannelRequest): unknown {
|
|
26020
|
+
const obj: any = {};
|
|
26021
|
+
if (message.clan_id !== "") {
|
|
26022
|
+
obj.clan_id = message.clan_id;
|
|
26023
|
+
}
|
|
26024
|
+
if (message.channel_id !== "") {
|
|
26025
|
+
obj.channel_id = message.channel_id;
|
|
26026
|
+
}
|
|
26027
|
+
return obj;
|
|
26028
|
+
},
|
|
26029
|
+
|
|
26030
|
+
create<I extends Exact<DeepPartial<RegisterStreamingChannelRequest>, I>>(base?: I): RegisterStreamingChannelRequest {
|
|
26031
|
+
return RegisterStreamingChannelRequest.fromPartial(base ?? ({} as any));
|
|
26032
|
+
},
|
|
26033
|
+
fromPartial<I extends Exact<DeepPartial<RegisterStreamingChannelRequest>, I>>(
|
|
26034
|
+
object: I,
|
|
26035
|
+
): RegisterStreamingChannelRequest {
|
|
26036
|
+
const message = createBaseRegisterStreamingChannelRequest();
|
|
26037
|
+
message.clan_id = object.clan_id ?? "";
|
|
26038
|
+
message.channel_id = object.channel_id ?? "";
|
|
26039
|
+
return message;
|
|
26040
|
+
},
|
|
26041
|
+
};
|
|
26042
|
+
|
|
26043
|
+
function createBaseRegisterStreamingChannelResponse(): RegisterStreamingChannelResponse {
|
|
26044
|
+
return { clan_id: "", channel_id: "", streaming_url: "" };
|
|
26045
|
+
}
|
|
26046
|
+
|
|
26047
|
+
export const RegisterStreamingChannelResponse = {
|
|
26048
|
+
encode(message: RegisterStreamingChannelResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
26049
|
+
if (message.clan_id !== "") {
|
|
26050
|
+
writer.uint32(10).string(message.clan_id);
|
|
26051
|
+
}
|
|
26052
|
+
if (message.channel_id !== "") {
|
|
26053
|
+
writer.uint32(18).string(message.channel_id);
|
|
26054
|
+
}
|
|
26055
|
+
if (message.streaming_url !== "") {
|
|
26056
|
+
writer.uint32(26).string(message.streaming_url);
|
|
26057
|
+
}
|
|
26058
|
+
return writer;
|
|
26059
|
+
},
|
|
26060
|
+
|
|
26061
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): RegisterStreamingChannelResponse {
|
|
26062
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
26063
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
26064
|
+
const message = createBaseRegisterStreamingChannelResponse();
|
|
26065
|
+
while (reader.pos < end) {
|
|
26066
|
+
const tag = reader.uint32();
|
|
26067
|
+
switch (tag >>> 3) {
|
|
26068
|
+
case 1:
|
|
26069
|
+
if (tag !== 10) {
|
|
26070
|
+
break;
|
|
26071
|
+
}
|
|
26072
|
+
|
|
26073
|
+
message.clan_id = reader.string();
|
|
26074
|
+
continue;
|
|
26075
|
+
case 2:
|
|
26076
|
+
if (tag !== 18) {
|
|
26077
|
+
break;
|
|
26078
|
+
}
|
|
26079
|
+
|
|
26080
|
+
message.channel_id = reader.string();
|
|
26081
|
+
continue;
|
|
26082
|
+
case 3:
|
|
26083
|
+
if (tag !== 26) {
|
|
26084
|
+
break;
|
|
26085
|
+
}
|
|
26086
|
+
|
|
26087
|
+
message.streaming_url = reader.string();
|
|
26088
|
+
continue;
|
|
26089
|
+
}
|
|
26090
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
26091
|
+
break;
|
|
26092
|
+
}
|
|
26093
|
+
reader.skipType(tag & 7);
|
|
26094
|
+
}
|
|
26095
|
+
return message;
|
|
26096
|
+
},
|
|
26097
|
+
|
|
26098
|
+
fromJSON(object: any): RegisterStreamingChannelResponse {
|
|
26099
|
+
return {
|
|
26100
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
26101
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
26102
|
+
streaming_url: isSet(object.streaming_url) ? globalThis.String(object.streaming_url) : "",
|
|
26103
|
+
};
|
|
26104
|
+
},
|
|
26105
|
+
|
|
26106
|
+
toJSON(message: RegisterStreamingChannelResponse): unknown {
|
|
26107
|
+
const obj: any = {};
|
|
26108
|
+
if (message.clan_id !== "") {
|
|
26109
|
+
obj.clan_id = message.clan_id;
|
|
26110
|
+
}
|
|
26111
|
+
if (message.channel_id !== "") {
|
|
26112
|
+
obj.channel_id = message.channel_id;
|
|
26113
|
+
}
|
|
26114
|
+
if (message.streaming_url !== "") {
|
|
26115
|
+
obj.streaming_url = message.streaming_url;
|
|
26116
|
+
}
|
|
26117
|
+
return obj;
|
|
26118
|
+
},
|
|
26119
|
+
|
|
26120
|
+
create<I extends Exact<DeepPartial<RegisterStreamingChannelResponse>, I>>(
|
|
26121
|
+
base?: I,
|
|
26122
|
+
): RegisterStreamingChannelResponse {
|
|
26123
|
+
return RegisterStreamingChannelResponse.fromPartial(base ?? ({} as any));
|
|
26124
|
+
},
|
|
26125
|
+
fromPartial<I extends Exact<DeepPartial<RegisterStreamingChannelResponse>, I>>(
|
|
26126
|
+
object: I,
|
|
26127
|
+
): RegisterStreamingChannelResponse {
|
|
26128
|
+
const message = createBaseRegisterStreamingChannelResponse();
|
|
26129
|
+
message.clan_id = object.clan_id ?? "";
|
|
26130
|
+
message.channel_id = object.channel_id ?? "";
|
|
26131
|
+
message.streaming_url = object.streaming_url ?? "";
|
|
26132
|
+
return message;
|
|
26133
|
+
},
|
|
26134
|
+
};
|
|
26135
|
+
|
|
26136
|
+
function createBaseListStreamingChannelsRequest(): ListStreamingChannelsRequest {
|
|
26137
|
+
return { clan_id: "" };
|
|
26138
|
+
}
|
|
26139
|
+
|
|
26140
|
+
export const ListStreamingChannelsRequest = {
|
|
26141
|
+
encode(message: ListStreamingChannelsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
26142
|
+
if (message.clan_id !== "") {
|
|
26143
|
+
writer.uint32(10).string(message.clan_id);
|
|
26144
|
+
}
|
|
26145
|
+
return writer;
|
|
26146
|
+
},
|
|
26147
|
+
|
|
26148
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ListStreamingChannelsRequest {
|
|
26149
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
26150
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
26151
|
+
const message = createBaseListStreamingChannelsRequest();
|
|
26152
|
+
while (reader.pos < end) {
|
|
26153
|
+
const tag = reader.uint32();
|
|
26154
|
+
switch (tag >>> 3) {
|
|
26155
|
+
case 1:
|
|
26156
|
+
if (tag !== 10) {
|
|
26157
|
+
break;
|
|
26158
|
+
}
|
|
26159
|
+
|
|
26160
|
+
message.clan_id = reader.string();
|
|
26161
|
+
continue;
|
|
26162
|
+
}
|
|
26163
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
26164
|
+
break;
|
|
26165
|
+
}
|
|
26166
|
+
reader.skipType(tag & 7);
|
|
26167
|
+
}
|
|
26168
|
+
return message;
|
|
26169
|
+
},
|
|
26170
|
+
|
|
26171
|
+
fromJSON(object: any): ListStreamingChannelsRequest {
|
|
26172
|
+
return { clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "" };
|
|
26173
|
+
},
|
|
26174
|
+
|
|
26175
|
+
toJSON(message: ListStreamingChannelsRequest): unknown {
|
|
26176
|
+
const obj: any = {};
|
|
26177
|
+
if (message.clan_id !== "") {
|
|
26178
|
+
obj.clan_id = message.clan_id;
|
|
26179
|
+
}
|
|
26180
|
+
return obj;
|
|
26181
|
+
},
|
|
26182
|
+
|
|
26183
|
+
create<I extends Exact<DeepPartial<ListStreamingChannelsRequest>, I>>(base?: I): ListStreamingChannelsRequest {
|
|
26184
|
+
return ListStreamingChannelsRequest.fromPartial(base ?? ({} as any));
|
|
26185
|
+
},
|
|
26186
|
+
fromPartial<I extends Exact<DeepPartial<ListStreamingChannelsRequest>, I>>(object: I): ListStreamingChannelsRequest {
|
|
26187
|
+
const message = createBaseListStreamingChannelsRequest();
|
|
26188
|
+
message.clan_id = object.clan_id ?? "";
|
|
26189
|
+
return message;
|
|
26190
|
+
},
|
|
26191
|
+
};
|
|
26192
|
+
|
|
26193
|
+
function createBaseListStreamingChannelsResponse(): ListStreamingChannelsResponse {
|
|
26194
|
+
return { streaming_channels: [] };
|
|
26195
|
+
}
|
|
26196
|
+
|
|
26197
|
+
export const ListStreamingChannelsResponse = {
|
|
26198
|
+
encode(message: ListStreamingChannelsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
26199
|
+
for (const v of message.streaming_channels) {
|
|
26200
|
+
StreamingChannelResponse.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
26201
|
+
}
|
|
26202
|
+
return writer;
|
|
26203
|
+
},
|
|
26204
|
+
|
|
26205
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ListStreamingChannelsResponse {
|
|
26206
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
26207
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
26208
|
+
const message = createBaseListStreamingChannelsResponse();
|
|
26209
|
+
while (reader.pos < end) {
|
|
26210
|
+
const tag = reader.uint32();
|
|
26211
|
+
switch (tag >>> 3) {
|
|
26212
|
+
case 1:
|
|
26213
|
+
if (tag !== 10) {
|
|
26214
|
+
break;
|
|
26215
|
+
}
|
|
26216
|
+
|
|
26217
|
+
message.streaming_channels.push(StreamingChannelResponse.decode(reader, reader.uint32()));
|
|
26218
|
+
continue;
|
|
26219
|
+
}
|
|
26220
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
26221
|
+
break;
|
|
26222
|
+
}
|
|
26223
|
+
reader.skipType(tag & 7);
|
|
26224
|
+
}
|
|
26225
|
+
return message;
|
|
26226
|
+
},
|
|
26227
|
+
|
|
26228
|
+
fromJSON(object: any): ListStreamingChannelsResponse {
|
|
26229
|
+
return {
|
|
26230
|
+
streaming_channels: globalThis.Array.isArray(object?.streaming_channels)
|
|
26231
|
+
? object.streaming_channels.map((e: any) => StreamingChannelResponse.fromJSON(e))
|
|
26232
|
+
: [],
|
|
26233
|
+
};
|
|
26234
|
+
},
|
|
26235
|
+
|
|
26236
|
+
toJSON(message: ListStreamingChannelsResponse): unknown {
|
|
26237
|
+
const obj: any = {};
|
|
26238
|
+
if (message.streaming_channels?.length) {
|
|
26239
|
+
obj.streaming_channels = message.streaming_channels.map((e) => StreamingChannelResponse.toJSON(e));
|
|
26240
|
+
}
|
|
26241
|
+
return obj;
|
|
26242
|
+
},
|
|
26243
|
+
|
|
26244
|
+
create<I extends Exact<DeepPartial<ListStreamingChannelsResponse>, I>>(base?: I): ListStreamingChannelsResponse {
|
|
26245
|
+
return ListStreamingChannelsResponse.fromPartial(base ?? ({} as any));
|
|
26246
|
+
},
|
|
26247
|
+
fromPartial<I extends Exact<DeepPartial<ListStreamingChannelsResponse>, I>>(
|
|
26248
|
+
object: I,
|
|
26249
|
+
): ListStreamingChannelsResponse {
|
|
26250
|
+
const message = createBaseListStreamingChannelsResponse();
|
|
26251
|
+
message.streaming_channels = object.streaming_channels?.map((e) => StreamingChannelResponse.fromPartial(e)) || [];
|
|
26252
|
+
return message;
|
|
26253
|
+
},
|
|
26254
|
+
};
|
|
26255
|
+
|
|
26256
|
+
function createBaseStreamingChannelResponse(): StreamingChannelResponse {
|
|
26257
|
+
return { clan_id: "", channel_id: "", streaming_url: "", is_streaming: false };
|
|
26258
|
+
}
|
|
26259
|
+
|
|
26260
|
+
export const StreamingChannelResponse = {
|
|
26261
|
+
encode(message: StreamingChannelResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
26262
|
+
if (message.clan_id !== "") {
|
|
26263
|
+
writer.uint32(10).string(message.clan_id);
|
|
26264
|
+
}
|
|
26265
|
+
if (message.channel_id !== "") {
|
|
26266
|
+
writer.uint32(18).string(message.channel_id);
|
|
26267
|
+
}
|
|
26268
|
+
if (message.streaming_url !== "") {
|
|
26269
|
+
writer.uint32(26).string(message.streaming_url);
|
|
26270
|
+
}
|
|
26271
|
+
if (message.is_streaming !== false) {
|
|
26272
|
+
writer.uint32(32).bool(message.is_streaming);
|
|
26273
|
+
}
|
|
26274
|
+
return writer;
|
|
26275
|
+
},
|
|
26276
|
+
|
|
26277
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): StreamingChannelResponse {
|
|
26278
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
26279
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
26280
|
+
const message = createBaseStreamingChannelResponse();
|
|
26281
|
+
while (reader.pos < end) {
|
|
26282
|
+
const tag = reader.uint32();
|
|
26283
|
+
switch (tag >>> 3) {
|
|
26284
|
+
case 1:
|
|
26285
|
+
if (tag !== 10) {
|
|
26286
|
+
break;
|
|
26287
|
+
}
|
|
26288
|
+
|
|
26289
|
+
message.clan_id = reader.string();
|
|
26290
|
+
continue;
|
|
26291
|
+
case 2:
|
|
26292
|
+
if (tag !== 18) {
|
|
26293
|
+
break;
|
|
26294
|
+
}
|
|
26295
|
+
|
|
26296
|
+
message.channel_id = reader.string();
|
|
26297
|
+
continue;
|
|
26298
|
+
case 3:
|
|
26299
|
+
if (tag !== 26) {
|
|
26300
|
+
break;
|
|
26301
|
+
}
|
|
26302
|
+
|
|
26303
|
+
message.streaming_url = reader.string();
|
|
26304
|
+
continue;
|
|
26305
|
+
case 4:
|
|
26306
|
+
if (tag !== 32) {
|
|
26307
|
+
break;
|
|
26308
|
+
}
|
|
26309
|
+
|
|
26310
|
+
message.is_streaming = reader.bool();
|
|
26311
|
+
continue;
|
|
26312
|
+
}
|
|
26313
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
26314
|
+
break;
|
|
26315
|
+
}
|
|
26316
|
+
reader.skipType(tag & 7);
|
|
26317
|
+
}
|
|
26318
|
+
return message;
|
|
26319
|
+
},
|
|
26320
|
+
|
|
26321
|
+
fromJSON(object: any): StreamingChannelResponse {
|
|
26322
|
+
return {
|
|
26323
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
26324
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
26325
|
+
streaming_url: isSet(object.streaming_url) ? globalThis.String(object.streaming_url) : "",
|
|
26326
|
+
is_streaming: isSet(object.is_streaming) ? globalThis.Boolean(object.is_streaming) : false,
|
|
26327
|
+
};
|
|
26328
|
+
},
|
|
26329
|
+
|
|
26330
|
+
toJSON(message: StreamingChannelResponse): unknown {
|
|
26331
|
+
const obj: any = {};
|
|
26332
|
+
if (message.clan_id !== "") {
|
|
26333
|
+
obj.clan_id = message.clan_id;
|
|
26334
|
+
}
|
|
26335
|
+
if (message.channel_id !== "") {
|
|
26336
|
+
obj.channel_id = message.channel_id;
|
|
26337
|
+
}
|
|
26338
|
+
if (message.streaming_url !== "") {
|
|
26339
|
+
obj.streaming_url = message.streaming_url;
|
|
26340
|
+
}
|
|
26341
|
+
if (message.is_streaming !== false) {
|
|
26342
|
+
obj.is_streaming = message.is_streaming;
|
|
26343
|
+
}
|
|
26344
|
+
return obj;
|
|
26345
|
+
},
|
|
26346
|
+
|
|
26347
|
+
create<I extends Exact<DeepPartial<StreamingChannelResponse>, I>>(base?: I): StreamingChannelResponse {
|
|
26348
|
+
return StreamingChannelResponse.fromPartial(base ?? ({} as any));
|
|
26349
|
+
},
|
|
26350
|
+
fromPartial<I extends Exact<DeepPartial<StreamingChannelResponse>, I>>(object: I): StreamingChannelResponse {
|
|
26351
|
+
const message = createBaseStreamingChannelResponse();
|
|
26352
|
+
message.clan_id = object.clan_id ?? "";
|
|
26353
|
+
message.channel_id = object.channel_id ?? "";
|
|
26354
|
+
message.streaming_url = object.streaming_url ?? "";
|
|
26355
|
+
message.is_streaming = object.is_streaming ?? false;
|
|
26356
|
+
return message;
|
|
26357
|
+
},
|
|
26358
|
+
};
|
|
26359
|
+
|
|
26360
|
+
function createBaseGiveCoffeeEvent(): GiveCoffeeEvent {
|
|
26361
|
+
return { sender_id: "", receiver_id: "", token_count: 0, message_ref_id: "", channel_id: "", clan_id: "" };
|
|
26362
|
+
}
|
|
26363
|
+
|
|
26364
|
+
export const GiveCoffeeEvent = {
|
|
26365
|
+
encode(message: GiveCoffeeEvent, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
26366
|
+
if (message.sender_id !== "") {
|
|
26367
|
+
writer.uint32(10).string(message.sender_id);
|
|
26368
|
+
}
|
|
26369
|
+
if (message.receiver_id !== "") {
|
|
26370
|
+
writer.uint32(18).string(message.receiver_id);
|
|
26371
|
+
}
|
|
26372
|
+
if (message.token_count !== 0) {
|
|
26373
|
+
writer.uint32(24).int32(message.token_count);
|
|
26374
|
+
}
|
|
26375
|
+
if (message.message_ref_id !== "") {
|
|
26376
|
+
writer.uint32(34).string(message.message_ref_id);
|
|
26377
|
+
}
|
|
26378
|
+
if (message.channel_id !== "") {
|
|
26379
|
+
writer.uint32(42).string(message.channel_id);
|
|
26380
|
+
}
|
|
26381
|
+
if (message.clan_id !== "") {
|
|
26382
|
+
writer.uint32(50).string(message.clan_id);
|
|
26383
|
+
}
|
|
26384
|
+
return writer;
|
|
26385
|
+
},
|
|
26386
|
+
|
|
26387
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GiveCoffeeEvent {
|
|
26388
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
26389
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
26390
|
+
const message = createBaseGiveCoffeeEvent();
|
|
26391
|
+
while (reader.pos < end) {
|
|
26392
|
+
const tag = reader.uint32();
|
|
26393
|
+
switch (tag >>> 3) {
|
|
26394
|
+
case 1:
|
|
26395
|
+
if (tag !== 10) {
|
|
26396
|
+
break;
|
|
26397
|
+
}
|
|
26398
|
+
|
|
26399
|
+
message.sender_id = reader.string();
|
|
26400
|
+
continue;
|
|
26401
|
+
case 2:
|
|
26402
|
+
if (tag !== 18) {
|
|
26403
|
+
break;
|
|
26404
|
+
}
|
|
26405
|
+
|
|
26406
|
+
message.receiver_id = reader.string();
|
|
26407
|
+
continue;
|
|
26408
|
+
case 3:
|
|
26409
|
+
if (tag !== 24) {
|
|
26410
|
+
break;
|
|
26411
|
+
}
|
|
26412
|
+
|
|
26413
|
+
message.token_count = reader.int32();
|
|
26414
|
+
continue;
|
|
26415
|
+
case 4:
|
|
26416
|
+
if (tag !== 34) {
|
|
26417
|
+
break;
|
|
26418
|
+
}
|
|
26419
|
+
|
|
26420
|
+
message.message_ref_id = reader.string();
|
|
26421
|
+
continue;
|
|
26422
|
+
case 5:
|
|
26423
|
+
if (tag !== 42) {
|
|
26424
|
+
break;
|
|
26425
|
+
}
|
|
26426
|
+
|
|
26427
|
+
message.channel_id = reader.string();
|
|
26428
|
+
continue;
|
|
26429
|
+
case 6:
|
|
26430
|
+
if (tag !== 50) {
|
|
26431
|
+
break;
|
|
26432
|
+
}
|
|
26433
|
+
|
|
26434
|
+
message.clan_id = reader.string();
|
|
26435
|
+
continue;
|
|
26436
|
+
}
|
|
26437
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
26438
|
+
break;
|
|
26439
|
+
}
|
|
26440
|
+
reader.skipType(tag & 7);
|
|
26441
|
+
}
|
|
26442
|
+
return message;
|
|
26443
|
+
},
|
|
26444
|
+
|
|
26445
|
+
fromJSON(object: any): GiveCoffeeEvent {
|
|
26446
|
+
return {
|
|
26447
|
+
sender_id: isSet(object.sender_id) ? globalThis.String(object.sender_id) : "",
|
|
26448
|
+
receiver_id: isSet(object.receiver_id) ? globalThis.String(object.receiver_id) : "",
|
|
26449
|
+
token_count: isSet(object.token_count) ? globalThis.Number(object.token_count) : 0,
|
|
26450
|
+
message_ref_id: isSet(object.message_ref_id) ? globalThis.String(object.message_ref_id) : "",
|
|
26451
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
26452
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
26453
|
+
};
|
|
26454
|
+
},
|
|
26455
|
+
|
|
26456
|
+
toJSON(message: GiveCoffeeEvent): unknown {
|
|
26457
|
+
const obj: any = {};
|
|
26458
|
+
if (message.sender_id !== "") {
|
|
26459
|
+
obj.sender_id = message.sender_id;
|
|
26460
|
+
}
|
|
26461
|
+
if (message.receiver_id !== "") {
|
|
26462
|
+
obj.receiver_id = message.receiver_id;
|
|
26463
|
+
}
|
|
26464
|
+
if (message.token_count !== 0) {
|
|
26465
|
+
obj.token_count = Math.round(message.token_count);
|
|
26466
|
+
}
|
|
26467
|
+
if (message.message_ref_id !== "") {
|
|
26468
|
+
obj.message_ref_id = message.message_ref_id;
|
|
26469
|
+
}
|
|
26470
|
+
if (message.channel_id !== "") {
|
|
26471
|
+
obj.channel_id = message.channel_id;
|
|
26472
|
+
}
|
|
26473
|
+
if (message.clan_id !== "") {
|
|
26474
|
+
obj.clan_id = message.clan_id;
|
|
26475
|
+
}
|
|
26476
|
+
return obj;
|
|
26477
|
+
},
|
|
26478
|
+
|
|
26479
|
+
create<I extends Exact<DeepPartial<GiveCoffeeEvent>, I>>(base?: I): GiveCoffeeEvent {
|
|
26480
|
+
return GiveCoffeeEvent.fromPartial(base ?? ({} as any));
|
|
26481
|
+
},
|
|
26482
|
+
fromPartial<I extends Exact<DeepPartial<GiveCoffeeEvent>, I>>(object: I): GiveCoffeeEvent {
|
|
26483
|
+
const message = createBaseGiveCoffeeEvent();
|
|
26484
|
+
message.sender_id = object.sender_id ?? "";
|
|
26485
|
+
message.receiver_id = object.receiver_id ?? "";
|
|
26486
|
+
message.token_count = object.token_count ?? 0;
|
|
26487
|
+
message.message_ref_id = object.message_ref_id ?? "";
|
|
26488
|
+
message.channel_id = object.channel_id ?? "";
|
|
26489
|
+
message.clan_id = object.clan_id ?? "";
|
|
26490
|
+
return message;
|
|
26491
|
+
},
|
|
26492
|
+
};
|
|
26493
|
+
|
|
25132
26494
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
25133
26495
|
|
|
25134
26496
|
export type DeepPartial<T> = T extends Builtin ? T
|