jr-common-micro 1.1.49 → 1.1.51
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/dist/proto/micro/v1/chat/chat_messages_nest.d.ts +171 -0
- package/dist/proto/micro/v1/chat/chat_messages_nest.js +5 -0
- package/dist/proto/micro/v1/chat/chat_messages_pb.d.ts +395 -0
- package/dist/proto/micro/v1/chat/chat_messages_pb.js +873 -0
- package/dist/proto/micro/v1/chat/index.d.ts +3 -0
- package/dist/proto/micro/v1/chat/index.js +7 -0
- package/dist/proto/micro/v1/chat/services_connect.d.ts +139 -0
- package/dist/proto/micro/v1/chat/services_connect.js +142 -0
- package/dist/proto/micro/v1/chat/services_nest.d.ts +60 -0
- package/dist/proto/micro/v1/chat/services_nest.js +61 -0
- package/dist/proto/micro/v1/index.d.ts +1 -0
- package/dist/proto/micro/v1/index.js +2 -1
- package/dist/proto/micro/v1/user/profile_messages_nest.d.ts +4 -0
- package/dist/proto/micro/v1/user/profile_messages_pb.d.ts +12 -0
- package/dist/proto/micro/v1/user/profile_messages_pb.js +28 -1
- package/dist/proto/micro/v1/user/services_connect.d.ts +7 -1
- package/dist/proto/micro/v1/user/services_connect.js +6 -0
- package/dist/proto/micro/v1/user/services_nest.d.ts +3 -1
- package/dist/proto/micro/v1/user/services_nest.js +1 -0
- package/dist/utils/constants.d.ts +1 -0
- package/dist/utils/constants.js +2 -1
- package/package.json +1 -1
- package/proto/micro/v1/chat/chat_messages.proto +208 -0
- package/proto/micro/v1/chat/services.proto +39 -0
- package/proto/micro/v1/user/profile_messages.proto +5 -0
- package/proto/micro/v1/user/services.proto +1 -0
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { PaginationMetaResult, ResponseStatus } from "../general_nest";
|
|
2
|
+
export declare const protobufPackage = "micro.v1.chat";
|
|
3
|
+
export interface ChatGroupDto {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
slug: string;
|
|
7
|
+
description: string;
|
|
8
|
+
icon: string;
|
|
9
|
+
type: string;
|
|
10
|
+
is_vip_only: boolean;
|
|
11
|
+
slow_mode_seconds: number;
|
|
12
|
+
member_count: number;
|
|
13
|
+
online_count: number;
|
|
14
|
+
membership: string;
|
|
15
|
+
unread_count: number;
|
|
16
|
+
last_message_preview: string;
|
|
17
|
+
last_message_at: string;
|
|
18
|
+
}
|
|
19
|
+
export interface ChatGroupListResponse {
|
|
20
|
+
status: ResponseStatus | undefined;
|
|
21
|
+
data: ChatGroupDto[];
|
|
22
|
+
}
|
|
23
|
+
export interface GroupBySlugRequest {
|
|
24
|
+
slug: string;
|
|
25
|
+
}
|
|
26
|
+
export interface JoinGroupResponse {
|
|
27
|
+
status: ResponseStatus | undefined;
|
|
28
|
+
membership: string;
|
|
29
|
+
}
|
|
30
|
+
export interface ChatGroupSingleResponse {
|
|
31
|
+
status: ResponseStatus | undefined;
|
|
32
|
+
data: ChatGroupDto | undefined;
|
|
33
|
+
}
|
|
34
|
+
export interface ChatMessageDto {
|
|
35
|
+
id: string;
|
|
36
|
+
group_id: string;
|
|
37
|
+
user_id: string;
|
|
38
|
+
username: string;
|
|
39
|
+
role: string;
|
|
40
|
+
avatar_id: string;
|
|
41
|
+
type: string;
|
|
42
|
+
content: string;
|
|
43
|
+
reply_to_id: string;
|
|
44
|
+
reply_to: ChatReplyPreviewDto | undefined;
|
|
45
|
+
image_url: string;
|
|
46
|
+
is_pinned: boolean;
|
|
47
|
+
created_at: string;
|
|
48
|
+
is_deleted: boolean;
|
|
49
|
+
}
|
|
50
|
+
export interface ChatReplyPreviewDto {
|
|
51
|
+
id: string;
|
|
52
|
+
username: string;
|
|
53
|
+
content: string;
|
|
54
|
+
}
|
|
55
|
+
export interface MessageHistoryRequest {
|
|
56
|
+
group_slug: string;
|
|
57
|
+
cursor: string;
|
|
58
|
+
limit: number;
|
|
59
|
+
}
|
|
60
|
+
export interface MessageHistoryResponse {
|
|
61
|
+
status: ResponseStatus | undefined;
|
|
62
|
+
data: ChatMessageDto[];
|
|
63
|
+
next_cursor: string;
|
|
64
|
+
}
|
|
65
|
+
export interface PinnedMessagesRequest {
|
|
66
|
+
group_slug: string;
|
|
67
|
+
}
|
|
68
|
+
export interface PinnedMessagesResponse {
|
|
69
|
+
status: ResponseStatus | undefined;
|
|
70
|
+
data: ChatMessageDto[];
|
|
71
|
+
}
|
|
72
|
+
export interface ReportMessageRequest {
|
|
73
|
+
message_id: string;
|
|
74
|
+
reason: string;
|
|
75
|
+
}
|
|
76
|
+
export interface BlockUserRequest {
|
|
77
|
+
username: string;
|
|
78
|
+
}
|
|
79
|
+
export interface BlockedUsersResponse {
|
|
80
|
+
status: ResponseStatus | undefined;
|
|
81
|
+
usernames: string[];
|
|
82
|
+
user_ids: string[];
|
|
83
|
+
}
|
|
84
|
+
export interface GroupUpsertRequest {
|
|
85
|
+
id: string;
|
|
86
|
+
name: string;
|
|
87
|
+
description: string;
|
|
88
|
+
icon: string;
|
|
89
|
+
type: string;
|
|
90
|
+
is_vip_only: boolean;
|
|
91
|
+
slow_mode_seconds: number;
|
|
92
|
+
sort_order: number;
|
|
93
|
+
is_active: boolean;
|
|
94
|
+
}
|
|
95
|
+
export interface SanctionRequest {
|
|
96
|
+
username: string;
|
|
97
|
+
group_slug: string;
|
|
98
|
+
type: string;
|
|
99
|
+
duration_minutes: number;
|
|
100
|
+
reason: string;
|
|
101
|
+
}
|
|
102
|
+
export interface RevokeSanctionRequest {
|
|
103
|
+
sanction_id: string;
|
|
104
|
+
}
|
|
105
|
+
export interface DeleteMessageRequest {
|
|
106
|
+
message_id: string;
|
|
107
|
+
}
|
|
108
|
+
export interface PinMessageRequest {
|
|
109
|
+
message_id: string;
|
|
110
|
+
pinned: boolean;
|
|
111
|
+
}
|
|
112
|
+
export interface MemberActionRequest {
|
|
113
|
+
group_slug: string;
|
|
114
|
+
username: string;
|
|
115
|
+
action: string;
|
|
116
|
+
}
|
|
117
|
+
export interface PendingMembersRequest {
|
|
118
|
+
group_slug: string;
|
|
119
|
+
}
|
|
120
|
+
export interface ChatMemberDto {
|
|
121
|
+
user_id: string;
|
|
122
|
+
username: string;
|
|
123
|
+
avatar_id: string;
|
|
124
|
+
role: string;
|
|
125
|
+
status: string;
|
|
126
|
+
joined_at: string;
|
|
127
|
+
is_online: boolean;
|
|
128
|
+
}
|
|
129
|
+
export interface ChatMemberListResponse {
|
|
130
|
+
status: ResponseStatus | undefined;
|
|
131
|
+
pagination: PaginationMetaResult | undefined;
|
|
132
|
+
data: ChatMemberDto[];
|
|
133
|
+
}
|
|
134
|
+
export interface SanctionDto {
|
|
135
|
+
id: string;
|
|
136
|
+
user_id: string;
|
|
137
|
+
username: string;
|
|
138
|
+
group_slug: string;
|
|
139
|
+
type: string;
|
|
140
|
+
reason: string;
|
|
141
|
+
expires_at: string;
|
|
142
|
+
created_by: string;
|
|
143
|
+
created_at: string;
|
|
144
|
+
}
|
|
145
|
+
export interface SanctionListResponse {
|
|
146
|
+
status: ResponseStatus | undefined;
|
|
147
|
+
pagination: PaginationMetaResult | undefined;
|
|
148
|
+
data: SanctionDto[];
|
|
149
|
+
}
|
|
150
|
+
export interface ReportDto {
|
|
151
|
+
id: string;
|
|
152
|
+
group_id: string;
|
|
153
|
+
message_id: string;
|
|
154
|
+
reporter_id: string;
|
|
155
|
+
reported_user_id: string;
|
|
156
|
+
reported_username: string;
|
|
157
|
+
content_snapshot: string;
|
|
158
|
+
reason: string;
|
|
159
|
+
status: string;
|
|
160
|
+
created_at: string;
|
|
161
|
+
}
|
|
162
|
+
export interface ReportListResponse {
|
|
163
|
+
status: ResponseStatus | undefined;
|
|
164
|
+
pagination: PaginationMetaResult | undefined;
|
|
165
|
+
data: ReportDto[];
|
|
166
|
+
}
|
|
167
|
+
export interface ReviewReportRequest {
|
|
168
|
+
report_id: string;
|
|
169
|
+
status: string;
|
|
170
|
+
}
|
|
171
|
+
export declare const MICRO_V1_CHAT_PACKAGE_NAME = "micro.v1.chat";
|
|
@@ -0,0 +1,395 @@
|
|
|
1
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
2
|
+
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
3
|
+
import { PaginationMetaResult, ResponseStatus } from "../general_pb.js";
|
|
4
|
+
export declare class ChatGroupDto extends Message<ChatGroupDto> {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
slug: string;
|
|
8
|
+
description: string;
|
|
9
|
+
icon: string;
|
|
10
|
+
type: string;
|
|
11
|
+
isVipOnly: boolean;
|
|
12
|
+
slowModeSeconds: number;
|
|
13
|
+
memberCount: number;
|
|
14
|
+
onlineCount: number;
|
|
15
|
+
membership: string;
|
|
16
|
+
unreadCount: number;
|
|
17
|
+
lastMessagePreview: string;
|
|
18
|
+
lastMessageAt: string;
|
|
19
|
+
constructor(data?: PartialMessage<ChatGroupDto>);
|
|
20
|
+
static readonly runtime: typeof proto3;
|
|
21
|
+
static readonly typeName = "micro.v1.chat.ChatGroupDto";
|
|
22
|
+
static readonly fields: FieldList;
|
|
23
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChatGroupDto;
|
|
24
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChatGroupDto;
|
|
25
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChatGroupDto;
|
|
26
|
+
static equals(a: ChatGroupDto | PlainMessage<ChatGroupDto> | undefined, b: ChatGroupDto | PlainMessage<ChatGroupDto> | undefined): boolean;
|
|
27
|
+
}
|
|
28
|
+
export declare class ChatGroupListResponse extends Message<ChatGroupListResponse> {
|
|
29
|
+
status?: ResponseStatus;
|
|
30
|
+
data: ChatGroupDto[];
|
|
31
|
+
constructor(data?: PartialMessage<ChatGroupListResponse>);
|
|
32
|
+
static readonly runtime: typeof proto3;
|
|
33
|
+
static readonly typeName = "micro.v1.chat.ChatGroupListResponse";
|
|
34
|
+
static readonly fields: FieldList;
|
|
35
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChatGroupListResponse;
|
|
36
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChatGroupListResponse;
|
|
37
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChatGroupListResponse;
|
|
38
|
+
static equals(a: ChatGroupListResponse | PlainMessage<ChatGroupListResponse> | undefined, b: ChatGroupListResponse | PlainMessage<ChatGroupListResponse> | undefined): boolean;
|
|
39
|
+
}
|
|
40
|
+
export declare class GroupBySlugRequest extends Message<GroupBySlugRequest> {
|
|
41
|
+
slug: string;
|
|
42
|
+
constructor(data?: PartialMessage<GroupBySlugRequest>);
|
|
43
|
+
static readonly runtime: typeof proto3;
|
|
44
|
+
static readonly typeName = "micro.v1.chat.GroupBySlugRequest";
|
|
45
|
+
static readonly fields: FieldList;
|
|
46
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GroupBySlugRequest;
|
|
47
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GroupBySlugRequest;
|
|
48
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GroupBySlugRequest;
|
|
49
|
+
static equals(a: GroupBySlugRequest | PlainMessage<GroupBySlugRequest> | undefined, b: GroupBySlugRequest | PlainMessage<GroupBySlugRequest> | undefined): boolean;
|
|
50
|
+
}
|
|
51
|
+
export declare class JoinGroupResponse extends Message<JoinGroupResponse> {
|
|
52
|
+
status?: ResponseStatus;
|
|
53
|
+
membership: string;
|
|
54
|
+
constructor(data?: PartialMessage<JoinGroupResponse>);
|
|
55
|
+
static readonly runtime: typeof proto3;
|
|
56
|
+
static readonly typeName = "micro.v1.chat.JoinGroupResponse";
|
|
57
|
+
static readonly fields: FieldList;
|
|
58
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JoinGroupResponse;
|
|
59
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JoinGroupResponse;
|
|
60
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JoinGroupResponse;
|
|
61
|
+
static equals(a: JoinGroupResponse | PlainMessage<JoinGroupResponse> | undefined, b: JoinGroupResponse | PlainMessage<JoinGroupResponse> | undefined): boolean;
|
|
62
|
+
}
|
|
63
|
+
export declare class ChatGroupSingleResponse extends Message<ChatGroupSingleResponse> {
|
|
64
|
+
status?: ResponseStatus;
|
|
65
|
+
data?: ChatGroupDto;
|
|
66
|
+
constructor(data?: PartialMessage<ChatGroupSingleResponse>);
|
|
67
|
+
static readonly runtime: typeof proto3;
|
|
68
|
+
static readonly typeName = "micro.v1.chat.ChatGroupSingleResponse";
|
|
69
|
+
static readonly fields: FieldList;
|
|
70
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChatGroupSingleResponse;
|
|
71
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChatGroupSingleResponse;
|
|
72
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChatGroupSingleResponse;
|
|
73
|
+
static equals(a: ChatGroupSingleResponse | PlainMessage<ChatGroupSingleResponse> | undefined, b: ChatGroupSingleResponse | PlainMessage<ChatGroupSingleResponse> | undefined): boolean;
|
|
74
|
+
}
|
|
75
|
+
export declare class ChatMessageDto extends Message<ChatMessageDto> {
|
|
76
|
+
id: string;
|
|
77
|
+
groupId: string;
|
|
78
|
+
userId: string;
|
|
79
|
+
username: string;
|
|
80
|
+
role: string;
|
|
81
|
+
avatarId: string;
|
|
82
|
+
type: string;
|
|
83
|
+
content: string;
|
|
84
|
+
replyToId: string;
|
|
85
|
+
replyTo?: ChatReplyPreviewDto;
|
|
86
|
+
imageUrl: string;
|
|
87
|
+
isPinned: boolean;
|
|
88
|
+
createdAt: string;
|
|
89
|
+
isDeleted: boolean;
|
|
90
|
+
constructor(data?: PartialMessage<ChatMessageDto>);
|
|
91
|
+
static readonly runtime: typeof proto3;
|
|
92
|
+
static readonly typeName = "micro.v1.chat.ChatMessageDto";
|
|
93
|
+
static readonly fields: FieldList;
|
|
94
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChatMessageDto;
|
|
95
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChatMessageDto;
|
|
96
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChatMessageDto;
|
|
97
|
+
static equals(a: ChatMessageDto | PlainMessage<ChatMessageDto> | undefined, b: ChatMessageDto | PlainMessage<ChatMessageDto> | undefined): boolean;
|
|
98
|
+
}
|
|
99
|
+
export declare class ChatReplyPreviewDto extends Message<ChatReplyPreviewDto> {
|
|
100
|
+
id: string;
|
|
101
|
+
username: string;
|
|
102
|
+
content: string;
|
|
103
|
+
constructor(data?: PartialMessage<ChatReplyPreviewDto>);
|
|
104
|
+
static readonly runtime: typeof proto3;
|
|
105
|
+
static readonly typeName = "micro.v1.chat.ChatReplyPreviewDto";
|
|
106
|
+
static readonly fields: FieldList;
|
|
107
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChatReplyPreviewDto;
|
|
108
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChatReplyPreviewDto;
|
|
109
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChatReplyPreviewDto;
|
|
110
|
+
static equals(a: ChatReplyPreviewDto | PlainMessage<ChatReplyPreviewDto> | undefined, b: ChatReplyPreviewDto | PlainMessage<ChatReplyPreviewDto> | undefined): boolean;
|
|
111
|
+
}
|
|
112
|
+
export declare class MessageHistoryRequest extends Message<MessageHistoryRequest> {
|
|
113
|
+
groupSlug: string;
|
|
114
|
+
cursor: string;
|
|
115
|
+
limit: number;
|
|
116
|
+
constructor(data?: PartialMessage<MessageHistoryRequest>);
|
|
117
|
+
static readonly runtime: typeof proto3;
|
|
118
|
+
static readonly typeName = "micro.v1.chat.MessageHistoryRequest";
|
|
119
|
+
static readonly fields: FieldList;
|
|
120
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MessageHistoryRequest;
|
|
121
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MessageHistoryRequest;
|
|
122
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MessageHistoryRequest;
|
|
123
|
+
static equals(a: MessageHistoryRequest | PlainMessage<MessageHistoryRequest> | undefined, b: MessageHistoryRequest | PlainMessage<MessageHistoryRequest> | undefined): boolean;
|
|
124
|
+
}
|
|
125
|
+
export declare class MessageHistoryResponse extends Message<MessageHistoryResponse> {
|
|
126
|
+
status?: ResponseStatus;
|
|
127
|
+
data: ChatMessageDto[];
|
|
128
|
+
nextCursor: string;
|
|
129
|
+
constructor(data?: PartialMessage<MessageHistoryResponse>);
|
|
130
|
+
static readonly runtime: typeof proto3;
|
|
131
|
+
static readonly typeName = "micro.v1.chat.MessageHistoryResponse";
|
|
132
|
+
static readonly fields: FieldList;
|
|
133
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MessageHistoryResponse;
|
|
134
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MessageHistoryResponse;
|
|
135
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MessageHistoryResponse;
|
|
136
|
+
static equals(a: MessageHistoryResponse | PlainMessage<MessageHistoryResponse> | undefined, b: MessageHistoryResponse | PlainMessage<MessageHistoryResponse> | undefined): boolean;
|
|
137
|
+
}
|
|
138
|
+
export declare class PinnedMessagesRequest extends Message<PinnedMessagesRequest> {
|
|
139
|
+
groupSlug: string;
|
|
140
|
+
constructor(data?: PartialMessage<PinnedMessagesRequest>);
|
|
141
|
+
static readonly runtime: typeof proto3;
|
|
142
|
+
static readonly typeName = "micro.v1.chat.PinnedMessagesRequest";
|
|
143
|
+
static readonly fields: FieldList;
|
|
144
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PinnedMessagesRequest;
|
|
145
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PinnedMessagesRequest;
|
|
146
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PinnedMessagesRequest;
|
|
147
|
+
static equals(a: PinnedMessagesRequest | PlainMessage<PinnedMessagesRequest> | undefined, b: PinnedMessagesRequest | PlainMessage<PinnedMessagesRequest> | undefined): boolean;
|
|
148
|
+
}
|
|
149
|
+
export declare class PinnedMessagesResponse extends Message<PinnedMessagesResponse> {
|
|
150
|
+
status?: ResponseStatus;
|
|
151
|
+
data: ChatMessageDto[];
|
|
152
|
+
constructor(data?: PartialMessage<PinnedMessagesResponse>);
|
|
153
|
+
static readonly runtime: typeof proto3;
|
|
154
|
+
static readonly typeName = "micro.v1.chat.PinnedMessagesResponse";
|
|
155
|
+
static readonly fields: FieldList;
|
|
156
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PinnedMessagesResponse;
|
|
157
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PinnedMessagesResponse;
|
|
158
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PinnedMessagesResponse;
|
|
159
|
+
static equals(a: PinnedMessagesResponse | PlainMessage<PinnedMessagesResponse> | undefined, b: PinnedMessagesResponse | PlainMessage<PinnedMessagesResponse> | undefined): boolean;
|
|
160
|
+
}
|
|
161
|
+
export declare class ReportMessageRequest extends Message<ReportMessageRequest> {
|
|
162
|
+
messageId: string;
|
|
163
|
+
reason: string;
|
|
164
|
+
constructor(data?: PartialMessage<ReportMessageRequest>);
|
|
165
|
+
static readonly runtime: typeof proto3;
|
|
166
|
+
static readonly typeName = "micro.v1.chat.ReportMessageRequest";
|
|
167
|
+
static readonly fields: FieldList;
|
|
168
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ReportMessageRequest;
|
|
169
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ReportMessageRequest;
|
|
170
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ReportMessageRequest;
|
|
171
|
+
static equals(a: ReportMessageRequest | PlainMessage<ReportMessageRequest> | undefined, b: ReportMessageRequest | PlainMessage<ReportMessageRequest> | undefined): boolean;
|
|
172
|
+
}
|
|
173
|
+
export declare class BlockUserRequest extends Message<BlockUserRequest> {
|
|
174
|
+
username: string;
|
|
175
|
+
constructor(data?: PartialMessage<BlockUserRequest>);
|
|
176
|
+
static readonly runtime: typeof proto3;
|
|
177
|
+
static readonly typeName = "micro.v1.chat.BlockUserRequest";
|
|
178
|
+
static readonly fields: FieldList;
|
|
179
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BlockUserRequest;
|
|
180
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BlockUserRequest;
|
|
181
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BlockUserRequest;
|
|
182
|
+
static equals(a: BlockUserRequest | PlainMessage<BlockUserRequest> | undefined, b: BlockUserRequest | PlainMessage<BlockUserRequest> | undefined): boolean;
|
|
183
|
+
}
|
|
184
|
+
export declare class BlockedUsersResponse extends Message<BlockedUsersResponse> {
|
|
185
|
+
status?: ResponseStatus;
|
|
186
|
+
usernames: string[];
|
|
187
|
+
userIds: string[];
|
|
188
|
+
constructor(data?: PartialMessage<BlockedUsersResponse>);
|
|
189
|
+
static readonly runtime: typeof proto3;
|
|
190
|
+
static readonly typeName = "micro.v1.chat.BlockedUsersResponse";
|
|
191
|
+
static readonly fields: FieldList;
|
|
192
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BlockedUsersResponse;
|
|
193
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BlockedUsersResponse;
|
|
194
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BlockedUsersResponse;
|
|
195
|
+
static equals(a: BlockedUsersResponse | PlainMessage<BlockedUsersResponse> | undefined, b: BlockedUsersResponse | PlainMessage<BlockedUsersResponse> | undefined): boolean;
|
|
196
|
+
}
|
|
197
|
+
export declare class GroupUpsertRequest extends Message<GroupUpsertRequest> {
|
|
198
|
+
id: string;
|
|
199
|
+
name: string;
|
|
200
|
+
description: string;
|
|
201
|
+
icon: string;
|
|
202
|
+
type: string;
|
|
203
|
+
isVipOnly: boolean;
|
|
204
|
+
slowModeSeconds: number;
|
|
205
|
+
sortOrder: number;
|
|
206
|
+
isActive: boolean;
|
|
207
|
+
constructor(data?: PartialMessage<GroupUpsertRequest>);
|
|
208
|
+
static readonly runtime: typeof proto3;
|
|
209
|
+
static readonly typeName = "micro.v1.chat.GroupUpsertRequest";
|
|
210
|
+
static readonly fields: FieldList;
|
|
211
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GroupUpsertRequest;
|
|
212
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GroupUpsertRequest;
|
|
213
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GroupUpsertRequest;
|
|
214
|
+
static equals(a: GroupUpsertRequest | PlainMessage<GroupUpsertRequest> | undefined, b: GroupUpsertRequest | PlainMessage<GroupUpsertRequest> | undefined): boolean;
|
|
215
|
+
}
|
|
216
|
+
export declare class SanctionRequest extends Message<SanctionRequest> {
|
|
217
|
+
username: string;
|
|
218
|
+
groupSlug: string;
|
|
219
|
+
type: string;
|
|
220
|
+
durationMinutes: number;
|
|
221
|
+
reason: string;
|
|
222
|
+
constructor(data?: PartialMessage<SanctionRequest>);
|
|
223
|
+
static readonly runtime: typeof proto3;
|
|
224
|
+
static readonly typeName = "micro.v1.chat.SanctionRequest";
|
|
225
|
+
static readonly fields: FieldList;
|
|
226
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SanctionRequest;
|
|
227
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SanctionRequest;
|
|
228
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SanctionRequest;
|
|
229
|
+
static equals(a: SanctionRequest | PlainMessage<SanctionRequest> | undefined, b: SanctionRequest | PlainMessage<SanctionRequest> | undefined): boolean;
|
|
230
|
+
}
|
|
231
|
+
export declare class RevokeSanctionRequest extends Message<RevokeSanctionRequest> {
|
|
232
|
+
sanctionId: string;
|
|
233
|
+
constructor(data?: PartialMessage<RevokeSanctionRequest>);
|
|
234
|
+
static readonly runtime: typeof proto3;
|
|
235
|
+
static readonly typeName = "micro.v1.chat.RevokeSanctionRequest";
|
|
236
|
+
static readonly fields: FieldList;
|
|
237
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RevokeSanctionRequest;
|
|
238
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RevokeSanctionRequest;
|
|
239
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RevokeSanctionRequest;
|
|
240
|
+
static equals(a: RevokeSanctionRequest | PlainMessage<RevokeSanctionRequest> | undefined, b: RevokeSanctionRequest | PlainMessage<RevokeSanctionRequest> | undefined): boolean;
|
|
241
|
+
}
|
|
242
|
+
export declare class DeleteMessageRequest extends Message<DeleteMessageRequest> {
|
|
243
|
+
messageId: string;
|
|
244
|
+
constructor(data?: PartialMessage<DeleteMessageRequest>);
|
|
245
|
+
static readonly runtime: typeof proto3;
|
|
246
|
+
static readonly typeName = "micro.v1.chat.DeleteMessageRequest";
|
|
247
|
+
static readonly fields: FieldList;
|
|
248
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteMessageRequest;
|
|
249
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteMessageRequest;
|
|
250
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteMessageRequest;
|
|
251
|
+
static equals(a: DeleteMessageRequest | PlainMessage<DeleteMessageRequest> | undefined, b: DeleteMessageRequest | PlainMessage<DeleteMessageRequest> | undefined): boolean;
|
|
252
|
+
}
|
|
253
|
+
export declare class PinMessageRequest extends Message<PinMessageRequest> {
|
|
254
|
+
messageId: string;
|
|
255
|
+
pinned: boolean;
|
|
256
|
+
constructor(data?: PartialMessage<PinMessageRequest>);
|
|
257
|
+
static readonly runtime: typeof proto3;
|
|
258
|
+
static readonly typeName = "micro.v1.chat.PinMessageRequest";
|
|
259
|
+
static readonly fields: FieldList;
|
|
260
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PinMessageRequest;
|
|
261
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PinMessageRequest;
|
|
262
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PinMessageRequest;
|
|
263
|
+
static equals(a: PinMessageRequest | PlainMessage<PinMessageRequest> | undefined, b: PinMessageRequest | PlainMessage<PinMessageRequest> | undefined): boolean;
|
|
264
|
+
}
|
|
265
|
+
export declare class MemberActionRequest extends Message<MemberActionRequest> {
|
|
266
|
+
groupSlug: string;
|
|
267
|
+
username: string;
|
|
268
|
+
action: string;
|
|
269
|
+
constructor(data?: PartialMessage<MemberActionRequest>);
|
|
270
|
+
static readonly runtime: typeof proto3;
|
|
271
|
+
static readonly typeName = "micro.v1.chat.MemberActionRequest";
|
|
272
|
+
static readonly fields: FieldList;
|
|
273
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MemberActionRequest;
|
|
274
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MemberActionRequest;
|
|
275
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MemberActionRequest;
|
|
276
|
+
static equals(a: MemberActionRequest | PlainMessage<MemberActionRequest> | undefined, b: MemberActionRequest | PlainMessage<MemberActionRequest> | undefined): boolean;
|
|
277
|
+
}
|
|
278
|
+
export declare class PendingMembersRequest extends Message<PendingMembersRequest> {
|
|
279
|
+
groupSlug: string;
|
|
280
|
+
constructor(data?: PartialMessage<PendingMembersRequest>);
|
|
281
|
+
static readonly runtime: typeof proto3;
|
|
282
|
+
static readonly typeName = "micro.v1.chat.PendingMembersRequest";
|
|
283
|
+
static readonly fields: FieldList;
|
|
284
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PendingMembersRequest;
|
|
285
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PendingMembersRequest;
|
|
286
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PendingMembersRequest;
|
|
287
|
+
static equals(a: PendingMembersRequest | PlainMessage<PendingMembersRequest> | undefined, b: PendingMembersRequest | PlainMessage<PendingMembersRequest> | undefined): boolean;
|
|
288
|
+
}
|
|
289
|
+
export declare class ChatMemberDto extends Message<ChatMemberDto> {
|
|
290
|
+
userId: string;
|
|
291
|
+
username: string;
|
|
292
|
+
avatarId: string;
|
|
293
|
+
role: string;
|
|
294
|
+
status: string;
|
|
295
|
+
joinedAt: string;
|
|
296
|
+
isOnline: boolean;
|
|
297
|
+
constructor(data?: PartialMessage<ChatMemberDto>);
|
|
298
|
+
static readonly runtime: typeof proto3;
|
|
299
|
+
static readonly typeName = "micro.v1.chat.ChatMemberDto";
|
|
300
|
+
static readonly fields: FieldList;
|
|
301
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChatMemberDto;
|
|
302
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChatMemberDto;
|
|
303
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChatMemberDto;
|
|
304
|
+
static equals(a: ChatMemberDto | PlainMessage<ChatMemberDto> | undefined, b: ChatMemberDto | PlainMessage<ChatMemberDto> | undefined): boolean;
|
|
305
|
+
}
|
|
306
|
+
export declare class ChatMemberListResponse extends Message<ChatMemberListResponse> {
|
|
307
|
+
status?: ResponseStatus;
|
|
308
|
+
pagination?: PaginationMetaResult;
|
|
309
|
+
data: ChatMemberDto[];
|
|
310
|
+
constructor(data?: PartialMessage<ChatMemberListResponse>);
|
|
311
|
+
static readonly runtime: typeof proto3;
|
|
312
|
+
static readonly typeName = "micro.v1.chat.ChatMemberListResponse";
|
|
313
|
+
static readonly fields: FieldList;
|
|
314
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChatMemberListResponse;
|
|
315
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChatMemberListResponse;
|
|
316
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChatMemberListResponse;
|
|
317
|
+
static equals(a: ChatMemberListResponse | PlainMessage<ChatMemberListResponse> | undefined, b: ChatMemberListResponse | PlainMessage<ChatMemberListResponse> | undefined): boolean;
|
|
318
|
+
}
|
|
319
|
+
export declare class SanctionDto extends Message<SanctionDto> {
|
|
320
|
+
id: string;
|
|
321
|
+
userId: string;
|
|
322
|
+
username: string;
|
|
323
|
+
groupSlug: string;
|
|
324
|
+
type: string;
|
|
325
|
+
reason: string;
|
|
326
|
+
expiresAt: string;
|
|
327
|
+
createdBy: string;
|
|
328
|
+
createdAt: string;
|
|
329
|
+
constructor(data?: PartialMessage<SanctionDto>);
|
|
330
|
+
static readonly runtime: typeof proto3;
|
|
331
|
+
static readonly typeName = "micro.v1.chat.SanctionDto";
|
|
332
|
+
static readonly fields: FieldList;
|
|
333
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SanctionDto;
|
|
334
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SanctionDto;
|
|
335
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SanctionDto;
|
|
336
|
+
static equals(a: SanctionDto | PlainMessage<SanctionDto> | undefined, b: SanctionDto | PlainMessage<SanctionDto> | undefined): boolean;
|
|
337
|
+
}
|
|
338
|
+
export declare class SanctionListResponse extends Message<SanctionListResponse> {
|
|
339
|
+
status?: ResponseStatus;
|
|
340
|
+
pagination?: PaginationMetaResult;
|
|
341
|
+
data: SanctionDto[];
|
|
342
|
+
constructor(data?: PartialMessage<SanctionListResponse>);
|
|
343
|
+
static readonly runtime: typeof proto3;
|
|
344
|
+
static readonly typeName = "micro.v1.chat.SanctionListResponse";
|
|
345
|
+
static readonly fields: FieldList;
|
|
346
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SanctionListResponse;
|
|
347
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SanctionListResponse;
|
|
348
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SanctionListResponse;
|
|
349
|
+
static equals(a: SanctionListResponse | PlainMessage<SanctionListResponse> | undefined, b: SanctionListResponse | PlainMessage<SanctionListResponse> | undefined): boolean;
|
|
350
|
+
}
|
|
351
|
+
export declare class ReportDto extends Message<ReportDto> {
|
|
352
|
+
id: string;
|
|
353
|
+
groupId: string;
|
|
354
|
+
messageId: string;
|
|
355
|
+
reporterId: string;
|
|
356
|
+
reportedUserId: string;
|
|
357
|
+
reportedUsername: string;
|
|
358
|
+
contentSnapshot: string;
|
|
359
|
+
reason: string;
|
|
360
|
+
status: string;
|
|
361
|
+
createdAt: string;
|
|
362
|
+
constructor(data?: PartialMessage<ReportDto>);
|
|
363
|
+
static readonly runtime: typeof proto3;
|
|
364
|
+
static readonly typeName = "micro.v1.chat.ReportDto";
|
|
365
|
+
static readonly fields: FieldList;
|
|
366
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ReportDto;
|
|
367
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ReportDto;
|
|
368
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ReportDto;
|
|
369
|
+
static equals(a: ReportDto | PlainMessage<ReportDto> | undefined, b: ReportDto | PlainMessage<ReportDto> | undefined): boolean;
|
|
370
|
+
}
|
|
371
|
+
export declare class ReportListResponse extends Message<ReportListResponse> {
|
|
372
|
+
status?: ResponseStatus;
|
|
373
|
+
pagination?: PaginationMetaResult;
|
|
374
|
+
data: ReportDto[];
|
|
375
|
+
constructor(data?: PartialMessage<ReportListResponse>);
|
|
376
|
+
static readonly runtime: typeof proto3;
|
|
377
|
+
static readonly typeName = "micro.v1.chat.ReportListResponse";
|
|
378
|
+
static readonly fields: FieldList;
|
|
379
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ReportListResponse;
|
|
380
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ReportListResponse;
|
|
381
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ReportListResponse;
|
|
382
|
+
static equals(a: ReportListResponse | PlainMessage<ReportListResponse> | undefined, b: ReportListResponse | PlainMessage<ReportListResponse> | undefined): boolean;
|
|
383
|
+
}
|
|
384
|
+
export declare class ReviewReportRequest extends Message<ReviewReportRequest> {
|
|
385
|
+
reportId: string;
|
|
386
|
+
status: string;
|
|
387
|
+
constructor(data?: PartialMessage<ReviewReportRequest>);
|
|
388
|
+
static readonly runtime: typeof proto3;
|
|
389
|
+
static readonly typeName = "micro.v1.chat.ReviewReportRequest";
|
|
390
|
+
static readonly fields: FieldList;
|
|
391
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ReviewReportRequest;
|
|
392
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ReviewReportRequest;
|
|
393
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ReviewReportRequest;
|
|
394
|
+
static equals(a: ReviewReportRequest | PlainMessage<ReviewReportRequest> | undefined, b: ReviewReportRequest | PlainMessage<ReviewReportRequest> | undefined): boolean;
|
|
395
|
+
}
|