mezon-js-protobuf 1.6.38 → 1.6.40
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 +573 -32
- package/dist/mezon-js-protobuf/api/api.d.ts +325 -20
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +12 -0
- package/dist/mezon-js-protobuf.cjs.js +17 -3
- package/dist/mezon-js-protobuf.esm.mjs +17 -3
- package/package.json +1 -1
- package/rtapi/realtime.ts +18 -1
package/api/api.ts
CHANGED
|
@@ -1388,7 +1388,9 @@ export interface UpdateAccountRequest {
|
|
|
1388
1388
|
/** update about me */
|
|
1389
1389
|
about_me: string;
|
|
1390
1390
|
/** date of birth */
|
|
1391
|
-
dob:
|
|
1391
|
+
dob:
|
|
1392
|
+
| Date
|
|
1393
|
+
| undefined;
|
|
1392
1394
|
/** logo url */
|
|
1393
1395
|
logo: string;
|
|
1394
1396
|
/** splash screen */
|
|
@@ -3732,11 +3734,22 @@ export interface UpdateOnboardingStepRequest {
|
|
|
3732
3734
|
onboarding_step: number | undefined;
|
|
3733
3735
|
}
|
|
3734
3736
|
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3737
|
+
/** A list of users belonging to a channel, along with their role. */
|
|
3738
|
+
export interface PTTChannelUser {
|
|
3739
|
+
/** user join id */
|
|
3740
|
+
id: string;
|
|
3741
|
+
/** user for a channel. */
|
|
3742
|
+
user_id: string;
|
|
3743
|
+
/** channel id */
|
|
3744
|
+
channel_id: string;
|
|
3745
|
+
/** participant */
|
|
3746
|
+
participant: string;
|
|
3747
|
+
}
|
|
3748
|
+
|
|
3749
|
+
/** A list of users belonging to a channel, along with their role. */
|
|
3750
|
+
export interface PTTChannelUserList {
|
|
3751
|
+
/** list of ptt channel user */
|
|
3752
|
+
ptt_channel_users: PTTChannelUser[];
|
|
3740
3753
|
}
|
|
3741
3754
|
|
|
3742
3755
|
export interface WalletLedger {
|
|
@@ -3766,6 +3779,33 @@ export interface WalletLedgerListReq {
|
|
|
3766
3779
|
transaction_id: string;
|
|
3767
3780
|
}
|
|
3768
3781
|
|
|
3782
|
+
export interface SdTopic {
|
|
3783
|
+
id: string;
|
|
3784
|
+
creator_id: string;
|
|
3785
|
+
message_id: string;
|
|
3786
|
+
clan_id: string;
|
|
3787
|
+
channel_id: string;
|
|
3788
|
+
status: number;
|
|
3789
|
+
create_time: Date | undefined;
|
|
3790
|
+
update_time: Date | undefined;
|
|
3791
|
+
}
|
|
3792
|
+
|
|
3793
|
+
export interface SdTopicRequest {
|
|
3794
|
+
message_id: string;
|
|
3795
|
+
clan_id: string;
|
|
3796
|
+
channel_id: string;
|
|
3797
|
+
}
|
|
3798
|
+
|
|
3799
|
+
export interface SdTopicList {
|
|
3800
|
+
count: number;
|
|
3801
|
+
topics: SdTopic[];
|
|
3802
|
+
}
|
|
3803
|
+
|
|
3804
|
+
export interface ListSdTopicRequest {
|
|
3805
|
+
channel_id: string;
|
|
3806
|
+
limit: number;
|
|
3807
|
+
}
|
|
3808
|
+
|
|
3769
3809
|
function createBaseAccount(): Account {
|
|
3770
3810
|
return {
|
|
3771
3811
|
user: undefined,
|
|
@@ -36129,25 +36169,31 @@ export const UpdateOnboardingStepRequest = {
|
|
|
36129
36169
|
},
|
|
36130
36170
|
};
|
|
36131
36171
|
|
|
36132
|
-
function
|
|
36133
|
-
return {
|
|
36172
|
+
function createBasePTTChannelUser(): PTTChannelUser {
|
|
36173
|
+
return { id: "", user_id: "", channel_id: "", participant: "" };
|
|
36134
36174
|
}
|
|
36135
36175
|
|
|
36136
|
-
export const
|
|
36137
|
-
encode(message:
|
|
36138
|
-
if (message.
|
|
36139
|
-
writer.uint32(10).string(message.
|
|
36176
|
+
export const PTTChannelUser = {
|
|
36177
|
+
encode(message: PTTChannelUser, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
36178
|
+
if (message.id !== "") {
|
|
36179
|
+
writer.uint32(10).string(message.id);
|
|
36140
36180
|
}
|
|
36141
|
-
if (message.
|
|
36142
|
-
writer.uint32(18).string(message.
|
|
36181
|
+
if (message.user_id !== "") {
|
|
36182
|
+
writer.uint32(18).string(message.user_id);
|
|
36183
|
+
}
|
|
36184
|
+
if (message.channel_id !== "") {
|
|
36185
|
+
writer.uint32(26).string(message.channel_id);
|
|
36186
|
+
}
|
|
36187
|
+
if (message.participant !== "") {
|
|
36188
|
+
writer.uint32(34).string(message.participant);
|
|
36143
36189
|
}
|
|
36144
36190
|
return writer;
|
|
36145
36191
|
},
|
|
36146
36192
|
|
|
36147
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
36193
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PTTChannelUser {
|
|
36148
36194
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
36149
36195
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
36150
|
-
const message =
|
|
36196
|
+
const message = createBasePTTChannelUser();
|
|
36151
36197
|
while (reader.pos < end) {
|
|
36152
36198
|
const tag = reader.uint32();
|
|
36153
36199
|
switch (tag >>> 3) {
|
|
@@ -36156,14 +36202,28 @@ export const CustomDisplay = {
|
|
|
36156
36202
|
break;
|
|
36157
36203
|
}
|
|
36158
36204
|
|
|
36159
|
-
message.
|
|
36205
|
+
message.id = reader.string();
|
|
36160
36206
|
continue;
|
|
36161
36207
|
case 2:
|
|
36162
36208
|
if (tag !== 18) {
|
|
36163
36209
|
break;
|
|
36164
36210
|
}
|
|
36165
36211
|
|
|
36166
|
-
message.
|
|
36212
|
+
message.user_id = reader.string();
|
|
36213
|
+
continue;
|
|
36214
|
+
case 3:
|
|
36215
|
+
if (tag !== 26) {
|
|
36216
|
+
break;
|
|
36217
|
+
}
|
|
36218
|
+
|
|
36219
|
+
message.channel_id = reader.string();
|
|
36220
|
+
continue;
|
|
36221
|
+
case 4:
|
|
36222
|
+
if (tag !== 34) {
|
|
36223
|
+
break;
|
|
36224
|
+
}
|
|
36225
|
+
|
|
36226
|
+
message.participant = reader.string();
|
|
36167
36227
|
continue;
|
|
36168
36228
|
}
|
|
36169
36229
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -36174,31 +36234,102 @@ export const CustomDisplay = {
|
|
|
36174
36234
|
return message;
|
|
36175
36235
|
},
|
|
36176
36236
|
|
|
36177
|
-
fromJSON(object: any):
|
|
36237
|
+
fromJSON(object: any): PTTChannelUser {
|
|
36178
36238
|
return {
|
|
36179
|
-
|
|
36180
|
-
|
|
36239
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
36240
|
+
user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
|
|
36241
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
36242
|
+
participant: isSet(object.participant) ? globalThis.String(object.participant) : "",
|
|
36181
36243
|
};
|
|
36182
36244
|
},
|
|
36183
36245
|
|
|
36184
|
-
toJSON(message:
|
|
36246
|
+
toJSON(message: PTTChannelUser): unknown {
|
|
36185
36247
|
const obj: any = {};
|
|
36186
|
-
if (message.
|
|
36187
|
-
obj.
|
|
36248
|
+
if (message.id !== "") {
|
|
36249
|
+
obj.id = message.id;
|
|
36188
36250
|
}
|
|
36189
|
-
if (message.
|
|
36190
|
-
obj.
|
|
36251
|
+
if (message.user_id !== "") {
|
|
36252
|
+
obj.user_id = message.user_id;
|
|
36253
|
+
}
|
|
36254
|
+
if (message.channel_id !== "") {
|
|
36255
|
+
obj.channel_id = message.channel_id;
|
|
36256
|
+
}
|
|
36257
|
+
if (message.participant !== "") {
|
|
36258
|
+
obj.participant = message.participant;
|
|
36191
36259
|
}
|
|
36192
36260
|
return obj;
|
|
36193
36261
|
},
|
|
36194
36262
|
|
|
36195
|
-
create<I extends Exact<DeepPartial<
|
|
36196
|
-
return
|
|
36263
|
+
create<I extends Exact<DeepPartial<PTTChannelUser>, I>>(base?: I): PTTChannelUser {
|
|
36264
|
+
return PTTChannelUser.fromPartial(base ?? ({} as any));
|
|
36197
36265
|
},
|
|
36198
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
36199
|
-
const message =
|
|
36200
|
-
message.
|
|
36201
|
-
message.
|
|
36266
|
+
fromPartial<I extends Exact<DeepPartial<PTTChannelUser>, I>>(object: I): PTTChannelUser {
|
|
36267
|
+
const message = createBasePTTChannelUser();
|
|
36268
|
+
message.id = object.id ?? "";
|
|
36269
|
+
message.user_id = object.user_id ?? "";
|
|
36270
|
+
message.channel_id = object.channel_id ?? "";
|
|
36271
|
+
message.participant = object.participant ?? "";
|
|
36272
|
+
return message;
|
|
36273
|
+
},
|
|
36274
|
+
};
|
|
36275
|
+
|
|
36276
|
+
function createBasePTTChannelUserList(): PTTChannelUserList {
|
|
36277
|
+
return { ptt_channel_users: [] };
|
|
36278
|
+
}
|
|
36279
|
+
|
|
36280
|
+
export const PTTChannelUserList = {
|
|
36281
|
+
encode(message: PTTChannelUserList, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
36282
|
+
for (const v of message.ptt_channel_users) {
|
|
36283
|
+
PTTChannelUser.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
36284
|
+
}
|
|
36285
|
+
return writer;
|
|
36286
|
+
},
|
|
36287
|
+
|
|
36288
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PTTChannelUserList {
|
|
36289
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
36290
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
36291
|
+
const message = createBasePTTChannelUserList();
|
|
36292
|
+
while (reader.pos < end) {
|
|
36293
|
+
const tag = reader.uint32();
|
|
36294
|
+
switch (tag >>> 3) {
|
|
36295
|
+
case 1:
|
|
36296
|
+
if (tag !== 10) {
|
|
36297
|
+
break;
|
|
36298
|
+
}
|
|
36299
|
+
|
|
36300
|
+
message.ptt_channel_users.push(PTTChannelUser.decode(reader, reader.uint32()));
|
|
36301
|
+
continue;
|
|
36302
|
+
}
|
|
36303
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
36304
|
+
break;
|
|
36305
|
+
}
|
|
36306
|
+
reader.skipType(tag & 7);
|
|
36307
|
+
}
|
|
36308
|
+
return message;
|
|
36309
|
+
},
|
|
36310
|
+
|
|
36311
|
+
fromJSON(object: any): PTTChannelUserList {
|
|
36312
|
+
return {
|
|
36313
|
+
ptt_channel_users: globalThis.Array.isArray(object?.ptt_channel_users)
|
|
36314
|
+
? object.ptt_channel_users.map((e: any) => PTTChannelUser.fromJSON(e))
|
|
36315
|
+
: [],
|
|
36316
|
+
};
|
|
36317
|
+
},
|
|
36318
|
+
|
|
36319
|
+
toJSON(message: PTTChannelUserList): unknown {
|
|
36320
|
+
const obj: any = {};
|
|
36321
|
+
if (message.ptt_channel_users?.length) {
|
|
36322
|
+
obj.ptt_channel_users = message.ptt_channel_users.map((e) => PTTChannelUser.toJSON(e));
|
|
36323
|
+
}
|
|
36324
|
+
return obj;
|
|
36325
|
+
},
|
|
36326
|
+
|
|
36327
|
+
create<I extends Exact<DeepPartial<PTTChannelUserList>, I>>(base?: I): PTTChannelUserList {
|
|
36328
|
+
return PTTChannelUserList.fromPartial(base ?? ({} as any));
|
|
36329
|
+
},
|
|
36330
|
+
fromPartial<I extends Exact<DeepPartial<PTTChannelUserList>, I>>(object: I): PTTChannelUserList {
|
|
36331
|
+
const message = createBasePTTChannelUserList();
|
|
36332
|
+
message.ptt_channel_users = object.ptt_channel_users?.map((e) => PTTChannelUser.fromPartial(e)) || [];
|
|
36202
36333
|
return message;
|
|
36203
36334
|
},
|
|
36204
36335
|
};
|
|
@@ -36502,6 +36633,416 @@ export const WalletLedgerListReq = {
|
|
|
36502
36633
|
},
|
|
36503
36634
|
};
|
|
36504
36635
|
|
|
36636
|
+
function createBaseSdTopic(): SdTopic {
|
|
36637
|
+
return {
|
|
36638
|
+
id: "",
|
|
36639
|
+
creator_id: "",
|
|
36640
|
+
message_id: "",
|
|
36641
|
+
clan_id: "",
|
|
36642
|
+
channel_id: "",
|
|
36643
|
+
status: 0,
|
|
36644
|
+
create_time: undefined,
|
|
36645
|
+
update_time: undefined,
|
|
36646
|
+
};
|
|
36647
|
+
}
|
|
36648
|
+
|
|
36649
|
+
export const SdTopic = {
|
|
36650
|
+
encode(message: SdTopic, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
36651
|
+
if (message.id !== "") {
|
|
36652
|
+
writer.uint32(10).string(message.id);
|
|
36653
|
+
}
|
|
36654
|
+
if (message.creator_id !== "") {
|
|
36655
|
+
writer.uint32(18).string(message.creator_id);
|
|
36656
|
+
}
|
|
36657
|
+
if (message.message_id !== "") {
|
|
36658
|
+
writer.uint32(26).string(message.message_id);
|
|
36659
|
+
}
|
|
36660
|
+
if (message.clan_id !== "") {
|
|
36661
|
+
writer.uint32(34).string(message.clan_id);
|
|
36662
|
+
}
|
|
36663
|
+
if (message.channel_id !== "") {
|
|
36664
|
+
writer.uint32(42).string(message.channel_id);
|
|
36665
|
+
}
|
|
36666
|
+
if (message.status !== 0) {
|
|
36667
|
+
writer.uint32(48).int32(message.status);
|
|
36668
|
+
}
|
|
36669
|
+
if (message.create_time !== undefined) {
|
|
36670
|
+
Timestamp.encode(toTimestamp(message.create_time), writer.uint32(58).fork()).ldelim();
|
|
36671
|
+
}
|
|
36672
|
+
if (message.update_time !== undefined) {
|
|
36673
|
+
Timestamp.encode(toTimestamp(message.update_time), writer.uint32(66).fork()).ldelim();
|
|
36674
|
+
}
|
|
36675
|
+
return writer;
|
|
36676
|
+
},
|
|
36677
|
+
|
|
36678
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): SdTopic {
|
|
36679
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
36680
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
36681
|
+
const message = createBaseSdTopic();
|
|
36682
|
+
while (reader.pos < end) {
|
|
36683
|
+
const tag = reader.uint32();
|
|
36684
|
+
switch (tag >>> 3) {
|
|
36685
|
+
case 1:
|
|
36686
|
+
if (tag !== 10) {
|
|
36687
|
+
break;
|
|
36688
|
+
}
|
|
36689
|
+
|
|
36690
|
+
message.id = reader.string();
|
|
36691
|
+
continue;
|
|
36692
|
+
case 2:
|
|
36693
|
+
if (tag !== 18) {
|
|
36694
|
+
break;
|
|
36695
|
+
}
|
|
36696
|
+
|
|
36697
|
+
message.creator_id = reader.string();
|
|
36698
|
+
continue;
|
|
36699
|
+
case 3:
|
|
36700
|
+
if (tag !== 26) {
|
|
36701
|
+
break;
|
|
36702
|
+
}
|
|
36703
|
+
|
|
36704
|
+
message.message_id = reader.string();
|
|
36705
|
+
continue;
|
|
36706
|
+
case 4:
|
|
36707
|
+
if (tag !== 34) {
|
|
36708
|
+
break;
|
|
36709
|
+
}
|
|
36710
|
+
|
|
36711
|
+
message.clan_id = reader.string();
|
|
36712
|
+
continue;
|
|
36713
|
+
case 5:
|
|
36714
|
+
if (tag !== 42) {
|
|
36715
|
+
break;
|
|
36716
|
+
}
|
|
36717
|
+
|
|
36718
|
+
message.channel_id = reader.string();
|
|
36719
|
+
continue;
|
|
36720
|
+
case 6:
|
|
36721
|
+
if (tag !== 48) {
|
|
36722
|
+
break;
|
|
36723
|
+
}
|
|
36724
|
+
|
|
36725
|
+
message.status = reader.int32();
|
|
36726
|
+
continue;
|
|
36727
|
+
case 7:
|
|
36728
|
+
if (tag !== 58) {
|
|
36729
|
+
break;
|
|
36730
|
+
}
|
|
36731
|
+
|
|
36732
|
+
message.create_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
36733
|
+
continue;
|
|
36734
|
+
case 8:
|
|
36735
|
+
if (tag !== 66) {
|
|
36736
|
+
break;
|
|
36737
|
+
}
|
|
36738
|
+
|
|
36739
|
+
message.update_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
36740
|
+
continue;
|
|
36741
|
+
}
|
|
36742
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
36743
|
+
break;
|
|
36744
|
+
}
|
|
36745
|
+
reader.skipType(tag & 7);
|
|
36746
|
+
}
|
|
36747
|
+
return message;
|
|
36748
|
+
},
|
|
36749
|
+
|
|
36750
|
+
fromJSON(object: any): SdTopic {
|
|
36751
|
+
return {
|
|
36752
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
36753
|
+
creator_id: isSet(object.creator_id) ? globalThis.String(object.creator_id) : "",
|
|
36754
|
+
message_id: isSet(object.message_id) ? globalThis.String(object.message_id) : "",
|
|
36755
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
36756
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
36757
|
+
status: isSet(object.status) ? globalThis.Number(object.status) : 0,
|
|
36758
|
+
create_time: isSet(object.create_time) ? fromJsonTimestamp(object.create_time) : undefined,
|
|
36759
|
+
update_time: isSet(object.update_time) ? fromJsonTimestamp(object.update_time) : undefined,
|
|
36760
|
+
};
|
|
36761
|
+
},
|
|
36762
|
+
|
|
36763
|
+
toJSON(message: SdTopic): unknown {
|
|
36764
|
+
const obj: any = {};
|
|
36765
|
+
if (message.id !== "") {
|
|
36766
|
+
obj.id = message.id;
|
|
36767
|
+
}
|
|
36768
|
+
if (message.creator_id !== "") {
|
|
36769
|
+
obj.creator_id = message.creator_id;
|
|
36770
|
+
}
|
|
36771
|
+
if (message.message_id !== "") {
|
|
36772
|
+
obj.message_id = message.message_id;
|
|
36773
|
+
}
|
|
36774
|
+
if (message.clan_id !== "") {
|
|
36775
|
+
obj.clan_id = message.clan_id;
|
|
36776
|
+
}
|
|
36777
|
+
if (message.channel_id !== "") {
|
|
36778
|
+
obj.channel_id = message.channel_id;
|
|
36779
|
+
}
|
|
36780
|
+
if (message.status !== 0) {
|
|
36781
|
+
obj.status = Math.round(message.status);
|
|
36782
|
+
}
|
|
36783
|
+
if (message.create_time !== undefined) {
|
|
36784
|
+
obj.create_time = message.create_time.toISOString();
|
|
36785
|
+
}
|
|
36786
|
+
if (message.update_time !== undefined) {
|
|
36787
|
+
obj.update_time = message.update_time.toISOString();
|
|
36788
|
+
}
|
|
36789
|
+
return obj;
|
|
36790
|
+
},
|
|
36791
|
+
|
|
36792
|
+
create<I extends Exact<DeepPartial<SdTopic>, I>>(base?: I): SdTopic {
|
|
36793
|
+
return SdTopic.fromPartial(base ?? ({} as any));
|
|
36794
|
+
},
|
|
36795
|
+
fromPartial<I extends Exact<DeepPartial<SdTopic>, I>>(object: I): SdTopic {
|
|
36796
|
+
const message = createBaseSdTopic();
|
|
36797
|
+
message.id = object.id ?? "";
|
|
36798
|
+
message.creator_id = object.creator_id ?? "";
|
|
36799
|
+
message.message_id = object.message_id ?? "";
|
|
36800
|
+
message.clan_id = object.clan_id ?? "";
|
|
36801
|
+
message.channel_id = object.channel_id ?? "";
|
|
36802
|
+
message.status = object.status ?? 0;
|
|
36803
|
+
message.create_time = object.create_time ?? undefined;
|
|
36804
|
+
message.update_time = object.update_time ?? undefined;
|
|
36805
|
+
return message;
|
|
36806
|
+
},
|
|
36807
|
+
};
|
|
36808
|
+
|
|
36809
|
+
function createBaseSdTopicRequest(): SdTopicRequest {
|
|
36810
|
+
return { message_id: "", clan_id: "", channel_id: "" };
|
|
36811
|
+
}
|
|
36812
|
+
|
|
36813
|
+
export const SdTopicRequest = {
|
|
36814
|
+
encode(message: SdTopicRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
36815
|
+
if (message.message_id !== "") {
|
|
36816
|
+
writer.uint32(10).string(message.message_id);
|
|
36817
|
+
}
|
|
36818
|
+
if (message.clan_id !== "") {
|
|
36819
|
+
writer.uint32(18).string(message.clan_id);
|
|
36820
|
+
}
|
|
36821
|
+
if (message.channel_id !== "") {
|
|
36822
|
+
writer.uint32(26).string(message.channel_id);
|
|
36823
|
+
}
|
|
36824
|
+
return writer;
|
|
36825
|
+
},
|
|
36826
|
+
|
|
36827
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): SdTopicRequest {
|
|
36828
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
36829
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
36830
|
+
const message = createBaseSdTopicRequest();
|
|
36831
|
+
while (reader.pos < end) {
|
|
36832
|
+
const tag = reader.uint32();
|
|
36833
|
+
switch (tag >>> 3) {
|
|
36834
|
+
case 1:
|
|
36835
|
+
if (tag !== 10) {
|
|
36836
|
+
break;
|
|
36837
|
+
}
|
|
36838
|
+
|
|
36839
|
+
message.message_id = reader.string();
|
|
36840
|
+
continue;
|
|
36841
|
+
case 2:
|
|
36842
|
+
if (tag !== 18) {
|
|
36843
|
+
break;
|
|
36844
|
+
}
|
|
36845
|
+
|
|
36846
|
+
message.clan_id = reader.string();
|
|
36847
|
+
continue;
|
|
36848
|
+
case 3:
|
|
36849
|
+
if (tag !== 26) {
|
|
36850
|
+
break;
|
|
36851
|
+
}
|
|
36852
|
+
|
|
36853
|
+
message.channel_id = reader.string();
|
|
36854
|
+
continue;
|
|
36855
|
+
}
|
|
36856
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
36857
|
+
break;
|
|
36858
|
+
}
|
|
36859
|
+
reader.skipType(tag & 7);
|
|
36860
|
+
}
|
|
36861
|
+
return message;
|
|
36862
|
+
},
|
|
36863
|
+
|
|
36864
|
+
fromJSON(object: any): SdTopicRequest {
|
|
36865
|
+
return {
|
|
36866
|
+
message_id: isSet(object.message_id) ? globalThis.String(object.message_id) : "",
|
|
36867
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
36868
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
36869
|
+
};
|
|
36870
|
+
},
|
|
36871
|
+
|
|
36872
|
+
toJSON(message: SdTopicRequest): unknown {
|
|
36873
|
+
const obj: any = {};
|
|
36874
|
+
if (message.message_id !== "") {
|
|
36875
|
+
obj.message_id = message.message_id;
|
|
36876
|
+
}
|
|
36877
|
+
if (message.clan_id !== "") {
|
|
36878
|
+
obj.clan_id = message.clan_id;
|
|
36879
|
+
}
|
|
36880
|
+
if (message.channel_id !== "") {
|
|
36881
|
+
obj.channel_id = message.channel_id;
|
|
36882
|
+
}
|
|
36883
|
+
return obj;
|
|
36884
|
+
},
|
|
36885
|
+
|
|
36886
|
+
create<I extends Exact<DeepPartial<SdTopicRequest>, I>>(base?: I): SdTopicRequest {
|
|
36887
|
+
return SdTopicRequest.fromPartial(base ?? ({} as any));
|
|
36888
|
+
},
|
|
36889
|
+
fromPartial<I extends Exact<DeepPartial<SdTopicRequest>, I>>(object: I): SdTopicRequest {
|
|
36890
|
+
const message = createBaseSdTopicRequest();
|
|
36891
|
+
message.message_id = object.message_id ?? "";
|
|
36892
|
+
message.clan_id = object.clan_id ?? "";
|
|
36893
|
+
message.channel_id = object.channel_id ?? "";
|
|
36894
|
+
return message;
|
|
36895
|
+
},
|
|
36896
|
+
};
|
|
36897
|
+
|
|
36898
|
+
function createBaseSdTopicList(): SdTopicList {
|
|
36899
|
+
return { count: 0, topics: [] };
|
|
36900
|
+
}
|
|
36901
|
+
|
|
36902
|
+
export const SdTopicList = {
|
|
36903
|
+
encode(message: SdTopicList, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
36904
|
+
if (message.count !== 0) {
|
|
36905
|
+
writer.uint32(8).int32(message.count);
|
|
36906
|
+
}
|
|
36907
|
+
for (const v of message.topics) {
|
|
36908
|
+
SdTopic.encode(v!, writer.uint32(18).fork()).ldelim();
|
|
36909
|
+
}
|
|
36910
|
+
return writer;
|
|
36911
|
+
},
|
|
36912
|
+
|
|
36913
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): SdTopicList {
|
|
36914
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
36915
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
36916
|
+
const message = createBaseSdTopicList();
|
|
36917
|
+
while (reader.pos < end) {
|
|
36918
|
+
const tag = reader.uint32();
|
|
36919
|
+
switch (tag >>> 3) {
|
|
36920
|
+
case 1:
|
|
36921
|
+
if (tag !== 8) {
|
|
36922
|
+
break;
|
|
36923
|
+
}
|
|
36924
|
+
|
|
36925
|
+
message.count = reader.int32();
|
|
36926
|
+
continue;
|
|
36927
|
+
case 2:
|
|
36928
|
+
if (tag !== 18) {
|
|
36929
|
+
break;
|
|
36930
|
+
}
|
|
36931
|
+
|
|
36932
|
+
message.topics.push(SdTopic.decode(reader, reader.uint32()));
|
|
36933
|
+
continue;
|
|
36934
|
+
}
|
|
36935
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
36936
|
+
break;
|
|
36937
|
+
}
|
|
36938
|
+
reader.skipType(tag & 7);
|
|
36939
|
+
}
|
|
36940
|
+
return message;
|
|
36941
|
+
},
|
|
36942
|
+
|
|
36943
|
+
fromJSON(object: any): SdTopicList {
|
|
36944
|
+
return {
|
|
36945
|
+
count: isSet(object.count) ? globalThis.Number(object.count) : 0,
|
|
36946
|
+
topics: globalThis.Array.isArray(object?.topics) ? object.topics.map((e: any) => SdTopic.fromJSON(e)) : [],
|
|
36947
|
+
};
|
|
36948
|
+
},
|
|
36949
|
+
|
|
36950
|
+
toJSON(message: SdTopicList): unknown {
|
|
36951
|
+
const obj: any = {};
|
|
36952
|
+
if (message.count !== 0) {
|
|
36953
|
+
obj.count = Math.round(message.count);
|
|
36954
|
+
}
|
|
36955
|
+
if (message.topics?.length) {
|
|
36956
|
+
obj.topics = message.topics.map((e) => SdTopic.toJSON(e));
|
|
36957
|
+
}
|
|
36958
|
+
return obj;
|
|
36959
|
+
},
|
|
36960
|
+
|
|
36961
|
+
create<I extends Exact<DeepPartial<SdTopicList>, I>>(base?: I): SdTopicList {
|
|
36962
|
+
return SdTopicList.fromPartial(base ?? ({} as any));
|
|
36963
|
+
},
|
|
36964
|
+
fromPartial<I extends Exact<DeepPartial<SdTopicList>, I>>(object: I): SdTopicList {
|
|
36965
|
+
const message = createBaseSdTopicList();
|
|
36966
|
+
message.count = object.count ?? 0;
|
|
36967
|
+
message.topics = object.topics?.map((e) => SdTopic.fromPartial(e)) || [];
|
|
36968
|
+
return message;
|
|
36969
|
+
},
|
|
36970
|
+
};
|
|
36971
|
+
|
|
36972
|
+
function createBaseListSdTopicRequest(): ListSdTopicRequest {
|
|
36973
|
+
return { channel_id: "", limit: 0 };
|
|
36974
|
+
}
|
|
36975
|
+
|
|
36976
|
+
export const ListSdTopicRequest = {
|
|
36977
|
+
encode(message: ListSdTopicRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
36978
|
+
if (message.channel_id !== "") {
|
|
36979
|
+
writer.uint32(10).string(message.channel_id);
|
|
36980
|
+
}
|
|
36981
|
+
if (message.limit !== 0) {
|
|
36982
|
+
writer.uint32(16).int32(message.limit);
|
|
36983
|
+
}
|
|
36984
|
+
return writer;
|
|
36985
|
+
},
|
|
36986
|
+
|
|
36987
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ListSdTopicRequest {
|
|
36988
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
36989
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
36990
|
+
const message = createBaseListSdTopicRequest();
|
|
36991
|
+
while (reader.pos < end) {
|
|
36992
|
+
const tag = reader.uint32();
|
|
36993
|
+
switch (tag >>> 3) {
|
|
36994
|
+
case 1:
|
|
36995
|
+
if (tag !== 10) {
|
|
36996
|
+
break;
|
|
36997
|
+
}
|
|
36998
|
+
|
|
36999
|
+
message.channel_id = reader.string();
|
|
37000
|
+
continue;
|
|
37001
|
+
case 2:
|
|
37002
|
+
if (tag !== 16) {
|
|
37003
|
+
break;
|
|
37004
|
+
}
|
|
37005
|
+
|
|
37006
|
+
message.limit = reader.int32();
|
|
37007
|
+
continue;
|
|
37008
|
+
}
|
|
37009
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
37010
|
+
break;
|
|
37011
|
+
}
|
|
37012
|
+
reader.skipType(tag & 7);
|
|
37013
|
+
}
|
|
37014
|
+
return message;
|
|
37015
|
+
},
|
|
37016
|
+
|
|
37017
|
+
fromJSON(object: any): ListSdTopicRequest {
|
|
37018
|
+
return {
|
|
37019
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
37020
|
+
limit: isSet(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
37021
|
+
};
|
|
37022
|
+
},
|
|
37023
|
+
|
|
37024
|
+
toJSON(message: ListSdTopicRequest): unknown {
|
|
37025
|
+
const obj: any = {};
|
|
37026
|
+
if (message.channel_id !== "") {
|
|
37027
|
+
obj.channel_id = message.channel_id;
|
|
37028
|
+
}
|
|
37029
|
+
if (message.limit !== 0) {
|
|
37030
|
+
obj.limit = Math.round(message.limit);
|
|
37031
|
+
}
|
|
37032
|
+
return obj;
|
|
37033
|
+
},
|
|
37034
|
+
|
|
37035
|
+
create<I extends Exact<DeepPartial<ListSdTopicRequest>, I>>(base?: I): ListSdTopicRequest {
|
|
37036
|
+
return ListSdTopicRequest.fromPartial(base ?? ({} as any));
|
|
37037
|
+
},
|
|
37038
|
+
fromPartial<I extends Exact<DeepPartial<ListSdTopicRequest>, I>>(object: I): ListSdTopicRequest {
|
|
37039
|
+
const message = createBaseListSdTopicRequest();
|
|
37040
|
+
message.channel_id = object.channel_id ?? "";
|
|
37041
|
+
message.limit = object.limit ?? 0;
|
|
37042
|
+
return message;
|
|
37043
|
+
},
|
|
37044
|
+
};
|
|
37045
|
+
|
|
36505
37046
|
function bytesFromBase64(b64: string): Uint8Array {
|
|
36506
37047
|
if ((globalThis as any).Buffer) {
|
|
36507
37048
|
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
@@ -2997,11 +2997,21 @@ export interface UpdateOnboardingStepRequest {
|
|
|
2997
2997
|
/** onboarding step. */
|
|
2998
2998
|
onboarding_step: number | undefined;
|
|
2999
2999
|
}
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3000
|
+
/** A list of users belonging to a channel, along with their role. */
|
|
3001
|
+
export interface PTTChannelUser {
|
|
3002
|
+
/** user join id */
|
|
3003
|
+
id: string;
|
|
3004
|
+
/** user for a channel. */
|
|
3005
|
+
user_id: string;
|
|
3006
|
+
/** channel id */
|
|
3007
|
+
channel_id: string;
|
|
3008
|
+
/** participant */
|
|
3009
|
+
participant: string;
|
|
3010
|
+
}
|
|
3011
|
+
/** A list of users belonging to a channel, along with their role. */
|
|
3012
|
+
export interface PTTChannelUserList {
|
|
3013
|
+
/** list of ptt channel user */
|
|
3014
|
+
ptt_channel_users: PTTChannelUser[];
|
|
3005
3015
|
}
|
|
3006
3016
|
export interface WalletLedger {
|
|
3007
3017
|
/** change set id */
|
|
@@ -3025,6 +3035,29 @@ export interface WalletLedgerListReq {
|
|
|
3025
3035
|
cursor: string;
|
|
3026
3036
|
transaction_id: string;
|
|
3027
3037
|
}
|
|
3038
|
+
export interface SdTopic {
|
|
3039
|
+
id: string;
|
|
3040
|
+
creator_id: string;
|
|
3041
|
+
message_id: string;
|
|
3042
|
+
clan_id: string;
|
|
3043
|
+
channel_id: string;
|
|
3044
|
+
status: number;
|
|
3045
|
+
create_time: Date | undefined;
|
|
3046
|
+
update_time: Date | undefined;
|
|
3047
|
+
}
|
|
3048
|
+
export interface SdTopicRequest {
|
|
3049
|
+
message_id: string;
|
|
3050
|
+
clan_id: string;
|
|
3051
|
+
channel_id: string;
|
|
3052
|
+
}
|
|
3053
|
+
export interface SdTopicList {
|
|
3054
|
+
count: number;
|
|
3055
|
+
topics: SdTopic[];
|
|
3056
|
+
}
|
|
3057
|
+
export interface ListSdTopicRequest {
|
|
3058
|
+
channel_id: string;
|
|
3059
|
+
limit: number;
|
|
3060
|
+
}
|
|
3028
3061
|
export declare const Account: {
|
|
3029
3062
|
encode(message: Account, writer?: _m0.Writer): _m0.Writer;
|
|
3030
3063
|
decode(input: _m0.Reader | Uint8Array, length?: number): Account;
|
|
@@ -20801,25 +20834,99 @@ export declare const UpdateOnboardingStepRequest: {
|
|
|
20801
20834
|
onboarding_step?: number | undefined;
|
|
20802
20835
|
} & { [K_1 in Exclude<keyof I_1, keyof UpdateOnboardingStepRequest>]: never; }>(object: I_1): UpdateOnboardingStepRequest;
|
|
20803
20836
|
};
|
|
20804
|
-
export declare const
|
|
20805
|
-
encode(message:
|
|
20806
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
20807
|
-
fromJSON(object: any):
|
|
20808
|
-
toJSON(message:
|
|
20837
|
+
export declare const PTTChannelUser: {
|
|
20838
|
+
encode(message: PTTChannelUser, writer?: _m0.Writer): _m0.Writer;
|
|
20839
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PTTChannelUser;
|
|
20840
|
+
fromJSON(object: any): PTTChannelUser;
|
|
20841
|
+
toJSON(message: PTTChannelUser): unknown;
|
|
20809
20842
|
create<I extends {
|
|
20810
|
-
|
|
20811
|
-
|
|
20843
|
+
id?: string | undefined;
|
|
20844
|
+
user_id?: string | undefined;
|
|
20845
|
+
channel_id?: string | undefined;
|
|
20846
|
+
participant?: string | undefined;
|
|
20812
20847
|
} & {
|
|
20813
|
-
|
|
20814
|
-
|
|
20815
|
-
|
|
20848
|
+
id?: string | undefined;
|
|
20849
|
+
user_id?: string | undefined;
|
|
20850
|
+
channel_id?: string | undefined;
|
|
20851
|
+
participant?: string | undefined;
|
|
20852
|
+
} & { [K in Exclude<keyof I, keyof PTTChannelUser>]: never; }>(base?: I | undefined): PTTChannelUser;
|
|
20816
20853
|
fromPartial<I_1 extends {
|
|
20817
|
-
|
|
20818
|
-
|
|
20854
|
+
id?: string | undefined;
|
|
20855
|
+
user_id?: string | undefined;
|
|
20856
|
+
channel_id?: string | undefined;
|
|
20857
|
+
participant?: string | undefined;
|
|
20819
20858
|
} & {
|
|
20820
|
-
|
|
20821
|
-
|
|
20822
|
-
|
|
20859
|
+
id?: string | undefined;
|
|
20860
|
+
user_id?: string | undefined;
|
|
20861
|
+
channel_id?: string | undefined;
|
|
20862
|
+
participant?: string | undefined;
|
|
20863
|
+
} & { [K_1 in Exclude<keyof I_1, keyof PTTChannelUser>]: never; }>(object: I_1): PTTChannelUser;
|
|
20864
|
+
};
|
|
20865
|
+
export declare const PTTChannelUserList: {
|
|
20866
|
+
encode(message: PTTChannelUserList, writer?: _m0.Writer): _m0.Writer;
|
|
20867
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PTTChannelUserList;
|
|
20868
|
+
fromJSON(object: any): PTTChannelUserList;
|
|
20869
|
+
toJSON(message: PTTChannelUserList): unknown;
|
|
20870
|
+
create<I extends {
|
|
20871
|
+
ptt_channel_users?: {
|
|
20872
|
+
id?: string | undefined;
|
|
20873
|
+
user_id?: string | undefined;
|
|
20874
|
+
channel_id?: string | undefined;
|
|
20875
|
+
participant?: string | undefined;
|
|
20876
|
+
}[] | undefined;
|
|
20877
|
+
} & {
|
|
20878
|
+
ptt_channel_users?: ({
|
|
20879
|
+
id?: string | undefined;
|
|
20880
|
+
user_id?: string | undefined;
|
|
20881
|
+
channel_id?: string | undefined;
|
|
20882
|
+
participant?: string | undefined;
|
|
20883
|
+
}[] & ({
|
|
20884
|
+
id?: string | undefined;
|
|
20885
|
+
user_id?: string | undefined;
|
|
20886
|
+
channel_id?: string | undefined;
|
|
20887
|
+
participant?: string | undefined;
|
|
20888
|
+
} & {
|
|
20889
|
+
id?: string | undefined;
|
|
20890
|
+
user_id?: string | undefined;
|
|
20891
|
+
channel_id?: string | undefined;
|
|
20892
|
+
participant?: string | undefined;
|
|
20893
|
+
} & { [K in Exclude<keyof I["ptt_channel_users"][number], keyof PTTChannelUser>]: never; })[] & { [K_1 in Exclude<keyof I["ptt_channel_users"], keyof {
|
|
20894
|
+
id?: string | undefined;
|
|
20895
|
+
user_id?: string | undefined;
|
|
20896
|
+
channel_id?: string | undefined;
|
|
20897
|
+
participant?: string | undefined;
|
|
20898
|
+
}[]>]: never; }) | undefined;
|
|
20899
|
+
} & { [K_2 in Exclude<keyof I, "ptt_channel_users">]: never; }>(base?: I | undefined): PTTChannelUserList;
|
|
20900
|
+
fromPartial<I_1 extends {
|
|
20901
|
+
ptt_channel_users?: {
|
|
20902
|
+
id?: string | undefined;
|
|
20903
|
+
user_id?: string | undefined;
|
|
20904
|
+
channel_id?: string | undefined;
|
|
20905
|
+
participant?: string | undefined;
|
|
20906
|
+
}[] | undefined;
|
|
20907
|
+
} & {
|
|
20908
|
+
ptt_channel_users?: ({
|
|
20909
|
+
id?: string | undefined;
|
|
20910
|
+
user_id?: string | undefined;
|
|
20911
|
+
channel_id?: string | undefined;
|
|
20912
|
+
participant?: string | undefined;
|
|
20913
|
+
}[] & ({
|
|
20914
|
+
id?: string | undefined;
|
|
20915
|
+
user_id?: string | undefined;
|
|
20916
|
+
channel_id?: string | undefined;
|
|
20917
|
+
participant?: string | undefined;
|
|
20918
|
+
} & {
|
|
20919
|
+
id?: string | undefined;
|
|
20920
|
+
user_id?: string | undefined;
|
|
20921
|
+
channel_id?: string | undefined;
|
|
20922
|
+
participant?: string | undefined;
|
|
20923
|
+
} & { [K_3 in Exclude<keyof I_1["ptt_channel_users"][number], keyof PTTChannelUser>]: never; })[] & { [K_4 in Exclude<keyof I_1["ptt_channel_users"], keyof {
|
|
20924
|
+
id?: string | undefined;
|
|
20925
|
+
user_id?: string | undefined;
|
|
20926
|
+
channel_id?: string | undefined;
|
|
20927
|
+
participant?: string | undefined;
|
|
20928
|
+
}[]>]: never; }) | undefined;
|
|
20929
|
+
} & { [K_5 in Exclude<keyof I_1, "ptt_channel_users">]: never; }>(object: I_1): PTTChannelUserList;
|
|
20823
20930
|
};
|
|
20824
20931
|
export declare const WalletLedger: {
|
|
20825
20932
|
encode(message: WalletLedger, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -20961,6 +21068,204 @@ export declare const WalletLedgerListReq: {
|
|
|
20961
21068
|
transaction_id?: string | undefined;
|
|
20962
21069
|
} & { [K_1 in Exclude<keyof I_1, keyof WalletLedgerListReq>]: never; }>(object: I_1): WalletLedgerListReq;
|
|
20963
21070
|
};
|
|
21071
|
+
export declare const SdTopic: {
|
|
21072
|
+
encode(message: SdTopic, writer?: _m0.Writer): _m0.Writer;
|
|
21073
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): SdTopic;
|
|
21074
|
+
fromJSON(object: any): SdTopic;
|
|
21075
|
+
toJSON(message: SdTopic): unknown;
|
|
21076
|
+
create<I extends {
|
|
21077
|
+
id?: string | undefined;
|
|
21078
|
+
creator_id?: string | undefined;
|
|
21079
|
+
message_id?: string | undefined;
|
|
21080
|
+
clan_id?: string | undefined;
|
|
21081
|
+
channel_id?: string | undefined;
|
|
21082
|
+
status?: number | undefined;
|
|
21083
|
+
create_time?: Date | undefined;
|
|
21084
|
+
update_time?: Date | undefined;
|
|
21085
|
+
} & {
|
|
21086
|
+
id?: string | undefined;
|
|
21087
|
+
creator_id?: string | undefined;
|
|
21088
|
+
message_id?: string | undefined;
|
|
21089
|
+
clan_id?: string | undefined;
|
|
21090
|
+
channel_id?: string | undefined;
|
|
21091
|
+
status?: number | undefined;
|
|
21092
|
+
create_time?: Date | undefined;
|
|
21093
|
+
update_time?: Date | undefined;
|
|
21094
|
+
} & { [K in Exclude<keyof I, keyof SdTopic>]: never; }>(base?: I | undefined): SdTopic;
|
|
21095
|
+
fromPartial<I_1 extends {
|
|
21096
|
+
id?: string | undefined;
|
|
21097
|
+
creator_id?: string | undefined;
|
|
21098
|
+
message_id?: string | undefined;
|
|
21099
|
+
clan_id?: string | undefined;
|
|
21100
|
+
channel_id?: string | undefined;
|
|
21101
|
+
status?: number | undefined;
|
|
21102
|
+
create_time?: Date | undefined;
|
|
21103
|
+
update_time?: Date | undefined;
|
|
21104
|
+
} & {
|
|
21105
|
+
id?: string | undefined;
|
|
21106
|
+
creator_id?: string | undefined;
|
|
21107
|
+
message_id?: string | undefined;
|
|
21108
|
+
clan_id?: string | undefined;
|
|
21109
|
+
channel_id?: string | undefined;
|
|
21110
|
+
status?: number | undefined;
|
|
21111
|
+
create_time?: Date | undefined;
|
|
21112
|
+
update_time?: Date | undefined;
|
|
21113
|
+
} & { [K_1 in Exclude<keyof I_1, keyof SdTopic>]: never; }>(object: I_1): SdTopic;
|
|
21114
|
+
};
|
|
21115
|
+
export declare const SdTopicRequest: {
|
|
21116
|
+
encode(message: SdTopicRequest, writer?: _m0.Writer): _m0.Writer;
|
|
21117
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): SdTopicRequest;
|
|
21118
|
+
fromJSON(object: any): SdTopicRequest;
|
|
21119
|
+
toJSON(message: SdTopicRequest): unknown;
|
|
21120
|
+
create<I extends {
|
|
21121
|
+
message_id?: string | undefined;
|
|
21122
|
+
clan_id?: string | undefined;
|
|
21123
|
+
channel_id?: string | undefined;
|
|
21124
|
+
} & {
|
|
21125
|
+
message_id?: string | undefined;
|
|
21126
|
+
clan_id?: string | undefined;
|
|
21127
|
+
channel_id?: string | undefined;
|
|
21128
|
+
} & { [K in Exclude<keyof I, keyof SdTopicRequest>]: never; }>(base?: I | undefined): SdTopicRequest;
|
|
21129
|
+
fromPartial<I_1 extends {
|
|
21130
|
+
message_id?: string | undefined;
|
|
21131
|
+
clan_id?: string | undefined;
|
|
21132
|
+
channel_id?: string | undefined;
|
|
21133
|
+
} & {
|
|
21134
|
+
message_id?: string | undefined;
|
|
21135
|
+
clan_id?: string | undefined;
|
|
21136
|
+
channel_id?: string | undefined;
|
|
21137
|
+
} & { [K_1 in Exclude<keyof I_1, keyof SdTopicRequest>]: never; }>(object: I_1): SdTopicRequest;
|
|
21138
|
+
};
|
|
21139
|
+
export declare const SdTopicList: {
|
|
21140
|
+
encode(message: SdTopicList, writer?: _m0.Writer): _m0.Writer;
|
|
21141
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): SdTopicList;
|
|
21142
|
+
fromJSON(object: any): SdTopicList;
|
|
21143
|
+
toJSON(message: SdTopicList): unknown;
|
|
21144
|
+
create<I extends {
|
|
21145
|
+
count?: number | undefined;
|
|
21146
|
+
topics?: {
|
|
21147
|
+
id?: string | undefined;
|
|
21148
|
+
creator_id?: string | undefined;
|
|
21149
|
+
message_id?: string | undefined;
|
|
21150
|
+
clan_id?: string | undefined;
|
|
21151
|
+
channel_id?: string | undefined;
|
|
21152
|
+
status?: number | undefined;
|
|
21153
|
+
create_time?: Date | undefined;
|
|
21154
|
+
update_time?: Date | undefined;
|
|
21155
|
+
}[] | undefined;
|
|
21156
|
+
} & {
|
|
21157
|
+
count?: number | undefined;
|
|
21158
|
+
topics?: ({
|
|
21159
|
+
id?: string | undefined;
|
|
21160
|
+
creator_id?: string | undefined;
|
|
21161
|
+
message_id?: string | undefined;
|
|
21162
|
+
clan_id?: string | undefined;
|
|
21163
|
+
channel_id?: string | undefined;
|
|
21164
|
+
status?: number | undefined;
|
|
21165
|
+
create_time?: Date | undefined;
|
|
21166
|
+
update_time?: Date | undefined;
|
|
21167
|
+
}[] & ({
|
|
21168
|
+
id?: string | undefined;
|
|
21169
|
+
creator_id?: string | undefined;
|
|
21170
|
+
message_id?: string | undefined;
|
|
21171
|
+
clan_id?: string | undefined;
|
|
21172
|
+
channel_id?: string | undefined;
|
|
21173
|
+
status?: number | undefined;
|
|
21174
|
+
create_time?: Date | undefined;
|
|
21175
|
+
update_time?: Date | undefined;
|
|
21176
|
+
} & {
|
|
21177
|
+
id?: string | undefined;
|
|
21178
|
+
creator_id?: string | undefined;
|
|
21179
|
+
message_id?: string | undefined;
|
|
21180
|
+
clan_id?: string | undefined;
|
|
21181
|
+
channel_id?: string | undefined;
|
|
21182
|
+
status?: number | undefined;
|
|
21183
|
+
create_time?: Date | undefined;
|
|
21184
|
+
update_time?: Date | undefined;
|
|
21185
|
+
} & { [K in Exclude<keyof I["topics"][number], keyof SdTopic>]: never; })[] & { [K_1 in Exclude<keyof I["topics"], keyof {
|
|
21186
|
+
id?: string | undefined;
|
|
21187
|
+
creator_id?: string | undefined;
|
|
21188
|
+
message_id?: string | undefined;
|
|
21189
|
+
clan_id?: string | undefined;
|
|
21190
|
+
channel_id?: string | undefined;
|
|
21191
|
+
status?: number | undefined;
|
|
21192
|
+
create_time?: Date | undefined;
|
|
21193
|
+
update_time?: Date | undefined;
|
|
21194
|
+
}[]>]: never; }) | undefined;
|
|
21195
|
+
} & { [K_2 in Exclude<keyof I, keyof SdTopicList>]: never; }>(base?: I | undefined): SdTopicList;
|
|
21196
|
+
fromPartial<I_1 extends {
|
|
21197
|
+
count?: number | undefined;
|
|
21198
|
+
topics?: {
|
|
21199
|
+
id?: string | undefined;
|
|
21200
|
+
creator_id?: string | undefined;
|
|
21201
|
+
message_id?: string | undefined;
|
|
21202
|
+
clan_id?: string | undefined;
|
|
21203
|
+
channel_id?: string | undefined;
|
|
21204
|
+
status?: number | undefined;
|
|
21205
|
+
create_time?: Date | undefined;
|
|
21206
|
+
update_time?: Date | undefined;
|
|
21207
|
+
}[] | undefined;
|
|
21208
|
+
} & {
|
|
21209
|
+
count?: number | undefined;
|
|
21210
|
+
topics?: ({
|
|
21211
|
+
id?: string | undefined;
|
|
21212
|
+
creator_id?: string | undefined;
|
|
21213
|
+
message_id?: string | undefined;
|
|
21214
|
+
clan_id?: string | undefined;
|
|
21215
|
+
channel_id?: string | undefined;
|
|
21216
|
+
status?: number | undefined;
|
|
21217
|
+
create_time?: Date | undefined;
|
|
21218
|
+
update_time?: Date | undefined;
|
|
21219
|
+
}[] & ({
|
|
21220
|
+
id?: string | undefined;
|
|
21221
|
+
creator_id?: string | undefined;
|
|
21222
|
+
message_id?: string | undefined;
|
|
21223
|
+
clan_id?: string | undefined;
|
|
21224
|
+
channel_id?: string | undefined;
|
|
21225
|
+
status?: number | undefined;
|
|
21226
|
+
create_time?: Date | undefined;
|
|
21227
|
+
update_time?: Date | undefined;
|
|
21228
|
+
} & {
|
|
21229
|
+
id?: string | undefined;
|
|
21230
|
+
creator_id?: string | undefined;
|
|
21231
|
+
message_id?: string | undefined;
|
|
21232
|
+
clan_id?: string | undefined;
|
|
21233
|
+
channel_id?: string | undefined;
|
|
21234
|
+
status?: number | undefined;
|
|
21235
|
+
create_time?: Date | undefined;
|
|
21236
|
+
update_time?: Date | undefined;
|
|
21237
|
+
} & { [K_3 in Exclude<keyof I_1["topics"][number], keyof SdTopic>]: never; })[] & { [K_4 in Exclude<keyof I_1["topics"], keyof {
|
|
21238
|
+
id?: string | undefined;
|
|
21239
|
+
creator_id?: string | undefined;
|
|
21240
|
+
message_id?: string | undefined;
|
|
21241
|
+
clan_id?: string | undefined;
|
|
21242
|
+
channel_id?: string | undefined;
|
|
21243
|
+
status?: number | undefined;
|
|
21244
|
+
create_time?: Date | undefined;
|
|
21245
|
+
update_time?: Date | undefined;
|
|
21246
|
+
}[]>]: never; }) | undefined;
|
|
21247
|
+
} & { [K_5 in Exclude<keyof I_1, keyof SdTopicList>]: never; }>(object: I_1): SdTopicList;
|
|
21248
|
+
};
|
|
21249
|
+
export declare const ListSdTopicRequest: {
|
|
21250
|
+
encode(message: ListSdTopicRequest, writer?: _m0.Writer): _m0.Writer;
|
|
21251
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ListSdTopicRequest;
|
|
21252
|
+
fromJSON(object: any): ListSdTopicRequest;
|
|
21253
|
+
toJSON(message: ListSdTopicRequest): unknown;
|
|
21254
|
+
create<I extends {
|
|
21255
|
+
channel_id?: string | undefined;
|
|
21256
|
+
limit?: number | undefined;
|
|
21257
|
+
} & {
|
|
21258
|
+
channel_id?: string | undefined;
|
|
21259
|
+
limit?: number | undefined;
|
|
21260
|
+
} & { [K in Exclude<keyof I, keyof ListSdTopicRequest>]: never; }>(base?: I | undefined): ListSdTopicRequest;
|
|
21261
|
+
fromPartial<I_1 extends {
|
|
21262
|
+
channel_id?: string | undefined;
|
|
21263
|
+
limit?: number | undefined;
|
|
21264
|
+
} & {
|
|
21265
|
+
channel_id?: string | undefined;
|
|
21266
|
+
limit?: number | undefined;
|
|
21267
|
+
} & { [K_1 in Exclude<keyof I_1, keyof ListSdTopicRequest>]: never; }>(object: I_1): ListSdTopicRequest;
|
|
21268
|
+
};
|
|
20964
21269
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
20965
21270
|
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 {} ? {
|
|
20966
21271
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
@@ -929,6 +929,8 @@ export interface JoinPTTChannel {
|
|
|
929
929
|
receiver_id: string;
|
|
930
930
|
/** clan id */
|
|
931
931
|
clan_id: string;
|
|
932
|
+
/** is talk */
|
|
933
|
+
is_talk: boolean;
|
|
932
934
|
}
|
|
933
935
|
export interface TalkPTTChannel {
|
|
934
936
|
/** channel id */
|
|
@@ -1640,6 +1642,7 @@ export declare const Envelope: {
|
|
|
1640
1642
|
json_data?: string | undefined;
|
|
1641
1643
|
receiver_id?: string | undefined;
|
|
1642
1644
|
clan_id?: string | undefined;
|
|
1645
|
+
is_talk?: boolean | undefined;
|
|
1643
1646
|
} | undefined;
|
|
1644
1647
|
talk_ptt_channel?: {
|
|
1645
1648
|
channel_id?: string | undefined;
|
|
@@ -3521,12 +3524,14 @@ export declare const Envelope: {
|
|
|
3521
3524
|
json_data?: string | undefined;
|
|
3522
3525
|
receiver_id?: string | undefined;
|
|
3523
3526
|
clan_id?: string | undefined;
|
|
3527
|
+
is_talk?: boolean | undefined;
|
|
3524
3528
|
} & {
|
|
3525
3529
|
channel_id?: string | undefined;
|
|
3526
3530
|
data_type?: number | undefined;
|
|
3527
3531
|
json_data?: string | undefined;
|
|
3528
3532
|
receiver_id?: string | undefined;
|
|
3529
3533
|
clan_id?: string | undefined;
|
|
3534
|
+
is_talk?: boolean | undefined;
|
|
3530
3535
|
} & { [K_118 in Exclude<keyof I["join_ptt_channel"], keyof JoinPTTChannel>]: never; }) | undefined;
|
|
3531
3536
|
talk_ptt_channel?: ({
|
|
3532
3537
|
channel_id?: string | undefined;
|
|
@@ -4300,6 +4305,7 @@ export declare const Envelope: {
|
|
|
4300
4305
|
json_data?: string | undefined;
|
|
4301
4306
|
receiver_id?: string | undefined;
|
|
4302
4307
|
clan_id?: string | undefined;
|
|
4308
|
+
is_talk?: boolean | undefined;
|
|
4303
4309
|
} | undefined;
|
|
4304
4310
|
talk_ptt_channel?: {
|
|
4305
4311
|
channel_id?: string | undefined;
|
|
@@ -6181,12 +6187,14 @@ export declare const Envelope: {
|
|
|
6181
6187
|
json_data?: string | undefined;
|
|
6182
6188
|
receiver_id?: string | undefined;
|
|
6183
6189
|
clan_id?: string | undefined;
|
|
6190
|
+
is_talk?: boolean | undefined;
|
|
6184
6191
|
} & {
|
|
6185
6192
|
channel_id?: string | undefined;
|
|
6186
6193
|
data_type?: number | undefined;
|
|
6187
6194
|
json_data?: string | undefined;
|
|
6188
6195
|
receiver_id?: string | undefined;
|
|
6189
6196
|
clan_id?: string | undefined;
|
|
6197
|
+
is_talk?: boolean | undefined;
|
|
6190
6198
|
} & { [K_247 in Exclude<keyof I_1["join_ptt_channel"], keyof JoinPTTChannel>]: never; }) | undefined;
|
|
6191
6199
|
talk_ptt_channel?: ({
|
|
6192
6200
|
channel_id?: string | undefined;
|
|
@@ -10478,12 +10486,14 @@ export declare const JoinPTTChannel: {
|
|
|
10478
10486
|
json_data?: string | undefined;
|
|
10479
10487
|
receiver_id?: string | undefined;
|
|
10480
10488
|
clan_id?: string | undefined;
|
|
10489
|
+
is_talk?: boolean | undefined;
|
|
10481
10490
|
} & {
|
|
10482
10491
|
channel_id?: string | undefined;
|
|
10483
10492
|
data_type?: number | undefined;
|
|
10484
10493
|
json_data?: string | undefined;
|
|
10485
10494
|
receiver_id?: string | undefined;
|
|
10486
10495
|
clan_id?: string | undefined;
|
|
10496
|
+
is_talk?: boolean | undefined;
|
|
10487
10497
|
} & { [K in Exclude<keyof I, keyof JoinPTTChannel>]: never; }>(base?: I | undefined): JoinPTTChannel;
|
|
10488
10498
|
fromPartial<I_1 extends {
|
|
10489
10499
|
channel_id?: string | undefined;
|
|
@@ -10491,12 +10501,14 @@ export declare const JoinPTTChannel: {
|
|
|
10491
10501
|
json_data?: string | undefined;
|
|
10492
10502
|
receiver_id?: string | undefined;
|
|
10493
10503
|
clan_id?: string | undefined;
|
|
10504
|
+
is_talk?: boolean | undefined;
|
|
10494
10505
|
} & {
|
|
10495
10506
|
channel_id?: string | undefined;
|
|
10496
10507
|
data_type?: number | undefined;
|
|
10497
10508
|
json_data?: string | undefined;
|
|
10498
10509
|
receiver_id?: string | undefined;
|
|
10499
10510
|
clan_id?: string | undefined;
|
|
10511
|
+
is_talk?: boolean | undefined;
|
|
10500
10512
|
} & { [K_1 in Exclude<keyof I_1, keyof JoinPTTChannel>]: never; }>(object: I_1): JoinPTTChannel;
|
|
10501
10513
|
};
|
|
10502
10514
|
export declare const TalkPTTChannel: {
|
|
@@ -12791,7 +12791,7 @@ var UnmuteEvent = {
|
|
|
12791
12791
|
}
|
|
12792
12792
|
};
|
|
12793
12793
|
function createBaseJoinPTTChannel() {
|
|
12794
|
-
return { channel_id: "", data_type: 0, json_data: "", receiver_id: "", clan_id: "" };
|
|
12794
|
+
return { channel_id: "", data_type: 0, json_data: "", receiver_id: "", clan_id: "", is_talk: false };
|
|
12795
12795
|
}
|
|
12796
12796
|
var JoinPTTChannel = {
|
|
12797
12797
|
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
@@ -12810,6 +12810,9 @@ var JoinPTTChannel = {
|
|
|
12810
12810
|
if (message.clan_id !== "") {
|
|
12811
12811
|
writer.uint32(42).string(message.clan_id);
|
|
12812
12812
|
}
|
|
12813
|
+
if (message.is_talk !== false) {
|
|
12814
|
+
writer.uint32(48).bool(message.is_talk);
|
|
12815
|
+
}
|
|
12813
12816
|
return writer;
|
|
12814
12817
|
},
|
|
12815
12818
|
decode(input, length) {
|
|
@@ -12849,6 +12852,12 @@ var JoinPTTChannel = {
|
|
|
12849
12852
|
}
|
|
12850
12853
|
message.clan_id = reader.string();
|
|
12851
12854
|
continue;
|
|
12855
|
+
case 6:
|
|
12856
|
+
if (tag !== 48) {
|
|
12857
|
+
break;
|
|
12858
|
+
}
|
|
12859
|
+
message.is_talk = reader.bool();
|
|
12860
|
+
continue;
|
|
12852
12861
|
}
|
|
12853
12862
|
if ((tag & 7) === 4 || tag === 0) {
|
|
12854
12863
|
break;
|
|
@@ -12863,7 +12872,8 @@ var JoinPTTChannel = {
|
|
|
12863
12872
|
data_type: isSet4(object.data_type) ? globalThis.Number(object.data_type) : 0,
|
|
12864
12873
|
json_data: isSet4(object.json_data) ? globalThis.String(object.json_data) : "",
|
|
12865
12874
|
receiver_id: isSet4(object.receiver_id) ? globalThis.String(object.receiver_id) : "",
|
|
12866
|
-
clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : ""
|
|
12875
|
+
clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
12876
|
+
is_talk: isSet4(object.is_talk) ? globalThis.Boolean(object.is_talk) : false
|
|
12867
12877
|
};
|
|
12868
12878
|
},
|
|
12869
12879
|
toJSON(message) {
|
|
@@ -12883,19 +12893,23 @@ var JoinPTTChannel = {
|
|
|
12883
12893
|
if (message.clan_id !== "") {
|
|
12884
12894
|
obj.clan_id = message.clan_id;
|
|
12885
12895
|
}
|
|
12896
|
+
if (message.is_talk !== false) {
|
|
12897
|
+
obj.is_talk = message.is_talk;
|
|
12898
|
+
}
|
|
12886
12899
|
return obj;
|
|
12887
12900
|
},
|
|
12888
12901
|
create(base) {
|
|
12889
12902
|
return JoinPTTChannel.fromPartial(base != null ? base : {});
|
|
12890
12903
|
},
|
|
12891
12904
|
fromPartial(object) {
|
|
12892
|
-
var _a, _b, _c, _d, _e;
|
|
12905
|
+
var _a, _b, _c, _d, _e, _f;
|
|
12893
12906
|
const message = createBaseJoinPTTChannel();
|
|
12894
12907
|
message.channel_id = (_a = object.channel_id) != null ? _a : "";
|
|
12895
12908
|
message.data_type = (_b = object.data_type) != null ? _b : 0;
|
|
12896
12909
|
message.json_data = (_c = object.json_data) != null ? _c : "";
|
|
12897
12910
|
message.receiver_id = (_d = object.receiver_id) != null ? _d : "";
|
|
12898
12911
|
message.clan_id = (_e = object.clan_id) != null ? _e : "";
|
|
12912
|
+
message.is_talk = (_f = object.is_talk) != null ? _f : false;
|
|
12899
12913
|
return message;
|
|
12900
12914
|
}
|
|
12901
12915
|
};
|
|
@@ -12778,7 +12778,7 @@ var UnmuteEvent = {
|
|
|
12778
12778
|
}
|
|
12779
12779
|
};
|
|
12780
12780
|
function createBaseJoinPTTChannel() {
|
|
12781
|
-
return { channel_id: "", data_type: 0, json_data: "", receiver_id: "", clan_id: "" };
|
|
12781
|
+
return { channel_id: "", data_type: 0, json_data: "", receiver_id: "", clan_id: "", is_talk: false };
|
|
12782
12782
|
}
|
|
12783
12783
|
var JoinPTTChannel = {
|
|
12784
12784
|
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
@@ -12797,6 +12797,9 @@ var JoinPTTChannel = {
|
|
|
12797
12797
|
if (message.clan_id !== "") {
|
|
12798
12798
|
writer.uint32(42).string(message.clan_id);
|
|
12799
12799
|
}
|
|
12800
|
+
if (message.is_talk !== false) {
|
|
12801
|
+
writer.uint32(48).bool(message.is_talk);
|
|
12802
|
+
}
|
|
12800
12803
|
return writer;
|
|
12801
12804
|
},
|
|
12802
12805
|
decode(input, length) {
|
|
@@ -12836,6 +12839,12 @@ var JoinPTTChannel = {
|
|
|
12836
12839
|
}
|
|
12837
12840
|
message.clan_id = reader.string();
|
|
12838
12841
|
continue;
|
|
12842
|
+
case 6:
|
|
12843
|
+
if (tag !== 48) {
|
|
12844
|
+
break;
|
|
12845
|
+
}
|
|
12846
|
+
message.is_talk = reader.bool();
|
|
12847
|
+
continue;
|
|
12839
12848
|
}
|
|
12840
12849
|
if ((tag & 7) === 4 || tag === 0) {
|
|
12841
12850
|
break;
|
|
@@ -12850,7 +12859,8 @@ var JoinPTTChannel = {
|
|
|
12850
12859
|
data_type: isSet4(object.data_type) ? globalThis.Number(object.data_type) : 0,
|
|
12851
12860
|
json_data: isSet4(object.json_data) ? globalThis.String(object.json_data) : "",
|
|
12852
12861
|
receiver_id: isSet4(object.receiver_id) ? globalThis.String(object.receiver_id) : "",
|
|
12853
|
-
clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : ""
|
|
12862
|
+
clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
12863
|
+
is_talk: isSet4(object.is_talk) ? globalThis.Boolean(object.is_talk) : false
|
|
12854
12864
|
};
|
|
12855
12865
|
},
|
|
12856
12866
|
toJSON(message) {
|
|
@@ -12870,19 +12880,23 @@ var JoinPTTChannel = {
|
|
|
12870
12880
|
if (message.clan_id !== "") {
|
|
12871
12881
|
obj.clan_id = message.clan_id;
|
|
12872
12882
|
}
|
|
12883
|
+
if (message.is_talk !== false) {
|
|
12884
|
+
obj.is_talk = message.is_talk;
|
|
12885
|
+
}
|
|
12873
12886
|
return obj;
|
|
12874
12887
|
},
|
|
12875
12888
|
create(base) {
|
|
12876
12889
|
return JoinPTTChannel.fromPartial(base != null ? base : {});
|
|
12877
12890
|
},
|
|
12878
12891
|
fromPartial(object) {
|
|
12879
|
-
var _a, _b, _c, _d, _e;
|
|
12892
|
+
var _a, _b, _c, _d, _e, _f;
|
|
12880
12893
|
const message = createBaseJoinPTTChannel();
|
|
12881
12894
|
message.channel_id = (_a = object.channel_id) != null ? _a : "";
|
|
12882
12895
|
message.data_type = (_b = object.data_type) != null ? _b : 0;
|
|
12883
12896
|
message.json_data = (_c = object.json_data) != null ? _c : "";
|
|
12884
12897
|
message.receiver_id = (_d = object.receiver_id) != null ? _d : "";
|
|
12885
12898
|
message.clan_id = (_e = object.clan_id) != null ? _e : "";
|
|
12899
|
+
message.is_talk = (_f = object.is_talk) != null ? _f : false;
|
|
12886
12900
|
return message;
|
|
12887
12901
|
}
|
|
12888
12902
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mezon-js-protobuf",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.40",
|
|
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",
|
package/rtapi/realtime.ts
CHANGED
|
@@ -1233,6 +1233,8 @@ export interface JoinPTTChannel {
|
|
|
1233
1233
|
receiver_id: string;
|
|
1234
1234
|
/** clan id */
|
|
1235
1235
|
clan_id: string;
|
|
1236
|
+
/** is talk */
|
|
1237
|
+
is_talk: boolean;
|
|
1236
1238
|
}
|
|
1237
1239
|
|
|
1238
1240
|
export interface TalkPTTChannel {
|
|
@@ -10381,7 +10383,7 @@ export const UnmuteEvent = {
|
|
|
10381
10383
|
};
|
|
10382
10384
|
|
|
10383
10385
|
function createBaseJoinPTTChannel(): JoinPTTChannel {
|
|
10384
|
-
return { channel_id: "", data_type: 0, json_data: "", receiver_id: "", clan_id: "" };
|
|
10386
|
+
return { channel_id: "", data_type: 0, json_data: "", receiver_id: "", clan_id: "", is_talk: false };
|
|
10385
10387
|
}
|
|
10386
10388
|
|
|
10387
10389
|
export const JoinPTTChannel = {
|
|
@@ -10401,6 +10403,9 @@ export const JoinPTTChannel = {
|
|
|
10401
10403
|
if (message.clan_id !== "") {
|
|
10402
10404
|
writer.uint32(42).string(message.clan_id);
|
|
10403
10405
|
}
|
|
10406
|
+
if (message.is_talk !== false) {
|
|
10407
|
+
writer.uint32(48).bool(message.is_talk);
|
|
10408
|
+
}
|
|
10404
10409
|
return writer;
|
|
10405
10410
|
},
|
|
10406
10411
|
|
|
@@ -10446,6 +10451,13 @@ export const JoinPTTChannel = {
|
|
|
10446
10451
|
|
|
10447
10452
|
message.clan_id = reader.string();
|
|
10448
10453
|
continue;
|
|
10454
|
+
case 6:
|
|
10455
|
+
if (tag !== 48) {
|
|
10456
|
+
break;
|
|
10457
|
+
}
|
|
10458
|
+
|
|
10459
|
+
message.is_talk = reader.bool();
|
|
10460
|
+
continue;
|
|
10449
10461
|
}
|
|
10450
10462
|
if ((tag & 7) === 4 || tag === 0) {
|
|
10451
10463
|
break;
|
|
@@ -10462,6 +10474,7 @@ export const JoinPTTChannel = {
|
|
|
10462
10474
|
json_data: isSet(object.json_data) ? globalThis.String(object.json_data) : "",
|
|
10463
10475
|
receiver_id: isSet(object.receiver_id) ? globalThis.String(object.receiver_id) : "",
|
|
10464
10476
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
10477
|
+
is_talk: isSet(object.is_talk) ? globalThis.Boolean(object.is_talk) : false,
|
|
10465
10478
|
};
|
|
10466
10479
|
},
|
|
10467
10480
|
|
|
@@ -10482,6 +10495,9 @@ export const JoinPTTChannel = {
|
|
|
10482
10495
|
if (message.clan_id !== "") {
|
|
10483
10496
|
obj.clan_id = message.clan_id;
|
|
10484
10497
|
}
|
|
10498
|
+
if (message.is_talk !== false) {
|
|
10499
|
+
obj.is_talk = message.is_talk;
|
|
10500
|
+
}
|
|
10485
10501
|
return obj;
|
|
10486
10502
|
},
|
|
10487
10503
|
|
|
@@ -10495,6 +10511,7 @@ export const JoinPTTChannel = {
|
|
|
10495
10511
|
message.json_data = object.json_data ?? "";
|
|
10496
10512
|
message.receiver_id = object.receiver_id ?? "";
|
|
10497
10513
|
message.clan_id = object.clan_id ?? "";
|
|
10514
|
+
message.is_talk = object.is_talk ?? false;
|
|
10498
10515
|
return message;
|
|
10499
10516
|
},
|
|
10500
10517
|
};
|