mezon-js-protobuf 1.6.72 → 1.6.73

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/api/api.ts CHANGED
@@ -2086,13 +2086,14 @@ export interface EventManagement {
2086
2086
  start_event: number;
2087
2087
  creator_id: string;
2088
2088
  clan_id: string;
2089
- channel_id: string;
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
- channel_id: string;
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,22 @@ export interface DeleteCategoryOrderRequest {
3003
3005
  }
3004
3006
 
3005
3007
  export interface StreamHttpCallbackRequest {
3006
- action: string;
3008
+ /** id */
3009
+ id: string;
3010
+ /** client_id */
3007
3011
  client_id: string;
3008
- ip: string;
3009
- vhost: string;
3010
- app: string;
3011
- stream: string;
3012
- param: string | undefined;
3013
- server_id: string;
3014
- stream_url: string;
3015
- stream_id: string;
3016
- page_url: string | undefined;
3017
- tcUrl: string | undefined;
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
+ /** display name */
3019
+ display_name: string;
3020
+ /** action */
3021
+ action: number;
3022
+ /** is_publisher */
3023
+ is_publisher: boolean;
3019
3024
  }
3020
3025
 
3021
3026
  export interface StreamHttpCallbackResponse {
@@ -3057,27 +3062,6 @@ export interface RegisterStreamingChannelResponse {
3057
3062
  streaming_url: string;
3058
3063
  }
3059
3064
 
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
3065
  export interface GiveCoffeeEvent {
3082
3066
  /** sender id */
3083
3067
  sender_id: string;
@@ -18805,13 +18789,14 @@ function createBaseEventManagement(): EventManagement {
18805
18789
  start_event: 0,
18806
18790
  creator_id: "",
18807
18791
  clan_id: "",
18808
- channel_id: "",
18792
+ channel_voice_id: "",
18809
18793
  address: "",
18810
18794
  start_time: undefined,
18811
18795
  end_time: undefined,
18812
18796
  user_ids: [],
18813
18797
  create_time: undefined,
18814
18798
  max_permission: 0,
18799
+ channel_id: "",
18815
18800
  };
18816
18801
  }
18817
18802
 
@@ -18841,8 +18826,8 @@ export const EventManagement = {
18841
18826
  if (message.clan_id !== "") {
18842
18827
  writer.uint32(66).string(message.clan_id);
18843
18828
  }
18844
- if (message.channel_id !== "") {
18845
- writer.uint32(74).string(message.channel_id);
18829
+ if (message.channel_voice_id !== "") {
18830
+ writer.uint32(74).string(message.channel_voice_id);
18846
18831
  }
18847
18832
  if (message.address !== "") {
18848
18833
  writer.uint32(82).string(message.address);
@@ -18862,6 +18847,9 @@ export const EventManagement = {
18862
18847
  if (message.max_permission !== 0) {
18863
18848
  writer.uint32(120).int32(message.max_permission);
18864
18849
  }
18850
+ if (message.channel_id !== "") {
18851
+ writer.uint32(130).string(message.channel_id);
18852
+ }
18865
18853
  return writer;
18866
18854
  },
18867
18855
 
@@ -18933,7 +18921,7 @@ export const EventManagement = {
18933
18921
  break;
18934
18922
  }
18935
18923
 
18936
- message.channel_id = reader.string();
18924
+ message.channel_voice_id = reader.string();
18937
18925
  continue;
18938
18926
  case 10:
18939
18927
  if (tag !== 82) {
@@ -18977,6 +18965,13 @@ export const EventManagement = {
18977
18965
 
18978
18966
  message.max_permission = reader.int32();
18979
18967
  continue;
18968
+ case 16:
18969
+ if (tag !== 130) {
18970
+ break;
18971
+ }
18972
+
18973
+ message.channel_id = reader.string();
18974
+ continue;
18980
18975
  }
18981
18976
  if ((tag & 7) === 4 || tag === 0) {
18982
18977
  break;
@@ -18996,13 +18991,14 @@ export const EventManagement = {
18996
18991
  start_event: isSet(object.start_event) ? globalThis.Number(object.start_event) : 0,
18997
18992
  creator_id: isSet(object.creator_id) ? globalThis.String(object.creator_id) : "",
18998
18993
  clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
18999
- channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
18994
+ channel_voice_id: isSet(object.channel_voice_id) ? globalThis.String(object.channel_voice_id) : "",
19000
18995
  address: isSet(object.address) ? globalThis.String(object.address) : "",
19001
18996
  start_time: isSet(object.start_time) ? fromJsonTimestamp(object.start_time) : undefined,
19002
18997
  end_time: isSet(object.end_time) ? fromJsonTimestamp(object.end_time) : undefined,
19003
18998
  user_ids: globalThis.Array.isArray(object?.user_ids) ? object.user_ids.map((e: any) => globalThis.String(e)) : [],
19004
18999
  create_time: isSet(object.create_time) ? fromJsonTimestamp(object.create_time) : undefined,
19005
19000
  max_permission: isSet(object.max_permission) ? globalThis.Number(object.max_permission) : 0,
19001
+ channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
19006
19002
  };
19007
19003
  },
19008
19004
 
@@ -19032,8 +19028,8 @@ export const EventManagement = {
19032
19028
  if (message.clan_id !== "") {
19033
19029
  obj.clan_id = message.clan_id;
19034
19030
  }
19035
- if (message.channel_id !== "") {
19036
- obj.channel_id = message.channel_id;
19031
+ if (message.channel_voice_id !== "") {
19032
+ obj.channel_voice_id = message.channel_voice_id;
19037
19033
  }
19038
19034
  if (message.address !== "") {
19039
19035
  obj.address = message.address;
@@ -19053,6 +19049,9 @@ export const EventManagement = {
19053
19049
  if (message.max_permission !== 0) {
19054
19050
  obj.max_permission = Math.round(message.max_permission);
19055
19051
  }
19052
+ if (message.channel_id !== "") {
19053
+ obj.channel_id = message.channel_id;
19054
+ }
19056
19055
  return obj;
19057
19056
  },
19058
19057
 
@@ -19069,13 +19068,14 @@ export const EventManagement = {
19069
19068
  message.start_event = object.start_event ?? 0;
19070
19069
  message.creator_id = object.creator_id ?? "";
19071
19070
  message.clan_id = object.clan_id ?? "";
19072
- message.channel_id = object.channel_id ?? "";
19071
+ message.channel_voice_id = object.channel_voice_id ?? "";
19073
19072
  message.address = object.address ?? "";
19074
19073
  message.start_time = object.start_time ?? undefined;
19075
19074
  message.end_time = object.end_time ?? undefined;
19076
19075
  message.user_ids = object.user_ids?.map((e) => e) || [];
19077
19076
  message.create_time = object.create_time ?? undefined;
19078
19077
  message.max_permission = object.max_permission ?? 0;
19078
+ message.channel_id = object.channel_id ?? "";
19079
19079
  return message;
19080
19080
  },
19081
19081
  };
@@ -22104,12 +22104,13 @@ function createBaseCreateEventRequest(): CreateEventRequest {
22104
22104
  logo: "",
22105
22105
  description: "",
22106
22106
  clan_id: "",
22107
- channel_id: "",
22107
+ channel_voice_id: "",
22108
22108
  address: "",
22109
22109
  start_time: undefined,
22110
22110
  end_time: undefined,
22111
22111
  event_id: "",
22112
22112
  event_status: "",
22113
+ channel_id: "",
22113
22114
  };
22114
22115
  }
22115
22116
 
@@ -22127,8 +22128,8 @@ export const CreateEventRequest = {
22127
22128
  if (message.clan_id !== "") {
22128
22129
  writer.uint32(34).string(message.clan_id);
22129
22130
  }
22130
- if (message.channel_id !== "") {
22131
- writer.uint32(42).string(message.channel_id);
22131
+ if (message.channel_voice_id !== "") {
22132
+ writer.uint32(42).string(message.channel_voice_id);
22132
22133
  }
22133
22134
  if (message.address !== "") {
22134
22135
  writer.uint32(50).string(message.address);
@@ -22145,6 +22146,9 @@ export const CreateEventRequest = {
22145
22146
  if (message.event_status !== "") {
22146
22147
  writer.uint32(82).string(message.event_status);
22147
22148
  }
22149
+ if (message.channel_id !== "") {
22150
+ writer.uint32(90).string(message.channel_id);
22151
+ }
22148
22152
  return writer;
22149
22153
  },
22150
22154
 
@@ -22188,7 +22192,7 @@ export const CreateEventRequest = {
22188
22192
  break;
22189
22193
  }
22190
22194
 
22191
- message.channel_id = reader.string();
22195
+ message.channel_voice_id = reader.string();
22192
22196
  continue;
22193
22197
  case 6:
22194
22198
  if (tag !== 50) {
@@ -22225,6 +22229,13 @@ export const CreateEventRequest = {
22225
22229
 
22226
22230
  message.event_status = reader.string();
22227
22231
  continue;
22232
+ case 11:
22233
+ if (tag !== 90) {
22234
+ break;
22235
+ }
22236
+
22237
+ message.channel_id = reader.string();
22238
+ continue;
22228
22239
  }
22229
22240
  if ((tag & 7) === 4 || tag === 0) {
22230
22241
  break;
@@ -22240,12 +22251,13 @@ export const CreateEventRequest = {
22240
22251
  logo: isSet(object.logo) ? globalThis.String(object.logo) : "",
22241
22252
  description: isSet(object.description) ? globalThis.String(object.description) : "",
22242
22253
  clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
22243
- channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
22254
+ channel_voice_id: isSet(object.channel_voice_id) ? globalThis.String(object.channel_voice_id) : "",
22244
22255
  address: isSet(object.address) ? globalThis.String(object.address) : "",
22245
22256
  start_time: isSet(object.start_time) ? fromJsonTimestamp(object.start_time) : undefined,
22246
22257
  end_time: isSet(object.end_time) ? fromJsonTimestamp(object.end_time) : undefined,
22247
22258
  event_id: isSet(object.event_id) ? globalThis.String(object.event_id) : "",
22248
22259
  event_status: isSet(object.event_status) ? globalThis.String(object.event_status) : "",
22260
+ channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
22249
22261
  };
22250
22262
  },
22251
22263
 
@@ -22263,8 +22275,8 @@ export const CreateEventRequest = {
22263
22275
  if (message.clan_id !== "") {
22264
22276
  obj.clan_id = message.clan_id;
22265
22277
  }
22266
- if (message.channel_id !== "") {
22267
- obj.channel_id = message.channel_id;
22278
+ if (message.channel_voice_id !== "") {
22279
+ obj.channel_voice_id = message.channel_voice_id;
22268
22280
  }
22269
22281
  if (message.address !== "") {
22270
22282
  obj.address = message.address;
@@ -22281,6 +22293,9 @@ export const CreateEventRequest = {
22281
22293
  if (message.event_status !== "") {
22282
22294
  obj.event_status = message.event_status;
22283
22295
  }
22296
+ if (message.channel_id !== "") {
22297
+ obj.channel_id = message.channel_id;
22298
+ }
22284
22299
  return obj;
22285
22300
  },
22286
22301
 
@@ -22293,12 +22308,13 @@ export const CreateEventRequest = {
22293
22308
  message.logo = object.logo ?? "";
22294
22309
  message.description = object.description ?? "";
22295
22310
  message.clan_id = object.clan_id ?? "";
22296
- message.channel_id = object.channel_id ?? "";
22311
+ message.channel_voice_id = object.channel_voice_id ?? "";
22297
22312
  message.address = object.address ?? "";
22298
22313
  message.start_time = object.start_time ?? undefined;
22299
22314
  message.end_time = object.end_time ?? undefined;
22300
22315
  message.event_id = object.event_id ?? "";
22301
22316
  message.event_status = object.event_status ?? "";
22317
+ message.channel_id = object.channel_id ?? "";
22302
22318
  return message;
22303
22319
  },
22304
22320
  };
@@ -28585,62 +28601,42 @@ export const DeleteCategoryOrderRequest = {
28585
28601
 
28586
28602
  function createBaseStreamHttpCallbackRequest(): StreamHttpCallbackRequest {
28587
28603
  return {
28588
- action: "",
28604
+ id: "",
28589
28605
  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,
28606
+ clan_id: "",
28607
+ channel_id: "",
28608
+ user_id: "",
28609
+ display_name: "",
28610
+ action: 0,
28611
+ is_publisher: false,
28601
28612
  };
28602
28613
  }
28603
28614
 
28604
28615
  export const StreamHttpCallbackRequest = {
28605
28616
  encode(message: StreamHttpCallbackRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
28606
- if (message.action !== "") {
28607
- writer.uint32(10).string(message.action);
28617
+ if (message.id !== "") {
28618
+ writer.uint32(10).string(message.id);
28608
28619
  }
28609
28620
  if (message.client_id !== "") {
28610
28621
  writer.uint32(18).string(message.client_id);
28611
28622
  }
28612
- if (message.ip !== "") {
28613
- writer.uint32(26).string(message.ip);
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);
28623
+ if (message.clan_id !== "") {
28624
+ writer.uint32(26).string(message.clan_id);
28629
28625
  }
28630
- if (message.stream_url !== "") {
28631
- writer.uint32(74).string(message.stream_url);
28626
+ if (message.channel_id !== "") {
28627
+ writer.uint32(34).string(message.channel_id);
28632
28628
  }
28633
- if (message.stream_id !== "") {
28634
- writer.uint32(82).string(message.stream_id);
28629
+ if (message.user_id !== "") {
28630
+ writer.uint32(42).string(message.user_id);
28635
28631
  }
28636
- if (message.page_url !== undefined) {
28637
- StringValue.encode({ value: message.page_url! }, writer.uint32(90).fork()).ldelim();
28632
+ if (message.display_name !== "") {
28633
+ writer.uint32(50).string(message.display_name);
28638
28634
  }
28639
- if (message.tcUrl !== undefined) {
28640
- StringValue.encode({ value: message.tcUrl! }, writer.uint32(98).fork()).ldelim();
28635
+ if (message.action !== 0) {
28636
+ writer.uint32(56).int32(message.action);
28641
28637
  }
28642
- if (message.service_id !== undefined) {
28643
- StringValue.encode({ value: message.service_id! }, writer.uint32(106).fork()).ldelim();
28638
+ if (message.is_publisher !== false) {
28639
+ writer.uint32(64).bool(message.is_publisher);
28644
28640
  }
28645
28641
  return writer;
28646
28642
  },
@@ -28657,7 +28653,7 @@ export const StreamHttpCallbackRequest = {
28657
28653
  break;
28658
28654
  }
28659
28655
 
28660
- message.action = reader.string();
28656
+ message.id = reader.string();
28661
28657
  continue;
28662
28658
  case 2:
28663
28659
  if (tag !== 18) {
@@ -28671,77 +28667,42 @@ export const StreamHttpCallbackRequest = {
28671
28667
  break;
28672
28668
  }
28673
28669
 
28674
- message.ip = reader.string();
28670
+ message.clan_id = reader.string();
28675
28671
  continue;
28676
28672
  case 4:
28677
28673
  if (tag !== 34) {
28678
28674
  break;
28679
28675
  }
28680
28676
 
28681
- message.vhost = reader.string();
28677
+ message.channel_id = reader.string();
28682
28678
  continue;
28683
28679
  case 5:
28684
28680
  if (tag !== 42) {
28685
28681
  break;
28686
28682
  }
28687
28683
 
28688
- message.app = reader.string();
28684
+ message.user_id = reader.string();
28689
28685
  continue;
28690
28686
  case 6:
28691
28687
  if (tag !== 50) {
28692
28688
  break;
28693
28689
  }
28694
28690
 
28695
- message.stream = reader.string();
28691
+ message.display_name = reader.string();
28696
28692
  continue;
28697
28693
  case 7:
28698
- if (tag !== 58) {
28694
+ if (tag !== 56) {
28699
28695
  break;
28700
28696
  }
28701
28697
 
28702
- message.param = StringValue.decode(reader, reader.uint32()).value;
28698
+ message.action = reader.int32();
28703
28699
  continue;
28704
28700
  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) {
28701
+ if (tag !== 64) {
28741
28702
  break;
28742
28703
  }
28743
28704
 
28744
- message.service_id = StringValue.decode(reader, reader.uint32()).value;
28705
+ message.is_publisher = reader.bool();
28745
28706
  continue;
28746
28707
  }
28747
28708
  if ((tag & 7) === 4 || tag === 0) {
@@ -28754,62 +28715,42 @@ export const StreamHttpCallbackRequest = {
28754
28715
 
28755
28716
  fromJSON(object: any): StreamHttpCallbackRequest {
28756
28717
  return {
28757
- action: isSet(object.action) ? globalThis.String(object.action) : "",
28718
+ id: isSet(object.id) ? globalThis.String(object.id) : "",
28758
28719
  client_id: isSet(object.client_id) ? globalThis.String(object.client_id) : "",
28759
- ip: isSet(object.ip) ? globalThis.String(object.ip) : "",
28760
- vhost: isSet(object.vhost) ? globalThis.String(object.vhost) : "",
28761
- app: isSet(object.app) ? globalThis.String(object.app) : "",
28762
- stream: isSet(object.stream) ? globalThis.String(object.stream) : "",
28763
- param: isSet(object.param) ? String(object.param) : undefined,
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,
28720
+ clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
28721
+ channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
28722
+ user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
28723
+ display_name: isSet(object.display_name) ? globalThis.String(object.display_name) : "",
28724
+ action: isSet(object.action) ? globalThis.Number(object.action) : 0,
28725
+ is_publisher: isSet(object.is_publisher) ? globalThis.Boolean(object.is_publisher) : false,
28770
28726
  };
28771
28727
  },
28772
28728
 
28773
28729
  toJSON(message: StreamHttpCallbackRequest): unknown {
28774
28730
  const obj: any = {};
28775
- if (message.action !== "") {
28776
- obj.action = message.action;
28731
+ if (message.id !== "") {
28732
+ obj.id = message.id;
28777
28733
  }
28778
28734
  if (message.client_id !== "") {
28779
28735
  obj.client_id = message.client_id;
28780
28736
  }
28781
- if (message.ip !== "") {
28782
- obj.ip = message.ip;
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;
28737
+ if (message.clan_id !== "") {
28738
+ obj.clan_id = message.clan_id;
28798
28739
  }
28799
- if (message.stream_url !== "") {
28800
- obj.stream_url = message.stream_url;
28740
+ if (message.channel_id !== "") {
28741
+ obj.channel_id = message.channel_id;
28801
28742
  }
28802
- if (message.stream_id !== "") {
28803
- obj.stream_id = message.stream_id;
28743
+ if (message.user_id !== "") {
28744
+ obj.user_id = message.user_id;
28804
28745
  }
28805
- if (message.page_url !== undefined) {
28806
- obj.page_url = message.page_url;
28746
+ if (message.display_name !== "") {
28747
+ obj.display_name = message.display_name;
28807
28748
  }
28808
- if (message.tcUrl !== undefined) {
28809
- obj.tcUrl = message.tcUrl;
28749
+ if (message.action !== 0) {
28750
+ obj.action = Math.round(message.action);
28810
28751
  }
28811
- if (message.service_id !== undefined) {
28812
- obj.service_id = message.service_id;
28752
+ if (message.is_publisher !== false) {
28753
+ obj.is_publisher = message.is_publisher;
28813
28754
  }
28814
28755
  return obj;
28815
28756
  },
@@ -28819,19 +28760,14 @@ export const StreamHttpCallbackRequest = {
28819
28760
  },
28820
28761
  fromPartial<I extends Exact<DeepPartial<StreamHttpCallbackRequest>, I>>(object: I): StreamHttpCallbackRequest {
28821
28762
  const message = createBaseStreamHttpCallbackRequest();
28822
- message.action = object.action ?? "";
28763
+ message.id = object.id ?? "";
28823
28764
  message.client_id = object.client_id ?? "";
28824
- message.ip = object.ip ?? "";
28825
- message.vhost = object.vhost ?? "";
28826
- message.app = object.app ?? "";
28827
- message.stream = object.stream ?? "";
28828
- message.param = object.param ?? undefined;
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;
28765
+ message.clan_id = object.clan_id ?? "";
28766
+ message.channel_id = object.channel_id ?? "";
28767
+ message.user_id = object.user_id ?? "";
28768
+ message.display_name = object.display_name ?? "";
28769
+ message.action = object.action ?? 0;
28770
+ message.is_publisher = object.is_publisher ?? false;
28835
28771
  return message;
28836
28772
  },
28837
28773
  };
@@ -29245,230 +29181,6 @@ export const RegisterStreamingChannelResponse = {
29245
29181
  },
29246
29182
  };
29247
29183
 
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
29184
  function createBaseGiveCoffeeEvent(): GiveCoffeeEvent {
29473
29185
  return { sender_id: "", receiver_id: "", token_count: 0, message_ref_id: "", channel_id: "", clan_id: "" };
29474
29186
  }