@dan-uni/dan-any 1.2.5 → 1.3.0

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.
Files changed (28) hide show
  1. package/buf.gen.yaml +4 -2
  2. package/buf.yaml +12 -0
  3. package/dist/browser/17.min.js +44 -25
  4. package/dist/browser/index.min.js +1 -1
  5. package/dist/browser/src/index.d.ts +15 -3
  6. package/dist/browser/src/proto/gen/{bili → bilibili/community/service/dm/v1}/dm_pb.d.ts +2 -2
  7. package/dist/{umd/src/proto/gen/danuni_pb.d.ts → browser/src/proto/gen/danuni/danmaku/v1/danmaku_pb.d.ts} +45 -41
  8. package/dist/node/17.js +44 -25
  9. package/dist/node/index.js +1 -1
  10. package/dist/node/src/index.d.ts +15 -3
  11. package/dist/{umd/src/proto/gen/bili → node/src/proto/gen/bilibili/community/service/dm/v1}/dm_pb.d.ts +2 -2
  12. package/dist/{browser/src/proto/gen/danuni_pb.d.ts → node/src/proto/gen/danuni/danmaku/v1/danmaku_pb.d.ts} +45 -41
  13. package/dist/umd/index.umd.min.js +124 -52
  14. package/dist/umd/plugins/bili.umd.min.js +109 -52
  15. package/dist/umd/plugins/index.umd.min.js +109 -52
  16. package/dist/umd/src/index.d.ts +15 -3
  17. package/dist/{node/src/proto/gen/bili → umd/src/proto/gen/bilibili/community/service/dm/v1}/dm_pb.d.ts +2 -2
  18. package/dist/{node/src/proto/gen/danuni_pb.d.ts → umd/src/proto/gen/danuni/danmaku/v1/danmaku_pb.d.ts} +45 -41
  19. package/package.json +3 -3
  20. package/src/index.test.ts +1 -1
  21. package/src/index.ts +45 -34
  22. package/src/proto/gen/{bili → bilibili/community/service/dm/v1}/dm_pb.ts +104 -104
  23. package/src/proto/gen/danuni/danmaku/v1/danmaku_pb.ts +223 -0
  24. package/src/proto/src/danuni/danmaku/v1/danmaku.proto +52 -0
  25. package/src/utils/dm-gen.ts +2 -2
  26. package/src/proto/gen/danuni_pb.ts +0 -219
  27. package/src/proto/src/danuni.proto +0 -50
  28. /package/src/proto/src/{bili → bilibili/community/service/dm/v1}/dm.proto +0 -0
@@ -0,0 +1,223 @@
1
+ // @generated by protoc-gen-es v2.11.0 with parameter "target=ts"
2
+ // @generated from file danuni/danmaku/v1/danmaku.proto (package danuni.danmaku.v1, syntax proto3)
3
+ /* eslint-disable */
4
+
5
+ import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
6
+ import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
7
+ import type { Timestamp } from "@bufbuild/protobuf/wkt";
8
+ import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
9
+ import type { Message } from "@bufbuild/protobuf";
10
+
11
+ /**
12
+ * Describes the file danuni/danmaku/v1/danmaku.proto.
13
+ */
14
+ export const file_danuni_danmaku_v1_danmaku: GenFile = /*@__PURE__*/
15
+ fileDesc("Ch9kYW51bmkvZGFubWFrdS92MS9kYW5tYWt1LnByb3RvEhFkYW51bmkuZGFubWFrdS52MSI2Cg5MaXN0RGFuUmVxdWVzdBIKCgJpZBgBIAEoCRIQCgNzZWcYAiABKAVIAIgBAUIGCgRfc2VnIusCCgdEYW5tYWt1EhIKBHNvaWQYASABKAlSBFNPSUQSEgoEZG1pZBgCIAEoCVIERE1JRBIQCghwcm9ncmVzcxgDIAEoBRIlCgRtb2RlGAQgASgOMhcuZGFudW5pLmRhbm1ha3UudjEuTW9kZRIQCghmb250c2l6ZRgFIAEoBRINCgVjb2xvchgGIAEoBRIbCglzZW5kZXJfaWQYByABKAlSCHNlbmRlcklEEg8KB2NvbnRlbnQYCCABKAkSKQoFY3RpbWUYCSABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEg4KBndlaWdodBgKIAEoBRIlCgRwb29sGAsgASgOMhcuZGFudW5pLmRhbm1ha3UudjEuUG9vbBIMCgRhdHRyGAwgAygJEhUKCHBsYXRmb3JtGA0gASgJSACIAQESEgoFZXh0cmEYDiABKAlIAYgBAUILCglfcGxhdGZvcm1CCAoGX2V4dHJhIj8KD0xpc3REYW5SZXNwb25zZRIsCghkYW5tYWt1cxgBIAMoCzIaLmRhbnVuaS5kYW5tYWt1LnYxLkRhbm1ha3UqYgoETW9kZRIbChdNT0RFX05PUk1BTF9VTlNQRUNJRklFRBAAEg8KC01PREVfQk9UVE9NEAESDAoITU9ERV9UT1AQAhIQCgxNT0RFX1JFVkVSU0UQAxIMCghNT0RFX0VYVBAEKkkKBFBvb2wSGAoUUE9PTF9ERUZfVU5TUEVDSUZJRUQQABIMCghQT09MX1NVQhABEgwKCFBPT0xfQURWEAISCwoHUE9PTF9JWBADMmQKDkRhbm1ha3VTZXJ2aWNlElIKB0xpc3REYW4SIS5kYW51bmkuZGFubWFrdS52MS5MaXN0RGFuUmVxdWVzdBoiLmRhbnVuaS5kYW5tYWt1LnYxLkxpc3REYW5SZXNwb25zZSIAQosBChVjb20uZGFudW5pLmRhbm1ha3UudjFCDERhbm1ha3VQcm90b1ABogIDRERYqgIRRGFudW5pLkRhbm1ha3UuVjHKAhFEYW51bmlcRGFubWFrdVxWMeICHURhbnVuaVxEYW5tYWt1XFYxXEdQQk1ldGFkYXRh6gITRGFudW5pOjpEYW5tYWt1OjpWMWIGcHJvdG8z", [file_google_protobuf_timestamp]);
16
+
17
+ /**
18
+ * @generated from message danuni.danmaku.v1.ListDanRequest
19
+ */
20
+ export type ListDanRequest = Message<"danuni.danmaku.v1.ListDanRequest"> & {
21
+ /**
22
+ * @generated from field: string id = 1;
23
+ */
24
+ id: string;
25
+
26
+ /**
27
+ * @generated from field: optional int32 seg = 2;
28
+ */
29
+ seg?: number;
30
+ };
31
+
32
+ /**
33
+ * Describes the message danuni.danmaku.v1.ListDanRequest.
34
+ * Use `create(ListDanRequestSchema)` to create a new message.
35
+ */
36
+ export const ListDanRequestSchema: GenMessage<ListDanRequest> = /*@__PURE__*/
37
+ messageDesc(file_danuni_danmaku_v1_danmaku, 0);
38
+
39
+ /**
40
+ * @generated from message danuni.danmaku.v1.Danmaku
41
+ */
42
+ export type Danmaku = Message<"danuni.danmaku.v1.Danmaku"> & {
43
+ /**
44
+ * @generated from field: string soid = 1 [json_name = "SOID"];
45
+ */
46
+ soid: string;
47
+
48
+ /**
49
+ * @generated from field: string dmid = 2 [json_name = "DMID"];
50
+ */
51
+ dmid: string;
52
+
53
+ /**
54
+ * @generated from field: int32 progress = 3;
55
+ */
56
+ progress: number;
57
+
58
+ /**
59
+ * @generated from field: danuni.danmaku.v1.Mode mode = 4;
60
+ */
61
+ mode: Mode;
62
+
63
+ /**
64
+ * @generated from field: int32 fontsize = 5;
65
+ */
66
+ fontsize: number;
67
+
68
+ /**
69
+ * @generated from field: int32 color = 6;
70
+ */
71
+ color: number;
72
+
73
+ /**
74
+ * @generated from field: string sender_id = 7 [json_name = "senderID"];
75
+ */
76
+ senderId: string;
77
+
78
+ /**
79
+ * @generated from field: string content = 8;
80
+ */
81
+ content: string;
82
+
83
+ /**
84
+ * @generated from field: google.protobuf.Timestamp ctime = 9;
85
+ */
86
+ ctime?: Timestamp;
87
+
88
+ /**
89
+ * @generated from field: int32 weight = 10;
90
+ */
91
+ weight: number;
92
+
93
+ /**
94
+ * @generated from field: danuni.danmaku.v1.Pool pool = 11;
95
+ */
96
+ pool: Pool;
97
+
98
+ /**
99
+ * @generated from field: repeated string attr = 12;
100
+ */
101
+ attr: string[];
102
+
103
+ /**
104
+ * @generated from field: optional string platform = 13;
105
+ */
106
+ platform?: string;
107
+
108
+ /**
109
+ * @generated from field: optional string extra = 14;
110
+ */
111
+ extra?: string;
112
+ };
113
+
114
+ /**
115
+ * Describes the message danuni.danmaku.v1.Danmaku.
116
+ * Use `create(DanmakuSchema)` to create a new message.
117
+ */
118
+ export const DanmakuSchema: GenMessage<Danmaku> = /*@__PURE__*/
119
+ messageDesc(file_danuni_danmaku_v1_danmaku, 1);
120
+
121
+ /**
122
+ * @generated from message danuni.danmaku.v1.ListDanResponse
123
+ */
124
+ export type ListDanResponse = Message<"danuni.danmaku.v1.ListDanResponse"> & {
125
+ /**
126
+ * @generated from field: repeated danuni.danmaku.v1.Danmaku danmakus = 1;
127
+ */
128
+ danmakus: Danmaku[];
129
+ };
130
+
131
+ /**
132
+ * Describes the message danuni.danmaku.v1.ListDanResponse.
133
+ * Use `create(ListDanResponseSchema)` to create a new message.
134
+ */
135
+ export const ListDanResponseSchema: GenMessage<ListDanResponse> = /*@__PURE__*/
136
+ messageDesc(file_danuni_danmaku_v1_danmaku, 2);
137
+
138
+ /**
139
+ * 此处作为数字应与danuni库相应类型一一对应
140
+ *
141
+ * @generated from enum danuni.danmaku.v1.Mode
142
+ */
143
+ export enum Mode {
144
+ /**
145
+ * @generated from enum value: MODE_NORMAL_UNSPECIFIED = 0;
146
+ */
147
+ NORMAL_UNSPECIFIED = 0,
148
+
149
+ /**
150
+ * @generated from enum value: MODE_BOTTOM = 1;
151
+ */
152
+ BOTTOM = 1,
153
+
154
+ /**
155
+ * @generated from enum value: MODE_TOP = 2;
156
+ */
157
+ TOP = 2,
158
+
159
+ /**
160
+ * @generated from enum value: MODE_REVERSE = 3;
161
+ */
162
+ REVERSE = 3,
163
+
164
+ /**
165
+ * @generated from enum value: MODE_EXT = 4;
166
+ */
167
+ EXT = 4,
168
+ }
169
+
170
+ /**
171
+ * Describes the enum danuni.danmaku.v1.Mode.
172
+ */
173
+ export const ModeSchema: GenEnum<Mode> = /*@__PURE__*/
174
+ enumDesc(file_danuni_danmaku_v1_danmaku, 0);
175
+
176
+ /**
177
+ * 此处作为数字应与danuni库相应类型一一对应
178
+ *
179
+ * @generated from enum danuni.danmaku.v1.Pool
180
+ */
181
+ export enum Pool {
182
+ /**
183
+ * @generated from enum value: POOL_DEF_UNSPECIFIED = 0;
184
+ */
185
+ DEF_UNSPECIFIED = 0,
186
+
187
+ /**
188
+ * @generated from enum value: POOL_SUB = 1;
189
+ */
190
+ SUB = 1,
191
+
192
+ /**
193
+ * @generated from enum value: POOL_ADV = 2;
194
+ */
195
+ ADV = 2,
196
+
197
+ /**
198
+ * @generated from enum value: POOL_IX = 3;
199
+ */
200
+ IX = 3,
201
+ }
202
+
203
+ /**
204
+ * Describes the enum danuni.danmaku.v1.Pool.
205
+ */
206
+ export const PoolSchema: GenEnum<Pool> = /*@__PURE__*/
207
+ enumDesc(file_danuni_danmaku_v1_danmaku, 1);
208
+
209
+ /**
210
+ * @generated from service danuni.danmaku.v1.DanmakuService
211
+ */
212
+ export const DanmakuService: GenService<{
213
+ /**
214
+ * @generated from rpc danuni.danmaku.v1.DanmakuService.ListDan
215
+ */
216
+ listDan: {
217
+ methodKind: "unary";
218
+ input: typeof ListDanRequestSchema;
219
+ output: typeof ListDanResponseSchema;
220
+ },
221
+ }> = /*@__PURE__*/
222
+ serviceDesc(file_danuni_danmaku_v1_danmaku, 0);
223
+
@@ -0,0 +1,52 @@
1
+ syntax = "proto3";
2
+
3
+ package danuni.danmaku.v1;
4
+
5
+ import "google/protobuf/timestamp.proto";
6
+
7
+ service DanmakuService {
8
+ rpc ListDan(ListDanRequest) returns (ListDanResponse) {}
9
+ }
10
+
11
+ message ListDanRequest {
12
+ string id = 1;
13
+ optional int32 seg = 2;
14
+ }
15
+
16
+ // 此处作为数字应与danuni库相应类型一一对应
17
+ enum Mode {
18
+ MODE_NORMAL_UNSPECIFIED = 0;
19
+ MODE_BOTTOM = 1;
20
+ MODE_TOP = 2;
21
+ MODE_REVERSE = 3;
22
+ MODE_EXT = 4;
23
+ }
24
+
25
+ // 此处作为数字应与danuni库相应类型一一对应
26
+ enum Pool {
27
+ POOL_DEF_UNSPECIFIED = 0;
28
+ POOL_SUB = 1;
29
+ POOL_ADV = 2;
30
+ POOL_IX = 3;
31
+ }
32
+
33
+ message Danmaku {
34
+ string soid = 1 [json_name = "SOID"];
35
+ string dmid = 2 [json_name = "DMID"];
36
+ int32 progress = 3;
37
+ Mode mode = 4;
38
+ int32 fontsize = 5;
39
+ int32 color = 6;
40
+ string sender_id = 7 [json_name = "senderID"];
41
+ string content = 8;
42
+ google.protobuf.Timestamp ctime = 9;
43
+ int32 weight = 10;
44
+ Pool pool = 11;
45
+ repeated string attr = 12;
46
+ optional string platform = 13;
47
+ optional string extra = 14;
48
+ }
49
+
50
+ message ListDanResponse {
51
+ repeated Danmaku danmakus = 1;
52
+ }
@@ -626,7 +626,7 @@ export class UniDM {
626
626
  if (this.attr.length > 0) result.attr = this.attr
627
627
  if (this.platform !== undefined) result.platform = this.platform
628
628
  if (this.extraStr && this.extraStr !== '{}') result.extraStr = this.extraStr
629
- if (this.DMID !== undefined) result.DMID = this.DMID
629
+ if (this.DMID !== undefined && this.options.dmid) result.DMID = this.DMID
630
630
  return result
631
631
  }
632
632
  @Expose()
@@ -791,7 +791,7 @@ export class UniDM {
791
791
  const senderID = isEmail(args.midHash, { require_tld: false })
792
792
  ? args.midHash
793
793
  : ID.fromBili({ midHash: args.midHash })
794
- let mode = Modes.Normal
794
+ let mode: Modes
795
795
  const pool = args.pool //暂时不做处理,兼容bili的pool格式
796
796
  const extra: TExtra = {
797
797
  bili: {
@@ -1,219 +0,0 @@
1
- // @generated by protoc-gen-es v2.11.0 with parameter "target=ts"
2
- // @generated from file danuni.proto (package danuni.danmaku.v1, syntax proto3)
3
- /* eslint-disable */
4
-
5
- import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
6
- import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
7
- import type { Timestamp } from "@bufbuild/protobuf/wkt";
8
- import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
9
- import type { Message } from "@bufbuild/protobuf";
10
-
11
- /**
12
- * Describes the file danuni.proto.
13
- */
14
- export const file_danuni: GenFile = /*@__PURE__*/
15
- fileDesc("CgxkYW51bmkucHJvdG8SEWRhbnVuaS5kYW5tYWt1LnYxIjIKCmxpc3REYW5SZXESCgoCSUQYASABKAkSEAoDc2VnGAIgASgFSACIAQFCBgoEX3NlZyLUAgoHRGFubWFrdRIMCgRTT0lEGAEgASgJEgwKBERNSUQYAiABKAkSEAoIcHJvZ3Jlc3MYAyABKAUSJQoEbW9kZRgEIAEoDjIXLmRhbnVuaS5kYW5tYWt1LnYxLk1vZGUSEAoIZm9udHNpemUYBSABKAUSDQoFY29sb3IYBiABKAUSEAoIc2VuZGVySUQYByABKAkSDwoHY29udGVudBgIIAEoCRIpCgVjdGltZRgJIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASDgoGd2VpZ2h0GAogASgFEiUKBHBvb2wYCyABKA4yFy5kYW51bmkuZGFubWFrdS52MS5Qb29sEgwKBGF0dHIYDCADKAkSFQoIcGxhdGZvcm0YDSABKAlIAIgBARISCgVleHRyYRgOIAEoCUgBiAEBQgsKCV9wbGF0Zm9ybUIICgZfZXh0cmEiPAoMRGFubWFrdVJlcGx5EiwKCGRhbm1ha3VzGAEgAygLMhouZGFudW5pLmRhbm1ha3UudjEuRGFubWFrdSo9CgRNb2RlEgoKBk5vcm1hbBAAEgoKBkJvdHRvbRABEgcKA1RvcBACEgsKB1JldmVyc2UQAxIHCgNFeHQQBCopCgRQb29sEgcKA0RlZhAAEgcKA1N1YhABEgcKA0FkdhACEgYKAkl4EAMyXQoORGFubWFrdVNlcnZpY2USSwoHbGlzdERhbhIdLmRhbnVuaS5kYW5tYWt1LnYxLmxpc3REYW5SZXEaHy5kYW51bmkuZGFubWFrdS52MS5EYW5tYWt1UmVwbHkiAFAAYgZwcm90bzM", [file_google_protobuf_timestamp]);
16
-
17
- /**
18
- * @generated from message danuni.danmaku.v1.listDanReq
19
- */
20
- export type listDanReq = Message<"danuni.danmaku.v1.listDanReq"> & {
21
- /**
22
- * @generated from field: string ID = 1;
23
- */
24
- ID: string;
25
-
26
- /**
27
- * @generated from field: optional int32 seg = 2;
28
- */
29
- seg?: number;
30
- };
31
-
32
- /**
33
- * Describes the message danuni.danmaku.v1.listDanReq.
34
- * Use `create(listDanReqSchema)` to create a new message.
35
- */
36
- export const listDanReqSchema: GenMessage<listDanReq> = /*@__PURE__*/
37
- messageDesc(file_danuni, 0);
38
-
39
- /**
40
- * @generated from message danuni.danmaku.v1.Danmaku
41
- */
42
- export type Danmaku = Message<"danuni.danmaku.v1.Danmaku"> & {
43
- /**
44
- * @generated from field: string SOID = 1;
45
- */
46
- SOID: string;
47
-
48
- /**
49
- * @generated from field: string DMID = 2;
50
- */
51
- DMID: string;
52
-
53
- /**
54
- * @generated from field: int32 progress = 3;
55
- */
56
- progress: number;
57
-
58
- /**
59
- * @generated from field: danuni.danmaku.v1.Mode mode = 4;
60
- */
61
- mode: Mode;
62
-
63
- /**
64
- * @generated from field: int32 fontsize = 5;
65
- */
66
- fontsize: number;
67
-
68
- /**
69
- * @generated from field: int32 color = 6;
70
- */
71
- color: number;
72
-
73
- /**
74
- * @generated from field: string senderID = 7;
75
- */
76
- senderID: string;
77
-
78
- /**
79
- * @generated from field: string content = 8;
80
- */
81
- content: string;
82
-
83
- /**
84
- * @generated from field: google.protobuf.Timestamp ctime = 9;
85
- */
86
- ctime?: Timestamp;
87
-
88
- /**
89
- * @generated from field: int32 weight = 10;
90
- */
91
- weight: number;
92
-
93
- /**
94
- * @generated from field: danuni.danmaku.v1.Pool pool = 11;
95
- */
96
- pool: Pool;
97
-
98
- /**
99
- * @generated from field: repeated string attr = 12;
100
- */
101
- attr: string[];
102
-
103
- /**
104
- * @generated from field: optional string platform = 13;
105
- */
106
- platform?: string;
107
-
108
- /**
109
- * @generated from field: optional string extra = 14;
110
- */
111
- extra?: string;
112
- };
113
-
114
- /**
115
- * Describes the message danuni.danmaku.v1.Danmaku.
116
- * Use `create(DanmakuSchema)` to create a new message.
117
- */
118
- export const DanmakuSchema: GenMessage<Danmaku> = /*@__PURE__*/
119
- messageDesc(file_danuni, 1);
120
-
121
- /**
122
- * @generated from message danuni.danmaku.v1.DanmakuReply
123
- */
124
- export type DanmakuReply = Message<"danuni.danmaku.v1.DanmakuReply"> & {
125
- /**
126
- * @generated from field: repeated danuni.danmaku.v1.Danmaku danmakus = 1;
127
- */
128
- danmakus: Danmaku[];
129
- };
130
-
131
- /**
132
- * Describes the message danuni.danmaku.v1.DanmakuReply.
133
- * Use `create(DanmakuReplySchema)` to create a new message.
134
- */
135
- export const DanmakuReplySchema: GenMessage<DanmakuReply> = /*@__PURE__*/
136
- messageDesc(file_danuni, 2);
137
-
138
- /**
139
- * @generated from enum danuni.danmaku.v1.Mode
140
- */
141
- export enum Mode {
142
- /**
143
- * @generated from enum value: Normal = 0;
144
- */
145
- Normal = 0,
146
-
147
- /**
148
- * @generated from enum value: Bottom = 1;
149
- */
150
- Bottom = 1,
151
-
152
- /**
153
- * @generated from enum value: Top = 2;
154
- */
155
- Top = 2,
156
-
157
- /**
158
- * @generated from enum value: Reverse = 3;
159
- */
160
- Reverse = 3,
161
-
162
- /**
163
- * @generated from enum value: Ext = 4;
164
- */
165
- Ext = 4,
166
- }
167
-
168
- /**
169
- * Describes the enum danuni.danmaku.v1.Mode.
170
- */
171
- export const ModeSchema: GenEnum<Mode> = /*@__PURE__*/
172
- enumDesc(file_danuni, 0);
173
-
174
- /**
175
- * @generated from enum danuni.danmaku.v1.Pool
176
- */
177
- export enum Pool {
178
- /**
179
- * @generated from enum value: Def = 0;
180
- */
181
- Def = 0,
182
-
183
- /**
184
- * @generated from enum value: Sub = 1;
185
- */
186
- Sub = 1,
187
-
188
- /**
189
- * @generated from enum value: Adv = 2;
190
- */
191
- Adv = 2,
192
-
193
- /**
194
- * @generated from enum value: Ix = 3;
195
- */
196
- Ix = 3,
197
- }
198
-
199
- /**
200
- * Describes the enum danuni.danmaku.v1.Pool.
201
- */
202
- export const PoolSchema: GenEnum<Pool> = /*@__PURE__*/
203
- enumDesc(file_danuni, 1);
204
-
205
- /**
206
- * @generated from service danuni.danmaku.v1.DanmakuService
207
- */
208
- export const DanmakuService: GenService<{
209
- /**
210
- * @generated from rpc danuni.danmaku.v1.DanmakuService.listDan
211
- */
212
- listDan: {
213
- methodKind: "unary";
214
- input: typeof listDanReqSchema;
215
- output: typeof DanmakuReplySchema;
216
- },
217
- }> = /*@__PURE__*/
218
- serviceDesc(file_danuni, 0);
219
-
@@ -1,50 +0,0 @@
1
- syntax = "proto3";
2
-
3
- package danuni.danmaku.v1;
4
-
5
- import public "google/protobuf/timestamp.proto";
6
-
7
- service DanmakuService {
8
- rpc listDan (listDanReq) returns (DanmakuReply) {}
9
- }
10
-
11
- message listDanReq {
12
- string ID = 1;
13
- optional int32 seg = 2;
14
- }
15
-
16
- enum Mode {
17
- Normal = 0;
18
- Bottom = 1;
19
- Top = 2;
20
- Reverse = 3;
21
- Ext = 4;
22
- }
23
-
24
- enum Pool {
25
- Def = 0;
26
- Sub = 1;
27
- Adv = 2;
28
- Ix = 3;
29
- }
30
-
31
- message Danmaku {
32
- string SOID = 1;
33
- string DMID = 2;
34
- int32 progress = 3;
35
- Mode mode = 4;
36
- int32 fontsize = 5;
37
- int32 color = 6;
38
- string senderID = 7;
39
- string content = 8;
40
- google.protobuf.Timestamp ctime = 9;
41
- int32 weight = 10;
42
- Pool pool = 11;
43
- repeated string attr = 12;
44
- optional string platform = 13;
45
- optional string extra = 14;
46
- }
47
-
48
- message DanmakuReply {
49
- repeated Danmaku danmakus = 1;
50
- }