mezon-js-protobuf 1.6.38 → 1.6.39

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
@@ -3739,6 +3739,24 @@ export interface CustomDisplay {
3739
3739
  splash_screen: string;
3740
3740
  }
3741
3741
 
3742
+ /** A list of users belonging to a channel, along with their role. */
3743
+ export interface PTTChannelUser {
3744
+ /** user join id */
3745
+ id: string;
3746
+ /** user for a channel. */
3747
+ user_id: string;
3748
+ /** channel id */
3749
+ channel_id: string;
3750
+ /** participant */
3751
+ participant: string;
3752
+ }
3753
+
3754
+ /** A list of users belonging to a channel, along with their role. */
3755
+ export interface PTTChannelUserList {
3756
+ /** list of ptt channel user */
3757
+ ptt_channel_users: PTTChannelUser[];
3758
+ }
3759
+
3742
3760
  export interface WalletLedger {
3743
3761
  /** change set id */
3744
3762
  id: string;
@@ -3750,8 +3768,6 @@ export interface WalletLedger {
3750
3768
  | undefined;
3751
3769
  /** value */
3752
3770
  value: number;
3753
- /** transaction id */
3754
- transaction_id: string;
3755
3771
  }
3756
3772
 
3757
3773
  export interface WalletLedgerList {
@@ -3763,7 +3779,6 @@ export interface WalletLedgerList {
3763
3779
  export interface WalletLedgerListReq {
3764
3780
  limit: number | undefined;
3765
3781
  cursor: string;
3766
- transaction_id: string;
3767
3782
  }
3768
3783
 
3769
3784
  function createBaseAccount(): Account {
@@ -36203,8 +36218,173 @@ export const CustomDisplay = {
36203
36218
  },
36204
36219
  };
36205
36220
 
36221
+ function createBasePTTChannelUser(): PTTChannelUser {
36222
+ return { id: "", user_id: "", channel_id: "", participant: "" };
36223
+ }
36224
+
36225
+ export const PTTChannelUser = {
36226
+ encode(message: PTTChannelUser, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
36227
+ if (message.id !== "") {
36228
+ writer.uint32(10).string(message.id);
36229
+ }
36230
+ if (message.user_id !== "") {
36231
+ writer.uint32(18).string(message.user_id);
36232
+ }
36233
+ if (message.channel_id !== "") {
36234
+ writer.uint32(26).string(message.channel_id);
36235
+ }
36236
+ if (message.participant !== "") {
36237
+ writer.uint32(34).string(message.participant);
36238
+ }
36239
+ return writer;
36240
+ },
36241
+
36242
+ decode(input: _m0.Reader | Uint8Array, length?: number): PTTChannelUser {
36243
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
36244
+ let end = length === undefined ? reader.len : reader.pos + length;
36245
+ const message = createBasePTTChannelUser();
36246
+ while (reader.pos < end) {
36247
+ const tag = reader.uint32();
36248
+ switch (tag >>> 3) {
36249
+ case 1:
36250
+ if (tag !== 10) {
36251
+ break;
36252
+ }
36253
+
36254
+ message.id = reader.string();
36255
+ continue;
36256
+ case 2:
36257
+ if (tag !== 18) {
36258
+ break;
36259
+ }
36260
+
36261
+ message.user_id = reader.string();
36262
+ continue;
36263
+ case 3:
36264
+ if (tag !== 26) {
36265
+ break;
36266
+ }
36267
+
36268
+ message.channel_id = reader.string();
36269
+ continue;
36270
+ case 4:
36271
+ if (tag !== 34) {
36272
+ break;
36273
+ }
36274
+
36275
+ message.participant = reader.string();
36276
+ continue;
36277
+ }
36278
+ if ((tag & 7) === 4 || tag === 0) {
36279
+ break;
36280
+ }
36281
+ reader.skipType(tag & 7);
36282
+ }
36283
+ return message;
36284
+ },
36285
+
36286
+ fromJSON(object: any): PTTChannelUser {
36287
+ return {
36288
+ id: isSet(object.id) ? globalThis.String(object.id) : "",
36289
+ user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
36290
+ channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
36291
+ participant: isSet(object.participant) ? globalThis.String(object.participant) : "",
36292
+ };
36293
+ },
36294
+
36295
+ toJSON(message: PTTChannelUser): unknown {
36296
+ const obj: any = {};
36297
+ if (message.id !== "") {
36298
+ obj.id = message.id;
36299
+ }
36300
+ if (message.user_id !== "") {
36301
+ obj.user_id = message.user_id;
36302
+ }
36303
+ if (message.channel_id !== "") {
36304
+ obj.channel_id = message.channel_id;
36305
+ }
36306
+ if (message.participant !== "") {
36307
+ obj.participant = message.participant;
36308
+ }
36309
+ return obj;
36310
+ },
36311
+
36312
+ create<I extends Exact<DeepPartial<PTTChannelUser>, I>>(base?: I): PTTChannelUser {
36313
+ return PTTChannelUser.fromPartial(base ?? ({} as any));
36314
+ },
36315
+ fromPartial<I extends Exact<DeepPartial<PTTChannelUser>, I>>(object: I): PTTChannelUser {
36316
+ const message = createBasePTTChannelUser();
36317
+ message.id = object.id ?? "";
36318
+ message.user_id = object.user_id ?? "";
36319
+ message.channel_id = object.channel_id ?? "";
36320
+ message.participant = object.participant ?? "";
36321
+ return message;
36322
+ },
36323
+ };
36324
+
36325
+ function createBasePTTChannelUserList(): PTTChannelUserList {
36326
+ return { ptt_channel_users: [] };
36327
+ }
36328
+
36329
+ export const PTTChannelUserList = {
36330
+ encode(message: PTTChannelUserList, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
36331
+ for (const v of message.ptt_channel_users) {
36332
+ PTTChannelUser.encode(v!, writer.uint32(10).fork()).ldelim();
36333
+ }
36334
+ return writer;
36335
+ },
36336
+
36337
+ decode(input: _m0.Reader | Uint8Array, length?: number): PTTChannelUserList {
36338
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
36339
+ let end = length === undefined ? reader.len : reader.pos + length;
36340
+ const message = createBasePTTChannelUserList();
36341
+ while (reader.pos < end) {
36342
+ const tag = reader.uint32();
36343
+ switch (tag >>> 3) {
36344
+ case 1:
36345
+ if (tag !== 10) {
36346
+ break;
36347
+ }
36348
+
36349
+ message.ptt_channel_users.push(PTTChannelUser.decode(reader, reader.uint32()));
36350
+ continue;
36351
+ }
36352
+ if ((tag & 7) === 4 || tag === 0) {
36353
+ break;
36354
+ }
36355
+ reader.skipType(tag & 7);
36356
+ }
36357
+ return message;
36358
+ },
36359
+
36360
+ fromJSON(object: any): PTTChannelUserList {
36361
+ return {
36362
+ ptt_channel_users: globalThis.Array.isArray(object?.ptt_channel_users)
36363
+ ? object.ptt_channel_users.map((e: any) => PTTChannelUser.fromJSON(e))
36364
+ : [],
36365
+ };
36366
+ },
36367
+
36368
+ toJSON(message: PTTChannelUserList): unknown {
36369
+ const obj: any = {};
36370
+ if (message.ptt_channel_users?.length) {
36371
+ obj.ptt_channel_users = message.ptt_channel_users.map((e) => PTTChannelUser.toJSON(e));
36372
+ }
36373
+ return obj;
36374
+ },
36375
+
36376
+ create<I extends Exact<DeepPartial<PTTChannelUserList>, I>>(base?: I): PTTChannelUserList {
36377
+ return PTTChannelUserList.fromPartial(base ?? ({} as any));
36378
+ },
36379
+ fromPartial<I extends Exact<DeepPartial<PTTChannelUserList>, I>>(object: I): PTTChannelUserList {
36380
+ const message = createBasePTTChannelUserList();
36381
+ message.ptt_channel_users = object.ptt_channel_users?.map((e) => PTTChannelUser.fromPartial(e)) || [];
36382
+ return message;
36383
+ },
36384
+ };
36385
+
36206
36386
  function createBaseWalletLedger(): WalletLedger {
36207
- return { id: "", user_id: "", create_time: undefined, value: 0, transaction_id: "" };
36387
+ return { id: "", user_id: "", create_time: undefined, value: 0 };
36208
36388
  }
36209
36389
 
36210
36390
  export const WalletLedger = {
@@ -36221,9 +36401,6 @@ export const WalletLedger = {
36221
36401
  if (message.value !== 0) {
36222
36402
  writer.uint32(32).int32(message.value);
36223
36403
  }
36224
- if (message.transaction_id !== "") {
36225
- writer.uint32(42).string(message.transaction_id);
36226
- }
36227
36404
  return writer;
36228
36405
  },
36229
36406
 
@@ -36262,13 +36439,6 @@ export const WalletLedger = {
36262
36439
 
36263
36440
  message.value = reader.int32();
36264
36441
  continue;
36265
- case 5:
36266
- if (tag !== 42) {
36267
- break;
36268
- }
36269
-
36270
- message.transaction_id = reader.string();
36271
- continue;
36272
36442
  }
36273
36443
  if ((tag & 7) === 4 || tag === 0) {
36274
36444
  break;
@@ -36284,7 +36454,6 @@ export const WalletLedger = {
36284
36454
  user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
36285
36455
  create_time: isSet(object.create_time) ? fromJsonTimestamp(object.create_time) : undefined,
36286
36456
  value: isSet(object.value) ? globalThis.Number(object.value) : 0,
36287
- transaction_id: isSet(object.transaction_id) ? globalThis.String(object.transaction_id) : "",
36288
36457
  };
36289
36458
  },
36290
36459
 
@@ -36302,9 +36471,6 @@ export const WalletLedger = {
36302
36471
  if (message.value !== 0) {
36303
36472
  obj.value = Math.round(message.value);
36304
36473
  }
36305
- if (message.transaction_id !== "") {
36306
- obj.transaction_id = message.transaction_id;
36307
- }
36308
36474
  return obj;
36309
36475
  },
36310
36476
 
@@ -36317,7 +36483,6 @@ export const WalletLedger = {
36317
36483
  message.user_id = object.user_id ?? "";
36318
36484
  message.create_time = object.create_time ?? undefined;
36319
36485
  message.value = object.value ?? 0;
36320
- message.transaction_id = object.transaction_id ?? "";
36321
36486
  return message;
36322
36487
  },
36323
36488
  };
@@ -36414,7 +36579,7 @@ export const WalletLedgerList = {
36414
36579
  };
36415
36580
 
36416
36581
  function createBaseWalletLedgerListReq(): WalletLedgerListReq {
36417
- return { limit: undefined, cursor: "", transaction_id: "" };
36582
+ return { limit: undefined, cursor: "" };
36418
36583
  }
36419
36584
 
36420
36585
  export const WalletLedgerListReq = {
@@ -36425,9 +36590,6 @@ export const WalletLedgerListReq = {
36425
36590
  if (message.cursor !== "") {
36426
36591
  writer.uint32(18).string(message.cursor);
36427
36592
  }
36428
- if (message.transaction_id !== "") {
36429
- writer.uint32(26).string(message.transaction_id);
36430
- }
36431
36593
  return writer;
36432
36594
  },
36433
36595
 
@@ -36452,13 +36614,6 @@ export const WalletLedgerListReq = {
36452
36614
 
36453
36615
  message.cursor = reader.string();
36454
36616
  continue;
36455
- case 3:
36456
- if (tag !== 26) {
36457
- break;
36458
- }
36459
-
36460
- message.transaction_id = reader.string();
36461
- continue;
36462
36617
  }
36463
36618
  if ((tag & 7) === 4 || tag === 0) {
36464
36619
  break;
@@ -36472,7 +36627,6 @@ export const WalletLedgerListReq = {
36472
36627
  return {
36473
36628
  limit: isSet(object.limit) ? Number(object.limit) : undefined,
36474
36629
  cursor: isSet(object.cursor) ? globalThis.String(object.cursor) : "",
36475
- transaction_id: isSet(object.transaction_id) ? globalThis.String(object.transaction_id) : "",
36476
36630
  };
36477
36631
  },
36478
36632
 
@@ -36484,9 +36638,6 @@ export const WalletLedgerListReq = {
36484
36638
  if (message.cursor !== "") {
36485
36639
  obj.cursor = message.cursor;
36486
36640
  }
36487
- if (message.transaction_id !== "") {
36488
- obj.transaction_id = message.transaction_id;
36489
- }
36490
36641
  return obj;
36491
36642
  },
36492
36643
 
@@ -36497,7 +36648,6 @@ export const WalletLedgerListReq = {
36497
36648
  const message = createBaseWalletLedgerListReq();
36498
36649
  message.limit = object.limit ?? undefined;
36499
36650
  message.cursor = object.cursor ?? "";
36500
- message.transaction_id = object.transaction_id ?? "";
36501
36651
  return message;
36502
36652
  },
36503
36653
  };
@@ -3003,6 +3003,22 @@ export interface CustomDisplay {
3003
3003
  /** splash_screen link */
3004
3004
  splash_screen: string;
3005
3005
  }
3006
+ /** A list of users belonging to a channel, along with their role. */
3007
+ export interface PTTChannelUser {
3008
+ /** user join id */
3009
+ id: string;
3010
+ /** user for a channel. */
3011
+ user_id: string;
3012
+ /** channel id */
3013
+ channel_id: string;
3014
+ /** participant */
3015
+ participant: string;
3016
+ }
3017
+ /** A list of users belonging to a channel, along with their role. */
3018
+ export interface PTTChannelUserList {
3019
+ /** list of ptt channel user */
3020
+ ptt_channel_users: PTTChannelUser[];
3021
+ }
3006
3022
  export interface WalletLedger {
3007
3023
  /** change set id */
3008
3024
  id: string;
@@ -3012,8 +3028,6 @@ export interface WalletLedger {
3012
3028
  create_time: Date | undefined;
3013
3029
  /** value */
3014
3030
  value: number;
3015
- /** transaction id */
3016
- transaction_id: string;
3017
3031
  }
3018
3032
  export interface WalletLedgerList {
3019
3033
  wallet_ledger: WalletLedger[];
@@ -3023,7 +3037,6 @@ export interface WalletLedgerList {
3023
3037
  export interface WalletLedgerListReq {
3024
3038
  limit: number | undefined;
3025
3039
  cursor: string;
3026
- transaction_id: string;
3027
3040
  }
3028
3041
  export declare const Account: {
3029
3042
  encode(message: Account, writer?: _m0.Writer): _m0.Writer;
@@ -20821,6 +20834,100 @@ export declare const CustomDisplay: {
20821
20834
  splash_screen?: string | undefined;
20822
20835
  } & { [K_1 in Exclude<keyof I_1, keyof CustomDisplay>]: never; }>(object: I_1): CustomDisplay;
20823
20836
  };
20837
+ export declare const PTTChannelUser: {
20838
+ encode(message: PTTChannelUser, writer?: _m0.Writer): _m0.Writer;
20839
+ decode(input: _m0.Reader | Uint8Array, length?: number): PTTChannelUser;
20840
+ fromJSON(object: any): PTTChannelUser;
20841
+ toJSON(message: PTTChannelUser): unknown;
20842
+ create<I extends {
20843
+ id?: string | undefined;
20844
+ user_id?: string | undefined;
20845
+ channel_id?: string | undefined;
20846
+ participant?: string | undefined;
20847
+ } & {
20848
+ id?: string | undefined;
20849
+ user_id?: string | undefined;
20850
+ channel_id?: string | undefined;
20851
+ participant?: string | undefined;
20852
+ } & { [K in Exclude<keyof I, keyof PTTChannelUser>]: never; }>(base?: I | undefined): PTTChannelUser;
20853
+ fromPartial<I_1 extends {
20854
+ id?: string | undefined;
20855
+ user_id?: string | undefined;
20856
+ channel_id?: string | undefined;
20857
+ participant?: string | undefined;
20858
+ } & {
20859
+ id?: string | undefined;
20860
+ user_id?: string | undefined;
20861
+ channel_id?: string | undefined;
20862
+ participant?: string | undefined;
20863
+ } & { [K_1 in Exclude<keyof I_1, keyof PTTChannelUser>]: never; }>(object: I_1): PTTChannelUser;
20864
+ };
20865
+ export declare const PTTChannelUserList: {
20866
+ encode(message: PTTChannelUserList, writer?: _m0.Writer): _m0.Writer;
20867
+ decode(input: _m0.Reader | Uint8Array, length?: number): PTTChannelUserList;
20868
+ fromJSON(object: any): PTTChannelUserList;
20869
+ toJSON(message: PTTChannelUserList): unknown;
20870
+ create<I extends {
20871
+ ptt_channel_users?: {
20872
+ id?: string | undefined;
20873
+ user_id?: string | undefined;
20874
+ channel_id?: string | undefined;
20875
+ participant?: string | undefined;
20876
+ }[] | undefined;
20877
+ } & {
20878
+ ptt_channel_users?: ({
20879
+ id?: string | undefined;
20880
+ user_id?: string | undefined;
20881
+ channel_id?: string | undefined;
20882
+ participant?: string | undefined;
20883
+ }[] & ({
20884
+ id?: string | undefined;
20885
+ user_id?: string | undefined;
20886
+ channel_id?: string | undefined;
20887
+ participant?: string | undefined;
20888
+ } & {
20889
+ id?: string | undefined;
20890
+ user_id?: string | undefined;
20891
+ channel_id?: string | undefined;
20892
+ participant?: string | undefined;
20893
+ } & { [K in Exclude<keyof I["ptt_channel_users"][number], keyof PTTChannelUser>]: never; })[] & { [K_1 in Exclude<keyof I["ptt_channel_users"], keyof {
20894
+ id?: string | undefined;
20895
+ user_id?: string | undefined;
20896
+ channel_id?: string | undefined;
20897
+ participant?: string | undefined;
20898
+ }[]>]: never; }) | undefined;
20899
+ } & { [K_2 in Exclude<keyof I, "ptt_channel_users">]: never; }>(base?: I | undefined): PTTChannelUserList;
20900
+ fromPartial<I_1 extends {
20901
+ ptt_channel_users?: {
20902
+ id?: string | undefined;
20903
+ user_id?: string | undefined;
20904
+ channel_id?: string | undefined;
20905
+ participant?: string | undefined;
20906
+ }[] | undefined;
20907
+ } & {
20908
+ ptt_channel_users?: ({
20909
+ id?: string | undefined;
20910
+ user_id?: string | undefined;
20911
+ channel_id?: string | undefined;
20912
+ participant?: string | undefined;
20913
+ }[] & ({
20914
+ id?: string | undefined;
20915
+ user_id?: string | undefined;
20916
+ channel_id?: string | undefined;
20917
+ participant?: string | undefined;
20918
+ } & {
20919
+ id?: string | undefined;
20920
+ user_id?: string | undefined;
20921
+ channel_id?: string | undefined;
20922
+ participant?: string | undefined;
20923
+ } & { [K_3 in Exclude<keyof I_1["ptt_channel_users"][number], keyof PTTChannelUser>]: never; })[] & { [K_4 in Exclude<keyof I_1["ptt_channel_users"], keyof {
20924
+ id?: string | undefined;
20925
+ user_id?: string | undefined;
20926
+ channel_id?: string | undefined;
20927
+ participant?: string | undefined;
20928
+ }[]>]: never; }) | undefined;
20929
+ } & { [K_5 in Exclude<keyof I_1, "ptt_channel_users">]: never; }>(object: I_1): PTTChannelUserList;
20930
+ };
20824
20931
  export declare const WalletLedger: {
20825
20932
  encode(message: WalletLedger, writer?: _m0.Writer): _m0.Writer;
20826
20933
  decode(input: _m0.Reader | Uint8Array, length?: number): WalletLedger;
@@ -20831,26 +20938,22 @@ export declare const WalletLedger: {
20831
20938
  user_id?: string | undefined;
20832
20939
  create_time?: Date | undefined;
20833
20940
  value?: number | undefined;
20834
- transaction_id?: string | undefined;
20835
20941
  } & {
20836
20942
  id?: string | undefined;
20837
20943
  user_id?: string | undefined;
20838
20944
  create_time?: Date | undefined;
20839
20945
  value?: number | undefined;
20840
- transaction_id?: string | undefined;
20841
20946
  } & { [K in Exclude<keyof I, keyof WalletLedger>]: never; }>(base?: I | undefined): WalletLedger;
20842
20947
  fromPartial<I_1 extends {
20843
20948
  id?: string | undefined;
20844
20949
  user_id?: string | undefined;
20845
20950
  create_time?: Date | undefined;
20846
20951
  value?: number | undefined;
20847
- transaction_id?: string | undefined;
20848
20952
  } & {
20849
20953
  id?: string | undefined;
20850
20954
  user_id?: string | undefined;
20851
20955
  create_time?: Date | undefined;
20852
20956
  value?: number | undefined;
20853
- transaction_id?: string | undefined;
20854
20957
  } & { [K_1 in Exclude<keyof I_1, keyof WalletLedger>]: never; }>(object: I_1): WalletLedger;
20855
20958
  };
20856
20959
  export declare const WalletLedgerList: {
@@ -20864,7 +20967,6 @@ export declare const WalletLedgerList: {
20864
20967
  user_id?: string | undefined;
20865
20968
  create_time?: Date | undefined;
20866
20969
  value?: number | undefined;
20867
- transaction_id?: string | undefined;
20868
20970
  }[] | undefined;
20869
20971
  prev_cursor?: string | undefined;
20870
20972
  next_cursor?: string | undefined;
@@ -20874,25 +20976,21 @@ export declare const WalletLedgerList: {
20874
20976
  user_id?: string | undefined;
20875
20977
  create_time?: Date | undefined;
20876
20978
  value?: number | undefined;
20877
- transaction_id?: string | undefined;
20878
20979
  }[] & ({
20879
20980
  id?: string | undefined;
20880
20981
  user_id?: string | undefined;
20881
20982
  create_time?: Date | undefined;
20882
20983
  value?: number | undefined;
20883
- transaction_id?: string | undefined;
20884
20984
  } & {
20885
20985
  id?: string | undefined;
20886
20986
  user_id?: string | undefined;
20887
20987
  create_time?: Date | undefined;
20888
20988
  value?: number | undefined;
20889
- transaction_id?: string | undefined;
20890
20989
  } & { [K in Exclude<keyof I["wallet_ledger"][number], keyof WalletLedger>]: never; })[] & { [K_1 in Exclude<keyof I["wallet_ledger"], keyof {
20891
20990
  id?: string | undefined;
20892
20991
  user_id?: string | undefined;
20893
20992
  create_time?: Date | undefined;
20894
20993
  value?: number | undefined;
20895
- transaction_id?: string | undefined;
20896
20994
  }[]>]: never; }) | undefined;
20897
20995
  prev_cursor?: string | undefined;
20898
20996
  next_cursor?: string | undefined;
@@ -20903,7 +21001,6 @@ export declare const WalletLedgerList: {
20903
21001
  user_id?: string | undefined;
20904
21002
  create_time?: Date | undefined;
20905
21003
  value?: number | undefined;
20906
- transaction_id?: string | undefined;
20907
21004
  }[] | undefined;
20908
21005
  prev_cursor?: string | undefined;
20909
21006
  next_cursor?: string | undefined;
@@ -20913,25 +21010,21 @@ export declare const WalletLedgerList: {
20913
21010
  user_id?: string | undefined;
20914
21011
  create_time?: Date | undefined;
20915
21012
  value?: number | undefined;
20916
- transaction_id?: string | undefined;
20917
21013
  }[] & ({
20918
21014
  id?: string | undefined;
20919
21015
  user_id?: string | undefined;
20920
21016
  create_time?: Date | undefined;
20921
21017
  value?: number | undefined;
20922
- transaction_id?: string | undefined;
20923
21018
  } & {
20924
21019
  id?: string | undefined;
20925
21020
  user_id?: string | undefined;
20926
21021
  create_time?: Date | undefined;
20927
21022
  value?: number | undefined;
20928
- transaction_id?: string | undefined;
20929
21023
  } & { [K_3 in Exclude<keyof I_1["wallet_ledger"][number], keyof WalletLedger>]: never; })[] & { [K_4 in Exclude<keyof I_1["wallet_ledger"], keyof {
20930
21024
  id?: string | undefined;
20931
21025
  user_id?: string | undefined;
20932
21026
  create_time?: Date | undefined;
20933
21027
  value?: number | undefined;
20934
- transaction_id?: string | undefined;
20935
21028
  }[]>]: never; }) | undefined;
20936
21029
  prev_cursor?: string | undefined;
20937
21030
  next_cursor?: string | undefined;
@@ -20945,20 +21038,16 @@ export declare const WalletLedgerListReq: {
20945
21038
  create<I extends {
20946
21039
  limit?: number | undefined;
20947
21040
  cursor?: string | undefined;
20948
- transaction_id?: string | undefined;
20949
21041
  } & {
20950
21042
  limit?: number | undefined;
20951
21043
  cursor?: string | undefined;
20952
- transaction_id?: string | undefined;
20953
21044
  } & { [K in Exclude<keyof I, keyof WalletLedgerListReq>]: never; }>(base?: I | undefined): WalletLedgerListReq;
20954
21045
  fromPartial<I_1 extends {
20955
21046
  limit?: number | undefined;
20956
21047
  cursor?: string | undefined;
20957
- transaction_id?: string | undefined;
20958
21048
  } & {
20959
21049
  limit?: number | undefined;
20960
21050
  cursor?: string | undefined;
20961
- transaction_id?: string | undefined;
20962
21051
  } & { [K_1 in Exclude<keyof I_1, keyof WalletLedgerListReq>]: never; }>(object: I_1): WalletLedgerListReq;
20963
21052
  };
20964
21053
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
@@ -929,6 +929,8 @@ export interface JoinPTTChannel {
929
929
  receiver_id: string;
930
930
  /** clan id */
931
931
  clan_id: string;
932
+ /** is talk */
933
+ is_talk: boolean;
932
934
  }
933
935
  export interface TalkPTTChannel {
934
936
  /** channel id */
@@ -1640,6 +1642,7 @@ export declare const Envelope: {
1640
1642
  json_data?: string | undefined;
1641
1643
  receiver_id?: string | undefined;
1642
1644
  clan_id?: string | undefined;
1645
+ is_talk?: boolean | undefined;
1643
1646
  } | undefined;
1644
1647
  talk_ptt_channel?: {
1645
1648
  channel_id?: string | undefined;
@@ -3521,12 +3524,14 @@ export declare const Envelope: {
3521
3524
  json_data?: string | undefined;
3522
3525
  receiver_id?: string | undefined;
3523
3526
  clan_id?: string | undefined;
3527
+ is_talk?: boolean | undefined;
3524
3528
  } & {
3525
3529
  channel_id?: string | undefined;
3526
3530
  data_type?: number | undefined;
3527
3531
  json_data?: string | undefined;
3528
3532
  receiver_id?: string | undefined;
3529
3533
  clan_id?: string | undefined;
3534
+ is_talk?: boolean | undefined;
3530
3535
  } & { [K_118 in Exclude<keyof I["join_ptt_channel"], keyof JoinPTTChannel>]: never; }) | undefined;
3531
3536
  talk_ptt_channel?: ({
3532
3537
  channel_id?: string | undefined;
@@ -4300,6 +4305,7 @@ export declare const Envelope: {
4300
4305
  json_data?: string | undefined;
4301
4306
  receiver_id?: string | undefined;
4302
4307
  clan_id?: string | undefined;
4308
+ is_talk?: boolean | undefined;
4303
4309
  } | undefined;
4304
4310
  talk_ptt_channel?: {
4305
4311
  channel_id?: string | undefined;
@@ -6181,12 +6187,14 @@ export declare const Envelope: {
6181
6187
  json_data?: string | undefined;
6182
6188
  receiver_id?: string | undefined;
6183
6189
  clan_id?: string | undefined;
6190
+ is_talk?: boolean | undefined;
6184
6191
  } & {
6185
6192
  channel_id?: string | undefined;
6186
6193
  data_type?: number | undefined;
6187
6194
  json_data?: string | undefined;
6188
6195
  receiver_id?: string | undefined;
6189
6196
  clan_id?: string | undefined;
6197
+ is_talk?: boolean | undefined;
6190
6198
  } & { [K_247 in Exclude<keyof I_1["join_ptt_channel"], keyof JoinPTTChannel>]: never; }) | undefined;
6191
6199
  talk_ptt_channel?: ({
6192
6200
  channel_id?: string | undefined;
@@ -10478,12 +10486,14 @@ export declare const JoinPTTChannel: {
10478
10486
  json_data?: string | undefined;
10479
10487
  receiver_id?: string | undefined;
10480
10488
  clan_id?: string | undefined;
10489
+ is_talk?: boolean | undefined;
10481
10490
  } & {
10482
10491
  channel_id?: string | undefined;
10483
10492
  data_type?: number | undefined;
10484
10493
  json_data?: string | undefined;
10485
10494
  receiver_id?: string | undefined;
10486
10495
  clan_id?: string | undefined;
10496
+ is_talk?: boolean | undefined;
10487
10497
  } & { [K in Exclude<keyof I, keyof JoinPTTChannel>]: never; }>(base?: I | undefined): JoinPTTChannel;
10488
10498
  fromPartial<I_1 extends {
10489
10499
  channel_id?: string | undefined;
@@ -10491,12 +10501,14 @@ export declare const JoinPTTChannel: {
10491
10501
  json_data?: string | undefined;
10492
10502
  receiver_id?: string | undefined;
10493
10503
  clan_id?: string | undefined;
10504
+ is_talk?: boolean | undefined;
10494
10505
  } & {
10495
10506
  channel_id?: string | undefined;
10496
10507
  data_type?: number | undefined;
10497
10508
  json_data?: string | undefined;
10498
10509
  receiver_id?: string | undefined;
10499
10510
  clan_id?: string | undefined;
10511
+ is_talk?: boolean | undefined;
10500
10512
  } & { [K_1 in Exclude<keyof I_1, keyof JoinPTTChannel>]: never; }>(object: I_1): JoinPTTChannel;
10501
10513
  };
10502
10514
  export declare const TalkPTTChannel: {
@@ -12791,7 +12791,7 @@ var UnmuteEvent = {
12791
12791
  }
12792
12792
  };
12793
12793
  function createBaseJoinPTTChannel() {
12794
- return { channel_id: "", data_type: 0, json_data: "", receiver_id: "", clan_id: "" };
12794
+ return { channel_id: "", data_type: 0, json_data: "", receiver_id: "", clan_id: "", is_talk: false };
12795
12795
  }
12796
12796
  var JoinPTTChannel = {
12797
12797
  encode(message, writer = import_minimal5.default.Writer.create()) {
@@ -12810,6 +12810,9 @@ var JoinPTTChannel = {
12810
12810
  if (message.clan_id !== "") {
12811
12811
  writer.uint32(42).string(message.clan_id);
12812
12812
  }
12813
+ if (message.is_talk !== false) {
12814
+ writer.uint32(48).bool(message.is_talk);
12815
+ }
12813
12816
  return writer;
12814
12817
  },
12815
12818
  decode(input, length) {
@@ -12849,6 +12852,12 @@ var JoinPTTChannel = {
12849
12852
  }
12850
12853
  message.clan_id = reader.string();
12851
12854
  continue;
12855
+ case 6:
12856
+ if (tag !== 48) {
12857
+ break;
12858
+ }
12859
+ message.is_talk = reader.bool();
12860
+ continue;
12852
12861
  }
12853
12862
  if ((tag & 7) === 4 || tag === 0) {
12854
12863
  break;
@@ -12863,7 +12872,8 @@ var JoinPTTChannel = {
12863
12872
  data_type: isSet4(object.data_type) ? globalThis.Number(object.data_type) : 0,
12864
12873
  json_data: isSet4(object.json_data) ? globalThis.String(object.json_data) : "",
12865
12874
  receiver_id: isSet4(object.receiver_id) ? globalThis.String(object.receiver_id) : "",
12866
- clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : ""
12875
+ clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : "",
12876
+ is_talk: isSet4(object.is_talk) ? globalThis.Boolean(object.is_talk) : false
12867
12877
  };
12868
12878
  },
12869
12879
  toJSON(message) {
@@ -12883,19 +12893,23 @@ var JoinPTTChannel = {
12883
12893
  if (message.clan_id !== "") {
12884
12894
  obj.clan_id = message.clan_id;
12885
12895
  }
12896
+ if (message.is_talk !== false) {
12897
+ obj.is_talk = message.is_talk;
12898
+ }
12886
12899
  return obj;
12887
12900
  },
12888
12901
  create(base) {
12889
12902
  return JoinPTTChannel.fromPartial(base != null ? base : {});
12890
12903
  },
12891
12904
  fromPartial(object) {
12892
- var _a, _b, _c, _d, _e;
12905
+ var _a, _b, _c, _d, _e, _f;
12893
12906
  const message = createBaseJoinPTTChannel();
12894
12907
  message.channel_id = (_a = object.channel_id) != null ? _a : "";
12895
12908
  message.data_type = (_b = object.data_type) != null ? _b : 0;
12896
12909
  message.json_data = (_c = object.json_data) != null ? _c : "";
12897
12910
  message.receiver_id = (_d = object.receiver_id) != null ? _d : "";
12898
12911
  message.clan_id = (_e = object.clan_id) != null ? _e : "";
12912
+ message.is_talk = (_f = object.is_talk) != null ? _f : false;
12899
12913
  return message;
12900
12914
  }
12901
12915
  };
@@ -12778,7 +12778,7 @@ var UnmuteEvent = {
12778
12778
  }
12779
12779
  };
12780
12780
  function createBaseJoinPTTChannel() {
12781
- return { channel_id: "", data_type: 0, json_data: "", receiver_id: "", clan_id: "" };
12781
+ return { channel_id: "", data_type: 0, json_data: "", receiver_id: "", clan_id: "", is_talk: false };
12782
12782
  }
12783
12783
  var JoinPTTChannel = {
12784
12784
  encode(message, writer = import_minimal5.default.Writer.create()) {
@@ -12797,6 +12797,9 @@ var JoinPTTChannel = {
12797
12797
  if (message.clan_id !== "") {
12798
12798
  writer.uint32(42).string(message.clan_id);
12799
12799
  }
12800
+ if (message.is_talk !== false) {
12801
+ writer.uint32(48).bool(message.is_talk);
12802
+ }
12800
12803
  return writer;
12801
12804
  },
12802
12805
  decode(input, length) {
@@ -12836,6 +12839,12 @@ var JoinPTTChannel = {
12836
12839
  }
12837
12840
  message.clan_id = reader.string();
12838
12841
  continue;
12842
+ case 6:
12843
+ if (tag !== 48) {
12844
+ break;
12845
+ }
12846
+ message.is_talk = reader.bool();
12847
+ continue;
12839
12848
  }
12840
12849
  if ((tag & 7) === 4 || tag === 0) {
12841
12850
  break;
@@ -12850,7 +12859,8 @@ var JoinPTTChannel = {
12850
12859
  data_type: isSet4(object.data_type) ? globalThis.Number(object.data_type) : 0,
12851
12860
  json_data: isSet4(object.json_data) ? globalThis.String(object.json_data) : "",
12852
12861
  receiver_id: isSet4(object.receiver_id) ? globalThis.String(object.receiver_id) : "",
12853
- clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : ""
12862
+ clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : "",
12863
+ is_talk: isSet4(object.is_talk) ? globalThis.Boolean(object.is_talk) : false
12854
12864
  };
12855
12865
  },
12856
12866
  toJSON(message) {
@@ -12870,19 +12880,23 @@ var JoinPTTChannel = {
12870
12880
  if (message.clan_id !== "") {
12871
12881
  obj.clan_id = message.clan_id;
12872
12882
  }
12883
+ if (message.is_talk !== false) {
12884
+ obj.is_talk = message.is_talk;
12885
+ }
12873
12886
  return obj;
12874
12887
  },
12875
12888
  create(base) {
12876
12889
  return JoinPTTChannel.fromPartial(base != null ? base : {});
12877
12890
  },
12878
12891
  fromPartial(object) {
12879
- var _a, _b, _c, _d, _e;
12892
+ var _a, _b, _c, _d, _e, _f;
12880
12893
  const message = createBaseJoinPTTChannel();
12881
12894
  message.channel_id = (_a = object.channel_id) != null ? _a : "";
12882
12895
  message.data_type = (_b = object.data_type) != null ? _b : 0;
12883
12896
  message.json_data = (_c = object.json_data) != null ? _c : "";
12884
12897
  message.receiver_id = (_d = object.receiver_id) != null ? _d : "";
12885
12898
  message.clan_id = (_e = object.clan_id) != null ? _e : "";
12899
+ message.is_talk = (_f = object.is_talk) != null ? _f : false;
12886
12900
  return message;
12887
12901
  }
12888
12902
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js-protobuf",
3
- "version": "1.6.38",
3
+ "version": "1.6.39",
4
4
  "description": "Websocket adapter adding protocol buffer support to the Mezon Javascript client.",
5
5
  "main": "dist/mezon-js-protobuf.cjs.js",
6
6
  "module": "dist/mezon-js-protobuf.esm.mjs",
package/rtapi/realtime.ts CHANGED
@@ -1233,6 +1233,8 @@ export interface JoinPTTChannel {
1233
1233
  receiver_id: string;
1234
1234
  /** clan id */
1235
1235
  clan_id: string;
1236
+ /** is talk */
1237
+ is_talk: boolean;
1236
1238
  }
1237
1239
 
1238
1240
  export interface TalkPTTChannel {
@@ -10381,7 +10383,7 @@ export const UnmuteEvent = {
10381
10383
  };
10382
10384
 
10383
10385
  function createBaseJoinPTTChannel(): JoinPTTChannel {
10384
- return { channel_id: "", data_type: 0, json_data: "", receiver_id: "", clan_id: "" };
10386
+ return { channel_id: "", data_type: 0, json_data: "", receiver_id: "", clan_id: "", is_talk: false };
10385
10387
  }
10386
10388
 
10387
10389
  export const JoinPTTChannel = {
@@ -10401,6 +10403,9 @@ export const JoinPTTChannel = {
10401
10403
  if (message.clan_id !== "") {
10402
10404
  writer.uint32(42).string(message.clan_id);
10403
10405
  }
10406
+ if (message.is_talk !== false) {
10407
+ writer.uint32(48).bool(message.is_talk);
10408
+ }
10404
10409
  return writer;
10405
10410
  },
10406
10411
 
@@ -10446,6 +10451,13 @@ export const JoinPTTChannel = {
10446
10451
 
10447
10452
  message.clan_id = reader.string();
10448
10453
  continue;
10454
+ case 6:
10455
+ if (tag !== 48) {
10456
+ break;
10457
+ }
10458
+
10459
+ message.is_talk = reader.bool();
10460
+ continue;
10449
10461
  }
10450
10462
  if ((tag & 7) === 4 || tag === 0) {
10451
10463
  break;
@@ -10462,6 +10474,7 @@ export const JoinPTTChannel = {
10462
10474
  json_data: isSet(object.json_data) ? globalThis.String(object.json_data) : "",
10463
10475
  receiver_id: isSet(object.receiver_id) ? globalThis.String(object.receiver_id) : "",
10464
10476
  clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
10477
+ is_talk: isSet(object.is_talk) ? globalThis.Boolean(object.is_talk) : false,
10465
10478
  };
10466
10479
  },
10467
10480
 
@@ -10482,6 +10495,9 @@ export const JoinPTTChannel = {
10482
10495
  if (message.clan_id !== "") {
10483
10496
  obj.clan_id = message.clan_id;
10484
10497
  }
10498
+ if (message.is_talk !== false) {
10499
+ obj.is_talk = message.is_talk;
10500
+ }
10485
10501
  return obj;
10486
10502
  },
10487
10503
 
@@ -10495,6 +10511,7 @@ export const JoinPTTChannel = {
10495
10511
  message.json_data = object.json_data ?? "";
10496
10512
  message.receiver_id = object.receiver_id ?? "";
10497
10513
  message.clan_id = object.clan_id ?? "";
10514
+ message.is_talk = object.is_talk ?? false;
10498
10515
  return message;
10499
10516
  },
10500
10517
  };