mezon-js-protobuf 1.6.72 → 1.6.74
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 +119 -433
- package/dist/mezon-js-protobuf/api/api.d.ts +84 -215
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +12 -6
- package/dist/mezon-js-protobuf.cjs.js +26 -11
- package/dist/mezon-js-protobuf.esm.mjs +26 -11
- package/package.json +1 -1
- package/rtapi/realtime.ts +11666 -11666
package/api/api.ts
CHANGED
|
@@ -2086,13 +2086,14 @@ export interface EventManagement {
|
|
|
2086
2086
|
start_event: number;
|
|
2087
2087
|
creator_id: string;
|
|
2088
2088
|
clan_id: string;
|
|
2089
|
-
|
|
2089
|
+
channel_voice_id: string;
|
|
2090
2090
|
address: string;
|
|
2091
2091
|
start_time: Date | undefined;
|
|
2092
2092
|
end_time: Date | undefined;
|
|
2093
2093
|
user_ids: string[];
|
|
2094
2094
|
create_time: Date | undefined;
|
|
2095
2095
|
max_permission: number;
|
|
2096
|
+
channel_id: string;
|
|
2096
2097
|
}
|
|
2097
2098
|
|
|
2098
2099
|
/** Permission record */
|
|
@@ -2404,12 +2405,13 @@ export interface CreateEventRequest {
|
|
|
2404
2405
|
logo: string;
|
|
2405
2406
|
description: string;
|
|
2406
2407
|
clan_id: string;
|
|
2407
|
-
|
|
2408
|
+
channel_voice_id: string;
|
|
2408
2409
|
address: string;
|
|
2409
2410
|
start_time: Date | undefined;
|
|
2410
2411
|
end_time: Date | undefined;
|
|
2411
2412
|
event_id: string;
|
|
2412
2413
|
event_status: string;
|
|
2414
|
+
channel_id: string;
|
|
2413
2415
|
}
|
|
2414
2416
|
|
|
2415
2417
|
/** update a event within clan. */
|
|
@@ -3003,19 +3005,20 @@ export interface DeleteCategoryOrderRequest {
|
|
|
3003
3005
|
}
|
|
3004
3006
|
|
|
3005
3007
|
export interface StreamHttpCallbackRequest {
|
|
3006
|
-
|
|
3008
|
+
/** id */
|
|
3009
|
+
id: string;
|
|
3010
|
+
/** client_id */
|
|
3007
3011
|
client_id: string;
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
service_id: string | undefined;
|
|
3012
|
+
/** clan_id */
|
|
3013
|
+
clan_id: string;
|
|
3014
|
+
/** channel_id */
|
|
3015
|
+
channel_id: string;
|
|
3016
|
+
/** user_id */
|
|
3017
|
+
user_id: string;
|
|
3018
|
+
/** action */
|
|
3019
|
+
action: number;
|
|
3020
|
+
/** is_publisher */
|
|
3021
|
+
is_publisher: boolean;
|
|
3019
3022
|
}
|
|
3020
3023
|
|
|
3021
3024
|
export interface StreamHttpCallbackResponse {
|
|
@@ -3057,27 +3060,6 @@ export interface RegisterStreamingChannelResponse {
|
|
|
3057
3060
|
streaming_url: string;
|
|
3058
3061
|
}
|
|
3059
3062
|
|
|
3060
|
-
export interface ListStreamingChannelsRequest {
|
|
3061
|
-
/** clan id */
|
|
3062
|
-
clan_id: string;
|
|
3063
|
-
}
|
|
3064
|
-
|
|
3065
|
-
export interface ListStreamingChannelsResponse {
|
|
3066
|
-
/** list of streaming channel */
|
|
3067
|
-
streaming_channels: StreamingChannelResponse[];
|
|
3068
|
-
}
|
|
3069
|
-
|
|
3070
|
-
export interface StreamingChannelResponse {
|
|
3071
|
-
/** clan id */
|
|
3072
|
-
clan_id: string;
|
|
3073
|
-
/** channel id */
|
|
3074
|
-
channel_id: string;
|
|
3075
|
-
/** stream url */
|
|
3076
|
-
streaming_url: string;
|
|
3077
|
-
/** status */
|
|
3078
|
-
is_streaming: boolean;
|
|
3079
|
-
}
|
|
3080
|
-
|
|
3081
3063
|
export interface GiveCoffeeEvent {
|
|
3082
3064
|
/** sender id */
|
|
3083
3065
|
sender_id: string;
|
|
@@ -3830,7 +3812,7 @@ export interface SdTopicList {
|
|
|
3830
3812
|
}
|
|
3831
3813
|
|
|
3832
3814
|
export interface ListSdTopicRequest {
|
|
3833
|
-
|
|
3815
|
+
clan_id: string;
|
|
3834
3816
|
limit: number;
|
|
3835
3817
|
}
|
|
3836
3818
|
|
|
@@ -18805,13 +18787,14 @@ function createBaseEventManagement(): EventManagement {
|
|
|
18805
18787
|
start_event: 0,
|
|
18806
18788
|
creator_id: "",
|
|
18807
18789
|
clan_id: "",
|
|
18808
|
-
|
|
18790
|
+
channel_voice_id: "",
|
|
18809
18791
|
address: "",
|
|
18810
18792
|
start_time: undefined,
|
|
18811
18793
|
end_time: undefined,
|
|
18812
18794
|
user_ids: [],
|
|
18813
18795
|
create_time: undefined,
|
|
18814
18796
|
max_permission: 0,
|
|
18797
|
+
channel_id: "",
|
|
18815
18798
|
};
|
|
18816
18799
|
}
|
|
18817
18800
|
|
|
@@ -18841,8 +18824,8 @@ export const EventManagement = {
|
|
|
18841
18824
|
if (message.clan_id !== "") {
|
|
18842
18825
|
writer.uint32(66).string(message.clan_id);
|
|
18843
18826
|
}
|
|
18844
|
-
if (message.
|
|
18845
|
-
writer.uint32(74).string(message.
|
|
18827
|
+
if (message.channel_voice_id !== "") {
|
|
18828
|
+
writer.uint32(74).string(message.channel_voice_id);
|
|
18846
18829
|
}
|
|
18847
18830
|
if (message.address !== "") {
|
|
18848
18831
|
writer.uint32(82).string(message.address);
|
|
@@ -18862,6 +18845,9 @@ export const EventManagement = {
|
|
|
18862
18845
|
if (message.max_permission !== 0) {
|
|
18863
18846
|
writer.uint32(120).int32(message.max_permission);
|
|
18864
18847
|
}
|
|
18848
|
+
if (message.channel_id !== "") {
|
|
18849
|
+
writer.uint32(130).string(message.channel_id);
|
|
18850
|
+
}
|
|
18865
18851
|
return writer;
|
|
18866
18852
|
},
|
|
18867
18853
|
|
|
@@ -18933,7 +18919,7 @@ export const EventManagement = {
|
|
|
18933
18919
|
break;
|
|
18934
18920
|
}
|
|
18935
18921
|
|
|
18936
|
-
message.
|
|
18922
|
+
message.channel_voice_id = reader.string();
|
|
18937
18923
|
continue;
|
|
18938
18924
|
case 10:
|
|
18939
18925
|
if (tag !== 82) {
|
|
@@ -18977,6 +18963,13 @@ export const EventManagement = {
|
|
|
18977
18963
|
|
|
18978
18964
|
message.max_permission = reader.int32();
|
|
18979
18965
|
continue;
|
|
18966
|
+
case 16:
|
|
18967
|
+
if (tag !== 130) {
|
|
18968
|
+
break;
|
|
18969
|
+
}
|
|
18970
|
+
|
|
18971
|
+
message.channel_id = reader.string();
|
|
18972
|
+
continue;
|
|
18980
18973
|
}
|
|
18981
18974
|
if ((tag & 7) === 4 || tag === 0) {
|
|
18982
18975
|
break;
|
|
@@ -18996,13 +18989,14 @@ export const EventManagement = {
|
|
|
18996
18989
|
start_event: isSet(object.start_event) ? globalThis.Number(object.start_event) : 0,
|
|
18997
18990
|
creator_id: isSet(object.creator_id) ? globalThis.String(object.creator_id) : "",
|
|
18998
18991
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
18999
|
-
|
|
18992
|
+
channel_voice_id: isSet(object.channel_voice_id) ? globalThis.String(object.channel_voice_id) : "",
|
|
19000
18993
|
address: isSet(object.address) ? globalThis.String(object.address) : "",
|
|
19001
18994
|
start_time: isSet(object.start_time) ? fromJsonTimestamp(object.start_time) : undefined,
|
|
19002
18995
|
end_time: isSet(object.end_time) ? fromJsonTimestamp(object.end_time) : undefined,
|
|
19003
18996
|
user_ids: globalThis.Array.isArray(object?.user_ids) ? object.user_ids.map((e: any) => globalThis.String(e)) : [],
|
|
19004
18997
|
create_time: isSet(object.create_time) ? fromJsonTimestamp(object.create_time) : undefined,
|
|
19005
18998
|
max_permission: isSet(object.max_permission) ? globalThis.Number(object.max_permission) : 0,
|
|
18999
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
19006
19000
|
};
|
|
19007
19001
|
},
|
|
19008
19002
|
|
|
@@ -19032,8 +19026,8 @@ export const EventManagement = {
|
|
|
19032
19026
|
if (message.clan_id !== "") {
|
|
19033
19027
|
obj.clan_id = message.clan_id;
|
|
19034
19028
|
}
|
|
19035
|
-
if (message.
|
|
19036
|
-
obj.
|
|
19029
|
+
if (message.channel_voice_id !== "") {
|
|
19030
|
+
obj.channel_voice_id = message.channel_voice_id;
|
|
19037
19031
|
}
|
|
19038
19032
|
if (message.address !== "") {
|
|
19039
19033
|
obj.address = message.address;
|
|
@@ -19053,6 +19047,9 @@ export const EventManagement = {
|
|
|
19053
19047
|
if (message.max_permission !== 0) {
|
|
19054
19048
|
obj.max_permission = Math.round(message.max_permission);
|
|
19055
19049
|
}
|
|
19050
|
+
if (message.channel_id !== "") {
|
|
19051
|
+
obj.channel_id = message.channel_id;
|
|
19052
|
+
}
|
|
19056
19053
|
return obj;
|
|
19057
19054
|
},
|
|
19058
19055
|
|
|
@@ -19069,13 +19066,14 @@ export const EventManagement = {
|
|
|
19069
19066
|
message.start_event = object.start_event ?? 0;
|
|
19070
19067
|
message.creator_id = object.creator_id ?? "";
|
|
19071
19068
|
message.clan_id = object.clan_id ?? "";
|
|
19072
|
-
message.
|
|
19069
|
+
message.channel_voice_id = object.channel_voice_id ?? "";
|
|
19073
19070
|
message.address = object.address ?? "";
|
|
19074
19071
|
message.start_time = object.start_time ?? undefined;
|
|
19075
19072
|
message.end_time = object.end_time ?? undefined;
|
|
19076
19073
|
message.user_ids = object.user_ids?.map((e) => e) || [];
|
|
19077
19074
|
message.create_time = object.create_time ?? undefined;
|
|
19078
19075
|
message.max_permission = object.max_permission ?? 0;
|
|
19076
|
+
message.channel_id = object.channel_id ?? "";
|
|
19079
19077
|
return message;
|
|
19080
19078
|
},
|
|
19081
19079
|
};
|
|
@@ -22104,12 +22102,13 @@ function createBaseCreateEventRequest(): CreateEventRequest {
|
|
|
22104
22102
|
logo: "",
|
|
22105
22103
|
description: "",
|
|
22106
22104
|
clan_id: "",
|
|
22107
|
-
|
|
22105
|
+
channel_voice_id: "",
|
|
22108
22106
|
address: "",
|
|
22109
22107
|
start_time: undefined,
|
|
22110
22108
|
end_time: undefined,
|
|
22111
22109
|
event_id: "",
|
|
22112
22110
|
event_status: "",
|
|
22111
|
+
channel_id: "",
|
|
22113
22112
|
};
|
|
22114
22113
|
}
|
|
22115
22114
|
|
|
@@ -22127,8 +22126,8 @@ export const CreateEventRequest = {
|
|
|
22127
22126
|
if (message.clan_id !== "") {
|
|
22128
22127
|
writer.uint32(34).string(message.clan_id);
|
|
22129
22128
|
}
|
|
22130
|
-
if (message.
|
|
22131
|
-
writer.uint32(42).string(message.
|
|
22129
|
+
if (message.channel_voice_id !== "") {
|
|
22130
|
+
writer.uint32(42).string(message.channel_voice_id);
|
|
22132
22131
|
}
|
|
22133
22132
|
if (message.address !== "") {
|
|
22134
22133
|
writer.uint32(50).string(message.address);
|
|
@@ -22145,6 +22144,9 @@ export const CreateEventRequest = {
|
|
|
22145
22144
|
if (message.event_status !== "") {
|
|
22146
22145
|
writer.uint32(82).string(message.event_status);
|
|
22147
22146
|
}
|
|
22147
|
+
if (message.channel_id !== "") {
|
|
22148
|
+
writer.uint32(90).string(message.channel_id);
|
|
22149
|
+
}
|
|
22148
22150
|
return writer;
|
|
22149
22151
|
},
|
|
22150
22152
|
|
|
@@ -22188,7 +22190,7 @@ export const CreateEventRequest = {
|
|
|
22188
22190
|
break;
|
|
22189
22191
|
}
|
|
22190
22192
|
|
|
22191
|
-
message.
|
|
22193
|
+
message.channel_voice_id = reader.string();
|
|
22192
22194
|
continue;
|
|
22193
22195
|
case 6:
|
|
22194
22196
|
if (tag !== 50) {
|
|
@@ -22225,6 +22227,13 @@ export const CreateEventRequest = {
|
|
|
22225
22227
|
|
|
22226
22228
|
message.event_status = reader.string();
|
|
22227
22229
|
continue;
|
|
22230
|
+
case 11:
|
|
22231
|
+
if (tag !== 90) {
|
|
22232
|
+
break;
|
|
22233
|
+
}
|
|
22234
|
+
|
|
22235
|
+
message.channel_id = reader.string();
|
|
22236
|
+
continue;
|
|
22228
22237
|
}
|
|
22229
22238
|
if ((tag & 7) === 4 || tag === 0) {
|
|
22230
22239
|
break;
|
|
@@ -22240,12 +22249,13 @@ export const CreateEventRequest = {
|
|
|
22240
22249
|
logo: isSet(object.logo) ? globalThis.String(object.logo) : "",
|
|
22241
22250
|
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
22242
22251
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
22243
|
-
|
|
22252
|
+
channel_voice_id: isSet(object.channel_voice_id) ? globalThis.String(object.channel_voice_id) : "",
|
|
22244
22253
|
address: isSet(object.address) ? globalThis.String(object.address) : "",
|
|
22245
22254
|
start_time: isSet(object.start_time) ? fromJsonTimestamp(object.start_time) : undefined,
|
|
22246
22255
|
end_time: isSet(object.end_time) ? fromJsonTimestamp(object.end_time) : undefined,
|
|
22247
22256
|
event_id: isSet(object.event_id) ? globalThis.String(object.event_id) : "",
|
|
22248
22257
|
event_status: isSet(object.event_status) ? globalThis.String(object.event_status) : "",
|
|
22258
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
22249
22259
|
};
|
|
22250
22260
|
},
|
|
22251
22261
|
|
|
@@ -22263,8 +22273,8 @@ export const CreateEventRequest = {
|
|
|
22263
22273
|
if (message.clan_id !== "") {
|
|
22264
22274
|
obj.clan_id = message.clan_id;
|
|
22265
22275
|
}
|
|
22266
|
-
if (message.
|
|
22267
|
-
obj.
|
|
22276
|
+
if (message.channel_voice_id !== "") {
|
|
22277
|
+
obj.channel_voice_id = message.channel_voice_id;
|
|
22268
22278
|
}
|
|
22269
22279
|
if (message.address !== "") {
|
|
22270
22280
|
obj.address = message.address;
|
|
@@ -22281,6 +22291,9 @@ export const CreateEventRequest = {
|
|
|
22281
22291
|
if (message.event_status !== "") {
|
|
22282
22292
|
obj.event_status = message.event_status;
|
|
22283
22293
|
}
|
|
22294
|
+
if (message.channel_id !== "") {
|
|
22295
|
+
obj.channel_id = message.channel_id;
|
|
22296
|
+
}
|
|
22284
22297
|
return obj;
|
|
22285
22298
|
},
|
|
22286
22299
|
|
|
@@ -22293,12 +22306,13 @@ export const CreateEventRequest = {
|
|
|
22293
22306
|
message.logo = object.logo ?? "";
|
|
22294
22307
|
message.description = object.description ?? "";
|
|
22295
22308
|
message.clan_id = object.clan_id ?? "";
|
|
22296
|
-
message.
|
|
22309
|
+
message.channel_voice_id = object.channel_voice_id ?? "";
|
|
22297
22310
|
message.address = object.address ?? "";
|
|
22298
22311
|
message.start_time = object.start_time ?? undefined;
|
|
22299
22312
|
message.end_time = object.end_time ?? undefined;
|
|
22300
22313
|
message.event_id = object.event_id ?? "";
|
|
22301
22314
|
message.event_status = object.event_status ?? "";
|
|
22315
|
+
message.channel_id = object.channel_id ?? "";
|
|
22302
22316
|
return message;
|
|
22303
22317
|
},
|
|
22304
22318
|
};
|
|
@@ -28584,63 +28598,31 @@ export const DeleteCategoryOrderRequest = {
|
|
|
28584
28598
|
};
|
|
28585
28599
|
|
|
28586
28600
|
function createBaseStreamHttpCallbackRequest(): StreamHttpCallbackRequest {
|
|
28587
|
-
return {
|
|
28588
|
-
action: "",
|
|
28589
|
-
client_id: "",
|
|
28590
|
-
ip: "",
|
|
28591
|
-
vhost: "",
|
|
28592
|
-
app: "",
|
|
28593
|
-
stream: "",
|
|
28594
|
-
param: undefined,
|
|
28595
|
-
server_id: "",
|
|
28596
|
-
stream_url: "",
|
|
28597
|
-
stream_id: "",
|
|
28598
|
-
page_url: undefined,
|
|
28599
|
-
tcUrl: undefined,
|
|
28600
|
-
service_id: undefined,
|
|
28601
|
-
};
|
|
28601
|
+
return { id: "", client_id: "", clan_id: "", channel_id: "", user_id: "", action: 0, is_publisher: false };
|
|
28602
28602
|
}
|
|
28603
28603
|
|
|
28604
28604
|
export const StreamHttpCallbackRequest = {
|
|
28605
28605
|
encode(message: StreamHttpCallbackRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
28606
|
-
if (message.
|
|
28607
|
-
writer.uint32(10).string(message.
|
|
28606
|
+
if (message.id !== "") {
|
|
28607
|
+
writer.uint32(10).string(message.id);
|
|
28608
28608
|
}
|
|
28609
28609
|
if (message.client_id !== "") {
|
|
28610
28610
|
writer.uint32(18).string(message.client_id);
|
|
28611
28611
|
}
|
|
28612
|
-
if (message.
|
|
28613
|
-
writer.uint32(26).string(message.
|
|
28614
|
-
}
|
|
28615
|
-
if (message.vhost !== "") {
|
|
28616
|
-
writer.uint32(34).string(message.vhost);
|
|
28617
|
-
}
|
|
28618
|
-
if (message.app !== "") {
|
|
28619
|
-
writer.uint32(42).string(message.app);
|
|
28620
|
-
}
|
|
28621
|
-
if (message.stream !== "") {
|
|
28622
|
-
writer.uint32(50).string(message.stream);
|
|
28623
|
-
}
|
|
28624
|
-
if (message.param !== undefined) {
|
|
28625
|
-
StringValue.encode({ value: message.param! }, writer.uint32(58).fork()).ldelim();
|
|
28626
|
-
}
|
|
28627
|
-
if (message.server_id !== "") {
|
|
28628
|
-
writer.uint32(66).string(message.server_id);
|
|
28629
|
-
}
|
|
28630
|
-
if (message.stream_url !== "") {
|
|
28631
|
-
writer.uint32(74).string(message.stream_url);
|
|
28612
|
+
if (message.clan_id !== "") {
|
|
28613
|
+
writer.uint32(26).string(message.clan_id);
|
|
28632
28614
|
}
|
|
28633
|
-
if (message.
|
|
28634
|
-
writer.uint32(
|
|
28615
|
+
if (message.channel_id !== "") {
|
|
28616
|
+
writer.uint32(34).string(message.channel_id);
|
|
28635
28617
|
}
|
|
28636
|
-
if (message.
|
|
28637
|
-
|
|
28618
|
+
if (message.user_id !== "") {
|
|
28619
|
+
writer.uint32(42).string(message.user_id);
|
|
28638
28620
|
}
|
|
28639
|
-
if (message.
|
|
28640
|
-
|
|
28621
|
+
if (message.action !== 0) {
|
|
28622
|
+
writer.uint32(48).int32(message.action);
|
|
28641
28623
|
}
|
|
28642
|
-
if (message.
|
|
28643
|
-
|
|
28624
|
+
if (message.is_publisher !== false) {
|
|
28625
|
+
writer.uint32(56).bool(message.is_publisher);
|
|
28644
28626
|
}
|
|
28645
28627
|
return writer;
|
|
28646
28628
|
},
|
|
@@ -28657,7 +28639,7 @@ export const StreamHttpCallbackRequest = {
|
|
|
28657
28639
|
break;
|
|
28658
28640
|
}
|
|
28659
28641
|
|
|
28660
|
-
message.
|
|
28642
|
+
message.id = reader.string();
|
|
28661
28643
|
continue;
|
|
28662
28644
|
case 2:
|
|
28663
28645
|
if (tag !== 18) {
|
|
@@ -28671,77 +28653,35 @@ export const StreamHttpCallbackRequest = {
|
|
|
28671
28653
|
break;
|
|
28672
28654
|
}
|
|
28673
28655
|
|
|
28674
|
-
message.
|
|
28656
|
+
message.clan_id = reader.string();
|
|
28675
28657
|
continue;
|
|
28676
28658
|
case 4:
|
|
28677
28659
|
if (tag !== 34) {
|
|
28678
28660
|
break;
|
|
28679
28661
|
}
|
|
28680
28662
|
|
|
28681
|
-
message.
|
|
28663
|
+
message.channel_id = reader.string();
|
|
28682
28664
|
continue;
|
|
28683
28665
|
case 5:
|
|
28684
28666
|
if (tag !== 42) {
|
|
28685
28667
|
break;
|
|
28686
28668
|
}
|
|
28687
28669
|
|
|
28688
|
-
message.
|
|
28670
|
+
message.user_id = reader.string();
|
|
28689
28671
|
continue;
|
|
28690
28672
|
case 6:
|
|
28691
|
-
if (tag !==
|
|
28673
|
+
if (tag !== 48) {
|
|
28692
28674
|
break;
|
|
28693
28675
|
}
|
|
28694
28676
|
|
|
28695
|
-
message.
|
|
28677
|
+
message.action = reader.int32();
|
|
28696
28678
|
continue;
|
|
28697
28679
|
case 7:
|
|
28698
|
-
if (tag !==
|
|
28699
|
-
break;
|
|
28700
|
-
}
|
|
28701
|
-
|
|
28702
|
-
message.param = StringValue.decode(reader, reader.uint32()).value;
|
|
28703
|
-
continue;
|
|
28704
|
-
case 8:
|
|
28705
|
-
if (tag !== 66) {
|
|
28706
|
-
break;
|
|
28707
|
-
}
|
|
28708
|
-
|
|
28709
|
-
message.server_id = reader.string();
|
|
28710
|
-
continue;
|
|
28711
|
-
case 9:
|
|
28712
|
-
if (tag !== 74) {
|
|
28713
|
-
break;
|
|
28714
|
-
}
|
|
28715
|
-
|
|
28716
|
-
message.stream_url = reader.string();
|
|
28717
|
-
continue;
|
|
28718
|
-
case 10:
|
|
28719
|
-
if (tag !== 82) {
|
|
28720
|
-
break;
|
|
28721
|
-
}
|
|
28722
|
-
|
|
28723
|
-
message.stream_id = reader.string();
|
|
28724
|
-
continue;
|
|
28725
|
-
case 11:
|
|
28726
|
-
if (tag !== 90) {
|
|
28727
|
-
break;
|
|
28728
|
-
}
|
|
28729
|
-
|
|
28730
|
-
message.page_url = StringValue.decode(reader, reader.uint32()).value;
|
|
28731
|
-
continue;
|
|
28732
|
-
case 12:
|
|
28733
|
-
if (tag !== 98) {
|
|
28734
|
-
break;
|
|
28735
|
-
}
|
|
28736
|
-
|
|
28737
|
-
message.tcUrl = StringValue.decode(reader, reader.uint32()).value;
|
|
28738
|
-
continue;
|
|
28739
|
-
case 13:
|
|
28740
|
-
if (tag !== 106) {
|
|
28680
|
+
if (tag !== 56) {
|
|
28741
28681
|
break;
|
|
28742
28682
|
}
|
|
28743
28683
|
|
|
28744
|
-
message.
|
|
28684
|
+
message.is_publisher = reader.bool();
|
|
28745
28685
|
continue;
|
|
28746
28686
|
}
|
|
28747
28687
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -28754,62 +28694,38 @@ export const StreamHttpCallbackRequest = {
|
|
|
28754
28694
|
|
|
28755
28695
|
fromJSON(object: any): StreamHttpCallbackRequest {
|
|
28756
28696
|
return {
|
|
28757
|
-
|
|
28697
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
28758
28698
|
client_id: isSet(object.client_id) ? globalThis.String(object.client_id) : "",
|
|
28759
|
-
|
|
28760
|
-
|
|
28761
|
-
|
|
28762
|
-
|
|
28763
|
-
|
|
28764
|
-
server_id: isSet(object.server_id) ? globalThis.String(object.server_id) : "",
|
|
28765
|
-
stream_url: isSet(object.stream_url) ? globalThis.String(object.stream_url) : "",
|
|
28766
|
-
stream_id: isSet(object.stream_id) ? globalThis.String(object.stream_id) : "",
|
|
28767
|
-
page_url: isSet(object.page_url) ? String(object.page_url) : undefined,
|
|
28768
|
-
tcUrl: isSet(object.tcUrl) ? String(object.tcUrl) : undefined,
|
|
28769
|
-
service_id: isSet(object.service_id) ? String(object.service_id) : undefined,
|
|
28699
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
28700
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
28701
|
+
user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
|
|
28702
|
+
action: isSet(object.action) ? globalThis.Number(object.action) : 0,
|
|
28703
|
+
is_publisher: isSet(object.is_publisher) ? globalThis.Boolean(object.is_publisher) : false,
|
|
28770
28704
|
};
|
|
28771
28705
|
},
|
|
28772
28706
|
|
|
28773
28707
|
toJSON(message: StreamHttpCallbackRequest): unknown {
|
|
28774
28708
|
const obj: any = {};
|
|
28775
|
-
if (message.
|
|
28776
|
-
obj.
|
|
28709
|
+
if (message.id !== "") {
|
|
28710
|
+
obj.id = message.id;
|
|
28777
28711
|
}
|
|
28778
28712
|
if (message.client_id !== "") {
|
|
28779
28713
|
obj.client_id = message.client_id;
|
|
28780
28714
|
}
|
|
28781
|
-
if (message.
|
|
28782
|
-
obj.
|
|
28783
|
-
}
|
|
28784
|
-
if (message.vhost !== "") {
|
|
28785
|
-
obj.vhost = message.vhost;
|
|
28786
|
-
}
|
|
28787
|
-
if (message.app !== "") {
|
|
28788
|
-
obj.app = message.app;
|
|
28789
|
-
}
|
|
28790
|
-
if (message.stream !== "") {
|
|
28791
|
-
obj.stream = message.stream;
|
|
28792
|
-
}
|
|
28793
|
-
if (message.param !== undefined) {
|
|
28794
|
-
obj.param = message.param;
|
|
28795
|
-
}
|
|
28796
|
-
if (message.server_id !== "") {
|
|
28797
|
-
obj.server_id = message.server_id;
|
|
28798
|
-
}
|
|
28799
|
-
if (message.stream_url !== "") {
|
|
28800
|
-
obj.stream_url = message.stream_url;
|
|
28715
|
+
if (message.clan_id !== "") {
|
|
28716
|
+
obj.clan_id = message.clan_id;
|
|
28801
28717
|
}
|
|
28802
|
-
if (message.
|
|
28803
|
-
obj.
|
|
28718
|
+
if (message.channel_id !== "") {
|
|
28719
|
+
obj.channel_id = message.channel_id;
|
|
28804
28720
|
}
|
|
28805
|
-
if (message.
|
|
28806
|
-
obj.
|
|
28721
|
+
if (message.user_id !== "") {
|
|
28722
|
+
obj.user_id = message.user_id;
|
|
28807
28723
|
}
|
|
28808
|
-
if (message.
|
|
28809
|
-
obj.
|
|
28724
|
+
if (message.action !== 0) {
|
|
28725
|
+
obj.action = Math.round(message.action);
|
|
28810
28726
|
}
|
|
28811
|
-
if (message.
|
|
28812
|
-
obj.
|
|
28727
|
+
if (message.is_publisher !== false) {
|
|
28728
|
+
obj.is_publisher = message.is_publisher;
|
|
28813
28729
|
}
|
|
28814
28730
|
return obj;
|
|
28815
28731
|
},
|
|
@@ -28819,19 +28735,13 @@ export const StreamHttpCallbackRequest = {
|
|
|
28819
28735
|
},
|
|
28820
28736
|
fromPartial<I extends Exact<DeepPartial<StreamHttpCallbackRequest>, I>>(object: I): StreamHttpCallbackRequest {
|
|
28821
28737
|
const message = createBaseStreamHttpCallbackRequest();
|
|
28822
|
-
message.
|
|
28738
|
+
message.id = object.id ?? "";
|
|
28823
28739
|
message.client_id = object.client_id ?? "";
|
|
28824
|
-
message.
|
|
28825
|
-
message.
|
|
28826
|
-
message.
|
|
28827
|
-
message.
|
|
28828
|
-
message.
|
|
28829
|
-
message.server_id = object.server_id ?? "";
|
|
28830
|
-
message.stream_url = object.stream_url ?? "";
|
|
28831
|
-
message.stream_id = object.stream_id ?? "";
|
|
28832
|
-
message.page_url = object.page_url ?? undefined;
|
|
28833
|
-
message.tcUrl = object.tcUrl ?? undefined;
|
|
28834
|
-
message.service_id = object.service_id ?? undefined;
|
|
28740
|
+
message.clan_id = object.clan_id ?? "";
|
|
28741
|
+
message.channel_id = object.channel_id ?? "";
|
|
28742
|
+
message.user_id = object.user_id ?? "";
|
|
28743
|
+
message.action = object.action ?? 0;
|
|
28744
|
+
message.is_publisher = object.is_publisher ?? false;
|
|
28835
28745
|
return message;
|
|
28836
28746
|
},
|
|
28837
28747
|
};
|
|
@@ -29245,230 +29155,6 @@ export const RegisterStreamingChannelResponse = {
|
|
|
29245
29155
|
},
|
|
29246
29156
|
};
|
|
29247
29157
|
|
|
29248
|
-
function createBaseListStreamingChannelsRequest(): ListStreamingChannelsRequest {
|
|
29249
|
-
return { clan_id: "" };
|
|
29250
|
-
}
|
|
29251
|
-
|
|
29252
|
-
export const ListStreamingChannelsRequest = {
|
|
29253
|
-
encode(message: ListStreamingChannelsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
29254
|
-
if (message.clan_id !== "") {
|
|
29255
|
-
writer.uint32(10).string(message.clan_id);
|
|
29256
|
-
}
|
|
29257
|
-
return writer;
|
|
29258
|
-
},
|
|
29259
|
-
|
|
29260
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): ListStreamingChannelsRequest {
|
|
29261
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
29262
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
29263
|
-
const message = createBaseListStreamingChannelsRequest();
|
|
29264
|
-
while (reader.pos < end) {
|
|
29265
|
-
const tag = reader.uint32();
|
|
29266
|
-
switch (tag >>> 3) {
|
|
29267
|
-
case 1:
|
|
29268
|
-
if (tag !== 10) {
|
|
29269
|
-
break;
|
|
29270
|
-
}
|
|
29271
|
-
|
|
29272
|
-
message.clan_id = reader.string();
|
|
29273
|
-
continue;
|
|
29274
|
-
}
|
|
29275
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
29276
|
-
break;
|
|
29277
|
-
}
|
|
29278
|
-
reader.skipType(tag & 7);
|
|
29279
|
-
}
|
|
29280
|
-
return message;
|
|
29281
|
-
},
|
|
29282
|
-
|
|
29283
|
-
fromJSON(object: any): ListStreamingChannelsRequest {
|
|
29284
|
-
return { clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "" };
|
|
29285
|
-
},
|
|
29286
|
-
|
|
29287
|
-
toJSON(message: ListStreamingChannelsRequest): unknown {
|
|
29288
|
-
const obj: any = {};
|
|
29289
|
-
if (message.clan_id !== "") {
|
|
29290
|
-
obj.clan_id = message.clan_id;
|
|
29291
|
-
}
|
|
29292
|
-
return obj;
|
|
29293
|
-
},
|
|
29294
|
-
|
|
29295
|
-
create<I extends Exact<DeepPartial<ListStreamingChannelsRequest>, I>>(base?: I): ListStreamingChannelsRequest {
|
|
29296
|
-
return ListStreamingChannelsRequest.fromPartial(base ?? ({} as any));
|
|
29297
|
-
},
|
|
29298
|
-
fromPartial<I extends Exact<DeepPartial<ListStreamingChannelsRequest>, I>>(object: I): ListStreamingChannelsRequest {
|
|
29299
|
-
const message = createBaseListStreamingChannelsRequest();
|
|
29300
|
-
message.clan_id = object.clan_id ?? "";
|
|
29301
|
-
return message;
|
|
29302
|
-
},
|
|
29303
|
-
};
|
|
29304
|
-
|
|
29305
|
-
function createBaseListStreamingChannelsResponse(): ListStreamingChannelsResponse {
|
|
29306
|
-
return { streaming_channels: [] };
|
|
29307
|
-
}
|
|
29308
|
-
|
|
29309
|
-
export const ListStreamingChannelsResponse = {
|
|
29310
|
-
encode(message: ListStreamingChannelsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
29311
|
-
for (const v of message.streaming_channels) {
|
|
29312
|
-
StreamingChannelResponse.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
29313
|
-
}
|
|
29314
|
-
return writer;
|
|
29315
|
-
},
|
|
29316
|
-
|
|
29317
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): ListStreamingChannelsResponse {
|
|
29318
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
29319
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
29320
|
-
const message = createBaseListStreamingChannelsResponse();
|
|
29321
|
-
while (reader.pos < end) {
|
|
29322
|
-
const tag = reader.uint32();
|
|
29323
|
-
switch (tag >>> 3) {
|
|
29324
|
-
case 1:
|
|
29325
|
-
if (tag !== 10) {
|
|
29326
|
-
break;
|
|
29327
|
-
}
|
|
29328
|
-
|
|
29329
|
-
message.streaming_channels.push(StreamingChannelResponse.decode(reader, reader.uint32()));
|
|
29330
|
-
continue;
|
|
29331
|
-
}
|
|
29332
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
29333
|
-
break;
|
|
29334
|
-
}
|
|
29335
|
-
reader.skipType(tag & 7);
|
|
29336
|
-
}
|
|
29337
|
-
return message;
|
|
29338
|
-
},
|
|
29339
|
-
|
|
29340
|
-
fromJSON(object: any): ListStreamingChannelsResponse {
|
|
29341
|
-
return {
|
|
29342
|
-
streaming_channels: globalThis.Array.isArray(object?.streaming_channels)
|
|
29343
|
-
? object.streaming_channels.map((e: any) => StreamingChannelResponse.fromJSON(e))
|
|
29344
|
-
: [],
|
|
29345
|
-
};
|
|
29346
|
-
},
|
|
29347
|
-
|
|
29348
|
-
toJSON(message: ListStreamingChannelsResponse): unknown {
|
|
29349
|
-
const obj: any = {};
|
|
29350
|
-
if (message.streaming_channels?.length) {
|
|
29351
|
-
obj.streaming_channels = message.streaming_channels.map((e) => StreamingChannelResponse.toJSON(e));
|
|
29352
|
-
}
|
|
29353
|
-
return obj;
|
|
29354
|
-
},
|
|
29355
|
-
|
|
29356
|
-
create<I extends Exact<DeepPartial<ListStreamingChannelsResponse>, I>>(base?: I): ListStreamingChannelsResponse {
|
|
29357
|
-
return ListStreamingChannelsResponse.fromPartial(base ?? ({} as any));
|
|
29358
|
-
},
|
|
29359
|
-
fromPartial<I extends Exact<DeepPartial<ListStreamingChannelsResponse>, I>>(
|
|
29360
|
-
object: I,
|
|
29361
|
-
): ListStreamingChannelsResponse {
|
|
29362
|
-
const message = createBaseListStreamingChannelsResponse();
|
|
29363
|
-
message.streaming_channels = object.streaming_channels?.map((e) => StreamingChannelResponse.fromPartial(e)) || [];
|
|
29364
|
-
return message;
|
|
29365
|
-
},
|
|
29366
|
-
};
|
|
29367
|
-
|
|
29368
|
-
function createBaseStreamingChannelResponse(): StreamingChannelResponse {
|
|
29369
|
-
return { clan_id: "", channel_id: "", streaming_url: "", is_streaming: false };
|
|
29370
|
-
}
|
|
29371
|
-
|
|
29372
|
-
export const StreamingChannelResponse = {
|
|
29373
|
-
encode(message: StreamingChannelResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
29374
|
-
if (message.clan_id !== "") {
|
|
29375
|
-
writer.uint32(10).string(message.clan_id);
|
|
29376
|
-
}
|
|
29377
|
-
if (message.channel_id !== "") {
|
|
29378
|
-
writer.uint32(18).string(message.channel_id);
|
|
29379
|
-
}
|
|
29380
|
-
if (message.streaming_url !== "") {
|
|
29381
|
-
writer.uint32(26).string(message.streaming_url);
|
|
29382
|
-
}
|
|
29383
|
-
if (message.is_streaming !== false) {
|
|
29384
|
-
writer.uint32(32).bool(message.is_streaming);
|
|
29385
|
-
}
|
|
29386
|
-
return writer;
|
|
29387
|
-
},
|
|
29388
|
-
|
|
29389
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): StreamingChannelResponse {
|
|
29390
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
29391
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
29392
|
-
const message = createBaseStreamingChannelResponse();
|
|
29393
|
-
while (reader.pos < end) {
|
|
29394
|
-
const tag = reader.uint32();
|
|
29395
|
-
switch (tag >>> 3) {
|
|
29396
|
-
case 1:
|
|
29397
|
-
if (tag !== 10) {
|
|
29398
|
-
break;
|
|
29399
|
-
}
|
|
29400
|
-
|
|
29401
|
-
message.clan_id = reader.string();
|
|
29402
|
-
continue;
|
|
29403
|
-
case 2:
|
|
29404
|
-
if (tag !== 18) {
|
|
29405
|
-
break;
|
|
29406
|
-
}
|
|
29407
|
-
|
|
29408
|
-
message.channel_id = reader.string();
|
|
29409
|
-
continue;
|
|
29410
|
-
case 3:
|
|
29411
|
-
if (tag !== 26) {
|
|
29412
|
-
break;
|
|
29413
|
-
}
|
|
29414
|
-
|
|
29415
|
-
message.streaming_url = reader.string();
|
|
29416
|
-
continue;
|
|
29417
|
-
case 4:
|
|
29418
|
-
if (tag !== 32) {
|
|
29419
|
-
break;
|
|
29420
|
-
}
|
|
29421
|
-
|
|
29422
|
-
message.is_streaming = reader.bool();
|
|
29423
|
-
continue;
|
|
29424
|
-
}
|
|
29425
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
29426
|
-
break;
|
|
29427
|
-
}
|
|
29428
|
-
reader.skipType(tag & 7);
|
|
29429
|
-
}
|
|
29430
|
-
return message;
|
|
29431
|
-
},
|
|
29432
|
-
|
|
29433
|
-
fromJSON(object: any): StreamingChannelResponse {
|
|
29434
|
-
return {
|
|
29435
|
-
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
29436
|
-
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
29437
|
-
streaming_url: isSet(object.streaming_url) ? globalThis.String(object.streaming_url) : "",
|
|
29438
|
-
is_streaming: isSet(object.is_streaming) ? globalThis.Boolean(object.is_streaming) : false,
|
|
29439
|
-
};
|
|
29440
|
-
},
|
|
29441
|
-
|
|
29442
|
-
toJSON(message: StreamingChannelResponse): unknown {
|
|
29443
|
-
const obj: any = {};
|
|
29444
|
-
if (message.clan_id !== "") {
|
|
29445
|
-
obj.clan_id = message.clan_id;
|
|
29446
|
-
}
|
|
29447
|
-
if (message.channel_id !== "") {
|
|
29448
|
-
obj.channel_id = message.channel_id;
|
|
29449
|
-
}
|
|
29450
|
-
if (message.streaming_url !== "") {
|
|
29451
|
-
obj.streaming_url = message.streaming_url;
|
|
29452
|
-
}
|
|
29453
|
-
if (message.is_streaming !== false) {
|
|
29454
|
-
obj.is_streaming = message.is_streaming;
|
|
29455
|
-
}
|
|
29456
|
-
return obj;
|
|
29457
|
-
},
|
|
29458
|
-
|
|
29459
|
-
create<I extends Exact<DeepPartial<StreamingChannelResponse>, I>>(base?: I): StreamingChannelResponse {
|
|
29460
|
-
return StreamingChannelResponse.fromPartial(base ?? ({} as any));
|
|
29461
|
-
},
|
|
29462
|
-
fromPartial<I extends Exact<DeepPartial<StreamingChannelResponse>, I>>(object: I): StreamingChannelResponse {
|
|
29463
|
-
const message = createBaseStreamingChannelResponse();
|
|
29464
|
-
message.clan_id = object.clan_id ?? "";
|
|
29465
|
-
message.channel_id = object.channel_id ?? "";
|
|
29466
|
-
message.streaming_url = object.streaming_url ?? "";
|
|
29467
|
-
message.is_streaming = object.is_streaming ?? false;
|
|
29468
|
-
return message;
|
|
29469
|
-
},
|
|
29470
|
-
};
|
|
29471
|
-
|
|
29472
29158
|
function createBaseGiveCoffeeEvent(): GiveCoffeeEvent {
|
|
29473
29159
|
return { sender_id: "", receiver_id: "", token_count: 0, message_ref_id: "", channel_id: "", clan_id: "" };
|
|
29474
29160
|
}
|
|
@@ -37256,13 +36942,13 @@ export const SdTopicList = {
|
|
|
37256
36942
|
};
|
|
37257
36943
|
|
|
37258
36944
|
function createBaseListSdTopicRequest(): ListSdTopicRequest {
|
|
37259
|
-
return {
|
|
36945
|
+
return { clan_id: "", limit: 0 };
|
|
37260
36946
|
}
|
|
37261
36947
|
|
|
37262
36948
|
export const ListSdTopicRequest = {
|
|
37263
36949
|
encode(message: ListSdTopicRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
37264
|
-
if (message.
|
|
37265
|
-
writer.uint32(10).string(message.
|
|
36950
|
+
if (message.clan_id !== "") {
|
|
36951
|
+
writer.uint32(10).string(message.clan_id);
|
|
37266
36952
|
}
|
|
37267
36953
|
if (message.limit !== 0) {
|
|
37268
36954
|
writer.uint32(16).int32(message.limit);
|
|
@@ -37282,7 +36968,7 @@ export const ListSdTopicRequest = {
|
|
|
37282
36968
|
break;
|
|
37283
36969
|
}
|
|
37284
36970
|
|
|
37285
|
-
message.
|
|
36971
|
+
message.clan_id = reader.string();
|
|
37286
36972
|
continue;
|
|
37287
36973
|
case 2:
|
|
37288
36974
|
if (tag !== 16) {
|
|
@@ -37302,15 +36988,15 @@ export const ListSdTopicRequest = {
|
|
|
37302
36988
|
|
|
37303
36989
|
fromJSON(object: any): ListSdTopicRequest {
|
|
37304
36990
|
return {
|
|
37305
|
-
|
|
36991
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
37306
36992
|
limit: isSet(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
37307
36993
|
};
|
|
37308
36994
|
},
|
|
37309
36995
|
|
|
37310
36996
|
toJSON(message: ListSdTopicRequest): unknown {
|
|
37311
36997
|
const obj: any = {};
|
|
37312
|
-
if (message.
|
|
37313
|
-
obj.
|
|
36998
|
+
if (message.clan_id !== "") {
|
|
36999
|
+
obj.clan_id = message.clan_id;
|
|
37314
37000
|
}
|
|
37315
37001
|
if (message.limit !== 0) {
|
|
37316
37002
|
obj.limit = Math.round(message.limit);
|
|
@@ -37323,7 +37009,7 @@ export const ListSdTopicRequest = {
|
|
|
37323
37009
|
},
|
|
37324
37010
|
fromPartial<I extends Exact<DeepPartial<ListSdTopicRequest>, I>>(object: I): ListSdTopicRequest {
|
|
37325
37011
|
const message = createBaseListSdTopicRequest();
|
|
37326
|
-
message.
|
|
37012
|
+
message.clan_id = object.clan_id ?? "";
|
|
37327
37013
|
message.limit = object.limit ?? 0;
|
|
37328
37014
|
return message;
|
|
37329
37015
|
},
|