mezon-js-protobuf 1.7.33 → 1.7.34
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 +2 -138
- package/dist/mezon-js-protobuf/api/api.d.ts +0 -44
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +194 -156
- package/dist/mezon-js-protobuf.cjs.js +68 -2
- package/dist/mezon-js-protobuf.esm.mjs +68 -2
- package/package.json +1 -1
- package/rtapi/realtime.ts +89 -3
package/api/api.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
2
|
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v1.181.
|
|
4
|
-
// protoc v5.27.
|
|
3
|
+
// protoc-gen-ts_proto v1.181.1
|
|
4
|
+
// protoc v5.27.2
|
|
5
5
|
// source: api/api.proto
|
|
6
6
|
|
|
7
7
|
/* eslint-disable */
|
|
@@ -3937,19 +3937,6 @@ export interface CreateRoomChannelApps {
|
|
|
3937
3937
|
room_name: string;
|
|
3938
3938
|
}
|
|
3939
3939
|
|
|
3940
|
-
export interface HandleParticipantMeetStateRequest {
|
|
3941
|
-
/** clan id */
|
|
3942
|
-
clan_id: string;
|
|
3943
|
-
/** channel id */
|
|
3944
|
-
channel_id: string;
|
|
3945
|
-
/** user id */
|
|
3946
|
-
user_id: string;
|
|
3947
|
-
/** display name */
|
|
3948
|
-
display_name: string;
|
|
3949
|
-
/** state (0: join, 1: leave) */
|
|
3950
|
-
state: number;
|
|
3951
|
-
}
|
|
3952
|
-
|
|
3953
3940
|
export interface MezonOauthClient {
|
|
3954
3941
|
access_token_strategy: string;
|
|
3955
3942
|
allowed_cors_origins: string[];
|
|
@@ -38526,129 +38513,6 @@ export const CreateRoomChannelApps = {
|
|
|
38526
38513
|
},
|
|
38527
38514
|
};
|
|
38528
38515
|
|
|
38529
|
-
function createBaseHandleParticipantMeetStateRequest(): HandleParticipantMeetStateRequest {
|
|
38530
|
-
return { clan_id: "", channel_id: "", user_id: "", display_name: "", state: 0 };
|
|
38531
|
-
}
|
|
38532
|
-
|
|
38533
|
-
export const HandleParticipantMeetStateRequest = {
|
|
38534
|
-
encode(message: HandleParticipantMeetStateRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
38535
|
-
if (message.clan_id !== "") {
|
|
38536
|
-
writer.uint32(10).string(message.clan_id);
|
|
38537
|
-
}
|
|
38538
|
-
if (message.channel_id !== "") {
|
|
38539
|
-
writer.uint32(18).string(message.channel_id);
|
|
38540
|
-
}
|
|
38541
|
-
if (message.user_id !== "") {
|
|
38542
|
-
writer.uint32(26).string(message.user_id);
|
|
38543
|
-
}
|
|
38544
|
-
if (message.display_name !== "") {
|
|
38545
|
-
writer.uint32(34).string(message.display_name);
|
|
38546
|
-
}
|
|
38547
|
-
if (message.state !== 0) {
|
|
38548
|
-
writer.uint32(40).int32(message.state);
|
|
38549
|
-
}
|
|
38550
|
-
return writer;
|
|
38551
|
-
},
|
|
38552
|
-
|
|
38553
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): HandleParticipantMeetStateRequest {
|
|
38554
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
38555
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
38556
|
-
const message = createBaseHandleParticipantMeetStateRequest();
|
|
38557
|
-
while (reader.pos < end) {
|
|
38558
|
-
const tag = reader.uint32();
|
|
38559
|
-
switch (tag >>> 3) {
|
|
38560
|
-
case 1:
|
|
38561
|
-
if (tag !== 10) {
|
|
38562
|
-
break;
|
|
38563
|
-
}
|
|
38564
|
-
|
|
38565
|
-
message.clan_id = reader.string();
|
|
38566
|
-
continue;
|
|
38567
|
-
case 2:
|
|
38568
|
-
if (tag !== 18) {
|
|
38569
|
-
break;
|
|
38570
|
-
}
|
|
38571
|
-
|
|
38572
|
-
message.channel_id = reader.string();
|
|
38573
|
-
continue;
|
|
38574
|
-
case 3:
|
|
38575
|
-
if (tag !== 26) {
|
|
38576
|
-
break;
|
|
38577
|
-
}
|
|
38578
|
-
|
|
38579
|
-
message.user_id = reader.string();
|
|
38580
|
-
continue;
|
|
38581
|
-
case 4:
|
|
38582
|
-
if (tag !== 34) {
|
|
38583
|
-
break;
|
|
38584
|
-
}
|
|
38585
|
-
|
|
38586
|
-
message.display_name = reader.string();
|
|
38587
|
-
continue;
|
|
38588
|
-
case 5:
|
|
38589
|
-
if (tag !== 40) {
|
|
38590
|
-
break;
|
|
38591
|
-
}
|
|
38592
|
-
|
|
38593
|
-
message.state = reader.int32();
|
|
38594
|
-
continue;
|
|
38595
|
-
}
|
|
38596
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
38597
|
-
break;
|
|
38598
|
-
}
|
|
38599
|
-
reader.skipType(tag & 7);
|
|
38600
|
-
}
|
|
38601
|
-
return message;
|
|
38602
|
-
},
|
|
38603
|
-
|
|
38604
|
-
fromJSON(object: any): HandleParticipantMeetStateRequest {
|
|
38605
|
-
return {
|
|
38606
|
-
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
38607
|
-
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
38608
|
-
user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
|
|
38609
|
-
display_name: isSet(object.display_name) ? globalThis.String(object.display_name) : "",
|
|
38610
|
-
state: isSet(object.state) ? globalThis.Number(object.state) : 0,
|
|
38611
|
-
};
|
|
38612
|
-
},
|
|
38613
|
-
|
|
38614
|
-
toJSON(message: HandleParticipantMeetStateRequest): unknown {
|
|
38615
|
-
const obj: any = {};
|
|
38616
|
-
if (message.clan_id !== "") {
|
|
38617
|
-
obj.clan_id = message.clan_id;
|
|
38618
|
-
}
|
|
38619
|
-
if (message.channel_id !== "") {
|
|
38620
|
-
obj.channel_id = message.channel_id;
|
|
38621
|
-
}
|
|
38622
|
-
if (message.user_id !== "") {
|
|
38623
|
-
obj.user_id = message.user_id;
|
|
38624
|
-
}
|
|
38625
|
-
if (message.display_name !== "") {
|
|
38626
|
-
obj.display_name = message.display_name;
|
|
38627
|
-
}
|
|
38628
|
-
if (message.state !== 0) {
|
|
38629
|
-
obj.state = Math.round(message.state);
|
|
38630
|
-
}
|
|
38631
|
-
return obj;
|
|
38632
|
-
},
|
|
38633
|
-
|
|
38634
|
-
create<I extends Exact<DeepPartial<HandleParticipantMeetStateRequest>, I>>(
|
|
38635
|
-
base?: I,
|
|
38636
|
-
): HandleParticipantMeetStateRequest {
|
|
38637
|
-
return HandleParticipantMeetStateRequest.fromPartial(base ?? ({} as any));
|
|
38638
|
-
},
|
|
38639
|
-
fromPartial<I extends Exact<DeepPartial<HandleParticipantMeetStateRequest>, I>>(
|
|
38640
|
-
object: I,
|
|
38641
|
-
): HandleParticipantMeetStateRequest {
|
|
38642
|
-
const message = createBaseHandleParticipantMeetStateRequest();
|
|
38643
|
-
message.clan_id = object.clan_id ?? "";
|
|
38644
|
-
message.channel_id = object.channel_id ?? "";
|
|
38645
|
-
message.user_id = object.user_id ?? "";
|
|
38646
|
-
message.display_name = object.display_name ?? "";
|
|
38647
|
-
message.state = object.state ?? 0;
|
|
38648
|
-
return message;
|
|
38649
|
-
},
|
|
38650
|
-
};
|
|
38651
|
-
|
|
38652
38516
|
function createBaseMezonOauthClient(): MezonOauthClient {
|
|
38653
38517
|
return {
|
|
38654
38518
|
access_token_strategy: "",
|
|
@@ -3174,18 +3174,6 @@ export interface CreateRoomChannelApps {
|
|
|
3174
3174
|
channel_id: string;
|
|
3175
3175
|
room_name: string;
|
|
3176
3176
|
}
|
|
3177
|
-
export interface HandleParticipantMeetStateRequest {
|
|
3178
|
-
/** clan id */
|
|
3179
|
-
clan_id: string;
|
|
3180
|
-
/** channel id */
|
|
3181
|
-
channel_id: string;
|
|
3182
|
-
/** user id */
|
|
3183
|
-
user_id: string;
|
|
3184
|
-
/** display name */
|
|
3185
|
-
display_name: string;
|
|
3186
|
-
/** state (0: join, 1: leave) */
|
|
3187
|
-
state: number;
|
|
3188
|
-
}
|
|
3189
3177
|
export interface MezonOauthClient {
|
|
3190
3178
|
access_token_strategy: string;
|
|
3191
3179
|
allowed_cors_origins: string[];
|
|
@@ -24517,38 +24505,6 @@ export declare const CreateRoomChannelApps: {
|
|
|
24517
24505
|
room_name?: string | undefined;
|
|
24518
24506
|
} & { [K_1 in Exclude<keyof I_1, keyof CreateRoomChannelApps>]: never; }>(object: I_1): CreateRoomChannelApps;
|
|
24519
24507
|
};
|
|
24520
|
-
export declare const HandleParticipantMeetStateRequest: {
|
|
24521
|
-
encode(message: HandleParticipantMeetStateRequest, writer?: _m0.Writer): _m0.Writer;
|
|
24522
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): HandleParticipantMeetStateRequest;
|
|
24523
|
-
fromJSON(object: any): HandleParticipantMeetStateRequest;
|
|
24524
|
-
toJSON(message: HandleParticipantMeetStateRequest): unknown;
|
|
24525
|
-
create<I extends {
|
|
24526
|
-
clan_id?: string | undefined;
|
|
24527
|
-
channel_id?: string | undefined;
|
|
24528
|
-
user_id?: string | undefined;
|
|
24529
|
-
display_name?: string | undefined;
|
|
24530
|
-
state?: number | undefined;
|
|
24531
|
-
} & {
|
|
24532
|
-
clan_id?: string | undefined;
|
|
24533
|
-
channel_id?: string | undefined;
|
|
24534
|
-
user_id?: string | undefined;
|
|
24535
|
-
display_name?: string | undefined;
|
|
24536
|
-
state?: number | undefined;
|
|
24537
|
-
} & { [K in Exclude<keyof I, keyof HandleParticipantMeetStateRequest>]: never; }>(base?: I | undefined): HandleParticipantMeetStateRequest;
|
|
24538
|
-
fromPartial<I_1 extends {
|
|
24539
|
-
clan_id?: string | undefined;
|
|
24540
|
-
channel_id?: string | undefined;
|
|
24541
|
-
user_id?: string | undefined;
|
|
24542
|
-
display_name?: string | undefined;
|
|
24543
|
-
state?: number | undefined;
|
|
24544
|
-
} & {
|
|
24545
|
-
clan_id?: string | undefined;
|
|
24546
|
-
channel_id?: string | undefined;
|
|
24547
|
-
user_id?: string | undefined;
|
|
24548
|
-
display_name?: string | undefined;
|
|
24549
|
-
state?: number | undefined;
|
|
24550
|
-
} & { [K_1 in Exclude<keyof I_1, keyof HandleParticipantMeetStateRequest>]: never; }>(object: I_1): HandleParticipantMeetStateRequest;
|
|
24551
|
-
};
|
|
24552
24508
|
export declare const MezonOauthClient: {
|
|
24553
24509
|
encode(message: MezonOauthClient, writer?: _m0.Writer): _m0.Writer;
|
|
24554
24510
|
decode(input: _m0.Reader | Uint8Array, length?: number): MezonOauthClient;
|