jr-common-micro 1.1.88 → 1.1.90
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 +10 -0
- package/dist/proto/micro/v1/chat/chat_messages_pb.d.ts +18 -0
- package/dist/proto/micro/v1/chat/chat_messages_pb.js +40 -1
- package/dist/proto/micro/v1/chat/services_connect.d.ts +7 -1
- package/dist/proto/micro/v1/chat/services_connect.js +6 -0
- package/dist/proto/micro/v1/chat/services_nest.d.ts +3 -1
- package/dist/proto/micro/v1/chat/services_nest.js +1 -0
- package/dist/proto/micro/v1/voice/services_connect.d.ts +7 -1
- package/dist/proto/micro/v1/voice/services_connect.js +6 -0
- package/dist/proto/micro/v1/voice/services_nest.d.ts +3 -1
- package/dist/proto/micro/v1/voice/services_nest.js +1 -0
- package/dist/proto/micro/v1/voice/voice_messages_nest.d.ts +5 -0
- package/dist/proto/micro/v1/voice/voice_messages_pb.d.ts +13 -0
- package/dist/proto/micro/v1/voice/voice_messages_pb.js +30 -1
- package/package.json +1 -1
- package/proto/micro/v1/chat/chat_messages.proto +19 -0
- package/proto/micro/v1/chat/services.proto +1 -0
- package/proto/micro/v1/voice/services.proto +2 -0
- package/proto/micro/v1/voice/voice_messages.proto +9 -0
|
@@ -24,6 +24,8 @@ export interface ChatGroupDto {
|
|
|
24
24
|
post_policy: string;
|
|
25
25
|
retention_hours: number;
|
|
26
26
|
viewer_anonymous: boolean;
|
|
27
|
+
voice_policy: string;
|
|
28
|
+
voice_reactions: boolean;
|
|
27
29
|
}
|
|
28
30
|
export interface ChatGroupListResponse {
|
|
29
31
|
status: ResponseStatus | undefined;
|
|
@@ -274,6 +276,8 @@ export interface GroupUpsertRequest {
|
|
|
274
276
|
is_active: boolean;
|
|
275
277
|
post_policy: string;
|
|
276
278
|
retention_hours: number;
|
|
279
|
+
voice_policy: string;
|
|
280
|
+
voice_reactions: string;
|
|
277
281
|
}
|
|
278
282
|
export interface SanctionRequest {
|
|
279
283
|
username: string;
|
|
@@ -398,5 +402,11 @@ export interface VoiceAccessResponse {
|
|
|
398
402
|
reason: string;
|
|
399
403
|
group_id: string;
|
|
400
404
|
group_name: string;
|
|
405
|
+
badges: string[];
|
|
406
|
+
reactions_enabled: boolean;
|
|
407
|
+
}
|
|
408
|
+
export interface VoiceSummaryRequest {
|
|
409
|
+
group_id: string;
|
|
410
|
+
content: string;
|
|
401
411
|
}
|
|
402
412
|
export declare const MICRO_V1_CHAT_PACKAGE_NAME = "micro.v1.chat";
|
|
@@ -25,6 +25,8 @@ export declare class ChatGroupDto extends Message<ChatGroupDto> {
|
|
|
25
25
|
postPolicy: string;
|
|
26
26
|
retentionHours: number;
|
|
27
27
|
viewerAnonymous: boolean;
|
|
28
|
+
voicePolicy: string;
|
|
29
|
+
voiceReactions: boolean;
|
|
28
30
|
constructor(data?: PartialMessage<ChatGroupDto>);
|
|
29
31
|
static readonly runtime: typeof proto3;
|
|
30
32
|
static readonly typeName = "micro.v1.chat.ChatGroupDto";
|
|
@@ -563,6 +565,8 @@ export declare class GroupUpsertRequest extends Message<GroupUpsertRequest> {
|
|
|
563
565
|
isActive: boolean;
|
|
564
566
|
postPolicy: string;
|
|
565
567
|
retentionHours: number;
|
|
568
|
+
voicePolicy: string;
|
|
569
|
+
voiceReactions: string;
|
|
566
570
|
constructor(data?: PartialMessage<GroupUpsertRequest>);
|
|
567
571
|
static readonly runtime: typeof proto3;
|
|
568
572
|
static readonly typeName = "micro.v1.chat.GroupUpsertRequest";
|
|
@@ -839,6 +843,8 @@ export declare class VoiceAccessResponse extends Message<VoiceAccessResponse> {
|
|
|
839
843
|
reason: string;
|
|
840
844
|
groupId: string;
|
|
841
845
|
groupName: string;
|
|
846
|
+
badges: string[];
|
|
847
|
+
reactionsEnabled: boolean;
|
|
842
848
|
constructor(data?: PartialMessage<VoiceAccessResponse>);
|
|
843
849
|
static readonly runtime: typeof proto3;
|
|
844
850
|
static readonly typeName = "micro.v1.chat.VoiceAccessResponse";
|
|
@@ -848,3 +854,15 @@ export declare class VoiceAccessResponse extends Message<VoiceAccessResponse> {
|
|
|
848
854
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VoiceAccessResponse;
|
|
849
855
|
static equals(a: VoiceAccessResponse | PlainMessage<VoiceAccessResponse> | undefined, b: VoiceAccessResponse | PlainMessage<VoiceAccessResponse> | undefined): boolean;
|
|
850
856
|
}
|
|
857
|
+
export declare class VoiceSummaryRequest extends Message<VoiceSummaryRequest> {
|
|
858
|
+
groupId: string;
|
|
859
|
+
content: string;
|
|
860
|
+
constructor(data?: PartialMessage<VoiceSummaryRequest>);
|
|
861
|
+
static readonly runtime: typeof proto3;
|
|
862
|
+
static readonly typeName = "micro.v1.chat.VoiceSummaryRequest";
|
|
863
|
+
static readonly fields: FieldList;
|
|
864
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VoiceSummaryRequest;
|
|
865
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VoiceSummaryRequest;
|
|
866
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VoiceSummaryRequest;
|
|
867
|
+
static equals(a: VoiceSummaryRequest | PlainMessage<VoiceSummaryRequest> | undefined, b: VoiceSummaryRequest | PlainMessage<VoiceSummaryRequest> | undefined): boolean;
|
|
868
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ChatMemberListResponse = 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.ChatMessageDto = exports.ChatGroupSingleResponse = exports.JoinGroupResponse = exports.GroupBySlugRequest = exports.ChatGroupListResponse = exports.ChatGroupDto = void 0;
|
|
4
|
-
exports.VoiceAccessResponse = exports.ReviewReportRequest = exports.ReportListResponse = exports.ReportDto = exports.SanctionListResponse = exports.SanctionDto = void 0;
|
|
4
|
+
exports.VoiceSummaryRequest = exports.VoiceAccessResponse = exports.ReviewReportRequest = exports.ReportListResponse = exports.ReportDto = exports.SanctionListResponse = exports.SanctionDto = 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 {
|
|
@@ -28,6 +28,8 @@ class ChatGroupDto extends protobuf_1.Message {
|
|
|
28
28
|
postPolicy = "";
|
|
29
29
|
retentionHours = 0;
|
|
30
30
|
viewerAnonymous = false;
|
|
31
|
+
voicePolicy = "";
|
|
32
|
+
voiceReactions = false;
|
|
31
33
|
constructor(data) {
|
|
32
34
|
super();
|
|
33
35
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -58,6 +60,8 @@ class ChatGroupDto extends protobuf_1.Message {
|
|
|
58
60
|
{ no: 21, name: "post_policy", kind: "scalar", T: 9 },
|
|
59
61
|
{ no: 22, name: "retention_hours", kind: "scalar", T: 5 },
|
|
60
62
|
{ no: 23, name: "viewer_anonymous", kind: "scalar", T: 8 },
|
|
63
|
+
{ no: 24, name: "voice_policy", kind: "scalar", T: 9 },
|
|
64
|
+
{ no: 25, name: "voice_reactions", kind: "scalar", T: 8 },
|
|
61
65
|
]);
|
|
62
66
|
static fromBinary(bytes, options) {
|
|
63
67
|
return new ChatGroupDto().fromBinary(bytes, options);
|
|
@@ -1224,6 +1228,8 @@ class GroupUpsertRequest extends protobuf_1.Message {
|
|
|
1224
1228
|
isActive = false;
|
|
1225
1229
|
postPolicy = "";
|
|
1226
1230
|
retentionHours = 0;
|
|
1231
|
+
voicePolicy = "";
|
|
1232
|
+
voiceReactions = "";
|
|
1227
1233
|
constructor(data) {
|
|
1228
1234
|
super();
|
|
1229
1235
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -1242,6 +1248,8 @@ class GroupUpsertRequest extends protobuf_1.Message {
|
|
|
1242
1248
|
{ no: 9, name: "is_active", kind: "scalar", T: 8 },
|
|
1243
1249
|
{ no: 10, name: "post_policy", kind: "scalar", T: 9 },
|
|
1244
1250
|
{ no: 11, name: "retention_hours", kind: "scalar", T: 5 },
|
|
1251
|
+
{ no: 12, name: "voice_policy", kind: "scalar", T: 9 },
|
|
1252
|
+
{ no: 13, name: "voice_reactions", kind: "scalar", T: 9 },
|
|
1245
1253
|
]);
|
|
1246
1254
|
static fromBinary(bytes, options) {
|
|
1247
1255
|
return new GroupUpsertRequest().fromBinary(bytes, options);
|
|
@@ -1834,6 +1842,8 @@ class VoiceAccessResponse extends protobuf_1.Message {
|
|
|
1834
1842
|
reason = "";
|
|
1835
1843
|
groupId = "";
|
|
1836
1844
|
groupName = "";
|
|
1845
|
+
badges = [];
|
|
1846
|
+
reactionsEnabled = false;
|
|
1837
1847
|
constructor(data) {
|
|
1838
1848
|
super();
|
|
1839
1849
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -1851,6 +1861,8 @@ class VoiceAccessResponse extends protobuf_1.Message {
|
|
|
1851
1861
|
{ no: 8, name: "reason", kind: "scalar", T: 9 },
|
|
1852
1862
|
{ no: 9, name: "group_id", kind: "scalar", T: 9 },
|
|
1853
1863
|
{ no: 10, name: "group_name", kind: "scalar", T: 9 },
|
|
1864
|
+
{ no: 11, name: "badges", kind: "scalar", T: 9, repeated: true },
|
|
1865
|
+
{ no: 12, name: "reactions_enabled", kind: "scalar", T: 8 },
|
|
1854
1866
|
]);
|
|
1855
1867
|
static fromBinary(bytes, options) {
|
|
1856
1868
|
return new VoiceAccessResponse().fromBinary(bytes, options);
|
|
@@ -1866,3 +1878,30 @@ class VoiceAccessResponse extends protobuf_1.Message {
|
|
|
1866
1878
|
}
|
|
1867
1879
|
}
|
|
1868
1880
|
exports.VoiceAccessResponse = VoiceAccessResponse;
|
|
1881
|
+
class VoiceSummaryRequest extends protobuf_1.Message {
|
|
1882
|
+
groupId = "";
|
|
1883
|
+
content = "";
|
|
1884
|
+
constructor(data) {
|
|
1885
|
+
super();
|
|
1886
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
1887
|
+
}
|
|
1888
|
+
static runtime = protobuf_1.proto3;
|
|
1889
|
+
static typeName = "micro.v1.chat.VoiceSummaryRequest";
|
|
1890
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
1891
|
+
{ no: 1, name: "group_id", kind: "scalar", T: 9 },
|
|
1892
|
+
{ no: 2, name: "content", kind: "scalar", T: 9 },
|
|
1893
|
+
]);
|
|
1894
|
+
static fromBinary(bytes, options) {
|
|
1895
|
+
return new VoiceSummaryRequest().fromBinary(bytes, options);
|
|
1896
|
+
}
|
|
1897
|
+
static fromJson(jsonValue, options) {
|
|
1898
|
+
return new VoiceSummaryRequest().fromJson(jsonValue, options);
|
|
1899
|
+
}
|
|
1900
|
+
static fromJsonString(jsonString, options) {
|
|
1901
|
+
return new VoiceSummaryRequest().fromJsonString(jsonString, options);
|
|
1902
|
+
}
|
|
1903
|
+
static equals(a, b) {
|
|
1904
|
+
return protobuf_1.proto3.util.equals(VoiceSummaryRequest, a, b);
|
|
1905
|
+
}
|
|
1906
|
+
}
|
|
1907
|
+
exports.VoiceSummaryRequest = VoiceSummaryRequest;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ByIdRequest, EmptyRequest, EmptyResponse, PaginateRequest } from "../general_pb.js";
|
|
2
|
-
import { BlockedUsersResponse, BlockUserRequest, ChatGroupListResponse, ChatGroupSingleResponse, ChatMediaGetRequest, ChatMediaGetResponse, ChatMediaUploadRequest, ChatMediaUploadResponse, ChatMemberListRequest, ChatMemberListResponse, ChatUserAdminListResponse, DeleteMessageRequest, GifSearchRequest, GifSearchResponse, GroupBySlugRequest, GroupMediaRequest, GroupMediaResponse, GroupPhotoResponse, GroupPhotoSetRequest, GroupStatsRequest, GroupStatsResponse, GroupUpsertRequest, JoinGroupResponse, MemberActionRequest, MessageHistoryRequest, MessageHistoryResponse, PendingMembersRequest, PinMessageRequest, PinnedMessagesRequest, PinnedMessagesResponse, ReportListResponse, ReportMessageRequest, ReviewReportRequest, RevokeSanctionRequest, SanctionListResponse, SanctionRequest, VoiceAccessResponse } from "./chat_messages_pb.js";
|
|
2
|
+
import { BlockedUsersResponse, BlockUserRequest, ChatGroupListResponse, ChatGroupSingleResponse, ChatMediaGetRequest, ChatMediaGetResponse, ChatMediaUploadRequest, ChatMediaUploadResponse, ChatMemberListRequest, ChatMemberListResponse, ChatUserAdminListResponse, DeleteMessageRequest, GifSearchRequest, GifSearchResponse, GroupBySlugRequest, GroupMediaRequest, GroupMediaResponse, GroupPhotoResponse, GroupPhotoSetRequest, GroupStatsRequest, GroupStatsResponse, GroupUpsertRequest, JoinGroupResponse, MemberActionRequest, MessageHistoryRequest, MessageHistoryResponse, PendingMembersRequest, PinMessageRequest, PinnedMessagesRequest, PinnedMessagesResponse, ReportListResponse, ReportMessageRequest, ReviewReportRequest, RevokeSanctionRequest, SanctionListResponse, SanctionRequest, VoiceAccessResponse, VoiceSummaryRequest } from "./chat_messages_pb.js";
|
|
3
3
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
4
4
|
export declare const PChatService: {
|
|
5
5
|
readonly typeName: "micro.v1.chat.PChatService";
|
|
@@ -70,6 +70,12 @@ export declare const PChatService: {
|
|
|
70
70
|
readonly O: typeof VoiceAccessResponse;
|
|
71
71
|
readonly kind: MethodKind.ServerStreaming;
|
|
72
72
|
};
|
|
73
|
+
readonly postVoiceSummary: {
|
|
74
|
+
readonly name: "PostVoiceSummary";
|
|
75
|
+
readonly I: typeof VoiceSummaryRequest;
|
|
76
|
+
readonly O: typeof EmptyResponse;
|
|
77
|
+
readonly kind: MethodKind.ServerStreaming;
|
|
78
|
+
};
|
|
73
79
|
readonly getGroupPhoto: {
|
|
74
80
|
readonly name: "GetGroupPhoto";
|
|
75
81
|
readonly I: typeof ByIdRequest;
|
|
@@ -73,6 +73,12 @@ exports.PChatService = {
|
|
|
73
73
|
O: chat_messages_pb_js_1.VoiceAccessResponse,
|
|
74
74
|
kind: protobuf_1.MethodKind.ServerStreaming,
|
|
75
75
|
},
|
|
76
|
+
postVoiceSummary: {
|
|
77
|
+
name: "PostVoiceSummary",
|
|
78
|
+
I: chat_messages_pb_js_1.VoiceSummaryRequest,
|
|
79
|
+
O: general_pb_js_1.EmptyResponse,
|
|
80
|
+
kind: protobuf_1.MethodKind.ServerStreaming,
|
|
81
|
+
},
|
|
76
82
|
getGroupPhoto: {
|
|
77
83
|
name: "GetGroupPhoto",
|
|
78
84
|
I: general_pb_js_1.ByIdRequest,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Metadata } from "@grpc/grpc-js";
|
|
2
2
|
import { Observable } from "rxjs";
|
|
3
3
|
import { ByIdRequest, EmptyRequest, EmptyResponse, PaginateRequest } from "../general_nest";
|
|
4
|
-
import { BlockedUsersResponse, BlockUserRequest, ChatGroupListResponse, ChatGroupSingleResponse, ChatMediaGetRequest, ChatMediaGetResponse, ChatMediaUploadRequest, ChatMediaUploadResponse, ChatMemberListRequest, ChatMemberListResponse, ChatUserAdminListResponse, DeleteMessageRequest, GifSearchRequest, GifSearchResponse, GroupBySlugRequest, GroupMediaRequest, GroupMediaResponse, GroupPhotoResponse, GroupPhotoSetRequest, GroupStatsRequest, GroupStatsResponse, GroupUpsertRequest, JoinGroupResponse, MemberActionRequest, MessageHistoryRequest, MessageHistoryResponse, PendingMembersRequest, PinMessageRequest, PinnedMessagesRequest, PinnedMessagesResponse, ReportListResponse, ReportMessageRequest, ReviewReportRequest, RevokeSanctionRequest, SanctionListResponse, SanctionRequest, VoiceAccessResponse } from "./chat_messages_nest";
|
|
4
|
+
import { BlockedUsersResponse, BlockUserRequest, ChatGroupListResponse, ChatGroupSingleResponse, ChatMediaGetRequest, ChatMediaGetResponse, ChatMediaUploadRequest, ChatMediaUploadResponse, ChatMemberListRequest, ChatMemberListResponse, ChatUserAdminListResponse, DeleteMessageRequest, GifSearchRequest, GifSearchResponse, GroupBySlugRequest, GroupMediaRequest, GroupMediaResponse, GroupPhotoResponse, GroupPhotoSetRequest, GroupStatsRequest, GroupStatsResponse, GroupUpsertRequest, JoinGroupResponse, MemberActionRequest, MessageHistoryRequest, MessageHistoryResponse, PendingMembersRequest, PinMessageRequest, PinnedMessagesRequest, PinnedMessagesResponse, ReportListResponse, ReportMessageRequest, ReviewReportRequest, RevokeSanctionRequest, SanctionListResponse, SanctionRequest, VoiceAccessResponse, VoiceSummaryRequest } from "./chat_messages_nest";
|
|
5
5
|
export declare const protobufPackage = "micro.v1.chat";
|
|
6
6
|
export declare const MICRO_V1_CHAT_PACKAGE_NAME = "micro.v1.chat";
|
|
7
7
|
export interface PChatServiceClient {
|
|
@@ -16,6 +16,7 @@ export interface PChatServiceClient {
|
|
|
16
16
|
groupStats(request: GroupStatsRequest, metadata?: Metadata): Observable<GroupStatsResponse>;
|
|
17
17
|
gifSearch(request: GifSearchRequest, metadata?: Metadata): Observable<GifSearchResponse>;
|
|
18
18
|
voiceAccess(request: GroupBySlugRequest, metadata?: Metadata): Observable<VoiceAccessResponse>;
|
|
19
|
+
postVoiceSummary(request: VoiceSummaryRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
19
20
|
getGroupPhoto(request: ByIdRequest, metadata?: Metadata): Observable<GroupPhotoResponse>;
|
|
20
21
|
uploadChatMedia(request: ChatMediaUploadRequest, metadata?: Metadata): Observable<ChatMediaUploadResponse>;
|
|
21
22
|
getChatMedia(request: ChatMediaGetRequest, metadata?: Metadata): Observable<ChatMediaGetResponse>;
|
|
@@ -37,6 +38,7 @@ export interface PChatServiceController {
|
|
|
37
38
|
groupStats(request: GroupStatsRequest, metadata?: Metadata): Observable<GroupStatsResponse>;
|
|
38
39
|
gifSearch(request: GifSearchRequest, metadata?: Metadata): Observable<GifSearchResponse>;
|
|
39
40
|
voiceAccess(request: GroupBySlugRequest, metadata?: Metadata): Observable<VoiceAccessResponse>;
|
|
41
|
+
postVoiceSummary(request: VoiceSummaryRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
40
42
|
getGroupPhoto(request: ByIdRequest, metadata?: Metadata): Observable<GroupPhotoResponse>;
|
|
41
43
|
uploadChatMedia(request: ChatMediaUploadRequest, metadata?: Metadata): Observable<ChatMediaUploadResponse>;
|
|
42
44
|
getChatMedia(request: ChatMediaGetRequest, metadata?: Metadata): Observable<ChatMediaGetResponse>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ByIdRequest, EmptyRequest, EmptyResponse } from "../general_pb.js";
|
|
2
|
-
import { VoiceHandsResponse, VoiceJoinResponse, VoiceRoomByGroupRequest, VoiceRoomIdRequest, VoiceRoomListResponse, VoiceRoomResponse, VoiceSpeakerRequest, VoiceStartRequest } from "./voice_messages_pb.js";
|
|
2
|
+
import { VoiceHandsResponse, VoiceJoinResponse, VoiceReactRequest, VoiceRoomByGroupRequest, VoiceRoomIdRequest, VoiceRoomListResponse, VoiceRoomResponse, VoiceSpeakerRequest, VoiceStartRequest } from "./voice_messages_pb.js";
|
|
3
3
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
4
4
|
export declare const PVoiceService: {
|
|
5
5
|
readonly typeName: "micro.v1.voice.PVoiceService";
|
|
@@ -58,6 +58,12 @@ export declare const PVoiceService: {
|
|
|
58
58
|
readonly O: typeof EmptyResponse;
|
|
59
59
|
readonly kind: MethodKind.ServerStreaming;
|
|
60
60
|
};
|
|
61
|
+
readonly react: {
|
|
62
|
+
readonly name: "React";
|
|
63
|
+
readonly I: typeof VoiceReactRequest;
|
|
64
|
+
readonly O: typeof EmptyResponse;
|
|
65
|
+
readonly kind: MethodKind.ServerStreaming;
|
|
66
|
+
};
|
|
61
67
|
readonly removeUserData: {
|
|
62
68
|
readonly name: "RemoveUserData";
|
|
63
69
|
readonly I: typeof ByIdRequest;
|
|
@@ -61,6 +61,12 @@ exports.PVoiceService = {
|
|
|
61
61
|
O: general_pb_js_1.EmptyResponse,
|
|
62
62
|
kind: protobuf_1.MethodKind.ServerStreaming,
|
|
63
63
|
},
|
|
64
|
+
react: {
|
|
65
|
+
name: "React",
|
|
66
|
+
I: voice_messages_pb_js_1.VoiceReactRequest,
|
|
67
|
+
O: general_pb_js_1.EmptyResponse,
|
|
68
|
+
kind: protobuf_1.MethodKind.ServerStreaming,
|
|
69
|
+
},
|
|
64
70
|
removeUserData: {
|
|
65
71
|
name: "RemoveUserData",
|
|
66
72
|
I: general_pb_js_1.ByIdRequest,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Metadata } from "@grpc/grpc-js";
|
|
2
2
|
import { Observable } from "rxjs";
|
|
3
3
|
import { ByIdRequest, EmptyRequest, EmptyResponse } from "../general_nest";
|
|
4
|
-
import { VoiceHandsResponse, VoiceJoinResponse, VoiceRoomByGroupRequest, VoiceRoomIdRequest, VoiceRoomListResponse, VoiceRoomResponse, VoiceSpeakerRequest, VoiceStartRequest } from "./voice_messages_nest";
|
|
4
|
+
import { VoiceHandsResponse, VoiceJoinResponse, VoiceReactRequest, VoiceRoomByGroupRequest, VoiceRoomIdRequest, VoiceRoomListResponse, VoiceRoomResponse, VoiceSpeakerRequest, VoiceStartRequest } from "./voice_messages_nest";
|
|
5
5
|
export declare const protobufPackage = "micro.v1.voice";
|
|
6
6
|
export declare const MICRO_V1_VOICE_PACKAGE_NAME = "micro.v1.voice";
|
|
7
7
|
export interface PVoiceServiceClient {
|
|
@@ -14,6 +14,7 @@ export interface PVoiceServiceClient {
|
|
|
14
14
|
lowerHand(request: VoiceRoomIdRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
15
15
|
listHands(request: VoiceRoomIdRequest, metadata?: Metadata): Observable<VoiceHandsResponse>;
|
|
16
16
|
setSpeaker(request: VoiceSpeakerRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
17
|
+
react(request: VoiceReactRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
17
18
|
removeUserData(request: ByIdRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
18
19
|
}
|
|
19
20
|
export interface PVoiceServiceController {
|
|
@@ -26,6 +27,7 @@ export interface PVoiceServiceController {
|
|
|
26
27
|
lowerHand(request: VoiceRoomIdRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
27
28
|
listHands(request: VoiceRoomIdRequest, metadata?: Metadata): Observable<VoiceHandsResponse>;
|
|
28
29
|
setSpeaker(request: VoiceSpeakerRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
30
|
+
react(request: VoiceReactRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
29
31
|
removeUserData(request: ByIdRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
30
32
|
}
|
|
31
33
|
export declare function PVoiceServiceControllerMethods(): (constructor: Function) => void;
|
|
@@ -15,6 +15,11 @@ export interface VoiceRoom {
|
|
|
15
15
|
started_at: string;
|
|
16
16
|
ended_at: string;
|
|
17
17
|
livekit_room: string;
|
|
18
|
+
reactions_enabled: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface VoiceReactRequest {
|
|
21
|
+
room_id: string;
|
|
22
|
+
emoji: string;
|
|
18
23
|
}
|
|
19
24
|
export interface VoiceRoomByGroupRequest {
|
|
20
25
|
group_slug: string;
|
|
@@ -16,6 +16,7 @@ export declare class VoiceRoom extends Message<VoiceRoom> {
|
|
|
16
16
|
startedAt: string;
|
|
17
17
|
endedAt: string;
|
|
18
18
|
livekitRoom: string;
|
|
19
|
+
reactionsEnabled: boolean;
|
|
19
20
|
constructor(data?: PartialMessage<VoiceRoom>);
|
|
20
21
|
static readonly runtime: typeof proto3;
|
|
21
22
|
static readonly typeName = "micro.v1.voice.VoiceRoom";
|
|
@@ -25,6 +26,18 @@ export declare class VoiceRoom extends Message<VoiceRoom> {
|
|
|
25
26
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VoiceRoom;
|
|
26
27
|
static equals(a: VoiceRoom | PlainMessage<VoiceRoom> | undefined, b: VoiceRoom | PlainMessage<VoiceRoom> | undefined): boolean;
|
|
27
28
|
}
|
|
29
|
+
export declare class VoiceReactRequest extends Message<VoiceReactRequest> {
|
|
30
|
+
roomId: string;
|
|
31
|
+
emoji: string;
|
|
32
|
+
constructor(data?: PartialMessage<VoiceReactRequest>);
|
|
33
|
+
static readonly runtime: typeof proto3;
|
|
34
|
+
static readonly typeName = "micro.v1.voice.VoiceReactRequest";
|
|
35
|
+
static readonly fields: FieldList;
|
|
36
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VoiceReactRequest;
|
|
37
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VoiceReactRequest;
|
|
38
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VoiceReactRequest;
|
|
39
|
+
static equals(a: VoiceReactRequest | PlainMessage<VoiceReactRequest> | undefined, b: VoiceReactRequest | PlainMessage<VoiceReactRequest> | undefined): boolean;
|
|
40
|
+
}
|
|
28
41
|
export declare class VoiceRoomByGroupRequest extends Message<VoiceRoomByGroupRequest> {
|
|
29
42
|
groupSlug: string;
|
|
30
43
|
constructor(data?: PartialMessage<VoiceRoomByGroupRequest>);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VoiceHandsResponse = exports.VoiceHand = exports.VoiceSpeakerRequest = exports.VoiceJoinResponse = exports.VoiceRoomListResponse = exports.VoiceRoomResponse = exports.VoiceStartRequest = exports.VoiceRoomIdRequest = exports.VoiceRoomByGroupRequest = exports.VoiceRoom = void 0;
|
|
3
|
+
exports.VoiceHandsResponse = exports.VoiceHand = exports.VoiceSpeakerRequest = exports.VoiceJoinResponse = exports.VoiceRoomListResponse = exports.VoiceRoomResponse = exports.VoiceStartRequest = exports.VoiceRoomIdRequest = exports.VoiceRoomByGroupRequest = exports.VoiceReactRequest = exports.VoiceRoom = void 0;
|
|
4
4
|
const protobuf_1 = require("@bufbuild/protobuf");
|
|
5
5
|
const general_pb_js_1 = require("../general_pb.js");
|
|
6
6
|
class VoiceRoom extends protobuf_1.Message {
|
|
@@ -18,6 +18,7 @@ class VoiceRoom extends protobuf_1.Message {
|
|
|
18
18
|
startedAt = "";
|
|
19
19
|
endedAt = "";
|
|
20
20
|
livekitRoom = "";
|
|
21
|
+
reactionsEnabled = false;
|
|
21
22
|
constructor(data) {
|
|
22
23
|
super();
|
|
23
24
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -39,6 +40,7 @@ class VoiceRoom extends protobuf_1.Message {
|
|
|
39
40
|
{ no: 12, name: "started_at", kind: "scalar", T: 9 },
|
|
40
41
|
{ no: 13, name: "ended_at", kind: "scalar", T: 9 },
|
|
41
42
|
{ no: 14, name: "livekit_room", kind: "scalar", T: 9 },
|
|
43
|
+
{ no: 15, name: "reactions_enabled", kind: "scalar", T: 8 },
|
|
42
44
|
]);
|
|
43
45
|
static fromBinary(bytes, options) {
|
|
44
46
|
return new VoiceRoom().fromBinary(bytes, options);
|
|
@@ -54,6 +56,33 @@ class VoiceRoom extends protobuf_1.Message {
|
|
|
54
56
|
}
|
|
55
57
|
}
|
|
56
58
|
exports.VoiceRoom = VoiceRoom;
|
|
59
|
+
class VoiceReactRequest extends protobuf_1.Message {
|
|
60
|
+
roomId = "";
|
|
61
|
+
emoji = "";
|
|
62
|
+
constructor(data) {
|
|
63
|
+
super();
|
|
64
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
65
|
+
}
|
|
66
|
+
static runtime = protobuf_1.proto3;
|
|
67
|
+
static typeName = "micro.v1.voice.VoiceReactRequest";
|
|
68
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
69
|
+
{ no: 1, name: "room_id", kind: "scalar", T: 9 },
|
|
70
|
+
{ no: 2, name: "emoji", kind: "scalar", T: 9 },
|
|
71
|
+
]);
|
|
72
|
+
static fromBinary(bytes, options) {
|
|
73
|
+
return new VoiceReactRequest().fromBinary(bytes, options);
|
|
74
|
+
}
|
|
75
|
+
static fromJson(jsonValue, options) {
|
|
76
|
+
return new VoiceReactRequest().fromJson(jsonValue, options);
|
|
77
|
+
}
|
|
78
|
+
static fromJsonString(jsonString, options) {
|
|
79
|
+
return new VoiceReactRequest().fromJsonString(jsonString, options);
|
|
80
|
+
}
|
|
81
|
+
static equals(a, b) {
|
|
82
|
+
return protobuf_1.proto3.util.equals(VoiceReactRequest, a, b);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
exports.VoiceReactRequest = VoiceReactRequest;
|
|
57
86
|
class VoiceRoomByGroupRequest extends protobuf_1.Message {
|
|
58
87
|
groupSlug = "";
|
|
59
88
|
constructor(data) {
|
package/package.json
CHANGED
|
@@ -40,6 +40,10 @@ message ChatGroupDto {
|
|
|
40
40
|
int32 retention_hours = 22;
|
|
41
41
|
// The viewer posts here as the group (anonymous staff member).
|
|
42
42
|
bool viewer_anonymous = 23;
|
|
43
|
+
// Who may open a voice room: admins (default) | mods | off
|
|
44
|
+
string voice_policy = 24;
|
|
45
|
+
// Emoji reactions inside the group's voice room.
|
|
46
|
+
bool voice_reactions = 25;
|
|
43
47
|
}
|
|
44
48
|
|
|
45
49
|
message ChatGroupListResponse {
|
|
@@ -411,6 +415,10 @@ message GroupUpsertRequest {
|
|
|
411
415
|
// Message retention in hours; 0 = keep forever. Only the values the chat
|
|
412
416
|
// service whitelists are accepted.
|
|
413
417
|
int32 retention_hours = 11;
|
|
418
|
+
// admins | mods | off (empty = keep/default admins)
|
|
419
|
+
string voice_policy = 12;
|
|
420
|
+
// on | off (empty = keep/default on)
|
|
421
|
+
string voice_reactions = 13;
|
|
414
422
|
}
|
|
415
423
|
|
|
416
424
|
message SanctionRequest {
|
|
@@ -578,4 +586,15 @@ message VoiceAccessResponse {
|
|
|
578
586
|
string reason = 8;
|
|
579
587
|
string group_id = 9;
|
|
580
588
|
string group_name = 10;
|
|
589
|
+
// Display badges (gold | premium) for the caller's seat.
|
|
590
|
+
repeated string badges = 11;
|
|
591
|
+
// The group allows emoji reactions in its voice room.
|
|
592
|
+
bool reactions_enabled = 12;
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
// The "broadcast ended" line the voice service posts into a group as a
|
|
596
|
+
// system message once a room closes.
|
|
597
|
+
message VoiceSummaryRequest {
|
|
598
|
+
string group_id = 1;
|
|
599
|
+
string content = 2;
|
|
581
600
|
}
|
|
@@ -19,6 +19,7 @@ service PChatService {
|
|
|
19
19
|
rpc GifSearch(GifSearchRequest) returns(stream GifSearchResponse) {}
|
|
20
20
|
// Voice rooms ask here before signing a LiveKit token.
|
|
21
21
|
rpc VoiceAccess(GroupBySlugRequest) returns(stream VoiceAccessResponse) {}
|
|
22
|
+
rpc PostVoiceSummary(VoiceSummaryRequest) returns(stream EmptyResponse) {}
|
|
22
23
|
rpc GetGroupPhoto(ByIdRequest) returns(stream GroupPhotoResponse) {}
|
|
23
24
|
// Authed upload (staging row); the send then references media_id.
|
|
24
25
|
rpc UploadChatMedia(ChatMediaUploadRequest) returns(stream ChatMediaUploadResponse) {}
|
|
@@ -20,6 +20,8 @@ service PVoiceService {
|
|
|
20
20
|
rpc ListHands(VoiceRoomIdRequest) returns(stream VoiceHandsResponse) {}
|
|
21
21
|
// Host: approve | remove | mute | kick
|
|
22
22
|
rpc SetSpeaker(VoiceSpeakerRequest) returns(stream EmptyResponse) {}
|
|
23
|
+
// Listener: one emoji, rate-limited per person on the service.
|
|
24
|
+
rpc React(VoiceReactRequest) returns(stream EmptyResponse) {}
|
|
23
25
|
// Account deletion parity with every other micro.
|
|
24
26
|
rpc RemoveUserData(ByIdRequest) returns(stream EmptyResponse) {}
|
|
25
27
|
}
|
|
@@ -25,6 +25,15 @@ message VoiceRoom {
|
|
|
25
25
|
string ended_at = 13;
|
|
26
26
|
// LiveKit room name; what the client passes to the SDK.
|
|
27
27
|
string livekit_room = 14;
|
|
28
|
+
// Emoji reactions allowed (the group's setting when the room opened).
|
|
29
|
+
bool reactions_enabled = 15;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// A listener's emoji reaction; the service batches them per second and
|
|
33
|
+
// fans the counts out over LiveKit's data channel.
|
|
34
|
+
message VoiceReactRequest {
|
|
35
|
+
string room_id = 1;
|
|
36
|
+
string emoji = 2;
|
|
28
37
|
}
|
|
29
38
|
|
|
30
39
|
message VoiceRoomByGroupRequest { string group_slug = 1; }
|