mezon-js-protobuf 1.6.37 → 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
@@ -184,7 +184,13 @@ export interface Account {
184
184
  | Date
185
185
  | undefined;
186
186
  /** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the user's account was disabled/banned. */
187
- disable_time: Date | undefined;
187
+ disable_time:
188
+ | Date
189
+ | undefined;
190
+ /** Logo url */
191
+ logo: string;
192
+ /** Splash screen url */
193
+ splash_screen: string;
188
194
  }
189
195
 
190
196
  /** Obtain a new authentication token using a refresh token. */
@@ -1383,6 +1389,10 @@ export interface UpdateAccountRequest {
1383
1389
  about_me: string;
1384
1390
  /** date of birth */
1385
1391
  dob: Date | undefined;
1392
+ /** logo url */
1393
+ logo: string;
1394
+ /** splash screen */
1395
+ splash_screen: string;
1386
1396
  }
1387
1397
 
1388
1398
  /** Update fields in a given group. */
@@ -3729,6 +3739,24 @@ export interface CustomDisplay {
3729
3739
  splash_screen: string;
3730
3740
  }
3731
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
+
3732
3760
  export interface WalletLedger {
3733
3761
  /** change set id */
3734
3762
  id: string;
@@ -3740,8 +3768,6 @@ export interface WalletLedger {
3740
3768
  | undefined;
3741
3769
  /** value */
3742
3770
  value: number;
3743
- /** transaction id */
3744
- transaction_id: string;
3745
3771
  }
3746
3772
 
3747
3773
  export interface WalletLedgerList {
@@ -3753,7 +3779,6 @@ export interface WalletLedgerList {
3753
3779
  export interface WalletLedgerListReq {
3754
3780
  limit: number | undefined;
3755
3781
  cursor: string;
3756
- transaction_id: string;
3757
3782
  }
3758
3783
 
3759
3784
  function createBaseAccount(): Account {
@@ -3765,6 +3790,8 @@ function createBaseAccount(): Account {
3765
3790
  custom_id: "",
3766
3791
  verify_time: undefined,
3767
3792
  disable_time: undefined,
3793
+ logo: "",
3794
+ splash_screen: "",
3768
3795
  };
3769
3796
  }
3770
3797
 
@@ -3791,6 +3818,12 @@ export const Account = {
3791
3818
  if (message.disable_time !== undefined) {
3792
3819
  Timestamp.encode(toTimestamp(message.disable_time), writer.uint32(58).fork()).ldelim();
3793
3820
  }
3821
+ if (message.logo !== "") {
3822
+ writer.uint32(66).string(message.logo);
3823
+ }
3824
+ if (message.splash_screen !== "") {
3825
+ writer.uint32(74).string(message.splash_screen);
3826
+ }
3794
3827
  return writer;
3795
3828
  },
3796
3829
 
@@ -3850,6 +3883,20 @@ export const Account = {
3850
3883
 
3851
3884
  message.disable_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
3852
3885
  continue;
3886
+ case 8:
3887
+ if (tag !== 66) {
3888
+ break;
3889
+ }
3890
+
3891
+ message.logo = reader.string();
3892
+ continue;
3893
+ case 9:
3894
+ if (tag !== 74) {
3895
+ break;
3896
+ }
3897
+
3898
+ message.splash_screen = reader.string();
3899
+ continue;
3853
3900
  }
3854
3901
  if ((tag & 7) === 4 || tag === 0) {
3855
3902
  break;
@@ -3870,6 +3917,8 @@ export const Account = {
3870
3917
  custom_id: isSet(object.custom_id) ? globalThis.String(object.custom_id) : "",
3871
3918
  verify_time: isSet(object.verify_time) ? fromJsonTimestamp(object.verify_time) : undefined,
3872
3919
  disable_time: isSet(object.disable_time) ? fromJsonTimestamp(object.disable_time) : undefined,
3920
+ logo: isSet(object.logo) ? globalThis.String(object.logo) : "",
3921
+ splash_screen: isSet(object.splash_screen) ? globalThis.String(object.splash_screen) : "",
3873
3922
  };
3874
3923
  },
3875
3924
 
@@ -3896,6 +3945,12 @@ export const Account = {
3896
3945
  if (message.disable_time !== undefined) {
3897
3946
  obj.disable_time = message.disable_time.toISOString();
3898
3947
  }
3948
+ if (message.logo !== "") {
3949
+ obj.logo = message.logo;
3950
+ }
3951
+ if (message.splash_screen !== "") {
3952
+ obj.splash_screen = message.splash_screen;
3953
+ }
3899
3954
  return obj;
3900
3955
  },
3901
3956
 
@@ -3911,6 +3966,8 @@ export const Account = {
3911
3966
  message.custom_id = object.custom_id ?? "";
3912
3967
  message.verify_time = object.verify_time ?? undefined;
3913
3968
  message.disable_time = object.disable_time ?? undefined;
3969
+ message.logo = object.logo ?? "";
3970
+ message.splash_screen = object.splash_screen ?? "";
3914
3971
  return message;
3915
3972
  },
3916
3973
  };
@@ -13088,6 +13145,8 @@ function createBaseUpdateAccountRequest(): UpdateAccountRequest {
13088
13145
  timezone: undefined,
13089
13146
  about_me: "",
13090
13147
  dob: undefined,
13148
+ logo: "",
13149
+ splash_screen: "",
13091
13150
  };
13092
13151
  }
13093
13152
 
@@ -13117,6 +13176,12 @@ export const UpdateAccountRequest = {
13117
13176
  if (message.dob !== undefined) {
13118
13177
  Timestamp.encode(toTimestamp(message.dob), writer.uint32(66).fork()).ldelim();
13119
13178
  }
13179
+ if (message.logo !== "") {
13180
+ writer.uint32(74).string(message.logo);
13181
+ }
13182
+ if (message.splash_screen !== "") {
13183
+ writer.uint32(82).string(message.splash_screen);
13184
+ }
13120
13185
  return writer;
13121
13186
  },
13122
13187
 
@@ -13183,6 +13248,20 @@ export const UpdateAccountRequest = {
13183
13248
 
13184
13249
  message.dob = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
13185
13250
  continue;
13251
+ case 9:
13252
+ if (tag !== 74) {
13253
+ break;
13254
+ }
13255
+
13256
+ message.logo = reader.string();
13257
+ continue;
13258
+ case 10:
13259
+ if (tag !== 82) {
13260
+ break;
13261
+ }
13262
+
13263
+ message.splash_screen = reader.string();
13264
+ continue;
13186
13265
  }
13187
13266
  if ((tag & 7) === 4 || tag === 0) {
13188
13267
  break;
@@ -13202,6 +13281,8 @@ export const UpdateAccountRequest = {
13202
13281
  timezone: isSet(object.timezone) ? String(object.timezone) : undefined,
13203
13282
  about_me: isSet(object.about_me) ? globalThis.String(object.about_me) : "",
13204
13283
  dob: isSet(object.dob) ? fromJsonTimestamp(object.dob) : undefined,
13284
+ logo: isSet(object.logo) ? globalThis.String(object.logo) : "",
13285
+ splash_screen: isSet(object.splash_screen) ? globalThis.String(object.splash_screen) : "",
13205
13286
  };
13206
13287
  },
13207
13288
 
@@ -13231,6 +13312,12 @@ export const UpdateAccountRequest = {
13231
13312
  if (message.dob !== undefined) {
13232
13313
  obj.dob = message.dob.toISOString();
13233
13314
  }
13315
+ if (message.logo !== "") {
13316
+ obj.logo = message.logo;
13317
+ }
13318
+ if (message.splash_screen !== "") {
13319
+ obj.splash_screen = message.splash_screen;
13320
+ }
13234
13321
  return obj;
13235
13322
  },
13236
13323
 
@@ -13247,6 +13334,8 @@ export const UpdateAccountRequest = {
13247
13334
  message.timezone = object.timezone ?? undefined;
13248
13335
  message.about_me = object.about_me ?? "";
13249
13336
  message.dob = object.dob ?? undefined;
13337
+ message.logo = object.logo ?? "";
13338
+ message.splash_screen = object.splash_screen ?? "";
13250
13339
  return message;
13251
13340
  },
13252
13341
  };
@@ -36129,8 +36218,173 @@ export const CustomDisplay = {
36129
36218
  },
36130
36219
  };
36131
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
+
36132
36386
  function createBaseWalletLedger(): WalletLedger {
36133
- return { id: "", user_id: "", create_time: undefined, value: 0, transaction_id: "" };
36387
+ return { id: "", user_id: "", create_time: undefined, value: 0 };
36134
36388
  }
36135
36389
 
36136
36390
  export const WalletLedger = {
@@ -36147,9 +36401,6 @@ export const WalletLedger = {
36147
36401
  if (message.value !== 0) {
36148
36402
  writer.uint32(32).int32(message.value);
36149
36403
  }
36150
- if (message.transaction_id !== "") {
36151
- writer.uint32(42).string(message.transaction_id);
36152
- }
36153
36404
  return writer;
36154
36405
  },
36155
36406
 
@@ -36188,13 +36439,6 @@ export const WalletLedger = {
36188
36439
 
36189
36440
  message.value = reader.int32();
36190
36441
  continue;
36191
- case 5:
36192
- if (tag !== 42) {
36193
- break;
36194
- }
36195
-
36196
- message.transaction_id = reader.string();
36197
- continue;
36198
36442
  }
36199
36443
  if ((tag & 7) === 4 || tag === 0) {
36200
36444
  break;
@@ -36210,7 +36454,6 @@ export const WalletLedger = {
36210
36454
  user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
36211
36455
  create_time: isSet(object.create_time) ? fromJsonTimestamp(object.create_time) : undefined,
36212
36456
  value: isSet(object.value) ? globalThis.Number(object.value) : 0,
36213
- transaction_id: isSet(object.transaction_id) ? globalThis.String(object.transaction_id) : "",
36214
36457
  };
36215
36458
  },
36216
36459
 
@@ -36228,9 +36471,6 @@ export const WalletLedger = {
36228
36471
  if (message.value !== 0) {
36229
36472
  obj.value = Math.round(message.value);
36230
36473
  }
36231
- if (message.transaction_id !== "") {
36232
- obj.transaction_id = message.transaction_id;
36233
- }
36234
36474
  return obj;
36235
36475
  },
36236
36476
 
@@ -36243,7 +36483,6 @@ export const WalletLedger = {
36243
36483
  message.user_id = object.user_id ?? "";
36244
36484
  message.create_time = object.create_time ?? undefined;
36245
36485
  message.value = object.value ?? 0;
36246
- message.transaction_id = object.transaction_id ?? "";
36247
36486
  return message;
36248
36487
  },
36249
36488
  };
@@ -36340,7 +36579,7 @@ export const WalletLedgerList = {
36340
36579
  };
36341
36580
 
36342
36581
  function createBaseWalletLedgerListReq(): WalletLedgerListReq {
36343
- return { limit: undefined, cursor: "", transaction_id: "" };
36582
+ return { limit: undefined, cursor: "" };
36344
36583
  }
36345
36584
 
36346
36585
  export const WalletLedgerListReq = {
@@ -36351,9 +36590,6 @@ export const WalletLedgerListReq = {
36351
36590
  if (message.cursor !== "") {
36352
36591
  writer.uint32(18).string(message.cursor);
36353
36592
  }
36354
- if (message.transaction_id !== "") {
36355
- writer.uint32(26).string(message.transaction_id);
36356
- }
36357
36593
  return writer;
36358
36594
  },
36359
36595
 
@@ -36378,13 +36614,6 @@ export const WalletLedgerListReq = {
36378
36614
 
36379
36615
  message.cursor = reader.string();
36380
36616
  continue;
36381
- case 3:
36382
- if (tag !== 26) {
36383
- break;
36384
- }
36385
-
36386
- message.transaction_id = reader.string();
36387
- continue;
36388
36617
  }
36389
36618
  if ((tag & 7) === 4 || tag === 0) {
36390
36619
  break;
@@ -36398,7 +36627,6 @@ export const WalletLedgerListReq = {
36398
36627
  return {
36399
36628
  limit: isSet(object.limit) ? Number(object.limit) : undefined,
36400
36629
  cursor: isSet(object.cursor) ? globalThis.String(object.cursor) : "",
36401
- transaction_id: isSet(object.transaction_id) ? globalThis.String(object.transaction_id) : "",
36402
36630
  };
36403
36631
  },
36404
36632
 
@@ -36410,9 +36638,6 @@ export const WalletLedgerListReq = {
36410
36638
  if (message.cursor !== "") {
36411
36639
  obj.cursor = message.cursor;
36412
36640
  }
36413
- if (message.transaction_id !== "") {
36414
- obj.transaction_id = message.transaction_id;
36415
- }
36416
36641
  return obj;
36417
36642
  },
36418
36643
 
@@ -36423,7 +36648,6 @@ export const WalletLedgerListReq = {
36423
36648
  const message = createBaseWalletLedgerListReq();
36424
36649
  message.limit = object.limit ?? undefined;
36425
36650
  message.cursor = object.cursor ?? "";
36426
- message.transaction_id = object.transaction_id ?? "";
36427
36651
  return message;
36428
36652
  },
36429
36653
  };
@@ -0,0 +1,4 @@
1
+ export declare function buildFetchOptions(method: string, options: any, bodyJson: string): any;
2
+ export declare function b64EncodeUnicode(str: string): string;
3
+ export declare function b64DecodeUnicode(str: string): string;
4
+ export declare function safeJSONParse(jsonString: string): any;
@@ -59,6 +59,10 @@ export interface Account {
59
59
  verify_time: Date | undefined;
60
60
  /** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the user's account was disabled/banned. */
61
61
  disable_time: Date | undefined;
62
+ /** Logo url */
63
+ logo: string;
64
+ /** Splash screen url */
65
+ splash_screen: string;
62
66
  }
63
67
  /** Obtain a new authentication token using a refresh token. */
64
68
  export interface AccountRefresh {
@@ -1008,6 +1012,10 @@ export interface UpdateAccountRequest {
1008
1012
  about_me: string;
1009
1013
  /** date of birth */
1010
1014
  dob: Date | undefined;
1015
+ /** logo url */
1016
+ logo: string;
1017
+ /** splash screen */
1018
+ splash_screen: string;
1011
1019
  }
1012
1020
  /** Update fields in a given group. */
1013
1021
  export interface UpdateGroupRequest {
@@ -2995,6 +3003,22 @@ export interface CustomDisplay {
2995
3003
  /** splash_screen link */
2996
3004
  splash_screen: string;
2997
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
+ }
2998
3022
  export interface WalletLedger {
2999
3023
  /** change set id */
3000
3024
  id: string;
@@ -3004,8 +3028,6 @@ export interface WalletLedger {
3004
3028
  create_time: Date | undefined;
3005
3029
  /** value */
3006
3030
  value: number;
3007
- /** transaction id */
3008
- transaction_id: string;
3009
3031
  }
3010
3032
  export interface WalletLedgerList {
3011
3033
  wallet_ledger: WalletLedger[];
@@ -3015,7 +3037,6 @@ export interface WalletLedgerList {
3015
3037
  export interface WalletLedgerListReq {
3016
3038
  limit: number | undefined;
3017
3039
  cursor: string;
3018
- transaction_id: string;
3019
3040
  }
3020
3041
  export declare const Account: {
3021
3042
  encode(message: Account, writer?: _m0.Writer): _m0.Writer;
@@ -3057,6 +3078,8 @@ export declare const Account: {
3057
3078
  custom_id?: string | undefined;
3058
3079
  verify_time?: Date | undefined;
3059
3080
  disable_time?: Date | undefined;
3081
+ logo?: string | undefined;
3082
+ splash_screen?: string | undefined;
3060
3083
  } & {
3061
3084
  user?: ({
3062
3085
  id?: string | undefined;
@@ -3131,6 +3154,8 @@ export declare const Account: {
3131
3154
  custom_id?: string | undefined;
3132
3155
  verify_time?: Date | undefined;
3133
3156
  disable_time?: Date | undefined;
3157
+ logo?: string | undefined;
3158
+ splash_screen?: string | undefined;
3134
3159
  } & { [K_4 in Exclude<keyof I, keyof Account>]: never; }>(base?: I | undefined): Account;
3135
3160
  fromPartial<I_1 extends {
3136
3161
  user?: {
@@ -3167,6 +3192,8 @@ export declare const Account: {
3167
3192
  custom_id?: string | undefined;
3168
3193
  verify_time?: Date | undefined;
3169
3194
  disable_time?: Date | undefined;
3195
+ logo?: string | undefined;
3196
+ splash_screen?: string | undefined;
3170
3197
  } & {
3171
3198
  user?: ({
3172
3199
  id?: string | undefined;
@@ -3241,6 +3268,8 @@ export declare const Account: {
3241
3268
  custom_id?: string | undefined;
3242
3269
  verify_time?: Date | undefined;
3243
3270
  disable_time?: Date | undefined;
3271
+ logo?: string | undefined;
3272
+ splash_screen?: string | undefined;
3244
3273
  } & { [K_9 in Exclude<keyof I_1, keyof Account>]: never; }>(object: I_1): Account;
3245
3274
  };
3246
3275
  export declare const AccountRefresh: {
@@ -8395,6 +8424,8 @@ export declare const UpdateAccountRequest: {
8395
8424
  timezone?: string | undefined;
8396
8425
  about_me?: string | undefined;
8397
8426
  dob?: Date | undefined;
8427
+ logo?: string | undefined;
8428
+ splash_screen?: string | undefined;
8398
8429
  } & {
8399
8430
  username?: string | undefined;
8400
8431
  display_name?: string | undefined;
@@ -8404,6 +8435,8 @@ export declare const UpdateAccountRequest: {
8404
8435
  timezone?: string | undefined;
8405
8436
  about_me?: string | undefined;
8406
8437
  dob?: Date | undefined;
8438
+ logo?: string | undefined;
8439
+ splash_screen?: string | undefined;
8407
8440
  } & { [K in Exclude<keyof I, keyof UpdateAccountRequest>]: never; }>(base?: I | undefined): UpdateAccountRequest;
8408
8441
  fromPartial<I_1 extends {
8409
8442
  username?: string | undefined;
@@ -8414,6 +8447,8 @@ export declare const UpdateAccountRequest: {
8414
8447
  timezone?: string | undefined;
8415
8448
  about_me?: string | undefined;
8416
8449
  dob?: Date | undefined;
8450
+ logo?: string | undefined;
8451
+ splash_screen?: string | undefined;
8417
8452
  } & {
8418
8453
  username?: string | undefined;
8419
8454
  display_name?: string | undefined;
@@ -8423,6 +8458,8 @@ export declare const UpdateAccountRequest: {
8423
8458
  timezone?: string | undefined;
8424
8459
  about_me?: string | undefined;
8425
8460
  dob?: Date | undefined;
8461
+ logo?: string | undefined;
8462
+ splash_screen?: string | undefined;
8426
8463
  } & { [K_1 in Exclude<keyof I_1, keyof UpdateAccountRequest>]: never; }>(object: I_1): UpdateAccountRequest;
8427
8464
  };
8428
8465
  export declare const UpdateGroupRequest: {
@@ -20797,6 +20834,100 @@ export declare const CustomDisplay: {
20797
20834
  splash_screen?: string | undefined;
20798
20835
  } & { [K_1 in Exclude<keyof I_1, keyof CustomDisplay>]: never; }>(object: I_1): CustomDisplay;
20799
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
+ };
20800
20931
  export declare const WalletLedger: {
20801
20932
  encode(message: WalletLedger, writer?: _m0.Writer): _m0.Writer;
20802
20933
  decode(input: _m0.Reader | Uint8Array, length?: number): WalletLedger;
@@ -20807,26 +20938,22 @@ export declare const WalletLedger: {
20807
20938
  user_id?: string | undefined;
20808
20939
  create_time?: Date | undefined;
20809
20940
  value?: number | undefined;
20810
- transaction_id?: string | undefined;
20811
20941
  } & {
20812
20942
  id?: string | undefined;
20813
20943
  user_id?: string | undefined;
20814
20944
  create_time?: Date | undefined;
20815
20945
  value?: number | undefined;
20816
- transaction_id?: string | undefined;
20817
20946
  } & { [K in Exclude<keyof I, keyof WalletLedger>]: never; }>(base?: I | undefined): WalletLedger;
20818
20947
  fromPartial<I_1 extends {
20819
20948
  id?: string | undefined;
20820
20949
  user_id?: string | undefined;
20821
20950
  create_time?: Date | undefined;
20822
20951
  value?: number | undefined;
20823
- transaction_id?: string | undefined;
20824
20952
  } & {
20825
20953
  id?: string | undefined;
20826
20954
  user_id?: string | undefined;
20827
20955
  create_time?: Date | undefined;
20828
20956
  value?: number | undefined;
20829
- transaction_id?: string | undefined;
20830
20957
  } & { [K_1 in Exclude<keyof I_1, keyof WalletLedger>]: never; }>(object: I_1): WalletLedger;
20831
20958
  };
20832
20959
  export declare const WalletLedgerList: {
@@ -20840,7 +20967,6 @@ export declare const WalletLedgerList: {
20840
20967
  user_id?: string | undefined;
20841
20968
  create_time?: Date | undefined;
20842
20969
  value?: number | undefined;
20843
- transaction_id?: string | undefined;
20844
20970
  }[] | undefined;
20845
20971
  prev_cursor?: string | undefined;
20846
20972
  next_cursor?: string | undefined;
@@ -20850,25 +20976,21 @@ export declare const WalletLedgerList: {
20850
20976
  user_id?: string | undefined;
20851
20977
  create_time?: Date | undefined;
20852
20978
  value?: number | undefined;
20853
- transaction_id?: string | undefined;
20854
20979
  }[] & ({
20855
20980
  id?: string | undefined;
20856
20981
  user_id?: string | undefined;
20857
20982
  create_time?: Date | undefined;
20858
20983
  value?: number | undefined;
20859
- transaction_id?: string | undefined;
20860
20984
  } & {
20861
20985
  id?: string | undefined;
20862
20986
  user_id?: string | undefined;
20863
20987
  create_time?: Date | undefined;
20864
20988
  value?: number | undefined;
20865
- transaction_id?: string | undefined;
20866
20989
  } & { [K in Exclude<keyof I["wallet_ledger"][number], keyof WalletLedger>]: never; })[] & { [K_1 in Exclude<keyof I["wallet_ledger"], keyof {
20867
20990
  id?: string | undefined;
20868
20991
  user_id?: string | undefined;
20869
20992
  create_time?: Date | undefined;
20870
20993
  value?: number | undefined;
20871
- transaction_id?: string | undefined;
20872
20994
  }[]>]: never; }) | undefined;
20873
20995
  prev_cursor?: string | undefined;
20874
20996
  next_cursor?: string | undefined;
@@ -20879,7 +21001,6 @@ export declare const WalletLedgerList: {
20879
21001
  user_id?: string | undefined;
20880
21002
  create_time?: Date | undefined;
20881
21003
  value?: number | undefined;
20882
- transaction_id?: string | undefined;
20883
21004
  }[] | undefined;
20884
21005
  prev_cursor?: string | undefined;
20885
21006
  next_cursor?: string | undefined;
@@ -20889,25 +21010,21 @@ export declare const WalletLedgerList: {
20889
21010
  user_id?: string | undefined;
20890
21011
  create_time?: Date | undefined;
20891
21012
  value?: number | undefined;
20892
- transaction_id?: string | undefined;
20893
21013
  }[] & ({
20894
21014
  id?: string | undefined;
20895
21015
  user_id?: string | undefined;
20896
21016
  create_time?: Date | undefined;
20897
21017
  value?: number | undefined;
20898
- transaction_id?: string | undefined;
20899
21018
  } & {
20900
21019
  id?: string | undefined;
20901
21020
  user_id?: string | undefined;
20902
21021
  create_time?: Date | undefined;
20903
21022
  value?: number | undefined;
20904
- transaction_id?: string | undefined;
20905
21023
  } & { [K_3 in Exclude<keyof I_1["wallet_ledger"][number], keyof WalletLedger>]: never; })[] & { [K_4 in Exclude<keyof I_1["wallet_ledger"], keyof {
20906
21024
  id?: string | undefined;
20907
21025
  user_id?: string | undefined;
20908
21026
  create_time?: Date | undefined;
20909
21027
  value?: number | undefined;
20910
- transaction_id?: string | undefined;
20911
21028
  }[]>]: never; }) | undefined;
20912
21029
  prev_cursor?: string | undefined;
20913
21030
  next_cursor?: string | undefined;
@@ -20921,20 +21038,16 @@ export declare const WalletLedgerListReq: {
20921
21038
  create<I extends {
20922
21039
  limit?: number | undefined;
20923
21040
  cursor?: string | undefined;
20924
- transaction_id?: string | undefined;
20925
21041
  } & {
20926
21042
  limit?: number | undefined;
20927
21043
  cursor?: string | undefined;
20928
- transaction_id?: string | undefined;
20929
21044
  } & { [K in Exclude<keyof I, keyof WalletLedgerListReq>]: never; }>(base?: I | undefined): WalletLedgerListReq;
20930
21045
  fromPartial<I_1 extends {
20931
21046
  limit?: number | undefined;
20932
21047
  cursor?: string | undefined;
20933
- transaction_id?: string | undefined;
20934
21048
  } & {
20935
21049
  limit?: number | undefined;
20936
21050
  cursor?: string | undefined;
20937
- transaction_id?: string | undefined;
20938
21051
  } & { [K_1 in Exclude<keyof I_1, keyof WalletLedgerListReq>]: never; }>(object: I_1): WalletLedgerListReq;
20939
21052
  };
20940
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.37",
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
  };