mezon-js-protobuf 1.5.38 → 1.5.40

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
@@ -1209,8 +1209,12 @@ export interface ListChannelAttachmentRequest {
1209
1209
  state:
1210
1210
  | number
1211
1211
  | undefined;
1212
- /** An optional next page cursor. */
1213
- cursor: string;
1212
+ /** An optional previous id for page. */
1213
+ before: string;
1214
+ /** An optional next id for page. */
1215
+ after: string;
1216
+ /** An optional around id for page. */
1217
+ around: string;
1214
1218
  }
1215
1219
 
1216
1220
  /** List all users that are part of a clan. */
@@ -1377,6 +1381,7 @@ export interface UpdateCategoryDescRequest {
1377
1381
  /** The ID of the group to update. */
1378
1382
  category_id: string;
1379
1383
  category_name: string;
1384
+ clan_id: string;
1380
1385
  }
1381
1386
 
1382
1387
  /** A user in the server. */
@@ -1708,7 +1713,8 @@ export interface CreateCategoryDescRequest {
1708
1713
  }
1709
1714
 
1710
1715
  export interface DeleteCategoryDescRequest {
1711
- creator_id: string;
1716
+ category_id: string;
1717
+ clan_id: string;
1712
1718
  }
1713
1719
 
1714
1720
  /** A list of clan */
@@ -2209,6 +2215,8 @@ export interface CreateEventRequest {
2209
2215
  address: string;
2210
2216
  start_time: Date | undefined;
2211
2217
  end_time: Date | undefined;
2218
+ event_id: string;
2219
+ event_status: string;
2212
2220
  }
2213
2221
 
2214
2222
  /** update a event within clan. */
@@ -9070,7 +9078,16 @@ export const ListChannelUsersRequest = {
9070
9078
  };
9071
9079
 
9072
9080
  function createBaseListChannelAttachmentRequest(): ListChannelAttachmentRequest {
9073
- return { clan_id: "", channel_id: "", file_type: "", limit: undefined, state: undefined, cursor: "" };
9081
+ return {
9082
+ clan_id: "",
9083
+ channel_id: "",
9084
+ file_type: "",
9085
+ limit: undefined,
9086
+ state: undefined,
9087
+ before: "",
9088
+ after: "",
9089
+ around: "",
9090
+ };
9074
9091
  }
9075
9092
 
9076
9093
  export const ListChannelAttachmentRequest = {
@@ -9090,8 +9107,14 @@ export const ListChannelAttachmentRequest = {
9090
9107
  if (message.state !== undefined) {
9091
9108
  Int32Value.encode({ value: message.state! }, writer.uint32(42).fork()).ldelim();
9092
9109
  }
9093
- if (message.cursor !== "") {
9094
- writer.uint32(50).string(message.cursor);
9110
+ if (message.before !== "") {
9111
+ writer.uint32(50).string(message.before);
9112
+ }
9113
+ if (message.after !== "") {
9114
+ writer.uint32(58).string(message.after);
9115
+ }
9116
+ if (message.around !== "") {
9117
+ writer.uint32(66).string(message.around);
9095
9118
  }
9096
9119
  return writer;
9097
9120
  },
@@ -9119,7 +9142,13 @@ export const ListChannelAttachmentRequest = {
9119
9142
  message.state = Int32Value.decode(reader, reader.uint32()).value;
9120
9143
  break;
9121
9144
  case 6:
9122
- message.cursor = reader.string();
9145
+ message.before = reader.string();
9146
+ break;
9147
+ case 7:
9148
+ message.after = reader.string();
9149
+ break;
9150
+ case 8:
9151
+ message.around = reader.string();
9123
9152
  break;
9124
9153
  default:
9125
9154
  reader.skipType(tag & 7);
@@ -9136,7 +9165,9 @@ export const ListChannelAttachmentRequest = {
9136
9165
  file_type: isSet(object.file_type) ? String(object.file_type) : "",
9137
9166
  limit: isSet(object.limit) ? Number(object.limit) : undefined,
9138
9167
  state: isSet(object.state) ? Number(object.state) : undefined,
9139
- cursor: isSet(object.cursor) ? String(object.cursor) : "",
9168
+ before: isSet(object.before) ? String(object.before) : "",
9169
+ after: isSet(object.after) ? String(object.after) : "",
9170
+ around: isSet(object.around) ? String(object.around) : "",
9140
9171
  };
9141
9172
  },
9142
9173
 
@@ -9147,7 +9178,9 @@ export const ListChannelAttachmentRequest = {
9147
9178
  message.file_type !== undefined && (obj.file_type = message.file_type);
9148
9179
  message.limit !== undefined && (obj.limit = message.limit);
9149
9180
  message.state !== undefined && (obj.state = message.state);
9150
- message.cursor !== undefined && (obj.cursor = message.cursor);
9181
+ message.before !== undefined && (obj.before = message.before);
9182
+ message.after !== undefined && (obj.after = message.after);
9183
+ message.around !== undefined && (obj.around = message.around);
9151
9184
  return obj;
9152
9185
  },
9153
9186
 
@@ -9162,7 +9195,9 @@ export const ListChannelAttachmentRequest = {
9162
9195
  message.file_type = object.file_type ?? "";
9163
9196
  message.limit = object.limit ?? undefined;
9164
9197
  message.state = object.state ?? undefined;
9165
- message.cursor = object.cursor ?? "";
9198
+ message.before = object.before ?? "";
9199
+ message.after = object.after ?? "";
9200
+ message.around = object.around ?? "";
9166
9201
  return message;
9167
9202
  },
9168
9203
  };
@@ -10087,7 +10122,7 @@ export const UpdateGroupRequest = {
10087
10122
  };
10088
10123
 
10089
10124
  function createBaseUpdateCategoryDescRequest(): UpdateCategoryDescRequest {
10090
- return { category_id: "", category_name: "" };
10125
+ return { category_id: "", category_name: "", clan_id: "" };
10091
10126
  }
10092
10127
 
10093
10128
  export const UpdateCategoryDescRequest = {
@@ -10098,6 +10133,9 @@ export const UpdateCategoryDescRequest = {
10098
10133
  if (message.category_name !== "") {
10099
10134
  writer.uint32(18).string(message.category_name);
10100
10135
  }
10136
+ if (message.clan_id !== "") {
10137
+ writer.uint32(26).string(message.clan_id);
10138
+ }
10101
10139
  return writer;
10102
10140
  },
10103
10141
 
@@ -10114,6 +10152,9 @@ export const UpdateCategoryDescRequest = {
10114
10152
  case 2:
10115
10153
  message.category_name = reader.string();
10116
10154
  break;
10155
+ case 3:
10156
+ message.clan_id = reader.string();
10157
+ break;
10117
10158
  default:
10118
10159
  reader.skipType(tag & 7);
10119
10160
  break;
@@ -10126,6 +10167,7 @@ export const UpdateCategoryDescRequest = {
10126
10167
  return {
10127
10168
  category_id: isSet(object.category_id) ? String(object.category_id) : "",
10128
10169
  category_name: isSet(object.category_name) ? String(object.category_name) : "",
10170
+ clan_id: isSet(object.clan_id) ? String(object.clan_id) : "",
10129
10171
  };
10130
10172
  },
10131
10173
 
@@ -10133,6 +10175,7 @@ export const UpdateCategoryDescRequest = {
10133
10175
  const obj: any = {};
10134
10176
  message.category_id !== undefined && (obj.category_id = message.category_id);
10135
10177
  message.category_name !== undefined && (obj.category_name = message.category_name);
10178
+ message.clan_id !== undefined && (obj.clan_id = message.clan_id);
10136
10179
  return obj;
10137
10180
  },
10138
10181
 
@@ -10144,6 +10187,7 @@ export const UpdateCategoryDescRequest = {
10144
10187
  const message = createBaseUpdateCategoryDescRequest();
10145
10188
  message.category_id = object.category_id ?? "";
10146
10189
  message.category_name = object.category_name ?? "";
10190
+ message.clan_id = object.clan_id ?? "";
10147
10191
  return message;
10148
10192
  },
10149
10193
  };
@@ -12001,13 +12045,16 @@ export const CreateCategoryDescRequest = {
12001
12045
  };
12002
12046
 
12003
12047
  function createBaseDeleteCategoryDescRequest(): DeleteCategoryDescRequest {
12004
- return { creator_id: "" };
12048
+ return { category_id: "", clan_id: "" };
12005
12049
  }
12006
12050
 
12007
12051
  export const DeleteCategoryDescRequest = {
12008
12052
  encode(message: DeleteCategoryDescRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
12009
- if (message.creator_id !== "") {
12010
- writer.uint32(10).string(message.creator_id);
12053
+ if (message.category_id !== "") {
12054
+ writer.uint32(10).string(message.category_id);
12055
+ }
12056
+ if (message.clan_id !== "") {
12057
+ writer.uint32(18).string(message.clan_id);
12011
12058
  }
12012
12059
  return writer;
12013
12060
  },
@@ -12020,7 +12067,10 @@ export const DeleteCategoryDescRequest = {
12020
12067
  const tag = reader.uint32();
12021
12068
  switch (tag >>> 3) {
12022
12069
  case 1:
12023
- message.creator_id = reader.string();
12070
+ message.category_id = reader.string();
12071
+ break;
12072
+ case 2:
12073
+ message.clan_id = reader.string();
12024
12074
  break;
12025
12075
  default:
12026
12076
  reader.skipType(tag & 7);
@@ -12031,12 +12081,16 @@ export const DeleteCategoryDescRequest = {
12031
12081
  },
12032
12082
 
12033
12083
  fromJSON(object: any): DeleteCategoryDescRequest {
12034
- return { creator_id: isSet(object.creator_id) ? String(object.creator_id) : "" };
12084
+ return {
12085
+ category_id: isSet(object.category_id) ? String(object.category_id) : "",
12086
+ clan_id: isSet(object.clan_id) ? String(object.clan_id) : "",
12087
+ };
12035
12088
  },
12036
12089
 
12037
12090
  toJSON(message: DeleteCategoryDescRequest): unknown {
12038
12091
  const obj: any = {};
12039
- message.creator_id !== undefined && (obj.creator_id = message.creator_id);
12092
+ message.category_id !== undefined && (obj.category_id = message.category_id);
12093
+ message.clan_id !== undefined && (obj.clan_id = message.clan_id);
12040
12094
  return obj;
12041
12095
  },
12042
12096
 
@@ -12046,7 +12100,8 @@ export const DeleteCategoryDescRequest = {
12046
12100
 
12047
12101
  fromPartial<I extends Exact<DeepPartial<DeleteCategoryDescRequest>, I>>(object: I): DeleteCategoryDescRequest {
12048
12102
  const message = createBaseDeleteCategoryDescRequest();
12049
- message.creator_id = object.creator_id ?? "";
12103
+ message.category_id = object.category_id ?? "";
12104
+ message.clan_id = object.clan_id ?? "";
12050
12105
  return message;
12051
12106
  },
12052
12107
  };
@@ -15761,6 +15816,8 @@ function createBaseCreateEventRequest(): CreateEventRequest {
15761
15816
  address: "",
15762
15817
  start_time: undefined,
15763
15818
  end_time: undefined,
15819
+ event_id: "",
15820
+ event_status: "",
15764
15821
  };
15765
15822
  }
15766
15823
 
@@ -15790,6 +15847,12 @@ export const CreateEventRequest = {
15790
15847
  if (message.end_time !== undefined) {
15791
15848
  Timestamp.encode(toTimestamp(message.end_time), writer.uint32(66).fork()).ldelim();
15792
15849
  }
15850
+ if (message.event_id !== "") {
15851
+ writer.uint32(74).string(message.event_id);
15852
+ }
15853
+ if (message.event_status !== "") {
15854
+ writer.uint32(82).string(message.event_status);
15855
+ }
15793
15856
  return writer;
15794
15857
  },
15795
15858
 
@@ -15824,6 +15887,12 @@ export const CreateEventRequest = {
15824
15887
  case 8:
15825
15888
  message.end_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
15826
15889
  break;
15890
+ case 9:
15891
+ message.event_id = reader.string();
15892
+ break;
15893
+ case 10:
15894
+ message.event_status = reader.string();
15895
+ break;
15827
15896
  default:
15828
15897
  reader.skipType(tag & 7);
15829
15898
  break;
@@ -15842,6 +15911,8 @@ export const CreateEventRequest = {
15842
15911
  address: isSet(object.address) ? String(object.address) : "",
15843
15912
  start_time: isSet(object.start_time) ? fromJsonTimestamp(object.start_time) : undefined,
15844
15913
  end_time: isSet(object.end_time) ? fromJsonTimestamp(object.end_time) : undefined,
15914
+ event_id: isSet(object.event_id) ? String(object.event_id) : "",
15915
+ event_status: isSet(object.event_status) ? String(object.event_status) : "",
15845
15916
  };
15846
15917
  },
15847
15918
 
@@ -15855,6 +15926,8 @@ export const CreateEventRequest = {
15855
15926
  message.address !== undefined && (obj.address = message.address);
15856
15927
  message.start_time !== undefined && (obj.start_time = message.start_time.toISOString());
15857
15928
  message.end_time !== undefined && (obj.end_time = message.end_time.toISOString());
15929
+ message.event_id !== undefined && (obj.event_id = message.event_id);
15930
+ message.event_status !== undefined && (obj.event_status = message.event_status);
15858
15931
  return obj;
15859
15932
  },
15860
15933
 
@@ -15872,6 +15945,8 @@ export const CreateEventRequest = {
15872
15945
  message.address = object.address ?? "";
15873
15946
  message.start_time = object.start_time ?? undefined;
15874
15947
  message.end_time = object.end_time ?? undefined;
15948
+ message.event_id = object.event_id ?? "";
15949
+ message.event_status = object.event_status ?? "";
15875
15950
  return message;
15876
15951
  },
15877
15952
  };
@@ -870,8 +870,12 @@ export interface ListChannelAttachmentRequest {
870
870
  limit: number | undefined;
871
871
  /** The group user state to list. */
872
872
  state: number | undefined;
873
- /** An optional next page cursor. */
874
- cursor: string;
873
+ /** An optional previous id for page. */
874
+ before: string;
875
+ /** An optional next id for page. */
876
+ after: string;
877
+ /** An optional around id for page. */
878
+ around: string;
875
879
  }
876
880
  /** List all users that are part of a clan. */
877
881
  export interface ListClanUsersRequest {
@@ -998,6 +1002,7 @@ export interface UpdateCategoryDescRequest {
998
1002
  /** The ID of the group to update. */
999
1003
  category_id: string;
1000
1004
  category_name: string;
1005
+ clan_id: string;
1001
1006
  }
1002
1007
  /** A user in the server. */
1003
1008
  export interface User {
@@ -1257,7 +1262,8 @@ export interface CreateCategoryDescRequest {
1257
1262
  clan_id: string;
1258
1263
  }
1259
1264
  export interface DeleteCategoryDescRequest {
1260
- creator_id: string;
1265
+ category_id: string;
1266
+ clan_id: string;
1261
1267
  }
1262
1268
  /** A list of clan */
1263
1269
  export interface CategoryDescList {
@@ -1691,6 +1697,8 @@ export interface CreateEventRequest {
1691
1697
  address: string;
1692
1698
  start_time: Date | undefined;
1693
1699
  end_time: Date | undefined;
1700
+ event_id: string;
1701
+ event_status: string;
1694
1702
  }
1695
1703
  /** update a event within clan. */
1696
1704
  export interface UpdateEventRequest {
@@ -7268,14 +7276,18 @@ export declare const ListChannelAttachmentRequest: {
7268
7276
  file_type?: string | undefined;
7269
7277
  limit?: number | undefined;
7270
7278
  state?: number | undefined;
7271
- cursor?: string | undefined;
7279
+ before?: string | undefined;
7280
+ after?: string | undefined;
7281
+ around?: string | undefined;
7272
7282
  } & {
7273
7283
  clan_id?: string | undefined;
7274
7284
  channel_id?: string | undefined;
7275
7285
  file_type?: string | undefined;
7276
7286
  limit?: number | undefined;
7277
7287
  state?: number | undefined;
7278
- cursor?: string | undefined;
7288
+ before?: string | undefined;
7289
+ after?: string | undefined;
7290
+ around?: string | undefined;
7279
7291
  } & { [K in Exclude<keyof I, keyof ListChannelAttachmentRequest>]: never; }>(base?: I | undefined): ListChannelAttachmentRequest;
7280
7292
  fromPartial<I_1 extends {
7281
7293
  clan_id?: string | undefined;
@@ -7283,14 +7295,18 @@ export declare const ListChannelAttachmentRequest: {
7283
7295
  file_type?: string | undefined;
7284
7296
  limit?: number | undefined;
7285
7297
  state?: number | undefined;
7286
- cursor?: string | undefined;
7298
+ before?: string | undefined;
7299
+ after?: string | undefined;
7300
+ around?: string | undefined;
7287
7301
  } & {
7288
7302
  clan_id?: string | undefined;
7289
7303
  channel_id?: string | undefined;
7290
7304
  file_type?: string | undefined;
7291
7305
  limit?: number | undefined;
7292
7306
  state?: number | undefined;
7293
- cursor?: string | undefined;
7307
+ before?: string | undefined;
7308
+ after?: string | undefined;
7309
+ around?: string | undefined;
7294
7310
  } & { [K_1 in Exclude<keyof I_1, keyof ListChannelAttachmentRequest>]: never; }>(object: I_1): ListChannelAttachmentRequest;
7295
7311
  };
7296
7312
  export declare const ListClanUsersRequest: {
@@ -7729,16 +7745,20 @@ export declare const UpdateCategoryDescRequest: {
7729
7745
  create<I extends {
7730
7746
  category_id?: string | undefined;
7731
7747
  category_name?: string | undefined;
7748
+ clan_id?: string | undefined;
7732
7749
  } & {
7733
7750
  category_id?: string | undefined;
7734
7751
  category_name?: string | undefined;
7752
+ clan_id?: string | undefined;
7735
7753
  } & { [K in Exclude<keyof I, keyof UpdateCategoryDescRequest>]: never; }>(base?: I | undefined): UpdateCategoryDescRequest;
7736
7754
  fromPartial<I_1 extends {
7737
7755
  category_id?: string | undefined;
7738
7756
  category_name?: string | undefined;
7757
+ clan_id?: string | undefined;
7739
7758
  } & {
7740
7759
  category_id?: string | undefined;
7741
7760
  category_name?: string | undefined;
7761
+ clan_id?: string | undefined;
7742
7762
  } & { [K_1 in Exclude<keyof I_1, keyof UpdateCategoryDescRequest>]: never; }>(object: I_1): UpdateCategoryDescRequest;
7743
7763
  };
7744
7764
  export declare const User: {
@@ -8917,15 +8937,19 @@ export declare const DeleteCategoryDescRequest: {
8917
8937
  fromJSON(object: any): DeleteCategoryDescRequest;
8918
8938
  toJSON(message: DeleteCategoryDescRequest): unknown;
8919
8939
  create<I extends {
8920
- creator_id?: string | undefined;
8940
+ category_id?: string | undefined;
8941
+ clan_id?: string | undefined;
8921
8942
  } & {
8922
- creator_id?: string | undefined;
8923
- } & { [K in Exclude<keyof I, "creator_id">]: never; }>(base?: I | undefined): DeleteCategoryDescRequest;
8943
+ category_id?: string | undefined;
8944
+ clan_id?: string | undefined;
8945
+ } & { [K in Exclude<keyof I, keyof DeleteCategoryDescRequest>]: never; }>(base?: I | undefined): DeleteCategoryDescRequest;
8924
8946
  fromPartial<I_1 extends {
8925
- creator_id?: string | undefined;
8947
+ category_id?: string | undefined;
8948
+ clan_id?: string | undefined;
8926
8949
  } & {
8927
- creator_id?: string | undefined;
8928
- } & { [K_1 in Exclude<keyof I_1, "creator_id">]: never; }>(object: I_1): DeleteCategoryDescRequest;
8950
+ category_id?: string | undefined;
8951
+ clan_id?: string | undefined;
8952
+ } & { [K_1 in Exclude<keyof I_1, keyof DeleteCategoryDescRequest>]: never; }>(object: I_1): DeleteCategoryDescRequest;
8929
8953
  };
8930
8954
  export declare const CategoryDescList: {
8931
8955
  encode(message: CategoryDescList, writer?: _m0.Writer): _m0.Writer;
@@ -12001,6 +12025,8 @@ export declare const CreateEventRequest: {
12001
12025
  address?: string | undefined;
12002
12026
  start_time?: Date | undefined;
12003
12027
  end_time?: Date | undefined;
12028
+ event_id?: string | undefined;
12029
+ event_status?: string | undefined;
12004
12030
  } & {
12005
12031
  title?: string | undefined;
12006
12032
  logo?: string | undefined;
@@ -12010,6 +12036,8 @@ export declare const CreateEventRequest: {
12010
12036
  address?: string | undefined;
12011
12037
  start_time?: Date | undefined;
12012
12038
  end_time?: Date | undefined;
12039
+ event_id?: string | undefined;
12040
+ event_status?: string | undefined;
12013
12041
  } & { [K in Exclude<keyof I, keyof CreateEventRequest>]: never; }>(base?: I | undefined): CreateEventRequest;
12014
12042
  fromPartial<I_1 extends {
12015
12043
  title?: string | undefined;
@@ -12020,6 +12048,8 @@ export declare const CreateEventRequest: {
12020
12048
  address?: string | undefined;
12021
12049
  start_time?: Date | undefined;
12022
12050
  end_time?: Date | undefined;
12051
+ event_id?: string | undefined;
12052
+ event_status?: string | undefined;
12023
12053
  } & {
12024
12054
  title?: string | undefined;
12025
12055
  logo?: string | undefined;
@@ -12029,6 +12059,8 @@ export declare const CreateEventRequest: {
12029
12059
  address?: string | undefined;
12030
12060
  start_time?: Date | undefined;
12031
12061
  end_time?: Date | undefined;
12062
+ event_id?: string | undefined;
12063
+ event_status?: string | undefined;
12032
12064
  } & { [K_1 in Exclude<keyof I_1, keyof CreateEventRequest>]: never; }>(object: I_1): CreateEventRequest;
12033
12065
  };
12034
12066
  export declare const UpdateEventRequest: {