mezon-js-protobuf 1.5.23 → 1.5.26
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 +132 -2
- package/dist/mezon-js-protobuf/api/api.d.ts +40 -0
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +173 -105
- package/dist/mezon-js-protobuf.cjs.js +26 -12
- package/dist/mezon-js-protobuf.esm.mjs +26 -12
- package/package.json +1 -1
- package/rtapi/realtime.ts +28 -11
package/api/api.ts
CHANGED
|
@@ -2494,6 +2494,13 @@ export interface WebhookGenerateResponse {
|
|
|
2494
2494
|
avatar: string;
|
|
2495
2495
|
}
|
|
2496
2496
|
|
|
2497
|
+
export interface WebhookHandlerRequest {
|
|
2498
|
+
clan_id: string;
|
|
2499
|
+
channel_id: string;
|
|
2500
|
+
token: string;
|
|
2501
|
+
body: string;
|
|
2502
|
+
}
|
|
2503
|
+
|
|
2497
2504
|
export interface CheckDuplicateClanNameRequest {
|
|
2498
2505
|
clan_name: string;
|
|
2499
2506
|
}
|
|
@@ -2611,7 +2618,11 @@ export interface UpdateAppRequest {
|
|
|
2611
2618
|
| string
|
|
2612
2619
|
| undefined;
|
|
2613
2620
|
/** Token. */
|
|
2614
|
-
token:
|
|
2621
|
+
token:
|
|
2622
|
+
| string
|
|
2623
|
+
| undefined;
|
|
2624
|
+
/** about the app. */
|
|
2625
|
+
about: string;
|
|
2615
2626
|
}
|
|
2616
2627
|
|
|
2617
2628
|
/** The identifier for an app. */
|
|
@@ -22399,6 +22410,110 @@ export const WebhookGenerateResponse = {
|
|
|
22399
22410
|
},
|
|
22400
22411
|
};
|
|
22401
22412
|
|
|
22413
|
+
function createBaseWebhookHandlerRequest(): WebhookHandlerRequest {
|
|
22414
|
+
return { clan_id: "", channel_id: "", token: "", body: "" };
|
|
22415
|
+
}
|
|
22416
|
+
|
|
22417
|
+
export const WebhookHandlerRequest = {
|
|
22418
|
+
encode(message: WebhookHandlerRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
22419
|
+
if (message.clan_id !== "") {
|
|
22420
|
+
writer.uint32(10).string(message.clan_id);
|
|
22421
|
+
}
|
|
22422
|
+
if (message.channel_id !== "") {
|
|
22423
|
+
writer.uint32(18).string(message.channel_id);
|
|
22424
|
+
}
|
|
22425
|
+
if (message.token !== "") {
|
|
22426
|
+
writer.uint32(26).string(message.token);
|
|
22427
|
+
}
|
|
22428
|
+
if (message.body !== "") {
|
|
22429
|
+
writer.uint32(34).string(message.body);
|
|
22430
|
+
}
|
|
22431
|
+
return writer;
|
|
22432
|
+
},
|
|
22433
|
+
|
|
22434
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): WebhookHandlerRequest {
|
|
22435
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
22436
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
22437
|
+
const message = createBaseWebhookHandlerRequest();
|
|
22438
|
+
while (reader.pos < end) {
|
|
22439
|
+
const tag = reader.uint32();
|
|
22440
|
+
switch (tag >>> 3) {
|
|
22441
|
+
case 1:
|
|
22442
|
+
if (tag !== 10) {
|
|
22443
|
+
break;
|
|
22444
|
+
}
|
|
22445
|
+
|
|
22446
|
+
message.clan_id = reader.string();
|
|
22447
|
+
continue;
|
|
22448
|
+
case 2:
|
|
22449
|
+
if (tag !== 18) {
|
|
22450
|
+
break;
|
|
22451
|
+
}
|
|
22452
|
+
|
|
22453
|
+
message.channel_id = reader.string();
|
|
22454
|
+
continue;
|
|
22455
|
+
case 3:
|
|
22456
|
+
if (tag !== 26) {
|
|
22457
|
+
break;
|
|
22458
|
+
}
|
|
22459
|
+
|
|
22460
|
+
message.token = reader.string();
|
|
22461
|
+
continue;
|
|
22462
|
+
case 4:
|
|
22463
|
+
if (tag !== 34) {
|
|
22464
|
+
break;
|
|
22465
|
+
}
|
|
22466
|
+
|
|
22467
|
+
message.body = reader.string();
|
|
22468
|
+
continue;
|
|
22469
|
+
}
|
|
22470
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
22471
|
+
break;
|
|
22472
|
+
}
|
|
22473
|
+
reader.skipType(tag & 7);
|
|
22474
|
+
}
|
|
22475
|
+
return message;
|
|
22476
|
+
},
|
|
22477
|
+
|
|
22478
|
+
fromJSON(object: any): WebhookHandlerRequest {
|
|
22479
|
+
return {
|
|
22480
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
22481
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
22482
|
+
token: isSet(object.token) ? globalThis.String(object.token) : "",
|
|
22483
|
+
body: isSet(object.body) ? globalThis.String(object.body) : "",
|
|
22484
|
+
};
|
|
22485
|
+
},
|
|
22486
|
+
|
|
22487
|
+
toJSON(message: WebhookHandlerRequest): unknown {
|
|
22488
|
+
const obj: any = {};
|
|
22489
|
+
if (message.clan_id !== "") {
|
|
22490
|
+
obj.clan_id = message.clan_id;
|
|
22491
|
+
}
|
|
22492
|
+
if (message.channel_id !== "") {
|
|
22493
|
+
obj.channel_id = message.channel_id;
|
|
22494
|
+
}
|
|
22495
|
+
if (message.token !== "") {
|
|
22496
|
+
obj.token = message.token;
|
|
22497
|
+
}
|
|
22498
|
+
if (message.body !== "") {
|
|
22499
|
+
obj.body = message.body;
|
|
22500
|
+
}
|
|
22501
|
+
return obj;
|
|
22502
|
+
},
|
|
22503
|
+
|
|
22504
|
+
create<I extends Exact<DeepPartial<WebhookHandlerRequest>, I>>(base?: I): WebhookHandlerRequest {
|
|
22505
|
+
return WebhookHandlerRequest.fromPartial(base ?? ({} as any));
|
|
22506
|
+
},
|
|
22507
|
+
fromPartial<I extends Exact<DeepPartial<WebhookHandlerRequest>, I>>(object: I): WebhookHandlerRequest {
|
|
22508
|
+
const message = createBaseWebhookHandlerRequest();
|
|
22509
|
+
message.clan_id = object.clan_id ?? "";
|
|
22510
|
+
message.channel_id = object.channel_id ?? "";
|
|
22511
|
+
message.token = object.token ?? "";
|
|
22512
|
+
message.body = object.body ?? "";
|
|
22513
|
+
return message;
|
|
22514
|
+
},
|
|
22515
|
+
};
|
|
22516
|
+
|
|
22402
22517
|
function createBaseCheckDuplicateClanNameRequest(): CheckDuplicateClanNameRequest {
|
|
22403
22518
|
return { clan_name: "" };
|
|
22404
22519
|
}
|
|
@@ -23477,7 +23592,7 @@ export const ListAppsRequest = {
|
|
|
23477
23592
|
};
|
|
23478
23593
|
|
|
23479
23594
|
function createBaseUpdateAppRequest(): UpdateAppRequest {
|
|
23480
|
-
return { id: "", appname: undefined, metadata: undefined, applogo: undefined, token: undefined };
|
|
23595
|
+
return { id: "", appname: undefined, metadata: undefined, applogo: undefined, token: undefined, about: "" };
|
|
23481
23596
|
}
|
|
23482
23597
|
|
|
23483
23598
|
export const UpdateAppRequest = {
|
|
@@ -23497,6 +23612,9 @@ export const UpdateAppRequest = {
|
|
|
23497
23612
|
if (message.token !== undefined) {
|
|
23498
23613
|
StringValue.encode({ value: message.token! }, writer.uint32(42).fork()).ldelim();
|
|
23499
23614
|
}
|
|
23615
|
+
if (message.about !== "") {
|
|
23616
|
+
writer.uint32(50).string(message.about);
|
|
23617
|
+
}
|
|
23500
23618
|
return writer;
|
|
23501
23619
|
},
|
|
23502
23620
|
|
|
@@ -23542,6 +23660,13 @@ export const UpdateAppRequest = {
|
|
|
23542
23660
|
|
|
23543
23661
|
message.token = StringValue.decode(reader, reader.uint32()).value;
|
|
23544
23662
|
continue;
|
|
23663
|
+
case 6:
|
|
23664
|
+
if (tag !== 50) {
|
|
23665
|
+
break;
|
|
23666
|
+
}
|
|
23667
|
+
|
|
23668
|
+
message.about = reader.string();
|
|
23669
|
+
continue;
|
|
23545
23670
|
}
|
|
23546
23671
|
if ((tag & 7) === 4 || tag === 0) {
|
|
23547
23672
|
break;
|
|
@@ -23558,6 +23683,7 @@ export const UpdateAppRequest = {
|
|
|
23558
23683
|
metadata: isSet(object.metadata) ? String(object.metadata) : undefined,
|
|
23559
23684
|
applogo: isSet(object.applogo) ? String(object.applogo) : undefined,
|
|
23560
23685
|
token: isSet(object.token) ? String(object.token) : undefined,
|
|
23686
|
+
about: isSet(object.about) ? globalThis.String(object.about) : "",
|
|
23561
23687
|
};
|
|
23562
23688
|
},
|
|
23563
23689
|
|
|
@@ -23578,6 +23704,9 @@ export const UpdateAppRequest = {
|
|
|
23578
23704
|
if (message.token !== undefined) {
|
|
23579
23705
|
obj.token = message.token;
|
|
23580
23706
|
}
|
|
23707
|
+
if (message.about !== "") {
|
|
23708
|
+
obj.about = message.about;
|
|
23709
|
+
}
|
|
23581
23710
|
return obj;
|
|
23582
23711
|
},
|
|
23583
23712
|
|
|
@@ -23591,6 +23720,7 @@ export const UpdateAppRequest = {
|
|
|
23591
23720
|
message.metadata = object.metadata ?? undefined;
|
|
23592
23721
|
message.applogo = object.applogo ?? undefined;
|
|
23593
23722
|
message.token = object.token ?? undefined;
|
|
23723
|
+
message.about = object.about ?? "";
|
|
23594
23724
|
return message;
|
|
23595
23725
|
},
|
|
23596
23726
|
};
|
|
@@ -1929,6 +1929,12 @@ export interface WebhookGenerateResponse {
|
|
|
1929
1929
|
channel_id: string;
|
|
1930
1930
|
avatar: string;
|
|
1931
1931
|
}
|
|
1932
|
+
export interface WebhookHandlerRequest {
|
|
1933
|
+
clan_id: string;
|
|
1934
|
+
channel_id: string;
|
|
1935
|
+
token: string;
|
|
1936
|
+
body: string;
|
|
1937
|
+
}
|
|
1932
1938
|
export interface CheckDuplicateClanNameRequest {
|
|
1933
1939
|
clan_name: string;
|
|
1934
1940
|
}
|
|
@@ -2027,6 +2033,8 @@ export interface UpdateAppRequest {
|
|
|
2027
2033
|
applogo: string | undefined;
|
|
2028
2034
|
/** Token. */
|
|
2029
2035
|
token: string | undefined;
|
|
2036
|
+
/** about the app. */
|
|
2037
|
+
about: string;
|
|
2030
2038
|
}
|
|
2031
2039
|
/** The identifier for an app. */
|
|
2032
2040
|
export interface AppId {
|
|
@@ -13094,6 +13102,34 @@ export declare const WebhookGenerateResponse: {
|
|
|
13094
13102
|
avatar?: string | undefined;
|
|
13095
13103
|
} & { [K_1 in Exclude<keyof I_1, keyof WebhookGenerateResponse>]: never; }>(object: I_1): WebhookGenerateResponse;
|
|
13096
13104
|
};
|
|
13105
|
+
export declare const WebhookHandlerRequest: {
|
|
13106
|
+
encode(message: WebhookHandlerRequest, writer?: _m0.Writer): _m0.Writer;
|
|
13107
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): WebhookHandlerRequest;
|
|
13108
|
+
fromJSON(object: any): WebhookHandlerRequest;
|
|
13109
|
+
toJSON(message: WebhookHandlerRequest): unknown;
|
|
13110
|
+
create<I extends {
|
|
13111
|
+
clan_id?: string | undefined;
|
|
13112
|
+
channel_id?: string | undefined;
|
|
13113
|
+
token?: string | undefined;
|
|
13114
|
+
body?: string | undefined;
|
|
13115
|
+
} & {
|
|
13116
|
+
clan_id?: string | undefined;
|
|
13117
|
+
channel_id?: string | undefined;
|
|
13118
|
+
token?: string | undefined;
|
|
13119
|
+
body?: string | undefined;
|
|
13120
|
+
} & { [K in Exclude<keyof I, keyof WebhookHandlerRequest>]: never; }>(base?: I | undefined): WebhookHandlerRequest;
|
|
13121
|
+
fromPartial<I_1 extends {
|
|
13122
|
+
clan_id?: string | undefined;
|
|
13123
|
+
channel_id?: string | undefined;
|
|
13124
|
+
token?: string | undefined;
|
|
13125
|
+
body?: string | undefined;
|
|
13126
|
+
} & {
|
|
13127
|
+
clan_id?: string | undefined;
|
|
13128
|
+
channel_id?: string | undefined;
|
|
13129
|
+
token?: string | undefined;
|
|
13130
|
+
body?: string | undefined;
|
|
13131
|
+
} & { [K_1 in Exclude<keyof I_1, keyof WebhookHandlerRequest>]: never; }>(object: I_1): WebhookHandlerRequest;
|
|
13132
|
+
};
|
|
13097
13133
|
export declare const CheckDuplicateClanNameRequest: {
|
|
13098
13134
|
encode(message: CheckDuplicateClanNameRequest, writer?: _m0.Writer): _m0.Writer;
|
|
13099
13135
|
decode(input: _m0.Reader | Uint8Array, length?: number): CheckDuplicateClanNameRequest;
|
|
@@ -13483,12 +13519,14 @@ export declare const UpdateAppRequest: {
|
|
|
13483
13519
|
metadata?: string | undefined;
|
|
13484
13520
|
applogo?: string | undefined;
|
|
13485
13521
|
token?: string | undefined;
|
|
13522
|
+
about?: string | undefined;
|
|
13486
13523
|
} & {
|
|
13487
13524
|
id?: string | undefined;
|
|
13488
13525
|
appname?: string | undefined;
|
|
13489
13526
|
metadata?: string | undefined;
|
|
13490
13527
|
applogo?: string | undefined;
|
|
13491
13528
|
token?: string | undefined;
|
|
13529
|
+
about?: string | undefined;
|
|
13492
13530
|
} & { [K in Exclude<keyof I, keyof UpdateAppRequest>]: never; }>(base?: I | undefined): UpdateAppRequest;
|
|
13493
13531
|
fromPartial<I_1 extends {
|
|
13494
13532
|
id?: string | undefined;
|
|
@@ -13496,12 +13534,14 @@ export declare const UpdateAppRequest: {
|
|
|
13496
13534
|
metadata?: string | undefined;
|
|
13497
13535
|
applogo?: string | undefined;
|
|
13498
13536
|
token?: string | undefined;
|
|
13537
|
+
about?: string | undefined;
|
|
13499
13538
|
} & {
|
|
13500
13539
|
id?: string | undefined;
|
|
13501
13540
|
appname?: string | undefined;
|
|
13502
13541
|
metadata?: string | undefined;
|
|
13503
13542
|
applogo?: string | undefined;
|
|
13504
13543
|
token?: string | undefined;
|
|
13544
|
+
about?: string | undefined;
|
|
13505
13545
|
} & { [K_1 in Exclude<keyof I_1, keyof UpdateAppRequest>]: never; }>(object: I_1): UpdateAppRequest;
|
|
13506
13546
|
};
|
|
13507
13547
|
export declare const AppId: {
|