@verychat/channel-protos 1.0.23 → 1.0.24

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.
@@ -13,22 +13,22 @@ message GetMyChannelsResponse {
13
13
  repeated Channel channels = 1;
14
14
  }
15
15
 
16
- message GetMySubscribedChannelResponse {
17
- repeated UserChannel userChannels = 1;
18
- }
19
-
20
- message GetRecommendChannelsRequest {
21
- int32 userId = 1;
22
- }
23
-
24
- message GetRecommendChannelsResponse {
25
- repeated RecommendChannel channels = 1;
26
- }
27
-
28
- message CreateChannelRequest {
29
- int32 userId = 1;
30
- CreateChannelDto dto = 2;
31
- }
16
+ message GetMySubscribedChannelResponse {
17
+ repeated UserChannel userChannels = 1;
18
+ }
19
+
20
+ message GetRecommendChannelsRequest {
21
+ int32 userId = 1;
22
+ }
23
+
24
+ message GetRecommendChannelsResponse {
25
+ repeated RecommendChannel channels = 1;
26
+ }
27
+
28
+ message CreateChannelRequest {
29
+ int32 userId = 1;
30
+ CreateChannelDto dto = 2;
31
+ }
32
32
 
33
33
  message CreateChannelResponse {
34
34
  string channelId = 1;
@@ -161,24 +161,32 @@ message GetMessagesRequest {
161
161
  int32 take = 4;
162
162
  }
163
163
 
164
- message GetMessagesResponse {
165
- repeated ChannelMessage messages = 1;
166
- }
167
-
168
- message GetNewChannelMessageRequest {
169
- int32 userId = 1;
170
- optional int32 page = 2;
171
- }
172
-
173
- message GetNewChannelMessageResponse {
174
- repeated NewChannelMessage messages = 1;
175
- }
176
-
177
- message GetHistorysRequest {
178
- string channelId = 1;
179
- int64 lastStreamId = 2;
180
- int64 streamId = 3;
181
- }
164
+ message GetMessagesResponse {
165
+ repeated ChannelMessage messages = 1;
166
+ }
167
+
168
+ message GetNewChannelMessageRequest {
169
+ int32 userId = 1;
170
+ optional int32 page = 2;
171
+ }
172
+
173
+ message GetNewChannelMessageResponse {
174
+ repeated NewChannelMessage messages = 1;
175
+ }
176
+
177
+ message GetMessageSpecifyRequest {
178
+ repeated GetMessagesSpecifyType array = 1;
179
+ }
180
+
181
+ message GetMessageSpecifyResponse {
182
+ repeated NewChannelMessage messages = 1;
183
+ }
184
+
185
+ message GetHistorysRequest {
186
+ string channelId = 1;
187
+ int64 lastStreamId = 2;
188
+ int64 streamId = 3;
189
+ }
182
190
 
183
191
  message GetHistorysResponse {
184
192
  repeated History historys = 1;
@@ -218,11 +226,11 @@ service ChannelService {
218
226
  rpc CreateChannel (CreateChannelRequest) returns (CreateChannelResponse);
219
227
  rpc EditChannel (EditChannelRequest) returns (EditChannelResponse);
220
228
 
221
- rpc GetMyChannels (GetChannelRequest) returns (GetMyChannelsResponse);
222
- rpc GetMySubscribeChannels (GetChannelRequest) returns (GetMySubscribedChannelResponse);
223
- rpc GetRecommendChannels (GetRecommendChannelsRequest) returns (GetRecommendChannelsResponse);
224
-
225
- rpc GetChannelInfo (GetChannelInfoRequest) returns (GetChannelInfoResponse);
229
+ rpc GetMyChannels (GetChannelRequest) returns (GetMyChannelsResponse);
230
+ rpc GetMySubscribeChannels (GetChannelRequest) returns (GetMySubscribedChannelResponse);
231
+ rpc GetRecommendChannels (GetRecommendChannelsRequest) returns (GetRecommendChannelsResponse);
232
+
233
+ rpc GetChannelInfo (GetChannelInfoRequest) returns (GetChannelInfoResponse);
226
234
 
227
235
  rpc ReadMessage (ReadMessageRequest) returns (Empty);
228
236
  rpc GetViewCount (GetMessageViewCountRequest) returns (GetMessageViewCountResponse);
@@ -243,10 +251,11 @@ service ChannelService {
243
251
  rpc SetOperator (SetOperatorRequest) returns (Empty);
244
252
  rpc RemoveOperator (RemoveOperatorRequest) returns (RemoveOperatorResponse);
245
253
 
246
- rpc GetMessage (GetMessageRequest) returns (GetMessageResponse);
247
- rpc GetMessages (GetMessagesRequest) returns (GetMessagesResponse);
248
- rpc GetNewChannelMessage (GetNewChannelMessageRequest) returns (GetNewChannelMessageResponse);
249
- rpc GetHistorys (GetHistorysRequest) returns (GetHistorysResponse);
254
+ rpc GetMessage (GetMessageRequest) returns (GetMessageResponse);
255
+ rpc GetMessages (GetMessagesRequest) returns (GetMessagesResponse);
256
+ rpc GetNewChannelMessage (GetNewChannelMessageRequest) returns (GetNewChannelMessageResponse);
257
+ rpc GetMessagesSpecifyInfo (GetMessageSpecifyRequest) returns (GetMessageSpecifyResponse);
258
+ rpc GetHistorys (GetHistorysRequest) returns (GetHistorysResponse);
250
259
 
251
260
  rpc HoldMessage (HoldMessageRequest) returns (Empty);
252
261
  rpc GetMembers (GetMembersRequest) returns (GetMembersResponse);
@@ -261,4 +270,4 @@ service ChannelService {
261
270
  rpc ChannelChatGetMessage (GetMessageRequest) returns (GetMessageResponse);
262
271
  rpc ChannelChatGetMessages (GetMessagesRequest) returns (GetMessagesResponse);
263
272
  rpc ChannelChatGetHistorys (GetHistorysRequest) returns (GetHistorysResponse);
264
- }
273
+ }
@@ -86,33 +86,41 @@ message ReactionMessageDto {
86
86
  bool add = 5;
87
87
  }
88
88
 
89
- message ChannelMessage {
90
- int32 userId = 1;
91
- MessageType type = 2;
92
- string createdAt = 3;
93
- string deletedAt = 4;
94
- int32 seq = 5;
95
- string message = 6;
96
- repeated int32 mentions = 7;
97
- int32 reply = 8;
98
- repeated Reaction reactions = 9;
99
- int64 streamId = 10;
100
- }
101
-
102
- message NewChannelMessage {
103
- string channelId = 1;
104
- int32 seq = 2;
105
- int32 userId = 3;
106
- string message = 4;
107
- MessageType type = 5;
108
- string createdAt = 6;
109
- int32 likeCount = 7;
110
- }
111
-
112
- message Reaction {
113
- int32 userId = 1;
114
- string reactionCode = 2;
115
- }
89
+ message ChannelMessage {
90
+ int32 userId = 1;
91
+ MessageType type = 2;
92
+ string createdAt = 3;
93
+ string deletedAt = 4;
94
+ int32 seq = 5;
95
+ string message = 6;
96
+ repeated int32 mentions = 7;
97
+ int32 reply = 8;
98
+ repeated Reaction reactions = 9;
99
+ int64 streamId = 10;
100
+ }
101
+
102
+ message NewChannelMessage {
103
+ string channelId = 1;
104
+ int32 seq = 2;
105
+ int32 userId = 3;
106
+ string message = 4;
107
+ MessageType type = 5;
108
+ string createdAt = 6;
109
+ int32 likeCount = 7;
110
+ string channelTitle = 8;
111
+ string channelThumbnailUrl = 9;
112
+ optional string deletedAt = 10;
113
+ }
114
+
115
+ message Reaction {
116
+ int32 userId = 1;
117
+ string reactionCode = 2;
118
+ }
119
+
120
+ message GetMessagesSpecifyType {
121
+ string channelId = 1;
122
+ int32 seq = 2;
123
+ }
116
124
 
117
125
  message History {
118
126
  int64 streamId = 1;
@@ -172,4 +180,4 @@ enum HistoryOperation {
172
180
  REACTION_REMOVE = 1;
173
181
  MESSAGE_EDIT = 2;
174
182
  MESSAGE_DELETE = 3;
175
- }
183
+ }
package/dist/index.d.ts CHANGED
@@ -34,6 +34,8 @@ export { GetMessagesRequest } from './proto-libs/channel-services';
34
34
  export { GetMessagesResponse } from './proto-libs/channel-services';
35
35
  export { GetNewChannelMessageRequest } from './proto-libs/channel-services';
36
36
  export { GetNewChannelMessageResponse } from './proto-libs/channel-services';
37
+ export { GetMessageSpecifyRequest } from './proto-libs/channel-services';
38
+ export { GetMessageSpecifyResponse } from './proto-libs/channel-services';
37
39
  export { GetHistorysRequest } from './proto-libs/channel-services';
38
40
  export { GetHistorysResponse } from './proto-libs/channel-services';
39
41
  export { HoldMessageRequest } from './proto-libs/channel-services';
@@ -60,6 +62,7 @@ export { ReactionMessageDto } from './proto-libs/channel-types';
60
62
  export { ChannelMessage } from './proto-libs/channel-types';
61
63
  export { NewChannelMessage } from './proto-libs/channel-types';
62
64
  export { Reaction } from './proto-libs/channel-types';
65
+ export { GetMessagesSpecifyType } from './proto-libs/channel-types';
63
66
  export { History } from './proto-libs/channel-types';
64
67
  export { Operator } from './proto-libs/channel-types';
65
68
  export { ChannelChatInfo } from './proto-libs/channel-types';
@@ -1,6 +1,6 @@
1
1
  import { Metadata } from "@grpc/grpc-js";
2
2
  import { Observable } from "rxjs";
3
- import { Channel, ChannelChatInfo, ChannelInfo, ChannelMessage, CreateChannelDto, CreateMessageDto, EditChannelDto, History, NewChannelMessage, Operator, ReactionMessageDto, RecommendChannel, SearchChannelResult, UserChannel } from "./channel-types";
3
+ import { Channel, ChannelChatInfo, ChannelInfo, ChannelMessage, CreateChannelDto, CreateMessageDto, EditChannelDto, GetMessagesSpecifyType, History, NewChannelMessage, Operator, ReactionMessageDto, RecommendChannel, SearchChannelResult, UserChannel } from "./channel-types";
4
4
  export declare const protobufPackage = "channel";
5
5
  export interface Empty {
6
6
  }
@@ -145,6 +145,12 @@ export interface GetNewChannelMessageRequest {
145
145
  export interface GetNewChannelMessageResponse {
146
146
  messages: NewChannelMessage[];
147
147
  }
148
+ export interface GetMessageSpecifyRequest {
149
+ array: GetMessagesSpecifyType[];
150
+ }
151
+ export interface GetMessageSpecifyResponse {
152
+ messages: NewChannelMessage[];
153
+ }
148
154
  export interface GetHistorysRequest {
149
155
  channelId: string;
150
156
  lastStreamId: number;
@@ -201,6 +207,7 @@ export interface ChannelServiceClient {
201
207
  getMessage(request: GetMessageRequest, metadata?: Metadata): Observable<GetMessageResponse>;
202
208
  getMessages(request: GetMessagesRequest, metadata?: Metadata): Observable<GetMessagesResponse>;
203
209
  getNewChannelMessage(request: GetNewChannelMessageRequest, metadata?: Metadata): Observable<GetNewChannelMessageResponse>;
210
+ getMessagesSpecifyInfo(request: GetMessageSpecifyRequest, metadata?: Metadata): Observable<GetMessageSpecifyResponse>;
204
211
  getHistorys(request: GetHistorysRequest, metadata?: Metadata): Observable<GetHistorysResponse>;
205
212
  holdMessage(request: HoldMessageRequest, metadata?: Metadata): Observable<Empty>;
206
213
  getMembers(request: GetMembersRequest, metadata?: Metadata): Observable<GetMembersResponse>;
@@ -237,6 +244,7 @@ export interface ChannelServiceController {
237
244
  getMessage(request: GetMessageRequest, metadata?: Metadata): Observable<GetMessageResponse>;
238
245
  getMessages(request: GetMessagesRequest, metadata?: Metadata): Observable<GetMessagesResponse>;
239
246
  getNewChannelMessage(request: GetNewChannelMessageRequest, metadata?: Metadata): Observable<GetNewChannelMessageResponse>;
247
+ getMessagesSpecifyInfo(request: GetMessageSpecifyRequest, metadata?: Metadata): Observable<GetMessageSpecifyResponse>;
240
248
  getHistorys(request: GetHistorysRequest, metadata?: Metadata): Observable<GetHistorysResponse>;
241
249
  holdMessage(request: HoldMessageRequest, metadata?: Metadata): Observable<Empty>;
242
250
  getMembers(request: GetMembersRequest, metadata?: Metadata): Observable<GetMembersResponse>;
@@ -35,6 +35,7 @@ function ChannelServiceControllerMethods() {
35
35
  "getMessage",
36
36
  "getMessages",
37
37
  "getNewChannelMessage",
38
+ "getMessagesSpecifyInfo",
38
39
  "getHistorys",
39
40
  "holdMessage",
40
41
  "getMembers",
@@ -113,11 +113,18 @@ export interface NewChannelMessage {
113
113
  type: MessageType;
114
114
  createdAt: string;
115
115
  likeCount: number;
116
+ channelTitle: string;
117
+ channelThumbnailUrl: string;
118
+ deletedAt?: string | undefined;
116
119
  }
117
120
  export interface Reaction {
118
121
  userId: number;
119
122
  reactionCode: string;
120
123
  }
124
+ export interface GetMessagesSpecifyType {
125
+ channelId: string;
126
+ seq: number;
127
+ }
121
128
  export interface History {
122
129
  streamId: number;
123
130
  userId: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verychat/channel-protos",
3
- "version": "1.0.23",
3
+ "version": "1.0.24",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -16,6 +16,7 @@ import {
16
16
  CreateChannelDto,
17
17
  CreateMessageDto,
18
18
  EditChannelDto,
19
+ GetMessagesSpecifyType,
19
20
  History,
20
21
  NewChannelMessage,
21
22
  Operator,
@@ -204,6 +205,14 @@ export interface GetNewChannelMessageResponse {
204
205
  messages: NewChannelMessage[];
205
206
  }
206
207
 
208
+ export interface GetMessageSpecifyRequest {
209
+ array: GetMessagesSpecifyType[];
210
+ }
211
+
212
+ export interface GetMessageSpecifyResponse {
213
+ messages: NewChannelMessage[];
214
+ }
215
+
207
216
  export interface GetHistorysRequest {
208
217
  channelId: string;
209
218
  lastStreamId: number;
@@ -297,6 +306,8 @@ export interface ChannelServiceClient {
297
306
  metadata?: Metadata,
298
307
  ): Observable<GetNewChannelMessageResponse>;
299
308
 
309
+ getMessagesSpecifyInfo(request: GetMessageSpecifyRequest, metadata?: Metadata): Observable<GetMessageSpecifyResponse>;
310
+
300
311
  getHistorys(request: GetHistorysRequest, metadata?: Metadata): Observable<GetHistorysResponse>;
301
312
 
302
313
  holdMessage(request: HoldMessageRequest, metadata?: Metadata): Observable<Empty>;
@@ -376,6 +387,8 @@ export interface ChannelServiceController {
376
387
  metadata?: Metadata,
377
388
  ): Observable<GetNewChannelMessageResponse>;
378
389
 
390
+ getMessagesSpecifyInfo(request: GetMessageSpecifyRequest, metadata?: Metadata): Observable<GetMessageSpecifyResponse>;
391
+
379
392
  getHistorys(request: GetHistorysRequest, metadata?: Metadata): Observable<GetHistorysResponse>;
380
393
 
381
394
  holdMessage(request: HoldMessageRequest, metadata?: Metadata): Observable<Empty>;
@@ -429,6 +442,7 @@ export function ChannelServiceControllerMethods() {
429
442
  "getMessage",
430
443
  "getMessages",
431
444
  "getNewChannelMessage",
445
+ "getMessagesSpecifyInfo",
432
446
  "getHistorys",
433
447
  "holdMessage",
434
448
  "getMembers",
@@ -135,6 +135,9 @@ export interface NewChannelMessage {
135
135
  type: MessageType;
136
136
  createdAt: string;
137
137
  likeCount: number;
138
+ channelTitle: string;
139
+ channelThumbnailUrl: string;
140
+ deletedAt?: string | undefined;
138
141
  }
139
142
 
140
143
  export interface Reaction {
@@ -142,6 +145,11 @@ export interface Reaction {
142
145
  reactionCode: string;
143
146
  }
144
147
 
148
+ export interface GetMessagesSpecifyType {
149
+ channelId: string;
150
+ seq: number;
151
+ }
152
+
145
153
  export interface History {
146
154
  streamId: number;
147
155
  userId: number;