mezon-js-protobuf 1.6.64 → 1.6.66

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
@@ -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 v4.25.2
3
+ // protoc-gen-ts_proto v1.181.1
4
+ // protoc v5.27.2
5
5
  // source: api/api.proto
6
6
 
7
7
  /* eslint-disable */
@@ -3801,6 +3801,7 @@ export interface SdTopic {
3801
3801
  status: number;
3802
3802
  create_time: Date | undefined;
3803
3803
  update_time: Date | undefined;
3804
+ message: ChannelMessage | undefined;
3804
3805
  }
3805
3806
 
3806
3807
  export interface SdTopicRequest {
@@ -3819,6 +3820,10 @@ export interface ListSdTopicRequest {
3819
3820
  limit: number;
3820
3821
  }
3821
3822
 
3823
+ export interface SdTopicDetailRequest {
3824
+ topic_id: string;
3825
+ }
3826
+
3822
3827
  export interface DeleteSdTopicRequest {
3823
3828
  channel_id: string;
3824
3829
  id: string;
@@ -36750,6 +36755,7 @@ function createBaseSdTopic(): SdTopic {
36750
36755
  status: 0,
36751
36756
  create_time: undefined,
36752
36757
  update_time: undefined,
36758
+ message: undefined,
36753
36759
  };
36754
36760
  }
36755
36761
 
@@ -36779,6 +36785,9 @@ export const SdTopic = {
36779
36785
  if (message.update_time !== undefined) {
36780
36786
  Timestamp.encode(toTimestamp(message.update_time), writer.uint32(66).fork()).ldelim();
36781
36787
  }
36788
+ if (message.message !== undefined) {
36789
+ ChannelMessage.encode(message.message, writer.uint32(74).fork()).ldelim();
36790
+ }
36782
36791
  return writer;
36783
36792
  },
36784
36793
 
@@ -36845,6 +36854,13 @@ export const SdTopic = {
36845
36854
 
36846
36855
  message.update_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
36847
36856
  continue;
36857
+ case 9:
36858
+ if (tag !== 74) {
36859
+ break;
36860
+ }
36861
+
36862
+ message.message = ChannelMessage.decode(reader, reader.uint32());
36863
+ continue;
36848
36864
  }
36849
36865
  if ((tag & 7) === 4 || tag === 0) {
36850
36866
  break;
@@ -36864,6 +36880,7 @@ export const SdTopic = {
36864
36880
  status: isSet(object.status) ? globalThis.Number(object.status) : 0,
36865
36881
  create_time: isSet(object.create_time) ? fromJsonTimestamp(object.create_time) : undefined,
36866
36882
  update_time: isSet(object.update_time) ? fromJsonTimestamp(object.update_time) : undefined,
36883
+ message: isSet(object.message) ? ChannelMessage.fromJSON(object.message) : undefined,
36867
36884
  };
36868
36885
  },
36869
36886
 
@@ -36893,6 +36910,9 @@ export const SdTopic = {
36893
36910
  if (message.update_time !== undefined) {
36894
36911
  obj.update_time = message.update_time.toISOString();
36895
36912
  }
36913
+ if (message.message !== undefined) {
36914
+ obj.message = ChannelMessage.toJSON(message.message);
36915
+ }
36896
36916
  return obj;
36897
36917
  },
36898
36918
 
@@ -36909,6 +36929,9 @@ export const SdTopic = {
36909
36929
  message.status = object.status ?? 0;
36910
36930
  message.create_time = object.create_time ?? undefined;
36911
36931
  message.update_time = object.update_time ?? undefined;
36932
+ message.message = (object.message !== undefined && object.message !== null)
36933
+ ? ChannelMessage.fromPartial(object.message)
36934
+ : undefined;
36912
36935
  return message;
36913
36936
  },
36914
36937
  };
@@ -37150,6 +37173,63 @@ export const ListSdTopicRequest = {
37150
37173
  },
37151
37174
  };
37152
37175
 
37176
+ function createBaseSdTopicDetailRequest(): SdTopicDetailRequest {
37177
+ return { topic_id: "" };
37178
+ }
37179
+
37180
+ export const SdTopicDetailRequest = {
37181
+ encode(message: SdTopicDetailRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
37182
+ if (message.topic_id !== "") {
37183
+ writer.uint32(10).string(message.topic_id);
37184
+ }
37185
+ return writer;
37186
+ },
37187
+
37188
+ decode(input: _m0.Reader | Uint8Array, length?: number): SdTopicDetailRequest {
37189
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
37190
+ let end = length === undefined ? reader.len : reader.pos + length;
37191
+ const message = createBaseSdTopicDetailRequest();
37192
+ while (reader.pos < end) {
37193
+ const tag = reader.uint32();
37194
+ switch (tag >>> 3) {
37195
+ case 1:
37196
+ if (tag !== 10) {
37197
+ break;
37198
+ }
37199
+
37200
+ message.topic_id = reader.string();
37201
+ continue;
37202
+ }
37203
+ if ((tag & 7) === 4 || tag === 0) {
37204
+ break;
37205
+ }
37206
+ reader.skipType(tag & 7);
37207
+ }
37208
+ return message;
37209
+ },
37210
+
37211
+ fromJSON(object: any): SdTopicDetailRequest {
37212
+ return { topic_id: isSet(object.topic_id) ? globalThis.String(object.topic_id) : "" };
37213
+ },
37214
+
37215
+ toJSON(message: SdTopicDetailRequest): unknown {
37216
+ const obj: any = {};
37217
+ if (message.topic_id !== "") {
37218
+ obj.topic_id = message.topic_id;
37219
+ }
37220
+ return obj;
37221
+ },
37222
+
37223
+ create<I extends Exact<DeepPartial<SdTopicDetailRequest>, I>>(base?: I): SdTopicDetailRequest {
37224
+ return SdTopicDetailRequest.fromPartial(base ?? ({} as any));
37225
+ },
37226
+ fromPartial<I extends Exact<DeepPartial<SdTopicDetailRequest>, I>>(object: I): SdTopicDetailRequest {
37227
+ const message = createBaseSdTopicDetailRequest();
37228
+ message.topic_id = object.topic_id ?? "";
37229
+ return message;
37230
+ },
37231
+ };
37232
+
37153
37233
  function createBaseDeleteSdTopicRequest(): DeleteSdTopicRequest {
37154
37234
  return { channel_id: "", id: "", clan_id: "" };
37155
37235
  }