mezon-js-protobuf 1.7.14 → 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;
@@ -1409,6 +1432,7 @@ function createBaseEnvelope(): Envelope {
1409
1432
  webhook_event: undefined,
1410
1433
  noti_user_channel: undefined,
1411
1434
  join_channel_app_data: undefined,
1435
+ canvas_event: undefined,
1412
1436
  };
1413
1437
  }
1414
1438
 
@@ -1633,6 +1657,9 @@ export const Envelope = {
1633
1657
  if (message.join_channel_app_data !== undefined) {
1634
1658
  JoinChannelAppData.encode(message.join_channel_app_data, writer.uint32(586).fork()).ldelim();
1635
1659
  }
1660
+ if (message.canvas_event !== undefined) {
1661
+ ChannelCanvas.encode(message.canvas_event, writer.uint32(594).fork()).ldelim();
1662
+ }
1636
1663
  return writer;
1637
1664
  },
1638
1665
 
@@ -2154,6 +2181,13 @@ export const Envelope = {
2154
2181
 
2155
2182
  message.join_channel_app_data = JoinChannelAppData.decode(reader, reader.uint32());
2156
2183
  continue;
2184
+ case 74:
2185
+ if (tag !== 594) {
2186
+ break;
2187
+ }
2188
+
2189
+ message.canvas_event = ChannelCanvas.decode(reader, reader.uint32());
2190
+ continue;
2157
2191
  }
2158
2192
  if ((tag & 7) === 4 || tag === 0) {
2159
2193
  break;
@@ -2334,6 +2368,7 @@ export const Envelope = {
2334
2368
  join_channel_app_data: isSet(object.join_channel_app_data)
2335
2369
  ? JoinChannelAppData.fromJSON(object.join_channel_app_data)
2336
2370
  : undefined,
2371
+ canvas_event: isSet(object.canvas_event) ? ChannelCanvas.fromJSON(object.canvas_event) : undefined,
2337
2372
  };
2338
2373
  },
2339
2374
 
@@ -2558,6 +2593,9 @@ export const Envelope = {
2558
2593
  if (message.join_channel_app_data !== undefined) {
2559
2594
  obj.join_channel_app_data = JoinChannelAppData.toJSON(message.join_channel_app_data);
2560
2595
  }
2596
+ if (message.canvas_event !== undefined) {
2597
+ obj.canvas_event = ChannelCanvas.toJSON(message.canvas_event);
2598
+ }
2561
2599
  return obj;
2562
2600
  },
2563
2601
 
@@ -2800,6 +2838,9 @@ export const Envelope = {
2800
2838
  (object.join_channel_app_data !== undefined && object.join_channel_app_data !== null)
2801
2839
  ? JoinChannelAppData.fromPartial(object.join_channel_app_data)
2802
2840
  : undefined;
2841
+ message.canvas_event = (object.canvas_event !== undefined && object.canvas_event !== null)
2842
+ ? ChannelCanvas.fromPartial(object.canvas_event)
2843
+ : undefined;
2803
2844
  return message;
2804
2845
  },
2805
2846
  };
@@ -2847,6 +2888,179 @@ export const FollowEvent = {
2847
2888
  },
2848
2889
  };
2849
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
+
2850
3064
  function createBaseIncomingCallPush(): IncomingCallPush {
2851
3065
  return { receiver_id: "", json_data: "", channel_id: "", caller_id: "" };
2852
3066
  }