mezon-js-protobuf 1.6.39 → 1.6.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
@@ -1388,7 +1388,9 @@ export interface UpdateAccountRequest {
1388
1388
  /** update about me */
1389
1389
  about_me: string;
1390
1390
  /** date of birth */
1391
- dob: Date | undefined;
1391
+ dob:
1392
+ | Date
1393
+ | undefined;
1392
1394
  /** logo url */
1393
1395
  logo: string;
1394
1396
  /** splash screen */
@@ -3732,13 +3734,6 @@ export interface UpdateOnboardingStepRequest {
3732
3734
  onboarding_step: number | undefined;
3733
3735
  }
3734
3736
 
3735
- export interface CustomDisplay {
3736
- /** logo link */
3737
- logo: string;
3738
- /** splash_screen link */
3739
- splash_screen: string;
3740
- }
3741
-
3742
3737
  /** A list of users belonging to a channel, along with their role. */
3743
3738
  export interface PTTChannelUser {
3744
3739
  /** user join id */
@@ -3768,6 +3763,8 @@ export interface WalletLedger {
3768
3763
  | undefined;
3769
3764
  /** value */
3770
3765
  value: number;
3766
+ /** transaction id */
3767
+ transaction_id: string;
3771
3768
  }
3772
3769
 
3773
3770
  export interface WalletLedgerList {
@@ -3779,6 +3776,34 @@ export interface WalletLedgerList {
3779
3776
  export interface WalletLedgerListReq {
3780
3777
  limit: number | undefined;
3781
3778
  cursor: string;
3779
+ transaction_id: string;
3780
+ }
3781
+
3782
+ export interface SdTopic {
3783
+ id: string;
3784
+ creator_id: string;
3785
+ message_id: string;
3786
+ clan_id: string;
3787
+ channel_id: string;
3788
+ status: number;
3789
+ create_time: Date | undefined;
3790
+ update_time: Date | undefined;
3791
+ }
3792
+
3793
+ export interface SdTopicRequest {
3794
+ message_id: string;
3795
+ clan_id: string;
3796
+ channel_id: string;
3797
+ }
3798
+
3799
+ export interface SdTopicList {
3800
+ count: number;
3801
+ topics: SdTopic[];
3802
+ }
3803
+
3804
+ export interface ListSdTopicRequest {
3805
+ channel_id: string;
3806
+ limit: number;
3782
3807
  }
3783
3808
 
3784
3809
  function createBaseAccount(): Account {
@@ -36144,80 +36169,6 @@ export const UpdateOnboardingStepRequest = {
36144
36169
  },
36145
36170
  };
36146
36171
 
36147
- function createBaseCustomDisplay(): CustomDisplay {
36148
- return { logo: "", splash_screen: "" };
36149
- }
36150
-
36151
- export const CustomDisplay = {
36152
- encode(message: CustomDisplay, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
36153
- if (message.logo !== "") {
36154
- writer.uint32(10).string(message.logo);
36155
- }
36156
- if (message.splash_screen !== "") {
36157
- writer.uint32(18).string(message.splash_screen);
36158
- }
36159
- return writer;
36160
- },
36161
-
36162
- decode(input: _m0.Reader | Uint8Array, length?: number): CustomDisplay {
36163
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
36164
- let end = length === undefined ? reader.len : reader.pos + length;
36165
- const message = createBaseCustomDisplay();
36166
- while (reader.pos < end) {
36167
- const tag = reader.uint32();
36168
- switch (tag >>> 3) {
36169
- case 1:
36170
- if (tag !== 10) {
36171
- break;
36172
- }
36173
-
36174
- message.logo = reader.string();
36175
- continue;
36176
- case 2:
36177
- if (tag !== 18) {
36178
- break;
36179
- }
36180
-
36181
- message.splash_screen = reader.string();
36182
- continue;
36183
- }
36184
- if ((tag & 7) === 4 || tag === 0) {
36185
- break;
36186
- }
36187
- reader.skipType(tag & 7);
36188
- }
36189
- return message;
36190
- },
36191
-
36192
- fromJSON(object: any): CustomDisplay {
36193
- return {
36194
- logo: isSet(object.logo) ? globalThis.String(object.logo) : "",
36195
- splash_screen: isSet(object.splash_screen) ? globalThis.String(object.splash_screen) : "",
36196
- };
36197
- },
36198
-
36199
- toJSON(message: CustomDisplay): unknown {
36200
- const obj: any = {};
36201
- if (message.logo !== "") {
36202
- obj.logo = message.logo;
36203
- }
36204
- if (message.splash_screen !== "") {
36205
- obj.splash_screen = message.splash_screen;
36206
- }
36207
- return obj;
36208
- },
36209
-
36210
- create<I extends Exact<DeepPartial<CustomDisplay>, I>>(base?: I): CustomDisplay {
36211
- return CustomDisplay.fromPartial(base ?? ({} as any));
36212
- },
36213
- fromPartial<I extends Exact<DeepPartial<CustomDisplay>, I>>(object: I): CustomDisplay {
36214
- const message = createBaseCustomDisplay();
36215
- message.logo = object.logo ?? "";
36216
- message.splash_screen = object.splash_screen ?? "";
36217
- return message;
36218
- },
36219
- };
36220
-
36221
36172
  function createBasePTTChannelUser(): PTTChannelUser {
36222
36173
  return { id: "", user_id: "", channel_id: "", participant: "" };
36223
36174
  }
@@ -36384,7 +36335,7 @@ export const PTTChannelUserList = {
36384
36335
  };
36385
36336
 
36386
36337
  function createBaseWalletLedger(): WalletLedger {
36387
- return { id: "", user_id: "", create_time: undefined, value: 0 };
36338
+ return { id: "", user_id: "", create_time: undefined, value: 0, transaction_id: "" };
36388
36339
  }
36389
36340
 
36390
36341
  export const WalletLedger = {
@@ -36401,6 +36352,9 @@ export const WalletLedger = {
36401
36352
  if (message.value !== 0) {
36402
36353
  writer.uint32(32).int32(message.value);
36403
36354
  }
36355
+ if (message.transaction_id !== "") {
36356
+ writer.uint32(42).string(message.transaction_id);
36357
+ }
36404
36358
  return writer;
36405
36359
  },
36406
36360
 
@@ -36439,6 +36393,13 @@ export const WalletLedger = {
36439
36393
 
36440
36394
  message.value = reader.int32();
36441
36395
  continue;
36396
+ case 5:
36397
+ if (tag !== 42) {
36398
+ break;
36399
+ }
36400
+
36401
+ message.transaction_id = reader.string();
36402
+ continue;
36442
36403
  }
36443
36404
  if ((tag & 7) === 4 || tag === 0) {
36444
36405
  break;
@@ -36454,6 +36415,7 @@ export const WalletLedger = {
36454
36415
  user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
36455
36416
  create_time: isSet(object.create_time) ? fromJsonTimestamp(object.create_time) : undefined,
36456
36417
  value: isSet(object.value) ? globalThis.Number(object.value) : 0,
36418
+ transaction_id: isSet(object.transaction_id) ? globalThis.String(object.transaction_id) : "",
36457
36419
  };
36458
36420
  },
36459
36421
 
@@ -36471,6 +36433,9 @@ export const WalletLedger = {
36471
36433
  if (message.value !== 0) {
36472
36434
  obj.value = Math.round(message.value);
36473
36435
  }
36436
+ if (message.transaction_id !== "") {
36437
+ obj.transaction_id = message.transaction_id;
36438
+ }
36474
36439
  return obj;
36475
36440
  },
36476
36441
 
@@ -36483,6 +36448,7 @@ export const WalletLedger = {
36483
36448
  message.user_id = object.user_id ?? "";
36484
36449
  message.create_time = object.create_time ?? undefined;
36485
36450
  message.value = object.value ?? 0;
36451
+ message.transaction_id = object.transaction_id ?? "";
36486
36452
  return message;
36487
36453
  },
36488
36454
  };
@@ -36579,7 +36545,7 @@ export const WalletLedgerList = {
36579
36545
  };
36580
36546
 
36581
36547
  function createBaseWalletLedgerListReq(): WalletLedgerListReq {
36582
- return { limit: undefined, cursor: "" };
36548
+ return { limit: undefined, cursor: "", transaction_id: "" };
36583
36549
  }
36584
36550
 
36585
36551
  export const WalletLedgerListReq = {
@@ -36590,6 +36556,9 @@ export const WalletLedgerListReq = {
36590
36556
  if (message.cursor !== "") {
36591
36557
  writer.uint32(18).string(message.cursor);
36592
36558
  }
36559
+ if (message.transaction_id !== "") {
36560
+ writer.uint32(26).string(message.transaction_id);
36561
+ }
36593
36562
  return writer;
36594
36563
  },
36595
36564
 
@@ -36614,6 +36583,13 @@ export const WalletLedgerListReq = {
36614
36583
 
36615
36584
  message.cursor = reader.string();
36616
36585
  continue;
36586
+ case 3:
36587
+ if (tag !== 26) {
36588
+ break;
36589
+ }
36590
+
36591
+ message.transaction_id = reader.string();
36592
+ continue;
36617
36593
  }
36618
36594
  if ((tag & 7) === 4 || tag === 0) {
36619
36595
  break;
@@ -36627,6 +36603,7 @@ export const WalletLedgerListReq = {
36627
36603
  return {
36628
36604
  limit: isSet(object.limit) ? Number(object.limit) : undefined,
36629
36605
  cursor: isSet(object.cursor) ? globalThis.String(object.cursor) : "",
36606
+ transaction_id: isSet(object.transaction_id) ? globalThis.String(object.transaction_id) : "",
36630
36607
  };
36631
36608
  },
36632
36609
 
@@ -36638,6 +36615,9 @@ export const WalletLedgerListReq = {
36638
36615
  if (message.cursor !== "") {
36639
36616
  obj.cursor = message.cursor;
36640
36617
  }
36618
+ if (message.transaction_id !== "") {
36619
+ obj.transaction_id = message.transaction_id;
36620
+ }
36641
36621
  return obj;
36642
36622
  },
36643
36623
 
@@ -36648,6 +36628,417 @@ export const WalletLedgerListReq = {
36648
36628
  const message = createBaseWalletLedgerListReq();
36649
36629
  message.limit = object.limit ?? undefined;
36650
36630
  message.cursor = object.cursor ?? "";
36631
+ message.transaction_id = object.transaction_id ?? "";
36632
+ return message;
36633
+ },
36634
+ };
36635
+
36636
+ function createBaseSdTopic(): SdTopic {
36637
+ return {
36638
+ id: "",
36639
+ creator_id: "",
36640
+ message_id: "",
36641
+ clan_id: "",
36642
+ channel_id: "",
36643
+ status: 0,
36644
+ create_time: undefined,
36645
+ update_time: undefined,
36646
+ };
36647
+ }
36648
+
36649
+ export const SdTopic = {
36650
+ encode(message: SdTopic, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
36651
+ if (message.id !== "") {
36652
+ writer.uint32(10).string(message.id);
36653
+ }
36654
+ if (message.creator_id !== "") {
36655
+ writer.uint32(18).string(message.creator_id);
36656
+ }
36657
+ if (message.message_id !== "") {
36658
+ writer.uint32(26).string(message.message_id);
36659
+ }
36660
+ if (message.clan_id !== "") {
36661
+ writer.uint32(34).string(message.clan_id);
36662
+ }
36663
+ if (message.channel_id !== "") {
36664
+ writer.uint32(42).string(message.channel_id);
36665
+ }
36666
+ if (message.status !== 0) {
36667
+ writer.uint32(48).int32(message.status);
36668
+ }
36669
+ if (message.create_time !== undefined) {
36670
+ Timestamp.encode(toTimestamp(message.create_time), writer.uint32(58).fork()).ldelim();
36671
+ }
36672
+ if (message.update_time !== undefined) {
36673
+ Timestamp.encode(toTimestamp(message.update_time), writer.uint32(66).fork()).ldelim();
36674
+ }
36675
+ return writer;
36676
+ },
36677
+
36678
+ decode(input: _m0.Reader | Uint8Array, length?: number): SdTopic {
36679
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
36680
+ let end = length === undefined ? reader.len : reader.pos + length;
36681
+ const message = createBaseSdTopic();
36682
+ while (reader.pos < end) {
36683
+ const tag = reader.uint32();
36684
+ switch (tag >>> 3) {
36685
+ case 1:
36686
+ if (tag !== 10) {
36687
+ break;
36688
+ }
36689
+
36690
+ message.id = reader.string();
36691
+ continue;
36692
+ case 2:
36693
+ if (tag !== 18) {
36694
+ break;
36695
+ }
36696
+
36697
+ message.creator_id = reader.string();
36698
+ continue;
36699
+ case 3:
36700
+ if (tag !== 26) {
36701
+ break;
36702
+ }
36703
+
36704
+ message.message_id = reader.string();
36705
+ continue;
36706
+ case 4:
36707
+ if (tag !== 34) {
36708
+ break;
36709
+ }
36710
+
36711
+ message.clan_id = reader.string();
36712
+ continue;
36713
+ case 5:
36714
+ if (tag !== 42) {
36715
+ break;
36716
+ }
36717
+
36718
+ message.channel_id = reader.string();
36719
+ continue;
36720
+ case 6:
36721
+ if (tag !== 48) {
36722
+ break;
36723
+ }
36724
+
36725
+ message.status = reader.int32();
36726
+ continue;
36727
+ case 7:
36728
+ if (tag !== 58) {
36729
+ break;
36730
+ }
36731
+
36732
+ message.create_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
36733
+ continue;
36734
+ case 8:
36735
+ if (tag !== 66) {
36736
+ break;
36737
+ }
36738
+
36739
+ message.update_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
36740
+ continue;
36741
+ }
36742
+ if ((tag & 7) === 4 || tag === 0) {
36743
+ break;
36744
+ }
36745
+ reader.skipType(tag & 7);
36746
+ }
36747
+ return message;
36748
+ },
36749
+
36750
+ fromJSON(object: any): SdTopic {
36751
+ return {
36752
+ id: isSet(object.id) ? globalThis.String(object.id) : "",
36753
+ creator_id: isSet(object.creator_id) ? globalThis.String(object.creator_id) : "",
36754
+ message_id: isSet(object.message_id) ? globalThis.String(object.message_id) : "",
36755
+ clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
36756
+ channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
36757
+ status: isSet(object.status) ? globalThis.Number(object.status) : 0,
36758
+ create_time: isSet(object.create_time) ? fromJsonTimestamp(object.create_time) : undefined,
36759
+ update_time: isSet(object.update_time) ? fromJsonTimestamp(object.update_time) : undefined,
36760
+ };
36761
+ },
36762
+
36763
+ toJSON(message: SdTopic): unknown {
36764
+ const obj: any = {};
36765
+ if (message.id !== "") {
36766
+ obj.id = message.id;
36767
+ }
36768
+ if (message.creator_id !== "") {
36769
+ obj.creator_id = message.creator_id;
36770
+ }
36771
+ if (message.message_id !== "") {
36772
+ obj.message_id = message.message_id;
36773
+ }
36774
+ if (message.clan_id !== "") {
36775
+ obj.clan_id = message.clan_id;
36776
+ }
36777
+ if (message.channel_id !== "") {
36778
+ obj.channel_id = message.channel_id;
36779
+ }
36780
+ if (message.status !== 0) {
36781
+ obj.status = Math.round(message.status);
36782
+ }
36783
+ if (message.create_time !== undefined) {
36784
+ obj.create_time = message.create_time.toISOString();
36785
+ }
36786
+ if (message.update_time !== undefined) {
36787
+ obj.update_time = message.update_time.toISOString();
36788
+ }
36789
+ return obj;
36790
+ },
36791
+
36792
+ create<I extends Exact<DeepPartial<SdTopic>, I>>(base?: I): SdTopic {
36793
+ return SdTopic.fromPartial(base ?? ({} as any));
36794
+ },
36795
+ fromPartial<I extends Exact<DeepPartial<SdTopic>, I>>(object: I): SdTopic {
36796
+ const message = createBaseSdTopic();
36797
+ message.id = object.id ?? "";
36798
+ message.creator_id = object.creator_id ?? "";
36799
+ message.message_id = object.message_id ?? "";
36800
+ message.clan_id = object.clan_id ?? "";
36801
+ message.channel_id = object.channel_id ?? "";
36802
+ message.status = object.status ?? 0;
36803
+ message.create_time = object.create_time ?? undefined;
36804
+ message.update_time = object.update_time ?? undefined;
36805
+ return message;
36806
+ },
36807
+ };
36808
+
36809
+ function createBaseSdTopicRequest(): SdTopicRequest {
36810
+ return { message_id: "", clan_id: "", channel_id: "" };
36811
+ }
36812
+
36813
+ export const SdTopicRequest = {
36814
+ encode(message: SdTopicRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
36815
+ if (message.message_id !== "") {
36816
+ writer.uint32(10).string(message.message_id);
36817
+ }
36818
+ if (message.clan_id !== "") {
36819
+ writer.uint32(18).string(message.clan_id);
36820
+ }
36821
+ if (message.channel_id !== "") {
36822
+ writer.uint32(26).string(message.channel_id);
36823
+ }
36824
+ return writer;
36825
+ },
36826
+
36827
+ decode(input: _m0.Reader | Uint8Array, length?: number): SdTopicRequest {
36828
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
36829
+ let end = length === undefined ? reader.len : reader.pos + length;
36830
+ const message = createBaseSdTopicRequest();
36831
+ while (reader.pos < end) {
36832
+ const tag = reader.uint32();
36833
+ switch (tag >>> 3) {
36834
+ case 1:
36835
+ if (tag !== 10) {
36836
+ break;
36837
+ }
36838
+
36839
+ message.message_id = reader.string();
36840
+ continue;
36841
+ case 2:
36842
+ if (tag !== 18) {
36843
+ break;
36844
+ }
36845
+
36846
+ message.clan_id = reader.string();
36847
+ continue;
36848
+ case 3:
36849
+ if (tag !== 26) {
36850
+ break;
36851
+ }
36852
+
36853
+ message.channel_id = reader.string();
36854
+ continue;
36855
+ }
36856
+ if ((tag & 7) === 4 || tag === 0) {
36857
+ break;
36858
+ }
36859
+ reader.skipType(tag & 7);
36860
+ }
36861
+ return message;
36862
+ },
36863
+
36864
+ fromJSON(object: any): SdTopicRequest {
36865
+ return {
36866
+ message_id: isSet(object.message_id) ? globalThis.String(object.message_id) : "",
36867
+ clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
36868
+ channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
36869
+ };
36870
+ },
36871
+
36872
+ toJSON(message: SdTopicRequest): unknown {
36873
+ const obj: any = {};
36874
+ if (message.message_id !== "") {
36875
+ obj.message_id = message.message_id;
36876
+ }
36877
+ if (message.clan_id !== "") {
36878
+ obj.clan_id = message.clan_id;
36879
+ }
36880
+ if (message.channel_id !== "") {
36881
+ obj.channel_id = message.channel_id;
36882
+ }
36883
+ return obj;
36884
+ },
36885
+
36886
+ create<I extends Exact<DeepPartial<SdTopicRequest>, I>>(base?: I): SdTopicRequest {
36887
+ return SdTopicRequest.fromPartial(base ?? ({} as any));
36888
+ },
36889
+ fromPartial<I extends Exact<DeepPartial<SdTopicRequest>, I>>(object: I): SdTopicRequest {
36890
+ const message = createBaseSdTopicRequest();
36891
+ message.message_id = object.message_id ?? "";
36892
+ message.clan_id = object.clan_id ?? "";
36893
+ message.channel_id = object.channel_id ?? "";
36894
+ return message;
36895
+ },
36896
+ };
36897
+
36898
+ function createBaseSdTopicList(): SdTopicList {
36899
+ return { count: 0, topics: [] };
36900
+ }
36901
+
36902
+ export const SdTopicList = {
36903
+ encode(message: SdTopicList, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
36904
+ if (message.count !== 0) {
36905
+ writer.uint32(8).int32(message.count);
36906
+ }
36907
+ for (const v of message.topics) {
36908
+ SdTopic.encode(v!, writer.uint32(18).fork()).ldelim();
36909
+ }
36910
+ return writer;
36911
+ },
36912
+
36913
+ decode(input: _m0.Reader | Uint8Array, length?: number): SdTopicList {
36914
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
36915
+ let end = length === undefined ? reader.len : reader.pos + length;
36916
+ const message = createBaseSdTopicList();
36917
+ while (reader.pos < end) {
36918
+ const tag = reader.uint32();
36919
+ switch (tag >>> 3) {
36920
+ case 1:
36921
+ if (tag !== 8) {
36922
+ break;
36923
+ }
36924
+
36925
+ message.count = reader.int32();
36926
+ continue;
36927
+ case 2:
36928
+ if (tag !== 18) {
36929
+ break;
36930
+ }
36931
+
36932
+ message.topics.push(SdTopic.decode(reader, reader.uint32()));
36933
+ continue;
36934
+ }
36935
+ if ((tag & 7) === 4 || tag === 0) {
36936
+ break;
36937
+ }
36938
+ reader.skipType(tag & 7);
36939
+ }
36940
+ return message;
36941
+ },
36942
+
36943
+ fromJSON(object: any): SdTopicList {
36944
+ return {
36945
+ count: isSet(object.count) ? globalThis.Number(object.count) : 0,
36946
+ topics: globalThis.Array.isArray(object?.topics) ? object.topics.map((e: any) => SdTopic.fromJSON(e)) : [],
36947
+ };
36948
+ },
36949
+
36950
+ toJSON(message: SdTopicList): unknown {
36951
+ const obj: any = {};
36952
+ if (message.count !== 0) {
36953
+ obj.count = Math.round(message.count);
36954
+ }
36955
+ if (message.topics?.length) {
36956
+ obj.topics = message.topics.map((e) => SdTopic.toJSON(e));
36957
+ }
36958
+ return obj;
36959
+ },
36960
+
36961
+ create<I extends Exact<DeepPartial<SdTopicList>, I>>(base?: I): SdTopicList {
36962
+ return SdTopicList.fromPartial(base ?? ({} as any));
36963
+ },
36964
+ fromPartial<I extends Exact<DeepPartial<SdTopicList>, I>>(object: I): SdTopicList {
36965
+ const message = createBaseSdTopicList();
36966
+ message.count = object.count ?? 0;
36967
+ message.topics = object.topics?.map((e) => SdTopic.fromPartial(e)) || [];
36968
+ return message;
36969
+ },
36970
+ };
36971
+
36972
+ function createBaseListSdTopicRequest(): ListSdTopicRequest {
36973
+ return { channel_id: "", limit: 0 };
36974
+ }
36975
+
36976
+ export const ListSdTopicRequest = {
36977
+ encode(message: ListSdTopicRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
36978
+ if (message.channel_id !== "") {
36979
+ writer.uint32(10).string(message.channel_id);
36980
+ }
36981
+ if (message.limit !== 0) {
36982
+ writer.uint32(16).int32(message.limit);
36983
+ }
36984
+ return writer;
36985
+ },
36986
+
36987
+ decode(input: _m0.Reader | Uint8Array, length?: number): ListSdTopicRequest {
36988
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
36989
+ let end = length === undefined ? reader.len : reader.pos + length;
36990
+ const message = createBaseListSdTopicRequest();
36991
+ while (reader.pos < end) {
36992
+ const tag = reader.uint32();
36993
+ switch (tag >>> 3) {
36994
+ case 1:
36995
+ if (tag !== 10) {
36996
+ break;
36997
+ }
36998
+
36999
+ message.channel_id = reader.string();
37000
+ continue;
37001
+ case 2:
37002
+ if (tag !== 16) {
37003
+ break;
37004
+ }
37005
+
37006
+ message.limit = reader.int32();
37007
+ continue;
37008
+ }
37009
+ if ((tag & 7) === 4 || tag === 0) {
37010
+ break;
37011
+ }
37012
+ reader.skipType(tag & 7);
37013
+ }
37014
+ return message;
37015
+ },
37016
+
37017
+ fromJSON(object: any): ListSdTopicRequest {
37018
+ return {
37019
+ channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
37020
+ limit: isSet(object.limit) ? globalThis.Number(object.limit) : 0,
37021
+ };
37022
+ },
37023
+
37024
+ toJSON(message: ListSdTopicRequest): unknown {
37025
+ const obj: any = {};
37026
+ if (message.channel_id !== "") {
37027
+ obj.channel_id = message.channel_id;
37028
+ }
37029
+ if (message.limit !== 0) {
37030
+ obj.limit = Math.round(message.limit);
37031
+ }
37032
+ return obj;
37033
+ },
37034
+
37035
+ create<I extends Exact<DeepPartial<ListSdTopicRequest>, I>>(base?: I): ListSdTopicRequest {
37036
+ return ListSdTopicRequest.fromPartial(base ?? ({} as any));
37037
+ },
37038
+ fromPartial<I extends Exact<DeepPartial<ListSdTopicRequest>, I>>(object: I): ListSdTopicRequest {
37039
+ const message = createBaseListSdTopicRequest();
37040
+ message.channel_id = object.channel_id ?? "";
37041
+ message.limit = object.limit ?? 0;
36651
37042
  return message;
36652
37043
  },
36653
37044
  };
@@ -2997,12 +2997,6 @@ export interface UpdateOnboardingStepRequest {
2997
2997
  /** onboarding step. */
2998
2998
  onboarding_step: number | undefined;
2999
2999
  }
3000
- export interface CustomDisplay {
3001
- /** logo link */
3002
- logo: string;
3003
- /** splash_screen link */
3004
- splash_screen: string;
3005
- }
3006
3000
  /** A list of users belonging to a channel, along with their role. */
3007
3001
  export interface PTTChannelUser {
3008
3002
  /** user join id */
@@ -3028,6 +3022,8 @@ export interface WalletLedger {
3028
3022
  create_time: Date | undefined;
3029
3023
  /** value */
3030
3024
  value: number;
3025
+ /** transaction id */
3026
+ transaction_id: string;
3031
3027
  }
3032
3028
  export interface WalletLedgerList {
3033
3029
  wallet_ledger: WalletLedger[];
@@ -3037,6 +3033,30 @@ export interface WalletLedgerList {
3037
3033
  export interface WalletLedgerListReq {
3038
3034
  limit: number | undefined;
3039
3035
  cursor: string;
3036
+ transaction_id: string;
3037
+ }
3038
+ export interface SdTopic {
3039
+ id: string;
3040
+ creator_id: string;
3041
+ message_id: string;
3042
+ clan_id: string;
3043
+ channel_id: string;
3044
+ status: number;
3045
+ create_time: Date | undefined;
3046
+ update_time: Date | undefined;
3047
+ }
3048
+ export interface SdTopicRequest {
3049
+ message_id: string;
3050
+ clan_id: string;
3051
+ channel_id: string;
3052
+ }
3053
+ export interface SdTopicList {
3054
+ count: number;
3055
+ topics: SdTopic[];
3056
+ }
3057
+ export interface ListSdTopicRequest {
3058
+ channel_id: string;
3059
+ limit: number;
3040
3060
  }
3041
3061
  export declare const Account: {
3042
3062
  encode(message: Account, writer?: _m0.Writer): _m0.Writer;
@@ -20814,26 +20834,6 @@ export declare const UpdateOnboardingStepRequest: {
20814
20834
  onboarding_step?: number | undefined;
20815
20835
  } & { [K_1 in Exclude<keyof I_1, keyof UpdateOnboardingStepRequest>]: never; }>(object: I_1): UpdateOnboardingStepRequest;
20816
20836
  };
20817
- export declare const CustomDisplay: {
20818
- encode(message: CustomDisplay, writer?: _m0.Writer): _m0.Writer;
20819
- decode(input: _m0.Reader | Uint8Array, length?: number): CustomDisplay;
20820
- fromJSON(object: any): CustomDisplay;
20821
- toJSON(message: CustomDisplay): unknown;
20822
- create<I extends {
20823
- logo?: string | undefined;
20824
- splash_screen?: string | undefined;
20825
- } & {
20826
- logo?: string | undefined;
20827
- splash_screen?: string | undefined;
20828
- } & { [K in Exclude<keyof I, keyof CustomDisplay>]: never; }>(base?: I | undefined): CustomDisplay;
20829
- fromPartial<I_1 extends {
20830
- logo?: string | undefined;
20831
- splash_screen?: string | undefined;
20832
- } & {
20833
- logo?: string | undefined;
20834
- splash_screen?: string | undefined;
20835
- } & { [K_1 in Exclude<keyof I_1, keyof CustomDisplay>]: never; }>(object: I_1): CustomDisplay;
20836
- };
20837
20837
  export declare const PTTChannelUser: {
20838
20838
  encode(message: PTTChannelUser, writer?: _m0.Writer): _m0.Writer;
20839
20839
  decode(input: _m0.Reader | Uint8Array, length?: number): PTTChannelUser;
@@ -20938,22 +20938,26 @@ export declare const WalletLedger: {
20938
20938
  user_id?: string | undefined;
20939
20939
  create_time?: Date | undefined;
20940
20940
  value?: number | undefined;
20941
+ transaction_id?: string | undefined;
20941
20942
  } & {
20942
20943
  id?: string | undefined;
20943
20944
  user_id?: string | undefined;
20944
20945
  create_time?: Date | undefined;
20945
20946
  value?: number | undefined;
20947
+ transaction_id?: string | undefined;
20946
20948
  } & { [K in Exclude<keyof I, keyof WalletLedger>]: never; }>(base?: I | undefined): WalletLedger;
20947
20949
  fromPartial<I_1 extends {
20948
20950
  id?: string | undefined;
20949
20951
  user_id?: string | undefined;
20950
20952
  create_time?: Date | undefined;
20951
20953
  value?: number | undefined;
20954
+ transaction_id?: string | undefined;
20952
20955
  } & {
20953
20956
  id?: string | undefined;
20954
20957
  user_id?: string | undefined;
20955
20958
  create_time?: Date | undefined;
20956
20959
  value?: number | undefined;
20960
+ transaction_id?: string | undefined;
20957
20961
  } & { [K_1 in Exclude<keyof I_1, keyof WalletLedger>]: never; }>(object: I_1): WalletLedger;
20958
20962
  };
20959
20963
  export declare const WalletLedgerList: {
@@ -20967,6 +20971,7 @@ export declare const WalletLedgerList: {
20967
20971
  user_id?: string | undefined;
20968
20972
  create_time?: Date | undefined;
20969
20973
  value?: number | undefined;
20974
+ transaction_id?: string | undefined;
20970
20975
  }[] | undefined;
20971
20976
  prev_cursor?: string | undefined;
20972
20977
  next_cursor?: string | undefined;
@@ -20976,21 +20981,25 @@ export declare const WalletLedgerList: {
20976
20981
  user_id?: string | undefined;
20977
20982
  create_time?: Date | undefined;
20978
20983
  value?: number | undefined;
20984
+ transaction_id?: string | undefined;
20979
20985
  }[] & ({
20980
20986
  id?: string | undefined;
20981
20987
  user_id?: string | undefined;
20982
20988
  create_time?: Date | undefined;
20983
20989
  value?: number | undefined;
20990
+ transaction_id?: string | undefined;
20984
20991
  } & {
20985
20992
  id?: string | undefined;
20986
20993
  user_id?: string | undefined;
20987
20994
  create_time?: Date | undefined;
20988
20995
  value?: number | undefined;
20996
+ transaction_id?: string | undefined;
20989
20997
  } & { [K in Exclude<keyof I["wallet_ledger"][number], keyof WalletLedger>]: never; })[] & { [K_1 in Exclude<keyof I["wallet_ledger"], keyof {
20990
20998
  id?: string | undefined;
20991
20999
  user_id?: string | undefined;
20992
21000
  create_time?: Date | undefined;
20993
21001
  value?: number | undefined;
21002
+ transaction_id?: string | undefined;
20994
21003
  }[]>]: never; }) | undefined;
20995
21004
  prev_cursor?: string | undefined;
20996
21005
  next_cursor?: string | undefined;
@@ -21001,6 +21010,7 @@ export declare const WalletLedgerList: {
21001
21010
  user_id?: string | undefined;
21002
21011
  create_time?: Date | undefined;
21003
21012
  value?: number | undefined;
21013
+ transaction_id?: string | undefined;
21004
21014
  }[] | undefined;
21005
21015
  prev_cursor?: string | undefined;
21006
21016
  next_cursor?: string | undefined;
@@ -21010,21 +21020,25 @@ export declare const WalletLedgerList: {
21010
21020
  user_id?: string | undefined;
21011
21021
  create_time?: Date | undefined;
21012
21022
  value?: number | undefined;
21023
+ transaction_id?: string | undefined;
21013
21024
  }[] & ({
21014
21025
  id?: string | undefined;
21015
21026
  user_id?: string | undefined;
21016
21027
  create_time?: Date | undefined;
21017
21028
  value?: number | undefined;
21029
+ transaction_id?: string | undefined;
21018
21030
  } & {
21019
21031
  id?: string | undefined;
21020
21032
  user_id?: string | undefined;
21021
21033
  create_time?: Date | undefined;
21022
21034
  value?: number | undefined;
21035
+ transaction_id?: string | undefined;
21023
21036
  } & { [K_3 in Exclude<keyof I_1["wallet_ledger"][number], keyof WalletLedger>]: never; })[] & { [K_4 in Exclude<keyof I_1["wallet_ledger"], keyof {
21024
21037
  id?: string | undefined;
21025
21038
  user_id?: string | undefined;
21026
21039
  create_time?: Date | undefined;
21027
21040
  value?: number | undefined;
21041
+ transaction_id?: string | undefined;
21028
21042
  }[]>]: never; }) | undefined;
21029
21043
  prev_cursor?: string | undefined;
21030
21044
  next_cursor?: string | undefined;
@@ -21038,18 +21052,220 @@ export declare const WalletLedgerListReq: {
21038
21052
  create<I extends {
21039
21053
  limit?: number | undefined;
21040
21054
  cursor?: string | undefined;
21055
+ transaction_id?: string | undefined;
21041
21056
  } & {
21042
21057
  limit?: number | undefined;
21043
21058
  cursor?: string | undefined;
21059
+ transaction_id?: string | undefined;
21044
21060
  } & { [K in Exclude<keyof I, keyof WalletLedgerListReq>]: never; }>(base?: I | undefined): WalletLedgerListReq;
21045
21061
  fromPartial<I_1 extends {
21046
21062
  limit?: number | undefined;
21047
21063
  cursor?: string | undefined;
21064
+ transaction_id?: string | undefined;
21048
21065
  } & {
21049
21066
  limit?: number | undefined;
21050
21067
  cursor?: string | undefined;
21068
+ transaction_id?: string | undefined;
21051
21069
  } & { [K_1 in Exclude<keyof I_1, keyof WalletLedgerListReq>]: never; }>(object: I_1): WalletLedgerListReq;
21052
21070
  };
21071
+ export declare const SdTopic: {
21072
+ encode(message: SdTopic, writer?: _m0.Writer): _m0.Writer;
21073
+ decode(input: _m0.Reader | Uint8Array, length?: number): SdTopic;
21074
+ fromJSON(object: any): SdTopic;
21075
+ toJSON(message: SdTopic): unknown;
21076
+ create<I extends {
21077
+ id?: string | undefined;
21078
+ creator_id?: string | undefined;
21079
+ message_id?: string | undefined;
21080
+ clan_id?: string | undefined;
21081
+ channel_id?: string | undefined;
21082
+ status?: number | undefined;
21083
+ create_time?: Date | undefined;
21084
+ update_time?: Date | undefined;
21085
+ } & {
21086
+ id?: string | undefined;
21087
+ creator_id?: string | undefined;
21088
+ message_id?: string | undefined;
21089
+ clan_id?: string | undefined;
21090
+ channel_id?: string | undefined;
21091
+ status?: number | undefined;
21092
+ create_time?: Date | undefined;
21093
+ update_time?: Date | undefined;
21094
+ } & { [K in Exclude<keyof I, keyof SdTopic>]: never; }>(base?: I | undefined): SdTopic;
21095
+ fromPartial<I_1 extends {
21096
+ id?: string | undefined;
21097
+ creator_id?: string | undefined;
21098
+ message_id?: string | undefined;
21099
+ clan_id?: string | undefined;
21100
+ channel_id?: string | undefined;
21101
+ status?: number | undefined;
21102
+ create_time?: Date | undefined;
21103
+ update_time?: Date | undefined;
21104
+ } & {
21105
+ id?: string | undefined;
21106
+ creator_id?: string | undefined;
21107
+ message_id?: string | undefined;
21108
+ clan_id?: string | undefined;
21109
+ channel_id?: string | undefined;
21110
+ status?: number | undefined;
21111
+ create_time?: Date | undefined;
21112
+ update_time?: Date | undefined;
21113
+ } & { [K_1 in Exclude<keyof I_1, keyof SdTopic>]: never; }>(object: I_1): SdTopic;
21114
+ };
21115
+ export declare const SdTopicRequest: {
21116
+ encode(message: SdTopicRequest, writer?: _m0.Writer): _m0.Writer;
21117
+ decode(input: _m0.Reader | Uint8Array, length?: number): SdTopicRequest;
21118
+ fromJSON(object: any): SdTopicRequest;
21119
+ toJSON(message: SdTopicRequest): unknown;
21120
+ create<I extends {
21121
+ message_id?: string | undefined;
21122
+ clan_id?: string | undefined;
21123
+ channel_id?: string | undefined;
21124
+ } & {
21125
+ message_id?: string | undefined;
21126
+ clan_id?: string | undefined;
21127
+ channel_id?: string | undefined;
21128
+ } & { [K in Exclude<keyof I, keyof SdTopicRequest>]: never; }>(base?: I | undefined): SdTopicRequest;
21129
+ fromPartial<I_1 extends {
21130
+ message_id?: string | undefined;
21131
+ clan_id?: string | undefined;
21132
+ channel_id?: string | undefined;
21133
+ } & {
21134
+ message_id?: string | undefined;
21135
+ clan_id?: string | undefined;
21136
+ channel_id?: string | undefined;
21137
+ } & { [K_1 in Exclude<keyof I_1, keyof SdTopicRequest>]: never; }>(object: I_1): SdTopicRequest;
21138
+ };
21139
+ export declare const SdTopicList: {
21140
+ encode(message: SdTopicList, writer?: _m0.Writer): _m0.Writer;
21141
+ decode(input: _m0.Reader | Uint8Array, length?: number): SdTopicList;
21142
+ fromJSON(object: any): SdTopicList;
21143
+ toJSON(message: SdTopicList): unknown;
21144
+ create<I extends {
21145
+ count?: number | undefined;
21146
+ topics?: {
21147
+ id?: string | undefined;
21148
+ creator_id?: string | undefined;
21149
+ message_id?: string | undefined;
21150
+ clan_id?: string | undefined;
21151
+ channel_id?: string | undefined;
21152
+ status?: number | undefined;
21153
+ create_time?: Date | undefined;
21154
+ update_time?: Date | undefined;
21155
+ }[] | undefined;
21156
+ } & {
21157
+ count?: number | undefined;
21158
+ topics?: ({
21159
+ id?: string | undefined;
21160
+ creator_id?: string | undefined;
21161
+ message_id?: string | undefined;
21162
+ clan_id?: string | undefined;
21163
+ channel_id?: string | undefined;
21164
+ status?: number | undefined;
21165
+ create_time?: Date | undefined;
21166
+ update_time?: Date | undefined;
21167
+ }[] & ({
21168
+ id?: string | undefined;
21169
+ creator_id?: string | undefined;
21170
+ message_id?: string | undefined;
21171
+ clan_id?: string | undefined;
21172
+ channel_id?: string | undefined;
21173
+ status?: number | undefined;
21174
+ create_time?: Date | undefined;
21175
+ update_time?: Date | undefined;
21176
+ } & {
21177
+ id?: string | undefined;
21178
+ creator_id?: string | undefined;
21179
+ message_id?: string | undefined;
21180
+ clan_id?: string | undefined;
21181
+ channel_id?: string | undefined;
21182
+ status?: number | undefined;
21183
+ create_time?: Date | undefined;
21184
+ update_time?: Date | undefined;
21185
+ } & { [K in Exclude<keyof I["topics"][number], keyof SdTopic>]: never; })[] & { [K_1 in Exclude<keyof I["topics"], keyof {
21186
+ id?: string | undefined;
21187
+ creator_id?: string | undefined;
21188
+ message_id?: string | undefined;
21189
+ clan_id?: string | undefined;
21190
+ channel_id?: string | undefined;
21191
+ status?: number | undefined;
21192
+ create_time?: Date | undefined;
21193
+ update_time?: Date | undefined;
21194
+ }[]>]: never; }) | undefined;
21195
+ } & { [K_2 in Exclude<keyof I, keyof SdTopicList>]: never; }>(base?: I | undefined): SdTopicList;
21196
+ fromPartial<I_1 extends {
21197
+ count?: number | undefined;
21198
+ topics?: {
21199
+ id?: string | undefined;
21200
+ creator_id?: string | undefined;
21201
+ message_id?: string | undefined;
21202
+ clan_id?: string | undefined;
21203
+ channel_id?: string | undefined;
21204
+ status?: number | undefined;
21205
+ create_time?: Date | undefined;
21206
+ update_time?: Date | undefined;
21207
+ }[] | undefined;
21208
+ } & {
21209
+ count?: number | undefined;
21210
+ topics?: ({
21211
+ id?: string | undefined;
21212
+ creator_id?: string | undefined;
21213
+ message_id?: string | undefined;
21214
+ clan_id?: string | undefined;
21215
+ channel_id?: string | undefined;
21216
+ status?: number | undefined;
21217
+ create_time?: Date | undefined;
21218
+ update_time?: Date | undefined;
21219
+ }[] & ({
21220
+ id?: string | undefined;
21221
+ creator_id?: string | undefined;
21222
+ message_id?: string | undefined;
21223
+ clan_id?: string | undefined;
21224
+ channel_id?: string | undefined;
21225
+ status?: number | undefined;
21226
+ create_time?: Date | undefined;
21227
+ update_time?: Date | undefined;
21228
+ } & {
21229
+ id?: string | undefined;
21230
+ creator_id?: string | undefined;
21231
+ message_id?: string | undefined;
21232
+ clan_id?: string | undefined;
21233
+ channel_id?: string | undefined;
21234
+ status?: number | undefined;
21235
+ create_time?: Date | undefined;
21236
+ update_time?: Date | undefined;
21237
+ } & { [K_3 in Exclude<keyof I_1["topics"][number], keyof SdTopic>]: never; })[] & { [K_4 in Exclude<keyof I_1["topics"], keyof {
21238
+ id?: string | undefined;
21239
+ creator_id?: string | undefined;
21240
+ message_id?: string | undefined;
21241
+ clan_id?: string | undefined;
21242
+ channel_id?: string | undefined;
21243
+ status?: number | undefined;
21244
+ create_time?: Date | undefined;
21245
+ update_time?: Date | undefined;
21246
+ }[]>]: never; }) | undefined;
21247
+ } & { [K_5 in Exclude<keyof I_1, keyof SdTopicList>]: never; }>(object: I_1): SdTopicList;
21248
+ };
21249
+ export declare const ListSdTopicRequest: {
21250
+ encode(message: ListSdTopicRequest, writer?: _m0.Writer): _m0.Writer;
21251
+ decode(input: _m0.Reader | Uint8Array, length?: number): ListSdTopicRequest;
21252
+ fromJSON(object: any): ListSdTopicRequest;
21253
+ toJSON(message: ListSdTopicRequest): unknown;
21254
+ create<I extends {
21255
+ channel_id?: string | undefined;
21256
+ limit?: number | undefined;
21257
+ } & {
21258
+ channel_id?: string | undefined;
21259
+ limit?: number | undefined;
21260
+ } & { [K in Exclude<keyof I, keyof ListSdTopicRequest>]: never; }>(base?: I | undefined): ListSdTopicRequest;
21261
+ fromPartial<I_1 extends {
21262
+ channel_id?: string | undefined;
21263
+ limit?: number | undefined;
21264
+ } & {
21265
+ channel_id?: string | undefined;
21266
+ limit?: number | undefined;
21267
+ } & { [K_1 in Exclude<keyof I_1, keyof ListSdTopicRequest>]: never; }>(object: I_1): ListSdTopicRequest;
21268
+ };
21053
21269
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
21054
21270
  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 {} ? {
21055
21271
  [K in keyof T]?: DeepPartial<T[K]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js-protobuf",
3
- "version": "1.6.39",
3
+ "version": "1.6.40",
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",