mezon-js-protobuf 1.6.91 → 1.6.92
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 +0 -183
- package/dist/mezon-js-protobuf/api/api.d.ts +0 -110
- package/package.json +1 -1
package/api/api.ts
CHANGED
|
@@ -3786,24 +3786,6 @@ export interface UpdateOnboardingStepRequest {
|
|
|
3786
3786
|
onboarding_step: number | undefined;
|
|
3787
3787
|
}
|
|
3788
3788
|
|
|
3789
|
-
/** A list of users belonging to a channel, along with their role. */
|
|
3790
|
-
export interface SFUChannelUser {
|
|
3791
|
-
/** user join id */
|
|
3792
|
-
id: string;
|
|
3793
|
-
/** user for a channel. */
|
|
3794
|
-
user_id: string;
|
|
3795
|
-
/** channel id */
|
|
3796
|
-
channel_id: string;
|
|
3797
|
-
/** participant */
|
|
3798
|
-
participant: string;
|
|
3799
|
-
}
|
|
3800
|
-
|
|
3801
|
-
/** A list of users belonging to a channel, along with their role. */
|
|
3802
|
-
export interface SFUChannelUserList {
|
|
3803
|
-
/** list of ptt channel user */
|
|
3804
|
-
sfu_channel_users: SFUChannelUser[];
|
|
3805
|
-
}
|
|
3806
|
-
|
|
3807
3789
|
export interface WalletLedger {
|
|
3808
3790
|
/** change set id */
|
|
3809
3791
|
id: string;
|
|
@@ -36546,171 +36528,6 @@ export const UpdateOnboardingStepRequest = {
|
|
|
36546
36528
|
},
|
|
36547
36529
|
};
|
|
36548
36530
|
|
|
36549
|
-
function createBaseSFUChannelUser(): SFUChannelUser {
|
|
36550
|
-
return { id: "", user_id: "", channel_id: "", participant: "" };
|
|
36551
|
-
}
|
|
36552
|
-
|
|
36553
|
-
export const SFUChannelUser = {
|
|
36554
|
-
encode(message: SFUChannelUser, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
36555
|
-
if (message.id !== "") {
|
|
36556
|
-
writer.uint32(10).string(message.id);
|
|
36557
|
-
}
|
|
36558
|
-
if (message.user_id !== "") {
|
|
36559
|
-
writer.uint32(18).string(message.user_id);
|
|
36560
|
-
}
|
|
36561
|
-
if (message.channel_id !== "") {
|
|
36562
|
-
writer.uint32(26).string(message.channel_id);
|
|
36563
|
-
}
|
|
36564
|
-
if (message.participant !== "") {
|
|
36565
|
-
writer.uint32(34).string(message.participant);
|
|
36566
|
-
}
|
|
36567
|
-
return writer;
|
|
36568
|
-
},
|
|
36569
|
-
|
|
36570
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): SFUChannelUser {
|
|
36571
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
36572
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
36573
|
-
const message = createBaseSFUChannelUser();
|
|
36574
|
-
while (reader.pos < end) {
|
|
36575
|
-
const tag = reader.uint32();
|
|
36576
|
-
switch (tag >>> 3) {
|
|
36577
|
-
case 1:
|
|
36578
|
-
if (tag !== 10) {
|
|
36579
|
-
break;
|
|
36580
|
-
}
|
|
36581
|
-
|
|
36582
|
-
message.id = reader.string();
|
|
36583
|
-
continue;
|
|
36584
|
-
case 2:
|
|
36585
|
-
if (tag !== 18) {
|
|
36586
|
-
break;
|
|
36587
|
-
}
|
|
36588
|
-
|
|
36589
|
-
message.user_id = reader.string();
|
|
36590
|
-
continue;
|
|
36591
|
-
case 3:
|
|
36592
|
-
if (tag !== 26) {
|
|
36593
|
-
break;
|
|
36594
|
-
}
|
|
36595
|
-
|
|
36596
|
-
message.channel_id = reader.string();
|
|
36597
|
-
continue;
|
|
36598
|
-
case 4:
|
|
36599
|
-
if (tag !== 34) {
|
|
36600
|
-
break;
|
|
36601
|
-
}
|
|
36602
|
-
|
|
36603
|
-
message.participant = reader.string();
|
|
36604
|
-
continue;
|
|
36605
|
-
}
|
|
36606
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
36607
|
-
break;
|
|
36608
|
-
}
|
|
36609
|
-
reader.skipType(tag & 7);
|
|
36610
|
-
}
|
|
36611
|
-
return message;
|
|
36612
|
-
},
|
|
36613
|
-
|
|
36614
|
-
fromJSON(object: any): SFUChannelUser {
|
|
36615
|
-
return {
|
|
36616
|
-
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
36617
|
-
user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
|
|
36618
|
-
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
36619
|
-
participant: isSet(object.participant) ? globalThis.String(object.participant) : "",
|
|
36620
|
-
};
|
|
36621
|
-
},
|
|
36622
|
-
|
|
36623
|
-
toJSON(message: SFUChannelUser): unknown {
|
|
36624
|
-
const obj: any = {};
|
|
36625
|
-
if (message.id !== "") {
|
|
36626
|
-
obj.id = message.id;
|
|
36627
|
-
}
|
|
36628
|
-
if (message.user_id !== "") {
|
|
36629
|
-
obj.user_id = message.user_id;
|
|
36630
|
-
}
|
|
36631
|
-
if (message.channel_id !== "") {
|
|
36632
|
-
obj.channel_id = message.channel_id;
|
|
36633
|
-
}
|
|
36634
|
-
if (message.participant !== "") {
|
|
36635
|
-
obj.participant = message.participant;
|
|
36636
|
-
}
|
|
36637
|
-
return obj;
|
|
36638
|
-
},
|
|
36639
|
-
|
|
36640
|
-
create<I extends Exact<DeepPartial<SFUChannelUser>, I>>(base?: I): SFUChannelUser {
|
|
36641
|
-
return SFUChannelUser.fromPartial(base ?? ({} as any));
|
|
36642
|
-
},
|
|
36643
|
-
fromPartial<I extends Exact<DeepPartial<SFUChannelUser>, I>>(object: I): SFUChannelUser {
|
|
36644
|
-
const message = createBaseSFUChannelUser();
|
|
36645
|
-
message.id = object.id ?? "";
|
|
36646
|
-
message.user_id = object.user_id ?? "";
|
|
36647
|
-
message.channel_id = object.channel_id ?? "";
|
|
36648
|
-
message.participant = object.participant ?? "";
|
|
36649
|
-
return message;
|
|
36650
|
-
},
|
|
36651
|
-
};
|
|
36652
|
-
|
|
36653
|
-
function createBaseSFUChannelUserList(): SFUChannelUserList {
|
|
36654
|
-
return { sfu_channel_users: [] };
|
|
36655
|
-
}
|
|
36656
|
-
|
|
36657
|
-
export const SFUChannelUserList = {
|
|
36658
|
-
encode(message: SFUChannelUserList, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
36659
|
-
for (const v of message.sfu_channel_users) {
|
|
36660
|
-
SFUChannelUser.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
36661
|
-
}
|
|
36662
|
-
return writer;
|
|
36663
|
-
},
|
|
36664
|
-
|
|
36665
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): SFUChannelUserList {
|
|
36666
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
36667
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
36668
|
-
const message = createBaseSFUChannelUserList();
|
|
36669
|
-
while (reader.pos < end) {
|
|
36670
|
-
const tag = reader.uint32();
|
|
36671
|
-
switch (tag >>> 3) {
|
|
36672
|
-
case 1:
|
|
36673
|
-
if (tag !== 10) {
|
|
36674
|
-
break;
|
|
36675
|
-
}
|
|
36676
|
-
|
|
36677
|
-
message.sfu_channel_users.push(SFUChannelUser.decode(reader, reader.uint32()));
|
|
36678
|
-
continue;
|
|
36679
|
-
}
|
|
36680
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
36681
|
-
break;
|
|
36682
|
-
}
|
|
36683
|
-
reader.skipType(tag & 7);
|
|
36684
|
-
}
|
|
36685
|
-
return message;
|
|
36686
|
-
},
|
|
36687
|
-
|
|
36688
|
-
fromJSON(object: any): SFUChannelUserList {
|
|
36689
|
-
return {
|
|
36690
|
-
sfu_channel_users: globalThis.Array.isArray(object?.sfu_channel_users)
|
|
36691
|
-
? object.sfu_channel_users.map((e: any) => SFUChannelUser.fromJSON(e))
|
|
36692
|
-
: [],
|
|
36693
|
-
};
|
|
36694
|
-
},
|
|
36695
|
-
|
|
36696
|
-
toJSON(message: SFUChannelUserList): unknown {
|
|
36697
|
-
const obj: any = {};
|
|
36698
|
-
if (message.sfu_channel_users?.length) {
|
|
36699
|
-
obj.sfu_channel_users = message.sfu_channel_users.map((e) => SFUChannelUser.toJSON(e));
|
|
36700
|
-
}
|
|
36701
|
-
return obj;
|
|
36702
|
-
},
|
|
36703
|
-
|
|
36704
|
-
create<I extends Exact<DeepPartial<SFUChannelUserList>, I>>(base?: I): SFUChannelUserList {
|
|
36705
|
-
return SFUChannelUserList.fromPartial(base ?? ({} as any));
|
|
36706
|
-
},
|
|
36707
|
-
fromPartial<I extends Exact<DeepPartial<SFUChannelUserList>, I>>(object: I): SFUChannelUserList {
|
|
36708
|
-
const message = createBaseSFUChannelUserList();
|
|
36709
|
-
message.sfu_channel_users = object.sfu_channel_users?.map((e) => SFUChannelUser.fromPartial(e)) || [];
|
|
36710
|
-
return message;
|
|
36711
|
-
},
|
|
36712
|
-
};
|
|
36713
|
-
|
|
36714
36531
|
function createBaseWalletLedger(): WalletLedger {
|
|
36715
36532
|
return { id: "", user_id: "", create_time: undefined, value: 0, transaction_id: "" };
|
|
36716
36533
|
}
|
|
@@ -3044,22 +3044,6 @@ export interface UpdateOnboardingStepRequest {
|
|
|
3044
3044
|
/** onboarding step. */
|
|
3045
3045
|
onboarding_step: number | undefined;
|
|
3046
3046
|
}
|
|
3047
|
-
/** A list of users belonging to a channel, along with their role. */
|
|
3048
|
-
export interface SFUChannelUser {
|
|
3049
|
-
/** user join id */
|
|
3050
|
-
id: string;
|
|
3051
|
-
/** user for a channel. */
|
|
3052
|
-
user_id: string;
|
|
3053
|
-
/** channel id */
|
|
3054
|
-
channel_id: string;
|
|
3055
|
-
/** participant */
|
|
3056
|
-
participant: string;
|
|
3057
|
-
}
|
|
3058
|
-
/** A list of users belonging to a channel, along with their role. */
|
|
3059
|
-
export interface SFUChannelUserList {
|
|
3060
|
-
/** list of ptt channel user */
|
|
3061
|
-
sfu_channel_users: SFUChannelUser[];
|
|
3062
|
-
}
|
|
3063
3047
|
export interface WalletLedger {
|
|
3064
3048
|
/** change set id */
|
|
3065
3049
|
id: string;
|
|
@@ -21435,100 +21419,6 @@ export declare const UpdateOnboardingStepRequest: {
|
|
|
21435
21419
|
onboarding_step?: number | undefined;
|
|
21436
21420
|
} & { [K_1 in Exclude<keyof I_1, keyof UpdateOnboardingStepRequest>]: never; }>(object: I_1): UpdateOnboardingStepRequest;
|
|
21437
21421
|
};
|
|
21438
|
-
export declare const SFUChannelUser: {
|
|
21439
|
-
encode(message: SFUChannelUser, writer?: _m0.Writer): _m0.Writer;
|
|
21440
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): SFUChannelUser;
|
|
21441
|
-
fromJSON(object: any): SFUChannelUser;
|
|
21442
|
-
toJSON(message: SFUChannelUser): unknown;
|
|
21443
|
-
create<I extends {
|
|
21444
|
-
id?: string | undefined;
|
|
21445
|
-
user_id?: string | undefined;
|
|
21446
|
-
channel_id?: string | undefined;
|
|
21447
|
-
participant?: string | undefined;
|
|
21448
|
-
} & {
|
|
21449
|
-
id?: string | undefined;
|
|
21450
|
-
user_id?: string | undefined;
|
|
21451
|
-
channel_id?: string | undefined;
|
|
21452
|
-
participant?: string | undefined;
|
|
21453
|
-
} & { [K in Exclude<keyof I, keyof SFUChannelUser>]: never; }>(base?: I | undefined): SFUChannelUser;
|
|
21454
|
-
fromPartial<I_1 extends {
|
|
21455
|
-
id?: string | undefined;
|
|
21456
|
-
user_id?: string | undefined;
|
|
21457
|
-
channel_id?: string | undefined;
|
|
21458
|
-
participant?: string | undefined;
|
|
21459
|
-
} & {
|
|
21460
|
-
id?: string | undefined;
|
|
21461
|
-
user_id?: string | undefined;
|
|
21462
|
-
channel_id?: string | undefined;
|
|
21463
|
-
participant?: string | undefined;
|
|
21464
|
-
} & { [K_1 in Exclude<keyof I_1, keyof SFUChannelUser>]: never; }>(object: I_1): SFUChannelUser;
|
|
21465
|
-
};
|
|
21466
|
-
export declare const SFUChannelUserList: {
|
|
21467
|
-
encode(message: SFUChannelUserList, writer?: _m0.Writer): _m0.Writer;
|
|
21468
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): SFUChannelUserList;
|
|
21469
|
-
fromJSON(object: any): SFUChannelUserList;
|
|
21470
|
-
toJSON(message: SFUChannelUserList): unknown;
|
|
21471
|
-
create<I extends {
|
|
21472
|
-
sfu_channel_users?: {
|
|
21473
|
-
id?: string | undefined;
|
|
21474
|
-
user_id?: string | undefined;
|
|
21475
|
-
channel_id?: string | undefined;
|
|
21476
|
-
participant?: string | undefined;
|
|
21477
|
-
}[] | undefined;
|
|
21478
|
-
} & {
|
|
21479
|
-
sfu_channel_users?: ({
|
|
21480
|
-
id?: string | undefined;
|
|
21481
|
-
user_id?: string | undefined;
|
|
21482
|
-
channel_id?: string | undefined;
|
|
21483
|
-
participant?: string | undefined;
|
|
21484
|
-
}[] & ({
|
|
21485
|
-
id?: string | undefined;
|
|
21486
|
-
user_id?: string | undefined;
|
|
21487
|
-
channel_id?: string | undefined;
|
|
21488
|
-
participant?: string | undefined;
|
|
21489
|
-
} & {
|
|
21490
|
-
id?: string | undefined;
|
|
21491
|
-
user_id?: string | undefined;
|
|
21492
|
-
channel_id?: string | undefined;
|
|
21493
|
-
participant?: string | undefined;
|
|
21494
|
-
} & { [K in Exclude<keyof I["sfu_channel_users"][number], keyof SFUChannelUser>]: never; })[] & { [K_1 in Exclude<keyof I["sfu_channel_users"], keyof {
|
|
21495
|
-
id?: string | undefined;
|
|
21496
|
-
user_id?: string | undefined;
|
|
21497
|
-
channel_id?: string | undefined;
|
|
21498
|
-
participant?: string | undefined;
|
|
21499
|
-
}[]>]: never; }) | undefined;
|
|
21500
|
-
} & { [K_2 in Exclude<keyof I, "sfu_channel_users">]: never; }>(base?: I | undefined): SFUChannelUserList;
|
|
21501
|
-
fromPartial<I_1 extends {
|
|
21502
|
-
sfu_channel_users?: {
|
|
21503
|
-
id?: string | undefined;
|
|
21504
|
-
user_id?: string | undefined;
|
|
21505
|
-
channel_id?: string | undefined;
|
|
21506
|
-
participant?: string | undefined;
|
|
21507
|
-
}[] | undefined;
|
|
21508
|
-
} & {
|
|
21509
|
-
sfu_channel_users?: ({
|
|
21510
|
-
id?: string | undefined;
|
|
21511
|
-
user_id?: string | undefined;
|
|
21512
|
-
channel_id?: string | undefined;
|
|
21513
|
-
participant?: string | undefined;
|
|
21514
|
-
}[] & ({
|
|
21515
|
-
id?: string | undefined;
|
|
21516
|
-
user_id?: string | undefined;
|
|
21517
|
-
channel_id?: string | undefined;
|
|
21518
|
-
participant?: string | undefined;
|
|
21519
|
-
} & {
|
|
21520
|
-
id?: string | undefined;
|
|
21521
|
-
user_id?: string | undefined;
|
|
21522
|
-
channel_id?: string | undefined;
|
|
21523
|
-
participant?: string | undefined;
|
|
21524
|
-
} & { [K_3 in Exclude<keyof I_1["sfu_channel_users"][number], keyof SFUChannelUser>]: never; })[] & { [K_4 in Exclude<keyof I_1["sfu_channel_users"], keyof {
|
|
21525
|
-
id?: string | undefined;
|
|
21526
|
-
user_id?: string | undefined;
|
|
21527
|
-
channel_id?: string | undefined;
|
|
21528
|
-
participant?: string | undefined;
|
|
21529
|
-
}[]>]: never; }) | undefined;
|
|
21530
|
-
} & { [K_5 in Exclude<keyof I_1, "sfu_channel_users">]: never; }>(object: I_1): SFUChannelUserList;
|
|
21531
|
-
};
|
|
21532
21422
|
export declare const WalletLedger: {
|
|
21533
21423
|
encode(message: WalletLedger, writer?: _m0.Writer): _m0.Writer;
|
|
21534
21424
|
decode(input: _m0.Reader | Uint8Array, length?: number): WalletLedger;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mezon-js-protobuf",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.92",
|
|
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",
|