mezon-js-protobuf 1.4.34 → 1.4.36
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 +246 -0
- package/dist/mezon-js-protobuf/api/api.d.ts +96 -0
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +66 -66
- package/dist/mezon-js-protobuf.cjs.js +13 -13
- package/dist/mezon-js-protobuf.esm.mjs +13 -13
- package/package.json +1 -1
- package/rtapi/realtime.ts +15 -15
package/api/api.ts
CHANGED
|
@@ -1837,6 +1837,8 @@ export interface ChannelDescription {
|
|
|
1837
1837
|
meeting_code: string;
|
|
1838
1838
|
/** count message unread */
|
|
1839
1839
|
count_mess_unread: number;
|
|
1840
|
+
/** */
|
|
1841
|
+
active: number;
|
|
1840
1842
|
}
|
|
1841
1843
|
|
|
1842
1844
|
/** A list of channel description, usually a result of a list operation. */
|
|
@@ -1933,6 +1935,14 @@ export interface RemoveChannelUsersRequest {
|
|
|
1933
1935
|
user_ids: string[];
|
|
1934
1936
|
}
|
|
1935
1937
|
|
|
1938
|
+
/** Kick a set of users from a clan. */
|
|
1939
|
+
export interface RemoveClanUsersRequest {
|
|
1940
|
+
/** The clan ID to kick from. */
|
|
1941
|
+
clan_id: string;
|
|
1942
|
+
/** The users to kick. */
|
|
1943
|
+
user_ids: string[];
|
|
1944
|
+
}
|
|
1945
|
+
|
|
1936
1946
|
/** Leave a channel. */
|
|
1937
1947
|
export interface LeaveChannelRequest {
|
|
1938
1948
|
/** The channel ID to leave. */
|
|
@@ -2399,6 +2409,24 @@ export interface SearchMessageResponse {
|
|
|
2399
2409
|
total: number;
|
|
2400
2410
|
}
|
|
2401
2411
|
|
|
2412
|
+
export interface CreateWebhookRequest {
|
|
2413
|
+
/** Hook name */
|
|
2414
|
+
hook_name: string;
|
|
2415
|
+
/** Channel ID */
|
|
2416
|
+
channel_id: string;
|
|
2417
|
+
/** Clan ID */
|
|
2418
|
+
clan_id: string;
|
|
2419
|
+
}
|
|
2420
|
+
|
|
2421
|
+
export interface WebhookResponse {
|
|
2422
|
+
/** Hook name */
|
|
2423
|
+
hook_name: string;
|
|
2424
|
+
/** Channel ID */
|
|
2425
|
+
channel_id: string;
|
|
2426
|
+
/** hook url */
|
|
2427
|
+
hook_url: string;
|
|
2428
|
+
}
|
|
2429
|
+
|
|
2402
2430
|
function createBaseAccount(): Account {
|
|
2403
2431
|
return {
|
|
2404
2432
|
user: undefined,
|
|
@@ -12549,6 +12577,7 @@ function createBaseChannelDescription(): ChannelDescription {
|
|
|
12549
12577
|
status: 0,
|
|
12550
12578
|
meeting_code: "",
|
|
12551
12579
|
count_mess_unread: 0,
|
|
12580
|
+
active: 0,
|
|
12552
12581
|
};
|
|
12553
12582
|
}
|
|
12554
12583
|
|
|
@@ -12602,6 +12631,9 @@ export const ChannelDescription = {
|
|
|
12602
12631
|
if (message.count_mess_unread !== 0) {
|
|
12603
12632
|
writer.uint32(128).int32(message.count_mess_unread);
|
|
12604
12633
|
}
|
|
12634
|
+
if (message.active !== 0) {
|
|
12635
|
+
writer.uint32(136).int32(message.active);
|
|
12636
|
+
}
|
|
12605
12637
|
return writer;
|
|
12606
12638
|
},
|
|
12607
12639
|
|
|
@@ -12660,6 +12692,9 @@ export const ChannelDescription = {
|
|
|
12660
12692
|
case 16:
|
|
12661
12693
|
message.count_mess_unread = reader.int32();
|
|
12662
12694
|
break;
|
|
12695
|
+
case 17:
|
|
12696
|
+
message.active = reader.int32();
|
|
12697
|
+
break;
|
|
12663
12698
|
default:
|
|
12664
12699
|
reader.skipType(tag & 7);
|
|
12665
12700
|
break;
|
|
@@ -12690,6 +12725,7 @@ export const ChannelDescription = {
|
|
|
12690
12725
|
status: isSet(object.status) ? Number(object.status) : 0,
|
|
12691
12726
|
meeting_code: isSet(object.meeting_code) ? String(object.meeting_code) : "",
|
|
12692
12727
|
count_mess_unread: isSet(object.count_mess_unread) ? Number(object.count_mess_unread) : 0,
|
|
12728
|
+
active: isSet(object.active) ? Number(object.active) : 0,
|
|
12693
12729
|
};
|
|
12694
12730
|
},
|
|
12695
12731
|
|
|
@@ -12723,6 +12759,7 @@ export const ChannelDescription = {
|
|
|
12723
12759
|
message.status !== undefined && (obj.status = Math.round(message.status));
|
|
12724
12760
|
message.meeting_code !== undefined && (obj.meeting_code = message.meeting_code);
|
|
12725
12761
|
message.count_mess_unread !== undefined && (obj.count_mess_unread = Math.round(message.count_mess_unread));
|
|
12762
|
+
message.active !== undefined && (obj.active = Math.round(message.active));
|
|
12726
12763
|
return obj;
|
|
12727
12764
|
},
|
|
12728
12765
|
|
|
@@ -12752,6 +12789,7 @@ export const ChannelDescription = {
|
|
|
12752
12789
|
message.status = object.status ?? 0;
|
|
12753
12790
|
message.meeting_code = object.meeting_code ?? "";
|
|
12754
12791
|
message.count_mess_unread = object.count_mess_unread ?? 0;
|
|
12792
|
+
message.active = object.active ?? 0;
|
|
12755
12793
|
return message;
|
|
12756
12794
|
},
|
|
12757
12795
|
};
|
|
@@ -13380,6 +13418,72 @@ export const RemoveChannelUsersRequest = {
|
|
|
13380
13418
|
},
|
|
13381
13419
|
};
|
|
13382
13420
|
|
|
13421
|
+
function createBaseRemoveClanUsersRequest(): RemoveClanUsersRequest {
|
|
13422
|
+
return { clan_id: "", user_ids: [] };
|
|
13423
|
+
}
|
|
13424
|
+
|
|
13425
|
+
export const RemoveClanUsersRequest = {
|
|
13426
|
+
encode(message: RemoveClanUsersRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
13427
|
+
if (message.clan_id !== "") {
|
|
13428
|
+
writer.uint32(10).string(message.clan_id);
|
|
13429
|
+
}
|
|
13430
|
+
for (const v of message.user_ids) {
|
|
13431
|
+
writer.uint32(18).string(v!);
|
|
13432
|
+
}
|
|
13433
|
+
return writer;
|
|
13434
|
+
},
|
|
13435
|
+
|
|
13436
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): RemoveClanUsersRequest {
|
|
13437
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
13438
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
13439
|
+
const message = createBaseRemoveClanUsersRequest();
|
|
13440
|
+
while (reader.pos < end) {
|
|
13441
|
+
const tag = reader.uint32();
|
|
13442
|
+
switch (tag >>> 3) {
|
|
13443
|
+
case 1:
|
|
13444
|
+
message.clan_id = reader.string();
|
|
13445
|
+
break;
|
|
13446
|
+
case 2:
|
|
13447
|
+
message.user_ids.push(reader.string());
|
|
13448
|
+
break;
|
|
13449
|
+
default:
|
|
13450
|
+
reader.skipType(tag & 7);
|
|
13451
|
+
break;
|
|
13452
|
+
}
|
|
13453
|
+
}
|
|
13454
|
+
return message;
|
|
13455
|
+
},
|
|
13456
|
+
|
|
13457
|
+
fromJSON(object: any): RemoveClanUsersRequest {
|
|
13458
|
+
return {
|
|
13459
|
+
clan_id: isSet(object.clan_id) ? String(object.clan_id) : "",
|
|
13460
|
+
user_ids: Array.isArray(object?.user_ids) ? object.user_ids.map((e: any) => String(e)) : [],
|
|
13461
|
+
};
|
|
13462
|
+
},
|
|
13463
|
+
|
|
13464
|
+
toJSON(message: RemoveClanUsersRequest): unknown {
|
|
13465
|
+
const obj: any = {};
|
|
13466
|
+
message.clan_id !== undefined && (obj.clan_id = message.clan_id);
|
|
13467
|
+
if (message.user_ids) {
|
|
13468
|
+
obj.user_ids = message.user_ids.map((e) => e);
|
|
13469
|
+
} else {
|
|
13470
|
+
obj.user_ids = [];
|
|
13471
|
+
}
|
|
13472
|
+
return obj;
|
|
13473
|
+
},
|
|
13474
|
+
|
|
13475
|
+
create<I extends Exact<DeepPartial<RemoveClanUsersRequest>, I>>(base?: I): RemoveClanUsersRequest {
|
|
13476
|
+
return RemoveClanUsersRequest.fromPartial(base ?? {});
|
|
13477
|
+
},
|
|
13478
|
+
|
|
13479
|
+
fromPartial<I extends Exact<DeepPartial<RemoveClanUsersRequest>, I>>(object: I): RemoveClanUsersRequest {
|
|
13480
|
+
const message = createBaseRemoveClanUsersRequest();
|
|
13481
|
+
message.clan_id = object.clan_id ?? "";
|
|
13482
|
+
message.user_ids = object.user_ids?.map((e) => e) || [];
|
|
13483
|
+
return message;
|
|
13484
|
+
},
|
|
13485
|
+
};
|
|
13486
|
+
|
|
13383
13487
|
function createBaseLeaveChannelRequest(): LeaveChannelRequest {
|
|
13384
13488
|
return { channel_id: "" };
|
|
13385
13489
|
}
|
|
@@ -17206,6 +17310,148 @@ export const SearchMessageResponse = {
|
|
|
17206
17310
|
},
|
|
17207
17311
|
};
|
|
17208
17312
|
|
|
17313
|
+
function createBaseCreateWebhookRequest(): CreateWebhookRequest {
|
|
17314
|
+
return { hook_name: "", channel_id: "", clan_id: "" };
|
|
17315
|
+
}
|
|
17316
|
+
|
|
17317
|
+
export const CreateWebhookRequest = {
|
|
17318
|
+
encode(message: CreateWebhookRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
17319
|
+
if (message.hook_name !== "") {
|
|
17320
|
+
writer.uint32(10).string(message.hook_name);
|
|
17321
|
+
}
|
|
17322
|
+
if (message.channel_id !== "") {
|
|
17323
|
+
writer.uint32(18).string(message.channel_id);
|
|
17324
|
+
}
|
|
17325
|
+
if (message.clan_id !== "") {
|
|
17326
|
+
writer.uint32(26).string(message.clan_id);
|
|
17327
|
+
}
|
|
17328
|
+
return writer;
|
|
17329
|
+
},
|
|
17330
|
+
|
|
17331
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): CreateWebhookRequest {
|
|
17332
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
17333
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
17334
|
+
const message = createBaseCreateWebhookRequest();
|
|
17335
|
+
while (reader.pos < end) {
|
|
17336
|
+
const tag = reader.uint32();
|
|
17337
|
+
switch (tag >>> 3) {
|
|
17338
|
+
case 1:
|
|
17339
|
+
message.hook_name = reader.string();
|
|
17340
|
+
break;
|
|
17341
|
+
case 2:
|
|
17342
|
+
message.channel_id = reader.string();
|
|
17343
|
+
break;
|
|
17344
|
+
case 3:
|
|
17345
|
+
message.clan_id = reader.string();
|
|
17346
|
+
break;
|
|
17347
|
+
default:
|
|
17348
|
+
reader.skipType(tag & 7);
|
|
17349
|
+
break;
|
|
17350
|
+
}
|
|
17351
|
+
}
|
|
17352
|
+
return message;
|
|
17353
|
+
},
|
|
17354
|
+
|
|
17355
|
+
fromJSON(object: any): CreateWebhookRequest {
|
|
17356
|
+
return {
|
|
17357
|
+
hook_name: isSet(object.hook_name) ? String(object.hook_name) : "",
|
|
17358
|
+
channel_id: isSet(object.channel_id) ? String(object.channel_id) : "",
|
|
17359
|
+
clan_id: isSet(object.clan_id) ? String(object.clan_id) : "",
|
|
17360
|
+
};
|
|
17361
|
+
},
|
|
17362
|
+
|
|
17363
|
+
toJSON(message: CreateWebhookRequest): unknown {
|
|
17364
|
+
const obj: any = {};
|
|
17365
|
+
message.hook_name !== undefined && (obj.hook_name = message.hook_name);
|
|
17366
|
+
message.channel_id !== undefined && (obj.channel_id = message.channel_id);
|
|
17367
|
+
message.clan_id !== undefined && (obj.clan_id = message.clan_id);
|
|
17368
|
+
return obj;
|
|
17369
|
+
},
|
|
17370
|
+
|
|
17371
|
+
create<I extends Exact<DeepPartial<CreateWebhookRequest>, I>>(base?: I): CreateWebhookRequest {
|
|
17372
|
+
return CreateWebhookRequest.fromPartial(base ?? {});
|
|
17373
|
+
},
|
|
17374
|
+
|
|
17375
|
+
fromPartial<I extends Exact<DeepPartial<CreateWebhookRequest>, I>>(object: I): CreateWebhookRequest {
|
|
17376
|
+
const message = createBaseCreateWebhookRequest();
|
|
17377
|
+
message.hook_name = object.hook_name ?? "";
|
|
17378
|
+
message.channel_id = object.channel_id ?? "";
|
|
17379
|
+
message.clan_id = object.clan_id ?? "";
|
|
17380
|
+
return message;
|
|
17381
|
+
},
|
|
17382
|
+
};
|
|
17383
|
+
|
|
17384
|
+
function createBaseWebhookResponse(): WebhookResponse {
|
|
17385
|
+
return { hook_name: "", channel_id: "", hook_url: "" };
|
|
17386
|
+
}
|
|
17387
|
+
|
|
17388
|
+
export const WebhookResponse = {
|
|
17389
|
+
encode(message: WebhookResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
17390
|
+
if (message.hook_name !== "") {
|
|
17391
|
+
writer.uint32(10).string(message.hook_name);
|
|
17392
|
+
}
|
|
17393
|
+
if (message.channel_id !== "") {
|
|
17394
|
+
writer.uint32(18).string(message.channel_id);
|
|
17395
|
+
}
|
|
17396
|
+
if (message.hook_url !== "") {
|
|
17397
|
+
writer.uint32(26).string(message.hook_url);
|
|
17398
|
+
}
|
|
17399
|
+
return writer;
|
|
17400
|
+
},
|
|
17401
|
+
|
|
17402
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): WebhookResponse {
|
|
17403
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
17404
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
17405
|
+
const message = createBaseWebhookResponse();
|
|
17406
|
+
while (reader.pos < end) {
|
|
17407
|
+
const tag = reader.uint32();
|
|
17408
|
+
switch (tag >>> 3) {
|
|
17409
|
+
case 1:
|
|
17410
|
+
message.hook_name = reader.string();
|
|
17411
|
+
break;
|
|
17412
|
+
case 2:
|
|
17413
|
+
message.channel_id = reader.string();
|
|
17414
|
+
break;
|
|
17415
|
+
case 3:
|
|
17416
|
+
message.hook_url = reader.string();
|
|
17417
|
+
break;
|
|
17418
|
+
default:
|
|
17419
|
+
reader.skipType(tag & 7);
|
|
17420
|
+
break;
|
|
17421
|
+
}
|
|
17422
|
+
}
|
|
17423
|
+
return message;
|
|
17424
|
+
},
|
|
17425
|
+
|
|
17426
|
+
fromJSON(object: any): WebhookResponse {
|
|
17427
|
+
return {
|
|
17428
|
+
hook_name: isSet(object.hook_name) ? String(object.hook_name) : "",
|
|
17429
|
+
channel_id: isSet(object.channel_id) ? String(object.channel_id) : "",
|
|
17430
|
+
hook_url: isSet(object.hook_url) ? String(object.hook_url) : "",
|
|
17431
|
+
};
|
|
17432
|
+
},
|
|
17433
|
+
|
|
17434
|
+
toJSON(message: WebhookResponse): unknown {
|
|
17435
|
+
const obj: any = {};
|
|
17436
|
+
message.hook_name !== undefined && (obj.hook_name = message.hook_name);
|
|
17437
|
+
message.channel_id !== undefined && (obj.channel_id = message.channel_id);
|
|
17438
|
+
message.hook_url !== undefined && (obj.hook_url = message.hook_url);
|
|
17439
|
+
return obj;
|
|
17440
|
+
},
|
|
17441
|
+
|
|
17442
|
+
create<I extends Exact<DeepPartial<WebhookResponse>, I>>(base?: I): WebhookResponse {
|
|
17443
|
+
return WebhookResponse.fromPartial(base ?? {});
|
|
17444
|
+
},
|
|
17445
|
+
|
|
17446
|
+
fromPartial<I extends Exact<DeepPartial<WebhookResponse>, I>>(object: I): WebhookResponse {
|
|
17447
|
+
const message = createBaseWebhookResponse();
|
|
17448
|
+
message.hook_name = object.hook_name ?? "";
|
|
17449
|
+
message.channel_id = object.channel_id ?? "";
|
|
17450
|
+
message.hook_url = object.hook_url ?? "";
|
|
17451
|
+
return message;
|
|
17452
|
+
},
|
|
17453
|
+
};
|
|
17454
|
+
|
|
17209
17455
|
declare var self: any | undefined;
|
|
17210
17456
|
declare var window: any | undefined;
|
|
17211
17457
|
declare var global: any | undefined;
|
|
@@ -1356,6 +1356,10 @@ export interface ChannelDescription {
|
|
|
1356
1356
|
status: number;
|
|
1357
1357
|
/** meeting code */
|
|
1358
1358
|
meeting_code: string;
|
|
1359
|
+
/** count message unread */
|
|
1360
|
+
count_mess_unread: number;
|
|
1361
|
+
/** */
|
|
1362
|
+
active: number;
|
|
1359
1363
|
}
|
|
1360
1364
|
/** A list of channel description, usually a result of a list operation. */
|
|
1361
1365
|
export interface ChannelDescList {
|
|
@@ -1844,6 +1848,22 @@ export interface SearchMessageResponse {
|
|
|
1844
1848
|
/** The total number of messages. */
|
|
1845
1849
|
total: number;
|
|
1846
1850
|
}
|
|
1851
|
+
export interface CreateWebhookRequest {
|
|
1852
|
+
/** Hook name */
|
|
1853
|
+
hook_name: string;
|
|
1854
|
+
/** Channel ID */
|
|
1855
|
+
channel_id: string;
|
|
1856
|
+
/** Clan ID */
|
|
1857
|
+
clan_id: string;
|
|
1858
|
+
}
|
|
1859
|
+
export interface WebhookResponse {
|
|
1860
|
+
/** Hook name */
|
|
1861
|
+
hook_name: string;
|
|
1862
|
+
/** Channel ID */
|
|
1863
|
+
channel_id: string;
|
|
1864
|
+
/** hook url */
|
|
1865
|
+
hook_url: string;
|
|
1866
|
+
}
|
|
1847
1867
|
export declare const Account: {
|
|
1848
1868
|
encode(message: Account, writer?: _m0.Writer): _m0.Writer;
|
|
1849
1869
|
decode(input: _m0.Reader | Uint8Array, length?: number): Account;
|
|
@@ -9111,6 +9131,8 @@ export declare const ChannelDescription: {
|
|
|
9111
9131
|
} | undefined;
|
|
9112
9132
|
status?: number | undefined;
|
|
9113
9133
|
meeting_code?: string | undefined;
|
|
9134
|
+
count_mess_unread?: number | undefined;
|
|
9135
|
+
active?: number | undefined;
|
|
9114
9136
|
} & {
|
|
9115
9137
|
clan_id?: string | undefined;
|
|
9116
9138
|
parrent_id?: string | undefined;
|
|
@@ -9147,6 +9169,8 @@ export declare const ChannelDescription: {
|
|
|
9147
9169
|
} & { [K_3 in Exclude<keyof I["last_seen_message"], keyof ChannelMessageHeader>]: never; }) | undefined;
|
|
9148
9170
|
status?: number | undefined;
|
|
9149
9171
|
meeting_code?: string | undefined;
|
|
9172
|
+
count_mess_unread?: number | undefined;
|
|
9173
|
+
active?: number | undefined;
|
|
9150
9174
|
} & { [K_4 in Exclude<keyof I, keyof ChannelDescription>]: never; }>(base?: I | undefined): ChannelDescription;
|
|
9151
9175
|
fromPartial<I_1 extends {
|
|
9152
9176
|
clan_id?: string | undefined;
|
|
@@ -9174,6 +9198,8 @@ export declare const ChannelDescription: {
|
|
|
9174
9198
|
} | undefined;
|
|
9175
9199
|
status?: number | undefined;
|
|
9176
9200
|
meeting_code?: string | undefined;
|
|
9201
|
+
count_mess_unread?: number | undefined;
|
|
9202
|
+
active?: number | undefined;
|
|
9177
9203
|
} & {
|
|
9178
9204
|
clan_id?: string | undefined;
|
|
9179
9205
|
parrent_id?: string | undefined;
|
|
@@ -9210,6 +9236,8 @@ export declare const ChannelDescription: {
|
|
|
9210
9236
|
} & { [K_8 in Exclude<keyof I_1["last_seen_message"], keyof ChannelMessageHeader>]: never; }) | undefined;
|
|
9211
9237
|
status?: number | undefined;
|
|
9212
9238
|
meeting_code?: string | undefined;
|
|
9239
|
+
count_mess_unread?: number | undefined;
|
|
9240
|
+
active?: number | undefined;
|
|
9213
9241
|
} & { [K_9 in Exclude<keyof I_1, keyof ChannelDescription>]: never; }>(object: I_1): ChannelDescription;
|
|
9214
9242
|
};
|
|
9215
9243
|
export declare const ChannelDescList: {
|
|
@@ -9244,6 +9272,8 @@ export declare const ChannelDescList: {
|
|
|
9244
9272
|
} | undefined;
|
|
9245
9273
|
status?: number | undefined;
|
|
9246
9274
|
meeting_code?: string | undefined;
|
|
9275
|
+
count_mess_unread?: number | undefined;
|
|
9276
|
+
active?: number | undefined;
|
|
9247
9277
|
}[] | undefined;
|
|
9248
9278
|
next_cursor?: string | undefined;
|
|
9249
9279
|
prev_cursor?: string | undefined;
|
|
@@ -9275,6 +9305,8 @@ export declare const ChannelDescList: {
|
|
|
9275
9305
|
} | undefined;
|
|
9276
9306
|
status?: number | undefined;
|
|
9277
9307
|
meeting_code?: string | undefined;
|
|
9308
|
+
count_mess_unread?: number | undefined;
|
|
9309
|
+
active?: number | undefined;
|
|
9278
9310
|
}[] & ({
|
|
9279
9311
|
clan_id?: string | undefined;
|
|
9280
9312
|
parrent_id?: string | undefined;
|
|
@@ -9301,6 +9333,8 @@ export declare const ChannelDescList: {
|
|
|
9301
9333
|
} | undefined;
|
|
9302
9334
|
status?: number | undefined;
|
|
9303
9335
|
meeting_code?: string | undefined;
|
|
9336
|
+
count_mess_unread?: number | undefined;
|
|
9337
|
+
active?: number | undefined;
|
|
9304
9338
|
} & {
|
|
9305
9339
|
clan_id?: string | undefined;
|
|
9306
9340
|
parrent_id?: string | undefined;
|
|
@@ -9337,6 +9371,8 @@ export declare const ChannelDescList: {
|
|
|
9337
9371
|
} & { [K_3 in Exclude<keyof I["channeldesc"][number]["last_seen_message"], keyof ChannelMessageHeader>]: never; }) | undefined;
|
|
9338
9372
|
status?: number | undefined;
|
|
9339
9373
|
meeting_code?: string | undefined;
|
|
9374
|
+
count_mess_unread?: number | undefined;
|
|
9375
|
+
active?: number | undefined;
|
|
9340
9376
|
} & { [K_4 in Exclude<keyof I["channeldesc"][number], keyof ChannelDescription>]: never; })[] & { [K_5 in Exclude<keyof I["channeldesc"], keyof {
|
|
9341
9377
|
clan_id?: string | undefined;
|
|
9342
9378
|
parrent_id?: string | undefined;
|
|
@@ -9363,6 +9399,8 @@ export declare const ChannelDescList: {
|
|
|
9363
9399
|
} | undefined;
|
|
9364
9400
|
status?: number | undefined;
|
|
9365
9401
|
meeting_code?: string | undefined;
|
|
9402
|
+
count_mess_unread?: number | undefined;
|
|
9403
|
+
active?: number | undefined;
|
|
9366
9404
|
}[]>]: never; }) | undefined;
|
|
9367
9405
|
next_cursor?: string | undefined;
|
|
9368
9406
|
prev_cursor?: string | undefined;
|
|
@@ -9395,6 +9433,8 @@ export declare const ChannelDescList: {
|
|
|
9395
9433
|
} | undefined;
|
|
9396
9434
|
status?: number | undefined;
|
|
9397
9435
|
meeting_code?: string | undefined;
|
|
9436
|
+
count_mess_unread?: number | undefined;
|
|
9437
|
+
active?: number | undefined;
|
|
9398
9438
|
}[] | undefined;
|
|
9399
9439
|
next_cursor?: string | undefined;
|
|
9400
9440
|
prev_cursor?: string | undefined;
|
|
@@ -9426,6 +9466,8 @@ export declare const ChannelDescList: {
|
|
|
9426
9466
|
} | undefined;
|
|
9427
9467
|
status?: number | undefined;
|
|
9428
9468
|
meeting_code?: string | undefined;
|
|
9469
|
+
count_mess_unread?: number | undefined;
|
|
9470
|
+
active?: number | undefined;
|
|
9429
9471
|
}[] & ({
|
|
9430
9472
|
clan_id?: string | undefined;
|
|
9431
9473
|
parrent_id?: string | undefined;
|
|
@@ -9452,6 +9494,8 @@ export declare const ChannelDescList: {
|
|
|
9452
9494
|
} | undefined;
|
|
9453
9495
|
status?: number | undefined;
|
|
9454
9496
|
meeting_code?: string | undefined;
|
|
9497
|
+
count_mess_unread?: number | undefined;
|
|
9498
|
+
active?: number | undefined;
|
|
9455
9499
|
} & {
|
|
9456
9500
|
clan_id?: string | undefined;
|
|
9457
9501
|
parrent_id?: string | undefined;
|
|
@@ -9488,6 +9532,8 @@ export declare const ChannelDescList: {
|
|
|
9488
9532
|
} & { [K_10 in Exclude<keyof I_1["channeldesc"][number]["last_seen_message"], keyof ChannelMessageHeader>]: never; }) | undefined;
|
|
9489
9533
|
status?: number | undefined;
|
|
9490
9534
|
meeting_code?: string | undefined;
|
|
9535
|
+
count_mess_unread?: number | undefined;
|
|
9536
|
+
active?: number | undefined;
|
|
9491
9537
|
} & { [K_11 in Exclude<keyof I_1["channeldesc"][number], keyof ChannelDescription>]: never; })[] & { [K_12 in Exclude<keyof I_1["channeldesc"], keyof {
|
|
9492
9538
|
clan_id?: string | undefined;
|
|
9493
9539
|
parrent_id?: string | undefined;
|
|
@@ -9514,6 +9560,8 @@ export declare const ChannelDescList: {
|
|
|
9514
9560
|
} | undefined;
|
|
9515
9561
|
status?: number | undefined;
|
|
9516
9562
|
meeting_code?: string | undefined;
|
|
9563
|
+
count_mess_unread?: number | undefined;
|
|
9564
|
+
active?: number | undefined;
|
|
9517
9565
|
}[]>]: never; }) | undefined;
|
|
9518
9566
|
next_cursor?: string | undefined;
|
|
9519
9567
|
prev_cursor?: string | undefined;
|
|
@@ -12394,6 +12442,54 @@ export declare const SearchMessageResponse: {
|
|
|
12394
12442
|
total?: number | undefined;
|
|
12395
12443
|
} & { [K_5 in Exclude<keyof I_1, keyof SearchMessageResponse>]: never; }>(object: I_1): SearchMessageResponse;
|
|
12396
12444
|
};
|
|
12445
|
+
export declare const CreateWebhookRequest: {
|
|
12446
|
+
encode(message: CreateWebhookRequest, writer?: _m0.Writer): _m0.Writer;
|
|
12447
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): CreateWebhookRequest;
|
|
12448
|
+
fromJSON(object: any): CreateWebhookRequest;
|
|
12449
|
+
toJSON(message: CreateWebhookRequest): unknown;
|
|
12450
|
+
create<I extends {
|
|
12451
|
+
hook_name?: string | undefined;
|
|
12452
|
+
channel_id?: string | undefined;
|
|
12453
|
+
clan_id?: string | undefined;
|
|
12454
|
+
} & {
|
|
12455
|
+
hook_name?: string | undefined;
|
|
12456
|
+
channel_id?: string | undefined;
|
|
12457
|
+
clan_id?: string | undefined;
|
|
12458
|
+
} & { [K in Exclude<keyof I, keyof CreateWebhookRequest>]: never; }>(base?: I | undefined): CreateWebhookRequest;
|
|
12459
|
+
fromPartial<I_1 extends {
|
|
12460
|
+
hook_name?: string | undefined;
|
|
12461
|
+
channel_id?: string | undefined;
|
|
12462
|
+
clan_id?: string | undefined;
|
|
12463
|
+
} & {
|
|
12464
|
+
hook_name?: string | undefined;
|
|
12465
|
+
channel_id?: string | undefined;
|
|
12466
|
+
clan_id?: string | undefined;
|
|
12467
|
+
} & { [K_1 in Exclude<keyof I_1, keyof CreateWebhookRequest>]: never; }>(object: I_1): CreateWebhookRequest;
|
|
12468
|
+
};
|
|
12469
|
+
export declare const WebhookResponse: {
|
|
12470
|
+
encode(message: WebhookResponse, writer?: _m0.Writer): _m0.Writer;
|
|
12471
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): WebhookResponse;
|
|
12472
|
+
fromJSON(object: any): WebhookResponse;
|
|
12473
|
+
toJSON(message: WebhookResponse): unknown;
|
|
12474
|
+
create<I extends {
|
|
12475
|
+
hook_name?: string | undefined;
|
|
12476
|
+
channel_id?: string | undefined;
|
|
12477
|
+
hook_url?: string | undefined;
|
|
12478
|
+
} & {
|
|
12479
|
+
hook_name?: string | undefined;
|
|
12480
|
+
channel_id?: string | undefined;
|
|
12481
|
+
hook_url?: string | undefined;
|
|
12482
|
+
} & { [K in Exclude<keyof I, keyof WebhookResponse>]: never; }>(base?: I | undefined): WebhookResponse;
|
|
12483
|
+
fromPartial<I_1 extends {
|
|
12484
|
+
hook_name?: string | undefined;
|
|
12485
|
+
channel_id?: string | undefined;
|
|
12486
|
+
hook_url?: string | undefined;
|
|
12487
|
+
} & {
|
|
12488
|
+
hook_name?: string | undefined;
|
|
12489
|
+
channel_id?: string | undefined;
|
|
12490
|
+
hook_url?: string | undefined;
|
|
12491
|
+
} & { [K_1 in Exclude<keyof I_1, keyof WebhookResponse>]: never; }>(object: I_1): WebhookResponse;
|
|
12492
|
+
};
|
|
12397
12493
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
12398
12494
|
export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
12399
12495
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
@@ -679,9 +679,9 @@ export interface Stream {
|
|
|
679
679
|
/** Mode identifies the type of stream. */
|
|
680
680
|
mode: number;
|
|
681
681
|
/** Subject is the primary identifier, if any. */
|
|
682
|
-
|
|
682
|
+
channel_id: string;
|
|
683
683
|
/** Subcontext is a secondary identifier, if any. */
|
|
684
|
-
|
|
684
|
+
clan_id: string;
|
|
685
685
|
/** The label is an arbitrary identifying string, if the stream has one. */
|
|
686
686
|
label: string;
|
|
687
687
|
}
|
|
@@ -918,8 +918,8 @@ export declare const Envelope: {
|
|
|
918
918
|
stream_data?: {
|
|
919
919
|
stream?: {
|
|
920
920
|
mode?: number | undefined;
|
|
921
|
-
|
|
922
|
-
|
|
921
|
+
channel_id?: string | undefined;
|
|
922
|
+
clan_id?: string | undefined;
|
|
923
923
|
label?: string | undefined;
|
|
924
924
|
} | undefined;
|
|
925
925
|
sender?: {
|
|
@@ -935,8 +935,8 @@ export declare const Envelope: {
|
|
|
935
935
|
stream_presence_event?: {
|
|
936
936
|
stream?: {
|
|
937
937
|
mode?: number | undefined;
|
|
938
|
-
|
|
939
|
-
|
|
938
|
+
channel_id?: string | undefined;
|
|
939
|
+
clan_id?: string | undefined;
|
|
940
940
|
label?: string | undefined;
|
|
941
941
|
} | undefined;
|
|
942
942
|
joins?: {
|
|
@@ -1733,8 +1733,8 @@ export declare const Envelope: {
|
|
|
1733
1733
|
stream_data?: ({
|
|
1734
1734
|
stream?: {
|
|
1735
1735
|
mode?: number | undefined;
|
|
1736
|
-
|
|
1737
|
-
|
|
1736
|
+
channel_id?: string | undefined;
|
|
1737
|
+
clan_id?: string | undefined;
|
|
1738
1738
|
label?: string | undefined;
|
|
1739
1739
|
} | undefined;
|
|
1740
1740
|
sender?: {
|
|
@@ -1749,13 +1749,13 @@ export declare const Envelope: {
|
|
|
1749
1749
|
} & {
|
|
1750
1750
|
stream?: ({
|
|
1751
1751
|
mode?: number | undefined;
|
|
1752
|
-
|
|
1753
|
-
|
|
1752
|
+
channel_id?: string | undefined;
|
|
1753
|
+
clan_id?: string | undefined;
|
|
1754
1754
|
label?: string | undefined;
|
|
1755
1755
|
} & {
|
|
1756
1756
|
mode?: number | undefined;
|
|
1757
|
-
|
|
1758
|
-
|
|
1757
|
+
channel_id?: string | undefined;
|
|
1758
|
+
clan_id?: string | undefined;
|
|
1759
1759
|
label?: string | undefined;
|
|
1760
1760
|
} & { [K_42 in Exclude<keyof I["stream_data"]["stream"], keyof Stream>]: never; }) | undefined;
|
|
1761
1761
|
sender?: ({
|
|
@@ -1777,8 +1777,8 @@ export declare const Envelope: {
|
|
|
1777
1777
|
stream_presence_event?: ({
|
|
1778
1778
|
stream?: {
|
|
1779
1779
|
mode?: number | undefined;
|
|
1780
|
-
|
|
1781
|
-
|
|
1780
|
+
channel_id?: string | undefined;
|
|
1781
|
+
clan_id?: string | undefined;
|
|
1782
1782
|
label?: string | undefined;
|
|
1783
1783
|
} | undefined;
|
|
1784
1784
|
joins?: {
|
|
@@ -1798,13 +1798,13 @@ export declare const Envelope: {
|
|
|
1798
1798
|
} & {
|
|
1799
1799
|
stream?: ({
|
|
1800
1800
|
mode?: number | undefined;
|
|
1801
|
-
|
|
1802
|
-
|
|
1801
|
+
channel_id?: string | undefined;
|
|
1802
|
+
clan_id?: string | undefined;
|
|
1803
1803
|
label?: string | undefined;
|
|
1804
1804
|
} & {
|
|
1805
1805
|
mode?: number | undefined;
|
|
1806
|
-
|
|
1807
|
-
|
|
1806
|
+
channel_id?: string | undefined;
|
|
1807
|
+
clan_id?: string | undefined;
|
|
1808
1808
|
label?: string | undefined;
|
|
1809
1809
|
} & { [K_45 in Exclude<keyof I["stream_presence_event"]["stream"], keyof Stream>]: never; }) | undefined;
|
|
1810
1810
|
joins?: ({
|
|
@@ -2558,8 +2558,8 @@ export declare const Envelope: {
|
|
|
2558
2558
|
stream_data?: {
|
|
2559
2559
|
stream?: {
|
|
2560
2560
|
mode?: number | undefined;
|
|
2561
|
-
|
|
2562
|
-
|
|
2561
|
+
channel_id?: string | undefined;
|
|
2562
|
+
clan_id?: string | undefined;
|
|
2563
2563
|
label?: string | undefined;
|
|
2564
2564
|
} | undefined;
|
|
2565
2565
|
sender?: {
|
|
@@ -2575,8 +2575,8 @@ export declare const Envelope: {
|
|
|
2575
2575
|
stream_presence_event?: {
|
|
2576
2576
|
stream?: {
|
|
2577
2577
|
mode?: number | undefined;
|
|
2578
|
-
|
|
2579
|
-
|
|
2578
|
+
channel_id?: string | undefined;
|
|
2579
|
+
clan_id?: string | undefined;
|
|
2580
2580
|
label?: string | undefined;
|
|
2581
2581
|
} | undefined;
|
|
2582
2582
|
joins?: {
|
|
@@ -3373,8 +3373,8 @@ export declare const Envelope: {
|
|
|
3373
3373
|
stream_data?: ({
|
|
3374
3374
|
stream?: {
|
|
3375
3375
|
mode?: number | undefined;
|
|
3376
|
-
|
|
3377
|
-
|
|
3376
|
+
channel_id?: string | undefined;
|
|
3377
|
+
clan_id?: string | undefined;
|
|
3378
3378
|
label?: string | undefined;
|
|
3379
3379
|
} | undefined;
|
|
3380
3380
|
sender?: {
|
|
@@ -3389,13 +3389,13 @@ export declare const Envelope: {
|
|
|
3389
3389
|
} & {
|
|
3390
3390
|
stream?: ({
|
|
3391
3391
|
mode?: number | undefined;
|
|
3392
|
-
|
|
3393
|
-
|
|
3392
|
+
channel_id?: string | undefined;
|
|
3393
|
+
clan_id?: string | undefined;
|
|
3394
3394
|
label?: string | undefined;
|
|
3395
3395
|
} & {
|
|
3396
3396
|
mode?: number | undefined;
|
|
3397
|
-
|
|
3398
|
-
|
|
3397
|
+
channel_id?: string | undefined;
|
|
3398
|
+
clan_id?: string | undefined;
|
|
3399
3399
|
label?: string | undefined;
|
|
3400
3400
|
} & { [K_135 in Exclude<keyof I_1["stream_data"]["stream"], keyof Stream>]: never; }) | undefined;
|
|
3401
3401
|
sender?: ({
|
|
@@ -3417,8 +3417,8 @@ export declare const Envelope: {
|
|
|
3417
3417
|
stream_presence_event?: ({
|
|
3418
3418
|
stream?: {
|
|
3419
3419
|
mode?: number | undefined;
|
|
3420
|
-
|
|
3421
|
-
|
|
3420
|
+
channel_id?: string | undefined;
|
|
3421
|
+
clan_id?: string | undefined;
|
|
3422
3422
|
label?: string | undefined;
|
|
3423
3423
|
} | undefined;
|
|
3424
3424
|
joins?: {
|
|
@@ -3438,13 +3438,13 @@ export declare const Envelope: {
|
|
|
3438
3438
|
} & {
|
|
3439
3439
|
stream?: ({
|
|
3440
3440
|
mode?: number | undefined;
|
|
3441
|
-
|
|
3442
|
-
|
|
3441
|
+
channel_id?: string | undefined;
|
|
3442
|
+
clan_id?: string | undefined;
|
|
3443
3443
|
label?: string | undefined;
|
|
3444
3444
|
} & {
|
|
3445
3445
|
mode?: number | undefined;
|
|
3446
|
-
|
|
3447
|
-
|
|
3446
|
+
channel_id?: string | undefined;
|
|
3447
|
+
clan_id?: string | undefined;
|
|
3448
3448
|
label?: string | undefined;
|
|
3449
3449
|
} & { [K_138 in Exclude<keyof I_1["stream_presence_event"]["stream"], keyof Stream>]: never; }) | undefined;
|
|
3450
3450
|
joins?: ({
|
|
@@ -6653,24 +6653,24 @@ export declare const Stream: {
|
|
|
6653
6653
|
toJSON(message: Stream): unknown;
|
|
6654
6654
|
create<I extends {
|
|
6655
6655
|
mode?: number | undefined;
|
|
6656
|
-
|
|
6657
|
-
|
|
6656
|
+
channel_id?: string | undefined;
|
|
6657
|
+
clan_id?: string | undefined;
|
|
6658
6658
|
label?: string | undefined;
|
|
6659
6659
|
} & {
|
|
6660
6660
|
mode?: number | undefined;
|
|
6661
|
-
|
|
6662
|
-
|
|
6661
|
+
channel_id?: string | undefined;
|
|
6662
|
+
clan_id?: string | undefined;
|
|
6663
6663
|
label?: string | undefined;
|
|
6664
6664
|
} & { [K in Exclude<keyof I, keyof Stream>]: never; }>(base?: I | undefined): Stream;
|
|
6665
6665
|
fromPartial<I_1 extends {
|
|
6666
6666
|
mode?: number | undefined;
|
|
6667
|
-
|
|
6668
|
-
|
|
6667
|
+
channel_id?: string | undefined;
|
|
6668
|
+
clan_id?: string | undefined;
|
|
6669
6669
|
label?: string | undefined;
|
|
6670
6670
|
} & {
|
|
6671
6671
|
mode?: number | undefined;
|
|
6672
|
-
|
|
6673
|
-
|
|
6672
|
+
channel_id?: string | undefined;
|
|
6673
|
+
clan_id?: string | undefined;
|
|
6674
6674
|
label?: string | undefined;
|
|
6675
6675
|
} & { [K_1 in Exclude<keyof I_1, keyof Stream>]: never; }>(object: I_1): Stream;
|
|
6676
6676
|
};
|
|
@@ -6682,8 +6682,8 @@ export declare const StreamData: {
|
|
|
6682
6682
|
create<I extends {
|
|
6683
6683
|
stream?: {
|
|
6684
6684
|
mode?: number | undefined;
|
|
6685
|
-
|
|
6686
|
-
|
|
6685
|
+
channel_id?: string | undefined;
|
|
6686
|
+
clan_id?: string | undefined;
|
|
6687
6687
|
label?: string | undefined;
|
|
6688
6688
|
} | undefined;
|
|
6689
6689
|
sender?: {
|
|
@@ -6698,13 +6698,13 @@ export declare const StreamData: {
|
|
|
6698
6698
|
} & {
|
|
6699
6699
|
stream?: ({
|
|
6700
6700
|
mode?: number | undefined;
|
|
6701
|
-
|
|
6702
|
-
|
|
6701
|
+
channel_id?: string | undefined;
|
|
6702
|
+
clan_id?: string | undefined;
|
|
6703
6703
|
label?: string | undefined;
|
|
6704
6704
|
} & {
|
|
6705
6705
|
mode?: number | undefined;
|
|
6706
|
-
|
|
6707
|
-
|
|
6706
|
+
channel_id?: string | undefined;
|
|
6707
|
+
clan_id?: string | undefined;
|
|
6708
6708
|
label?: string | undefined;
|
|
6709
6709
|
} & { [K in Exclude<keyof I["stream"], keyof Stream>]: never; }) | undefined;
|
|
6710
6710
|
sender?: ({
|
|
@@ -6726,8 +6726,8 @@ export declare const StreamData: {
|
|
|
6726
6726
|
fromPartial<I_1 extends {
|
|
6727
6727
|
stream?: {
|
|
6728
6728
|
mode?: number | undefined;
|
|
6729
|
-
|
|
6730
|
-
|
|
6729
|
+
channel_id?: string | undefined;
|
|
6730
|
+
clan_id?: string | undefined;
|
|
6731
6731
|
label?: string | undefined;
|
|
6732
6732
|
} | undefined;
|
|
6733
6733
|
sender?: {
|
|
@@ -6742,13 +6742,13 @@ export declare const StreamData: {
|
|
|
6742
6742
|
} & {
|
|
6743
6743
|
stream?: ({
|
|
6744
6744
|
mode?: number | undefined;
|
|
6745
|
-
|
|
6746
|
-
|
|
6745
|
+
channel_id?: string | undefined;
|
|
6746
|
+
clan_id?: string | undefined;
|
|
6747
6747
|
label?: string | undefined;
|
|
6748
6748
|
} & {
|
|
6749
6749
|
mode?: number | undefined;
|
|
6750
|
-
|
|
6751
|
-
|
|
6750
|
+
channel_id?: string | undefined;
|
|
6751
|
+
clan_id?: string | undefined;
|
|
6752
6752
|
label?: string | undefined;
|
|
6753
6753
|
} & { [K_3 in Exclude<keyof I_1["stream"], keyof Stream>]: never; }) | undefined;
|
|
6754
6754
|
sender?: ({
|
|
@@ -6776,8 +6776,8 @@ export declare const StreamPresenceEvent: {
|
|
|
6776
6776
|
create<I extends {
|
|
6777
6777
|
stream?: {
|
|
6778
6778
|
mode?: number | undefined;
|
|
6779
|
-
|
|
6780
|
-
|
|
6779
|
+
channel_id?: string | undefined;
|
|
6780
|
+
clan_id?: string | undefined;
|
|
6781
6781
|
label?: string | undefined;
|
|
6782
6782
|
} | undefined;
|
|
6783
6783
|
joins?: {
|
|
@@ -6797,13 +6797,13 @@ export declare const StreamPresenceEvent: {
|
|
|
6797
6797
|
} & {
|
|
6798
6798
|
stream?: ({
|
|
6799
6799
|
mode?: number | undefined;
|
|
6800
|
-
|
|
6801
|
-
|
|
6800
|
+
channel_id?: string | undefined;
|
|
6801
|
+
clan_id?: string | undefined;
|
|
6802
6802
|
label?: string | undefined;
|
|
6803
6803
|
} & {
|
|
6804
6804
|
mode?: number | undefined;
|
|
6805
|
-
|
|
6806
|
-
|
|
6805
|
+
channel_id?: string | undefined;
|
|
6806
|
+
clan_id?: string | undefined;
|
|
6807
6807
|
label?: string | undefined;
|
|
6808
6808
|
} & { [K in Exclude<keyof I["stream"], keyof Stream>]: never; }) | undefined;
|
|
6809
6809
|
joins?: ({
|
|
@@ -6860,8 +6860,8 @@ export declare const StreamPresenceEvent: {
|
|
|
6860
6860
|
fromPartial<I_1 extends {
|
|
6861
6861
|
stream?: {
|
|
6862
6862
|
mode?: number | undefined;
|
|
6863
|
-
|
|
6864
|
-
|
|
6863
|
+
channel_id?: string | undefined;
|
|
6864
|
+
clan_id?: string | undefined;
|
|
6865
6865
|
label?: string | undefined;
|
|
6866
6866
|
} | undefined;
|
|
6867
6867
|
joins?: {
|
|
@@ -6881,13 +6881,13 @@ export declare const StreamPresenceEvent: {
|
|
|
6881
6881
|
} & {
|
|
6882
6882
|
stream?: ({
|
|
6883
6883
|
mode?: number | undefined;
|
|
6884
|
-
|
|
6885
|
-
|
|
6884
|
+
channel_id?: string | undefined;
|
|
6885
|
+
clan_id?: string | undefined;
|
|
6886
6886
|
label?: string | undefined;
|
|
6887
6887
|
} & {
|
|
6888
6888
|
mode?: number | undefined;
|
|
6889
|
-
|
|
6890
|
-
|
|
6889
|
+
channel_id?: string | undefined;
|
|
6890
|
+
clan_id?: string | undefined;
|
|
6891
6891
|
label?: string | undefined;
|
|
6892
6892
|
} & { [K_6 in Exclude<keyof I_1["stream"], keyof Stream>]: never; }) | undefined;
|
|
6893
6893
|
joins?: ({
|
|
@@ -6869,18 +6869,18 @@ var StatusUpdate = {
|
|
|
6869
6869
|
}
|
|
6870
6870
|
};
|
|
6871
6871
|
function createBaseStream() {
|
|
6872
|
-
return { mode: 0,
|
|
6872
|
+
return { mode: 0, channel_id: "", clan_id: "", label: "" };
|
|
6873
6873
|
}
|
|
6874
6874
|
var Stream = {
|
|
6875
6875
|
encode(message, writer = import_minimal4.default.Writer.create()) {
|
|
6876
6876
|
if (message.mode !== 0) {
|
|
6877
6877
|
writer.uint32(8).int32(message.mode);
|
|
6878
6878
|
}
|
|
6879
|
-
if (message.
|
|
6880
|
-
writer.uint32(18).string(message.
|
|
6879
|
+
if (message.channel_id !== "") {
|
|
6880
|
+
writer.uint32(18).string(message.channel_id);
|
|
6881
6881
|
}
|
|
6882
|
-
if (message.
|
|
6883
|
-
writer.uint32(26).string(message.
|
|
6882
|
+
if (message.clan_id !== "") {
|
|
6883
|
+
writer.uint32(26).string(message.clan_id);
|
|
6884
6884
|
}
|
|
6885
6885
|
if (message.label !== "") {
|
|
6886
6886
|
writer.uint32(34).string(message.label);
|
|
@@ -6898,10 +6898,10 @@ var Stream = {
|
|
|
6898
6898
|
message.mode = reader.int32();
|
|
6899
6899
|
break;
|
|
6900
6900
|
case 2:
|
|
6901
|
-
message.
|
|
6901
|
+
message.channel_id = reader.string();
|
|
6902
6902
|
break;
|
|
6903
6903
|
case 3:
|
|
6904
|
-
message.
|
|
6904
|
+
message.clan_id = reader.string();
|
|
6905
6905
|
break;
|
|
6906
6906
|
case 4:
|
|
6907
6907
|
message.label = reader.string();
|
|
@@ -6916,16 +6916,16 @@ var Stream = {
|
|
|
6916
6916
|
fromJSON(object) {
|
|
6917
6917
|
return {
|
|
6918
6918
|
mode: isSet4(object.mode) ? Number(object.mode) : 0,
|
|
6919
|
-
|
|
6920
|
-
|
|
6919
|
+
channel_id: isSet4(object.channel_id) ? String(object.channel_id) : "",
|
|
6920
|
+
clan_id: isSet4(object.clan_id) ? String(object.clan_id) : "",
|
|
6921
6921
|
label: isSet4(object.label) ? String(object.label) : ""
|
|
6922
6922
|
};
|
|
6923
6923
|
},
|
|
6924
6924
|
toJSON(message) {
|
|
6925
6925
|
const obj = {};
|
|
6926
6926
|
message.mode !== void 0 && (obj.mode = Math.round(message.mode));
|
|
6927
|
-
message.
|
|
6928
|
-
message.
|
|
6927
|
+
message.channel_id !== void 0 && (obj.channel_id = message.channel_id);
|
|
6928
|
+
message.clan_id !== void 0 && (obj.clan_id = message.clan_id);
|
|
6929
6929
|
message.label !== void 0 && (obj.label = message.label);
|
|
6930
6930
|
return obj;
|
|
6931
6931
|
},
|
|
@@ -6936,8 +6936,8 @@ var Stream = {
|
|
|
6936
6936
|
var _a, _b, _c, _d;
|
|
6937
6937
|
const message = createBaseStream();
|
|
6938
6938
|
message.mode = (_a = object.mode) != null ? _a : 0;
|
|
6939
|
-
message.
|
|
6940
|
-
message.
|
|
6939
|
+
message.channel_id = (_b = object.channel_id) != null ? _b : "";
|
|
6940
|
+
message.clan_id = (_c = object.clan_id) != null ? _c : "";
|
|
6941
6941
|
message.label = (_d = object.label) != null ? _d : "";
|
|
6942
6942
|
return message;
|
|
6943
6943
|
}
|
|
@@ -6856,18 +6856,18 @@ var StatusUpdate = {
|
|
|
6856
6856
|
}
|
|
6857
6857
|
};
|
|
6858
6858
|
function createBaseStream() {
|
|
6859
|
-
return { mode: 0,
|
|
6859
|
+
return { mode: 0, channel_id: "", clan_id: "", label: "" };
|
|
6860
6860
|
}
|
|
6861
6861
|
var Stream = {
|
|
6862
6862
|
encode(message, writer = import_minimal4.default.Writer.create()) {
|
|
6863
6863
|
if (message.mode !== 0) {
|
|
6864
6864
|
writer.uint32(8).int32(message.mode);
|
|
6865
6865
|
}
|
|
6866
|
-
if (message.
|
|
6867
|
-
writer.uint32(18).string(message.
|
|
6866
|
+
if (message.channel_id !== "") {
|
|
6867
|
+
writer.uint32(18).string(message.channel_id);
|
|
6868
6868
|
}
|
|
6869
|
-
if (message.
|
|
6870
|
-
writer.uint32(26).string(message.
|
|
6869
|
+
if (message.clan_id !== "") {
|
|
6870
|
+
writer.uint32(26).string(message.clan_id);
|
|
6871
6871
|
}
|
|
6872
6872
|
if (message.label !== "") {
|
|
6873
6873
|
writer.uint32(34).string(message.label);
|
|
@@ -6885,10 +6885,10 @@ var Stream = {
|
|
|
6885
6885
|
message.mode = reader.int32();
|
|
6886
6886
|
break;
|
|
6887
6887
|
case 2:
|
|
6888
|
-
message.
|
|
6888
|
+
message.channel_id = reader.string();
|
|
6889
6889
|
break;
|
|
6890
6890
|
case 3:
|
|
6891
|
-
message.
|
|
6891
|
+
message.clan_id = reader.string();
|
|
6892
6892
|
break;
|
|
6893
6893
|
case 4:
|
|
6894
6894
|
message.label = reader.string();
|
|
@@ -6903,16 +6903,16 @@ var Stream = {
|
|
|
6903
6903
|
fromJSON(object) {
|
|
6904
6904
|
return {
|
|
6905
6905
|
mode: isSet4(object.mode) ? Number(object.mode) : 0,
|
|
6906
|
-
|
|
6907
|
-
|
|
6906
|
+
channel_id: isSet4(object.channel_id) ? String(object.channel_id) : "",
|
|
6907
|
+
clan_id: isSet4(object.clan_id) ? String(object.clan_id) : "",
|
|
6908
6908
|
label: isSet4(object.label) ? String(object.label) : ""
|
|
6909
6909
|
};
|
|
6910
6910
|
},
|
|
6911
6911
|
toJSON(message) {
|
|
6912
6912
|
const obj = {};
|
|
6913
6913
|
message.mode !== void 0 && (obj.mode = Math.round(message.mode));
|
|
6914
|
-
message.
|
|
6915
|
-
message.
|
|
6914
|
+
message.channel_id !== void 0 && (obj.channel_id = message.channel_id);
|
|
6915
|
+
message.clan_id !== void 0 && (obj.clan_id = message.clan_id);
|
|
6916
6916
|
message.label !== void 0 && (obj.label = message.label);
|
|
6917
6917
|
return obj;
|
|
6918
6918
|
},
|
|
@@ -6923,8 +6923,8 @@ var Stream = {
|
|
|
6923
6923
|
var _a, _b, _c, _d;
|
|
6924
6924
|
const message = createBaseStream();
|
|
6925
6925
|
message.mode = (_a = object.mode) != null ? _a : 0;
|
|
6926
|
-
message.
|
|
6927
|
-
message.
|
|
6926
|
+
message.channel_id = (_b = object.channel_id) != null ? _b : "";
|
|
6927
|
+
message.clan_id = (_c = object.clan_id) != null ? _c : "";
|
|
6928
6928
|
message.label = (_d = object.label) != null ? _d : "";
|
|
6929
6929
|
return message;
|
|
6930
6930
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mezon-js-protobuf",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.36",
|
|
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
|
@@ -901,9 +901,9 @@ export interface Stream {
|
|
|
901
901
|
/** Mode identifies the type of stream. */
|
|
902
902
|
mode: number;
|
|
903
903
|
/** Subject is the primary identifier, if any. */
|
|
904
|
-
|
|
904
|
+
channel_id: string;
|
|
905
905
|
/** Subcontext is a secondary identifier, if any. */
|
|
906
|
-
|
|
906
|
+
clan_id: string;
|
|
907
907
|
/** The label is an arbitrary identifying string, if the stream has one. */
|
|
908
908
|
label: string;
|
|
909
909
|
}
|
|
@@ -5983,7 +5983,7 @@ export const StatusUpdate = {
|
|
|
5983
5983
|
};
|
|
5984
5984
|
|
|
5985
5985
|
function createBaseStream(): Stream {
|
|
5986
|
-
return { mode: 0,
|
|
5986
|
+
return { mode: 0, channel_id: "", clan_id: "", label: "" };
|
|
5987
5987
|
}
|
|
5988
5988
|
|
|
5989
5989
|
export const Stream = {
|
|
@@ -5991,11 +5991,11 @@ export const Stream = {
|
|
|
5991
5991
|
if (message.mode !== 0) {
|
|
5992
5992
|
writer.uint32(8).int32(message.mode);
|
|
5993
5993
|
}
|
|
5994
|
-
if (message.
|
|
5995
|
-
writer.uint32(18).string(message.
|
|
5994
|
+
if (message.channel_id !== "") {
|
|
5995
|
+
writer.uint32(18).string(message.channel_id);
|
|
5996
5996
|
}
|
|
5997
|
-
if (message.
|
|
5998
|
-
writer.uint32(26).string(message.
|
|
5997
|
+
if (message.clan_id !== "") {
|
|
5998
|
+
writer.uint32(26).string(message.clan_id);
|
|
5999
5999
|
}
|
|
6000
6000
|
if (message.label !== "") {
|
|
6001
6001
|
writer.uint32(34).string(message.label);
|
|
@@ -6014,10 +6014,10 @@ export const Stream = {
|
|
|
6014
6014
|
message.mode = reader.int32();
|
|
6015
6015
|
break;
|
|
6016
6016
|
case 2:
|
|
6017
|
-
message.
|
|
6017
|
+
message.channel_id = reader.string();
|
|
6018
6018
|
break;
|
|
6019
6019
|
case 3:
|
|
6020
|
-
message.
|
|
6020
|
+
message.clan_id = reader.string();
|
|
6021
6021
|
break;
|
|
6022
6022
|
case 4:
|
|
6023
6023
|
message.label = reader.string();
|
|
@@ -6033,8 +6033,8 @@ export const Stream = {
|
|
|
6033
6033
|
fromJSON(object: any): Stream {
|
|
6034
6034
|
return {
|
|
6035
6035
|
mode: isSet(object.mode) ? Number(object.mode) : 0,
|
|
6036
|
-
|
|
6037
|
-
|
|
6036
|
+
channel_id: isSet(object.channel_id) ? String(object.channel_id) : "",
|
|
6037
|
+
clan_id: isSet(object.clan_id) ? String(object.clan_id) : "",
|
|
6038
6038
|
label: isSet(object.label) ? String(object.label) : "",
|
|
6039
6039
|
};
|
|
6040
6040
|
},
|
|
@@ -6042,8 +6042,8 @@ export const Stream = {
|
|
|
6042
6042
|
toJSON(message: Stream): unknown {
|
|
6043
6043
|
const obj: any = {};
|
|
6044
6044
|
message.mode !== undefined && (obj.mode = Math.round(message.mode));
|
|
6045
|
-
message.
|
|
6046
|
-
message.
|
|
6045
|
+
message.channel_id !== undefined && (obj.channel_id = message.channel_id);
|
|
6046
|
+
message.clan_id !== undefined && (obj.clan_id = message.clan_id);
|
|
6047
6047
|
message.label !== undefined && (obj.label = message.label);
|
|
6048
6048
|
return obj;
|
|
6049
6049
|
},
|
|
@@ -6055,8 +6055,8 @@ export const Stream = {
|
|
|
6055
6055
|
fromPartial<I extends Exact<DeepPartial<Stream>, I>>(object: I): Stream {
|
|
6056
6056
|
const message = createBaseStream();
|
|
6057
6057
|
message.mode = object.mode ?? 0;
|
|
6058
|
-
message.
|
|
6059
|
-
message.
|
|
6058
|
+
message.channel_id = object.channel_id ?? "";
|
|
6059
|
+
message.clan_id = object.clan_id ?? "";
|
|
6060
6060
|
message.label = object.label ?? "";
|
|
6061
6061
|
return message;
|
|
6062
6062
|
},
|