mezon-js-protobuf 1.6.18 → 1.6.20
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 +162 -12
- package/dist/mezon-js-protobuf/api/api.d.ts +58 -7
- package/package.json +1 -1
package/api/api.ts
CHANGED
|
@@ -2657,6 +2657,7 @@ export interface WebhookCreateRequest {
|
|
|
2657
2657
|
webhook_name: string;
|
|
2658
2658
|
channel_id: string;
|
|
2659
2659
|
avatar: string;
|
|
2660
|
+
clan_id: string;
|
|
2660
2661
|
}
|
|
2661
2662
|
|
|
2662
2663
|
export interface WebhookListRequestById {
|
|
@@ -2664,14 +2665,24 @@ export interface WebhookListRequestById {
|
|
|
2664
2665
|
}
|
|
2665
2666
|
|
|
2666
2667
|
export interface WebhookUpdateRequestById {
|
|
2668
|
+
/** webhook Id */
|
|
2667
2669
|
id: string;
|
|
2670
|
+
/** webhook name */
|
|
2668
2671
|
webhook_name: string;
|
|
2669
|
-
channel_id
|
|
2672
|
+
/** change channel_id of webhook */
|
|
2673
|
+
channel_id_update: string;
|
|
2674
|
+
/** webhook avatar */
|
|
2670
2675
|
avatar: string;
|
|
2676
|
+
/** channel id */
|
|
2677
|
+
channel_id: string;
|
|
2678
|
+
/** clan id */
|
|
2679
|
+
clan_id: string;
|
|
2671
2680
|
}
|
|
2672
2681
|
|
|
2673
2682
|
export interface WebhookDeleteRequestById {
|
|
2674
2683
|
id: string;
|
|
2684
|
+
clan_id: string;
|
|
2685
|
+
channel_id: string;
|
|
2675
2686
|
}
|
|
2676
2687
|
|
|
2677
2688
|
export interface WebhookListRequest {
|
|
@@ -3441,6 +3452,11 @@ export interface TokenSentEvent {
|
|
|
3441
3452
|
note: string;
|
|
3442
3453
|
}
|
|
3443
3454
|
|
|
3455
|
+
export interface WithdrawTokenRequest {
|
|
3456
|
+
/** amount of token */
|
|
3457
|
+
amount: number;
|
|
3458
|
+
}
|
|
3459
|
+
|
|
3444
3460
|
function createBaseAccount(): Account {
|
|
3445
3461
|
return {
|
|
3446
3462
|
user: undefined,
|
|
@@ -24727,7 +24743,7 @@ export const Webhook = {
|
|
|
24727
24743
|
};
|
|
24728
24744
|
|
|
24729
24745
|
function createBaseWebhookCreateRequest(): WebhookCreateRequest {
|
|
24730
|
-
return { webhook_name: "", channel_id: "", avatar: "" };
|
|
24746
|
+
return { webhook_name: "", channel_id: "", avatar: "", clan_id: "" };
|
|
24731
24747
|
}
|
|
24732
24748
|
|
|
24733
24749
|
export const WebhookCreateRequest = {
|
|
@@ -24741,6 +24757,9 @@ export const WebhookCreateRequest = {
|
|
|
24741
24757
|
if (message.avatar !== "") {
|
|
24742
24758
|
writer.uint32(26).string(message.avatar);
|
|
24743
24759
|
}
|
|
24760
|
+
if (message.clan_id !== "") {
|
|
24761
|
+
writer.uint32(34).string(message.clan_id);
|
|
24762
|
+
}
|
|
24744
24763
|
return writer;
|
|
24745
24764
|
},
|
|
24746
24765
|
|
|
@@ -24772,6 +24791,13 @@ export const WebhookCreateRequest = {
|
|
|
24772
24791
|
|
|
24773
24792
|
message.avatar = reader.string();
|
|
24774
24793
|
continue;
|
|
24794
|
+
case 4:
|
|
24795
|
+
if (tag !== 34) {
|
|
24796
|
+
break;
|
|
24797
|
+
}
|
|
24798
|
+
|
|
24799
|
+
message.clan_id = reader.string();
|
|
24800
|
+
continue;
|
|
24775
24801
|
}
|
|
24776
24802
|
if ((tag & 7) === 4 || tag === 0) {
|
|
24777
24803
|
break;
|
|
@@ -24786,6 +24812,7 @@ export const WebhookCreateRequest = {
|
|
|
24786
24812
|
webhook_name: isSet(object.webhook_name) ? globalThis.String(object.webhook_name) : "",
|
|
24787
24813
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
24788
24814
|
avatar: isSet(object.avatar) ? globalThis.String(object.avatar) : "",
|
|
24815
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
24789
24816
|
};
|
|
24790
24817
|
},
|
|
24791
24818
|
|
|
@@ -24800,6 +24827,9 @@ export const WebhookCreateRequest = {
|
|
|
24800
24827
|
if (message.avatar !== "") {
|
|
24801
24828
|
obj.avatar = message.avatar;
|
|
24802
24829
|
}
|
|
24830
|
+
if (message.clan_id !== "") {
|
|
24831
|
+
obj.clan_id = message.clan_id;
|
|
24832
|
+
}
|
|
24803
24833
|
return obj;
|
|
24804
24834
|
},
|
|
24805
24835
|
|
|
@@ -24811,6 +24841,7 @@ export const WebhookCreateRequest = {
|
|
|
24811
24841
|
message.webhook_name = object.webhook_name ?? "";
|
|
24812
24842
|
message.channel_id = object.channel_id ?? "";
|
|
24813
24843
|
message.avatar = object.avatar ?? "";
|
|
24844
|
+
message.clan_id = object.clan_id ?? "";
|
|
24814
24845
|
return message;
|
|
24815
24846
|
},
|
|
24816
24847
|
};
|
|
@@ -24873,7 +24904,7 @@ export const WebhookListRequestById = {
|
|
|
24873
24904
|
};
|
|
24874
24905
|
|
|
24875
24906
|
function createBaseWebhookUpdateRequestById(): WebhookUpdateRequestById {
|
|
24876
|
-
return { id: "", webhook_name: "",
|
|
24907
|
+
return { id: "", webhook_name: "", channel_id_update: "", avatar: "", channel_id: "", clan_id: "" };
|
|
24877
24908
|
}
|
|
24878
24909
|
|
|
24879
24910
|
export const WebhookUpdateRequestById = {
|
|
@@ -24884,12 +24915,18 @@ export const WebhookUpdateRequestById = {
|
|
|
24884
24915
|
if (message.webhook_name !== "") {
|
|
24885
24916
|
writer.uint32(18).string(message.webhook_name);
|
|
24886
24917
|
}
|
|
24887
|
-
if (message.
|
|
24888
|
-
writer.uint32(26).string(message.
|
|
24918
|
+
if (message.channel_id_update !== "") {
|
|
24919
|
+
writer.uint32(26).string(message.channel_id_update);
|
|
24889
24920
|
}
|
|
24890
24921
|
if (message.avatar !== "") {
|
|
24891
24922
|
writer.uint32(34).string(message.avatar);
|
|
24892
24923
|
}
|
|
24924
|
+
if (message.channel_id !== "") {
|
|
24925
|
+
writer.uint32(42).string(message.channel_id);
|
|
24926
|
+
}
|
|
24927
|
+
if (message.clan_id !== "") {
|
|
24928
|
+
writer.uint32(50).string(message.clan_id);
|
|
24929
|
+
}
|
|
24893
24930
|
return writer;
|
|
24894
24931
|
},
|
|
24895
24932
|
|
|
@@ -24919,7 +24956,7 @@ export const WebhookUpdateRequestById = {
|
|
|
24919
24956
|
break;
|
|
24920
24957
|
}
|
|
24921
24958
|
|
|
24922
|
-
message.
|
|
24959
|
+
message.channel_id_update = reader.string();
|
|
24923
24960
|
continue;
|
|
24924
24961
|
case 4:
|
|
24925
24962
|
if (tag !== 34) {
|
|
@@ -24928,6 +24965,20 @@ export const WebhookUpdateRequestById = {
|
|
|
24928
24965
|
|
|
24929
24966
|
message.avatar = reader.string();
|
|
24930
24967
|
continue;
|
|
24968
|
+
case 5:
|
|
24969
|
+
if (tag !== 42) {
|
|
24970
|
+
break;
|
|
24971
|
+
}
|
|
24972
|
+
|
|
24973
|
+
message.channel_id = reader.string();
|
|
24974
|
+
continue;
|
|
24975
|
+
case 6:
|
|
24976
|
+
if (tag !== 50) {
|
|
24977
|
+
break;
|
|
24978
|
+
}
|
|
24979
|
+
|
|
24980
|
+
message.clan_id = reader.string();
|
|
24981
|
+
continue;
|
|
24931
24982
|
}
|
|
24932
24983
|
if ((tag & 7) === 4 || tag === 0) {
|
|
24933
24984
|
break;
|
|
@@ -24941,8 +24992,10 @@ export const WebhookUpdateRequestById = {
|
|
|
24941
24992
|
return {
|
|
24942
24993
|
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
24943
24994
|
webhook_name: isSet(object.webhook_name) ? globalThis.String(object.webhook_name) : "",
|
|
24944
|
-
|
|
24995
|
+
channel_id_update: isSet(object.channel_id_update) ? globalThis.String(object.channel_id_update) : "",
|
|
24945
24996
|
avatar: isSet(object.avatar) ? globalThis.String(object.avatar) : "",
|
|
24997
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
24998
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
24946
24999
|
};
|
|
24947
25000
|
},
|
|
24948
25001
|
|
|
@@ -24954,12 +25007,18 @@ export const WebhookUpdateRequestById = {
|
|
|
24954
25007
|
if (message.webhook_name !== "") {
|
|
24955
25008
|
obj.webhook_name = message.webhook_name;
|
|
24956
25009
|
}
|
|
24957
|
-
if (message.
|
|
24958
|
-
obj.
|
|
25010
|
+
if (message.channel_id_update !== "") {
|
|
25011
|
+
obj.channel_id_update = message.channel_id_update;
|
|
24959
25012
|
}
|
|
24960
25013
|
if (message.avatar !== "") {
|
|
24961
25014
|
obj.avatar = message.avatar;
|
|
24962
25015
|
}
|
|
25016
|
+
if (message.channel_id !== "") {
|
|
25017
|
+
obj.channel_id = message.channel_id;
|
|
25018
|
+
}
|
|
25019
|
+
if (message.clan_id !== "") {
|
|
25020
|
+
obj.clan_id = message.clan_id;
|
|
25021
|
+
}
|
|
24963
25022
|
return obj;
|
|
24964
25023
|
},
|
|
24965
25024
|
|
|
@@ -24970,14 +25029,16 @@ export const WebhookUpdateRequestById = {
|
|
|
24970
25029
|
const message = createBaseWebhookUpdateRequestById();
|
|
24971
25030
|
message.id = object.id ?? "";
|
|
24972
25031
|
message.webhook_name = object.webhook_name ?? "";
|
|
24973
|
-
message.
|
|
25032
|
+
message.channel_id_update = object.channel_id_update ?? "";
|
|
24974
25033
|
message.avatar = object.avatar ?? "";
|
|
25034
|
+
message.channel_id = object.channel_id ?? "";
|
|
25035
|
+
message.clan_id = object.clan_id ?? "";
|
|
24975
25036
|
return message;
|
|
24976
25037
|
},
|
|
24977
25038
|
};
|
|
24978
25039
|
|
|
24979
25040
|
function createBaseWebhookDeleteRequestById(): WebhookDeleteRequestById {
|
|
24980
|
-
return { id: "" };
|
|
25041
|
+
return { id: "", clan_id: "", channel_id: "" };
|
|
24981
25042
|
}
|
|
24982
25043
|
|
|
24983
25044
|
export const WebhookDeleteRequestById = {
|
|
@@ -24985,6 +25046,12 @@ export const WebhookDeleteRequestById = {
|
|
|
24985
25046
|
if (message.id !== "") {
|
|
24986
25047
|
writer.uint32(10).string(message.id);
|
|
24987
25048
|
}
|
|
25049
|
+
if (message.clan_id !== "") {
|
|
25050
|
+
writer.uint32(18).string(message.clan_id);
|
|
25051
|
+
}
|
|
25052
|
+
if (message.channel_id !== "") {
|
|
25053
|
+
writer.uint32(26).string(message.channel_id);
|
|
25054
|
+
}
|
|
24988
25055
|
return writer;
|
|
24989
25056
|
},
|
|
24990
25057
|
|
|
@@ -25002,6 +25069,20 @@ export const WebhookDeleteRequestById = {
|
|
|
25002
25069
|
|
|
25003
25070
|
message.id = reader.string();
|
|
25004
25071
|
continue;
|
|
25072
|
+
case 2:
|
|
25073
|
+
if (tag !== 18) {
|
|
25074
|
+
break;
|
|
25075
|
+
}
|
|
25076
|
+
|
|
25077
|
+
message.clan_id = reader.string();
|
|
25078
|
+
continue;
|
|
25079
|
+
case 3:
|
|
25080
|
+
if (tag !== 26) {
|
|
25081
|
+
break;
|
|
25082
|
+
}
|
|
25083
|
+
|
|
25084
|
+
message.channel_id = reader.string();
|
|
25085
|
+
continue;
|
|
25005
25086
|
}
|
|
25006
25087
|
if ((tag & 7) === 4 || tag === 0) {
|
|
25007
25088
|
break;
|
|
@@ -25012,7 +25093,11 @@ export const WebhookDeleteRequestById = {
|
|
|
25012
25093
|
},
|
|
25013
25094
|
|
|
25014
25095
|
fromJSON(object: any): WebhookDeleteRequestById {
|
|
25015
|
-
return {
|
|
25096
|
+
return {
|
|
25097
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
25098
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
25099
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
25100
|
+
};
|
|
25016
25101
|
},
|
|
25017
25102
|
|
|
25018
25103
|
toJSON(message: WebhookDeleteRequestById): unknown {
|
|
@@ -25020,6 +25105,12 @@ export const WebhookDeleteRequestById = {
|
|
|
25020
25105
|
if (message.id !== "") {
|
|
25021
25106
|
obj.id = message.id;
|
|
25022
25107
|
}
|
|
25108
|
+
if (message.clan_id !== "") {
|
|
25109
|
+
obj.clan_id = message.clan_id;
|
|
25110
|
+
}
|
|
25111
|
+
if (message.channel_id !== "") {
|
|
25112
|
+
obj.channel_id = message.channel_id;
|
|
25113
|
+
}
|
|
25023
25114
|
return obj;
|
|
25024
25115
|
},
|
|
25025
25116
|
|
|
@@ -25029,6 +25120,8 @@ export const WebhookDeleteRequestById = {
|
|
|
25029
25120
|
fromPartial<I extends Exact<DeepPartial<WebhookDeleteRequestById>, I>>(object: I): WebhookDeleteRequestById {
|
|
25030
25121
|
const message = createBaseWebhookDeleteRequestById();
|
|
25031
25122
|
message.id = object.id ?? "";
|
|
25123
|
+
message.clan_id = object.clan_id ?? "";
|
|
25124
|
+
message.channel_id = object.channel_id ?? "";
|
|
25032
25125
|
return message;
|
|
25033
25126
|
},
|
|
25034
25127
|
};
|
|
@@ -33115,6 +33208,63 @@ export const TokenSentEvent = {
|
|
|
33115
33208
|
},
|
|
33116
33209
|
};
|
|
33117
33210
|
|
|
33211
|
+
function createBaseWithdrawTokenRequest(): WithdrawTokenRequest {
|
|
33212
|
+
return { amount: 0 };
|
|
33213
|
+
}
|
|
33214
|
+
|
|
33215
|
+
export const WithdrawTokenRequest = {
|
|
33216
|
+
encode(message: WithdrawTokenRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
33217
|
+
if (message.amount !== 0) {
|
|
33218
|
+
writer.uint32(8).int32(message.amount);
|
|
33219
|
+
}
|
|
33220
|
+
return writer;
|
|
33221
|
+
},
|
|
33222
|
+
|
|
33223
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): WithdrawTokenRequest {
|
|
33224
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
33225
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
33226
|
+
const message = createBaseWithdrawTokenRequest();
|
|
33227
|
+
while (reader.pos < end) {
|
|
33228
|
+
const tag = reader.uint32();
|
|
33229
|
+
switch (tag >>> 3) {
|
|
33230
|
+
case 1:
|
|
33231
|
+
if (tag !== 8) {
|
|
33232
|
+
break;
|
|
33233
|
+
}
|
|
33234
|
+
|
|
33235
|
+
message.amount = reader.int32();
|
|
33236
|
+
continue;
|
|
33237
|
+
}
|
|
33238
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
33239
|
+
break;
|
|
33240
|
+
}
|
|
33241
|
+
reader.skipType(tag & 7);
|
|
33242
|
+
}
|
|
33243
|
+
return message;
|
|
33244
|
+
},
|
|
33245
|
+
|
|
33246
|
+
fromJSON(object: any): WithdrawTokenRequest {
|
|
33247
|
+
return { amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0 };
|
|
33248
|
+
},
|
|
33249
|
+
|
|
33250
|
+
toJSON(message: WithdrawTokenRequest): unknown {
|
|
33251
|
+
const obj: any = {};
|
|
33252
|
+
if (message.amount !== 0) {
|
|
33253
|
+
obj.amount = Math.round(message.amount);
|
|
33254
|
+
}
|
|
33255
|
+
return obj;
|
|
33256
|
+
},
|
|
33257
|
+
|
|
33258
|
+
create<I extends Exact<DeepPartial<WithdrawTokenRequest>, I>>(base?: I): WithdrawTokenRequest {
|
|
33259
|
+
return WithdrawTokenRequest.fromPartial(base ?? ({} as any));
|
|
33260
|
+
},
|
|
33261
|
+
fromPartial<I extends Exact<DeepPartial<WithdrawTokenRequest>, I>>(object: I): WithdrawTokenRequest {
|
|
33262
|
+
const message = createBaseWithdrawTokenRequest();
|
|
33263
|
+
message.amount = object.amount ?? 0;
|
|
33264
|
+
return message;
|
|
33265
|
+
},
|
|
33266
|
+
};
|
|
33267
|
+
|
|
33118
33268
|
function bytesFromBase64(b64: string): Uint8Array {
|
|
33119
33269
|
if ((globalThis as any).Buffer) {
|
|
33120
33270
|
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
@@ -2076,18 +2076,29 @@ export interface WebhookCreateRequest {
|
|
|
2076
2076
|
webhook_name: string;
|
|
2077
2077
|
channel_id: string;
|
|
2078
2078
|
avatar: string;
|
|
2079
|
+
clan_id: string;
|
|
2079
2080
|
}
|
|
2080
2081
|
export interface WebhookListRequestById {
|
|
2081
2082
|
id: string;
|
|
2082
2083
|
}
|
|
2083
2084
|
export interface WebhookUpdateRequestById {
|
|
2085
|
+
/** webhook Id */
|
|
2084
2086
|
id: string;
|
|
2087
|
+
/** webhook name */
|
|
2085
2088
|
webhook_name: string;
|
|
2086
|
-
channel_id
|
|
2089
|
+
/** change channel_id of webhook */
|
|
2090
|
+
channel_id_update: string;
|
|
2091
|
+
/** webhook avatar */
|
|
2087
2092
|
avatar: string;
|
|
2093
|
+
/** channel id */
|
|
2094
|
+
channel_id: string;
|
|
2095
|
+
/** clan id */
|
|
2096
|
+
clan_id: string;
|
|
2088
2097
|
}
|
|
2089
2098
|
export interface WebhookDeleteRequestById {
|
|
2090
2099
|
id: string;
|
|
2100
|
+
clan_id: string;
|
|
2101
|
+
channel_id: string;
|
|
2091
2102
|
}
|
|
2092
2103
|
export interface WebhookListRequest {
|
|
2093
2104
|
channel_id: string;
|
|
@@ -2746,6 +2757,10 @@ export interface TokenSentEvent {
|
|
|
2746
2757
|
/** note */
|
|
2747
2758
|
note: string;
|
|
2748
2759
|
}
|
|
2760
|
+
export interface WithdrawTokenRequest {
|
|
2761
|
+
/** amount of token */
|
|
2762
|
+
amount: number;
|
|
2763
|
+
}
|
|
2749
2764
|
export declare const Account: {
|
|
2750
2765
|
encode(message: Account, writer?: _m0.Writer): _m0.Writer;
|
|
2751
2766
|
decode(input: _m0.Reader | Uint8Array, length?: number): Account;
|
|
@@ -14511,19 +14526,23 @@ export declare const WebhookCreateRequest: {
|
|
|
14511
14526
|
webhook_name?: string | undefined;
|
|
14512
14527
|
channel_id?: string | undefined;
|
|
14513
14528
|
avatar?: string | undefined;
|
|
14529
|
+
clan_id?: string | undefined;
|
|
14514
14530
|
} & {
|
|
14515
14531
|
webhook_name?: string | undefined;
|
|
14516
14532
|
channel_id?: string | undefined;
|
|
14517
14533
|
avatar?: string | undefined;
|
|
14534
|
+
clan_id?: string | undefined;
|
|
14518
14535
|
} & { [K in Exclude<keyof I, keyof WebhookCreateRequest>]: never; }>(base?: I | undefined): WebhookCreateRequest;
|
|
14519
14536
|
fromPartial<I_1 extends {
|
|
14520
14537
|
webhook_name?: string | undefined;
|
|
14521
14538
|
channel_id?: string | undefined;
|
|
14522
14539
|
avatar?: string | undefined;
|
|
14540
|
+
clan_id?: string | undefined;
|
|
14523
14541
|
} & {
|
|
14524
14542
|
webhook_name?: string | undefined;
|
|
14525
14543
|
channel_id?: string | undefined;
|
|
14526
14544
|
avatar?: string | undefined;
|
|
14545
|
+
clan_id?: string | undefined;
|
|
14527
14546
|
} & { [K_1 in Exclude<keyof I_1, keyof WebhookCreateRequest>]: never; }>(object: I_1): WebhookCreateRequest;
|
|
14528
14547
|
};
|
|
14529
14548
|
export declare const WebhookListRequestById: {
|
|
@@ -14550,24 +14569,32 @@ export declare const WebhookUpdateRequestById: {
|
|
|
14550
14569
|
create<I extends {
|
|
14551
14570
|
id?: string | undefined;
|
|
14552
14571
|
webhook_name?: string | undefined;
|
|
14553
|
-
|
|
14572
|
+
channel_id_update?: string | undefined;
|
|
14554
14573
|
avatar?: string | undefined;
|
|
14574
|
+
channel_id?: string | undefined;
|
|
14575
|
+
clan_id?: string | undefined;
|
|
14555
14576
|
} & {
|
|
14556
14577
|
id?: string | undefined;
|
|
14557
14578
|
webhook_name?: string | undefined;
|
|
14558
|
-
|
|
14579
|
+
channel_id_update?: string | undefined;
|
|
14559
14580
|
avatar?: string | undefined;
|
|
14581
|
+
channel_id?: string | undefined;
|
|
14582
|
+
clan_id?: string | undefined;
|
|
14560
14583
|
} & { [K in Exclude<keyof I, keyof WebhookUpdateRequestById>]: never; }>(base?: I | undefined): WebhookUpdateRequestById;
|
|
14561
14584
|
fromPartial<I_1 extends {
|
|
14562
14585
|
id?: string | undefined;
|
|
14563
14586
|
webhook_name?: string | undefined;
|
|
14564
|
-
|
|
14587
|
+
channel_id_update?: string | undefined;
|
|
14565
14588
|
avatar?: string | undefined;
|
|
14589
|
+
channel_id?: string | undefined;
|
|
14590
|
+
clan_id?: string | undefined;
|
|
14566
14591
|
} & {
|
|
14567
14592
|
id?: string | undefined;
|
|
14568
14593
|
webhook_name?: string | undefined;
|
|
14569
|
-
|
|
14594
|
+
channel_id_update?: string | undefined;
|
|
14570
14595
|
avatar?: string | undefined;
|
|
14596
|
+
channel_id?: string | undefined;
|
|
14597
|
+
clan_id?: string | undefined;
|
|
14571
14598
|
} & { [K_1 in Exclude<keyof I_1, keyof WebhookUpdateRequestById>]: never; }>(object: I_1): WebhookUpdateRequestById;
|
|
14572
14599
|
};
|
|
14573
14600
|
export declare const WebhookDeleteRequestById: {
|
|
@@ -14577,14 +14604,22 @@ export declare const WebhookDeleteRequestById: {
|
|
|
14577
14604
|
toJSON(message: WebhookDeleteRequestById): unknown;
|
|
14578
14605
|
create<I extends {
|
|
14579
14606
|
id?: string | undefined;
|
|
14607
|
+
clan_id?: string | undefined;
|
|
14608
|
+
channel_id?: string | undefined;
|
|
14580
14609
|
} & {
|
|
14581
14610
|
id?: string | undefined;
|
|
14582
|
-
|
|
14611
|
+
clan_id?: string | undefined;
|
|
14612
|
+
channel_id?: string | undefined;
|
|
14613
|
+
} & { [K in Exclude<keyof I, keyof WebhookDeleteRequestById>]: never; }>(base?: I | undefined): WebhookDeleteRequestById;
|
|
14583
14614
|
fromPartial<I_1 extends {
|
|
14584
14615
|
id?: string | undefined;
|
|
14616
|
+
clan_id?: string | undefined;
|
|
14617
|
+
channel_id?: string | undefined;
|
|
14585
14618
|
} & {
|
|
14586
14619
|
id?: string | undefined;
|
|
14587
|
-
|
|
14620
|
+
clan_id?: string | undefined;
|
|
14621
|
+
channel_id?: string | undefined;
|
|
14622
|
+
} & { [K_1 in Exclude<keyof I_1, keyof WebhookDeleteRequestById>]: never; }>(object: I_1): WebhookDeleteRequestById;
|
|
14588
14623
|
};
|
|
14589
14624
|
export declare const WebhookListRequest: {
|
|
14590
14625
|
encode(message: WebhookListRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -18866,6 +18901,22 @@ export declare const TokenSentEvent: {
|
|
|
18866
18901
|
note?: string | undefined;
|
|
18867
18902
|
} & { [K_1 in Exclude<keyof I_1, keyof TokenSentEvent>]: never; }>(object: I_1): TokenSentEvent;
|
|
18868
18903
|
};
|
|
18904
|
+
export declare const WithdrawTokenRequest: {
|
|
18905
|
+
encode(message: WithdrawTokenRequest, writer?: _m0.Writer): _m0.Writer;
|
|
18906
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): WithdrawTokenRequest;
|
|
18907
|
+
fromJSON(object: any): WithdrawTokenRequest;
|
|
18908
|
+
toJSON(message: WithdrawTokenRequest): unknown;
|
|
18909
|
+
create<I extends {
|
|
18910
|
+
amount?: number | undefined;
|
|
18911
|
+
} & {
|
|
18912
|
+
amount?: number | undefined;
|
|
18913
|
+
} & { [K in Exclude<keyof I, "amount">]: never; }>(base?: I | undefined): WithdrawTokenRequest;
|
|
18914
|
+
fromPartial<I_1 extends {
|
|
18915
|
+
amount?: number | undefined;
|
|
18916
|
+
} & {
|
|
18917
|
+
amount?: number | undefined;
|
|
18918
|
+
} & { [K_1 in Exclude<keyof I_1, "amount">]: never; }>(object: I_1): WithdrawTokenRequest;
|
|
18919
|
+
};
|
|
18869
18920
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
18870
18921
|
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 {} ? {
|
|
18871
18922
|
[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.
|
|
3
|
+
"version": "1.6.20",
|
|
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",
|