mezon-js 2.14.44 → 2.14.46

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
@@ -2270,7 +2270,7 @@ export interface SearchMessageDocument {
2270
2270
  /** Reactions */
2271
2271
  reactions: string;
2272
2272
  /** Attachment */
2273
- attachments: MessageAttachment[];
2273
+ attachments: string;
2274
2274
  /** Reference users */
2275
2275
  references: string;
2276
2276
  /** Message create time */
@@ -22758,7 +22758,7 @@ function createBaseSearchMessageDocument(): SearchMessageDocument {
22758
22758
  content: "",
22759
22759
  mentions: "",
22760
22760
  reactions: "",
22761
- attachments: [],
22761
+ attachments: "",
22762
22762
  references: "",
22763
22763
  create_time: "",
22764
22764
  update_time: "",
@@ -22794,8 +22794,8 @@ export const SearchMessageDocument = {
22794
22794
  if (message.reactions !== "") {
22795
22795
  writer.uint32(58).string(message.reactions);
22796
22796
  }
22797
- for (const v of message.attachments) {
22798
- MessageAttachment.encode(v!, writer.uint32(66).fork()).ldelim();
22797
+ if (message.attachments !== "") {
22798
+ writer.uint32(66).string(message.attachments);
22799
22799
  }
22800
22800
  if (message.references !== "") {
22801
22801
  writer.uint32(74).string(message.references);
@@ -22888,7 +22888,7 @@ export const SearchMessageDocument = {
22888
22888
  break;
22889
22889
  }
22890
22890
 
22891
- message.attachments.push(MessageAttachment.decode(reader, reader.uint32()));
22891
+ message.attachments = reader.string();
22892
22892
  continue;
22893
22893
  case 9:
22894
22894
  if (tag !== 74) {
@@ -22971,9 +22971,7 @@ export const SearchMessageDocument = {
22971
22971
  content: isSet(object.content) ? globalThis.String(object.content) : "",
22972
22972
  mentions: isSet(object.mentions) ? globalThis.String(object.mentions) : "",
22973
22973
  reactions: isSet(object.reactions) ? globalThis.String(object.reactions) : "",
22974
- attachments: globalThis.Array.isArray(object?.attachments)
22975
- ? object.attachments.map((e: any) => MessageAttachment.fromJSON(e))
22976
- : [],
22974
+ attachments: isSet(object.attachments) ? globalThis.String(object.attachments) : "",
22977
22975
  references: isSet(object.references) ? globalThis.String(object.references) : "",
22978
22976
  create_time: isSet(object.create_time) ? globalThis.String(object.create_time) : "",
22979
22977
  update_time: isSet(object.update_time) ? globalThis.String(object.update_time) : "",
@@ -23009,8 +23007,8 @@ export const SearchMessageDocument = {
23009
23007
  if (message.reactions !== "") {
23010
23008
  obj.reactions = message.reactions;
23011
23009
  }
23012
- if (message.attachments?.length) {
23013
- obj.attachments = message.attachments.map((e) => MessageAttachment.toJSON(e));
23010
+ if (message.attachments !== "") {
23011
+ obj.attachments = message.attachments;
23014
23012
  }
23015
23013
  if (message.references !== "") {
23016
23014
  obj.references = message.references;
@@ -23054,7 +23052,7 @@ export const SearchMessageDocument = {
23054
23052
  message.content = object.content ?? "";
23055
23053
  message.mentions = object.mentions ?? "";
23056
23054
  message.reactions = object.reactions ?? "";
23057
- message.attachments = object.attachments?.map((e) => MessageAttachment.fromPartial(e)) || [];
23055
+ message.attachments = object.attachments ?? "";
23058
23056
  message.references = object.references ?? "";
23059
23057
  message.create_time = object.create_time ?? "";
23060
23058
  message.update_time = object.update_time ?? "";
package/api.gen.ts CHANGED
@@ -754,7 +754,7 @@ export interface ApiChannelAppResponse {
754
754
  /** */
755
755
  export interface ApiChannelAttachment {
756
756
  //The UNIX time (for gRPC clients) or ISO string (for REST clients) when the group was created.
757
- create_time?: string;
757
+ create_time_seconds?: number;
758
758
  //
759
759
  filename?: string;
760
760
  //
@@ -2425,7 +2425,7 @@ export interface ApiSdTopicRequest {
2425
2425
  /** */
2426
2426
  export interface ApiSearchMessageDocument {
2427
2427
  //
2428
- attachments?: Array<ApiMessageAttachment>;
2428
+ attachments?: string;
2429
2429
  //
2430
2430
  avatar_url?: string;
2431
2431
  //The channel ID.
package/client.ts CHANGED
@@ -1396,7 +1396,7 @@ export class Client {
1396
1396
  uploader: at.uploader,
1397
1397
  url: at.url,
1398
1398
  message_id: at.message_id,
1399
- create_time: at.create_time,
1399
+ create_time_seconds: at.create_time_seconds,
1400
1400
  width: at.width,
1401
1401
  height: at.height,
1402
1402
  });
package/dist/api/api.d.ts CHANGED
@@ -1845,7 +1845,7 @@ export interface SearchMessageDocument {
1845
1845
  /** Reactions */
1846
1846
  reactions: string;
1847
1847
  /** Attachment */
1848
- attachments: MessageAttachment[];
1848
+ attachments: string;
1849
1849
  /** Reference users */
1850
1850
  references: string;
1851
1851
  /** Message create time */
@@ -14406,16 +14406,7 @@ export declare const SearchMessageDocument: {
14406
14406
  content?: string | undefined;
14407
14407
  mentions?: string | undefined;
14408
14408
  reactions?: string | undefined;
14409
- attachments?: {
14410
- filename?: string | undefined;
14411
- size?: number | undefined;
14412
- url?: string | undefined;
14413
- filetype?: string | undefined;
14414
- width?: number | undefined;
14415
- height?: number | undefined;
14416
- thumbnail?: string | undefined;
14417
- duration?: number | undefined;
14418
- }[] | undefined;
14409
+ attachments?: string | undefined;
14419
14410
  references?: string | undefined;
14420
14411
  create_time?: string | undefined;
14421
14412
  update_time?: string | undefined;
@@ -14433,43 +14424,7 @@ export declare const SearchMessageDocument: {
14433
14424
  content?: string | undefined;
14434
14425
  mentions?: string | undefined;
14435
14426
  reactions?: string | undefined;
14436
- attachments?: ({
14437
- filename?: string | undefined;
14438
- size?: number | undefined;
14439
- url?: string | undefined;
14440
- filetype?: string | undefined;
14441
- width?: number | undefined;
14442
- height?: number | undefined;
14443
- thumbnail?: string | undefined;
14444
- duration?: number | undefined;
14445
- }[] & ({
14446
- filename?: string | undefined;
14447
- size?: number | undefined;
14448
- url?: string | undefined;
14449
- filetype?: string | undefined;
14450
- width?: number | undefined;
14451
- height?: number | undefined;
14452
- thumbnail?: string | undefined;
14453
- duration?: number | undefined;
14454
- } & {
14455
- filename?: string | undefined;
14456
- size?: number | undefined;
14457
- url?: string | undefined;
14458
- filetype?: string | undefined;
14459
- width?: number | undefined;
14460
- height?: number | undefined;
14461
- thumbnail?: string | undefined;
14462
- duration?: number | undefined;
14463
- } & { [K in Exclude<keyof I["attachments"][number], keyof MessageAttachment>]: never; })[] & { [K_1 in Exclude<keyof I["attachments"], keyof {
14464
- filename?: string | undefined;
14465
- size?: number | undefined;
14466
- url?: string | undefined;
14467
- filetype?: string | undefined;
14468
- width?: number | undefined;
14469
- height?: number | undefined;
14470
- thumbnail?: string | undefined;
14471
- duration?: number | undefined;
14472
- }[]>]: never; }) | undefined;
14427
+ attachments?: string | undefined;
14473
14428
  references?: string | undefined;
14474
14429
  create_time?: string | undefined;
14475
14430
  update_time?: string | undefined;
@@ -14479,7 +14434,7 @@ export declare const SearchMessageDocument: {
14479
14434
  username?: string | undefined;
14480
14435
  display_name?: string | undefined;
14481
14436
  avatar_url?: string | undefined;
14482
- } & { [K_2 in Exclude<keyof I, keyof SearchMessageDocument>]: never; }>(base?: I | undefined): SearchMessageDocument;
14437
+ } & { [K in Exclude<keyof I, keyof SearchMessageDocument>]: never; }>(base?: I | undefined): SearchMessageDocument;
14483
14438
  fromPartial<I_1 extends {
14484
14439
  message_id?: string | undefined;
14485
14440
  channel_id?: string | undefined;
@@ -14488,16 +14443,7 @@ export declare const SearchMessageDocument: {
14488
14443
  content?: string | undefined;
14489
14444
  mentions?: string | undefined;
14490
14445
  reactions?: string | undefined;
14491
- attachments?: {
14492
- filename?: string | undefined;
14493
- size?: number | undefined;
14494
- url?: string | undefined;
14495
- filetype?: string | undefined;
14496
- width?: number | undefined;
14497
- height?: number | undefined;
14498
- thumbnail?: string | undefined;
14499
- duration?: number | undefined;
14500
- }[] | undefined;
14446
+ attachments?: string | undefined;
14501
14447
  references?: string | undefined;
14502
14448
  create_time?: string | undefined;
14503
14449
  update_time?: string | undefined;
@@ -14515,43 +14461,7 @@ export declare const SearchMessageDocument: {
14515
14461
  content?: string | undefined;
14516
14462
  mentions?: string | undefined;
14517
14463
  reactions?: string | undefined;
14518
- attachments?: ({
14519
- filename?: string | undefined;
14520
- size?: number | undefined;
14521
- url?: string | undefined;
14522
- filetype?: string | undefined;
14523
- width?: number | undefined;
14524
- height?: number | undefined;
14525
- thumbnail?: string | undefined;
14526
- duration?: number | undefined;
14527
- }[] & ({
14528
- filename?: string | undefined;
14529
- size?: number | undefined;
14530
- url?: string | undefined;
14531
- filetype?: string | undefined;
14532
- width?: number | undefined;
14533
- height?: number | undefined;
14534
- thumbnail?: string | undefined;
14535
- duration?: number | undefined;
14536
- } & {
14537
- filename?: string | undefined;
14538
- size?: number | undefined;
14539
- url?: string | undefined;
14540
- filetype?: string | undefined;
14541
- width?: number | undefined;
14542
- height?: number | undefined;
14543
- thumbnail?: string | undefined;
14544
- duration?: number | undefined;
14545
- } & { [K_3 in Exclude<keyof I_1["attachments"][number], keyof MessageAttachment>]: never; })[] & { [K_4 in Exclude<keyof I_1["attachments"], keyof {
14546
- filename?: string | undefined;
14547
- size?: number | undefined;
14548
- url?: string | undefined;
14549
- filetype?: string | undefined;
14550
- width?: number | undefined;
14551
- height?: number | undefined;
14552
- thumbnail?: string | undefined;
14553
- duration?: number | undefined;
14554
- }[]>]: never; }) | undefined;
14464
+ attachments?: string | undefined;
14555
14465
  references?: string | undefined;
14556
14466
  create_time?: string | undefined;
14557
14467
  update_time?: string | undefined;
@@ -14561,7 +14471,7 @@ export declare const SearchMessageDocument: {
14561
14471
  username?: string | undefined;
14562
14472
  display_name?: string | undefined;
14563
14473
  avatar_url?: string | undefined;
14564
- } & { [K_5 in Exclude<keyof I_1, keyof SearchMessageDocument>]: never; }>(object: I_1): SearchMessageDocument;
14474
+ } & { [K_1 in Exclude<keyof I_1, keyof SearchMessageDocument>]: never; }>(object: I_1): SearchMessageDocument;
14565
14475
  };
14566
14476
  export declare const SearchMessageResponse: {
14567
14477
  encode(message: SearchMessageResponse, writer?: _m0.Writer): _m0.Writer;
@@ -14577,16 +14487,7 @@ export declare const SearchMessageResponse: {
14577
14487
  content?: string | undefined;
14578
14488
  mentions?: string | undefined;
14579
14489
  reactions?: string | undefined;
14580
- attachments?: {
14581
- filename?: string | undefined;
14582
- size?: number | undefined;
14583
- url?: string | undefined;
14584
- filetype?: string | undefined;
14585
- width?: number | undefined;
14586
- height?: number | undefined;
14587
- thumbnail?: string | undefined;
14588
- duration?: number | undefined;
14589
- }[] | undefined;
14490
+ attachments?: string | undefined;
14590
14491
  references?: string | undefined;
14591
14492
  create_time?: string | undefined;
14592
14493
  update_time?: string | undefined;
@@ -14607,16 +14508,7 @@ export declare const SearchMessageResponse: {
14607
14508
  content?: string | undefined;
14608
14509
  mentions?: string | undefined;
14609
14510
  reactions?: string | undefined;
14610
- attachments?: {
14611
- filename?: string | undefined;
14612
- size?: number | undefined;
14613
- url?: string | undefined;
14614
- filetype?: string | undefined;
14615
- width?: number | undefined;
14616
- height?: number | undefined;
14617
- thumbnail?: string | undefined;
14618
- duration?: number | undefined;
14619
- }[] | undefined;
14511
+ attachments?: string | undefined;
14620
14512
  references?: string | undefined;
14621
14513
  create_time?: string | undefined;
14622
14514
  update_time?: string | undefined;
@@ -14634,16 +14526,7 @@ export declare const SearchMessageResponse: {
14634
14526
  content?: string | undefined;
14635
14527
  mentions?: string | undefined;
14636
14528
  reactions?: string | undefined;
14637
- attachments?: {
14638
- filename?: string | undefined;
14639
- size?: number | undefined;
14640
- url?: string | undefined;
14641
- filetype?: string | undefined;
14642
- width?: number | undefined;
14643
- height?: number | undefined;
14644
- thumbnail?: string | undefined;
14645
- duration?: number | undefined;
14646
- }[] | undefined;
14529
+ attachments?: string | undefined;
14647
14530
  references?: string | undefined;
14648
14531
  create_time?: string | undefined;
14649
14532
  update_time?: string | undefined;
@@ -14661,43 +14544,7 @@ export declare const SearchMessageResponse: {
14661
14544
  content?: string | undefined;
14662
14545
  mentions?: string | undefined;
14663
14546
  reactions?: string | undefined;
14664
- attachments?: ({
14665
- filename?: string | undefined;
14666
- size?: number | undefined;
14667
- url?: string | undefined;
14668
- filetype?: string | undefined;
14669
- width?: number | undefined;
14670
- height?: number | undefined;
14671
- thumbnail?: string | undefined;
14672
- duration?: number | undefined;
14673
- }[] & ({
14674
- filename?: string | undefined;
14675
- size?: number | undefined;
14676
- url?: string | undefined;
14677
- filetype?: string | undefined;
14678
- width?: number | undefined;
14679
- height?: number | undefined;
14680
- thumbnail?: string | undefined;
14681
- duration?: number | undefined;
14682
- } & {
14683
- filename?: string | undefined;
14684
- size?: number | undefined;
14685
- url?: string | undefined;
14686
- filetype?: string | undefined;
14687
- width?: number | undefined;
14688
- height?: number | undefined;
14689
- thumbnail?: string | undefined;
14690
- duration?: number | undefined;
14691
- } & { [K in Exclude<keyof I["messages"][number]["attachments"][number], keyof MessageAttachment>]: never; })[] & { [K_1 in Exclude<keyof I["messages"][number]["attachments"], keyof {
14692
- filename?: string | undefined;
14693
- size?: number | undefined;
14694
- url?: string | undefined;
14695
- filetype?: string | undefined;
14696
- width?: number | undefined;
14697
- height?: number | undefined;
14698
- thumbnail?: string | undefined;
14699
- duration?: number | undefined;
14700
- }[]>]: never; }) | undefined;
14547
+ attachments?: string | undefined;
14701
14548
  references?: string | undefined;
14702
14549
  create_time?: string | undefined;
14703
14550
  update_time?: string | undefined;
@@ -14707,7 +14554,7 @@ export declare const SearchMessageResponse: {
14707
14554
  username?: string | undefined;
14708
14555
  display_name?: string | undefined;
14709
14556
  avatar_url?: string | undefined;
14710
- } & { [K_2 in Exclude<keyof I["messages"][number], keyof SearchMessageDocument>]: never; })[] & { [K_3 in Exclude<keyof I["messages"], keyof {
14557
+ } & { [K in Exclude<keyof I["messages"][number], keyof SearchMessageDocument>]: never; })[] & { [K_1 in Exclude<keyof I["messages"], keyof {
14711
14558
  message_id?: string | undefined;
14712
14559
  channel_id?: string | undefined;
14713
14560
  clan_id?: string | undefined;
@@ -14715,16 +14562,7 @@ export declare const SearchMessageResponse: {
14715
14562
  content?: string | undefined;
14716
14563
  mentions?: string | undefined;
14717
14564
  reactions?: string | undefined;
14718
- attachments?: {
14719
- filename?: string | undefined;
14720
- size?: number | undefined;
14721
- url?: string | undefined;
14722
- filetype?: string | undefined;
14723
- width?: number | undefined;
14724
- height?: number | undefined;
14725
- thumbnail?: string | undefined;
14726
- duration?: number | undefined;
14727
- }[] | undefined;
14565
+ attachments?: string | undefined;
14728
14566
  references?: string | undefined;
14729
14567
  create_time?: string | undefined;
14730
14568
  update_time?: string | undefined;
@@ -14736,7 +14574,7 @@ export declare const SearchMessageResponse: {
14736
14574
  avatar_url?: string | undefined;
14737
14575
  }[]>]: never; }) | undefined;
14738
14576
  total?: number | undefined;
14739
- } & { [K_4 in Exclude<keyof I, keyof SearchMessageResponse>]: never; }>(base?: I | undefined): SearchMessageResponse;
14577
+ } & { [K_2 in Exclude<keyof I, keyof SearchMessageResponse>]: never; }>(base?: I | undefined): SearchMessageResponse;
14740
14578
  fromPartial<I_1 extends {
14741
14579
  messages?: {
14742
14580
  message_id?: string | undefined;
@@ -14746,16 +14584,7 @@ export declare const SearchMessageResponse: {
14746
14584
  content?: string | undefined;
14747
14585
  mentions?: string | undefined;
14748
14586
  reactions?: string | undefined;
14749
- attachments?: {
14750
- filename?: string | undefined;
14751
- size?: number | undefined;
14752
- url?: string | undefined;
14753
- filetype?: string | undefined;
14754
- width?: number | undefined;
14755
- height?: number | undefined;
14756
- thumbnail?: string | undefined;
14757
- duration?: number | undefined;
14758
- }[] | undefined;
14587
+ attachments?: string | undefined;
14759
14588
  references?: string | undefined;
14760
14589
  create_time?: string | undefined;
14761
14590
  update_time?: string | undefined;
@@ -14776,16 +14605,7 @@ export declare const SearchMessageResponse: {
14776
14605
  content?: string | undefined;
14777
14606
  mentions?: string | undefined;
14778
14607
  reactions?: string | undefined;
14779
- attachments?: {
14780
- filename?: string | undefined;
14781
- size?: number | undefined;
14782
- url?: string | undefined;
14783
- filetype?: string | undefined;
14784
- width?: number | undefined;
14785
- height?: number | undefined;
14786
- thumbnail?: string | undefined;
14787
- duration?: number | undefined;
14788
- }[] | undefined;
14608
+ attachments?: string | undefined;
14789
14609
  references?: string | undefined;
14790
14610
  create_time?: string | undefined;
14791
14611
  update_time?: string | undefined;
@@ -14803,16 +14623,7 @@ export declare const SearchMessageResponse: {
14803
14623
  content?: string | undefined;
14804
14624
  mentions?: string | undefined;
14805
14625
  reactions?: string | undefined;
14806
- attachments?: {
14807
- filename?: string | undefined;
14808
- size?: number | undefined;
14809
- url?: string | undefined;
14810
- filetype?: string | undefined;
14811
- width?: number | undefined;
14812
- height?: number | undefined;
14813
- thumbnail?: string | undefined;
14814
- duration?: number | undefined;
14815
- }[] | undefined;
14626
+ attachments?: string | undefined;
14816
14627
  references?: string | undefined;
14817
14628
  create_time?: string | undefined;
14818
14629
  update_time?: string | undefined;
@@ -14830,43 +14641,7 @@ export declare const SearchMessageResponse: {
14830
14641
  content?: string | undefined;
14831
14642
  mentions?: string | undefined;
14832
14643
  reactions?: string | undefined;
14833
- attachments?: ({
14834
- filename?: string | undefined;
14835
- size?: number | undefined;
14836
- url?: string | undefined;
14837
- filetype?: string | undefined;
14838
- width?: number | undefined;
14839
- height?: number | undefined;
14840
- thumbnail?: string | undefined;
14841
- duration?: number | undefined;
14842
- }[] & ({
14843
- filename?: string | undefined;
14844
- size?: number | undefined;
14845
- url?: string | undefined;
14846
- filetype?: string | undefined;
14847
- width?: number | undefined;
14848
- height?: number | undefined;
14849
- thumbnail?: string | undefined;
14850
- duration?: number | undefined;
14851
- } & {
14852
- filename?: string | undefined;
14853
- size?: number | undefined;
14854
- url?: string | undefined;
14855
- filetype?: string | undefined;
14856
- width?: number | undefined;
14857
- height?: number | undefined;
14858
- thumbnail?: string | undefined;
14859
- duration?: number | undefined;
14860
- } & { [K_5 in Exclude<keyof I_1["messages"][number]["attachments"][number], keyof MessageAttachment>]: never; })[] & { [K_6 in Exclude<keyof I_1["messages"][number]["attachments"], keyof {
14861
- filename?: string | undefined;
14862
- size?: number | undefined;
14863
- url?: string | undefined;
14864
- filetype?: string | undefined;
14865
- width?: number | undefined;
14866
- height?: number | undefined;
14867
- thumbnail?: string | undefined;
14868
- duration?: number | undefined;
14869
- }[]>]: never; }) | undefined;
14644
+ attachments?: string | undefined;
14870
14645
  references?: string | undefined;
14871
14646
  create_time?: string | undefined;
14872
14647
  update_time?: string | undefined;
@@ -14876,7 +14651,7 @@ export declare const SearchMessageResponse: {
14876
14651
  username?: string | undefined;
14877
14652
  display_name?: string | undefined;
14878
14653
  avatar_url?: string | undefined;
14879
- } & { [K_7 in Exclude<keyof I_1["messages"][number], keyof SearchMessageDocument>]: never; })[] & { [K_8 in Exclude<keyof I_1["messages"], keyof {
14654
+ } & { [K_3 in Exclude<keyof I_1["messages"][number], keyof SearchMessageDocument>]: never; })[] & { [K_4 in Exclude<keyof I_1["messages"], keyof {
14880
14655
  message_id?: string | undefined;
14881
14656
  channel_id?: string | undefined;
14882
14657
  clan_id?: string | undefined;
@@ -14884,16 +14659,7 @@ export declare const SearchMessageResponse: {
14884
14659
  content?: string | undefined;
14885
14660
  mentions?: string | undefined;
14886
14661
  reactions?: string | undefined;
14887
- attachments?: {
14888
- filename?: string | undefined;
14889
- size?: number | undefined;
14890
- url?: string | undefined;
14891
- filetype?: string | undefined;
14892
- width?: number | undefined;
14893
- height?: number | undefined;
14894
- thumbnail?: string | undefined;
14895
- duration?: number | undefined;
14896
- }[] | undefined;
14662
+ attachments?: string | undefined;
14897
14663
  references?: string | undefined;
14898
14664
  create_time?: string | undefined;
14899
14665
  update_time?: string | undefined;
@@ -14905,7 +14671,7 @@ export declare const SearchMessageResponse: {
14905
14671
  avatar_url?: string | undefined;
14906
14672
  }[]>]: never; }) | undefined;
14907
14673
  total?: number | undefined;
14908
- } & { [K_9 in Exclude<keyof I_1, keyof SearchMessageResponse>]: never; }>(object: I_1): SearchMessageResponse;
14674
+ } & { [K_5 in Exclude<keyof I_1, keyof SearchMessageResponse>]: never; }>(object: I_1): SearchMessageResponse;
14909
14675
  };
14910
14676
  export declare const RegistrationEmailRequest: {
14911
14677
  encode(message: RegistrationEmailRequest, writer?: _m0.Writer): _m0.Writer;
package/dist/api.gen.d.ts CHANGED
@@ -437,7 +437,7 @@ export interface ApiChannelAppResponse {
437
437
  }
438
438
  /** */
439
439
  export interface ApiChannelAttachment {
440
- create_time?: string;
440
+ create_time_seconds?: number;
441
441
  filename?: string;
442
442
  filesize?: string;
443
443
  filetype?: string;
@@ -1389,7 +1389,7 @@ export interface ApiSdTopicRequest {
1389
1389
  }
1390
1390
  /** */
1391
1391
  export interface ApiSearchMessageDocument {
1392
- attachments?: Array<ApiMessageAttachment>;
1392
+ attachments?: string;
1393
1393
  avatar_url?: string;
1394
1394
  channel_id?: string;
1395
1395
  channel_label?: string;
@@ -17942,7 +17942,7 @@ function createBaseSearchMessageDocument() {
17942
17942
  content: "",
17943
17943
  mentions: "",
17944
17944
  reactions: "",
17945
- attachments: [],
17945
+ attachments: "",
17946
17946
  references: "",
17947
17947
  create_time: "",
17948
17948
  update_time: "",
@@ -17977,8 +17977,8 @@ var SearchMessageDocument = {
17977
17977
  if (message.reactions !== "") {
17978
17978
  writer.uint32(58).string(message.reactions);
17979
17979
  }
17980
- for (const v of message.attachments) {
17981
- MessageAttachment.encode(v, writer.uint32(66).fork()).ldelim();
17980
+ if (message.attachments !== "") {
17981
+ writer.uint32(66).string(message.attachments);
17982
17982
  }
17983
17983
  if (message.references !== "") {
17984
17984
  writer.uint32(74).string(message.references);
@@ -18062,7 +18062,7 @@ var SearchMessageDocument = {
18062
18062
  if (tag !== 66) {
18063
18063
  break;
18064
18064
  }
18065
- message.attachments.push(MessageAttachment.decode(reader, reader.uint32()));
18065
+ message.attachments = reader.string();
18066
18066
  continue;
18067
18067
  case 9:
18068
18068
  if (tag !== 74) {
@@ -18135,7 +18135,7 @@ var SearchMessageDocument = {
18135
18135
  content: isSet2(object.content) ? globalThis.String(object.content) : "",
18136
18136
  mentions: isSet2(object.mentions) ? globalThis.String(object.mentions) : "",
18137
18137
  reactions: isSet2(object.reactions) ? globalThis.String(object.reactions) : "",
18138
- attachments: globalThis.Array.isArray(object == null ? void 0 : object.attachments) ? object.attachments.map((e) => MessageAttachment.fromJSON(e)) : [],
18138
+ attachments: isSet2(object.attachments) ? globalThis.String(object.attachments) : "",
18139
18139
  references: isSet2(object.references) ? globalThis.String(object.references) : "",
18140
18140
  create_time: isSet2(object.create_time) ? globalThis.String(object.create_time) : "",
18141
18141
  update_time: isSet2(object.update_time) ? globalThis.String(object.update_time) : "",
@@ -18148,7 +18148,6 @@ var SearchMessageDocument = {
18148
18148
  };
18149
18149
  },
18150
18150
  toJSON(message) {
18151
- var _a;
18152
18151
  const obj = {};
18153
18152
  if (message.message_id !== "0") {
18154
18153
  obj.message_id = message.message_id;
@@ -18171,8 +18170,8 @@ var SearchMessageDocument = {
18171
18170
  if (message.reactions !== "") {
18172
18171
  obj.reactions = message.reactions;
18173
18172
  }
18174
- if ((_a = message.attachments) == null ? void 0 : _a.length) {
18175
- obj.attachments = message.attachments.map((e) => MessageAttachment.toJSON(e));
18173
+ if (message.attachments !== "") {
18174
+ obj.attachments = message.attachments;
18176
18175
  }
18177
18176
  if (message.references !== "") {
18178
18177
  obj.references = message.references;
@@ -18216,7 +18215,7 @@ var SearchMessageDocument = {
18216
18215
  message.content = (_e = object.content) != null ? _e : "";
18217
18216
  message.mentions = (_f = object.mentions) != null ? _f : "";
18218
18217
  message.reactions = (_g = object.reactions) != null ? _g : "";
18219
- message.attachments = ((_h = object.attachments) == null ? void 0 : _h.map((e) => MessageAttachment.fromPartial(e))) || [];
18218
+ message.attachments = (_h = object.attachments) != null ? _h : "";
18220
18219
  message.references = (_i = object.references) != null ? _i : "";
18221
18220
  message.create_time = (_j = object.create_time) != null ? _j : "";
18222
18221
  message.update_time = (_k = object.update_time) != null ? _k : "";
@@ -41464,7 +41463,7 @@ var Client = class {
41464
41463
  uploader: at.uploader,
41465
41464
  url: at.url,
41466
41465
  message_id: at.message_id,
41467
- create_time: at.create_time,
41466
+ create_time_seconds: at.create_time_seconds,
41468
41467
  width: at.width,
41469
41468
  height: at.height
41470
41469
  });
@@ -17907,7 +17907,7 @@ function createBaseSearchMessageDocument() {
17907
17907
  content: "",
17908
17908
  mentions: "",
17909
17909
  reactions: "",
17910
- attachments: [],
17910
+ attachments: "",
17911
17911
  references: "",
17912
17912
  create_time: "",
17913
17913
  update_time: "",
@@ -17942,8 +17942,8 @@ var SearchMessageDocument = {
17942
17942
  if (message.reactions !== "") {
17943
17943
  writer.uint32(58).string(message.reactions);
17944
17944
  }
17945
- for (const v of message.attachments) {
17946
- MessageAttachment.encode(v, writer.uint32(66).fork()).ldelim();
17945
+ if (message.attachments !== "") {
17946
+ writer.uint32(66).string(message.attachments);
17947
17947
  }
17948
17948
  if (message.references !== "") {
17949
17949
  writer.uint32(74).string(message.references);
@@ -18027,7 +18027,7 @@ var SearchMessageDocument = {
18027
18027
  if (tag !== 66) {
18028
18028
  break;
18029
18029
  }
18030
- message.attachments.push(MessageAttachment.decode(reader, reader.uint32()));
18030
+ message.attachments = reader.string();
18031
18031
  continue;
18032
18032
  case 9:
18033
18033
  if (tag !== 74) {
@@ -18100,7 +18100,7 @@ var SearchMessageDocument = {
18100
18100
  content: isSet2(object.content) ? globalThis.String(object.content) : "",
18101
18101
  mentions: isSet2(object.mentions) ? globalThis.String(object.mentions) : "",
18102
18102
  reactions: isSet2(object.reactions) ? globalThis.String(object.reactions) : "",
18103
- attachments: globalThis.Array.isArray(object == null ? void 0 : object.attachments) ? object.attachments.map((e) => MessageAttachment.fromJSON(e)) : [],
18103
+ attachments: isSet2(object.attachments) ? globalThis.String(object.attachments) : "",
18104
18104
  references: isSet2(object.references) ? globalThis.String(object.references) : "",
18105
18105
  create_time: isSet2(object.create_time) ? globalThis.String(object.create_time) : "",
18106
18106
  update_time: isSet2(object.update_time) ? globalThis.String(object.update_time) : "",
@@ -18113,7 +18113,6 @@ var SearchMessageDocument = {
18113
18113
  };
18114
18114
  },
18115
18115
  toJSON(message) {
18116
- var _a;
18117
18116
  const obj = {};
18118
18117
  if (message.message_id !== "0") {
18119
18118
  obj.message_id = message.message_id;
@@ -18136,8 +18135,8 @@ var SearchMessageDocument = {
18136
18135
  if (message.reactions !== "") {
18137
18136
  obj.reactions = message.reactions;
18138
18137
  }
18139
- if ((_a = message.attachments) == null ? void 0 : _a.length) {
18140
- obj.attachments = message.attachments.map((e) => MessageAttachment.toJSON(e));
18138
+ if (message.attachments !== "") {
18139
+ obj.attachments = message.attachments;
18141
18140
  }
18142
18141
  if (message.references !== "") {
18143
18142
  obj.references = message.references;
@@ -18181,7 +18180,7 @@ var SearchMessageDocument = {
18181
18180
  message.content = (_e = object.content) != null ? _e : "";
18182
18181
  message.mentions = (_f = object.mentions) != null ? _f : "";
18183
18182
  message.reactions = (_g = object.reactions) != null ? _g : "";
18184
- message.attachments = ((_h = object.attachments) == null ? void 0 : _h.map((e) => MessageAttachment.fromPartial(e))) || [];
18183
+ message.attachments = (_h = object.attachments) != null ? _h : "";
18185
18184
  message.references = (_i = object.references) != null ? _i : "";
18186
18185
  message.create_time = (_j = object.create_time) != null ? _j : "";
18187
18186
  message.update_time = (_k = object.update_time) != null ? _k : "";
@@ -41429,7 +41428,7 @@ var Client = class {
41429
41428
  uploader: at.uploader,
41430
41429
  url: at.url,
41431
41430
  message_id: at.message_id,
41432
- create_time: at.create_time,
41431
+ create_time_seconds: at.create_time_seconds,
41433
41432
  width: at.width,
41434
41433
  height: at.height
41435
41434
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js",
3
- "version": "2.14.44",
3
+ "version": "2.14.46",
4
4
  "scripts": {
5
5
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
6
6
  },