mezon-js-protobuf 1.7.13 → 1.7.15

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/rtapi/realtime.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
- // protoc-gen-ts_proto v1.181.2
4
- // protoc v3.20.3
3
+ // protoc-gen-ts_proto v1.181.1
4
+ // protoc v5.27.2
5
5
  // source: rtapi/realtime.proto
6
6
 
7
7
  /* eslint-disable */
@@ -314,12 +314,35 @@ export interface Envelope {
314
314
  | undefined;
315
315
  /** */
316
316
  noti_user_channel?: NotificationUserChannel | undefined;
317
- join_channel_app_data?: JoinChannelAppData | undefined;
317
+ join_channel_app_data?:
318
+ | JoinChannelAppData
319
+ | undefined;
320
+ /** channel canvas */
321
+ canvas_event?: ChannelCanvas | undefined;
318
322
  }
319
323
 
320
324
  export interface FollowEvent {
321
325
  }
322
326
 
327
+ export interface ChannelCanvas {
328
+ /** id */
329
+ id: string;
330
+ /** title */
331
+ title: string;
332
+ /** content */
333
+ content: string;
334
+ /** creator */
335
+ creator_id: string;
336
+ /** editor */
337
+ editor_id: string;
338
+ /** is default */
339
+ is_default: boolean;
340
+ /** channel_id */
341
+ channel_id: string;
342
+ /** status */
343
+ status: number;
344
+ }
345
+
323
346
  export interface IncomingCallPush {
324
347
  receiver_id: string;
325
348
  json_data: string;
@@ -907,6 +930,8 @@ export interface ChannelCreatedEvent {
907
930
  status: number;
908
931
  /** app url */
909
932
  app_url: string;
933
+ /** clan_name */
934
+ clan_name: string;
910
935
  }
911
936
 
912
937
  export interface RoleEvent {
@@ -1407,6 +1432,7 @@ function createBaseEnvelope(): Envelope {
1407
1432
  webhook_event: undefined,
1408
1433
  noti_user_channel: undefined,
1409
1434
  join_channel_app_data: undefined,
1435
+ canvas_event: undefined,
1410
1436
  };
1411
1437
  }
1412
1438
 
@@ -1631,6 +1657,9 @@ export const Envelope = {
1631
1657
  if (message.join_channel_app_data !== undefined) {
1632
1658
  JoinChannelAppData.encode(message.join_channel_app_data, writer.uint32(586).fork()).ldelim();
1633
1659
  }
1660
+ if (message.canvas_event !== undefined) {
1661
+ ChannelCanvas.encode(message.canvas_event, writer.uint32(594).fork()).ldelim();
1662
+ }
1634
1663
  return writer;
1635
1664
  },
1636
1665
 
@@ -2152,6 +2181,13 @@ export const Envelope = {
2152
2181
 
2153
2182
  message.join_channel_app_data = JoinChannelAppData.decode(reader, reader.uint32());
2154
2183
  continue;
2184
+ case 74:
2185
+ if (tag !== 594) {
2186
+ break;
2187
+ }
2188
+
2189
+ message.canvas_event = ChannelCanvas.decode(reader, reader.uint32());
2190
+ continue;
2155
2191
  }
2156
2192
  if ((tag & 7) === 4 || tag === 0) {
2157
2193
  break;
@@ -2332,6 +2368,7 @@ export const Envelope = {
2332
2368
  join_channel_app_data: isSet(object.join_channel_app_data)
2333
2369
  ? JoinChannelAppData.fromJSON(object.join_channel_app_data)
2334
2370
  : undefined,
2371
+ canvas_event: isSet(object.canvas_event) ? ChannelCanvas.fromJSON(object.canvas_event) : undefined,
2335
2372
  };
2336
2373
  },
2337
2374
 
@@ -2556,6 +2593,9 @@ export const Envelope = {
2556
2593
  if (message.join_channel_app_data !== undefined) {
2557
2594
  obj.join_channel_app_data = JoinChannelAppData.toJSON(message.join_channel_app_data);
2558
2595
  }
2596
+ if (message.canvas_event !== undefined) {
2597
+ obj.canvas_event = ChannelCanvas.toJSON(message.canvas_event);
2598
+ }
2559
2599
  return obj;
2560
2600
  },
2561
2601
 
@@ -2798,6 +2838,9 @@ export const Envelope = {
2798
2838
  (object.join_channel_app_data !== undefined && object.join_channel_app_data !== null)
2799
2839
  ? JoinChannelAppData.fromPartial(object.join_channel_app_data)
2800
2840
  : undefined;
2841
+ message.canvas_event = (object.canvas_event !== undefined && object.canvas_event !== null)
2842
+ ? ChannelCanvas.fromPartial(object.canvas_event)
2843
+ : undefined;
2801
2844
  return message;
2802
2845
  },
2803
2846
  };
@@ -2845,6 +2888,179 @@ export const FollowEvent = {
2845
2888
  },
2846
2889
  };
2847
2890
 
2891
+ function createBaseChannelCanvas(): ChannelCanvas {
2892
+ return {
2893
+ id: "",
2894
+ title: "",
2895
+ content: "",
2896
+ creator_id: "",
2897
+ editor_id: "",
2898
+ is_default: false,
2899
+ channel_id: "",
2900
+ status: 0,
2901
+ };
2902
+ }
2903
+
2904
+ export const ChannelCanvas = {
2905
+ encode(message: ChannelCanvas, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
2906
+ if (message.id !== "") {
2907
+ writer.uint32(10).string(message.id);
2908
+ }
2909
+ if (message.title !== "") {
2910
+ writer.uint32(18).string(message.title);
2911
+ }
2912
+ if (message.content !== "") {
2913
+ writer.uint32(26).string(message.content);
2914
+ }
2915
+ if (message.creator_id !== "") {
2916
+ writer.uint32(34).string(message.creator_id);
2917
+ }
2918
+ if (message.editor_id !== "") {
2919
+ writer.uint32(42).string(message.editor_id);
2920
+ }
2921
+ if (message.is_default !== false) {
2922
+ writer.uint32(48).bool(message.is_default);
2923
+ }
2924
+ if (message.channel_id !== "") {
2925
+ writer.uint32(58).string(message.channel_id);
2926
+ }
2927
+ if (message.status !== 0) {
2928
+ writer.uint32(64).int32(message.status);
2929
+ }
2930
+ return writer;
2931
+ },
2932
+
2933
+ decode(input: _m0.Reader | Uint8Array, length?: number): ChannelCanvas {
2934
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
2935
+ let end = length === undefined ? reader.len : reader.pos + length;
2936
+ const message = createBaseChannelCanvas();
2937
+ while (reader.pos < end) {
2938
+ const tag = reader.uint32();
2939
+ switch (tag >>> 3) {
2940
+ case 1:
2941
+ if (tag !== 10) {
2942
+ break;
2943
+ }
2944
+
2945
+ message.id = reader.string();
2946
+ continue;
2947
+ case 2:
2948
+ if (tag !== 18) {
2949
+ break;
2950
+ }
2951
+
2952
+ message.title = reader.string();
2953
+ continue;
2954
+ case 3:
2955
+ if (tag !== 26) {
2956
+ break;
2957
+ }
2958
+
2959
+ message.content = reader.string();
2960
+ continue;
2961
+ case 4:
2962
+ if (tag !== 34) {
2963
+ break;
2964
+ }
2965
+
2966
+ message.creator_id = reader.string();
2967
+ continue;
2968
+ case 5:
2969
+ if (tag !== 42) {
2970
+ break;
2971
+ }
2972
+
2973
+ message.editor_id = reader.string();
2974
+ continue;
2975
+ case 6:
2976
+ if (tag !== 48) {
2977
+ break;
2978
+ }
2979
+
2980
+ message.is_default = reader.bool();
2981
+ continue;
2982
+ case 7:
2983
+ if (tag !== 58) {
2984
+ break;
2985
+ }
2986
+
2987
+ message.channel_id = reader.string();
2988
+ continue;
2989
+ case 8:
2990
+ if (tag !== 64) {
2991
+ break;
2992
+ }
2993
+
2994
+ message.status = reader.int32();
2995
+ continue;
2996
+ }
2997
+ if ((tag & 7) === 4 || tag === 0) {
2998
+ break;
2999
+ }
3000
+ reader.skipType(tag & 7);
3001
+ }
3002
+ return message;
3003
+ },
3004
+
3005
+ fromJSON(object: any): ChannelCanvas {
3006
+ return {
3007
+ id: isSet(object.id) ? globalThis.String(object.id) : "",
3008
+ title: isSet(object.title) ? globalThis.String(object.title) : "",
3009
+ content: isSet(object.content) ? globalThis.String(object.content) : "",
3010
+ creator_id: isSet(object.creator_id) ? globalThis.String(object.creator_id) : "",
3011
+ editor_id: isSet(object.editor_id) ? globalThis.String(object.editor_id) : "",
3012
+ is_default: isSet(object.is_default) ? globalThis.Boolean(object.is_default) : false,
3013
+ channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
3014
+ status: isSet(object.status) ? globalThis.Number(object.status) : 0,
3015
+ };
3016
+ },
3017
+
3018
+ toJSON(message: ChannelCanvas): unknown {
3019
+ const obj: any = {};
3020
+ if (message.id !== "") {
3021
+ obj.id = message.id;
3022
+ }
3023
+ if (message.title !== "") {
3024
+ obj.title = message.title;
3025
+ }
3026
+ if (message.content !== "") {
3027
+ obj.content = message.content;
3028
+ }
3029
+ if (message.creator_id !== "") {
3030
+ obj.creator_id = message.creator_id;
3031
+ }
3032
+ if (message.editor_id !== "") {
3033
+ obj.editor_id = message.editor_id;
3034
+ }
3035
+ if (message.is_default !== false) {
3036
+ obj.is_default = message.is_default;
3037
+ }
3038
+ if (message.channel_id !== "") {
3039
+ obj.channel_id = message.channel_id;
3040
+ }
3041
+ if (message.status !== 0) {
3042
+ obj.status = Math.round(message.status);
3043
+ }
3044
+ return obj;
3045
+ },
3046
+
3047
+ create<I extends Exact<DeepPartial<ChannelCanvas>, I>>(base?: I): ChannelCanvas {
3048
+ return ChannelCanvas.fromPartial(base ?? ({} as any));
3049
+ },
3050
+ fromPartial<I extends Exact<DeepPartial<ChannelCanvas>, I>>(object: I): ChannelCanvas {
3051
+ const message = createBaseChannelCanvas();
3052
+ message.id = object.id ?? "";
3053
+ message.title = object.title ?? "";
3054
+ message.content = object.content ?? "";
3055
+ message.creator_id = object.creator_id ?? "";
3056
+ message.editor_id = object.editor_id ?? "";
3057
+ message.is_default = object.is_default ?? false;
3058
+ message.channel_id = object.channel_id ?? "";
3059
+ message.status = object.status ?? 0;
3060
+ return message;
3061
+ },
3062
+ };
3063
+
2848
3064
  function createBaseIncomingCallPush(): IncomingCallPush {
2849
3065
  return { receiver_id: "", json_data: "", channel_id: "", caller_id: "" };
2850
3066
  }
@@ -7258,6 +7474,7 @@ function createBaseChannelCreatedEvent(): ChannelCreatedEvent {
7258
7474
  channel_type: undefined,
7259
7475
  status: 0,
7260
7476
  app_url: "",
7477
+ clan_name: "",
7261
7478
  };
7262
7479
  }
7263
7480
 
@@ -7293,6 +7510,9 @@ export const ChannelCreatedEvent = {
7293
7510
  if (message.app_url !== "") {
7294
7511
  writer.uint32(82).string(message.app_url);
7295
7512
  }
7513
+ if (message.clan_name !== "") {
7514
+ writer.uint32(90).string(message.clan_name);
7515
+ }
7296
7516
  return writer;
7297
7517
  },
7298
7518
 
@@ -7373,6 +7593,13 @@ export const ChannelCreatedEvent = {
7373
7593
 
7374
7594
  message.app_url = reader.string();
7375
7595
  continue;
7596
+ case 11:
7597
+ if (tag !== 90) {
7598
+ break;
7599
+ }
7600
+
7601
+ message.clan_name = reader.string();
7602
+ continue;
7376
7603
  }
7377
7604
  if ((tag & 7) === 4 || tag === 0) {
7378
7605
  break;
@@ -7394,6 +7621,7 @@ export const ChannelCreatedEvent = {
7394
7621
  channel_type: isSet(object.channel_type) ? Number(object.channel_type) : undefined,
7395
7622
  status: isSet(object.status) ? globalThis.Number(object.status) : 0,
7396
7623
  app_url: isSet(object.app_url) ? globalThis.String(object.app_url) : "",
7624
+ clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
7397
7625
  };
7398
7626
  },
7399
7627
 
@@ -7429,6 +7657,9 @@ export const ChannelCreatedEvent = {
7429
7657
  if (message.app_url !== "") {
7430
7658
  obj.app_url = message.app_url;
7431
7659
  }
7660
+ if (message.clan_name !== "") {
7661
+ obj.clan_name = message.clan_name;
7662
+ }
7432
7663
  return obj;
7433
7664
  },
7434
7665
 
@@ -7447,6 +7678,7 @@ export const ChannelCreatedEvent = {
7447
7678
  message.channel_type = object.channel_type ?? undefined;
7448
7679
  message.status = object.status ?? 0;
7449
7680
  message.app_url = object.app_url ?? "";
7681
+ message.clan_name = object.clan_name ?? "";
7450
7682
  return message;
7451
7683
  },
7452
7684
  };