jr-common-micro 1.1.125 → 1.1.126
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.
|
@@ -29,6 +29,8 @@ export interface ChatGroupDto {
|
|
|
29
29
|
list_visibility: string;
|
|
30
30
|
access: string;
|
|
31
31
|
theme: string;
|
|
32
|
+
name_tl: string;
|
|
33
|
+
description_tl: string;
|
|
32
34
|
}
|
|
33
35
|
export interface ChatGroupListResponse {
|
|
34
36
|
status: ResponseStatus | undefined;
|
|
@@ -71,6 +73,12 @@ export interface ChatMessageDto {
|
|
|
71
73
|
is_anonymous: boolean;
|
|
72
74
|
is_own: boolean;
|
|
73
75
|
badges: string[];
|
|
76
|
+
translation: MessageTranslationDto | undefined;
|
|
77
|
+
}
|
|
78
|
+
export interface MessageTranslationDto {
|
|
79
|
+
lang: string;
|
|
80
|
+
text: string;
|
|
81
|
+
src: string;
|
|
74
82
|
}
|
|
75
83
|
export interface ChatTickerCardDto {
|
|
76
84
|
symbol: string;
|
|
@@ -30,6 +30,8 @@ export declare class ChatGroupDto extends Message<ChatGroupDto> {
|
|
|
30
30
|
listVisibility: string;
|
|
31
31
|
access: string;
|
|
32
32
|
theme: string;
|
|
33
|
+
nameTl: string;
|
|
34
|
+
descriptionTl: string;
|
|
33
35
|
constructor(data?: PartialMessage<ChatGroupDto>);
|
|
34
36
|
static readonly runtime: typeof proto3;
|
|
35
37
|
static readonly typeName = "micro.v1.chat.ChatGroupDto";
|
|
@@ -112,6 +114,7 @@ export declare class ChatMessageDto extends Message<ChatMessageDto> {
|
|
|
112
114
|
isAnonymous: boolean;
|
|
113
115
|
isOwn: boolean;
|
|
114
116
|
badges: string[];
|
|
117
|
+
translation?: MessageTranslationDto;
|
|
115
118
|
constructor(data?: PartialMessage<ChatMessageDto>);
|
|
116
119
|
static readonly runtime: typeof proto3;
|
|
117
120
|
static readonly typeName = "micro.v1.chat.ChatMessageDto";
|
|
@@ -121,6 +124,19 @@ export declare class ChatMessageDto extends Message<ChatMessageDto> {
|
|
|
121
124
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChatMessageDto;
|
|
122
125
|
static equals(a: ChatMessageDto | PlainMessage<ChatMessageDto> | undefined, b: ChatMessageDto | PlainMessage<ChatMessageDto> | undefined): boolean;
|
|
123
126
|
}
|
|
127
|
+
export declare class MessageTranslationDto extends Message<MessageTranslationDto> {
|
|
128
|
+
lang: string;
|
|
129
|
+
text: string;
|
|
130
|
+
src: string;
|
|
131
|
+
constructor(data?: PartialMessage<MessageTranslationDto>);
|
|
132
|
+
static readonly runtime: typeof proto3;
|
|
133
|
+
static readonly typeName = "micro.v1.chat.MessageTranslationDto";
|
|
134
|
+
static readonly fields: FieldList;
|
|
135
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MessageTranslationDto;
|
|
136
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MessageTranslationDto;
|
|
137
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MessageTranslationDto;
|
|
138
|
+
static equals(a: MessageTranslationDto | PlainMessage<MessageTranslationDto> | undefined, b: MessageTranslationDto | PlainMessage<MessageTranslationDto> | undefined): boolean;
|
|
139
|
+
}
|
|
124
140
|
export declare class ChatTickerCardDto extends Message<ChatTickerCardDto> {
|
|
125
141
|
symbol: string;
|
|
126
142
|
name: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.VoiceSummaryRequest = exports.VoiceAccessResponse = exports.ReviewReportRequest = exports.ReportListResponse = exports.ReportDto = exports.SanctionListResponse = exports.SanctionDto = void 0;
|
|
3
|
+
exports.ChatUserAdminListResponse = exports.ChatUserAdminDto = exports.GroupPhotoResponse = exports.GroupPhotoSetRequest = exports.ChatMemberDto = exports.ChatMemberListRequest = exports.PendingMembersRequest = exports.MemberActionRequest = exports.PinMessageRequest = exports.DeleteMessageRequest = exports.RevokeSanctionRequest = exports.SanctionRequest = exports.GroupUpsertRequest = exports.BlockedUsersResponse = exports.BlockUserRequest = exports.ReportMessageRequest = exports.PinnedMessagesResponse = exports.PinnedMessagesRequest = exports.MessageHistoryResponse = exports.MessageHistoryRequest = exports.ChatReplyPreviewDto = exports.ChatReactionCountDto = exports.ChatReactorDto = exports.ChatPollDto = exports.ChatPollOptionDto = exports.GroupStatsResponse = exports.GroupStatsOverviewDto = exports.GroupStatsMemberDto = exports.GroupStatsDayDto = exports.GroupStatsRequest = exports.ChatMediaGetResponse = exports.GroupMediaResponse = exports.ChatMediaItemDto = exports.GroupMediaRequest = exports.ChatMediaGetRequest = exports.ChatMediaUploadResponse = exports.ChatMediaUploadRequest = exports.GifSearchResponse = exports.GifItemDto = exports.GifSearchRequest = exports.ChatMediaDto = exports.ChatLinkPreviewDto = exports.ChatTickerCardDto = exports.MessageTranslationDto = exports.ChatMessageDto = exports.ChatGroupSingleResponse = exports.JoinGroupResponse = exports.GroupBySlugRequest = exports.ChatGroupListResponse = exports.ChatGroupDto = void 0;
|
|
4
|
+
exports.VoiceSummaryRequest = exports.VoiceAccessResponse = exports.ReviewReportRequest = exports.ReportListResponse = exports.ReportDto = exports.SanctionListResponse = exports.SanctionDto = exports.ChatMemberListResponse = void 0;
|
|
5
5
|
const protobuf_1 = require("@bufbuild/protobuf");
|
|
6
6
|
const general_pb_js_1 = require("../general_pb.js");
|
|
7
7
|
class ChatGroupDto extends protobuf_1.Message {
|
|
@@ -33,6 +33,8 @@ class ChatGroupDto extends protobuf_1.Message {
|
|
|
33
33
|
listVisibility = "";
|
|
34
34
|
access = "";
|
|
35
35
|
theme = "";
|
|
36
|
+
nameTl = "";
|
|
37
|
+
descriptionTl = "";
|
|
36
38
|
constructor(data) {
|
|
37
39
|
super();
|
|
38
40
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -68,6 +70,8 @@ class ChatGroupDto extends protobuf_1.Message {
|
|
|
68
70
|
{ no: 26, name: "list_visibility", kind: "scalar", T: 9 },
|
|
69
71
|
{ no: 27, name: "access", kind: "scalar", T: 9 },
|
|
70
72
|
{ no: 28, name: "theme", kind: "scalar", T: 9 },
|
|
73
|
+
{ no: 29, name: "name_tl", kind: "scalar", T: 9 },
|
|
74
|
+
{ no: 30, name: "description_tl", kind: "scalar", T: 9 },
|
|
71
75
|
]);
|
|
72
76
|
static fromBinary(bytes, options) {
|
|
73
77
|
return new ChatGroupDto().fromBinary(bytes, options);
|
|
@@ -215,6 +219,7 @@ class ChatMessageDto extends protobuf_1.Message {
|
|
|
215
219
|
isAnonymous = false;
|
|
216
220
|
isOwn = false;
|
|
217
221
|
badges = [];
|
|
222
|
+
translation;
|
|
218
223
|
constructor(data) {
|
|
219
224
|
super();
|
|
220
225
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -247,6 +252,7 @@ class ChatMessageDto extends protobuf_1.Message {
|
|
|
247
252
|
{ no: 23, name: "is_anonymous", kind: "scalar", T: 8 },
|
|
248
253
|
{ no: 24, name: "is_own", kind: "scalar", T: 8 },
|
|
249
254
|
{ no: 25, name: "badges", kind: "scalar", T: 9, repeated: true },
|
|
255
|
+
{ no: 26, name: "translation", kind: "message", T: MessageTranslationDto },
|
|
250
256
|
]);
|
|
251
257
|
static fromBinary(bytes, options) {
|
|
252
258
|
return new ChatMessageDto().fromBinary(bytes, options);
|
|
@@ -262,6 +268,35 @@ class ChatMessageDto extends protobuf_1.Message {
|
|
|
262
268
|
}
|
|
263
269
|
}
|
|
264
270
|
exports.ChatMessageDto = ChatMessageDto;
|
|
271
|
+
class MessageTranslationDto extends protobuf_1.Message {
|
|
272
|
+
lang = "";
|
|
273
|
+
text = "";
|
|
274
|
+
src = "";
|
|
275
|
+
constructor(data) {
|
|
276
|
+
super();
|
|
277
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
278
|
+
}
|
|
279
|
+
static runtime = protobuf_1.proto3;
|
|
280
|
+
static typeName = "micro.v1.chat.MessageTranslationDto";
|
|
281
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
282
|
+
{ no: 1, name: "lang", kind: "scalar", T: 9 },
|
|
283
|
+
{ no: 2, name: "text", kind: "scalar", T: 9 },
|
|
284
|
+
{ no: 3, name: "src", kind: "scalar", T: 9 },
|
|
285
|
+
]);
|
|
286
|
+
static fromBinary(bytes, options) {
|
|
287
|
+
return new MessageTranslationDto().fromBinary(bytes, options);
|
|
288
|
+
}
|
|
289
|
+
static fromJson(jsonValue, options) {
|
|
290
|
+
return new MessageTranslationDto().fromJson(jsonValue, options);
|
|
291
|
+
}
|
|
292
|
+
static fromJsonString(jsonString, options) {
|
|
293
|
+
return new MessageTranslationDto().fromJsonString(jsonString, options);
|
|
294
|
+
}
|
|
295
|
+
static equals(a, b) {
|
|
296
|
+
return protobuf_1.proto3.util.equals(MessageTranslationDto, a, b);
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
exports.MessageTranslationDto = MessageTranslationDto;
|
|
265
300
|
class ChatTickerCardDto extends protobuf_1.Message {
|
|
266
301
|
symbol = "";
|
|
267
302
|
name = "";
|
package/package.json
CHANGED
|
@@ -52,6 +52,11 @@ message ChatGroupDto {
|
|
|
52
52
|
string access = 27;
|
|
53
53
|
// Look of the group's row and header: default | gold.
|
|
54
54
|
string theme = 28;
|
|
55
|
+
// The name and description in the caller's language (accept-language),
|
|
56
|
+
// when a translation exists; empty otherwise. Admin screens keep the
|
|
57
|
+
// originals.
|
|
58
|
+
string name_tl = 29;
|
|
59
|
+
string description_tl = 30;
|
|
55
60
|
}
|
|
56
61
|
|
|
57
62
|
message ChatGroupListResponse {
|
|
@@ -120,7 +125,18 @@ message ChatMessageDto {
|
|
|
120
125
|
bool is_own = 24;
|
|
121
126
|
// Display badges of the user (gold | premium); empty for anonymous.
|
|
122
127
|
repeated string badges = 25;
|
|
128
|
+
// The content in the caller's language (accept-language), once it has
|
|
129
|
+
// been translated; absent otherwise. `content` stays the original.
|
|
130
|
+
MessageTranslationDto translation = 26;
|
|
131
|
+
}
|
|
123
132
|
|
|
133
|
+
// A machine translation of a message's content.
|
|
134
|
+
message MessageTranslationDto {
|
|
135
|
+
// The language of `text` (one of the app's languages).
|
|
136
|
+
string lang = 1;
|
|
137
|
+
string text = 2;
|
|
138
|
+
// The detected language of the original.
|
|
139
|
+
string src = 3;
|
|
124
140
|
}
|
|
125
141
|
|
|
126
142
|
message ChatTickerCardDto {
|