mezon-js-protobuf 1.6.87 → 1.6.89
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 +59 -103
- package/dist/mezon-js-protobuf/api/api.d.ts +18 -579
- package/package.json +1 -1
- package/rtapi/realtime.ts +11327 -11327
package/api/api.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
2
|
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v1.181.
|
|
4
|
-
// protoc
|
|
3
|
+
// protoc-gen-ts_proto v1.181.1
|
|
4
|
+
// protoc v5.27.2
|
|
5
5
|
// source: api/api.proto
|
|
6
6
|
|
|
7
7
|
/* eslint-disable */
|
|
@@ -1922,6 +1922,8 @@ export interface ChannelDescList {
|
|
|
1922
1922
|
prev_cursor: string;
|
|
1923
1923
|
/** Cacheable cursor to list newer channel description. Durable and designed to be stored, unlike next/prev cursors. */
|
|
1924
1924
|
cacheable_cursor: string;
|
|
1925
|
+
/** Page thread */
|
|
1926
|
+
page: number;
|
|
1925
1927
|
}
|
|
1926
1928
|
|
|
1927
1929
|
export interface ListThreadRequest {
|
|
@@ -3320,7 +3322,11 @@ export interface ChannelCanvasListRequest {
|
|
|
3320
3322
|
| number
|
|
3321
3323
|
| undefined;
|
|
3322
3324
|
/** page */
|
|
3323
|
-
page:
|
|
3325
|
+
page:
|
|
3326
|
+
| number
|
|
3327
|
+
| undefined;
|
|
3328
|
+
/** */
|
|
3329
|
+
cursor: string;
|
|
3324
3330
|
}
|
|
3325
3331
|
|
|
3326
3332
|
export interface ChannelCanvasItem {
|
|
@@ -3345,6 +3351,8 @@ export interface ChannelCanvasListResponse {
|
|
|
3345
3351
|
channel_id: string;
|
|
3346
3352
|
/** channel doc item */
|
|
3347
3353
|
channel_canvases: ChannelCanvasItem[];
|
|
3354
|
+
/** */
|
|
3355
|
+
count: number;
|
|
3348
3356
|
}
|
|
3349
3357
|
|
|
3350
3358
|
export interface ChannelCanvasDetailRequest {
|
|
@@ -3858,12 +3866,6 @@ export interface DeleteSdTopicRequest {
|
|
|
3858
3866
|
clan_id: string;
|
|
3859
3867
|
}
|
|
3860
3868
|
|
|
3861
|
-
export interface ListThreadDecs {
|
|
3862
|
-
list_thread: ChannelDescription[];
|
|
3863
|
-
page: number;
|
|
3864
|
-
limit: number;
|
|
3865
|
-
}
|
|
3866
|
-
|
|
3867
3869
|
function createBaseAccount(): Account {
|
|
3868
3870
|
return {
|
|
3869
3871
|
user: undefined,
|
|
@@ -17369,7 +17371,7 @@ export const ChannelDescription = {
|
|
|
17369
17371
|
};
|
|
17370
17372
|
|
|
17371
17373
|
function createBaseChannelDescList(): ChannelDescList {
|
|
17372
|
-
return { channeldesc: [], next_cursor: "", prev_cursor: "", cacheable_cursor: "" };
|
|
17374
|
+
return { channeldesc: [], next_cursor: "", prev_cursor: "", cacheable_cursor: "", page: 0 };
|
|
17373
17375
|
}
|
|
17374
17376
|
|
|
17375
17377
|
export const ChannelDescList = {
|
|
@@ -17386,6 +17388,9 @@ export const ChannelDescList = {
|
|
|
17386
17388
|
if (message.cacheable_cursor !== "") {
|
|
17387
17389
|
writer.uint32(34).string(message.cacheable_cursor);
|
|
17388
17390
|
}
|
|
17391
|
+
if (message.page !== 0) {
|
|
17392
|
+
writer.uint32(40).int32(message.page);
|
|
17393
|
+
}
|
|
17389
17394
|
return writer;
|
|
17390
17395
|
},
|
|
17391
17396
|
|
|
@@ -17424,6 +17429,13 @@ export const ChannelDescList = {
|
|
|
17424
17429
|
|
|
17425
17430
|
message.cacheable_cursor = reader.string();
|
|
17426
17431
|
continue;
|
|
17432
|
+
case 5:
|
|
17433
|
+
if (tag !== 40) {
|
|
17434
|
+
break;
|
|
17435
|
+
}
|
|
17436
|
+
|
|
17437
|
+
message.page = reader.int32();
|
|
17438
|
+
continue;
|
|
17427
17439
|
}
|
|
17428
17440
|
if ((tag & 7) === 4 || tag === 0) {
|
|
17429
17441
|
break;
|
|
@@ -17441,6 +17453,7 @@ export const ChannelDescList = {
|
|
|
17441
17453
|
next_cursor: isSet(object.next_cursor) ? globalThis.String(object.next_cursor) : "",
|
|
17442
17454
|
prev_cursor: isSet(object.prev_cursor) ? globalThis.String(object.prev_cursor) : "",
|
|
17443
17455
|
cacheable_cursor: isSet(object.cacheable_cursor) ? globalThis.String(object.cacheable_cursor) : "",
|
|
17456
|
+
page: isSet(object.page) ? globalThis.Number(object.page) : 0,
|
|
17444
17457
|
};
|
|
17445
17458
|
},
|
|
17446
17459
|
|
|
@@ -17458,6 +17471,9 @@ export const ChannelDescList = {
|
|
|
17458
17471
|
if (message.cacheable_cursor !== "") {
|
|
17459
17472
|
obj.cacheable_cursor = message.cacheable_cursor;
|
|
17460
17473
|
}
|
|
17474
|
+
if (message.page !== 0) {
|
|
17475
|
+
obj.page = Math.round(message.page);
|
|
17476
|
+
}
|
|
17461
17477
|
return obj;
|
|
17462
17478
|
},
|
|
17463
17479
|
|
|
@@ -17470,6 +17486,7 @@ export const ChannelDescList = {
|
|
|
17470
17486
|
message.next_cursor = object.next_cursor ?? "";
|
|
17471
17487
|
message.prev_cursor = object.prev_cursor ?? "";
|
|
17472
17488
|
message.cacheable_cursor = object.cacheable_cursor ?? "";
|
|
17489
|
+
message.page = object.page ?? 0;
|
|
17473
17490
|
return message;
|
|
17474
17491
|
},
|
|
17475
17492
|
};
|
|
@@ -31495,7 +31512,7 @@ export const DeleteChannelCanvasRequest = {
|
|
|
31495
31512
|
};
|
|
31496
31513
|
|
|
31497
31514
|
function createBaseChannelCanvasListRequest(): ChannelCanvasListRequest {
|
|
31498
|
-
return { clan_id: "", channel_id: "", limit: undefined, page: undefined };
|
|
31515
|
+
return { clan_id: "", channel_id: "", limit: undefined, page: undefined, cursor: "" };
|
|
31499
31516
|
}
|
|
31500
31517
|
|
|
31501
31518
|
export const ChannelCanvasListRequest = {
|
|
@@ -31512,6 +31529,9 @@ export const ChannelCanvasListRequest = {
|
|
|
31512
31529
|
if (message.page !== undefined) {
|
|
31513
31530
|
Int32Value.encode({ value: message.page! }, writer.uint32(34).fork()).ldelim();
|
|
31514
31531
|
}
|
|
31532
|
+
if (message.cursor !== "") {
|
|
31533
|
+
writer.uint32(42).string(message.cursor);
|
|
31534
|
+
}
|
|
31515
31535
|
return writer;
|
|
31516
31536
|
},
|
|
31517
31537
|
|
|
@@ -31550,6 +31570,13 @@ export const ChannelCanvasListRequest = {
|
|
|
31550
31570
|
|
|
31551
31571
|
message.page = Int32Value.decode(reader, reader.uint32()).value;
|
|
31552
31572
|
continue;
|
|
31573
|
+
case 5:
|
|
31574
|
+
if (tag !== 42) {
|
|
31575
|
+
break;
|
|
31576
|
+
}
|
|
31577
|
+
|
|
31578
|
+
message.cursor = reader.string();
|
|
31579
|
+
continue;
|
|
31553
31580
|
}
|
|
31554
31581
|
if ((tag & 7) === 4 || tag === 0) {
|
|
31555
31582
|
break;
|
|
@@ -31565,6 +31592,7 @@ export const ChannelCanvasListRequest = {
|
|
|
31565
31592
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
31566
31593
|
limit: isSet(object.limit) ? Number(object.limit) : undefined,
|
|
31567
31594
|
page: isSet(object.page) ? Number(object.page) : undefined,
|
|
31595
|
+
cursor: isSet(object.cursor) ? globalThis.String(object.cursor) : "",
|
|
31568
31596
|
};
|
|
31569
31597
|
},
|
|
31570
31598
|
|
|
@@ -31582,6 +31610,9 @@ export const ChannelCanvasListRequest = {
|
|
|
31582
31610
|
if (message.page !== undefined) {
|
|
31583
31611
|
obj.page = message.page;
|
|
31584
31612
|
}
|
|
31613
|
+
if (message.cursor !== "") {
|
|
31614
|
+
obj.cursor = message.cursor;
|
|
31615
|
+
}
|
|
31585
31616
|
return obj;
|
|
31586
31617
|
},
|
|
31587
31618
|
|
|
@@ -31594,6 +31625,7 @@ export const ChannelCanvasListRequest = {
|
|
|
31594
31625
|
message.channel_id = object.channel_id ?? "";
|
|
31595
31626
|
message.limit = object.limit ?? undefined;
|
|
31596
31627
|
message.page = object.page ?? undefined;
|
|
31628
|
+
message.cursor = object.cursor ?? "";
|
|
31597
31629
|
return message;
|
|
31598
31630
|
},
|
|
31599
31631
|
};
|
|
@@ -31733,7 +31765,7 @@ export const ChannelCanvasItem = {
|
|
|
31733
31765
|
};
|
|
31734
31766
|
|
|
31735
31767
|
function createBaseChannelCanvasListResponse(): ChannelCanvasListResponse {
|
|
31736
|
-
return { clan_id: "", channel_id: "", channel_canvases: [] };
|
|
31768
|
+
return { clan_id: "", channel_id: "", channel_canvases: [], count: 0 };
|
|
31737
31769
|
}
|
|
31738
31770
|
|
|
31739
31771
|
export const ChannelCanvasListResponse = {
|
|
@@ -31747,6 +31779,9 @@ export const ChannelCanvasListResponse = {
|
|
|
31747
31779
|
for (const v of message.channel_canvases) {
|
|
31748
31780
|
ChannelCanvasItem.encode(v!, writer.uint32(26).fork()).ldelim();
|
|
31749
31781
|
}
|
|
31782
|
+
if (message.count !== 0) {
|
|
31783
|
+
writer.uint32(32).int64(message.count);
|
|
31784
|
+
}
|
|
31750
31785
|
return writer;
|
|
31751
31786
|
},
|
|
31752
31787
|
|
|
@@ -31778,6 +31813,13 @@ export const ChannelCanvasListResponse = {
|
|
|
31778
31813
|
|
|
31779
31814
|
message.channel_canvases.push(ChannelCanvasItem.decode(reader, reader.uint32()));
|
|
31780
31815
|
continue;
|
|
31816
|
+
case 4:
|
|
31817
|
+
if (tag !== 32) {
|
|
31818
|
+
break;
|
|
31819
|
+
}
|
|
31820
|
+
|
|
31821
|
+
message.count = longToNumber(reader.int64() as Long);
|
|
31822
|
+
continue;
|
|
31781
31823
|
}
|
|
31782
31824
|
if ((tag & 7) === 4 || tag === 0) {
|
|
31783
31825
|
break;
|
|
@@ -31794,6 +31836,7 @@ export const ChannelCanvasListResponse = {
|
|
|
31794
31836
|
channel_canvases: globalThis.Array.isArray(object?.channel_canvases)
|
|
31795
31837
|
? object.channel_canvases.map((e: any) => ChannelCanvasItem.fromJSON(e))
|
|
31796
31838
|
: [],
|
|
31839
|
+
count: isSet(object.count) ? globalThis.Number(object.count) : 0,
|
|
31797
31840
|
};
|
|
31798
31841
|
},
|
|
31799
31842
|
|
|
@@ -31808,6 +31851,9 @@ export const ChannelCanvasListResponse = {
|
|
|
31808
31851
|
if (message.channel_canvases?.length) {
|
|
31809
31852
|
obj.channel_canvases = message.channel_canvases.map((e) => ChannelCanvasItem.toJSON(e));
|
|
31810
31853
|
}
|
|
31854
|
+
if (message.count !== 0) {
|
|
31855
|
+
obj.count = Math.round(message.count);
|
|
31856
|
+
}
|
|
31811
31857
|
return obj;
|
|
31812
31858
|
},
|
|
31813
31859
|
|
|
@@ -31819,6 +31865,7 @@ export const ChannelCanvasListResponse = {
|
|
|
31819
31865
|
message.clan_id = object.clan_id ?? "";
|
|
31820
31866
|
message.channel_id = object.channel_id ?? "";
|
|
31821
31867
|
message.channel_canvases = object.channel_canvases?.map((e) => ChannelCanvasItem.fromPartial(e)) || [];
|
|
31868
|
+
message.count = object.count ?? 0;
|
|
31822
31869
|
return message;
|
|
31823
31870
|
},
|
|
31824
31871
|
};
|
|
@@ -37528,97 +37575,6 @@ export const DeleteSdTopicRequest = {
|
|
|
37528
37575
|
},
|
|
37529
37576
|
};
|
|
37530
37577
|
|
|
37531
|
-
function createBaseListThreadDecs(): ListThreadDecs {
|
|
37532
|
-
return { list_thread: [], page: 0, limit: 0 };
|
|
37533
|
-
}
|
|
37534
|
-
|
|
37535
|
-
export const ListThreadDecs = {
|
|
37536
|
-
encode(message: ListThreadDecs, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
37537
|
-
for (const v of message.list_thread) {
|
|
37538
|
-
ChannelDescription.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
37539
|
-
}
|
|
37540
|
-
if (message.page !== 0) {
|
|
37541
|
-
writer.uint32(16).int32(message.page);
|
|
37542
|
-
}
|
|
37543
|
-
if (message.limit !== 0) {
|
|
37544
|
-
writer.uint32(24).int32(message.limit);
|
|
37545
|
-
}
|
|
37546
|
-
return writer;
|
|
37547
|
-
},
|
|
37548
|
-
|
|
37549
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): ListThreadDecs {
|
|
37550
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
37551
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
37552
|
-
const message = createBaseListThreadDecs();
|
|
37553
|
-
while (reader.pos < end) {
|
|
37554
|
-
const tag = reader.uint32();
|
|
37555
|
-
switch (tag >>> 3) {
|
|
37556
|
-
case 1:
|
|
37557
|
-
if (tag !== 10) {
|
|
37558
|
-
break;
|
|
37559
|
-
}
|
|
37560
|
-
|
|
37561
|
-
message.list_thread.push(ChannelDescription.decode(reader, reader.uint32()));
|
|
37562
|
-
continue;
|
|
37563
|
-
case 2:
|
|
37564
|
-
if (tag !== 16) {
|
|
37565
|
-
break;
|
|
37566
|
-
}
|
|
37567
|
-
|
|
37568
|
-
message.page = reader.int32();
|
|
37569
|
-
continue;
|
|
37570
|
-
case 3:
|
|
37571
|
-
if (tag !== 24) {
|
|
37572
|
-
break;
|
|
37573
|
-
}
|
|
37574
|
-
|
|
37575
|
-
message.limit = reader.int32();
|
|
37576
|
-
continue;
|
|
37577
|
-
}
|
|
37578
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
37579
|
-
break;
|
|
37580
|
-
}
|
|
37581
|
-
reader.skipType(tag & 7);
|
|
37582
|
-
}
|
|
37583
|
-
return message;
|
|
37584
|
-
},
|
|
37585
|
-
|
|
37586
|
-
fromJSON(object: any): ListThreadDecs {
|
|
37587
|
-
return {
|
|
37588
|
-
list_thread: globalThis.Array.isArray(object?.list_thread)
|
|
37589
|
-
? object.list_thread.map((e: any) => ChannelDescription.fromJSON(e))
|
|
37590
|
-
: [],
|
|
37591
|
-
page: isSet(object.page) ? globalThis.Number(object.page) : 0,
|
|
37592
|
-
limit: isSet(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
37593
|
-
};
|
|
37594
|
-
},
|
|
37595
|
-
|
|
37596
|
-
toJSON(message: ListThreadDecs): unknown {
|
|
37597
|
-
const obj: any = {};
|
|
37598
|
-
if (message.list_thread?.length) {
|
|
37599
|
-
obj.list_thread = message.list_thread.map((e) => ChannelDescription.toJSON(e));
|
|
37600
|
-
}
|
|
37601
|
-
if (message.page !== 0) {
|
|
37602
|
-
obj.page = Math.round(message.page);
|
|
37603
|
-
}
|
|
37604
|
-
if (message.limit !== 0) {
|
|
37605
|
-
obj.limit = Math.round(message.limit);
|
|
37606
|
-
}
|
|
37607
|
-
return obj;
|
|
37608
|
-
},
|
|
37609
|
-
|
|
37610
|
-
create<I extends Exact<DeepPartial<ListThreadDecs>, I>>(base?: I): ListThreadDecs {
|
|
37611
|
-
return ListThreadDecs.fromPartial(base ?? ({} as any));
|
|
37612
|
-
},
|
|
37613
|
-
fromPartial<I extends Exact<DeepPartial<ListThreadDecs>, I>>(object: I): ListThreadDecs {
|
|
37614
|
-
const message = createBaseListThreadDecs();
|
|
37615
|
-
message.list_thread = object.list_thread?.map((e) => ChannelDescription.fromPartial(e)) || [];
|
|
37616
|
-
message.page = object.page ?? 0;
|
|
37617
|
-
message.limit = object.limit ?? 0;
|
|
37618
|
-
return message;
|
|
37619
|
-
},
|
|
37620
|
-
};
|
|
37621
|
-
|
|
37622
37578
|
function bytesFromBase64(b64: string): Uint8Array {
|
|
37623
37579
|
if ((globalThis as any).Buffer) {
|
|
37624
37580
|
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|