mezon-js-protobuf 1.8.26 → 1.8.28

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
@@ -2558,6 +2558,7 @@ export interface Webhook {
2558
2558
  update_time: string;
2559
2559
  avatar: string;
2560
2560
  status: number;
2561
+ clan_id: string;
2561
2562
  }
2562
2563
 
2563
2564
  export interface WebhookCreateRequest {
@@ -3861,6 +3862,15 @@ export interface ForSaleItemList {
3861
3862
  for_sale_items: ForSaleItem[];
3862
3863
  }
3863
3864
 
3865
+ export interface IsFollowerRequest {
3866
+ follow_id: string;
3867
+ }
3868
+
3869
+ export interface IsFollowerResponse {
3870
+ follow_id: string;
3871
+ is_follower: boolean;
3872
+ }
3873
+
3864
3874
  function createBaseAccount(): Account {
3865
3875
  return {
3866
3876
  user: undefined,
@@ -24003,6 +24013,7 @@ function createBaseWebhook(): Webhook {
24003
24013
  update_time: "",
24004
24014
  avatar: "",
24005
24015
  status: 0,
24016
+ clan_id: "",
24006
24017
  };
24007
24018
  }
24008
24019
 
@@ -24038,6 +24049,9 @@ export const Webhook = {
24038
24049
  if (message.status !== 0) {
24039
24050
  writer.uint32(80).int32(message.status);
24040
24051
  }
24052
+ if (message.clan_id !== "") {
24053
+ writer.uint32(90).string(message.clan_id);
24054
+ }
24041
24055
  return writer;
24042
24056
  },
24043
24057
 
@@ -24118,6 +24132,13 @@ export const Webhook = {
24118
24132
 
24119
24133
  message.status = reader.int32();
24120
24134
  continue;
24135
+ case 11:
24136
+ if (tag !== 90) {
24137
+ break;
24138
+ }
24139
+
24140
+ message.clan_id = reader.string();
24141
+ continue;
24121
24142
  }
24122
24143
  if ((tag & 7) === 4 || tag === 0) {
24123
24144
  break;
@@ -24139,6 +24160,7 @@ export const Webhook = {
24139
24160
  update_time: isSet(object.update_time) ? globalThis.String(object.update_time) : "",
24140
24161
  avatar: isSet(object.avatar) ? globalThis.String(object.avatar) : "",
24141
24162
  status: isSet(object.status) ? globalThis.Number(object.status) : 0,
24163
+ clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
24142
24164
  };
24143
24165
  },
24144
24166
 
@@ -24174,6 +24196,9 @@ export const Webhook = {
24174
24196
  if (message.status !== 0) {
24175
24197
  obj.status = Math.round(message.status);
24176
24198
  }
24199
+ if (message.clan_id !== "") {
24200
+ obj.clan_id = message.clan_id;
24201
+ }
24177
24202
  return obj;
24178
24203
  },
24179
24204
 
@@ -24192,6 +24217,7 @@ export const Webhook = {
24192
24217
  message.update_time = object.update_time ?? "";
24193
24218
  message.avatar = object.avatar ?? "";
24194
24219
  message.status = object.status ?? 0;
24220
+ message.clan_id = object.clan_id ?? "";
24195
24221
  return message;
24196
24222
  },
24197
24223
  };
@@ -38501,6 +38527,137 @@ export const ForSaleItemList = {
38501
38527
  },
38502
38528
  };
38503
38529
 
38530
+ function createBaseIsFollowerRequest(): IsFollowerRequest {
38531
+ return { follow_id: "" };
38532
+ }
38533
+
38534
+ export const IsFollowerRequest = {
38535
+ encode(message: IsFollowerRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
38536
+ if (message.follow_id !== "") {
38537
+ writer.uint32(10).string(message.follow_id);
38538
+ }
38539
+ return writer;
38540
+ },
38541
+
38542
+ decode(input: _m0.Reader | Uint8Array, length?: number): IsFollowerRequest {
38543
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
38544
+ let end = length === undefined ? reader.len : reader.pos + length;
38545
+ const message = createBaseIsFollowerRequest();
38546
+ while (reader.pos < end) {
38547
+ const tag = reader.uint32();
38548
+ switch (tag >>> 3) {
38549
+ case 1:
38550
+ if (tag !== 10) {
38551
+ break;
38552
+ }
38553
+
38554
+ message.follow_id = reader.string();
38555
+ continue;
38556
+ }
38557
+ if ((tag & 7) === 4 || tag === 0) {
38558
+ break;
38559
+ }
38560
+ reader.skipType(tag & 7);
38561
+ }
38562
+ return message;
38563
+ },
38564
+
38565
+ fromJSON(object: any): IsFollowerRequest {
38566
+ return { follow_id: isSet(object.follow_id) ? globalThis.String(object.follow_id) : "" };
38567
+ },
38568
+
38569
+ toJSON(message: IsFollowerRequest): unknown {
38570
+ const obj: any = {};
38571
+ if (message.follow_id !== "") {
38572
+ obj.follow_id = message.follow_id;
38573
+ }
38574
+ return obj;
38575
+ },
38576
+
38577
+ create<I extends Exact<DeepPartial<IsFollowerRequest>, I>>(base?: I): IsFollowerRequest {
38578
+ return IsFollowerRequest.fromPartial(base ?? ({} as any));
38579
+ },
38580
+ fromPartial<I extends Exact<DeepPartial<IsFollowerRequest>, I>>(object: I): IsFollowerRequest {
38581
+ const message = createBaseIsFollowerRequest();
38582
+ message.follow_id = object.follow_id ?? "";
38583
+ return message;
38584
+ },
38585
+ };
38586
+
38587
+ function createBaseIsFollowerResponse(): IsFollowerResponse {
38588
+ return { follow_id: "", is_follower: false };
38589
+ }
38590
+
38591
+ export const IsFollowerResponse = {
38592
+ encode(message: IsFollowerResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
38593
+ if (message.follow_id !== "") {
38594
+ writer.uint32(10).string(message.follow_id);
38595
+ }
38596
+ if (message.is_follower !== false) {
38597
+ writer.uint32(16).bool(message.is_follower);
38598
+ }
38599
+ return writer;
38600
+ },
38601
+
38602
+ decode(input: _m0.Reader | Uint8Array, length?: number): IsFollowerResponse {
38603
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
38604
+ let end = length === undefined ? reader.len : reader.pos + length;
38605
+ const message = createBaseIsFollowerResponse();
38606
+ while (reader.pos < end) {
38607
+ const tag = reader.uint32();
38608
+ switch (tag >>> 3) {
38609
+ case 1:
38610
+ if (tag !== 10) {
38611
+ break;
38612
+ }
38613
+
38614
+ message.follow_id = reader.string();
38615
+ continue;
38616
+ case 2:
38617
+ if (tag !== 16) {
38618
+ break;
38619
+ }
38620
+
38621
+ message.is_follower = reader.bool();
38622
+ continue;
38623
+ }
38624
+ if ((tag & 7) === 4 || tag === 0) {
38625
+ break;
38626
+ }
38627
+ reader.skipType(tag & 7);
38628
+ }
38629
+ return message;
38630
+ },
38631
+
38632
+ fromJSON(object: any): IsFollowerResponse {
38633
+ return {
38634
+ follow_id: isSet(object.follow_id) ? globalThis.String(object.follow_id) : "",
38635
+ is_follower: isSet(object.is_follower) ? globalThis.Boolean(object.is_follower) : false,
38636
+ };
38637
+ },
38638
+
38639
+ toJSON(message: IsFollowerResponse): unknown {
38640
+ const obj: any = {};
38641
+ if (message.follow_id !== "") {
38642
+ obj.follow_id = message.follow_id;
38643
+ }
38644
+ if (message.is_follower !== false) {
38645
+ obj.is_follower = message.is_follower;
38646
+ }
38647
+ return obj;
38648
+ },
38649
+
38650
+ create<I extends Exact<DeepPartial<IsFollowerResponse>, I>>(base?: I): IsFollowerResponse {
38651
+ return IsFollowerResponse.fromPartial(base ?? ({} as any));
38652
+ },
38653
+ fromPartial<I extends Exact<DeepPartial<IsFollowerResponse>, I>>(object: I): IsFollowerResponse {
38654
+ const message = createBaseIsFollowerResponse();
38655
+ message.follow_id = object.follow_id ?? "";
38656
+ message.is_follower = object.is_follower ?? false;
38657
+ return message;
38658
+ },
38659
+ };
38660
+
38504
38661
  function bytesFromBase64(b64: string): Uint8Array {
38505
38662
  if ((globalThis as any).Buffer) {
38506
38663
  return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
@@ -2006,6 +2006,7 @@ export interface Webhook {
2006
2006
  update_time: string;
2007
2007
  avatar: string;
2008
2008
  status: number;
2009
+ clan_id: string;
2009
2010
  }
2010
2011
  export interface WebhookCreateRequest {
2011
2012
  webhook_name: string;
@@ -3128,6 +3129,13 @@ export interface ForSaleItem {
3128
3129
  export interface ForSaleItemList {
3129
3130
  for_sale_items: ForSaleItem[];
3130
3131
  }
3132
+ export interface IsFollowerRequest {
3133
+ follow_id: string;
3134
+ }
3135
+ export interface IsFollowerResponse {
3136
+ follow_id: string;
3137
+ is_follower: boolean;
3138
+ }
3131
3139
  export declare const Account: {
3132
3140
  encode(message: Account, writer?: _m0.Writer): _m0.Writer;
3133
3141
  decode(input: _m0.Reader | Uint8Array, length?: number): Account;
@@ -16456,6 +16464,7 @@ export declare const Webhook: {
16456
16464
  update_time?: string | undefined;
16457
16465
  avatar?: string | undefined;
16458
16466
  status?: number | undefined;
16467
+ clan_id?: string | undefined;
16459
16468
  } & {
16460
16469
  id?: string | undefined;
16461
16470
  webhook_name?: string | undefined;
@@ -16467,6 +16476,7 @@ export declare const Webhook: {
16467
16476
  update_time?: string | undefined;
16468
16477
  avatar?: string | undefined;
16469
16478
  status?: number | undefined;
16479
+ clan_id?: string | undefined;
16470
16480
  } & { [K in Exclude<keyof I, keyof Webhook>]: never; }>(base?: I | undefined): Webhook;
16471
16481
  fromPartial<I_1 extends {
16472
16482
  id?: string | undefined;
@@ -16479,6 +16489,7 @@ export declare const Webhook: {
16479
16489
  update_time?: string | undefined;
16480
16490
  avatar?: string | undefined;
16481
16491
  status?: number | undefined;
16492
+ clan_id?: string | undefined;
16482
16493
  } & {
16483
16494
  id?: string | undefined;
16484
16495
  webhook_name?: string | undefined;
@@ -16490,6 +16501,7 @@ export declare const Webhook: {
16490
16501
  update_time?: string | undefined;
16491
16502
  avatar?: string | undefined;
16492
16503
  status?: number | undefined;
16504
+ clan_id?: string | undefined;
16493
16505
  } & { [K_1 in Exclude<keyof I_1, keyof Webhook>]: never; }>(object: I_1): Webhook;
16494
16506
  };
16495
16507
  export declare const WebhookCreateRequest: {
@@ -16633,6 +16645,7 @@ export declare const WebhookListResponse: {
16633
16645
  update_time?: string | undefined;
16634
16646
  avatar?: string | undefined;
16635
16647
  status?: number | undefined;
16648
+ clan_id?: string | undefined;
16636
16649
  }[] | undefined;
16637
16650
  } & {
16638
16651
  webhooks?: ({
@@ -16646,6 +16659,7 @@ export declare const WebhookListResponse: {
16646
16659
  update_time?: string | undefined;
16647
16660
  avatar?: string | undefined;
16648
16661
  status?: number | undefined;
16662
+ clan_id?: string | undefined;
16649
16663
  }[] & ({
16650
16664
  id?: string | undefined;
16651
16665
  webhook_name?: string | undefined;
@@ -16657,6 +16671,7 @@ export declare const WebhookListResponse: {
16657
16671
  update_time?: string | undefined;
16658
16672
  avatar?: string | undefined;
16659
16673
  status?: number | undefined;
16674
+ clan_id?: string | undefined;
16660
16675
  } & {
16661
16676
  id?: string | undefined;
16662
16677
  webhook_name?: string | undefined;
@@ -16668,6 +16683,7 @@ export declare const WebhookListResponse: {
16668
16683
  update_time?: string | undefined;
16669
16684
  avatar?: string | undefined;
16670
16685
  status?: number | undefined;
16686
+ clan_id?: string | undefined;
16671
16687
  } & { [K in Exclude<keyof I["webhooks"][number], keyof Webhook>]: never; })[] & { [K_1 in Exclude<keyof I["webhooks"], keyof {
16672
16688
  id?: string | undefined;
16673
16689
  webhook_name?: string | undefined;
@@ -16679,6 +16695,7 @@ export declare const WebhookListResponse: {
16679
16695
  update_time?: string | undefined;
16680
16696
  avatar?: string | undefined;
16681
16697
  status?: number | undefined;
16698
+ clan_id?: string | undefined;
16682
16699
  }[]>]: never; }) | undefined;
16683
16700
  } & { [K_2 in Exclude<keyof I, "webhooks">]: never; }>(base?: I | undefined): WebhookListResponse;
16684
16701
  fromPartial<I_1 extends {
@@ -16693,6 +16710,7 @@ export declare const WebhookListResponse: {
16693
16710
  update_time?: string | undefined;
16694
16711
  avatar?: string | undefined;
16695
16712
  status?: number | undefined;
16713
+ clan_id?: string | undefined;
16696
16714
  }[] | undefined;
16697
16715
  } & {
16698
16716
  webhooks?: ({
@@ -16706,6 +16724,7 @@ export declare const WebhookListResponse: {
16706
16724
  update_time?: string | undefined;
16707
16725
  avatar?: string | undefined;
16708
16726
  status?: number | undefined;
16727
+ clan_id?: string | undefined;
16709
16728
  }[] & ({
16710
16729
  id?: string | undefined;
16711
16730
  webhook_name?: string | undefined;
@@ -16717,6 +16736,7 @@ export declare const WebhookListResponse: {
16717
16736
  update_time?: string | undefined;
16718
16737
  avatar?: string | undefined;
16719
16738
  status?: number | undefined;
16739
+ clan_id?: string | undefined;
16720
16740
  } & {
16721
16741
  id?: string | undefined;
16722
16742
  webhook_name?: string | undefined;
@@ -16728,6 +16748,7 @@ export declare const WebhookListResponse: {
16728
16748
  update_time?: string | undefined;
16729
16749
  avatar?: string | undefined;
16730
16750
  status?: number | undefined;
16751
+ clan_id?: string | undefined;
16731
16752
  } & { [K_3 in Exclude<keyof I_1["webhooks"][number], keyof Webhook>]: never; })[] & { [K_4 in Exclude<keyof I_1["webhooks"], keyof {
16732
16753
  id?: string | undefined;
16733
16754
  webhook_name?: string | undefined;
@@ -16739,6 +16760,7 @@ export declare const WebhookListResponse: {
16739
16760
  update_time?: string | undefined;
16740
16761
  avatar?: string | undefined;
16741
16762
  status?: number | undefined;
16763
+ clan_id?: string | undefined;
16742
16764
  }[]>]: never; }) | undefined;
16743
16765
  } & { [K_5 in Exclude<keyof I_1, "webhooks">]: never; }>(object: I_1): WebhookListResponse;
16744
16766
  };
@@ -24728,6 +24750,42 @@ export declare const ForSaleItemList: {
24728
24750
  }[]>]: never; }) | undefined;
24729
24751
  } & { [K_5 in Exclude<keyof I_1, "for_sale_items">]: never; }>(object: I_1): ForSaleItemList;
24730
24752
  };
24753
+ export declare const IsFollowerRequest: {
24754
+ encode(message: IsFollowerRequest, writer?: _m0.Writer): _m0.Writer;
24755
+ decode(input: _m0.Reader | Uint8Array, length?: number): IsFollowerRequest;
24756
+ fromJSON(object: any): IsFollowerRequest;
24757
+ toJSON(message: IsFollowerRequest): unknown;
24758
+ create<I extends {
24759
+ follow_id?: string | undefined;
24760
+ } & {
24761
+ follow_id?: string | undefined;
24762
+ } & { [K in Exclude<keyof I, "follow_id">]: never; }>(base?: I | undefined): IsFollowerRequest;
24763
+ fromPartial<I_1 extends {
24764
+ follow_id?: string | undefined;
24765
+ } & {
24766
+ follow_id?: string | undefined;
24767
+ } & { [K_1 in Exclude<keyof I_1, "follow_id">]: never; }>(object: I_1): IsFollowerRequest;
24768
+ };
24769
+ export declare const IsFollowerResponse: {
24770
+ encode(message: IsFollowerResponse, writer?: _m0.Writer): _m0.Writer;
24771
+ decode(input: _m0.Reader | Uint8Array, length?: number): IsFollowerResponse;
24772
+ fromJSON(object: any): IsFollowerResponse;
24773
+ toJSON(message: IsFollowerResponse): unknown;
24774
+ create<I extends {
24775
+ follow_id?: string | undefined;
24776
+ is_follower?: boolean | undefined;
24777
+ } & {
24778
+ follow_id?: string | undefined;
24779
+ is_follower?: boolean | undefined;
24780
+ } & { [K in Exclude<keyof I, keyof IsFollowerResponse>]: never; }>(base?: I | undefined): IsFollowerResponse;
24781
+ fromPartial<I_1 extends {
24782
+ follow_id?: string | undefined;
24783
+ is_follower?: boolean | undefined;
24784
+ } & {
24785
+ follow_id?: string | undefined;
24786
+ is_follower?: boolean | undefined;
24787
+ } & { [K_1 in Exclude<keyof I_1, keyof IsFollowerResponse>]: never; }>(object: I_1): IsFollowerResponse;
24788
+ };
24731
24789
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
24732
24790
  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 {} ? {
24733
24791
  [K in keyof T]?: DeepPartial<T[K]>;