jr-common-micro 1.1.91 → 1.1.93
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.
|
@@ -26,6 +26,7 @@ export interface ChatGroupDto {
|
|
|
26
26
|
viewer_anonymous: boolean;
|
|
27
27
|
voice_policy: string;
|
|
28
28
|
voice_reactions: boolean;
|
|
29
|
+
list_visibility: string;
|
|
29
30
|
}
|
|
30
31
|
export interface ChatGroupListResponse {
|
|
31
32
|
status: ResponseStatus | undefined;
|
|
@@ -278,6 +279,7 @@ export interface GroupUpsertRequest {
|
|
|
278
279
|
retention_hours: number;
|
|
279
280
|
voice_policy: string;
|
|
280
281
|
voice_reactions: string;
|
|
282
|
+
list_visibility: string;
|
|
281
283
|
}
|
|
282
284
|
export interface SanctionRequest {
|
|
283
285
|
username: string;
|
|
@@ -303,6 +305,10 @@ export interface MemberActionRequest {
|
|
|
303
305
|
}
|
|
304
306
|
export interface PendingMembersRequest {
|
|
305
307
|
group_slug: string;
|
|
308
|
+
cursor: string;
|
|
309
|
+
limit: number;
|
|
310
|
+
query: string;
|
|
311
|
+
filter: string;
|
|
306
312
|
}
|
|
307
313
|
export interface ChatMemberListRequest {
|
|
308
314
|
slug: string;
|
|
@@ -27,6 +27,7 @@ export declare class ChatGroupDto extends Message<ChatGroupDto> {
|
|
|
27
27
|
viewerAnonymous: boolean;
|
|
28
28
|
voicePolicy: string;
|
|
29
29
|
voiceReactions: boolean;
|
|
30
|
+
listVisibility: string;
|
|
30
31
|
constructor(data?: PartialMessage<ChatGroupDto>);
|
|
31
32
|
static readonly runtime: typeof proto3;
|
|
32
33
|
static readonly typeName = "micro.v1.chat.ChatGroupDto";
|
|
@@ -567,6 +568,7 @@ export declare class GroupUpsertRequest extends Message<GroupUpsertRequest> {
|
|
|
567
568
|
retentionHours: number;
|
|
568
569
|
voicePolicy: string;
|
|
569
570
|
voiceReactions: string;
|
|
571
|
+
listVisibility: string;
|
|
570
572
|
constructor(data?: PartialMessage<GroupUpsertRequest>);
|
|
571
573
|
static readonly runtime: typeof proto3;
|
|
572
574
|
static readonly typeName = "micro.v1.chat.GroupUpsertRequest";
|
|
@@ -640,6 +642,10 @@ export declare class MemberActionRequest extends Message<MemberActionRequest> {
|
|
|
640
642
|
}
|
|
641
643
|
export declare class PendingMembersRequest extends Message<PendingMembersRequest> {
|
|
642
644
|
groupSlug: string;
|
|
645
|
+
cursor: string;
|
|
646
|
+
limit: number;
|
|
647
|
+
query: string;
|
|
648
|
+
filter: string;
|
|
643
649
|
constructor(data?: PartialMessage<PendingMembersRequest>);
|
|
644
650
|
static readonly runtime: typeof proto3;
|
|
645
651
|
static readonly typeName = "micro.v1.chat.PendingMembersRequest";
|
|
@@ -30,6 +30,7 @@ class ChatGroupDto extends protobuf_1.Message {
|
|
|
30
30
|
viewerAnonymous = false;
|
|
31
31
|
voicePolicy = "";
|
|
32
32
|
voiceReactions = false;
|
|
33
|
+
listVisibility = "";
|
|
33
34
|
constructor(data) {
|
|
34
35
|
super();
|
|
35
36
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -62,6 +63,7 @@ class ChatGroupDto extends protobuf_1.Message {
|
|
|
62
63
|
{ no: 23, name: "viewer_anonymous", kind: "scalar", T: 8 },
|
|
63
64
|
{ no: 24, name: "voice_policy", kind: "scalar", T: 9 },
|
|
64
65
|
{ no: 25, name: "voice_reactions", kind: "scalar", T: 8 },
|
|
66
|
+
{ no: 26, name: "list_visibility", kind: "scalar", T: 9 },
|
|
65
67
|
]);
|
|
66
68
|
static fromBinary(bytes, options) {
|
|
67
69
|
return new ChatGroupDto().fromBinary(bytes, options);
|
|
@@ -1230,6 +1232,7 @@ class GroupUpsertRequest extends protobuf_1.Message {
|
|
|
1230
1232
|
retentionHours = 0;
|
|
1231
1233
|
voicePolicy = "";
|
|
1232
1234
|
voiceReactions = "";
|
|
1235
|
+
listVisibility = "";
|
|
1233
1236
|
constructor(data) {
|
|
1234
1237
|
super();
|
|
1235
1238
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -1250,6 +1253,7 @@ class GroupUpsertRequest extends protobuf_1.Message {
|
|
|
1250
1253
|
{ no: 11, name: "retention_hours", kind: "scalar", T: 5 },
|
|
1251
1254
|
{ no: 12, name: "voice_policy", kind: "scalar", T: 9 },
|
|
1252
1255
|
{ no: 13, name: "voice_reactions", kind: "scalar", T: 9 },
|
|
1256
|
+
{ no: 14, name: "list_visibility", kind: "scalar", T: 9 },
|
|
1253
1257
|
]);
|
|
1254
1258
|
static fromBinary(bytes, options) {
|
|
1255
1259
|
return new GroupUpsertRequest().fromBinary(bytes, options);
|
|
@@ -1406,6 +1410,10 @@ class MemberActionRequest extends protobuf_1.Message {
|
|
|
1406
1410
|
exports.MemberActionRequest = MemberActionRequest;
|
|
1407
1411
|
class PendingMembersRequest extends protobuf_1.Message {
|
|
1408
1412
|
groupSlug = "";
|
|
1413
|
+
cursor = "";
|
|
1414
|
+
limit = 0;
|
|
1415
|
+
query = "";
|
|
1416
|
+
filter = "";
|
|
1409
1417
|
constructor(data) {
|
|
1410
1418
|
super();
|
|
1411
1419
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -1414,6 +1422,10 @@ class PendingMembersRequest extends protobuf_1.Message {
|
|
|
1414
1422
|
static typeName = "micro.v1.chat.PendingMembersRequest";
|
|
1415
1423
|
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
1416
1424
|
{ no: 1, name: "group_slug", kind: "scalar", T: 9 },
|
|
1425
|
+
{ no: 2, name: "cursor", kind: "scalar", T: 9 },
|
|
1426
|
+
{ no: 3, name: "limit", kind: "scalar", T: 13 },
|
|
1427
|
+
{ no: 4, name: "query", kind: "scalar", T: 9 },
|
|
1428
|
+
{ no: 5, name: "filter", kind: "scalar", T: 9 },
|
|
1417
1429
|
]);
|
|
1418
1430
|
static fromBinary(bytes, options) {
|
|
1419
1431
|
return new PendingMembersRequest().fromBinary(bytes, options);
|
package/package.json
CHANGED
|
@@ -44,6 +44,9 @@ message ChatGroupDto {
|
|
|
44
44
|
string voice_policy = 24;
|
|
45
45
|
// Emoji reactions inside the group's voice room.
|
|
46
46
|
bool voice_reactions = 25;
|
|
47
|
+
// Who sees the group in the chat list: everyone (default) | members
|
|
48
|
+
// (only its approved members; it stays reachable by its link).
|
|
49
|
+
string list_visibility = 26;
|
|
47
50
|
}
|
|
48
51
|
|
|
49
52
|
message ChatGroupListResponse {
|
|
@@ -419,6 +422,8 @@ message GroupUpsertRequest {
|
|
|
419
422
|
string voice_policy = 12;
|
|
420
423
|
// on | off (empty = keep/default on)
|
|
421
424
|
string voice_reactions = 13;
|
|
425
|
+
// everyone | members (empty = keep/default everyone)
|
|
426
|
+
string list_visibility = 14;
|
|
422
427
|
}
|
|
423
428
|
|
|
424
429
|
message SanctionRequest {
|
|
@@ -448,7 +453,16 @@ message MemberActionRequest {
|
|
|
448
453
|
string action = 3;
|
|
449
454
|
}
|
|
450
455
|
|
|
451
|
-
|
|
456
|
+
// Join-request page. cursor = last row id of the previous page (newest
|
|
457
|
+
// first); limit capped by the micro (default 20); query = username filter;
|
|
458
|
+
// filter = new (first-timers) | again (re-applicants) | empty (both).
|
|
459
|
+
message PendingMembersRequest {
|
|
460
|
+
string group_slug = 1;
|
|
461
|
+
string cursor = 2;
|
|
462
|
+
uint32 limit = 3;
|
|
463
|
+
string query = 4;
|
|
464
|
+
string filter = 5;
|
|
465
|
+
}
|
|
452
466
|
|
|
453
467
|
// Member list page. Wire-compatible with GroupBySlugRequest (slug = 1) so an
|
|
454
468
|
// older caller still gets the first page.
|