mezon-js-protobuf 1.5.1 → 1.5.3
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 +411 -378
- package/dist/mezon-js-protobuf/api/api.d.ts +242 -274
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +563 -67
- package/dist/mezon-js-protobuf.cjs.js +326 -2
- package/dist/mezon-js-protobuf.esm.mjs +326 -2
- package/package.json +1 -1
- package/rtapi/realtime.ts +401 -1
package/api/api.ts
CHANGED
|
@@ -2125,6 +2125,15 @@ export interface Permission {
|
|
|
2125
2125
|
slug: string;
|
|
2126
2126
|
description: string;
|
|
2127
2127
|
active: number;
|
|
2128
|
+
scope: number;
|
|
2129
|
+
}
|
|
2130
|
+
|
|
2131
|
+
/** Permission role channel */
|
|
2132
|
+
export interface PermissionRoleChannel {
|
|
2133
|
+
/** Permission id */
|
|
2134
|
+
permission_id: string;
|
|
2135
|
+
/** active */
|
|
2136
|
+
active: boolean;
|
|
2128
2137
|
}
|
|
2129
2138
|
|
|
2130
2139
|
/** Notification setting record */
|
|
@@ -2280,6 +2289,12 @@ export interface PermissionList {
|
|
|
2280
2289
|
permissions: Permission[];
|
|
2281
2290
|
}
|
|
2282
2291
|
|
|
2292
|
+
/** A list of permission role channel. */
|
|
2293
|
+
export interface PermissionRoleChannelList {
|
|
2294
|
+
/** A list of permission. */
|
|
2295
|
+
permission_role_channel: PermissionRoleChannel[];
|
|
2296
|
+
}
|
|
2297
|
+
|
|
2283
2298
|
/** List (and optionally filter) permissions. */
|
|
2284
2299
|
export interface ListPermissionsRequest {
|
|
2285
2300
|
role_id: string;
|
|
@@ -2437,6 +2452,22 @@ export interface UpdateRoleRequest {
|
|
|
2437
2452
|
remove_permission_ids: string[];
|
|
2438
2453
|
}
|
|
2439
2454
|
|
|
2455
|
+
export interface UpdateRoleChannelRequest {
|
|
2456
|
+
/** The ID of the role to update. */
|
|
2457
|
+
role_id: string;
|
|
2458
|
+
/** The permissions to add. */
|
|
2459
|
+
permissionUpdate: PermissionUpdate[];
|
|
2460
|
+
/** The channel_id */
|
|
2461
|
+
channel_id: string;
|
|
2462
|
+
}
|
|
2463
|
+
|
|
2464
|
+
export interface PermissionUpdate {
|
|
2465
|
+
/** permission_id */
|
|
2466
|
+
permission_id: string;
|
|
2467
|
+
/** type set permission */
|
|
2468
|
+
type: number;
|
|
2469
|
+
}
|
|
2470
|
+
|
|
2440
2471
|
export interface UploadAttachmentRequest {
|
|
2441
2472
|
/** The name of file that need to upload */
|
|
2442
2473
|
filename: string;
|
|
@@ -2463,6 +2494,13 @@ export interface ListMessageMentionRequest {
|
|
|
2463
2494
|
cursor: string;
|
|
2464
2495
|
}
|
|
2465
2496
|
|
|
2497
|
+
export interface ListPermissionRoleChannelRequest {
|
|
2498
|
+
/** The role */
|
|
2499
|
+
role_id: string;
|
|
2500
|
+
/** The channel_id */
|
|
2501
|
+
channel_id: string;
|
|
2502
|
+
}
|
|
2503
|
+
|
|
2466
2504
|
export interface UploadAttachment {
|
|
2467
2505
|
/** The name of file that need to upload */
|
|
2468
2506
|
filename: string;
|
|
@@ -2542,10 +2580,6 @@ export interface SearchMessageResponse {
|
|
|
2542
2580
|
total: number;
|
|
2543
2581
|
}
|
|
2544
2582
|
|
|
2545
|
-
export interface ClanEmojiList {
|
|
2546
|
-
emoji_list: ClanEmojiListResponse[];
|
|
2547
|
-
}
|
|
2548
|
-
|
|
2549
2583
|
export interface RegistrationEmailRequest {
|
|
2550
2584
|
/** A valid RFC-5322 email address. */
|
|
2551
2585
|
email: string;
|
|
@@ -2592,17 +2626,6 @@ export interface ClanEmojiUpdateRequest {
|
|
|
2592
2626
|
category: string;
|
|
2593
2627
|
}
|
|
2594
2628
|
|
|
2595
|
-
export interface ClanEmojiListResponse {
|
|
2596
|
-
id: string;
|
|
2597
|
-
/** src url */
|
|
2598
|
-
src: string;
|
|
2599
|
-
/** shortname */
|
|
2600
|
-
shortname: string;
|
|
2601
|
-
/** category */
|
|
2602
|
-
category: string;
|
|
2603
|
-
creator_id: string;
|
|
2604
|
-
}
|
|
2605
|
-
|
|
2606
2629
|
export interface Webhook {
|
|
2607
2630
|
id: string;
|
|
2608
2631
|
webhook_name: string;
|
|
@@ -2661,16 +2684,6 @@ export interface CheckDuplicateClanNameResponse {
|
|
|
2661
2684
|
is_duplicate: boolean;
|
|
2662
2685
|
}
|
|
2663
2686
|
|
|
2664
|
-
export interface ClanSticker {
|
|
2665
|
-
id: number;
|
|
2666
|
-
source: string;
|
|
2667
|
-
shortname: string;
|
|
2668
|
-
category: string;
|
|
2669
|
-
creator_id: number;
|
|
2670
|
-
create_time: Date | undefined;
|
|
2671
|
-
clan_id: number;
|
|
2672
|
-
}
|
|
2673
|
-
|
|
2674
2687
|
export interface ClanStickerAddRequest {
|
|
2675
2688
|
source: string;
|
|
2676
2689
|
shortname: string;
|
|
@@ -2681,11 +2694,7 @@ export interface ClanStickerAddRequest {
|
|
|
2681
2694
|
}
|
|
2682
2695
|
|
|
2683
2696
|
export interface ClanStickerListByClanIdRequest {
|
|
2684
|
-
clan_id:
|
|
2685
|
-
}
|
|
2686
|
-
|
|
2687
|
-
export interface ClanStickerListByClanIdResponse {
|
|
2688
|
-
stickers: ClanSticker[];
|
|
2697
|
+
clan_id: string;
|
|
2689
2698
|
}
|
|
2690
2699
|
|
|
2691
2700
|
export interface ClanStickerUpdateByIdRequest {
|
|
@@ -14959,7 +14968,7 @@ export const EventManagement = {
|
|
|
14959
14968
|
};
|
|
14960
14969
|
|
|
14961
14970
|
function createBasePermission(): Permission {
|
|
14962
|
-
return { id: "", title: "", slug: "", description: "", active: 0 };
|
|
14971
|
+
return { id: "", title: "", slug: "", description: "", active: 0, scope: 0 };
|
|
14963
14972
|
}
|
|
14964
14973
|
|
|
14965
14974
|
export const Permission = {
|
|
@@ -14979,6 +14988,9 @@ export const Permission = {
|
|
|
14979
14988
|
if (message.active !== 0) {
|
|
14980
14989
|
writer.uint32(40).int32(message.active);
|
|
14981
14990
|
}
|
|
14991
|
+
if (message.scope !== 0) {
|
|
14992
|
+
writer.uint32(48).int32(message.scope);
|
|
14993
|
+
}
|
|
14982
14994
|
return writer;
|
|
14983
14995
|
},
|
|
14984
14996
|
|
|
@@ -15004,6 +15016,9 @@ export const Permission = {
|
|
|
15004
15016
|
case 5:
|
|
15005
15017
|
message.active = reader.int32();
|
|
15006
15018
|
break;
|
|
15019
|
+
case 6:
|
|
15020
|
+
message.scope = reader.int32();
|
|
15021
|
+
break;
|
|
15007
15022
|
default:
|
|
15008
15023
|
reader.skipType(tag & 7);
|
|
15009
15024
|
break;
|
|
@@ -15019,6 +15034,7 @@ export const Permission = {
|
|
|
15019
15034
|
slug: isSet(object.slug) ? String(object.slug) : "",
|
|
15020
15035
|
description: isSet(object.description) ? String(object.description) : "",
|
|
15021
15036
|
active: isSet(object.active) ? Number(object.active) : 0,
|
|
15037
|
+
scope: isSet(object.scope) ? Number(object.scope) : 0,
|
|
15022
15038
|
};
|
|
15023
15039
|
},
|
|
15024
15040
|
|
|
@@ -15029,6 +15045,7 @@ export const Permission = {
|
|
|
15029
15045
|
message.slug !== undefined && (obj.slug = message.slug);
|
|
15030
15046
|
message.description !== undefined && (obj.description = message.description);
|
|
15031
15047
|
message.active !== undefined && (obj.active = Math.round(message.active));
|
|
15048
|
+
message.scope !== undefined && (obj.scope = Math.round(message.scope));
|
|
15032
15049
|
return obj;
|
|
15033
15050
|
},
|
|
15034
15051
|
|
|
@@ -15043,6 +15060,69 @@ export const Permission = {
|
|
|
15043
15060
|
message.slug = object.slug ?? "";
|
|
15044
15061
|
message.description = object.description ?? "";
|
|
15045
15062
|
message.active = object.active ?? 0;
|
|
15063
|
+
message.scope = object.scope ?? 0;
|
|
15064
|
+
return message;
|
|
15065
|
+
},
|
|
15066
|
+
};
|
|
15067
|
+
|
|
15068
|
+
function createBasePermissionRoleChannel(): PermissionRoleChannel {
|
|
15069
|
+
return { permission_id: "", active: false };
|
|
15070
|
+
}
|
|
15071
|
+
|
|
15072
|
+
export const PermissionRoleChannel = {
|
|
15073
|
+
encode(message: PermissionRoleChannel, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
15074
|
+
if (message.permission_id !== "") {
|
|
15075
|
+
writer.uint32(10).string(message.permission_id);
|
|
15076
|
+
}
|
|
15077
|
+
if (message.active === true) {
|
|
15078
|
+
writer.uint32(16).bool(message.active);
|
|
15079
|
+
}
|
|
15080
|
+
return writer;
|
|
15081
|
+
},
|
|
15082
|
+
|
|
15083
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PermissionRoleChannel {
|
|
15084
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
15085
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
15086
|
+
const message = createBasePermissionRoleChannel();
|
|
15087
|
+
while (reader.pos < end) {
|
|
15088
|
+
const tag = reader.uint32();
|
|
15089
|
+
switch (tag >>> 3) {
|
|
15090
|
+
case 1:
|
|
15091
|
+
message.permission_id = reader.string();
|
|
15092
|
+
break;
|
|
15093
|
+
case 2:
|
|
15094
|
+
message.active = reader.bool();
|
|
15095
|
+
break;
|
|
15096
|
+
default:
|
|
15097
|
+
reader.skipType(tag & 7);
|
|
15098
|
+
break;
|
|
15099
|
+
}
|
|
15100
|
+
}
|
|
15101
|
+
return message;
|
|
15102
|
+
},
|
|
15103
|
+
|
|
15104
|
+
fromJSON(object: any): PermissionRoleChannel {
|
|
15105
|
+
return {
|
|
15106
|
+
permission_id: isSet(object.permission_id) ? String(object.permission_id) : "",
|
|
15107
|
+
active: isSet(object.active) ? Boolean(object.active) : false,
|
|
15108
|
+
};
|
|
15109
|
+
},
|
|
15110
|
+
|
|
15111
|
+
toJSON(message: PermissionRoleChannel): unknown {
|
|
15112
|
+
const obj: any = {};
|
|
15113
|
+
message.permission_id !== undefined && (obj.permission_id = message.permission_id);
|
|
15114
|
+
message.active !== undefined && (obj.active = message.active);
|
|
15115
|
+
return obj;
|
|
15116
|
+
},
|
|
15117
|
+
|
|
15118
|
+
create<I extends Exact<DeepPartial<PermissionRoleChannel>, I>>(base?: I): PermissionRoleChannel {
|
|
15119
|
+
return PermissionRoleChannel.fromPartial(base ?? {});
|
|
15120
|
+
},
|
|
15121
|
+
|
|
15122
|
+
fromPartial<I extends Exact<DeepPartial<PermissionRoleChannel>, I>>(object: I): PermissionRoleChannel {
|
|
15123
|
+
const message = createBasePermissionRoleChannel();
|
|
15124
|
+
message.permission_id = object.permission_id ?? "";
|
|
15125
|
+
message.active = object.active ?? false;
|
|
15046
15126
|
return message;
|
|
15047
15127
|
},
|
|
15048
15128
|
};
|
|
@@ -16315,6 +16395,68 @@ export const PermissionList = {
|
|
|
16315
16395
|
},
|
|
16316
16396
|
};
|
|
16317
16397
|
|
|
16398
|
+
function createBasePermissionRoleChannelList(): PermissionRoleChannelList {
|
|
16399
|
+
return { permission_role_channel: [] };
|
|
16400
|
+
}
|
|
16401
|
+
|
|
16402
|
+
export const PermissionRoleChannelList = {
|
|
16403
|
+
encode(message: PermissionRoleChannelList, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
16404
|
+
for (const v of message.permission_role_channel) {
|
|
16405
|
+
PermissionRoleChannel.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
16406
|
+
}
|
|
16407
|
+
return writer;
|
|
16408
|
+
},
|
|
16409
|
+
|
|
16410
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PermissionRoleChannelList {
|
|
16411
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
16412
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
16413
|
+
const message = createBasePermissionRoleChannelList();
|
|
16414
|
+
while (reader.pos < end) {
|
|
16415
|
+
const tag = reader.uint32();
|
|
16416
|
+
switch (tag >>> 3) {
|
|
16417
|
+
case 1:
|
|
16418
|
+
message.permission_role_channel.push(PermissionRoleChannel.decode(reader, reader.uint32()));
|
|
16419
|
+
break;
|
|
16420
|
+
default:
|
|
16421
|
+
reader.skipType(tag & 7);
|
|
16422
|
+
break;
|
|
16423
|
+
}
|
|
16424
|
+
}
|
|
16425
|
+
return message;
|
|
16426
|
+
},
|
|
16427
|
+
|
|
16428
|
+
fromJSON(object: any): PermissionRoleChannelList {
|
|
16429
|
+
return {
|
|
16430
|
+
permission_role_channel: Array.isArray(object?.permission_role_channel)
|
|
16431
|
+
? object.permission_role_channel.map((e: any) => PermissionRoleChannel.fromJSON(e))
|
|
16432
|
+
: [],
|
|
16433
|
+
};
|
|
16434
|
+
},
|
|
16435
|
+
|
|
16436
|
+
toJSON(message: PermissionRoleChannelList): unknown {
|
|
16437
|
+
const obj: any = {};
|
|
16438
|
+
if (message.permission_role_channel) {
|
|
16439
|
+
obj.permission_role_channel = message.permission_role_channel.map((e) =>
|
|
16440
|
+
e ? PermissionRoleChannel.toJSON(e) : undefined
|
|
16441
|
+
);
|
|
16442
|
+
} else {
|
|
16443
|
+
obj.permission_role_channel = [];
|
|
16444
|
+
}
|
|
16445
|
+
return obj;
|
|
16446
|
+
},
|
|
16447
|
+
|
|
16448
|
+
create<I extends Exact<DeepPartial<PermissionRoleChannelList>, I>>(base?: I): PermissionRoleChannelList {
|
|
16449
|
+
return PermissionRoleChannelList.fromPartial(base ?? {});
|
|
16450
|
+
},
|
|
16451
|
+
|
|
16452
|
+
fromPartial<I extends Exact<DeepPartial<PermissionRoleChannelList>, I>>(object: I): PermissionRoleChannelList {
|
|
16453
|
+
const message = createBasePermissionRoleChannelList();
|
|
16454
|
+
message.permission_role_channel =
|
|
16455
|
+
object.permission_role_channel?.map((e) => PermissionRoleChannel.fromPartial(e)) || [];
|
|
16456
|
+
return message;
|
|
16457
|
+
},
|
|
16458
|
+
};
|
|
16459
|
+
|
|
16318
16460
|
function createBaseListPermissionsRequest(): ListPermissionsRequest {
|
|
16319
16461
|
return { role_id: "" };
|
|
16320
16462
|
}
|
|
@@ -17616,6 +17758,145 @@ export const UpdateRoleRequest = {
|
|
|
17616
17758
|
},
|
|
17617
17759
|
};
|
|
17618
17760
|
|
|
17761
|
+
function createBaseUpdateRoleChannelRequest(): UpdateRoleChannelRequest {
|
|
17762
|
+
return { role_id: "", permissionUpdate: [], channel_id: "" };
|
|
17763
|
+
}
|
|
17764
|
+
|
|
17765
|
+
export const UpdateRoleChannelRequest = {
|
|
17766
|
+
encode(message: UpdateRoleChannelRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
17767
|
+
if (message.role_id !== "") {
|
|
17768
|
+
writer.uint32(10).string(message.role_id);
|
|
17769
|
+
}
|
|
17770
|
+
for (const v of message.permissionUpdate) {
|
|
17771
|
+
PermissionUpdate.encode(v!, writer.uint32(18).fork()).ldelim();
|
|
17772
|
+
}
|
|
17773
|
+
if (message.channel_id !== "") {
|
|
17774
|
+
writer.uint32(26).string(message.channel_id);
|
|
17775
|
+
}
|
|
17776
|
+
return writer;
|
|
17777
|
+
},
|
|
17778
|
+
|
|
17779
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): UpdateRoleChannelRequest {
|
|
17780
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
17781
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
17782
|
+
const message = createBaseUpdateRoleChannelRequest();
|
|
17783
|
+
while (reader.pos < end) {
|
|
17784
|
+
const tag = reader.uint32();
|
|
17785
|
+
switch (tag >>> 3) {
|
|
17786
|
+
case 1:
|
|
17787
|
+
message.role_id = reader.string();
|
|
17788
|
+
break;
|
|
17789
|
+
case 2:
|
|
17790
|
+
message.permissionUpdate.push(PermissionUpdate.decode(reader, reader.uint32()));
|
|
17791
|
+
break;
|
|
17792
|
+
case 3:
|
|
17793
|
+
message.channel_id = reader.string();
|
|
17794
|
+
break;
|
|
17795
|
+
default:
|
|
17796
|
+
reader.skipType(tag & 7);
|
|
17797
|
+
break;
|
|
17798
|
+
}
|
|
17799
|
+
}
|
|
17800
|
+
return message;
|
|
17801
|
+
},
|
|
17802
|
+
|
|
17803
|
+
fromJSON(object: any): UpdateRoleChannelRequest {
|
|
17804
|
+
return {
|
|
17805
|
+
role_id: isSet(object.role_id) ? String(object.role_id) : "",
|
|
17806
|
+
permissionUpdate: Array.isArray(object?.permissionUpdate)
|
|
17807
|
+
? object.permissionUpdate.map((e: any) => PermissionUpdate.fromJSON(e))
|
|
17808
|
+
: [],
|
|
17809
|
+
channel_id: isSet(object.channel_id) ? String(object.channel_id) : "",
|
|
17810
|
+
};
|
|
17811
|
+
},
|
|
17812
|
+
|
|
17813
|
+
toJSON(message: UpdateRoleChannelRequest): unknown {
|
|
17814
|
+
const obj: any = {};
|
|
17815
|
+
message.role_id !== undefined && (obj.role_id = message.role_id);
|
|
17816
|
+
if (message.permissionUpdate) {
|
|
17817
|
+
obj.permissionUpdate = message.permissionUpdate.map((e) => e ? PermissionUpdate.toJSON(e) : undefined);
|
|
17818
|
+
} else {
|
|
17819
|
+
obj.permissionUpdate = [];
|
|
17820
|
+
}
|
|
17821
|
+
message.channel_id !== undefined && (obj.channel_id = message.channel_id);
|
|
17822
|
+
return obj;
|
|
17823
|
+
},
|
|
17824
|
+
|
|
17825
|
+
create<I extends Exact<DeepPartial<UpdateRoleChannelRequest>, I>>(base?: I): UpdateRoleChannelRequest {
|
|
17826
|
+
return UpdateRoleChannelRequest.fromPartial(base ?? {});
|
|
17827
|
+
},
|
|
17828
|
+
|
|
17829
|
+
fromPartial<I extends Exact<DeepPartial<UpdateRoleChannelRequest>, I>>(object: I): UpdateRoleChannelRequest {
|
|
17830
|
+
const message = createBaseUpdateRoleChannelRequest();
|
|
17831
|
+
message.role_id = object.role_id ?? "";
|
|
17832
|
+
message.permissionUpdate = object.permissionUpdate?.map((e) => PermissionUpdate.fromPartial(e)) || [];
|
|
17833
|
+
message.channel_id = object.channel_id ?? "";
|
|
17834
|
+
return message;
|
|
17835
|
+
},
|
|
17836
|
+
};
|
|
17837
|
+
|
|
17838
|
+
function createBasePermissionUpdate(): PermissionUpdate {
|
|
17839
|
+
return { permission_id: "", type: 0 };
|
|
17840
|
+
}
|
|
17841
|
+
|
|
17842
|
+
export const PermissionUpdate = {
|
|
17843
|
+
encode(message: PermissionUpdate, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
17844
|
+
if (message.permission_id !== "") {
|
|
17845
|
+
writer.uint32(10).string(message.permission_id);
|
|
17846
|
+
}
|
|
17847
|
+
if (message.type !== 0) {
|
|
17848
|
+
writer.uint32(16).int32(message.type);
|
|
17849
|
+
}
|
|
17850
|
+
return writer;
|
|
17851
|
+
},
|
|
17852
|
+
|
|
17853
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PermissionUpdate {
|
|
17854
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
17855
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
17856
|
+
const message = createBasePermissionUpdate();
|
|
17857
|
+
while (reader.pos < end) {
|
|
17858
|
+
const tag = reader.uint32();
|
|
17859
|
+
switch (tag >>> 3) {
|
|
17860
|
+
case 1:
|
|
17861
|
+
message.permission_id = reader.string();
|
|
17862
|
+
break;
|
|
17863
|
+
case 2:
|
|
17864
|
+
message.type = reader.int32();
|
|
17865
|
+
break;
|
|
17866
|
+
default:
|
|
17867
|
+
reader.skipType(tag & 7);
|
|
17868
|
+
break;
|
|
17869
|
+
}
|
|
17870
|
+
}
|
|
17871
|
+
return message;
|
|
17872
|
+
},
|
|
17873
|
+
|
|
17874
|
+
fromJSON(object: any): PermissionUpdate {
|
|
17875
|
+
return {
|
|
17876
|
+
permission_id: isSet(object.permission_id) ? String(object.permission_id) : "",
|
|
17877
|
+
type: isSet(object.type) ? Number(object.type) : 0,
|
|
17878
|
+
};
|
|
17879
|
+
},
|
|
17880
|
+
|
|
17881
|
+
toJSON(message: PermissionUpdate): unknown {
|
|
17882
|
+
const obj: any = {};
|
|
17883
|
+
message.permission_id !== undefined && (obj.permission_id = message.permission_id);
|
|
17884
|
+
message.type !== undefined && (obj.type = Math.round(message.type));
|
|
17885
|
+
return obj;
|
|
17886
|
+
},
|
|
17887
|
+
|
|
17888
|
+
create<I extends Exact<DeepPartial<PermissionUpdate>, I>>(base?: I): PermissionUpdate {
|
|
17889
|
+
return PermissionUpdate.fromPartial(base ?? {});
|
|
17890
|
+
},
|
|
17891
|
+
|
|
17892
|
+
fromPartial<I extends Exact<DeepPartial<PermissionUpdate>, I>>(object: I): PermissionUpdate {
|
|
17893
|
+
const message = createBasePermissionUpdate();
|
|
17894
|
+
message.permission_id = object.permission_id ?? "";
|
|
17895
|
+
message.type = object.type ?? 0;
|
|
17896
|
+
return message;
|
|
17897
|
+
},
|
|
17898
|
+
};
|
|
17899
|
+
|
|
17619
17900
|
function createBaseUploadAttachmentRequest(): UploadAttachmentRequest {
|
|
17620
17901
|
return { filename: "", filetype: "", size: 0, width: 0, height: 0 };
|
|
17621
17902
|
}
|
|
@@ -17776,33 +18057,33 @@ export const ListMessageMentionRequest = {
|
|
|
17776
18057
|
},
|
|
17777
18058
|
};
|
|
17778
18059
|
|
|
17779
|
-
function
|
|
17780
|
-
return {
|
|
18060
|
+
function createBaseListPermissionRoleChannelRequest(): ListPermissionRoleChannelRequest {
|
|
18061
|
+
return { role_id: "", channel_id: "" };
|
|
17781
18062
|
}
|
|
17782
18063
|
|
|
17783
|
-
export const
|
|
17784
|
-
encode(message:
|
|
17785
|
-
if (message.
|
|
17786
|
-
writer.uint32(10).string(message.
|
|
18064
|
+
export const ListPermissionRoleChannelRequest = {
|
|
18065
|
+
encode(message: ListPermissionRoleChannelRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
18066
|
+
if (message.role_id !== "") {
|
|
18067
|
+
writer.uint32(10).string(message.role_id);
|
|
17787
18068
|
}
|
|
17788
|
-
if (message.
|
|
17789
|
-
writer.uint32(18).string(message.
|
|
18069
|
+
if (message.channel_id !== "") {
|
|
18070
|
+
writer.uint32(18).string(message.channel_id);
|
|
17790
18071
|
}
|
|
17791
18072
|
return writer;
|
|
17792
18073
|
},
|
|
17793
18074
|
|
|
17794
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
18075
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ListPermissionRoleChannelRequest {
|
|
17795
18076
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
17796
18077
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
17797
|
-
const message =
|
|
18078
|
+
const message = createBaseListPermissionRoleChannelRequest();
|
|
17798
18079
|
while (reader.pos < end) {
|
|
17799
18080
|
const tag = reader.uint32();
|
|
17800
18081
|
switch (tag >>> 3) {
|
|
17801
18082
|
case 1:
|
|
17802
|
-
message.
|
|
18083
|
+
message.role_id = reader.string();
|
|
17803
18084
|
break;
|
|
17804
18085
|
case 2:
|
|
17805
|
-
message.
|
|
18086
|
+
message.channel_id = reader.string();
|
|
17806
18087
|
break;
|
|
17807
18088
|
default:
|
|
17808
18089
|
reader.skipType(tag & 7);
|
|
@@ -17812,30 +18093,96 @@ export const UploadAttachment = {
|
|
|
17812
18093
|
return message;
|
|
17813
18094
|
},
|
|
17814
18095
|
|
|
17815
|
-
fromJSON(object: any):
|
|
18096
|
+
fromJSON(object: any): ListPermissionRoleChannelRequest {
|
|
17816
18097
|
return {
|
|
17817
|
-
|
|
17818
|
-
|
|
18098
|
+
role_id: isSet(object.role_id) ? String(object.role_id) : "",
|
|
18099
|
+
channel_id: isSet(object.channel_id) ? String(object.channel_id) : "",
|
|
17819
18100
|
};
|
|
17820
18101
|
},
|
|
17821
18102
|
|
|
17822
|
-
toJSON(message:
|
|
18103
|
+
toJSON(message: ListPermissionRoleChannelRequest): unknown {
|
|
17823
18104
|
const obj: any = {};
|
|
17824
|
-
message.
|
|
17825
|
-
message.
|
|
18105
|
+
message.role_id !== undefined && (obj.role_id = message.role_id);
|
|
18106
|
+
message.channel_id !== undefined && (obj.channel_id = message.channel_id);
|
|
17826
18107
|
return obj;
|
|
17827
18108
|
},
|
|
17828
18109
|
|
|
17829
|
-
create<I extends Exact<DeepPartial<
|
|
17830
|
-
|
|
18110
|
+
create<I extends Exact<DeepPartial<ListPermissionRoleChannelRequest>, I>>(
|
|
18111
|
+
base?: I,
|
|
18112
|
+
): ListPermissionRoleChannelRequest {
|
|
18113
|
+
return ListPermissionRoleChannelRequest.fromPartial(base ?? {});
|
|
17831
18114
|
},
|
|
17832
18115
|
|
|
17833
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
17834
|
-
|
|
17835
|
-
|
|
17836
|
-
message
|
|
17837
|
-
|
|
17838
|
-
|
|
18116
|
+
fromPartial<I extends Exact<DeepPartial<ListPermissionRoleChannelRequest>, I>>(
|
|
18117
|
+
object: I,
|
|
18118
|
+
): ListPermissionRoleChannelRequest {
|
|
18119
|
+
const message = createBaseListPermissionRoleChannelRequest();
|
|
18120
|
+
message.role_id = object.role_id ?? "";
|
|
18121
|
+
message.channel_id = object.channel_id ?? "";
|
|
18122
|
+
return message;
|
|
18123
|
+
},
|
|
18124
|
+
};
|
|
18125
|
+
|
|
18126
|
+
function createBaseUploadAttachment(): UploadAttachment {
|
|
18127
|
+
return { filename: "", url: "" };
|
|
18128
|
+
}
|
|
18129
|
+
|
|
18130
|
+
export const UploadAttachment = {
|
|
18131
|
+
encode(message: UploadAttachment, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
18132
|
+
if (message.filename !== "") {
|
|
18133
|
+
writer.uint32(10).string(message.filename);
|
|
18134
|
+
}
|
|
18135
|
+
if (message.url !== "") {
|
|
18136
|
+
writer.uint32(18).string(message.url);
|
|
18137
|
+
}
|
|
18138
|
+
return writer;
|
|
18139
|
+
},
|
|
18140
|
+
|
|
18141
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): UploadAttachment {
|
|
18142
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
18143
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
18144
|
+
const message = createBaseUploadAttachment();
|
|
18145
|
+
while (reader.pos < end) {
|
|
18146
|
+
const tag = reader.uint32();
|
|
18147
|
+
switch (tag >>> 3) {
|
|
18148
|
+
case 1:
|
|
18149
|
+
message.filename = reader.string();
|
|
18150
|
+
break;
|
|
18151
|
+
case 2:
|
|
18152
|
+
message.url = reader.string();
|
|
18153
|
+
break;
|
|
18154
|
+
default:
|
|
18155
|
+
reader.skipType(tag & 7);
|
|
18156
|
+
break;
|
|
18157
|
+
}
|
|
18158
|
+
}
|
|
18159
|
+
return message;
|
|
18160
|
+
},
|
|
18161
|
+
|
|
18162
|
+
fromJSON(object: any): UploadAttachment {
|
|
18163
|
+
return {
|
|
18164
|
+
filename: isSet(object.filename) ? String(object.filename) : "",
|
|
18165
|
+
url: isSet(object.url) ? String(object.url) : "",
|
|
18166
|
+
};
|
|
18167
|
+
},
|
|
18168
|
+
|
|
18169
|
+
toJSON(message: UploadAttachment): unknown {
|
|
18170
|
+
const obj: any = {};
|
|
18171
|
+
message.filename !== undefined && (obj.filename = message.filename);
|
|
18172
|
+
message.url !== undefined && (obj.url = message.url);
|
|
18173
|
+
return obj;
|
|
18174
|
+
},
|
|
18175
|
+
|
|
18176
|
+
create<I extends Exact<DeepPartial<UploadAttachment>, I>>(base?: I): UploadAttachment {
|
|
18177
|
+
return UploadAttachment.fromPartial(base ?? {});
|
|
18178
|
+
},
|
|
18179
|
+
|
|
18180
|
+
fromPartial<I extends Exact<DeepPartial<UploadAttachment>, I>>(object: I): UploadAttachment {
|
|
18181
|
+
const message = createBaseUploadAttachment();
|
|
18182
|
+
message.filename = object.filename ?? "";
|
|
18183
|
+
message.url = object.url ?? "";
|
|
18184
|
+
return message;
|
|
18185
|
+
},
|
|
17839
18186
|
};
|
|
17840
18187
|
|
|
17841
18188
|
function createBaseSearchMessageRequest(): SearchMessageRequest {
|
|
@@ -18333,65 +18680,6 @@ export const SearchMessageResponse = {
|
|
|
18333
18680
|
},
|
|
18334
18681
|
};
|
|
18335
18682
|
|
|
18336
|
-
function createBaseClanEmojiList(): ClanEmojiList {
|
|
18337
|
-
return { emoji_list: [] };
|
|
18338
|
-
}
|
|
18339
|
-
|
|
18340
|
-
export const ClanEmojiList = {
|
|
18341
|
-
encode(message: ClanEmojiList, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
18342
|
-
for (const v of message.emoji_list) {
|
|
18343
|
-
ClanEmojiListResponse.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
18344
|
-
}
|
|
18345
|
-
return writer;
|
|
18346
|
-
},
|
|
18347
|
-
|
|
18348
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): ClanEmojiList {
|
|
18349
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
18350
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
18351
|
-
const message = createBaseClanEmojiList();
|
|
18352
|
-
while (reader.pos < end) {
|
|
18353
|
-
const tag = reader.uint32();
|
|
18354
|
-
switch (tag >>> 3) {
|
|
18355
|
-
case 1:
|
|
18356
|
-
message.emoji_list.push(ClanEmojiListResponse.decode(reader, reader.uint32()));
|
|
18357
|
-
break;
|
|
18358
|
-
default:
|
|
18359
|
-
reader.skipType(tag & 7);
|
|
18360
|
-
break;
|
|
18361
|
-
}
|
|
18362
|
-
}
|
|
18363
|
-
return message;
|
|
18364
|
-
},
|
|
18365
|
-
|
|
18366
|
-
fromJSON(object: any): ClanEmojiList {
|
|
18367
|
-
return {
|
|
18368
|
-
emoji_list: Array.isArray(object?.emoji_list)
|
|
18369
|
-
? object.emoji_list.map((e: any) => ClanEmojiListResponse.fromJSON(e))
|
|
18370
|
-
: [],
|
|
18371
|
-
};
|
|
18372
|
-
},
|
|
18373
|
-
|
|
18374
|
-
toJSON(message: ClanEmojiList): unknown {
|
|
18375
|
-
const obj: any = {};
|
|
18376
|
-
if (message.emoji_list) {
|
|
18377
|
-
obj.emoji_list = message.emoji_list.map((e) => e ? ClanEmojiListResponse.toJSON(e) : undefined);
|
|
18378
|
-
} else {
|
|
18379
|
-
obj.emoji_list = [];
|
|
18380
|
-
}
|
|
18381
|
-
return obj;
|
|
18382
|
-
},
|
|
18383
|
-
|
|
18384
|
-
create<I extends Exact<DeepPartial<ClanEmojiList>, I>>(base?: I): ClanEmojiList {
|
|
18385
|
-
return ClanEmojiList.fromPartial(base ?? {});
|
|
18386
|
-
},
|
|
18387
|
-
|
|
18388
|
-
fromPartial<I extends Exact<DeepPartial<ClanEmojiList>, I>>(object: I): ClanEmojiList {
|
|
18389
|
-
const message = createBaseClanEmojiList();
|
|
18390
|
-
message.emoji_list = object.emoji_list?.map((e) => ClanEmojiListResponse.fromPartial(e)) || [];
|
|
18391
|
-
return message;
|
|
18392
|
-
},
|
|
18393
|
-
};
|
|
18394
|
-
|
|
18395
18683
|
function createBaseRegistrationEmailRequest(): RegistrationEmailRequest {
|
|
18396
18684
|
return { email: "", password: "", username: "", display_name: "", avatar_url: "", dob: "", vars: {} };
|
|
18397
18685
|
}
|
|
@@ -18859,95 +19147,6 @@ export const ClanEmojiUpdateRequest = {
|
|
|
18859
19147
|
},
|
|
18860
19148
|
};
|
|
18861
19149
|
|
|
18862
|
-
function createBaseClanEmojiListResponse(): ClanEmojiListResponse {
|
|
18863
|
-
return { id: "", src: "", shortname: "", category: "", creator_id: "" };
|
|
18864
|
-
}
|
|
18865
|
-
|
|
18866
|
-
export const ClanEmojiListResponse = {
|
|
18867
|
-
encode(message: ClanEmojiListResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
18868
|
-
if (message.id !== "") {
|
|
18869
|
-
writer.uint32(10).string(message.id);
|
|
18870
|
-
}
|
|
18871
|
-
if (message.src !== "") {
|
|
18872
|
-
writer.uint32(18).string(message.src);
|
|
18873
|
-
}
|
|
18874
|
-
if (message.shortname !== "") {
|
|
18875
|
-
writer.uint32(26).string(message.shortname);
|
|
18876
|
-
}
|
|
18877
|
-
if (message.category !== "") {
|
|
18878
|
-
writer.uint32(34).string(message.category);
|
|
18879
|
-
}
|
|
18880
|
-
if (message.creator_id !== "") {
|
|
18881
|
-
writer.uint32(42).string(message.creator_id);
|
|
18882
|
-
}
|
|
18883
|
-
return writer;
|
|
18884
|
-
},
|
|
18885
|
-
|
|
18886
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): ClanEmojiListResponse {
|
|
18887
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
18888
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
18889
|
-
const message = createBaseClanEmojiListResponse();
|
|
18890
|
-
while (reader.pos < end) {
|
|
18891
|
-
const tag = reader.uint32();
|
|
18892
|
-
switch (tag >>> 3) {
|
|
18893
|
-
case 1:
|
|
18894
|
-
message.id = reader.string();
|
|
18895
|
-
break;
|
|
18896
|
-
case 2:
|
|
18897
|
-
message.src = reader.string();
|
|
18898
|
-
break;
|
|
18899
|
-
case 3:
|
|
18900
|
-
message.shortname = reader.string();
|
|
18901
|
-
break;
|
|
18902
|
-
case 4:
|
|
18903
|
-
message.category = reader.string();
|
|
18904
|
-
break;
|
|
18905
|
-
case 5:
|
|
18906
|
-
message.creator_id = reader.string();
|
|
18907
|
-
break;
|
|
18908
|
-
default:
|
|
18909
|
-
reader.skipType(tag & 7);
|
|
18910
|
-
break;
|
|
18911
|
-
}
|
|
18912
|
-
}
|
|
18913
|
-
return message;
|
|
18914
|
-
},
|
|
18915
|
-
|
|
18916
|
-
fromJSON(object: any): ClanEmojiListResponse {
|
|
18917
|
-
return {
|
|
18918
|
-
id: isSet(object.id) ? String(object.id) : "",
|
|
18919
|
-
src: isSet(object.src) ? String(object.src) : "",
|
|
18920
|
-
shortname: isSet(object.shortname) ? String(object.shortname) : "",
|
|
18921
|
-
category: isSet(object.category) ? String(object.category) : "",
|
|
18922
|
-
creator_id: isSet(object.creator_id) ? String(object.creator_id) : "",
|
|
18923
|
-
};
|
|
18924
|
-
},
|
|
18925
|
-
|
|
18926
|
-
toJSON(message: ClanEmojiListResponse): unknown {
|
|
18927
|
-
const obj: any = {};
|
|
18928
|
-
message.id !== undefined && (obj.id = message.id);
|
|
18929
|
-
message.src !== undefined && (obj.src = message.src);
|
|
18930
|
-
message.shortname !== undefined && (obj.shortname = message.shortname);
|
|
18931
|
-
message.category !== undefined && (obj.category = message.category);
|
|
18932
|
-
message.creator_id !== undefined && (obj.creator_id = message.creator_id);
|
|
18933
|
-
return obj;
|
|
18934
|
-
},
|
|
18935
|
-
|
|
18936
|
-
create<I extends Exact<DeepPartial<ClanEmojiListResponse>, I>>(base?: I): ClanEmojiListResponse {
|
|
18937
|
-
return ClanEmojiListResponse.fromPartial(base ?? {});
|
|
18938
|
-
},
|
|
18939
|
-
|
|
18940
|
-
fromPartial<I extends Exact<DeepPartial<ClanEmojiListResponse>, I>>(object: I): ClanEmojiListResponse {
|
|
18941
|
-
const message = createBaseClanEmojiListResponse();
|
|
18942
|
-
message.id = object.id ?? "";
|
|
18943
|
-
message.src = object.src ?? "";
|
|
18944
|
-
message.shortname = object.shortname ?? "";
|
|
18945
|
-
message.category = object.category ?? "";
|
|
18946
|
-
message.creator_id = object.creator_id ?? "";
|
|
18947
|
-
return message;
|
|
18948
|
-
},
|
|
18949
|
-
};
|
|
18950
|
-
|
|
18951
19150
|
function createBaseWebhook(): Webhook {
|
|
18952
19151
|
return {
|
|
18953
19152
|
id: "",
|
|
@@ -19639,113 +19838,6 @@ export const CheckDuplicateClanNameResponse = {
|
|
|
19639
19838
|
},
|
|
19640
19839
|
};
|
|
19641
19840
|
|
|
19642
|
-
function createBaseClanSticker(): ClanSticker {
|
|
19643
|
-
return { id: 0, source: "", shortname: "", category: "", creator_id: 0, create_time: undefined, clan_id: 0 };
|
|
19644
|
-
}
|
|
19645
|
-
|
|
19646
|
-
export const ClanSticker = {
|
|
19647
|
-
encode(message: ClanSticker, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
19648
|
-
if (message.id !== 0) {
|
|
19649
|
-
writer.uint32(8).int64(message.id);
|
|
19650
|
-
}
|
|
19651
|
-
if (message.source !== "") {
|
|
19652
|
-
writer.uint32(18).string(message.source);
|
|
19653
|
-
}
|
|
19654
|
-
if (message.shortname !== "") {
|
|
19655
|
-
writer.uint32(26).string(message.shortname);
|
|
19656
|
-
}
|
|
19657
|
-
if (message.category !== "") {
|
|
19658
|
-
writer.uint32(34).string(message.category);
|
|
19659
|
-
}
|
|
19660
|
-
if (message.creator_id !== 0) {
|
|
19661
|
-
writer.uint32(40).int64(message.creator_id);
|
|
19662
|
-
}
|
|
19663
|
-
if (message.create_time !== undefined) {
|
|
19664
|
-
Timestamp.encode(toTimestamp(message.create_time), writer.uint32(50).fork()).ldelim();
|
|
19665
|
-
}
|
|
19666
|
-
if (message.clan_id !== 0) {
|
|
19667
|
-
writer.uint32(56).int64(message.clan_id);
|
|
19668
|
-
}
|
|
19669
|
-
return writer;
|
|
19670
|
-
},
|
|
19671
|
-
|
|
19672
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): ClanSticker {
|
|
19673
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
19674
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
19675
|
-
const message = createBaseClanSticker();
|
|
19676
|
-
while (reader.pos < end) {
|
|
19677
|
-
const tag = reader.uint32();
|
|
19678
|
-
switch (tag >>> 3) {
|
|
19679
|
-
case 1:
|
|
19680
|
-
message.id = longToNumber(reader.int64() as Long);
|
|
19681
|
-
break;
|
|
19682
|
-
case 2:
|
|
19683
|
-
message.source = reader.string();
|
|
19684
|
-
break;
|
|
19685
|
-
case 3:
|
|
19686
|
-
message.shortname = reader.string();
|
|
19687
|
-
break;
|
|
19688
|
-
case 4:
|
|
19689
|
-
message.category = reader.string();
|
|
19690
|
-
break;
|
|
19691
|
-
case 5:
|
|
19692
|
-
message.creator_id = longToNumber(reader.int64() as Long);
|
|
19693
|
-
break;
|
|
19694
|
-
case 6:
|
|
19695
|
-
message.create_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
19696
|
-
break;
|
|
19697
|
-
case 7:
|
|
19698
|
-
message.clan_id = longToNumber(reader.int64() as Long);
|
|
19699
|
-
break;
|
|
19700
|
-
default:
|
|
19701
|
-
reader.skipType(tag & 7);
|
|
19702
|
-
break;
|
|
19703
|
-
}
|
|
19704
|
-
}
|
|
19705
|
-
return message;
|
|
19706
|
-
},
|
|
19707
|
-
|
|
19708
|
-
fromJSON(object: any): ClanSticker {
|
|
19709
|
-
return {
|
|
19710
|
-
id: isSet(object.id) ? Number(object.id) : 0,
|
|
19711
|
-
source: isSet(object.source) ? String(object.source) : "",
|
|
19712
|
-
shortname: isSet(object.shortname) ? String(object.shortname) : "",
|
|
19713
|
-
category: isSet(object.category) ? String(object.category) : "",
|
|
19714
|
-
creator_id: isSet(object.creator_id) ? Number(object.creator_id) : 0,
|
|
19715
|
-
create_time: isSet(object.create_time) ? fromJsonTimestamp(object.create_time) : undefined,
|
|
19716
|
-
clan_id: isSet(object.clan_id) ? Number(object.clan_id) : 0,
|
|
19717
|
-
};
|
|
19718
|
-
},
|
|
19719
|
-
|
|
19720
|
-
toJSON(message: ClanSticker): unknown {
|
|
19721
|
-
const obj: any = {};
|
|
19722
|
-
message.id !== undefined && (obj.id = Math.round(message.id));
|
|
19723
|
-
message.source !== undefined && (obj.source = message.source);
|
|
19724
|
-
message.shortname !== undefined && (obj.shortname = message.shortname);
|
|
19725
|
-
message.category !== undefined && (obj.category = message.category);
|
|
19726
|
-
message.creator_id !== undefined && (obj.creator_id = Math.round(message.creator_id));
|
|
19727
|
-
message.create_time !== undefined && (obj.create_time = message.create_time.toISOString());
|
|
19728
|
-
message.clan_id !== undefined && (obj.clan_id = Math.round(message.clan_id));
|
|
19729
|
-
return obj;
|
|
19730
|
-
},
|
|
19731
|
-
|
|
19732
|
-
create<I extends Exact<DeepPartial<ClanSticker>, I>>(base?: I): ClanSticker {
|
|
19733
|
-
return ClanSticker.fromPartial(base ?? {});
|
|
19734
|
-
},
|
|
19735
|
-
|
|
19736
|
-
fromPartial<I extends Exact<DeepPartial<ClanSticker>, I>>(object: I): ClanSticker {
|
|
19737
|
-
const message = createBaseClanSticker();
|
|
19738
|
-
message.id = object.id ?? 0;
|
|
19739
|
-
message.source = object.source ?? "";
|
|
19740
|
-
message.shortname = object.shortname ?? "";
|
|
19741
|
-
message.category = object.category ?? "";
|
|
19742
|
-
message.creator_id = object.creator_id ?? 0;
|
|
19743
|
-
message.create_time = object.create_time ?? undefined;
|
|
19744
|
-
message.clan_id = object.clan_id ?? 0;
|
|
19745
|
-
return message;
|
|
19746
|
-
},
|
|
19747
|
-
};
|
|
19748
|
-
|
|
19749
19841
|
function createBaseClanStickerAddRequest(): ClanStickerAddRequest {
|
|
19750
19842
|
return { source: "", shortname: "", category: "", clan_id: 0, id: "" };
|
|
19751
19843
|
}
|
|
@@ -19836,13 +19928,13 @@ export const ClanStickerAddRequest = {
|
|
|
19836
19928
|
};
|
|
19837
19929
|
|
|
19838
19930
|
function createBaseClanStickerListByClanIdRequest(): ClanStickerListByClanIdRequest {
|
|
19839
|
-
return { clan_id:
|
|
19931
|
+
return { clan_id: "" };
|
|
19840
19932
|
}
|
|
19841
19933
|
|
|
19842
19934
|
export const ClanStickerListByClanIdRequest = {
|
|
19843
19935
|
encode(message: ClanStickerListByClanIdRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
19844
|
-
if (message.clan_id !==
|
|
19845
|
-
writer.uint32(
|
|
19936
|
+
if (message.clan_id !== "") {
|
|
19937
|
+
writer.uint32(10).string(message.clan_id);
|
|
19846
19938
|
}
|
|
19847
19939
|
return writer;
|
|
19848
19940
|
},
|
|
@@ -19855,7 +19947,7 @@ export const ClanStickerListByClanIdRequest = {
|
|
|
19855
19947
|
const tag = reader.uint32();
|
|
19856
19948
|
switch (tag >>> 3) {
|
|
19857
19949
|
case 1:
|
|
19858
|
-
message.clan_id =
|
|
19950
|
+
message.clan_id = reader.string();
|
|
19859
19951
|
break;
|
|
19860
19952
|
default:
|
|
19861
19953
|
reader.skipType(tag & 7);
|
|
@@ -19866,12 +19958,12 @@ export const ClanStickerListByClanIdRequest = {
|
|
|
19866
19958
|
},
|
|
19867
19959
|
|
|
19868
19960
|
fromJSON(object: any): ClanStickerListByClanIdRequest {
|
|
19869
|
-
return { clan_id: isSet(object.clan_id) ?
|
|
19961
|
+
return { clan_id: isSet(object.clan_id) ? String(object.clan_id) : "" };
|
|
19870
19962
|
},
|
|
19871
19963
|
|
|
19872
19964
|
toJSON(message: ClanStickerListByClanIdRequest): unknown {
|
|
19873
19965
|
const obj: any = {};
|
|
19874
|
-
message.clan_id !== undefined && (obj.clan_id =
|
|
19966
|
+
message.clan_id !== undefined && (obj.clan_id = message.clan_id);
|
|
19875
19967
|
return obj;
|
|
19876
19968
|
},
|
|
19877
19969
|
|
|
@@ -19883,66 +19975,7 @@ export const ClanStickerListByClanIdRequest = {
|
|
|
19883
19975
|
object: I,
|
|
19884
19976
|
): ClanStickerListByClanIdRequest {
|
|
19885
19977
|
const message = createBaseClanStickerListByClanIdRequest();
|
|
19886
|
-
message.clan_id = object.clan_id ??
|
|
19887
|
-
return message;
|
|
19888
|
-
},
|
|
19889
|
-
};
|
|
19890
|
-
|
|
19891
|
-
function createBaseClanStickerListByClanIdResponse(): ClanStickerListByClanIdResponse {
|
|
19892
|
-
return { stickers: [] };
|
|
19893
|
-
}
|
|
19894
|
-
|
|
19895
|
-
export const ClanStickerListByClanIdResponse = {
|
|
19896
|
-
encode(message: ClanStickerListByClanIdResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
19897
|
-
for (const v of message.stickers) {
|
|
19898
|
-
ClanSticker.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
19899
|
-
}
|
|
19900
|
-
return writer;
|
|
19901
|
-
},
|
|
19902
|
-
|
|
19903
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): ClanStickerListByClanIdResponse {
|
|
19904
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
19905
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
19906
|
-
const message = createBaseClanStickerListByClanIdResponse();
|
|
19907
|
-
while (reader.pos < end) {
|
|
19908
|
-
const tag = reader.uint32();
|
|
19909
|
-
switch (tag >>> 3) {
|
|
19910
|
-
case 1:
|
|
19911
|
-
message.stickers.push(ClanSticker.decode(reader, reader.uint32()));
|
|
19912
|
-
break;
|
|
19913
|
-
default:
|
|
19914
|
-
reader.skipType(tag & 7);
|
|
19915
|
-
break;
|
|
19916
|
-
}
|
|
19917
|
-
}
|
|
19918
|
-
return message;
|
|
19919
|
-
},
|
|
19920
|
-
|
|
19921
|
-
fromJSON(object: any): ClanStickerListByClanIdResponse {
|
|
19922
|
-
return {
|
|
19923
|
-
stickers: Array.isArray(object?.stickers) ? object.stickers.map((e: any) => ClanSticker.fromJSON(e)) : [],
|
|
19924
|
-
};
|
|
19925
|
-
},
|
|
19926
|
-
|
|
19927
|
-
toJSON(message: ClanStickerListByClanIdResponse): unknown {
|
|
19928
|
-
const obj: any = {};
|
|
19929
|
-
if (message.stickers) {
|
|
19930
|
-
obj.stickers = message.stickers.map((e) => e ? ClanSticker.toJSON(e) : undefined);
|
|
19931
|
-
} else {
|
|
19932
|
-
obj.stickers = [];
|
|
19933
|
-
}
|
|
19934
|
-
return obj;
|
|
19935
|
-
},
|
|
19936
|
-
|
|
19937
|
-
create<I extends Exact<DeepPartial<ClanStickerListByClanIdResponse>, I>>(base?: I): ClanStickerListByClanIdResponse {
|
|
19938
|
-
return ClanStickerListByClanIdResponse.fromPartial(base ?? {});
|
|
19939
|
-
},
|
|
19940
|
-
|
|
19941
|
-
fromPartial<I extends Exact<DeepPartial<ClanStickerListByClanIdResponse>, I>>(
|
|
19942
|
-
object: I,
|
|
19943
|
-
): ClanStickerListByClanIdResponse {
|
|
19944
|
-
const message = createBaseClanStickerListByClanIdResponse();
|
|
19945
|
-
message.stickers = object.stickers?.map((e) => ClanSticker.fromPartial(e)) || [];
|
|
19978
|
+
message.clan_id = object.clan_id ?? "";
|
|
19946
19979
|
return message;
|
|
19947
19980
|
},
|
|
19948
19981
|
};
|