mezon-js-protobuf 1.7.11 → 1.7.13

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
3
  // protoc-gen-ts_proto v1.181.2
4
- // protoc v5.28.3
4
+ // protoc v3.20.3
5
5
  // source: api/api.proto
6
6
 
7
7
  /* eslint-disable */
@@ -3965,6 +3965,12 @@ export interface MezonOauthClientList {
3965
3965
  listMezonOauthClient: MezonOauthClient[];
3966
3966
  }
3967
3967
 
3968
+ export interface SearchThreadRequest {
3969
+ clan_id: string;
3970
+ channel_id: string;
3971
+ label: string;
3972
+ }
3973
+
3968
3974
  function createBaseAccount(): Account {
3969
3975
  return {
3970
3976
  user: undefined,
@@ -39170,6 +39176,95 @@ export const MezonOauthClientList = {
39170
39176
  },
39171
39177
  };
39172
39178
 
39179
+ function createBaseSearchThreadRequest(): SearchThreadRequest {
39180
+ return { clan_id: "", channel_id: "", label: "" };
39181
+ }
39182
+
39183
+ export const SearchThreadRequest = {
39184
+ encode(message: SearchThreadRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
39185
+ if (message.clan_id !== "") {
39186
+ writer.uint32(10).string(message.clan_id);
39187
+ }
39188
+ if (message.channel_id !== "") {
39189
+ writer.uint32(18).string(message.channel_id);
39190
+ }
39191
+ if (message.label !== "") {
39192
+ writer.uint32(26).string(message.label);
39193
+ }
39194
+ return writer;
39195
+ },
39196
+
39197
+ decode(input: _m0.Reader | Uint8Array, length?: number): SearchThreadRequest {
39198
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
39199
+ let end = length === undefined ? reader.len : reader.pos + length;
39200
+ const message = createBaseSearchThreadRequest();
39201
+ while (reader.pos < end) {
39202
+ const tag = reader.uint32();
39203
+ switch (tag >>> 3) {
39204
+ case 1:
39205
+ if (tag !== 10) {
39206
+ break;
39207
+ }
39208
+
39209
+ message.clan_id = reader.string();
39210
+ continue;
39211
+ case 2:
39212
+ if (tag !== 18) {
39213
+ break;
39214
+ }
39215
+
39216
+ message.channel_id = reader.string();
39217
+ continue;
39218
+ case 3:
39219
+ if (tag !== 26) {
39220
+ break;
39221
+ }
39222
+
39223
+ message.label = reader.string();
39224
+ continue;
39225
+ }
39226
+ if ((tag & 7) === 4 || tag === 0) {
39227
+ break;
39228
+ }
39229
+ reader.skipType(tag & 7);
39230
+ }
39231
+ return message;
39232
+ },
39233
+
39234
+ fromJSON(object: any): SearchThreadRequest {
39235
+ return {
39236
+ clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
39237
+ channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
39238
+ label: isSet(object.label) ? globalThis.String(object.label) : "",
39239
+ };
39240
+ },
39241
+
39242
+ toJSON(message: SearchThreadRequest): unknown {
39243
+ const obj: any = {};
39244
+ if (message.clan_id !== "") {
39245
+ obj.clan_id = message.clan_id;
39246
+ }
39247
+ if (message.channel_id !== "") {
39248
+ obj.channel_id = message.channel_id;
39249
+ }
39250
+ if (message.label !== "") {
39251
+ obj.label = message.label;
39252
+ }
39253
+ return obj;
39254
+ },
39255
+
39256
+ create<I extends Exact<DeepPartial<SearchThreadRequest>, I>>(base?: I): SearchThreadRequest {
39257
+ return SearchThreadRequest.fromPartial(base ?? ({} as any));
39258
+ },
39259
+ fromPartial<I extends Exact<DeepPartial<SearchThreadRequest>, I>>(object: I): SearchThreadRequest {
39260
+ const message = createBaseSearchThreadRequest();
39261
+ message.clan_id = object.clan_id ?? "";
39262
+ message.channel_id = object.channel_id ?? "";
39263
+ message.label = object.label ?? "";
39264
+ return message;
39265
+ },
39266
+ };
39267
+
39173
39268
  function bytesFromBase64(b64: string): Uint8Array {
39174
39269
  if ((globalThis as any).Buffer) {
39175
39270
  return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
@@ -3202,6 +3202,11 @@ export interface MezonOauthClient {
3202
3202
  export interface MezonOauthClientList {
3203
3203
  listMezonOauthClient: MezonOauthClient[];
3204
3204
  }
3205
+ export interface SearchThreadRequest {
3206
+ clan_id: string;
3207
+ channel_id: string;
3208
+ label: string;
3209
+ }
3205
3210
  export declare const Account: {
3206
3211
  encode(message: Account, writer?: _m0.Writer): _m0.Writer;
3207
3212
  decode(input: _m0.Reader | Uint8Array, length?: number): Account;
@@ -24906,6 +24911,30 @@ export declare const MezonOauthClientList: {
24906
24911
  }[]>]: never; }) | undefined;
24907
24912
  } & { [K_23 in Exclude<keyof I_1, "listMezonOauthClient">]: never; }>(object: I_1): MezonOauthClientList;
24908
24913
  };
24914
+ export declare const SearchThreadRequest: {
24915
+ encode(message: SearchThreadRequest, writer?: _m0.Writer): _m0.Writer;
24916
+ decode(input: _m0.Reader | Uint8Array, length?: number): SearchThreadRequest;
24917
+ fromJSON(object: any): SearchThreadRequest;
24918
+ toJSON(message: SearchThreadRequest): unknown;
24919
+ create<I extends {
24920
+ clan_id?: string | undefined;
24921
+ channel_id?: string | undefined;
24922
+ label?: string | undefined;
24923
+ } & {
24924
+ clan_id?: string | undefined;
24925
+ channel_id?: string | undefined;
24926
+ label?: string | undefined;
24927
+ } & { [K in Exclude<keyof I, keyof SearchThreadRequest>]: never; }>(base?: I | undefined): SearchThreadRequest;
24928
+ fromPartial<I_1 extends {
24929
+ clan_id?: string | undefined;
24930
+ channel_id?: string | undefined;
24931
+ label?: string | undefined;
24932
+ } & {
24933
+ clan_id?: string | undefined;
24934
+ channel_id?: string | undefined;
24935
+ label?: string | undefined;
24936
+ } & { [K_1 in Exclude<keyof I_1, keyof SearchThreadRequest>]: never; }>(object: I_1): SearchThreadRequest;
24937
+ };
24909
24938
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
24910
24939
  export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
24911
24940
  [K in keyof T]?: DeepPartial<T[K]>;