mezon-js-protobuf 1.5.84 → 1.5.87

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.1
4
- // protoc v5.27.2
3
+ // protoc-gen-ts_proto v1.181.2
4
+ // protoc v5.28.2
5
5
  // source: api/api.proto
6
6
 
7
7
  /* eslint-disable */
@@ -3074,32 +3074,63 @@ export interface PermissionRoleChannelListEventResponse {
3074
3074
  }
3075
3075
 
3076
3076
  export interface ChannelSettingListRequest {
3077
+ /** clan id */
3077
3078
  clan_id: string;
3079
+ /** parent id of thread */
3078
3080
  parent_id: string;
3081
+ /** category id */
3079
3082
  category_id: string;
3080
- private: number | undefined;
3081
- active: number | undefined;
3082
- status: number | undefined;
3083
- type: number | undefined;
3084
- limit: number | undefined;
3083
+ /** is private channel */
3084
+ privateChannel:
3085
+ | number
3086
+ | undefined;
3087
+ /** is active */
3088
+ active:
3089
+ | number
3090
+ | undefined;
3091
+ /** status */
3092
+ status:
3093
+ | number
3094
+ | undefined;
3095
+ /** type */
3096
+ type:
3097
+ | number
3098
+ | undefined;
3099
+ /** limit */
3100
+ limit:
3101
+ | number
3102
+ | undefined;
3103
+ /** page */
3085
3104
  page: number | undefined;
3086
3105
  }
3087
3106
 
3088
3107
  export interface ChannelSettingItem {
3108
+ /** channel id */
3089
3109
  id: string;
3090
- creatorId: string;
3091
- parentId: string;
3092
- channelLabel: string;
3093
- categoryId: string;
3094
- meetingCode: string;
3095
- channelPrivate: number;
3096
- channelType: number;
3110
+ /** creator id */
3111
+ creator_id: string;
3112
+ /** parentId */
3113
+ parent_id: string;
3114
+ /** label of channel */
3115
+ channel_label: string;
3116
+ /** category id */
3117
+ category_id: string;
3118
+ /** meeting code */
3119
+ meeting_code: string;
3120
+ /** channel private */
3121
+ channel_private: number;
3122
+ /** channel type */
3123
+ channel_type: number;
3124
+ /** is active */
3097
3125
  active: number;
3126
+ /** list user in channel */
3098
3127
  user_ids: string[];
3099
3128
  }
3100
3129
 
3101
3130
  export interface ChannelSettingListResponse {
3131
+ /** clan id */
3102
3132
  clan_id: string;
3133
+ /** channel setting list */
3103
3134
  channel_setting_list: ChannelSettingItem[];
3104
3135
  }
3105
3136
 
@@ -29015,7 +29046,7 @@ function createBaseChannelSettingListRequest(): ChannelSettingListRequest {
29015
29046
  clan_id: "",
29016
29047
  parent_id: "",
29017
29048
  category_id: "",
29018
- private: undefined,
29049
+ privateChannel: undefined,
29019
29050
  active: undefined,
29020
29051
  status: undefined,
29021
29052
  type: undefined,
@@ -29035,8 +29066,8 @@ export const ChannelSettingListRequest = {
29035
29066
  if (message.category_id !== "") {
29036
29067
  writer.uint32(26).string(message.category_id);
29037
29068
  }
29038
- if (message.private !== undefined) {
29039
- Int32Value.encode({ value: message.private! }, writer.uint32(34).fork()).ldelim();
29069
+ if (message.privateChannel !== undefined) {
29070
+ Int32Value.encode({ value: message.privateChannel! }, writer.uint32(34).fork()).ldelim();
29040
29071
  }
29041
29072
  if (message.active !== undefined) {
29042
29073
  Int32Value.encode({ value: message.active! }, writer.uint32(42).fork()).ldelim();
@@ -29089,7 +29120,7 @@ export const ChannelSettingListRequest = {
29089
29120
  break;
29090
29121
  }
29091
29122
 
29092
- message.private = Int32Value.decode(reader, reader.uint32()).value;
29123
+ message.privateChannel = Int32Value.decode(reader, reader.uint32()).value;
29093
29124
  continue;
29094
29125
  case 5:
29095
29126
  if (tag !== 42) {
@@ -29140,7 +29171,7 @@ export const ChannelSettingListRequest = {
29140
29171
  clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
29141
29172
  parent_id: isSet(object.parent_id) ? globalThis.String(object.parent_id) : "",
29142
29173
  category_id: isSet(object.category_id) ? globalThis.String(object.category_id) : "",
29143
- private: isSet(object.private) ? Number(object.private) : undefined,
29174
+ privateChannel: isSet(object.privateChannel) ? Number(object.privateChannel) : undefined,
29144
29175
  active: isSet(object.active) ? Number(object.active) : undefined,
29145
29176
  status: isSet(object.status) ? Number(object.status) : undefined,
29146
29177
  type: isSet(object.type) ? Number(object.type) : undefined,
@@ -29160,8 +29191,8 @@ export const ChannelSettingListRequest = {
29160
29191
  if (message.category_id !== "") {
29161
29192
  obj.category_id = message.category_id;
29162
29193
  }
29163
- if (message.private !== undefined) {
29164
- obj.private = message.private;
29194
+ if (message.privateChannel !== undefined) {
29195
+ obj.privateChannel = message.privateChannel;
29165
29196
  }
29166
29197
  if (message.active !== undefined) {
29167
29198
  obj.active = message.active;
@@ -29189,7 +29220,7 @@ export const ChannelSettingListRequest = {
29189
29220
  message.clan_id = object.clan_id ?? "";
29190
29221
  message.parent_id = object.parent_id ?? "";
29191
29222
  message.category_id = object.category_id ?? "";
29192
- message.private = object.private ?? undefined;
29223
+ message.privateChannel = object.privateChannel ?? undefined;
29193
29224
  message.active = object.active ?? undefined;
29194
29225
  message.status = object.status ?? undefined;
29195
29226
  message.type = object.type ?? undefined;
@@ -29202,13 +29233,13 @@ export const ChannelSettingListRequest = {
29202
29233
  function createBaseChannelSettingItem(): ChannelSettingItem {
29203
29234
  return {
29204
29235
  id: "",
29205
- creatorId: "",
29206
- parentId: "",
29207
- channelLabel: "",
29208
- categoryId: "",
29209
- meetingCode: "",
29210
- channelPrivate: 0,
29211
- channelType: 0,
29236
+ creator_id: "",
29237
+ parent_id: "",
29238
+ channel_label: "",
29239
+ category_id: "",
29240
+ meeting_code: "",
29241
+ channel_private: 0,
29242
+ channel_type: 0,
29212
29243
  active: 0,
29213
29244
  user_ids: [],
29214
29245
  };
@@ -29219,26 +29250,26 @@ export const ChannelSettingItem = {
29219
29250
  if (message.id !== "") {
29220
29251
  writer.uint32(10).string(message.id);
29221
29252
  }
29222
- if (message.creatorId !== "") {
29223
- writer.uint32(18).string(message.creatorId);
29253
+ if (message.creator_id !== "") {
29254
+ writer.uint32(18).string(message.creator_id);
29224
29255
  }
29225
- if (message.parentId !== "") {
29226
- writer.uint32(26).string(message.parentId);
29256
+ if (message.parent_id !== "") {
29257
+ writer.uint32(26).string(message.parent_id);
29227
29258
  }
29228
- if (message.channelLabel !== "") {
29229
- writer.uint32(34).string(message.channelLabel);
29259
+ if (message.channel_label !== "") {
29260
+ writer.uint32(34).string(message.channel_label);
29230
29261
  }
29231
- if (message.categoryId !== "") {
29232
- writer.uint32(42).string(message.categoryId);
29262
+ if (message.category_id !== "") {
29263
+ writer.uint32(42).string(message.category_id);
29233
29264
  }
29234
- if (message.meetingCode !== "") {
29235
- writer.uint32(50).string(message.meetingCode);
29265
+ if (message.meeting_code !== "") {
29266
+ writer.uint32(50).string(message.meeting_code);
29236
29267
  }
29237
- if (message.channelPrivate !== 0) {
29238
- writer.uint32(56).int32(message.channelPrivate);
29268
+ if (message.channel_private !== 0) {
29269
+ writer.uint32(56).int32(message.channel_private);
29239
29270
  }
29240
- if (message.channelType !== 0) {
29241
- writer.uint32(64).int32(message.channelType);
29271
+ if (message.channel_type !== 0) {
29272
+ writer.uint32(64).int32(message.channel_type);
29242
29273
  }
29243
29274
  if (message.active !== 0) {
29244
29275
  writer.uint32(72).int32(message.active);
@@ -29268,49 +29299,49 @@ export const ChannelSettingItem = {
29268
29299
  break;
29269
29300
  }
29270
29301
 
29271
- message.creatorId = reader.string();
29302
+ message.creator_id = reader.string();
29272
29303
  continue;
29273
29304
  case 3:
29274
29305
  if (tag !== 26) {
29275
29306
  break;
29276
29307
  }
29277
29308
 
29278
- message.parentId = reader.string();
29309
+ message.parent_id = reader.string();
29279
29310
  continue;
29280
29311
  case 4:
29281
29312
  if (tag !== 34) {
29282
29313
  break;
29283
29314
  }
29284
29315
 
29285
- message.channelLabel = reader.string();
29316
+ message.channel_label = reader.string();
29286
29317
  continue;
29287
29318
  case 5:
29288
29319
  if (tag !== 42) {
29289
29320
  break;
29290
29321
  }
29291
29322
 
29292
- message.categoryId = reader.string();
29323
+ message.category_id = reader.string();
29293
29324
  continue;
29294
29325
  case 6:
29295
29326
  if (tag !== 50) {
29296
29327
  break;
29297
29328
  }
29298
29329
 
29299
- message.meetingCode = reader.string();
29330
+ message.meeting_code = reader.string();
29300
29331
  continue;
29301
29332
  case 7:
29302
29333
  if (tag !== 56) {
29303
29334
  break;
29304
29335
  }
29305
29336
 
29306
- message.channelPrivate = reader.int32();
29337
+ message.channel_private = reader.int32();
29307
29338
  continue;
29308
29339
  case 8:
29309
29340
  if (tag !== 64) {
29310
29341
  break;
29311
29342
  }
29312
29343
 
29313
- message.channelType = reader.int32();
29344
+ message.channel_type = reader.int32();
29314
29345
  continue;
29315
29346
  case 9:
29316
29347
  if (tag !== 72) {
@@ -29338,13 +29369,13 @@ export const ChannelSettingItem = {
29338
29369
  fromJSON(object: any): ChannelSettingItem {
29339
29370
  return {
29340
29371
  id: isSet(object.id) ? globalThis.String(object.id) : "",
29341
- creatorId: isSet(object.creatorId) ? globalThis.String(object.creatorId) : "",
29342
- parentId: isSet(object.parentId) ? globalThis.String(object.parentId) : "",
29343
- channelLabel: isSet(object.channelLabel) ? globalThis.String(object.channelLabel) : "",
29344
- categoryId: isSet(object.categoryId) ? globalThis.String(object.categoryId) : "",
29345
- meetingCode: isSet(object.meetingCode) ? globalThis.String(object.meetingCode) : "",
29346
- channelPrivate: isSet(object.channelPrivate) ? globalThis.Number(object.channelPrivate) : 0,
29347
- channelType: isSet(object.channelType) ? globalThis.Number(object.channelType) : 0,
29372
+ creator_id: isSet(object.creator_id) ? globalThis.String(object.creator_id) : "",
29373
+ parent_id: isSet(object.parent_id) ? globalThis.String(object.parent_id) : "",
29374
+ channel_label: isSet(object.channel_label) ? globalThis.String(object.channel_label) : "",
29375
+ category_id: isSet(object.category_id) ? globalThis.String(object.category_id) : "",
29376
+ meeting_code: isSet(object.meeting_code) ? globalThis.String(object.meeting_code) : "",
29377
+ channel_private: isSet(object.channel_private) ? globalThis.Number(object.channel_private) : 0,
29378
+ channel_type: isSet(object.channel_type) ? globalThis.Number(object.channel_type) : 0,
29348
29379
  active: isSet(object.active) ? globalThis.Number(object.active) : 0,
29349
29380
  user_ids: globalThis.Array.isArray(object?.user_ids) ? object.user_ids.map((e: any) => globalThis.String(e)) : [],
29350
29381
  };
@@ -29355,26 +29386,26 @@ export const ChannelSettingItem = {
29355
29386
  if (message.id !== "") {
29356
29387
  obj.id = message.id;
29357
29388
  }
29358
- if (message.creatorId !== "") {
29359
- obj.creatorId = message.creatorId;
29389
+ if (message.creator_id !== "") {
29390
+ obj.creator_id = message.creator_id;
29360
29391
  }
29361
- if (message.parentId !== "") {
29362
- obj.parentId = message.parentId;
29392
+ if (message.parent_id !== "") {
29393
+ obj.parent_id = message.parent_id;
29363
29394
  }
29364
- if (message.channelLabel !== "") {
29365
- obj.channelLabel = message.channelLabel;
29395
+ if (message.channel_label !== "") {
29396
+ obj.channel_label = message.channel_label;
29366
29397
  }
29367
- if (message.categoryId !== "") {
29368
- obj.categoryId = message.categoryId;
29398
+ if (message.category_id !== "") {
29399
+ obj.category_id = message.category_id;
29369
29400
  }
29370
- if (message.meetingCode !== "") {
29371
- obj.meetingCode = message.meetingCode;
29401
+ if (message.meeting_code !== "") {
29402
+ obj.meeting_code = message.meeting_code;
29372
29403
  }
29373
- if (message.channelPrivate !== 0) {
29374
- obj.channelPrivate = Math.round(message.channelPrivate);
29404
+ if (message.channel_private !== 0) {
29405
+ obj.channel_private = Math.round(message.channel_private);
29375
29406
  }
29376
- if (message.channelType !== 0) {
29377
- obj.channelType = Math.round(message.channelType);
29407
+ if (message.channel_type !== 0) {
29408
+ obj.channel_type = Math.round(message.channel_type);
29378
29409
  }
29379
29410
  if (message.active !== 0) {
29380
29411
  obj.active = Math.round(message.active);
@@ -29391,13 +29422,13 @@ export const ChannelSettingItem = {
29391
29422
  fromPartial<I extends Exact<DeepPartial<ChannelSettingItem>, I>>(object: I): ChannelSettingItem {
29392
29423
  const message = createBaseChannelSettingItem();
29393
29424
  message.id = object.id ?? "";
29394
- message.creatorId = object.creatorId ?? "";
29395
- message.parentId = object.parentId ?? "";
29396
- message.channelLabel = object.channelLabel ?? "";
29397
- message.categoryId = object.categoryId ?? "";
29398
- message.meetingCode = object.meetingCode ?? "";
29399
- message.channelPrivate = object.channelPrivate ?? 0;
29400
- message.channelType = object.channelType ?? 0;
29425
+ message.creator_id = object.creator_id ?? "";
29426
+ message.parent_id = object.parent_id ?? "";
29427
+ message.channel_label = object.channel_label ?? "";
29428
+ message.category_id = object.category_id ?? "";
29429
+ message.meeting_code = object.meeting_code ?? "";
29430
+ message.channel_private = object.channel_private ?? 0;
29431
+ message.channel_type = object.channel_type ?? 0;
29401
29432
  message.active = object.active ?? 0;
29402
29433
  message.user_ids = object.user_ids?.map((e) => e) || [];
29403
29434
  return message;